From 02f549122edce45d743a3ddd00840508b5ba2f1b Mon Sep 17 00:00:00 2001 From: Pablo Beltran Date: Wed, 21 Sep 2022 18:24:17 +0200 Subject: [PATCH 1/3] Add all dependencies to repository --- node_modules/.bin/flat | 1 + node_modules/.bin/logagent | 1 + node_modules/.bin/logagent-setup | 1 + node_modules/.bin/mkdirp | 1 - node_modules/.bin/semver | 1 - node_modules/.package-lock.json | 1196 ++++++++++ .../@sematext/logagent/.eslintrc.json | 35 + .../logagent/.idea/codeStyles/Project.xml | 33 + .../.idea/codeStyles/codeStyleConfig.xml | 5 + .../inspectionProfiles/Project_Default.xml | 7 + .../logagent/.idea/jsLinters/jshint.xml | 16 + .../@sematext/logagent/.idea/logagent-js.iml | 9 + .../@sematext/logagent/.idea/misc.xml | 6 + .../@sematext/logagent/.idea/modules.xml | 8 + .../logagent/.idea/thriftCompiler.xml | 6 + node_modules/@sematext/logagent/.idea/vcs.xml | 6 + node_modules/@sematext/logagent/CHANGELOG.md | 2094 +++++++++++++++++ .../@sematext/logagent/build/ci/Jenkinsfile | 191 ++ .../logagent/build/docker/Dockerfile.amd64 | 31 + .../logagent/build/docker/Dockerfile.arm64 | 31 + node_modules/@sematext/logagent/changelog.hbs | 13 + .../examples/aws-ecs-input-es-output.yml | 19 + .../config/examples/azure-eventhub-input.yml | 10 + .../logagent/config/examples/bro-ids.yaml | 43 + .../logagent/config/examples/cassandra.yml | 23 + .../logagent/config/examples/clickhouse.yaml | 42 + .../logagent/config/examples/cloudflare.yml | 32 + .../command-input-journald-output-es.yml | 64 + .../logagent/config/examples/docker-logs.yml | 37 + .../config/examples/drop-events-filter.yml | 10 + .../config/examples/elastic-http-input.yml | 15 + .../elasticsearch-http-input_mqtt-output.yml | 40 + .../examples/elasticsearch-query-input.yml | 78 + ...y-input_prometheus-alertmanager-output.yml | 43 + .../file-input-filter-useragent-es-output.yml | 29 + .../examples/file-input-geoip-es-output.yml | 34 + .../file-input-glob-patterns-es-output.yml | 25 + .../file-input-json-parse-es-output.yml | 17 + .../config/examples/find-my-iphone.yml | 25 + .../logagent/config/examples/gelf-stdout.yml | 9 + ...ub-webhook-input-events-format-output.yaml | 29 + ...thub-webhook-input-logs-format-output.yaml | 24 + .../config/examples/heroku-elasticsearch.yml | 20 + .../config/examples/influx-http-input.yml | 13 + .../config/examples/influxdb-http-input.yml | 13 + .../config/examples/influxdb-output.yml | 26 + ...-file-input-output-es-multiple-indices.yml | 72 + ...rnald-upload-receiver-index-from-path.yaml | 50 + .../examples/journald-upload-receiver.yaml | 81 + .../config/examples/kafka-stdout-yml.yml | 20 + .../kubernetes-containerd-log-routing.yml | 33 + ...ubernetes-containerd-with-drop-events.yaml | 35 + .../config/examples/kubernetesAudit.yaml | 21 + .../logagent/config/examples/mqtt-broker.yml | 17 + .../logagent/config/examples/mqtt-client.yml | 8 + .../logagent/config/examples/mqtt-output.yml | 21 + .../logagent/config/examples/mssql.yaml | 24 + .../logagent/config/examples/mysql.yaml | 23 + .../examples/novaSDS011-dust-sensor.yml | 7 + .../examples/output-aws-elasticsearch.yml | 20 + .../logagent/config/examples/output-files.yml | 47 + .../examples/output-filter-access-watch.yml | 32 + .../output-filter-aes-encrypt-fields.yml | 12 + .../examples/output-filter-hash-fields.yml | 10 + .../output-filter-ip-truncate-fields.yml | 8 + .../output-filter-lowercase-fields.yml | 16 + .../examples/output-filter-remove-fieds.yml | 20 + .../examples/output-filter-rename-fields.yml | 13 + .../logagent/config/examples/output-http.yaml | 20 + .../logagent/config/examples/postgresql.yaml | 21 + .../config/examples/prometheus-to-elk.yaml | 67 + .../remove_fields_with_sql_output_filter.yaml | 15 + .../config/examples/stdin-gelf-output.yml | 19 + .../config/examples/stdin-kafka-yml.yml | 24 + .../examples/syslog-input-es-output.yml | 26 + .../examples/vercel-input-es-output.yml | 23 + .../@sematext/logagent/dockerhub/Dockerfile | 28 + .../logagent/dockerhub/Dockerfile.aarch64 | 27 + .../logagent/dockerhub/Dockerfile.arm | 22 + .../logagent/dockerhub/Dockerfile.rhel | 53 + .../@sematext/logagent/dockerhub/LICENSE | 202 ++ .../@sematext/logagent/dockerhub/README.md | 35 + .../logagent/dockerhub/docs/logo.png | Bin 0 -> 55426 bytes .../@sematext/logagent/dockerhub/help.md | 505 ++++ .../docker-compose.yml | 23 + .../logagent/elasticsearch-http-test/requests | 6 + .../logagent/elasticsearch-http-test/test.sh | 20 + .../logagent/kubernetes/configMapExample.yml | 8 + .../kubernetes/ibm-cloud-logagent-ds.yml | 93 + .../ibm-cloud-logagent-with-config-ds.yml | 95 + ...8s-annotations-for-log-routing-example.yml | 77 + .../kubernetes/logagent-daemonset.yml | 92 + .../input-filter/kubernetesContainerd.js | 130 + .../logagent/lib/plugins/input/aws-ecs.js | 238 ++ .../lib/plugins/input/azure-event-hub.js | 101 + .../logagent/lib/plugins/input/cassandra.js | 119 + .../lib/plugins/input/docker/docker.js | 213 ++ .../lib/plugins/input/docker/dockerEvents.js | 114 + .../lib/plugins/input/docker/dockerInspect.js | 309 +++ .../lib/plugins/input/elasticsearchHttp.js | 239 ++ .../lib/plugins/input/elasticsearchQuery.js | 118 + .../logagent/lib/plugins/input/gelf.js | 35 + .../logagent/lib/plugins/input/influxHttp.js | 187 ++ .../lib/plugins/input/journald-upload.js | 326 +++ .../lib/plugins/input/kubernetesAudit.js | 183 ++ .../lib/plugins/input/kubernetesEvents.js | 107 + .../logagent/lib/plugins/input/mqtt-broker.js | 142 ++ .../logagent/lib/plugins/input/mqtt-client.js | 82 + .../logagent/lib/plugins/input/mssql.js | 105 + .../logagent/lib/plugins/input/mysql.js | 95 + .../logagent/lib/plugins/input/postgresql.js | 124 + .../lib/plugins/input/unixSocketReader.js | 88 + .../logagent/lib/plugins/input/vercel.js | 226 ++ .../lib/plugins/input/webhooks/github.js | 156 ++ .../lib/plugins/input/webhooks/util.js | 64 + .../lib/plugins/output-filter/access-watch.js | 297 +++ .../output-filter/aes-encrypt-fields.js | 54 + .../plugins/output-filter/aws-ecs-format.js | 87 + .../output-filter/cloudfoundry-format.js | 82 + .../output-filter/docker-log-enrichment.js | 149 ++ .../plugins/output-filter/dropEventsFilter.js | 77 + .../lib/plugins/output-filter/geoip.js | 57 + .../output-filter/github-events-format.js | 262 +++ .../output-filter/github-logs-format.js | 502 ++++ .../lib/plugins/output-filter/hash-fields.js | 49 + .../plugins/output-filter/heroku-format.js | 76 + .../output-filter/httpDeviceDetector.js | 21 + .../output-filter/ip-truncate-fields.js | 88 + .../plugins/output-filter/journald-format.js | 148 ++ .../output-filter/kubernetes-enrichment.js | 292 +++ .../plugins/output-filter/lowercase-fields.js | 43 + .../plugins/output-filter/remove-fields.js | 44 + .../plugins/output-filter/rename-fields.js | 27 + .../plugins/output-filter/vercel-format.js | 124 + .../lib/plugins/output/aws-elasticsearch.js | 88 + .../logagent/lib/plugins/output/clickhouse.js | 70 + .../logagent/lib/plugins/output/files.js | 83 + .../logagent/lib/plugins/output/gelfout.js | 49 + .../logagent/lib/plugins/output/influxdb.js | 266 +++ .../logagent/lib/plugins/output/mqtt.js | 117 + .../lib/plugins/output/output-http.js | 152 ++ .../plugins/output/output-sematext-events.js | 197 ++ .../plugins/output/prometheus-alertmanager.js | 110 + .../lib/plugins/output/slack-webhook.js | 83 + .../logagent/lib/util/config-reducer.js | 22 + .../@sematext/logagent/lib/util/parser.js | 59 + .../logagent/lib/util/token-blacklist.js | 41 + node_modules/@sematext/logagent/run.sh | 205 ++ .../docker/docker-compose.yml | 36 + .../simple-timeseries/producer-series.js | 78 + .../test/gelf-server-client/gelf-client.js | 2 + .../test/gelf-server-client/gelf-server.js | 6 + .../output-prometheus-alertmanager-test.js | 61 + .../test/vercel/vercelSignature.spec.js | 56 + node_modules/bl/.jshintrc | 59 - node_modules/bl/.travis.yml | 13 - node_modules/bl/LICENSE.md | 13 - node_modules/bl/README.md | 208 -- node_modules/bl/bl.js | 290 --- node_modules/bl/package.json | 35 - node_modules/bl/test/test.js | 718 ------ node_modules/camelcase/index.js | 113 - node_modules/camelcase/license | 9 - node_modules/camelcase/package.json | 44 - node_modules/camelcase/readme.md | 144 -- node_modules/concat-stream/LICENSE | 24 - node_modules/concat-stream/index.js | 144 -- node_modules/concat-stream/package.json | 55 - node_modules/concat-stream/readme.md | 102 - node_modules/decamelize/index.js | 12 - node_modules/decamelize/license | 9 - node_modules/decamelize/package.json | 40 - node_modules/decamelize/readme.md | 51 - node_modules/depd/History.md | 103 - node_modules/depd/LICENSE | 22 - node_modules/depd/Readme.md | 280 --- node_modules/depd/index.js | 538 ----- node_modules/depd/lib/browser/index.js | 77 - node_modules/depd/package.json | 45 - node_modules/duplexify/.travis.yml | 9 - node_modules/duplexify/LICENSE | 21 - node_modules/duplexify/README.md | 97 - node_modules/duplexify/example.js | 21 - node_modules/duplexify/index.js | 238 -- node_modules/duplexify/package.json | 39 - node_modules/duplexify/test.js | 339 --- node_modules/end-of-stream/README.md | 54 - node_modules/end-of-stream/index.js | 94 - node_modules/end-of-stream/package.json | 37 - node_modules/flat/cli.js | 39 + node_modules/forwarded/HISTORY.md | 16 - node_modules/forwarded/LICENSE | 22 - node_modules/forwarded/README.md | 57 - node_modules/forwarded/index.js | 76 - node_modules/forwarded/package.json | 43 - node_modules/got/package.json | 74 - node_modules/got/readme.md | 1237 ---------- node_modules/has-ansi/index.js | 4 - node_modules/has-ansi/license | 21 - node_modules/has-ansi/package.json | 55 - node_modules/has-ansi/readme.md | 36 - node_modules/isarray/.npmignore | 1 - node_modules/isarray/.travis.yml | 4 - node_modules/isarray/Makefile | 6 - node_modules/isarray/README.md | 60 - node_modules/isarray/component.json | 19 - node_modules/isarray/index.js | 5 - node_modules/isarray/package.json | 45 - node_modules/isarray/test.js | 20 - node_modules/lowercase-keys/index.js | 11 - node_modules/lowercase-keys/package.json | 35 - node_modules/lowercase-keys/readme.md | 33 - node_modules/mkdirp/LICENSE | 21 - node_modules/mkdirp/bin/cmd.js | 33 - node_modules/mkdirp/bin/usage.txt | 12 - node_modules/mkdirp/index.js | 102 - node_modules/mkdirp/package.json | 33 - node_modules/mkdirp/readme.markdown | 100 - node_modules/mocha/bin/mocha.js | 142 ++ .../mocha/lib/browser/highlight-tags.js | 39 + node_modules/mocha/lib/browser/parse-query.js | 24 + node_modules/mocha/lib/browser/template.html | 20 + node_modules/mocha/lib/cli/cli.js | 89 + node_modules/mocha/lib/cli/collect-files.js | 92 + node_modules/mocha/lib/cli/commands.js | 13 + node_modules/mocha/lib/cli/config.js | 100 + node_modules/mocha/lib/cli/index.js | 3 + node_modules/mocha/lib/cli/init.js | 36 + node_modules/mocha/lib/cli/lookup-files.js | 145 ++ node_modules/mocha/lib/cli/node-flags.js | 85 + node_modules/mocha/lib/cli/one-and-dones.js | 69 + node_modules/mocha/lib/cli/options.js | 261 ++ node_modules/mocha/lib/cli/run-helpers.js | 243 ++ .../mocha/lib/cli/run-option-metadata.js | 115 + node_modules/mocha/lib/cli/run.js | 375 +++ node_modules/mocha/lib/cli/watch-run.js | 377 +++ node_modules/mocha/lib/errors.js | 563 +++++ node_modules/mocha/lib/mocharc.json | 10 + .../mocha/lib/nodejs/buffered-worker-pool.js | 188 ++ node_modules/mocha/lib/nodejs/esm-utils.js | 94 + .../mocha/lib/nodejs/file-unloader.js | 15 + .../lib/nodejs/parallel-buffered-runner.js | 434 ++++ .../lib/nodejs/reporters/parallel-buffered.js | 165 ++ node_modules/mocha/lib/nodejs/serializer.js | 412 ++++ node_modules/mocha/lib/nodejs/worker.js | 151 ++ node_modules/mocha/lib/plugin-loader.js | 286 +++ node_modules/mocha/lib/stats-collector.js | 83 + node_modules/mocha/mocha.js.map | 1 + node_modules/prepend-http/index.js | 15 - node_modules/prepend-http/license | 9 - node_modules/prepend-http/package.json | 35 - node_modules/prepend-http/readme.md | 56 - node_modules/process-nextick-args/index.js | 45 - node_modules/process-nextick-args/license.md | 19 - .../process-nextick-args/package.json | 25 - node_modules/process-nextick-args/readme.md | 18 - node_modules/pseudomap/LICENSE | 15 - node_modules/pseudomap/README.md | 60 - node_modules/pseudomap/map.js | 9 - node_modules/pseudomap/package.json | 25 - node_modules/pseudomap/pseudomap.js | 113 - node_modules/pseudomap/test/basic.js | 86 - node_modules/semver/LICENSE | 27 - node_modules/semver/README.md | 303 --- node_modules/semver/bin/semver | 133 -- node_modules/semver/package.json | 21 - node_modules/semver/semver.js | 1191 ---------- node_modules/stream-buffers/.codeclimate.yml | 12 - node_modules/stream-buffers/.eslintignore | 1 - node_modules/stream-buffers/.eslintrc | 25 - node_modules/stream-buffers/.mailmap | 3 - node_modules/stream-buffers/.travis.yml | 32 - node_modules/stream-buffers/README.md | 167 -- node_modules/stream-buffers/UNLICENSE | 24 - node_modules/stream-buffers/lib/constants.js | 8 - .../lib/readable_streambuffer.js | 114 - .../stream-buffers/lib/streambuffer.js | 5 - .../lib/writable_streambuffer.js | 72 - node_modules/stream-buffers/package.json | 31 - node_modules/stream-shift/.travis.yml | 6 - node_modules/stream-shift/LICENSE | 21 - node_modules/stream-shift/README.md | 25 - node_modules/stream-shift/index.js | 20 - node_modules/stream-shift/package.json | 25 - node_modules/stream-shift/test.js | 48 - node_modules/through/.travis.yml | 5 - node_modules/through/LICENSE.APACHE2 | 15 - node_modules/through/LICENSE.MIT | 24 - node_modules/through/index.js | 108 - node_modules/through/package.json | 36 - node_modules/through/readme.markdown | 64 - node_modules/through/test/async.js | 28 - node_modules/through/test/auto-destroy.js | 30 - node_modules/through/test/buffering.js | 71 - node_modules/through/test/end.js | 45 - node_modules/through/test/index.js | 133 -- node_modules/typedarray/.travis.yml | 4 - node_modules/typedarray/LICENSE | 35 - node_modules/typedarray/example/tarray.js | 4 - node_modules/typedarray/index.js | 630 ----- node_modules/typedarray/package.json | 55 - node_modules/typedarray/readme.markdown | 61 - .../typedarray/test/server/undef_globals.js | 19 - node_modules/typedarray/test/tarray.js | 10 - node_modules/ultron/LICENSE | 22 - node_modules/ultron/README.md | 113 - node_modules/ultron/index.js | 136 -- node_modules/ultron/package.json | 41 - node_modules/uuid/CHANGELOG.md | 229 ++ node_modules/uuid/CONTRIBUTING.md | 18 + node_modules/uuid/dist/bin/uuid | 2 + node_modules/uuid/dist/esm-browser/index.js | 9 + node_modules/uuid/dist/esm-browser/md5.js | 215 ++ node_modules/uuid/dist/esm-browser/nil.js | 1 + node_modules/uuid/dist/esm-browser/parse.js | 35 + node_modules/uuid/dist/esm-browser/regex.js | 1 + node_modules/uuid/dist/esm-browser/rng.js | 19 + node_modules/uuid/dist/esm-browser/sha1.js | 96 + .../uuid/dist/esm-browser/stringify.js | 30 + node_modules/uuid/dist/esm-browser/v1.js | 95 + node_modules/uuid/dist/esm-browser/v3.js | 4 + node_modules/uuid/dist/esm-browser/v35.js | 64 + node_modules/uuid/dist/esm-browser/v4.js | 24 + node_modules/uuid/dist/esm-browser/v5.js | 4 + .../uuid/dist/esm-browser/validate.js | 7 + node_modules/uuid/dist/esm-browser/version.js | 11 + node_modules/uuid/dist/esm-node/index.js | 9 + node_modules/uuid/dist/esm-node/md5.js | 13 + node_modules/uuid/dist/esm-node/nil.js | 1 + node_modules/uuid/dist/esm-node/parse.js | 35 + node_modules/uuid/dist/esm-node/regex.js | 1 + node_modules/uuid/dist/esm-node/rng.js | 12 + node_modules/uuid/dist/esm-node/sha1.js | 13 + node_modules/uuid/dist/esm-node/stringify.js | 29 + node_modules/uuid/dist/esm-node/v1.js | 95 + node_modules/uuid/dist/esm-node/v3.js | 4 + node_modules/uuid/dist/esm-node/v35.js | 64 + node_modules/uuid/dist/esm-node/v4.js | 24 + node_modules/uuid/dist/esm-node/v5.js | 4 + node_modules/uuid/dist/esm-node/validate.js | 7 + node_modules/uuid/dist/esm-node/version.js | 11 + node_modules/uuid/dist/index.js | 79 + node_modules/uuid/dist/md5-browser.js | 223 ++ node_modules/uuid/dist/md5.js | 23 + node_modules/uuid/dist/nil.js | 8 + node_modules/uuid/dist/parse.js | 45 + node_modules/uuid/dist/regex.js | 8 + node_modules/uuid/dist/rng-browser.js | 26 + node_modules/uuid/dist/rng.js | 24 + node_modules/uuid/dist/sha1-browser.js | 104 + node_modules/uuid/dist/sha1.js | 23 + node_modules/uuid/dist/stringify.js | 39 + node_modules/uuid/dist/umd/uuid.min.js | 1 + node_modules/uuid/dist/umd/uuidNIL.min.js | 1 + node_modules/uuid/dist/umd/uuidParse.min.js | 1 + .../uuid/dist/umd/uuidStringify.min.js | 1 + .../uuid/dist/umd/uuidValidate.min.js | 1 + node_modules/uuid/dist/umd/uuidVersion.min.js | 1 + node_modules/uuid/dist/umd/uuidv1.min.js | 1 + node_modules/uuid/dist/umd/uuidv3.min.js | 1 + node_modules/uuid/dist/umd/uuidv4.min.js | 1 + node_modules/uuid/dist/umd/uuidv5.min.js | 1 + node_modules/uuid/dist/uuid-bin.js | 85 + node_modules/uuid/dist/v1.js | 107 + node_modules/uuid/dist/v3.js | 16 + node_modules/uuid/dist/v35.js | 78 + node_modules/uuid/dist/v4.js | 37 + node_modules/uuid/dist/v5.js | 16 + node_modules/uuid/dist/validate.js | 17 + node_modules/uuid/dist/version.js | 21 + node_modules/uuid/wrapper.mjs | 10 + node_modules/ws/README.md | 495 ---- node_modules/ws/index.js | 10 - node_modules/ws/package.json | 56 - node_modules/xtend/.jshintrc | 30 - node_modules/xtend/README.md | 32 - node_modules/xtend/immutable.js | 19 - node_modules/xtend/mutable.js | 17 - node_modules/xtend/package.json | 55 - node_modules/xtend/test.js | 103 - package-lock.json | 1975 ++++++++++++++++ 381 files changed, 23091 insertions(+), 11630 deletions(-) create mode 120000 node_modules/.bin/flat create mode 120000 node_modules/.bin/logagent create mode 120000 node_modules/.bin/logagent-setup delete mode 120000 node_modules/.bin/mkdirp delete mode 120000 node_modules/.bin/semver create mode 100644 node_modules/.package-lock.json create mode 100644 node_modules/@sematext/logagent/.eslintrc.json create mode 100644 node_modules/@sematext/logagent/.idea/codeStyles/Project.xml create mode 100644 node_modules/@sematext/logagent/.idea/codeStyles/codeStyleConfig.xml create mode 100644 node_modules/@sematext/logagent/.idea/inspectionProfiles/Project_Default.xml create mode 100644 node_modules/@sematext/logagent/.idea/jsLinters/jshint.xml create mode 100644 node_modules/@sematext/logagent/.idea/logagent-js.iml create mode 100644 node_modules/@sematext/logagent/.idea/misc.xml create mode 100644 node_modules/@sematext/logagent/.idea/modules.xml create mode 100644 node_modules/@sematext/logagent/.idea/thriftCompiler.xml create mode 100644 node_modules/@sematext/logagent/.idea/vcs.xml create mode 100644 node_modules/@sematext/logagent/CHANGELOG.md create mode 100644 node_modules/@sematext/logagent/build/ci/Jenkinsfile create mode 100644 node_modules/@sematext/logagent/build/docker/Dockerfile.amd64 create mode 100644 node_modules/@sematext/logagent/build/docker/Dockerfile.arm64 create mode 100644 node_modules/@sematext/logagent/changelog.hbs create mode 100644 node_modules/@sematext/logagent/config/examples/aws-ecs-input-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/azure-eventhub-input.yml create mode 100644 node_modules/@sematext/logagent/config/examples/bro-ids.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/cassandra.yml create mode 100644 node_modules/@sematext/logagent/config/examples/clickhouse.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/cloudflare.yml create mode 100644 node_modules/@sematext/logagent/config/examples/command-input-journald-output-es.yml create mode 100644 node_modules/@sematext/logagent/config/examples/docker-logs.yml create mode 100644 node_modules/@sematext/logagent/config/examples/drop-events-filter.yml create mode 100644 node_modules/@sematext/logagent/config/examples/elastic-http-input.yml create mode 100644 node_modules/@sematext/logagent/config/examples/elasticsearch-http-input_mqtt-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/elasticsearch-query-input.yml create mode 100644 node_modules/@sematext/logagent/config/examples/elasticsearch-query-input_prometheus-alertmanager-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/file-input-filter-useragent-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/file-input-geoip-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/file-input-glob-patterns-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/file-input-json-parse-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/find-my-iphone.yml create mode 100644 node_modules/@sematext/logagent/config/examples/gelf-stdout.yml create mode 100644 node_modules/@sematext/logagent/config/examples/github-webhook-input-events-format-output.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/github-webhook-input-logs-format-output.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/heroku-elasticsearch.yml create mode 100644 node_modules/@sematext/logagent/config/examples/influx-http-input.yml create mode 100644 node_modules/@sematext/logagent/config/examples/influxdb-http-input.yml create mode 100644 node_modules/@sematext/logagent/config/examples/influxdb-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/journald-and-file-input-output-es-multiple-indices.yml create mode 100644 node_modules/@sematext/logagent/config/examples/journald-upload-receiver-index-from-path.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/journald-upload-receiver.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/kafka-stdout-yml.yml create mode 100644 node_modules/@sematext/logagent/config/examples/kubernetes-containerd-log-routing.yml create mode 100644 node_modules/@sematext/logagent/config/examples/kubernetes-containerd-with-drop-events.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/kubernetesAudit.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/mqtt-broker.yml create mode 100644 node_modules/@sematext/logagent/config/examples/mqtt-client.yml create mode 100644 node_modules/@sematext/logagent/config/examples/mqtt-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/mssql.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/mysql.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/novaSDS011-dust-sensor.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-aws-elasticsearch.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-files.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-access-watch.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-aes-encrypt-fields.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-hash-fields.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-ip-truncate-fields.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-lowercase-fields.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-remove-fieds.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-filter-rename-fields.yml create mode 100644 node_modules/@sematext/logagent/config/examples/output-http.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/postgresql.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/prometheus-to-elk.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/remove_fields_with_sql_output_filter.yaml create mode 100644 node_modules/@sematext/logagent/config/examples/stdin-gelf-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/stdin-kafka-yml.yml create mode 100644 node_modules/@sematext/logagent/config/examples/syslog-input-es-output.yml create mode 100644 node_modules/@sematext/logagent/config/examples/vercel-input-es-output.yml create mode 100644 node_modules/@sematext/logagent/dockerhub/Dockerfile create mode 100644 node_modules/@sematext/logagent/dockerhub/Dockerfile.aarch64 create mode 100644 node_modules/@sematext/logagent/dockerhub/Dockerfile.arm create mode 100644 node_modules/@sematext/logagent/dockerhub/Dockerfile.rhel create mode 100644 node_modules/@sematext/logagent/dockerhub/LICENSE create mode 100644 node_modules/@sematext/logagent/dockerhub/README.md create mode 100644 node_modules/@sematext/logagent/dockerhub/docs/logo.png create mode 100644 node_modules/@sematext/logagent/dockerhub/help.md create mode 100644 node_modules/@sematext/logagent/elasticsearch-http-test/docker-compose.yml create mode 100644 node_modules/@sematext/logagent/elasticsearch-http-test/requests create mode 100755 node_modules/@sematext/logagent/elasticsearch-http-test/test.sh create mode 100644 node_modules/@sematext/logagent/kubernetes/configMapExample.yml create mode 100644 node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-ds.yml create mode 100644 node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-with-config-ds.yml create mode 100644 node_modules/@sematext/logagent/kubernetes/k8s-annotations-for-log-routing-example.yml create mode 100644 node_modules/@sematext/logagent/kubernetes/logagent-daemonset.yml create mode 100644 node_modules/@sematext/logagent/lib/plugins/input-filter/kubernetesContainerd.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/aws-ecs.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/azure-event-hub.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/cassandra.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/docker/docker.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/docker/dockerEvents.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/docker/dockerInspect.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/elasticsearchHttp.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/elasticsearchQuery.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/gelf.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/influxHttp.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/journald-upload.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/kubernetesAudit.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/kubernetesEvents.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/mqtt-broker.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/mqtt-client.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/mssql.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/mysql.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/postgresql.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/unixSocketReader.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/vercel.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/webhooks/github.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/input/webhooks/util.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/access-watch.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/aes-encrypt-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/aws-ecs-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/cloudfoundry-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/docker-log-enrichment.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/dropEventsFilter.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/geoip.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/github-events-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/github-logs-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/hash-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/heroku-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/httpDeviceDetector.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/ip-truncate-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/journald-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/kubernetes-enrichment.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/lowercase-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/remove-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/rename-fields.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output-filter/vercel-format.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/aws-elasticsearch.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/clickhouse.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/files.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/gelfout.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/influxdb.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/mqtt.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/output-http.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/output-sematext-events.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/prometheus-alertmanager.js create mode 100644 node_modules/@sematext/logagent/lib/plugins/output/slack-webhook.js create mode 100644 node_modules/@sematext/logagent/lib/util/config-reducer.js create mode 100644 node_modules/@sematext/logagent/lib/util/parser.js create mode 100644 node_modules/@sematext/logagent/lib/util/token-blacklist.js create mode 100644 node_modules/@sematext/logagent/run.sh create mode 100644 node_modules/@sematext/logagent/test/apache-cassandra/docker/docker-compose.yml create mode 100644 node_modules/@sematext/logagent/test/apache-cassandra/simple-timeseries/producer-series.js create mode 100644 node_modules/@sematext/logagent/test/gelf-server-client/gelf-client.js create mode 100644 node_modules/@sematext/logagent/test/gelf-server-client/gelf-server.js create mode 100644 node_modules/@sematext/logagent/test/output-prometheus-alertmanager-test.js create mode 100644 node_modules/@sematext/logagent/test/vercel/vercelSignature.spec.js delete mode 100644 node_modules/bl/.jshintrc delete mode 100644 node_modules/bl/.travis.yml delete mode 100644 node_modules/bl/LICENSE.md delete mode 100644 node_modules/bl/README.md delete mode 100644 node_modules/bl/bl.js delete mode 100644 node_modules/bl/package.json delete mode 100644 node_modules/bl/test/test.js delete mode 100644 node_modules/camelcase/index.js delete mode 100644 node_modules/camelcase/license delete mode 100644 node_modules/camelcase/package.json delete mode 100644 node_modules/camelcase/readme.md delete mode 100644 node_modules/concat-stream/LICENSE delete mode 100644 node_modules/concat-stream/index.js delete mode 100644 node_modules/concat-stream/package.json delete mode 100644 node_modules/concat-stream/readme.md delete mode 100644 node_modules/decamelize/index.js delete mode 100644 node_modules/decamelize/license delete mode 100644 node_modules/decamelize/package.json delete mode 100644 node_modules/decamelize/readme.md delete mode 100644 node_modules/depd/History.md delete mode 100644 node_modules/depd/LICENSE delete mode 100644 node_modules/depd/Readme.md delete mode 100644 node_modules/depd/index.js delete mode 100644 node_modules/depd/lib/browser/index.js delete mode 100644 node_modules/depd/package.json delete mode 100644 node_modules/duplexify/.travis.yml delete mode 100644 node_modules/duplexify/LICENSE delete mode 100644 node_modules/duplexify/README.md delete mode 100644 node_modules/duplexify/example.js delete mode 100644 node_modules/duplexify/index.js delete mode 100644 node_modules/duplexify/package.json delete mode 100644 node_modules/duplexify/test.js delete mode 100644 node_modules/end-of-stream/README.md delete mode 100644 node_modules/end-of-stream/index.js delete mode 100644 node_modules/end-of-stream/package.json create mode 100755 node_modules/flat/cli.js delete mode 100644 node_modules/forwarded/HISTORY.md delete mode 100644 node_modules/forwarded/LICENSE delete mode 100644 node_modules/forwarded/README.md delete mode 100644 node_modules/forwarded/index.js delete mode 100644 node_modules/forwarded/package.json delete mode 100644 node_modules/got/package.json delete mode 100644 node_modules/got/readme.md delete mode 100644 node_modules/has-ansi/index.js delete mode 100644 node_modules/has-ansi/license delete mode 100644 node_modules/has-ansi/package.json delete mode 100644 node_modules/has-ansi/readme.md delete mode 100644 node_modules/isarray/.npmignore delete mode 100644 node_modules/isarray/.travis.yml delete mode 100644 node_modules/isarray/Makefile delete mode 100644 node_modules/isarray/README.md delete mode 100644 node_modules/isarray/component.json delete mode 100644 node_modules/isarray/index.js delete mode 100644 node_modules/isarray/package.json delete mode 100644 node_modules/isarray/test.js delete mode 100644 node_modules/lowercase-keys/index.js delete mode 100644 node_modules/lowercase-keys/package.json delete mode 100644 node_modules/lowercase-keys/readme.md delete mode 100644 node_modules/mkdirp/LICENSE delete mode 100755 node_modules/mkdirp/bin/cmd.js delete mode 100644 node_modules/mkdirp/bin/usage.txt delete mode 100644 node_modules/mkdirp/index.js delete mode 100644 node_modules/mkdirp/package.json delete mode 100644 node_modules/mkdirp/readme.markdown create mode 100755 node_modules/mocha/bin/mocha.js create mode 100644 node_modules/mocha/lib/browser/highlight-tags.js create mode 100644 node_modules/mocha/lib/browser/parse-query.js create mode 100644 node_modules/mocha/lib/browser/template.html create mode 100755 node_modules/mocha/lib/cli/cli.js create mode 100644 node_modules/mocha/lib/cli/collect-files.js create mode 100644 node_modules/mocha/lib/cli/commands.js create mode 100644 node_modules/mocha/lib/cli/config.js create mode 100644 node_modules/mocha/lib/cli/index.js create mode 100644 node_modules/mocha/lib/cli/init.js create mode 100644 node_modules/mocha/lib/cli/lookup-files.js create mode 100644 node_modules/mocha/lib/cli/node-flags.js create mode 100644 node_modules/mocha/lib/cli/one-and-dones.js create mode 100644 node_modules/mocha/lib/cli/options.js create mode 100644 node_modules/mocha/lib/cli/run-helpers.js create mode 100644 node_modules/mocha/lib/cli/run-option-metadata.js create mode 100644 node_modules/mocha/lib/cli/run.js create mode 100644 node_modules/mocha/lib/cli/watch-run.js create mode 100644 node_modules/mocha/lib/errors.js create mode 100644 node_modules/mocha/lib/mocharc.json create mode 100644 node_modules/mocha/lib/nodejs/buffered-worker-pool.js create mode 100644 node_modules/mocha/lib/nodejs/esm-utils.js create mode 100644 node_modules/mocha/lib/nodejs/file-unloader.js create mode 100644 node_modules/mocha/lib/nodejs/parallel-buffered-runner.js create mode 100644 node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js create mode 100644 node_modules/mocha/lib/nodejs/serializer.js create mode 100644 node_modules/mocha/lib/nodejs/worker.js create mode 100644 node_modules/mocha/lib/plugin-loader.js create mode 100644 node_modules/mocha/lib/stats-collector.js create mode 100644 node_modules/mocha/mocha.js.map delete mode 100644 node_modules/prepend-http/index.js delete mode 100644 node_modules/prepend-http/license delete mode 100644 node_modules/prepend-http/package.json delete mode 100644 node_modules/prepend-http/readme.md delete mode 100644 node_modules/process-nextick-args/index.js delete mode 100644 node_modules/process-nextick-args/license.md delete mode 100644 node_modules/process-nextick-args/package.json delete mode 100644 node_modules/process-nextick-args/readme.md delete mode 100644 node_modules/pseudomap/LICENSE delete mode 100644 node_modules/pseudomap/README.md delete mode 100644 node_modules/pseudomap/map.js delete mode 100644 node_modules/pseudomap/package.json delete mode 100644 node_modules/pseudomap/pseudomap.js delete mode 100644 node_modules/pseudomap/test/basic.js delete mode 100644 node_modules/semver/LICENSE delete mode 100644 node_modules/semver/README.md delete mode 100755 node_modules/semver/bin/semver delete mode 100644 node_modules/semver/package.json delete mode 100644 node_modules/semver/semver.js delete mode 100644 node_modules/stream-buffers/.codeclimate.yml delete mode 100644 node_modules/stream-buffers/.eslintignore delete mode 100644 node_modules/stream-buffers/.eslintrc delete mode 100644 node_modules/stream-buffers/.mailmap delete mode 100644 node_modules/stream-buffers/.travis.yml delete mode 100644 node_modules/stream-buffers/README.md delete mode 100644 node_modules/stream-buffers/UNLICENSE delete mode 100644 node_modules/stream-buffers/lib/constants.js delete mode 100644 node_modules/stream-buffers/lib/readable_streambuffer.js delete mode 100644 node_modules/stream-buffers/lib/streambuffer.js delete mode 100644 node_modules/stream-buffers/lib/writable_streambuffer.js delete mode 100644 node_modules/stream-buffers/package.json delete mode 100644 node_modules/stream-shift/.travis.yml delete mode 100644 node_modules/stream-shift/LICENSE delete mode 100644 node_modules/stream-shift/README.md delete mode 100644 node_modules/stream-shift/index.js delete mode 100644 node_modules/stream-shift/package.json delete mode 100644 node_modules/stream-shift/test.js delete mode 100644 node_modules/through/.travis.yml delete mode 100644 node_modules/through/LICENSE.APACHE2 delete mode 100644 node_modules/through/LICENSE.MIT delete mode 100644 node_modules/through/index.js delete mode 100644 node_modules/through/package.json delete mode 100644 node_modules/through/readme.markdown delete mode 100644 node_modules/through/test/async.js delete mode 100644 node_modules/through/test/auto-destroy.js delete mode 100644 node_modules/through/test/buffering.js delete mode 100644 node_modules/through/test/end.js delete mode 100644 node_modules/through/test/index.js delete mode 100644 node_modules/typedarray/.travis.yml delete mode 100644 node_modules/typedarray/LICENSE delete mode 100644 node_modules/typedarray/example/tarray.js delete mode 100644 node_modules/typedarray/index.js delete mode 100644 node_modules/typedarray/package.json delete mode 100644 node_modules/typedarray/readme.markdown delete mode 100644 node_modules/typedarray/test/server/undef_globals.js delete mode 100644 node_modules/typedarray/test/tarray.js delete mode 100644 node_modules/ultron/LICENSE delete mode 100644 node_modules/ultron/README.md delete mode 100644 node_modules/ultron/index.js delete mode 100644 node_modules/ultron/package.json create mode 100644 node_modules/uuid/CHANGELOG.md create mode 100644 node_modules/uuid/CONTRIBUTING.md create mode 100755 node_modules/uuid/dist/bin/uuid create mode 100644 node_modules/uuid/dist/esm-browser/index.js create mode 100644 node_modules/uuid/dist/esm-browser/md5.js create mode 100644 node_modules/uuid/dist/esm-browser/nil.js create mode 100644 node_modules/uuid/dist/esm-browser/parse.js create mode 100644 node_modules/uuid/dist/esm-browser/regex.js create mode 100644 node_modules/uuid/dist/esm-browser/rng.js create mode 100644 node_modules/uuid/dist/esm-browser/sha1.js create mode 100644 node_modules/uuid/dist/esm-browser/stringify.js create mode 100644 node_modules/uuid/dist/esm-browser/v1.js create mode 100644 node_modules/uuid/dist/esm-browser/v3.js create mode 100644 node_modules/uuid/dist/esm-browser/v35.js create mode 100644 node_modules/uuid/dist/esm-browser/v4.js create mode 100644 node_modules/uuid/dist/esm-browser/v5.js create mode 100644 node_modules/uuid/dist/esm-browser/validate.js create mode 100644 node_modules/uuid/dist/esm-browser/version.js create mode 100644 node_modules/uuid/dist/esm-node/index.js create mode 100644 node_modules/uuid/dist/esm-node/md5.js create mode 100644 node_modules/uuid/dist/esm-node/nil.js create mode 100644 node_modules/uuid/dist/esm-node/parse.js create mode 100644 node_modules/uuid/dist/esm-node/regex.js create mode 100644 node_modules/uuid/dist/esm-node/rng.js create mode 100644 node_modules/uuid/dist/esm-node/sha1.js create mode 100644 node_modules/uuid/dist/esm-node/stringify.js create mode 100644 node_modules/uuid/dist/esm-node/v1.js create mode 100644 node_modules/uuid/dist/esm-node/v3.js create mode 100644 node_modules/uuid/dist/esm-node/v35.js create mode 100644 node_modules/uuid/dist/esm-node/v4.js create mode 100644 node_modules/uuid/dist/esm-node/v5.js create mode 100644 node_modules/uuid/dist/esm-node/validate.js create mode 100644 node_modules/uuid/dist/esm-node/version.js create mode 100644 node_modules/uuid/dist/index.js create mode 100644 node_modules/uuid/dist/md5-browser.js create mode 100644 node_modules/uuid/dist/md5.js create mode 100644 node_modules/uuid/dist/nil.js create mode 100644 node_modules/uuid/dist/parse.js create mode 100644 node_modules/uuid/dist/regex.js create mode 100644 node_modules/uuid/dist/rng-browser.js create mode 100644 node_modules/uuid/dist/rng.js create mode 100644 node_modules/uuid/dist/sha1-browser.js create mode 100644 node_modules/uuid/dist/sha1.js create mode 100644 node_modules/uuid/dist/stringify.js create mode 100644 node_modules/uuid/dist/umd/uuid.min.js create mode 100644 node_modules/uuid/dist/umd/uuidNIL.min.js create mode 100644 node_modules/uuid/dist/umd/uuidParse.min.js create mode 100644 node_modules/uuid/dist/umd/uuidStringify.min.js create mode 100644 node_modules/uuid/dist/umd/uuidValidate.min.js create mode 100644 node_modules/uuid/dist/umd/uuidVersion.min.js create mode 100644 node_modules/uuid/dist/umd/uuidv1.min.js create mode 100644 node_modules/uuid/dist/umd/uuidv3.min.js create mode 100644 node_modules/uuid/dist/umd/uuidv4.min.js create mode 100644 node_modules/uuid/dist/umd/uuidv5.min.js create mode 100644 node_modules/uuid/dist/uuid-bin.js create mode 100644 node_modules/uuid/dist/v1.js create mode 100644 node_modules/uuid/dist/v3.js create mode 100644 node_modules/uuid/dist/v35.js create mode 100644 node_modules/uuid/dist/v4.js create mode 100644 node_modules/uuid/dist/v5.js create mode 100644 node_modules/uuid/dist/validate.js create mode 100644 node_modules/uuid/dist/version.js create mode 100644 node_modules/uuid/wrapper.mjs delete mode 100644 node_modules/ws/README.md delete mode 100644 node_modules/ws/index.js delete mode 100644 node_modules/ws/package.json delete mode 100644 node_modules/xtend/.jshintrc delete mode 100644 node_modules/xtend/README.md delete mode 100644 node_modules/xtend/immutable.js delete mode 100644 node_modules/xtend/mutable.js delete mode 100644 node_modules/xtend/package.json delete mode 100644 node_modules/xtend/test.js create mode 100644 package-lock.json diff --git a/node_modules/.bin/flat b/node_modules/.bin/flat new file mode 120000 index 00000000..5fed16be --- /dev/null +++ b/node_modules/.bin/flat @@ -0,0 +1 @@ +../flat/cli.js \ No newline at end of file diff --git a/node_modules/.bin/logagent b/node_modules/.bin/logagent new file mode 120000 index 00000000..11e1032e --- /dev/null +++ b/node_modules/.bin/logagent @@ -0,0 +1 @@ +../@sematext/logagent/bin/logagent.js \ No newline at end of file diff --git a/node_modules/.bin/logagent-setup b/node_modules/.bin/logagent-setup new file mode 120000 index 00000000..604cad8b --- /dev/null +++ b/node_modules/.bin/logagent-setup @@ -0,0 +1 @@ +../@sematext/logagent/bin/logagent-setup.sh \ No newline at end of file diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp deleted file mode 120000 index 017896ce..00000000 --- a/node_modules/.bin/mkdirp +++ /dev/null @@ -1 +0,0 @@ -../mkdirp/bin/cmd.js \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver deleted file mode 120000 index 317eb293..00000000 --- a/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json new file mode 100644 index 00000000..f5b1a17e --- /dev/null +++ b/node_modules/.package-lock.json @@ -0,0 +1,1196 @@ +{ + "name": "logsene-cloudwatch-lambda", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "node_modules/@sematext/logagent": { + "version": "3.2.0", + "license": "Apache-2.0", + "dependencies": { + "@azure/event-hubs": "^5.2.0", + "alasql": "^1.7.2", + "aws-sdk": "^2.689.0", + "cassandra-driver": "^3.5.0", + "chalk": "^2.4.1", + "clickhouse": "^1.2.88888888", + "clone": "^2.1.2", + "co": "^4.6.0", + "commander": "^2.19.0", + "device-detector-js": "^2.2.1", + "docker-events": "0.0.2", + "docker-loghose": "^1.6.5", + "dockerode": "^3.3.4", + "elasticsearch": "^15.2.0", + "eventemitter3": "^3.1.0", + "fast-safe-stringify": "^2.0.6", + "flat": "^4.1.0", + "flatstr": "^1.0.8", + "get-value": "^3.0.1", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "http-aws-es": "^6.0.0", + "influx-line-protocol-parser": "^0.2.0", + "js-yaml": "^3.14.0", + "json-influx": "^0.3.0", + "kubernetes-client": "^8.3.7", + "logsene-js": "^1.1.74", + "lru-cache": "^5.1.1", + "maxmind": "^3.1.2", + "maxmind-geolite-mirror": "^1.1.3", + "md5": "^2.2.1", + "merge": "^2.1.1", + "minimatch": "^3.0.4", + "mkpath": "^1.0.0", + "moment": "^2.29.1", + "moment-timezone": "^0.5.31", + "mqtt": "^4.2.8", + "mysql": "^2.16.0", + "pg": "^7.18.2", + "prettyjson": "^1.2.1", + "public-ip": "^4.0.2", + "query-string": "^6.12.1", + "request": "^2.88.2", + "requestretry": "^7.0.0", + "rotating-file-stream": "^1.3.9", + "set-value": "^4.0.1", + "split2": "^3.0.0", + "stackman": "^3.0.2", + "stream-throttle": "^0.1.3", + "string-template": "^1.0.0", + "syslogd": "^1.1.2", + "tail-forever": "^0.3.16", + "tedious": "^3.0.1", + "throng": "^4.0.0", + "through2": "^4.0.2", + "try-call": "0.0.2", + "unset-value": "^1.0.0" + }, + "bin": { + "logagent": "bin/logagent.js", + "logagent-setup": "bin/logagent-setup.sh", + "logagent-uninstall": "bin/logagent-uninstall.sh", + "logagent-windows": "bin/logagent-windows.js" + }, + "optionalDependencies": { + "aedes": "^0.42.1", + "date-fns": "^2.9.0", + "websocket-stream": "^5.1.1" + } + }, + "node_modules/@sematext/logagent/node_modules/throng": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "lodash.defaults": "^4.0.1" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/adler-32": { + "version": "1.2.0", + "license": "Apache-2.0", + "dependencies": { + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" + }, + "bin": { + "adler32": "bin/adler32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/alasql": { + "version": "1.7.3", + "license": "MIT", + "dependencies": { + "dom-storage": "^2.1.0", + "es6-promise": "^4.2.6", + "lodash": "4.17.21", + "request": "2.88.2", + "xlsx": "0.17.0", + "yargs": "16.2.0" + }, + "bin": { + "alaserver": "bin/alaserver.js", + "alasql": "bin/alasql-cli.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/async-cache": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^4.0.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.11.0", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "dev": true, + "license": "ISC" + }, + "node_modules/caseless": { + "version": "0.12.0", + "license": "Apache-2.0" + }, + "node_modules/cfb": { + "version": "1.2.2", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.3.0", + "crc-32": "~1.2.0" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/codepage": { + "version": "1.14.0", + "license": "Apache-2.0", + "dependencies": { + "commander": "~2.14.1", + "exit-on-epipe": "~1.0.1" + }, + "bin": { + "codepage": "bin/codepage.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/codepage/node_modules/commander": { + "version": "2.14.1", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/colors": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.9.0", + "license": "MIT", + "dependencies": { + "graceful-readlink": ">= 1.0.0" + }, + "engines": { + "node": ">= 0.6.x" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/diff": { + "version": "5.0.0", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-storage": { + "version": "2.1.0", + "license": "(MIT or Apache-2.0)", + "engines": { + "node": "*" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/error-callsites": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eventemitter3": { + "version": "3.1.2", + "license": "MIT" + }, + "node_modules/exit-on-epipe": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "license": "MIT" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat": { + "version": "4.1.1", + "license": "BSD-3-Clause", + "dependencies": { + "is-buffer": "~2.0.3" + }, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flatstr": { + "version": "1.0.12", + "license": "MIT" + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/frac": { + "version": "1.1.2", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "license": "ISC" + }, + "node_modules/graceful-readlink": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/har-validator": { + "version": "5.1.5", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inflight": { + "version": "1.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/is-buffer": { + "version": "2.0.5", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/isstream": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/jschardet": { + "version": "3.0.0", + "license": "LGPL-2.1+", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "license": "ISC" + }, + "node_modules/jsprim": { + "version": "1.4.2", + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/limiter": { + "version": "1.1.0" + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/maxmind": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "tiny-lru": "6.0.1" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/maxmind-geolite-mirror": { + "version": "1.1.8", + "license": "MIT", + "bin": { + "maxmind-geolite-mirror": "bin/maxmind-geolite-mirror" + }, + "engines": { + "node": ">= v12.0.0" + }, + "optionalDependencies": { + "tar-stream": "^2.1.0" + } + }, + "node_modules/merge": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "license": "MIT" + }, + "node_modules/mkpath": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/mocha": { + "version": "10.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@ungap/promise-all-settled": "1.1.2", + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "7.2.0", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/moment": { + "version": "2.29.4", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prettyjson": { + "version": "1.2.5", + "license": "MIT", + "dependencies": { + "colors": "1.4.0", + "minimist": "^1.2.0" + }, + "bin": { + "prettyjson": "bin/prettyjson" + } + }, + "node_modules/printj": { + "version": "1.1.2", + "license": "Apache-2.0", + "bin": { + "printj": "bin/printj.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request": { + "version": "2.88.2", + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split2": { + "version": "3.2.2", + "license": "ISC", + "dependencies": { + "readable-stream": "^3.0.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/ssf": { + "version": "0.11.2", + "license": "Apache-2.0", + "dependencies": { + "frac": "~1.1.2" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/sshpk": { + "version": "1.17.0", + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackman": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "after-all-results": "^2.0.0", + "async-cache": "^1.1.0", + "debug": "^2.2.0", + "error-callsites": "^1.0.1", + "load-source-map": "^1.0.0", + "path-is-absolute": "^1.0.1" + } + }, + "node_modules/stream-throttle": { + "version": "0.1.3", + "license": "BSD-3-Clause", + "dependencies": { + "commander": "^2.2.0", + "limiter": "^1.0.5" + }, + "bin": { + "throttleproxy": "bin/throttleproxy.js" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/syslogd": { + "version": "1.1.2", + "license": "ISC", + "dependencies": { + "debug": "^2.1.0" + } + }, + "node_modules/tail-forever": { + "version": "0.3.16", + "dependencies": { + "iconv-lite": "*", + "jschardet": "*", + "uclogs-async": "*", + "underscore": "*" + } + }, + "node_modules/through2": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "readable-stream": "3" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/try-call": { + "version": "0.0.2", + "license": "BSD" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "license": "Unlicense" + }, + "node_modules/uclogs-async": { + "version": "0.1.0" + }, + "node_modules/underscore": { + "version": "1.13.4", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/websocket-stream": { + "optional": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.1", + "dev": true, + "license": "ISC" + }, + "node_modules/xlsx": { + "version": "0.17.0", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.2.0", + "cfb": "^1.1.4", + "codepage": "~1.14.0", + "commander": "~2.17.1", + "crc-32": "~1.2.0", + "exit-on-epipe": "~1.0.1", + "fflate": "^0.3.8", + "ssf": "~0.11.2", + "wmf": "~1.0.1", + "word": "~0.3.0" + }, + "bin": { + "xlsx": "bin/xlsx.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/xlsx/node_modules/commander": { + "version": "2.17.1", + "license": "MIT" + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "license": "ISC" + }, + "node_modules/yargs": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "license": "ISC", + "engines": { + "node": ">=10" + } + } + } +} diff --git a/node_modules/@sematext/logagent/.eslintrc.json b/node_modules/@sematext/logagent/.eslintrc.json new file mode 100644 index 00000000..7dd7f146 --- /dev/null +++ b/node_modules/@sematext/logagent/.eslintrc.json @@ -0,0 +1,35 @@ +{ + "globals": { + "describe": true, + "it": true + }, + "env": { + "es6": true, + "node": true + }, + "extends": "eslint:recommended", + "rules": { + "indent": [ + "error", + 2, + { + "SwitchCase": 1 + } + ], + "linebreak-style": [ + "error", + "unix" + ], + "semi": [ + "error", + "never" + ], + "no-console": [ + 0 + ], + "no-unused-vars": [ + 2, + {"vars": "local", "args": "none"} + ] + } +} diff --git a/node_modules/@sematext/logagent/.idea/codeStyles/Project.xml b/node_modules/@sematext/logagent/.idea/codeStyles/Project.xml new file mode 100644 index 00000000..229ade93 --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/codeStyles/Project.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/codeStyles/codeStyleConfig.xml b/node_modules/@sematext/logagent/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 00000000..79ee123c --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/inspectionProfiles/Project_Default.xml b/node_modules/@sematext/logagent/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..b051b3f6 --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/jsLinters/jshint.xml b/node_modules/@sematext/logagent/.idea/jsLinters/jshint.xml new file mode 100644 index 00000000..8e9049dd --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/jsLinters/jshint.xml @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/logagent-js.iml b/node_modules/@sematext/logagent/.idea/logagent-js.iml new file mode 100644 index 00000000..d6ebd480 --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/logagent-js.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/misc.xml b/node_modules/@sematext/logagent/.idea/misc.xml new file mode 100644 index 00000000..59780fef --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/modules.xml b/node_modules/@sematext/logagent/.idea/modules.xml new file mode 100644 index 00000000..b6da7f49 --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/thriftCompiler.xml b/node_modules/@sematext/logagent/.idea/thriftCompiler.xml new file mode 100644 index 00000000..7bc123c6 --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/thriftCompiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/.idea/vcs.xml b/node_modules/@sematext/logagent/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/node_modules/@sematext/logagent/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/CHANGELOG.md b/node_modules/@sematext/logagent/CHANGELOG.md new file mode 100644 index 00000000..d68e2b9f --- /dev/null +++ b/node_modules/@sematext/logagent/CHANGELOG.md @@ -0,0 +1,2094 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are displayed in UTC. + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +#### [3.2.0](https://github.com/sematext/logagent-js/compare/3.1.4...3.2.0) + +> 19 September 2022 + +- Bump jose from 1.28.1 to 1.28.2 [`#315`](https://github.com/sematext/logagent-js/pull/315) +- Drop prettier-standard [`#314`](https://github.com/sematext/logagent-js/pull/314) +- Change prettier-standard dependency to patched repository [`#313`](https://github.com/sematext/logagent-js/pull/313) +- Migrate to Buffer.alloc() [`#310`](https://github.com/sematext/logagent-js/pull/310) +- Stop spamming logs [`#312`](https://github.com/sematext/logagent-js/pull/312) +- SC-13832 Update dependencies [`#311`](https://github.com/sematext/logagent-js/pull/311) +- Update dependencies [`b014a0e`](https://github.com/sematext/logagent-js/commit/b014a0e0daf5f755780d9ef0f888cd50bf201f52) + +#### [3.1.4](https://github.com/sematext/logagent-js/compare/3.1.3...3.1.4) + +> 6 September 2022 + +- Bump node-fetch from 2.6.1 to 2.6.7 [`#309`](https://github.com/sematext/logagent-js/pull/309) +- Bump moment-timezone from 0.5.31 to 0.5.35 [`#308`](https://github.com/sematext/logagent-js/pull/308) +- Bump moment from 2.29.2 to 2.29.4 [`#307`](https://github.com/sematext/logagent-js/pull/307) +- Release 3.1.4 [`56f5344`](https://github.com/sematext/logagent-js/commit/56f5344a2e931133254ddd6e824400fa8a831e6f) + +#### [3.1.3](https://github.com/sematext/logagent-js/compare/3.1.2...3.1.3) + +> 19 July 2022 + +- Fix for debug flag ignore issue [`#306`](https://github.com/sematext/logagent-js/pull/306) +- Bump moment from 2.29.1 to 2.29.2 [`#302`](https://github.com/sematext/logagent-js/pull/302) +- Release 3.1.3 [`72f59a4`](https://github.com/sematext/logagent-js/commit/72f59a4fe612d4ae3d59100b9d02113111d1717c) + +#### [3.1.2](https://github.com/sematext/logagent-js/compare/3.1.1...3.1.2) + +> 6 April 2022 + +- Remove node-windows dependency due to an upstream conflict [`e34785c`](https://github.com/sematext/logagent-js/commit/e34785c022846e7dbacfbad79669163802e407b2) +- Release 3.1.2 [`3b27507`](https://github.com/sematext/logagent-js/commit/3b2750726498f41d70014bd2d1fb84b8218e6adc) + +#### [3.1.1](https://github.com/sematext/logagent-js/compare/3.1.0...3.1.1) + +> 1 April 2022 + +- Bump requestretry from 3.1.0 to 7.0.0 [`#300`](https://github.com/sematext/logagent-js/pull/300) +- Bump node-fetch from 2.6.1 to 2.6.7 [`#298`](https://github.com/sematext/logagent-js/pull/298) +- Add missing dependencies [`8afa40d`](https://github.com/sematext/logagent-js/commit/8afa40dcbabe99a13d6db2fa88bdf5621a118711) +- Add missing dependencies for Request and Graceful-fs [`3fd5a39`](https://github.com/sematext/logagent-js/commit/3fd5a396b7dcf335b0d33525fee44196d0d456bf) +- Release 3.1.1 [`cc0f302`](https://github.com/sematext/logagent-js/commit/cc0f302ca041c6f4a3a10f3e1736e7e8f958f579) + +#### [3.1.0](https://github.com/sematext/logagent-js/compare/3.0.72...3.1.0) + +> 29 March 2022 + +- Graceful-fs filesystem [`#301`](https://github.com/sematext/logagent-js/pull/301) +- Bump ajv from 6.11.0 to 6.12.6 [`#297`](https://github.com/sematext/logagent-js/pull/297) +- Revert "SC-12473 Comment code of container image digest (sha256)" [`#296`](https://github.com/sematext/logagent-js/pull/296) +- SC-12473 Comment code of container image digest (sha256) [`#295`](https://github.com/sematext/logagent-js/pull/295) +- Bump aws-sdk from 2.689.0 to 2.814.0 [`#290`](https://github.com/sematext/logagent-js/pull/290) +- [load-creds-from-ec2-role] [`#289`](https://github.com/sematext/logagent-js/pull/289) +- [load-creds-from-ec2-role] [`#288`](https://github.com/sematext/logagent-js/pull/288) +- Bump set-value from 3.0.2 to 4.0.1 [`#287`](https://github.com/sematext/logagent-js/pull/287) +- Update azure-event-hub.js [`#285`](https://github.com/sematext/logagent-js/pull/285) +- Bump path-parse from 1.0.6 to 1.0.7 [`#284`](https://github.com/sematext/logagent-js/pull/284) +- Update azure-event-hub.js [`#282`](https://github.com/sematext/logagent-js/pull/282) +- Update dependencies [`b8223bd`](https://github.com/sematext/logagent-js/commit/b8223bd7a2c7787798d7f4195a618ff05d331c16) +- [load-creds-from-ec2-role] revert the changes [`3fb3917`](https://github.com/sematext/logagent-js/commit/3fb3917c6d6a7cf6c7e690d640211bdadec7e136) +- [load-creds-from-ec2-role] update aws elasticsearch output plugin to load credentials from IAM role attached to an EC2 instance [`53c2858`](https://github.com/sematext/logagent-js/commit/53c28583ca8bf08c376fecc8c946f18aef70be0b) + +#### [3.0.72](https://github.com/sematext/logagent-js/compare/3.0.71...3.0.72) + +> 2 July 2021 + +- input-journald-upload: use removeFields from config, fix include/exclude test [`#277`](https://github.com/sematext/logagent-js/pull/277) +- input-journald-upload: use removeFields from config [`6aadf20`](https://github.com/sematext/logagent-js/commit/6aadf20fc2ba94caee70221f703eddc4eaaf6b3b) +- Release 3.0.72 [`e3dbd62`](https://github.com/sematext/logagent-js/commit/e3dbd629995c05435ac632b9f45ef41b83a9f03b) + +#### [3.0.71](https://github.com/sematext/logagent-js/compare/3.0.70...3.0.71) + +> 1 July 2021 + +- added missing dep [`21cf019`](https://github.com/sematext/logagent-js/commit/21cf019f5165363ae0b8be03e9b57fabe4a093e5) +- Release 3.0.71 [`393e96c`](https://github.com/sematext/logagent-js/commit/393e96c2c513a0215f6aa2c562df5de3bb672411) +- update debug logging [`7d3097b`](https://github.com/sematext/logagent-js/commit/7d3097b51f7522171da29684afd40e7a6da5c327) + +#### [3.0.70](https://github.com/sematext/logagent-js/compare/3.0.69...3.0.70) + +> 25 June 2021 + +- Vercel receiver: added test case [`#280`](https://github.com/sematext/logagent-js/pull/280) +- Refactoring to use multiple Vercel client secrets [`#279`](https://github.com/sematext/logagent-js/pull/279) +- refactor: multiple client secrets [`3c11a81`](https://github.com/sematext/logagent-js/commit/3c11a8156facaf2786b0c37aa5802028cb9b8c11) +- Release 3.0.70 [`94ec683`](https://github.com/sematext/logagent-js/commit/94ec683c72df0d694268118c0445e2b4e98d3d3a) +- add another test case [`877a228`](https://github.com/sematext/logagent-js/commit/877a22833d0f800a13b502c9e46f46e94da7b83a) + +#### [3.0.69](https://github.com/sematext/logagent-js/compare/3.0.68...3.0.69) + +> 22 June 2021 + +- Bump aedes from 0.36.0 to 0.42.1 [`#278`](https://github.com/sematext/logagent-js/pull/278) +- update deps [`668b60b`](https://github.com/sematext/logagent-js/commit/668b60b829dd3e2c1bbc037817ccb8f0bbd5d208) +- Release 3.0.69 [`082f3ba`](https://github.com/sematext/logagent-js/commit/082f3bafdf854eb703c3ade42b2564743b0cfdf9) +- manage dep [`525e436`](https://github.com/sematext/logagent-js/commit/525e4368af4f4b9b0d10f76b13e679f24ba4f7ab) + +#### [3.0.68](https://github.com/sematext/logagent-js/compare/3.0.67...3.0.68) + +> 7 April 2021 + +- updated rabbitmq patterns [`#276`](https://github.com/sematext/logagent-js/pull/276) +- hotfix: added object literal check for drop events filter [`31de82f`](https://github.com/sematext/logagent-js/commit/31de82ff0901c0782926c9f607552eddd2664e3c) +- added config for dropping event in k8s [`2186471`](https://github.com/sematext/logagent-js/commit/2186471a2ffd088944832ad7565d05ad1713f4d3) +- Release 3.0.68 [`af1661e`](https://github.com/sematext/logagent-js/commit/af1661efcb69812bc495524cbc07a1c55e0767ec) + +#### [3.0.67](https://github.com/sematext/logagent-js/compare/3.0.66...3.0.67) + +> 23 February 2021 + +- SC-10763: Added formatting for cached requests [`#274`](https://github.com/sematext/logagent-js/pull/274) +- SC-10763: added formatting for cached requests [`7153bda`](https://github.com/sematext/logagent-js/commit/7153bda6ead6420127cb90df044d05bccacddba8) +- Release 3.0.67 [`39b041b`](https://github.com/sematext/logagent-js/commit/39b041bdc3bab25116c59f55e8af7076a97e95f8) + +#### [3.0.66](https://github.com/sematext/logagent-js/compare/3.0.65...3.0.66) + +> 2 February 2021 + +- Added check for token to be anonymized in error logs [`41ec35d`](https://github.com/sematext/logagent-js/commit/41ec35d2aa2ec2edda35448ee4d2a23938b55b40) +- Release 3.0.66 [`abd1d1d`](https://github.com/sematext/logagent-js/commit/abd1d1d6b752ec54c0f1b6155324dd19bf8b6206) + +#### [3.0.65](https://github.com/sematext/logagent-js/compare/3.0.64...3.0.65) + +> 20 January 2021 + +- Release 3.0.65 [`2394f0d`](https://github.com/sematext/logagent-js/commit/2394f0dea21bf835908e5ae73c411bfacd5617a3) +- edit sample syslog file [`0ac8ecc`](https://github.com/sematext/logagent-js/commit/0ac8ecce29d7cf28e1d06e56455eb6474e2e6eb0) +- Merge pull request #272 from sematext/syslog-tags [`cc583dd`](https://github.com/sematext/logagent-js/commit/cc583dd6651194a84a6d3e6a17bdb55571d76aea) + +#### [3.0.64](https://github.com/sematext/logagent-js/compare/3.0.63...3.0.64) + +> 5 January 2021 + +- Release 3.0.64 [`54f10b4`](https://github.com/sematext/logagent-js/commit/54f10b4409a2714777162c816931163347cbef98) +- Merge pull request #271 from sematext/hotfix-systemd-journal-upload [`ab397ea`](https://github.com/sematext/logagent-js/commit/ab397eacb2cfda57e46e15df433a09ebf82f487e) +- hotfix: added config.url and removed breaking toLowerCase [`945dddc`](https://github.com/sematext/logagent-js/commit/945dddca436be92f0cd8c7e30e02601f5426d713) + +#### [3.0.63](https://github.com/sematext/logagent-js/compare/3.0.62...3.0.63) + +> 29 December 2020 + +- Release 3.0.63 [`f4f9321`](https://github.com/sematext/logagent-js/commit/f4f93216515d4e41266759bc9154778d4bcf5d03) + +#### [3.0.62](https://github.com/sematext/logagent-js/compare/3.0.61...3.0.62) + +> 22 December 2020 + +- Release 3.0.62 [`dda659c`](https://github.com/sematext/logagent-js/commit/dda659c6c598ff50cb9783218ca69837f346decf) +- Merge pull request #270 from sematext/sc-10519-journald-outputfilter-matchsource [`65f6d7b`](https://github.com/sematext/logagent-js/commit/65f6d7beca5535ef0c4d5b565cd7193c5942a19e) +- added sample config for testing journald matchsource [`523d20d`](https://github.com/sematext/logagent-js/commit/523d20d6f35dcff5fdba0d777208e38ae2da3b1f) + +#### [3.0.61](https://github.com/sematext/logagent-js/compare/3.0.60...3.0.61) + +> 9 December 2020 + +- Release 3.0.61 [`410a3b0`](https://github.com/sematext/logagent-js/commit/410a3b04a34912aa4f296d79f332b6e417a5074c) +- Merge pull request #269 from sematext/sc-10353-ecs-improvements [`135dfac`](https://github.com/sematext/logagent-js/commit/135dfaca52a5d5f086c46c1c77b304d25da8dd45) +- added gzip [`e687ee9`](https://github.com/sematext/logagent-js/commit/e687ee9fd83e479a47ae381487b792787a0dad20) + +#### [3.0.60](https://github.com/sematext/logagent-js/compare/3.0.59...3.0.60) + +> 4 December 2020 + +- initial setup for aws-ecs la receiver [`100b342`](https://github.com/sematext/logagent-js/commit/100b3422da3f19125384c5867e066e2e73a2dc6b) +- added parsing for log.messages with log.sourceName [`f21bec4`](https://github.com/sematext/logagent-js/commit/f21bec4991a8c141ee158c583299ca6996e3f919) +- Release 3.0.60 [`c101541`](https://github.com/sematext/logagent-js/commit/c10154108caaf1b9c6496d05541f0fcc38a75e5f) + +#### [3.0.59](https://github.com/sematext/logagent-js/compare/3.0.58...3.0.59) + +> 27 November 2020 + +- Don't pull build images if not needed [`#265`](https://github.com/sematext/logagent-js/pull/265) +- Fix collections pattern for Solr audit logs [`#262`](https://github.com/sematext/logagent-js/pull/262) +- Release 3.0.59 [`458ae22`](https://github.com/sematext/logagent-js/commit/458ae2213fbdf4b06c9c3eaae66a67735c60eeec) +- removed node 15 from travis [`d5ca8a4`](https://github.com/sematext/logagent-js/commit/d5ca8a42dbc3c4579475e97fca9b390f196401be) +- Merge pull request #266 from sematext/sc-10318-heroku-log-parsing [`9172cfd`](https://github.com/sematext/logagent-js/commit/9172cfdd396d191dcbe57f03d327a51ecb5867db) + +#### [3.0.58](https://github.com/sematext/logagent-js/compare/3.0.57...3.0.58) + +> 13 October 2020 + +- Fix #256 Write after stream end [`#261`](https://github.com/sematext/logagent-js/pull/261) +- Merge pull request #261 from sematext/sc-9545-fix-stream-err [`#256`](https://github.com/sematext/logagent-js/issues/256) +- cleaned up output files plugin [`ad6dcce`](https://github.com/sematext/logagent-js/commit/ad6dcced2e58634f998adb55aafb758b2a66933c) +- Linting cleanup [`14ba81e`](https://github.com/sematext/logagent-js/commit/14ba81e52b5e94a0a4cd04d905f897a74b5d03a9) +- Linting... [`c51eaee`](https://github.com/sematext/logagent-js/commit/c51eaeef7e68abd17315c4220dddd6db9fd6e4f5) + +#### [3.0.57](https://github.com/sematext/logagent-js/compare/3.0.56...3.0.57) + +> 8 October 2020 + +- hotfix: added rabbitmq_startup match and updated logsene-js version [`cef3512`](https://github.com/sematext/logagent-js/commit/cef35121b0a69f70b36f0e0951f6b7d3119fb5df) +- Release 3.0.57 [`9ff35df`](https://github.com/sematext/logagent-js/commit/9ff35df13b98d8a24456e87050a69cd81e0daa6d) + +#### [3.0.56](https://github.com/sematext/logagent-js/compare/3.0.55...3.0.56) + +> 1 October 2020 + +- logagent-setup: install service with custom config [`#260`](https://github.com/sematext/logagent-js/pull/260) +- Make default journald config easier to extend [`#259`](https://github.com/sematext/logagent-js/pull/259) +- Release 3.0.56 [`3a07f31`](https://github.com/sematext/logagent-js/commit/3a07f31089d44523da94017bf022aebef4bc8256) +- fixed bug (-l didn't work); also fixed doc for -j [`0002092`](https://github.com/sematext/logagent-js/commit/00020925a542de2b642c77eadd940600633539ed) + +#### [3.0.55](https://github.com/sematext/logagent-js/compare/3.0.54...3.0.55) + +> 25 September 2020 + +- Release 3.0.55 [`88d63c4`](https://github.com/sematext/logagent-js/commit/88d63c46798a115c9fc2c29e505ab4632acdca6b) +- Merge pull request #258 from sematext/sc-9544-journald-fix [`19adfc9`](https://github.com/sematext/logagent-js/commit/19adfc90f77cfed8d4535feb084ef40d31d38694) +- SC-9544: added lowercase fields filter [`163c598`](https://github.com/sematext/logagent-js/commit/163c59832aea2060a86ce103eba6b26adee66c16) + +#### [3.0.54](https://github.com/sematext/logagent-js/compare/3.0.53...3.0.54) + +> 23 September 2020 + +- made colon optional for authentication messages [`#257`](https://github.com/sematext/logagent-js/pull/257) +- Added Apache Flink patterns [`f77586a`](https://github.com/sematext/logagent-js/commit/f77586a6f2a9cbdbbf547ec70f1f7e45bafa69bb) +- Release 3.0.54 [`6a1e15d`](https://github.com/sematext/logagent-js/commit/6a1e15d5fb6c5d4aba17f90d2ab2510ee1915cbb) +- Audited deps [`e6d0486`](https://github.com/sematext/logagent-js/commit/e6d048633931df732dca6ebc803c0cb4d828067b) + +#### [3.0.53](https://github.com/sematext/logagent-js/compare/3.0.52...3.0.53) + +> 2 September 2020 + +- Release 3.0.53 [`4da5588`](https://github.com/sematext/logagent-js/commit/4da5588cd7e697307deee92b7907b35f1c61eba0) +- Merge pull request #254 from sematext/hotfix-k8s-enrichment-dropping-logs [`bef4577`](https://github.com/sematext/logagent-js/commit/bef4577ad2c4977dd09193516a6a8bc55957c52b) +- Added log forwarding in initK8sClient [`97e2fb6`](https://github.com/sematext/logagent-js/commit/97e2fb63cc48820418551142ed859c0163b470da) + +#### [3.0.52](https://github.com/sematext/logagent-js/compare/3.0.51...3.0.52) + +> 21 August 2020 + +- Release 3.0.52 [`e76ffe4`](https://github.com/sematext/logagent-js/commit/e76ffe4dc2317b39c3dde5ebc3c7b2ceee750e7b) +- Merge pull request #253 from sematext/geo-refactor [`1828440`](https://github.com/sematext/logagent-js/commit/18284405441475e98404e659a8f1034315048293) +- removed maxmind code from geoip; added public ip fetching code to geoip [`86aeb87`](https://github.com/sematext/logagent-js/commit/86aeb87b93585674cd01b701c22db2e653b649de) + +#### [3.0.51](https://github.com/sematext/logagent-js/compare/3.0.50...3.0.51) + +> 18 August 2020 + +- logagent-setup can configure journalctl [`#252`](https://github.com/sematext/logagent-js/pull/252) +- Lowercase multiline journal fields as well [`#251`](https://github.com/sematext/logagent-js/pull/251) +- Release 3.0.51 [`67954f0`](https://github.com/sematext/logagent-js/commit/67954f02430d1cc8cc585cefc250f3f917c5e11e) + +#### [3.0.50](https://github.com/sematext/logagent-js/compare/3.0.49...3.0.50) + +> 17 August 2020 + +- Release 3.0.50 [`409a11b`](https://github.com/sematext/logagent-js/commit/409a11b273bca4154d6bb732caf2b86ac52ec556) +- SC-9192: added another keepalive [`bb11cca`](https://github.com/sematext/logagent-js/commit/bb11ccaa9f3d5f35ba4d3c5ee4f4672983763e2b) + +#### [3.0.49](https://github.com/sematext/logagent-js/compare/3.0.48...3.0.49) + +> 17 August 2020 + +- Release 3.0.49 [`f10f1db`](https://github.com/sematext/logagent-js/commit/f10f1db545adf35dfc14407dc0e5d11daac36555) +- SC-8299: Fix Github title and body parsing [`6517da0`](https://github.com/sematext/logagent-js/commit/6517da0b22f9e072ac4c49adc424ca6112817f9c) + +#### [3.0.48](https://github.com/sematext/logagent-js/compare/3.0.47...3.0.48) + +> 17 August 2020 + +- SC-9192: increased socket timeout [`67b79d1`](https://github.com/sematext/logagent-js/commit/67b79d1726b931abbb02d3a9dc95575b58187e9d) +- Release 3.0.48 [`db6d73f`](https://github.com/sematext/logagent-js/commit/db6d73f2d92f375a4a363037ddddf94322cd6ed7) + +#### [3.0.47](https://github.com/sematext/logagent-js/compare/3.0.46...3.0.47) + +> 17 August 2020 + +- improvements to command input around QUERY_TIME [`#249`](https://github.com/sematext/logagent-js/pull/249) +- Release 3.0.47 [`9a50a45`](https://github.com/sematext/logagent-js/commit/9a50a45aa7719c5372a13505f5f8ef6c9c7fe132) +- Merge pull request #250 from sematext/sc-9192-fix-closed-prematurely [`30198cb`](https://github.com/sematext/logagent-js/commit/30198cbc327fc9a6a09b4d4533a0a9b4ab7c833c) +- linted code [`cd199f5`](https://github.com/sematext/logagent-js/commit/cd199f59b9340b0dbc63ba3dbd491de825d4cc46) + +#### [3.0.46](https://github.com/sematext/logagent-js/compare/3.0.45...3.0.46) + +> 7 August 2020 + +- Updated `logsene-js` logger [`#248`](https://github.com/sematext/logagent-js/pull/248) +- Release 3.0.46 [`04d4914`](https://github.com/sematext/logagent-js/commit/04d4914f00202ef6c24cb93bbc0dcbd0d1ee06fc) +- updated logsene-js and added better error handling [`4cb42f7`](https://github.com/sematext/logagent-js/commit/4cb42f733a6a9cd06ce90a27bc22feeb6c05d97d) + +#### [3.0.45](https://github.com/sematext/logagent-js/compare/3.0.44...3.0.45) + +> 4 August 2020 + +- Output Filter for renaming fields [`#247`](https://github.com/sematext/logagent-js/pull/247) +- Expanded RabbitMQ patterns [`#246`](https://github.com/sematext/logagent-js/pull/246) +- added output filter for renaming fields [`2a27e5b`](https://github.com/sematext/logagent-js/commit/2a27e5bc0cfd62c430a4f439c831d33d9da0a980) +- Release 3.0.45 [`fd71ec5`](https://github.com/sematext/logagent-js/commit/fd71ec5b6e0122d7ebe90da873e1bf788e464669) +- lint [`c2f1c1d`](https://github.com/sematext/logagent-js/commit/c2f1c1d350a89837f00567f602eced5d5554e834) + +#### [3.0.44](https://github.com/sematext/logagent-js/compare/3.0.43...3.0.44) + +> 24 July 2020 + +- Use --network=host when building images [`#245`](https://github.com/sematext/logagent-js/pull/245) +- Release 3.0.44 [`ec169c9`](https://github.com/sematext/logagent-js/commit/ec169c99a997d119eecb0099fdca76c8c2eb9ce6) + +#### [3.0.43](https://github.com/sematext/logagent-js/compare/3.0.42...3.0.43) + +> 23 July 2020 + +- logagent-setup makes journald-upload receiver [`#239`](https://github.com/sematext/logagent-js/pull/239) +- Extend parsing Postgres logs [`#243`](https://github.com/sematext/logagent-js/pull/243) +- Release 3.0.43 [`f534a7e`](https://github.com/sematext/logagent-js/commit/f534a7e8f98376333e997a77aaed46710d2f073c) +- Merge pull request #244 from sematext/sc-8931-k8s-containerd-hotfix [`f2d9921`](https://github.com/sematext/logagent-js/commit/f2d9921b1a8288a10e69f20b70423ac5bd7cafbe) +- added ibm cloud k8s example ds configs [`1fe97f7`](https://github.com/sematext/logagent-js/commit/1fe97f761f899233029a4af3cc59700f662f37e7) + +#### [3.0.42](https://github.com/sematext/logagent-js/compare/3.0.41...3.0.42) + +> 2 July 2020 + +- Release 3.0.42 [`39ca523`](https://github.com/sematext/logagent-js/commit/39ca523abd6b3876173a0038a53c9488541a642b) +- Merge pull request #242 from sematext/sc-8687-cf-log-parsing [`88de1ca`](https://github.com/sematext/logagent-js/commit/88de1cae9a84c7cedb632f5beb7bd7a772e59675) +- improvements for cf parsing [`51f1b42`](https://github.com/sematext/logagent-js/commit/51f1b42b0e0ede946cafaa341a5fcb71323778b2) + +#### [3.0.41](https://github.com/sematext/logagent-js/compare/3.0.40...3.0.41) + +> 1 July 2020 + +- Release 3.0.41 [`6231981`](https://github.com/sematext/logagent-js/commit/623198123ecba73a02963a1d0128a8f16442522d) +- Merge pull request #241 from sematext/sc-8687-cf-log-parsing [`6175d39`](https://github.com/sematext/logagent-js/commit/6175d39ad4be3718da463c443fc612bdb8f42daa) +- added additional patterns for Cloudfoundry [`4f8797b`](https://github.com/sematext/logagent-js/commit/4f8797b0cb5ed737d7842ca60785548acbc6df21) + +#### [3.0.40](https://github.com/sematext/logagent-js/compare/3.0.39...3.0.40) + +> 4 June 2020 + +- refactored containerd input filter [`f7803d1`](https://github.com/sematext/logagent-js/commit/f7803d1097d1310ba74699aab19dd6478a7aa519) +- cleanup; added comments; removed consolelogs [`e68de73`](https://github.com/sematext/logagent-js/commit/e68de73f82fb52788e1b0c4f1e4aab98e245e605) +- fix parsing k8s filenames [`913f89a`](https://github.com/sematext/logagent-js/commit/913f89a105cf303e63b0d3fd8257fa7677494748) + +#### [3.0.39](https://github.com/sematext/logagent-js/compare/3.0.38...3.0.39) + +> 20 May 2020 + +- Release 3.0.39 [`ace14e0`](https://github.com/sematext/logagent-js/commit/ace14e00250d1b35c1079ed8ce31c00543c53f3c) +- Merge pull request #235 from sematext/vercel-integration-updates [`37532b4`](https://github.com/sematext/logagent-js/commit/37532b4d073c90b1c96e8fdaaecdbd8e5f32f7d9) +- added error parsing for vercel logs [`079cee5`](https://github.com/sematext/logagent-js/commit/079cee54efe4eb76e9754d739db06a6a8fe82a67) + +#### [3.0.38](https://github.com/sematext/logagent-js/compare/3.0.37...3.0.38) + +> 19 May 2020 + +- hotfix: added check for assignee object [`52df824`](https://github.com/sematext/logagent-js/commit/52df82426b5ce86cd9fc5448c222b608122e3def) +- Release 3.0.38 [`c16b1cb`](https://github.com/sematext/logagent-js/commit/c16b1cbab829084386670b3de9bebe05b29612d7) + +#### [3.0.37](https://github.com/sematext/logagent-js/compare/3.0.36...3.0.37) + +> 19 May 2020 + +- Release 3.0.37 [`08ed70e`](https://github.com/sematext/logagent-js/commit/08ed70e7320a93849b817f9dffe3951d3ae3d1a6) +- Merge pull request #234 from sematext/vercel-integration [`207e86a`](https://github.com/sematext/logagent-js/commit/207e86a8762a13a63af6bcf48a9272e38297647a) +- linted code with prettier [`559fb23`](https://github.com/sematext/logagent-js/commit/559fb233fd14a557aa7193980f200268f314eac1) + +#### [3.0.36](https://github.com/sematext/logagent-js/compare/3.0.35...3.0.36) + +> 7 May 2020 + +- Release 3.0.36 [`99adca7`](https://github.com/sematext/logagent-js/commit/99adca779aa6a15ca492fb335fd8eb777c48fd7b) +- Merge pull request #231 from sematext/fix-docker-log-routing [`97b2c1d`](https://github.com/sematext/logagent-js/commit/97b2c1df5c8ba8b5034bd11a7e9063f701184852) +- separated LOGS_RECEIVER_URL and LOGS_RECEIVER_URLS in the config; use singular for only one URL or the plural when configuring multiple endpoints [`6a7f44e`](https://github.com/sematext/logagent-js/commit/6a7f44e3ed1f6a7e3ac666a42be77ba1df6db792) + +#### [3.0.35](https://github.com/sematext/logagent-js/compare/3.0.34...3.0.35) + +> 1 May 2020 + +- added error handler for getPodSpec [`9a261a7`](https://github.com/sematext/logagent-js/commit/9a261a7e733dca2989f4d00c894a9281b6ed5422) +- Release 3.0.35 [`12ce012`](https://github.com/sematext/logagent-js/commit/12ce01221d92146da1d7cd3a0abf2cf70e2f976d) +- remove conditional for getPodSpec [`4cf26af`](https://github.com/sematext/logagent-js/commit/4cf26afacdcef3af2da7bb76f5d90a57dfd9933f) + +#### [3.0.34](https://github.com/sematext/logagent-js/compare/3.0.33...3.0.34) + +> 30 April 2020 + +- params and core parsing to Solr 7.x/8.x logs [`#225`](https://github.com/sematext/logagent-js/pull/225) +- Release 3.0.34 [`928f3bb`](https://github.com/sematext/logagent-js/commit/928f3bb08bc70d5f74409087175905fb65cdddb0) +- Merge pull request #227 from sematext/remove-container-host-hostname [`259a740`](https://github.com/sematext/logagent-js/commit/259a740fb14979d9ec5dc647c3c941acd8b096ae) +- Removed container.host.hostname from docker and k8s enrichment [`5358f10`](https://github.com/sematext/logagent-js/commit/5358f1046866d859f7fac7f38fca515bdb6a06d6) + +#### [3.0.33](https://github.com/sematext/logagent-js/compare/3.0.32...3.0.33) + +> 29 April 2020 + +- Add support for building multi-arch images [`#226`](https://github.com/sematext/logagent-js/pull/226) +- edit dockerfiles to enable LA monitoring [`d762d64`](https://github.com/sematext/logagent-js/commit/d762d64e0eb5795e131710ae593f037144fdc170) +- params and core parsing to Solr 7.x/8.x logs [`9ef4d12`](https://github.com/sematext/logagent-js/commit/9ef4d1291f214487c337700983858267e02aaca5) +- Added core parsing for "generic" Solr logs [`dc31f0b`](https://github.com/sematext/logagent-js/commit/dc31f0beeb0456935f313dbdd696e63196b86b86) + +#### [3.0.32](https://github.com/sematext/logagent-js/compare/3.0.31...3.0.32) + +> 16 April 2020 + +- Refactor commits field [`#223`](https://github.com/sematext/logagent-js/pull/223) +- Create graygelf in constructor once vs on every call to eventHandler [`#222`](https://github.com/sematext/logagent-js/pull/222) +- Sync [`#1`](https://github.com/sematext/logagent-js/pull/1) +- Gelf debug option [`#220`](https://github.com/sematext/logagent-js/pull/220) +- Edited commits field to be array instead of object to avoid 'Too many fields present in the index' issue [`01500b8`](https://github.com/sematext/logagent-js/commit/01500b8a2030333f9739c7f3f5b605574ccab7e8) +- Release 3.0.32 [`a89c663`](https://github.com/sematext/logagent-js/commit/a89c6638ded4d2baff85da90593e96d16f45e028) +- Create graygelf in constructor once vs on every call to eventHandle [`9a96990`](https://github.com/sematext/logagent-js/commit/9a969903a2e603ef6e962ba6e05d9932e7547527) + +#### [3.0.31](https://github.com/sematext/logagent-js/compare/3.0.30...3.0.31) + +> 7 April 2020 + +- Fix for #191 - refactoring LOGS_ENABLED logic [`#217`](https://github.com/sematext/logagent-js/pull/217) +- added fix for whitelisting k8s pods [`98921ca`](https://github.com/sematext/logagent-js/commit/98921cabb02794162f11de6f23bdccdb97b684ad) +- refactored logic for checking the logs_enabled env vars [`a9c65f9`](https://github.com/sematext/logagent-js/commit/a9c65f963cdab271ac75270f8972fcb3bd95489d) +- Release 3.0.31 [`0ef9444`](https://github.com/sematext/logagent-js/commit/0ef9444b877cc71d6faf041cf4943eb5761fe335) + +#### [3.0.30](https://github.com/sematext/logagent-js/compare/3.0.29...3.0.30) + +> 3 April 2020 + +- added dedicated user agent details field name [`f01c0d2`](https://github.com/sematext/logagent-js/commit/f01c0d2d4073fbae979e29d3f6c878d7d1000d82) +- Release 3.0.30 [`f6e4976`](https://github.com/sematext/logagent-js/commit/f6e4976c08422262df1251d6bf0b6b7dbca4b8ec) + +#### [3.0.29](https://github.com/sematext/logagent-js/compare/3.0.28...3.0.29) + +> 3 April 2020 + +- Fix for #213 - output filter for device detection and parsing of userAgent [`#214`](https://github.com/sematext/logagent-js/pull/214) +- Added patterns for Solr 7/8 and audit logs [`#216`](https://github.com/sematext/logagent-js/pull/216) +- Added patterns for Solr 7/8 and audit logs [`#215`](https://github.com/sematext/logagent-js/issues/215) +- changed device detector to output filter [`0cd8c22`](https://github.com/sematext/logagent-js/commit/0cd8c2202533b5c32141fef791f71a0be357ef15) +- Explicitly defining field types for Solr patterns [`756295e`](https://github.com/sematext/logagent-js/commit/756295e6273d6c2d01ad0a42d17e735e6dba6b9d) +- added input filter for device detection and parsing of userAgent headers for web logs [`6a44fb3`](https://github.com/sematext/logagent-js/commit/6a44fb3be9774715cea69531ca11f594a5cfe674) + +#### [3.0.28](https://github.com/sematext/logagent-js/compare/3.0.27...3.0.28) + +> 31 March 2020 + +- updated run script to have override for logagent config file, to set endpoints and indices in the config file instead of using env vars [`5d921f5`](https://github.com/sematext/logagent-js/commit/5d921f5f8ca8a77d89df1f0bf1b43f77ce4aac1a) +- Release 3.0.28 [`38b87d7`](https://github.com/sematext/logagent-js/commit/38b87d785f1a8c90ed157ebd162004232ceb2c8e) + +#### [3.0.27](https://github.com/sematext/logagent-js/compare/3.0.26...3.0.27) + +> 30 March 2020 + +- Release 3.0.27 [`09f8cbb`](https://github.com/sematext/logagent-js/commit/09f8cbba7b79938388dc56aa807a377464739c1b) +- updated default value for MAX_CLIENT_SOCKETS to 5 [`02cd275`](https://github.com/sematext/logagent-js/commit/02cd2752018f6a8d870102a85e97af2e506a3c27) +- updated logsene-js to 1.1.68 [`58d2ae4`](https://github.com/sematext/logagent-js/commit/58d2ae4b9138ec5970b1527015a20f36f849cb8c) + +#### [3.0.26](https://github.com/sematext/logagent-js/compare/3.0.25...3.0.26) + +> 25 March 2020 + +- Release 3.0.26 [`dbde4f0`](https://github.com/sematext/logagent-js/commit/dbde4f0a16f3e3949128edd90213f3b39380844c) +- fix github util healthcheck [`0d1a349`](https://github.com/sematext/logagent-js/commit/0d1a349fd433aa62061caa4e7389f3d52576415a) +- change debug to use consoleLogger [`4151ba3`](https://github.com/sematext/logagent-js/commit/4151ba3f6a1794a5f69f3c94d8248304e7b4c1dc) + +#### [3.0.25](https://github.com/sematext/logagent-js/compare/3.0.24...3.0.25) + +> 16 March 2020 + +- SC-7229: Refactor GitHub Webhook [`#211`](https://github.com/sematext/logagent-js/pull/211) +- added logs filter function; todo finish parser functions [`e5675b6`](https://github.com/sematext/logagent-js/commit/e5675b629a1d5ce1e2d2133384d644b9bc849c14) +- added formatting for release, create, and delete events [`3ef16cd`](https://github.com/sematext/logagent-js/commit/3ef16cdb1428494706851cde41bd4f89e3dc79db) +- added formatting for branch push event [`affef87`](https://github.com/sematext/logagent-js/commit/affef873d5fe0ec60b9b64675ac8abcfb30272d0) + +#### [3.0.24](https://github.com/sematext/logagent-js/compare/3.0.23...3.0.24) + +> 12 March 2020 + +- SC-7229: refactored input, moved parsing code to filter, added region config value [`9d43ad1`](https://github.com/sematext/logagent-js/commit/9d43ad16bb5a9f6d18938bc91dc01539331ec597) +- SC-7229: added basic structure for GitHub webhook events to use st logs filter and output [`ac027a2`](https://github.com/sematext/logagent-js/commit/ac027a28791bbde161bb66cf8df3c44d3b699ad4) +- es-output added debug option; cleaned up journald example config [`f743dbb`](https://github.com/sematext/logagent-js/commit/f743dbbc1ee6fbc2ad7469989e67104b4bfd9192) + +#### [3.0.23](https://github.com/sematext/logagent-js/compare/3.0.22...3.0.23) + +> 5 March 2020 + +- SC-7164: Added token blacklisting for Github Webhook input [`#209`](https://github.com/sematext/logagent-js/pull/209) +- added token blacklisting to github webhook input and st events output [`a7cb2c2`](https://github.com/sematext/logagent-js/commit/a7cb2c2e433ea3fec94995a7c52711ef4cba61cb) +- refactored tokenblacklist to have less if nesting [`d6b4507`](https://github.com/sematext/logagent-js/commit/d6b450732e974efc712ba94759f9bd6dd5d93055) +- Release 3.0.23 [`8d4859a`](https://github.com/sematext/logagent-js/commit/8d4859a369dcb0c0252e1dceef330bc56ff1fa6a) + +#### [3.0.22](https://github.com/sematext/logagent-js/compare/3.0.21...3.0.22) + +> 4 March 2020 + +- Code cleanup [`#208`](https://github.com/sematext/logagent-js/pull/208) +- Issue #206 [`#207`](https://github.com/sematext/logagent-js/pull/207) +- added dockerfile and run script for test config [`ead88f4`](https://github.com/sematext/logagent-js/commit/ead88f47c789c4fbd55d5df6a680d3188c4e0557) +- Release 3.0.22 [`07dc08e`](https://github.com/sematext/logagent-js/commit/07dc08ec5119f759338b3537f60b11113eeba0bb) +- hotfix: added missing env check for LOGS_TOKEN [`3e3cbc0`](https://github.com/sematext/logagent-js/commit/3e3cbc0f1595f50dcc8b108e9fe2dc40c7360b61) + +#### [3.0.21](https://github.com/sematext/logagent-js/compare/3.0.20...3.0.21) + +> 28 February 2020 + +- Make HTTP status for blacklisted tokens configurable [`#205`](https://github.com/sematext/logagent-js/pull/205) +- make HTTP status for blacklisted tokens configurable [`fd0f480`](https://github.com/sematext/logagent-js/commit/fd0f4803b5c5ff33e5f1a0344a64f4543da46786) +- Release 3.0.21 [`3a703f1`](https://github.com/sematext/logagent-js/commit/3a703f1488d55a2220afdcd7d80f49d244068fbb) + +#### [3.0.20](https://github.com/sematext/logagent-js/compare/3.0.19...3.0.20) + +> 27 February 2020 + +- update pattern file in docker image [`28826ee`](https://github.com/sematext/logagent-js/commit/28826ee1ddc4ac9ae60b84d497fa5df5b29427d1) +- add example for k8s annotations / log routing [`e8ee0af`](https://github.com/sematext/logagent-js/commit/e8ee0afb7e0fb43a2c2a1ebfe17764d6c024fedc) +- Release 3.0.20 [`b7f7525`](https://github.com/sematext/logagent-js/commit/b7f75257d38c1ac4b51923e43581167d16007577) + +#### [3.0.19](https://github.com/sematext/logagent-js/compare/3.0.18...3.0.19) + +> 27 February 2020 + +- Refactoring journald stream parser for multi-line fields [`#203`](https://github.com/sematext/logagent-js/pull/203) +- Add token blacklists to HTTP receivers [`#202`](https://github.com/sematext/logagent-js/pull/202) +- fix whitelisting pods via k8s annotations [`#201`](https://github.com/sematext/logagent-js/pull/201) +- Update date-fns to 2.9.0 [`#200`](https://github.com/sematext/logagent-js/pull/200) +- Edited release-it [`#199`](https://github.com/sematext/logagent-js/pull/199) +- refactoring journald stream parser for multi-line fields [`64f4358`](https://github.com/sematext/logagent-js/commit/64f435872178ea16357e4bcad13b3a3db63f6802) +- adjust date parser to date-fns@2.9.0 [`60e596b`](https://github.com/sematext/logagent-js/commit/60e596b2b4a64d917306df9796962de4abb9a791) +- fix whitelisting pods via k8s annotations and LOGSENE_ENABLE_DEFAULT=false #191 [`789ae3a`](https://github.com/sematext/logagent-js/commit/789ae3a0d8d8a966c2241321f08c657ac8e8ec01) + +#### [3.0.18](https://github.com/sematext/logagent-js/compare/3.0.17...3.0.18) + +> 21 February 2020 + +- Journald streaming mode [`#197`](https://github.com/sematext/logagent-js/pull/197) +- Update journald-upload-receiver.yaml [`#196`](https://github.com/sematext/logagent-js/pull/196) +- Add nodejs monitoring plugin [`#198`](https://github.com/sematext/logagent-js/pull/198) +- add streaming mode for jounrald plugin [`ef4835c`](https://github.com/sematext/logagent-js/commit/ef4835c6ea7a80c45b5ff5c2eaf13ea68a5080d8) +- fix syslog facility value undefined, keep numeric values [`e56ca35`](https://github.com/sematext/logagent-js/commit/e56ca355d12b0acd9f210096ff95ffeef0792a62) +- detect numeric fields in jounrald logs [`ce3457b`](https://github.com/sematext/logagent-js/commit/ce3457b4609cceb8c12bebc0df93edb7b743392c) + +#### [3.0.17](https://github.com/sematext/logagent-js/compare/3.0.16...3.0.17) + +> 19 February 2020 + +- Fix module name [`#195`](https://github.com/sematext/logagent-js/pull/195) +- Release 3.0.17 [`97d08fe`](https://github.com/sematext/logagent-js/commit/97d08feef8e02ddb988d52b2c2c3783e3bd1961d) +- fix_module_filename [`46c6106`](https://github.com/sematext/logagent-js/commit/46c61062d6622d68a6eb9974fbbb996d695eb0e3) + +#### [3.0.16](https://github.com/sematext/logagent-js/compare/3.0.15...3.0.16) + +> 19 February 2020 + +- remove_console_log [`#194`](https://github.com/sematext/logagent-js/pull/194) +- add error handling for invalid tokens [`#193`](https://github.com/sematext/logagent-js/pull/193) +- add unix socket reader plugin, fix #176 [`#189`](https://github.com/sematext/logagent-js/pull/189) +- Merge pull request #189 from sematext/add_unix_socket_plugin [`#176`](https://github.com/sematext/logagent-js/issues/176) +- move journald formatting to journald-format output plugin [`d2aeccb`](https://github.com/sematext/logagent-js/commit/d2aeccbd1917f0b83443f8ddc98856742d5b555b) +- use Sematext common schema, lowercase field names [`88c9921`](https://github.com/sematext/logagent-js/commit/88c9921dd696ab54b653615187df7f610dd5d46b) +- update journald config examples [`a6463c2`](https://github.com/sematext/logagent-js/commit/a6463c297239d138e147da01787084e802a0a230) + +#### [3.0.15](https://github.com/sematext/logagent-js/compare/3.0.14...3.0.15) + +> 17 February 2020 + +- Fix GEOIP_FIELDS config settings [`#192`](https://github.com/sematext/logagent-js/pull/192) +- SC-7051: final touches for GitHub plugin [`#188`](https://github.com/sematext/logagent-js/pull/188) +- add role bindings in Kubernetes example [`#186`](https://github.com/sematext/logagent-js/pull/186) +- SC-7051: Added GitHub Webhook input plugin [`#185`](https://github.com/sematext/logagent-js/pull/185) +- add unix socket reader plugin, fix #176 [`#176`](https://github.com/sematext/logagent-js/issues/176) +- SC-7051: added create and delete events [`6a3f201`](https://github.com/sematext/logagent-js/commit/6a3f201f476da0d978e44da7758b8dd2bfc94241) +- add cli arg ---unixSocket, fix connection issue [`976539e`](https://github.com/sematext/logagent-js/commit/976539edfdd87d684bf7e6fba5a608a0cd442c17) +- fix_geop_fields [`a3d57e4`](https://github.com/sematext/logagent-js/commit/a3d57e486b7e6019d7f562507b0db8763a337be3) + +#### [3.0.14](https://github.com/sematext/logagent-js/compare/3.0.13...3.0.14) + +> 17 February 2020 + +- Emit logagent stats [`#184`](https://github.com/sematext/logagent-js/pull/184) +- Add nodejs monitoring plugin to docker image [`#183`](https://github.com/sematext/logagent-js/pull/183) +- Azure eventhub plugin [`#182`](https://github.com/sematext/logagent-js/pull/182) +- Add new pipeline event [`#181`](https://github.com/sematext/logagent-js/pull/181) +- SC-7051: converted to es class syntax [`a0ffe82`](https://github.com/sematext/logagent-js/commit/a0ffe82fca83c571cebe5e1c102f5d34f0e8a8aa) +- SC-7051: working event ingestion for pull_requests [`78000b1`](https://github.com/sematext/logagent-js/commit/78000b1c854861c2122427d3d8503ac6b395b9a9) +- SC-7051: functional refactor [`3c833cd`](https://github.com/sematext/logagent-js/commit/3c833cd8efcc92a72f79393742078cdbd2452221) + +#### [3.0.13](https://github.com/sematext/logagent-js/compare/3.0.12...3.0.13) + +> 6 February 2020 + +- update dependencies [`8bd55db`](https://github.com/sematext/logagent-js/commit/8bd55db39a93472f393bcb54f64710e74685eb80) +- Release 3.0.13 [`389bddc`](https://github.com/sematext/logagent-js/commit/389bddc268061ee5ffcb713aaf4262feb057f457) + +#### [3.0.12](https://github.com/sematext/logagent-js/compare/3.0.11...3.0.12) + +> 5 February 2020 + +- fix #180 [`#180`](https://github.com/sematext/logagent-js/issues/180) +- Release 3.0.12 [`90133a5`](https://github.com/sematext/logagent-js/commit/90133a5e896cf021c588c701d42b7b3479a34d41) + +#### [3.0.11](https://github.com/sematext/logagent-js/compare/3.0.10...3.0.11) + +> 31 January 2020 + +- Make log routing for containers flexible [`#179`](https://github.com/sematext/logagent-js/pull/179) +- refactoring helper functions [`5e08e06`](https://github.com/sematext/logagent-js/commit/5e08e065a6062eaf9423c1ad4889928be5b0902d) +- refactoring helper functions [`0f878d2`](https://github.com/sematext/logagent-js/commit/0f878d2854e5b55248f7443593b6d88f434e5b6d) +- Release 3.0.11 [`d729ee9`](https://github.com/sematext/logagent-js/commit/d729ee9d81f0d9b3452865dfb3affe2f565b0f55) + +#### [3.0.10](https://github.com/sematext/logagent-js/compare/3.0.9...3.0.10) + +> 31 January 2020 + +- add v8-profiler-next as optional dependency [`d8c9126`](https://github.com/sematext/logagent-js/commit/d8c9126ac4cc32b544fc833ea8daa9a6bf473f94) +- Release 3.0.10 [`854cde6`](https://github.com/sematext/logagent-js/commit/854cde6d3729f4e88a3f68d5f774db0d34666e19) + +#### [3.0.9](https://github.com/sematext/logagent-js/compare/3.0.8...3.0.9) + +> 31 January 2020 + +- add heapdump,v8-profiler [`27f0458`](https://github.com/sematext/logagent-js/commit/27f04583dddbb7234fa990e2179d1306e1d674b2) +- remove console output [`48fdfda`](https://github.com/sematext/logagent-js/commit/48fdfdaef43425400360b3e383d48c2bff0af37d) +- Release 3.0.9 [`4ab162e`](https://github.com/sematext/logagent-js/commit/4ab162ea14d314aff40103e4e05f691c4b199882) + +#### [3.0.8](https://github.com/sematext/logagent-js/compare/3.0.7...3.0.8) + +> 30 January 2020 + +- Release 3.0.8 [`46c1414`](https://github.com/sematext/logagent-js/commit/46c141439e8ea268dbd5c8beac6020fb405b686e) + +#### [3.0.7](https://github.com/sematext/logagent-js/compare/3.0.6...3.0.7) + +> 30 January 2020 + +- add swarm.service.name and swarm.stack.name fields [`#178`](https://github.com/sematext/logagent-js/pull/178) +- make log routing more flexible [`c697139`](https://github.com/sematext/logagent-js/commit/c697139acd9b90ae2ababe724aa26a6f137e0d07) +- fix wrong log messages [`3d7d0c1`](https://github.com/sematext/logagent-js/commit/3d7d0c1005412573d7e026b0d054154e373ee3f0) +- make plugin configs aware of the config section name [`2487f75`](https://github.com/sematext/logagent-js/commit/2487f75059248f582b5db28c420a4a4287b19896) + +#### [3.0.6](https://github.com/sematext/logagent-js/compare/3.0.5...3.0.6) + +> 15 January 2020 + +- Parse image to registry,name,tag,digest [`#177`](https://github.com/sematext/logagent-js/pull/177) +- fix optional digiest in image name [`9ed56bb`](https://github.com/sematext/logagent-js/commit/9ed56bb4029cb5b25a8e4f6fab6cfb4cf9beb8ae) +- optimize regex [`818cd50`](https://github.com/sematext/logagent-js/commit/818cd5026f13b693392d7a9f8bcab115b5a12c13) +- remove debug output [`9c90b2d`](https://github.com/sematext/logagent-js/commit/9c90b2dc0f66f2c357dafdbf9d2b8f6884d28cea) + +#### [3.0.5](https://github.com/sematext/logagent-js/compare/3.0.3...3.0.5) + +> 26 December 2019 + +- add azure-event-hub input plugin [`3844b84`](https://github.com/sematext/logagent-js/commit/3844b845880b82b82737c9cdcfae0c9a5c9afdda) +- add eventPosition=now, partitions, closing all subscriptions [`55d4f30`](https://github.com/sematext/logagent-js/commit/55d4f30b78878d820a01586fb03cb044d8129c10) +- fix :port prefix from registry in imageName [`f1d0d1d`](https://github.com/sematext/logagent-js/commit/f1d0d1da873ac3bbd89684b71d6bbf9ffc592adc) + +#### [3.0.3](https://github.com/sematext/logagent-js/compare/3.0.2...3.0.3) + +> 26 November 2019 + +- fix #166, add elasticsearch.type config option [`#166`](https://github.com/sematext/logagent-js/issues/166) +- update comments in example config [`4b7f016`](https://github.com/sematext/logagent-js/commit/4b7f0167f3a946ac396efcfa6d75ae1185950002) +- Release 3.0.3 [`7c13979`](https://github.com/sematext/logagent-js/commit/7c139791116c6f37772df920ee6456765d8d9d08) +- update comments in example config [`9242e11`](https://github.com/sematext/logagent-js/commit/9242e119dcbf6535995a6d0588d0397e27ac5e09) + +#### [3.0.2](https://github.com/sematext/logagent-js/compare/3.0.1...3.0.2) + +> 18 September 2019 + +- Release 3.0.2 [`d722314`](https://github.com/sematext/logagent-js/commit/d72231498f81f69ba8cc2408a93c31c0f61ad839) +- fix 'Unhandled Rejection' in kuberntes-enrichment plugin [`cbb789c`](https://github.com/sematext/logagent-js/commit/cbb789c0a8e4a31f4332a39cece97645c0bd578f) + +#### [3.0.1](https://github.com/sematext/logagent-js/compare/3.0.0...3.0.1) + +> 18 September 2019 + +- Release 3.0.1 [`353de94`](https://github.com/sematext/logagent-js/commit/353de94f45fb0a392d2583e4d725143dfbad46e0) +- fix 'Unhandled Rejection' in kuberntes-enrichment plugin [`43ce783`](https://github.com/sematext/logagent-js/commit/43ce783e5ec2dcf1d0533d0123822614c7645918) + +### [3.0.0](https://github.com/sematext/logagent-js/compare/2.0.184...3.0.0) + +> 16 September 2019 + +- Add geoip plugin [`#171`](https://github.com/sematext/logagent-js/pull/171) +- Use Kubernetes annotations [`#170`](https://github.com/sematext/logagent-js/pull/170) +- Generate patterns file [`#169`](https://github.com/sematext/logagent-js/pull/169) +- cleanup code after review, use LRU cache for pod info [`9c2493f`](https://github.com/sematext/logagent-js/commit/9c2493fb11c4636c854e87bf54416c2c1a14b979) +- move to maxmind@3.1.2, use sync reader to open maxmind DB [`f07a8ab`](https://github.com/sematext/logagent-js/commit/f07a8abf3199ea88c270c925d65f109c7eae3ef8) +- remove geo-ip lookup from log parser [`c3b495a`](https://github.com/sematext/logagent-js/commit/c3b495addc4a165a1b0e9df2f38be996c435bdf7) + +#### [2.0.184](https://github.com/sematext/logagent-js/compare/2.0.183...2.0.184) + +> 30 July 2019 + +- Release 2.0.184 [`9ff6530`](https://github.com/sematext/logagent-js/commit/9ff6530375ff7246baf5ad222ff87eaa299e0903) +- update logsene-js dependency [`511d26c`](https://github.com/sematext/logagent-js/commit/511d26cce7b818c9a54ca79d36b365f0609e26ea) + +#### [2.0.183](https://github.com/sematext/logagent-js/compare/2.0.182...2.0.183) + +> 30 July 2019 + +- Release 2.0.183 [`724788a`](https://github.com/sematext/logagent-js/commit/724788add71fee5982c86237e3b14460f8b5263b) +- remove binary GH release [`345e2e1`](https://github.com/sematext/logagent-js/commit/345e2e13f7180f68546e97d3075a27769f1b4160) + +#### [2.0.182](https://github.com/sematext/logagent-js/compare/2.0.181...2.0.182) + +> 30 July 2019 + +- Release 2.0.182 [`cebaf67`](https://github.com/sematext/logagent-js/commit/cebaf676051b41a7741a76de8bd0cbe761e97920) + +#### [2.0.181](https://github.com/sematext/logagent-js/compare/2.0.180...2.0.181) + +> 30 July 2019 + +- add all plugins to example.yml [`1d8afdd`](https://github.com/sematext/logagent-js/commit/1d8afddc9fa2f1f4c7fb5bcc6256c9cb944606f8) +- Don't write to /etc/sematext/receivers.cfg [`07397d3`](https://github.com/sematext/logagent-js/commit/07397d3ce5ec9d60964ae1bbe9d03ac78ded31fc) +- Don't write to /etc/sematext/receivers.cfg [`2bcdc01`](https://github.com/sematext/logagent-js/commit/2bcdc01073fa2c701e61d0acddb3eb63c5be6693) + +#### [2.0.180](https://github.com/sematext/logagent-js/compare/2.0.179...2.0.180) + +> 3 July 2019 + +- Release 2.0.180 [`7c075c1`](https://github.com/sematext/logagent-js/commit/7c075c1598ce7eeda3d948d3a16b3c051debe382) + +#### [2.0.179](https://github.com/sematext/logagent-js/compare/2.0.178...2.0.179) + +> 3 July 2019 + +- Release 2.0.179 [`7f80fa0`](https://github.com/sematext/logagent-js/commit/7f80fa0b18acf838b2b50180bec27bc262318bdc) +- make text replacement via remove-fields plugin optional [`0217b5e`](https://github.com/sematext/logagent-js/commit/0217b5e7525be56cc407754e96439dd55c151655) + +#### [2.0.178](https://github.com/sematext/logagent-js/compare/2.0.177...2.0.178) + +> 26 June 2019 + +- Make LA_CONFIG env variable configurable [`1a6f41e`](https://github.com/sematext/logagent-js/commit/1a6f41ee48e926da1fd5ad1817a588097490a93d) +- Release 2.0.178 [`3fe188c`](https://github.com/sematext/logagent-js/commit/3fe188c531d29cdd49cfe500ff027b9045d5059e) +- Setting LA_CONFIG env variable disables the creation of logagent.conf [`32660fd`](https://github.com/sematext/logagent-js/commit/32660fd1581d6916eee0d60be830c7c8dbcd6637) + +#### [2.0.177](https://github.com/sematext/logagent-js/compare/2.0.176...2.0.177) + +> 25 June 2019 + +- add output filter: drop-events-filter [`b5f7498`](https://github.com/sematext/logagent-js/commit/b5f7498ed85260d7c434bd739807ac3d1d79afe1) +- Release 2.0.177 [`6e3a1a0`](https://github.com/sematext/logagent-js/commit/6e3a1a0a4ffdedaf9c71859bbc1b0f694664b173) + +#### [2.0.176](https://github.com/sematext/logagent-js/compare/2.0.175...2.0.176) + +> 21 June 2019 + +- update nexe build, remove old doc scripts [`f7353c9`](https://github.com/sematext/logagent-js/commit/f7353c9d99b6be13ea0e9c9beed2ad6f3ab892e8) +- Release 2.0.176 [`48a4918`](https://github.com/sematext/logagent-js/commit/48a4918c710269d313be3d1ce934f0c90d9cb2fc) + +#### [2.0.175](https://github.com/sematext/logagent-js/compare/2.0.174...2.0.175) + +> 21 June 2019 + +- fix missing k8s metadata [`2108e0c`](https://github.com/sematext/logagent-js/commit/2108e0c608e5512c04f11fceed7f7ad0ee6dcd2c) +- Release 2.0.175 [`880a1c3`](https://github.com/sematext/logagent-js/commit/880a1c32b1a4d36a1e1503e09a77ca7ff84bcd54) + +#### [2.0.174](https://github.com/sematext/logagent-js/compare/2.0.173...2.0.174) + +> 21 June 2019 + +- Release 2.0.174 [`72e6f45`](https://github.com/sematext/logagent-js/commit/72e6f45cc173e25cacea30a9f9ed950fbaeac132) +- enable geoIp in patterns.yml [`532aceb`](https://github.com/sematext/logagent-js/commit/532aceb912a7b0a190f17cff4d9f42ef5902dbda) +- enable geoIp in patterns.yml [`d85df53`](https://github.com/sematext/logagent-js/commit/d85df53bc3bdd44c8ddaa0e6f9066761c4b99386) + +#### [2.0.173](https://github.com/sematext/logagent-js/compare/2.0.172...2.0.173) + +> 21 June 2019 + +- fix: UncaughtException:TypeError: cb is not a function [`1fe8942`](https://github.com/sematext/logagent-js/commit/1fe89428b9dbca29b259c11c9089c9be1a91df41) +- Release 2.0.173 [`142bda2`](https://github.com/sematext/logagent-js/commit/142bda2570b0ae1d49807d949fe73b826fcbaa7e) +- Disable GeoIP lookups by default [`8e8d4b2`](https://github.com/sematext/logagent-js/commit/8e8d4b2ae413ecdb08bd4c83db51159001886cf5) + +#### [2.0.172](https://github.com/sematext/logagent-js/compare/2.0.171...2.0.172) + +> 31 May 2019 + +- Release 2.0.172 [`44d52a6`](https://github.com/sematext/logagent-js/commit/44d52a6fea8f7701cf06139d9e2d15f3a3e8ea01) +- add healthcheck command to Dockerfile [`016a1db`](https://github.com/sematext/logagent-js/commit/016a1db08d1c1631412994ba086e39f996099c27) + +#### [2.0.171](https://github.com/sematext/logagent-js/compare/2.0.170...2.0.171) + +> 30 May 2019 + +- Release 2.0.171 [`86d6fa4`](https://github.com/sematext/logagent-js/commit/86d6fa4f82d9e3d6de016ed8b08a29fdddf2ead6) +- add logagent binary assets [`421815a`](https://github.com/sematext/logagent-js/commit/421815a423e870e76bec85f9810593e69830955f) +- ignore dist directory in git and npm [`fb9b40d`](https://github.com/sematext/logagent-js/commit/fb9b40d15cd220ac7719f4031a48cafe01987fa6) + +#### [2.0.170](https://github.com/sematext/logagent-js/compare/2.0.169...2.0.170) + +> 30 May 2019 + +- Release 2.0.170 [`7e26ffd`](https://github.com/sematext/logagent-js/commit/7e26ffd1317155ea0c29537fcb28bc8d3a211493) +- fix wrong releaseNotes key in package.json [`3e050b0`](https://github.com/sematext/logagent-js/commit/3e050b04aefa10234d4e4dc5282236750d6e92eb) + +#### [2.0.169](https://github.com/sematext/logagent-js/compare/2.0.168...2.0.169) + +> 30 May 2019 + +- Release 2.0.169 [`e422627`](https://github.com/sematext/logagent-js/commit/e422627bed4da85a09c6f8fae5d5f518cc838147) + +#### [2.0.168](https://github.com/sematext/logagent-js/compare/2.0.167...2.0.168) + +> 30 May 2019 + +- Release 2.0.168 [`1b4beed`](https://github.com/sematext/logagent-js/commit/1b4beedf8d411b25b1820061dd468c45e1f941f5) + +#### [2.0.167](https://github.com/sematext/logagent-js/compare/2.0.166...2.0.167) + +> 30 May 2019 + +- add CHANGELOG.md [`553a438`](https://github.com/sematext/logagent-js/commit/553a43826ec2714a68e9cff1b5710d2989443fa7) +- Release 2.0.167 [`c3ecead`](https://github.com/sematext/logagent-js/commit/c3eceadee721f963d34caaca46966cf080889a21) +- add releaseNote command [`8c0a735`](https://github.com/sematext/logagent-js/commit/8c0a735c332a54ad5ec434ffc21e4cb2d1fcfcca) + +#### [2.0.166](https://github.com/sematext/logagent-js/compare/2.0.165...2.0.166) + +> 30 May 2019 + +- add release-it changelog generation [`020ce87`](https://github.com/sematext/logagent-js/commit/020ce8767ff663cdb74c689ed78978e0057aa0d3) +- update http pattern solving #168 [`a962d2e`](https://github.com/sematext/logagent-js/commit/a962d2efa185a98582d45fa13ac85cd5de10060b) +- Release 2.0.166 [`26cf56e`](https://github.com/sematext/logagent-js/commit/26cf56e8b6267dc9cf18ec797b683418f812038f) + +#### [2.0.165](https://github.com/sematext/logagent-js/compare/2.0.164...2.0.165) + +> 24 May 2019 + +- Release 2.0.165 [`332dbcf`](https://github.com/sematext/logagent-js/commit/332dbcf099141a7ff02a8b2b647b12c34cd67d0a) +- update dependency [`73b1fcc`](https://github.com/sematext/logagent-js/commit/73b1fcc8db258b1d66977c41a52447a930f3d587) + +#### [2.0.164](https://github.com/sematext/logagent-js/compare/2.0.163...2.0.164) + +> 24 May 2019 + +- Release 2.0.164 [`7bb41ed`](https://github.com/sematext/logagent-js/commit/7bb41ed7ea1608667ee3cd3ec941d1d8c7033dbc) + +#### [2.0.163](https://github.com/sematext/logagent-js/compare/2.0.162...2.0.163) + +> 23 May 2019 + +- improve docker socket error handling [`2eadeb4`](https://github.com/sematext/logagent-js/commit/2eadeb42b58f9ded8100c43eb360681c7f498f47) +- add build commands npm run build-all for nexe compiled binaries [`ff14fbf`](https://github.com/sematext/logagent-js/commit/ff14fbf80d8437fa575a6e3f6d5600f818b31127) +- Release 2.0.163 [`fccd0eb`](https://github.com/sematext/logagent-js/commit/fccd0eb0c9b8bec64defdb3a7af726de7e50ca35) + +#### [2.0.162](https://github.com/sematext/logagent-js/compare/2.0.161...2.0.162) + +> 16 May 2019 + +- adjust naming of container metadata to STA field names [`015f36e`](https://github.com/sematext/logagent-js/commit/015f36e8bffd4d23a7913282a74f48fdc421e5eb) +- adjust field names to sematext/agent field names [`8dc30d5`](https://github.com/sematext/logagent-js/commit/8dc30d574620d94d698bf3900a2d417bec4d98b8) +- adjust field names to sematext/agent field names in patterns.yml [`85d61f4`](https://github.com/sematext/logagent-js/commit/85d61f4db16ef5c9e5f5d4110bb191416a0acc5e) + +#### [2.0.161](https://github.com/sematext/logagent-js/compare/2.0.160...2.0.161) + +> 14 May 2019 + +- Convert all values to strings when creating error messages [`#152`](https://github.com/sematext/logagent-js/pull/152) +- Dockerfile for aarch64 [`#153`](https://github.com/sematext/logagent-js/pull/153) +- Fix level->severity mapping [`#156`](https://github.com/sematext/logagent-js/pull/156) +- add man page for RH certification [`1aec480`](https://github.com/sematext/logagent-js/commit/1aec480f986f3c92e0ec915f94dbbc3c51d52f37) +- add LICENENSE file for RH certification [`e2d43e4`](https://github.com/sematext/logagent-js/commit/e2d43e46e57d4505eb70cd1cc24462e32b36a9fa) +- add kuberntes audit http input-plugin [`7913ff2`](https://github.com/sematext/logagent-js/commit/7913ff2e9fcfdd63c9958611205a088457c22362) + +#### [2.0.160](https://github.com/sematext/logagent-js/compare/2.0.159...2.0.160) + +> 3 May 2019 + +- Release 2.0.160 [`c773dfe`](https://github.com/sematext/logagent-js/commit/c773dfe5019f6438ce1369d239236b93b8ad58f6) +- Add sematext/frontend-app to webserver logs [`b162b21`](https://github.com/sematext/logagent-js/commit/b162b21195b7c67e1e2ba2eaa095ae85e4eab061) +- move to node 10 [`5450205`](https://github.com/sematext/logagent-js/commit/54502059eea39364353eb7469500ffcc038b8c4a) + +#### [2.0.159](https://github.com/sematext/logagent-js/compare/2.0.158...2.0.159) + +> 23 April 2019 + +- Release 2.0.159 [`ecb2e0a`](https://github.com/sematext/logagent-js/commit/ecb2e0ab17d6b3a51aa2d067dfc4262ef222a414) +- update dependencies for new tail-forever release [`0b5484c`](https://github.com/sematext/logagent-js/commit/0b5484c6d8f43931833300c25cf94da3a1eaf7aa) +- update dependencies for new tail-forever release [`4005836`](https://github.com/sematext/logagent-js/commit/40058360c699c4ac757093a07baa68410145dce9) + +#### [2.0.158](https://github.com/sematext/logagent-js/compare/2.0.157...2.0.158) + +> 23 April 2019 + +- update zookeeper patterns in docker image [`ecc5d2a`](https://github.com/sematext/logagent-js/commit/ecc5d2aa40fe16661ad5ed23378e3562dd0ea7c4) +- update zookeeper patterns [`80a6b60`](https://github.com/sematext/logagent-js/commit/80a6b601503f821fd2e22dff99844a8f392fe016) +- Release 2.0.158 [`e634931`](https://github.com/sematext/logagent-js/commit/e63493189dc804f8d17e8e1ddf676e8e5e9eed44) + +#### [2.0.157](https://github.com/sematext/logagent-js/compare/2.0.156...2.0.157) + +> 15 April 2019 + +- add dockerEvents input [`0b9e5d3`](https://github.com/sematext/logagent-js/commit/0b9e5d3301a1207c09a89c5e73d1ef5cdfe4f620) +- add input-kubernetes-events [`a8ab59d`](https://github.com/sematext/logagent-js/commit/a8ab59d3c3b40588f3f4057d8d6d5967cc7a2989) +- improve err handling, remove local test function [`563271e`](https://github.com/sematext/logagent-js/commit/563271e4266ef45a5986a5e07ea2883cfc30cf9a) + +#### [2.0.156](https://github.com/sematext/logagent-js/compare/2.0.155...2.0.156) + +> 11 April 2019 + +- add --journald port CLI argument [`9548628`](https://github.com/sematext/logagent-js/commit/9548628f75a9db5e80ff6f3f36b1efc767e0f5bc) +- add JOUNRALD_UPLOAD_PORT option [`f2d0209`](https://github.com/sematext/logagent-js/commit/f2d0209aa1c150384a67e4a09f1c9d03a8e0e49d) +- Release 2.0.156 [`61da405`](https://github.com/sematext/logagent-js/commit/61da4053854983a0bce086c915522e9120918d37) + +#### [2.0.155](https://github.com/sematext/logagent-js/compare/2.0.154...2.0.155) + +> 11 April 2019 + +- add filter options, field removal and tags for journald logs [`1ced79f`](https://github.com/sematext/logagent-js/commit/1ced79f47830fee6a33547273a86d3b9aac9fab1) +- Release 2.0.155 [`23cffe7`](https://github.com/sematext/logagent-js/commit/23cffe71a36743c51866168f2f15bb2c4273f83c) + +#### [2.0.154](https://github.com/sematext/logagent-js/compare/2.0.153...2.0.154) + +> 11 April 2019 + +- add input-plugin to receive data from systemd-journal-upload.service [`dd22fdd`](https://github.com/sematext/logagent-js/commit/dd22fdd0862f3c5e210d39518d76b3efc987b42b) +- Release 2.0.154 [`b89304d`](https://github.com/sematext/logagent-js/commit/b89304d4ed44d512bce395051a1e72665abc8d98) + +#### [2.0.153](https://github.com/sematext/logagent-js/compare/2.0.152...2.0.153) + +> 9 April 2019 + +- Add ibm-cloud k8s daemonset example [`ad4bdef`](https://github.com/sematext/logagent-js/commit/ad4bdeff1baa606385124d55ab8d3856354cac4e) +- add option to tag App containers with LOGS_TOKEN or LOGSENE_TOKEN (backwardw compatible) [`cd841c8`](https://github.com/sematext/logagent-js/commit/cd841c8c1c1b4b77ed9b64e714ddb0209c44ab4a) +- Release 2.0.153 [`75205a8`](https://github.com/sematext/logagent-js/commit/75205a89d0b4f2053644d99035cac9db01452380) + +#### [2.0.152](https://github.com/sematext/logagent-js/compare/2.0.151...2.0.152) + +> 4 April 2019 + +- Release 2.0.152 [`3ab7fe6`](https://github.com/sematext/logagent-js/commit/3ab7fe6fac87107de708497563b9076701e4e3a6) + +#### [2.0.151](https://github.com/sematext/logagent-js/compare/2.0.150...2.0.151) + +> 4 April 2019 + +- add output-http plugin using ldjson format [`11ad607`](https://github.com/sematext/logagent-js/commit/11ad607800cad165321fedae5a69cb3419fba5d8) +- update example [`048786b`](https://github.com/sematext/logagent-js/commit/048786b31a16bc3639e0c68b3b8558484a512b7d) +- Release 2.0.151 [`ce4bb03`](https://github.com/sematext/logagent-js/commit/ce4bb031ea4c3aa84ba0d8954f34b5256ec9a7ba) + +#### [2.0.150](https://github.com/sematext/logagent-js/compare/2.0.149...2.0.150) + +> 4 April 2019 + +- move to tail-forever-2, updated module [`7456bc8`](https://github.com/sematext/logagent-js/commit/7456bc8189dbe6a05f7d13d908a9c030367008d3) +- Release 2.0.150 [`a7904ae`](https://github.com/sematext/logagent-js/commit/a7904aede79355cafcbd1711673fc5aa029284f2) +- fix typo in comment [`8417527`](https://github.com/sematext/logagent-js/commit/8417527a0392609f688252b13f746a82d9f21afc) + +#### [2.0.149](https://github.com/sematext/logagent-js/compare/2.0.148...2.0.149) + +> 2 April 2019 + +- Release 2.0.149 [`d4aee45`](https://github.com/sematext/logagent-js/commit/d4aee45be300466fbc81a7a419878d8c0f4d9f9b) +- use tail-forever from npm [`b69732d`](https://github.com/sematext/logagent-js/commit/b69732dd93a5ed522182d99e764aa16da45681a6) + +#### [2.0.148](https://github.com/sematext/logagent-js/compare/2.0.147...2.0.148) + +> 2 April 2019 + +- Release 2.0.148 [`0352d25`](https://github.com/sematext/logagent-js/commit/0352d25d1f30c1cb25e2081b1f2aaad58493a981) +- move back to node 8, until some Node 10 related problesm are solved [`6d15011`](https://github.com/sematext/logagent-js/commit/6d150111c0b7ab814cdb9106a75bf7fcaa4a5167) + +#### [2.0.147](https://github.com/sematext/logagent-js/compare/2.0.146...2.0.147) + +> 2 April 2019 + +- update patterns, scan time for new files, use tailF from GH [`a0859ea`](https://github.com/sematext/logagent-js/commit/a0859eaa2331eae37283a696469b351c09b07335) +- Release 2.0.147 [`a9e0f43`](https://github.com/sematext/logagent-js/commit/a9e0f43255f2b34c656b9e3dff44c88027ea944c) + +#### [2.0.146](https://github.com/sematext/logagent-js/compare/2.0.145...2.0.146) + +> 2 April 2019 + +- Release 2.0.146 [`3dd3109`](https://github.com/sematext/logagent-js/commit/3dd31093cdf96769bb2415d69c01adbec25a9308) + +#### [2.0.145](https://github.com/sematext/logagent-js/compare/2.0.144...2.0.145) + +> 1 April 2019 + +- logging terminate reason [`fe26bde`](https://github.com/sematext/logagent-js/commit/fe26bde2fab8ccb3b0de0aeb824d166d2776243f) +- Release 2.0.145 [`bf95719`](https://github.com/sematext/logagent-js/commit/bf95719ed2ca24c4b189950028a85ea1685fdac9) + +#### [2.0.144](https://github.com/sematext/logagent-js/compare/2.0.143...2.0.144) + +> 1 April 2019 + +- improve log output for terminate reason [`c8ac778`](https://github.com/sematext/logagent-js/commit/c8ac7786e9862f575c3b79599dddaa05ee8647f0) +- Release 2.0.144 [`70277f7`](https://github.com/sematext/logagent-js/commit/70277f7834130945275060bc3da984ec10e2c2bf) + +#### [2.0.143](https://github.com/sematext/logagent-js/compare/2.0.142...2.0.143) + +> 1 April 2019 + +- Release 2.0.143 [`2bf5f4d`](https://github.com/sematext/logagent-js/commit/2bf5f4d7151749b573ada3c264ec96af8369d0a1) + +#### [2.0.142](https://github.com/sematext/logagent-js/compare/2.0.141...2.0.142) + +> 1 April 2019 + +- add k8s/containerd support, file based metadata from /var/log/containers [`85a140e`](https://github.com/sematext/logagent-js/commit/85a140ef51497c5aec8e1bf56c2dc0b9e3142190) +- set originalLine: false in patterns.yml [`8339763`](https://github.com/sematext/logagent-js/commit/83397635562317250487485242f8584ea5df4539) +- Release 2.0.142 [`48d5661`](https://github.com/sematext/logagent-js/commit/48d56611ae45ed72517e3d4ccc6388bbd5364afb) + +#### [2.0.141](https://github.com/sematext/logagent-js/compare/2.0.140...2.0.141) + +> 12 March 2019 + +- Release 2.0.141 [`edb50e2`](https://github.com/sematext/logagent-js/commit/edb50e2c88f293c1d62e9638d62635e71f3c8de6) + +#### [2.0.140](https://github.com/sematext/logagent-js/compare/2.0.139...2.0.140) + +> 12 March 2019 + +- Release 2.0.140 [`1885274`](https://github.com/sematext/logagent-js/commit/18852747595c4fef2e983fda4a8aa5b99280be2d) + +#### [2.0.139](https://github.com/sematext/logagent-js/compare/2.0.138...2.0.139) + +> 12 March 2019 + +- update patterns for docker image [`73a2e65`](https://github.com/sematext/logagent-js/commit/73a2e652544d99cab23d02d3f1d0bc06448c6b8a) +- Fix level->severity mapping [`cc68c46`](https://github.com/sematext/logagent-js/commit/cc68c46158fef070debb81c62d3c1c2169817687) +- Release 2.0.139 [`8461464`](https://github.com/sematext/logagent-js/commit/8461464d69c0885166948ed5823277591792017b) + +#### [2.0.138](https://github.com/sematext/logagent-js/compare/2.0.137...2.0.138) + +> 8 March 2019 + +- add module name for syslog plugin [`02c68c4`](https://github.com/sematext/logagent-js/commit/02c68c4037a0dbb8bbe8cc078c28731a599540ab) +- top level 'env' section on config to set nodejs process environment variables [`7b70980`](https://github.com/sematext/logagent-js/commit/7b70980bf8bf411d23777a44ffe4ddcce7f8d32c) +- add PID to error and debug log output [`b9be280`](https://github.com/sematext/logagent-js/commit/b9be280900b7bb86088e16eda6c7ec86e476d0a2) + +#### [2.0.137](https://github.com/sematext/logagent-js/compare/2.0.136...2.0.137) + +> 8 March 2019 + +- use proxy settings for pattern downloads [`33a6734`](https://github.com/sematext/logagent-js/commit/33a6734f24c71a3363675aed5969a3d14d987444) +- fix error handling for pattern downloads [`9f12d34`](https://github.com/sematext/logagent-js/commit/9f12d34fb783da4c2e09aa5fe1a22a115f43970e) +- Add Dockerfile for aarch64 [`21e6c7a`](https://github.com/sematext/logagent-js/commit/21e6c7a12b98e1f9fdc45b03ec8238277634a3cc) + +#### [2.0.136](https://github.com/sematext/logagent-js/compare/2.0.135...2.0.136) + +> 8 February 2019 + +- add RedHat support [`428500a`](https://github.com/sematext/logagent-js/commit/428500aedca7c24c45f0e942809d35cff9b0221f) +- add multi-line pattern for yandex/clickhouse [`e784727`](https://github.com/sematext/logagent-js/commit/e784727e3637486ee527ea4d6f62a78816fbb6f6) +- adjust pattern file location [`41fef26`](https://github.com/sematext/logagent-js/commit/41fef261c10c451081b2fa62af968f53e93ae119) + +#### [2.0.135](https://github.com/sematext/logagent-js/compare/2.0.134...2.0.135) + +> 18 January 2019 + +- Release 2.0.135 [`116c601`](https://github.com/sematext/logagent-js/commit/116c6018d36e6185f7b6ef5d2c88c55eb6c6787f) +- adjust pattern for sematext/agent [`5e7cc12`](https://github.com/sematext/logagent-js/commit/5e7cc12b317b6f875f0fb36c8941e29e3d4bc953) + +#### [2.0.134](https://github.com/sematext/logagent-js/compare/2.0.133...2.0.134) + +> 16 January 2019 + +- optimize pattern for sematext/agent go logs [`d95bebe`](https://github.com/sematext/logagent-js/commit/d95bebe1f4fd727d881eba748fbd7956e063266b) +- Release 2.0.134 [`c149f72`](https://github.com/sematext/logagent-js/commit/c149f7237496adbe84c53d69fef0a98fc733a5a7) + +#### [2.0.133](https://github.com/sematext/logagent-js/compare/2.0.132...2.0.133) + +> 16 January 2019 + +- support parsing logs and GO panics from sematext/agent [`52a357e`](https://github.com/sematext/logagent-js/commit/52a357e4fb77654a3ce277048e20787fac744582) +- Release 2.0.133 [`ff2548a`](https://github.com/sematext/logagent-js/commit/ff2548ad362b1482b9259996edcb0e3986177bec) + +#### [2.0.132](https://github.com/sematext/logagent-js/compare/2.0.131...2.0.132) + +> 14 January 2019 + +- Fix confusing 'file does not exists' message in setup script [`fa41b8b`](https://github.com/sematext/logagent-js/commit/fa41b8b32d7763393f1d55eeb1a7e823213ff36e) +- add solr patterns + don't change order of patterns [`7fdbd09`](https://github.com/sematext/logagent-js/commit/7fdbd095448b1cf2c1a06e9f95e0743baa4c03e2) +- Release 2.0.132 [`7027d86`](https://github.com/sematext/logagent-js/commit/7027d86191dbb4420a3cc8078e73c45c6a6aaf6c) + +#### [2.0.131](https://github.com/sematext/logagent-js/compare/2.0.130...2.0.131) + +> 17 December 2018 + +- add more ClickHouse connect options [`ec4f54a`](https://github.com/sematext/logagent-js/commit/ec4f54ace7d1d302fda56fd00adf3b06a66386b7) +- clickhouse connection options, fix unhandled Promise error [`d13e59b`](https://github.com/sematext/logagent-js/commit/d13e59ba6bf6c7df0a9da7ad04596035a8dbf193) +- Release 2.0.131 [`a1cabc9`](https://github.com/sematext/logagent-js/commit/a1cabc9f4da84e6620922ba907cff1e5bb335e31) + +#### [2.0.130](https://github.com/sematext/logagent-js/compare/2.0.128...2.0.130) + +> 13 December 2018 + +- add ARM support, Dockerfile.arm [`d521613`](https://github.com/sematext/logagent-js/commit/d521613604c8c01c2578fe852e2e44a207c9ea35) +- update node versions to test on travis-ci [`59ae99a`](https://github.com/sematext/logagent-js/commit/59ae99a7550e4046674d3a6a215c9ebe57834792) +- Make LOG_GLOB not mandatory [`61a26c1`](https://github.com/sematext/logagent-js/commit/61a26c1a370f6a90ac6d61c448abd34ffd1c7bf6) + +#### [2.0.128](https://github.com/sematext/logagent-js/compare/2.0.127...2.0.128) + +> 29 November 2018 + +- fix TAGGING_LABELS feature, with useful defaults [`de2418a`](https://github.com/sematext/logagent-js/commit/de2418a4deeb9c5b35e6a8d96ea3e3c7c5f1467b) +- Release 2.0.128 [`9b93b5c`](https://github.com/sematext/logagent-js/commit/9b93b5c1be8444d34e884659214f0720b160a1c4) + +#### [2.0.127](https://github.com/sematext/logagent-js/compare/2.0.126...2.0.127) + +> 28 November 2018 + +- Fix Layout in Docker Hub: Convert HTML table to markdown table [`4c6cb24`](https://github.com/sematext/logagent-js/commit/4c6cb2400fdb4d08a3919806f51613d66c603d60) +- Reduce the DH readme to a minimum. Referring to /docs [`bd31fd8`](https://github.com/sematext/logagent-js/commit/bd31fd874bdb1cf136e57e0baaf0a50b96af73be) +- remove rtail, because rtail is not maintained anymore and causes problems with npm audit [`c758010`](https://github.com/sematext/logagent-js/commit/c758010682c0f564f3e75dbc6718b356b7f1bd27) + +#### [2.0.126](https://github.com/sematext/logagent-js/compare/2.0.125...2.0.126) + +> 22 November 2018 + +- apply standard-format [`84a41da`](https://github.com/sematext/logagent-js/commit/84a41da0991ea6dd1e9f8f9cafbcc9f81a6aa098) +- apply standard-format [`e135c52`](https://github.com/sematext/logagent-js/commit/e135c5293de8973ba5dd4c72b55729dd7d23abc2) +- change token and receiver names [`182ff1c`](https://github.com/sematext/logagent-js/commit/182ff1c992c871683bca8d6d7de4a5bb33d91201) + +#### [2.0.125](https://github.com/sematext/logagent-js/compare/2.0.124...2.0.125) + +> 16 November 2018 + +- self.terminate() on uncaught exceptions [`#146`](https://github.com/sematext/logagent-js/pull/146) +- add MQTT Broker authentication [`bd118ea`](https://github.com/sematext/logagent-js/commit/bd118ea128f3e59d7c5a36b186c4484b40341288) +- terminate on uncaught exceptions and rejections [`bcf7e5f`](https://github.com/sematext/logagent-js/commit/bcf7e5f12ba9771fa9cc6e45173236badaf78c56) +- Release 2.0.125 [`0a4bc52`](https://github.com/sematext/logagent-js/commit/0a4bc527a906d81da74ca5a398beee153d1c110c) + +#### [2.0.124](https://github.com/sematext/logagent-js/compare/2.0.123...2.0.124) + +> 5 November 2018 + +- add ClickHouse output plugin [`9b98c66`](https://github.com/sematext/logagent-js/commit/9b98c66bf20e4619f70181b9b70a302ddbfcdb56) +- support date pattern in AWS Elasticsearch index name [`1a731d6`](https://github.com/sematext/logagent-js/commit/1a731d6936d822d4f99da7db070014d6a3737d77) +- Release 2.0.124 [`0a90e09`](https://github.com/sematext/logagent-js/commit/0a90e09ab095ac85731e55ed9f0b9577508c2b13) + +#### [2.0.123](https://github.com/sematext/logagent-js/compare/2.0.122...2.0.123) + +> 30 October 2018 + +- Add output prometheus-alertmanager [`#142`](https://github.com/sematext/logagent-js/pull/142) +- Adding new line character in ldjson format [`#141`](https://github.com/sematext/logagent-js/pull/141) +- Update README.md [`3f118c3`](https://github.com/sematext/logagent-js/commit/3f118c3d3d03988b0820c1a0e06830154e587b33) +- Delay require error [`93af1af`](https://github.com/sematext/logagent-js/commit/93af1af47a71b50de2064dda5488e8c8a2ae9dd7) +- Fix tests for older node versions [`fc68dd5`](https://github.com/sematext/logagent-js/commit/fc68dd5af5f98d02d2d49cec5dca3f076ec95115) + +#### [2.0.122](https://github.com/sematext/logagent-js/compare/2.0.121...2.0.122) + +> 23 October 2018 + +- update readme with configuration parameters [`efa31a5`](https://github.com/sematext/logagent-js/commit/efa31a5509f2455addf7fbfbefc05ff7d52d3e6e) +- Update Readme [`f29ca4f`](https://github.com/sematext/logagent-js/commit/f29ca4f6a0d4c66afb0888d17557930490b5e751) +- change LA_ARGUMETNS to LOGAGENT_ARGUMENTS [`e6e5ec1`](https://github.com/sematext/logagent-js/commit/e6e5ec186e22e185cb231deb5851503e97a58f44) + +#### [2.0.121](https://github.com/sematext/logagent-js/compare/2.0.120...2.0.121) + +> 1 October 2018 + +- bugfix / http listener for influxdb did not start [`84fb9ba`](https://github.com/sematext/logagent-js/commit/84fb9ba4118c1459f41f4909d70bd1a48f2b7b6e) +- Release 2.0.121 [`239bd56`](https://github.com/sematext/logagent-js/commit/239bd560d5274c8cb3652bad80413552a3817a76) +- remove bitHound badge [`d31d8d4`](https://github.com/sematext/logagent-js/commit/d31d8d4f6bfbf2e26d00534f8208876b5d90e895) + +#### [2.0.120](https://github.com/sematext/logagent-js/compare/2.0.119...2.0.120) + +> 26 September 2018 + +- SC-2853 LA config improvements [`#139`](https://github.com/sematext/logagent-js/pull/139) +- SC-2853 Rename LOG_URL to LOGSENE_RECEIVER_URL [`ae3b832`](https://github.com/sematext/logagent-js/commit/ae3b832cbd82efa7d66f83e70c73e395933c54ff) +- performance improvements [`5ec5a1a`](https://github.com/sematext/logagent-js/commit/5ec5a1a0c8088d50796b8680f57d236d9b8df95f) +- bugfix, not collecting files via LOG_GLOB pattern [`e166dae`](https://github.com/sematext/logagent-js/commit/e166dae892796faee0f35af7df209075b6a3dc80) + +#### [2.0.119](https://github.com/sematext/logagent-js/compare/2.0.118...2.0.119) + +> 14 September 2018 + +- add kubernetes daemonset example [`34b21e5`](https://github.com/sematext/logagent-js/commit/34b21e51318e7fc5e3b41205c7093b4f29f5fed0) +- fix log routing bug, dockerInspect info was not set in logContext [`69ade0b`](https://github.com/sematext/logagent-js/commit/69ade0bec905761464077b8544e59153a7f22bba) +- Release 2.0.119 [`57c1f5b`](https://github.com/sematext/logagent-js/commit/57c1f5b7f5ab9c1e3a3eede12380d6f14de40a28) + +#### [2.0.118](https://github.com/sematext/logagent-js/compare/2.0.117...2.0.118) + +> 13 September 2018 + +- trigger docker log collection via CLI instead of generating cfg file [`50ba9e3`](https://github.com/sematext/logagent-js/commit/50ba9e393147478dc4a5bb508ebfa225fe313575) +- make docker socket configurable [`7bc81cc`](https://github.com/sematext/logagent-js/commit/7bc81cc9a5c76cd2b6d1fe050cacb707b0b0ee13) +- fix docker socket detection/LA_ARGUMENTS and readme updates [`2c949c1`](https://github.com/sematext/logagent-js/commit/2c949c1157a8748628cb5af046e8ff0e61340798) + +#### [2.0.117](https://github.com/sematext/logagent-js/compare/2.0.116...2.0.117) + +> 11 September 2018 + +- changes for Logagent docker image [`9004a77`](https://github.com/sematext/logagent-js/commit/9004a77be113bdd0d640f77d7d270b8d7826e70e) +- set Docker Hostname from docker-info [`89a6411`](https://github.com/sematext/logagent-js/commit/89a6411199f31640dc664782868e12ede72e08aa) +- Release 2.0.117 [`b730162`](https://github.com/sematext/logagent-js/commit/b73016230ba1347c6ec725b9c1fc45f4ace80b21) + +#### [2.0.116](https://github.com/sematext/logagent-js/compare/2.0.115...2.0.116) + +> 10 September 2018 + +- Release 2.0.116 [`3f68c03`](https://github.com/sematext/logagent-js/commit/3f68c03b5a492febd8de65a9252ecc9b62d98bb7) + +#### [2.0.115](https://github.com/sematext/logagent-js/compare/2.0.114...2.0.115) + +> 7 September 2018 + +- fix loading docker-plugins via cli [`ed40b71`](https://github.com/sematext/logagent-js/commit/ed40b716dbe87327c35d5568a99f0b5b125fc6f4) +- Release 2.0.115 [`8e5e4d6`](https://github.com/sematext/logagent-js/commit/8e5e4d6862d5423f56c8472d1f2a136724c6b889) + +#### [2.0.114](https://github.com/sematext/logagent-js/compare/2.0.113...2.0.114) + +> 7 September 2018 + +- elasticsearch output plugin: function as config value #135 [`#136`](https://github.com/sematext/logagent-js/pull/136) +- add docker logs input and enrichment plugin [`7d71272`](https://github.com/sematext/logagent-js/commit/7d7127239c31496cc695b391af6598dcce2577e1) +- update patterns.yml [`98b1c43`](https://github.com/sematext/logagent-js/commit/98b1c4368628c9e7da065df506a14099b8f92e0a) +- elasticsearch output plugin: config value as function #135 [`a57c68a`](https://github.com/sematext/logagent-js/commit/a57c68ad1671e8de5398cd38feb9e56677f21be0) + +#### [2.0.113](https://github.com/sematext/logagent-js/compare/2.0.112...2.0.113) + +> 19 July 2018 + +- add example removing fields with SQL output filter [`7117949`](https://github.com/sematext/logagent-js/commit/71179492289d66c85ca095cbeb6acf48e62f58dd) +- Release 2.0.113 [`b6a4ae1`](https://github.com/sematext/logagent-js/commit/b6a4ae1bc77b3339fb67e39046de6f119243f924) +- adjust timeout for JSON parse [`7cf7987`](https://github.com/sematext/logagent-js/commit/7cf79870976adc4ad83286e279866b639849a5e9) + +#### [2.0.112](https://github.com/sematext/logagent-js/compare/2.0.111...2.0.112) + +> 6 July 2018 + +- Add a new pattern to match Traefik default accesslog in 'patterns.yml' [`#129`](https://github.com/sematext/logagent-js/pull/129) +- Release 2.0.112 [`40a93d6`](https://github.com/sematext/logagent-js/commit/40a93d64d0e2bb5f087aa16f8f0dc582d5324199) + +#### [2.0.111](https://github.com/sematext/logagent-js/compare/2.0.110...2.0.111) + +> 4 July 2018 + +- Add a new pattern to match Traefik default accesslog in 'patterns.yml' [`703246a`](https://github.com/sematext/logagent-js/commit/703246a56d63185b246ed252b82deacc0f465eb6) +- Release 2.0.111 [`cca71d1`](https://github.com/sematext/logagent-js/commit/cca71d1f735b28e88b254485916cc075188a3a6a) +- fix version of date-fns [`a103f43`](https://github.com/sematext/logagent-js/commit/a103f43c80266d0c85bd7a0773e2f48b4bddc74a) + +#### [2.0.110](https://github.com/sematext/logagent-js/compare/2.0.109...2.0.110) + +> 26 April 2018 + +- Fix typo [`#127`](https://github.com/sematext/logagent-js/pull/127) +- split anonymizer plugin into separate plugins [`7e28913`](https://github.com/sematext/logagent-js/commit/7e28913721bd1bf4e4d8dd42d362fb5038ef338a) +- add example for anonymizer plugin [`c865863`](https://github.com/sematext/logagent-js/commit/c865863f9e1e8527eee73993aa29e702618c548c) +- add truncate function for ipv4/v6 fields [`61ef2bb`](https://github.com/sematext/logagent-js/commit/61ef2bbbb74d62b98bae55a38a67598baa5236ae) + +#### [2.0.109](https://github.com/sematext/logagent-js/compare/2.0.108...2.0.109) + +> 28 March 2018 + +- Create Cassandra CQL query input plugin #122 [`#126`](https://github.com/sematext/logagent-js/pull/126) +- Start Cassandra input [`3158e41`](https://github.com/sematext/logagent-js/commit/3158e41393ee3af85324ac64a9cd79937c810d1f) +- add connection pooling configuration [`537f6d5`](https://github.com/sematext/logagent-js/commit/537f6d5ecc8d4300ae0fbcb1fb32f6c31bcab855) +- start cassandra input plugin [`01a8228`](https://github.com/sematext/logagent-js/commit/01a8228f3f5732e055e9dc9b74e954a852dfa64f) + +#### [2.0.108](https://github.com/sematext/logagent-js/compare/2.0.107...2.0.108) + +> 7 March 2018 + +- add example elasticsearch http input to MQTT output [`c8e6b94`](https://github.com/sematext/logagent-js/commit/c8e6b94280bd12489efe86a1871e7eb76926b15e) +- fix JSON detection [`3ff2228`](https://github.com/sematext/logagent-js/commit/3ff2228c0421e1196dea9edc1e5b7191d278cabb) +- improved error handling for empty input or invalid JSON [`d96360a`](https://github.com/sematext/logagent-js/commit/d96360ae30b93ddcf668f2068deac1bf0b2f3af1) + +#### [2.0.107](https://github.com/sematext/logagent-js/compare/2.0.106...2.0.107) + +> 6 March 2018 + +- fix dockerfile for DH [`cde4dc7`](https://github.com/sematext/logagent-js/commit/cde4dc7ae699bf1a8da652751394eb9deabf28ca) +- add output-influxdb plugin [`0d88ccf`](https://github.com/sematext/logagent-js/commit/0d88ccf81307e23aeeae45d4fb2d78a99245306c) +- add bulk requests + other minor changes [`33a5bbf`](https://github.com/sematext/logagent-js/commit/33a5bbfa9cf2701dec66f625ff5abb875d5f7c51) + +#### [2.0.106](https://github.com/sematext/logagent-js/compare/2.0.105...2.0.106) + +> 21 February 2018 + +- fix #125, allow negative file postions, relative from EOF [`#125`](https://github.com/sematext/logagent-js/issues/125) +- fix #125 [`#125`](https://github.com/sematext/logagent-js/issues/125) +- Release 2.0.106 [`a654a2a`](https://github.com/sematext/logagent-js/commit/a654a2a1e0efce6cfffd0f38e4747c551d8e478d) +- add options.tailStartPosition in config loader [`a780cf3`](https://github.com/sematext/logagent-js/commit/a780cf3b55041dc6888c1ef96c2bd8d9cfe57fb1) +- link patterns.yml in dockerhub dir [`9f0f61e`](https://github.com/sematext/logagent-js/commit/9f0f61e977066ff22cbc13e73fb16c9b8091631b) + +#### [2.0.105](https://github.com/sematext/logagent-js/compare/2.0.104...2.0.105) + +> 1 February 2018 + +- adjust path [`cb19602`](https://github.com/sematext/logagent-js/commit/cb196026b924b2da1c7cf0a222cca7f1fa799310) +- Update Dockerfile [`cd35fb6`](https://github.com/sematext/logagent-js/commit/cd35fb6957cf045082af24aa3aea1df78e33f7be) +- Release 2.0.105 [`f6bd58a`](https://github.com/sematext/logagent-js/commit/f6bd58a4b7a160f72bfeceae78e51fdfbb87cb65) + +#### [2.0.104](https://github.com/sematext/logagent-js/compare/2.0.103...2.0.104) + +> 24 January 2018 + +- support global AWS credentials [`70ae126`](https://github.com/sematext/logagent-js/commit/70ae126ff8c666a555725eb387c844195171a523) +- print unhandled promise rejections [`139f4d4`](https://github.com/sematext/logagent-js/commit/139f4d426cb6bf8a19ed8bf47451a4b7ff8c6bab) +- fix loading AWS credentials [`ac9707f`](https://github.com/sematext/logagent-js/commit/ac9707fce7c222407a07d69707cc8a7dbdf95992) + +#### [2.0.103](https://github.com/sematext/logagent-js/compare/2.0.102...2.0.103) + +> 23 January 2018 + +- remove nova sensor & apple-tracker plugin [`1bb66bf`](https://github.com/sematext/logagent-js/commit/1bb66bf2dde60497b8a7ab817e71df1ab759c475) +- Release 2.0.103 [`7a5f210`](https://github.com/sematext/logagent-js/commit/7a5f21023de4fd83e72e2aff59ec872a667bfe86) + +#### [2.0.102](https://github.com/sematext/logagent-js/compare/2.0.101...2.0.102) + +> 21 January 2018 + +- remove duplicated error handler [`6267f56`](https://github.com/sematext/logagent-js/commit/6267f5642bebaab303565e6e932881bda00b0dd4) +- add websocket-stream [`9bcbaf1`](https://github.com/sematext/logagent-js/commit/9bcbaf15b4f46be39b8fab028eb8127b9c8f6c7b) +- Release 2.0.102 [`ecc8649`](https://github.com/sematext/logagent-js/commit/ecc8649716be13426a12e17dc2d4a2612f56959f) + +#### [2.0.101](https://github.com/sematext/logagent-js/compare/2.0.99...2.0.101) + +> 21 January 2018 + +- Add Apple device tracker input plugin [`b0cfd7f`](https://github.com/sematext/logagent-js/commit/b0cfd7f80ab9ebc0d7ac1ec22c1f280a84c3f69c) +- add novaSDS011-dust-sensor plugin [`49bb60e`](https://github.com/sematext/logagent-js/commit/49bb60e4d1d792d2746ff2d719e0b7721a489cce) +- replace Mosca MQTT broker with Aedes MQTT lib, add websocket option [`b585419`](https://github.com/sematext/logagent-js/commit/b585419db88930373c5a160b07caa48d8079135d) + +#### [2.0.99](https://github.com/sematext/logagent-js/compare/2.0.98...2.0.99) + +> 16 January 2018 + +- changed findToken argument from Array to String [`bc3c8c0`](https://github.com/sematext/logagent-js/commit/bc3c8c0328ab861658014608e49c269abee3b421) +- Release 2.0.99 [`bb1f85c`](https://github.com/sematext/logagent-js/commit/bb1f85c7d600d17e00a3076ef9d2514308c8d9b4) + +#### [2.0.98](https://github.com/sematext/logagent-js/compare/2.0.97...2.0.98) + +> 15 January 2018 + +- remove double timestamp for error logs using consoleLogger.error function [`f383580`](https://github.com/sematext/logagent-js/commit/f38358072a840ba6ce7183e89fc0c2bb4bff0e4d) +- Make loading of ES plugin backward compatible, and add warning [`bd5f80c`](https://github.com/sematext/logagent-js/commit/bd5f80c045823f6d7ac16dcb6e00bb51025cb8e2) +- Small changes to Elasticsearch slowlog parsing [`7e1cb68`](https://github.com/sematext/logagent-js/commit/7e1cb686621196d016f147d68f3798875b0272c3) + +#### [2.0.97](https://github.com/sematext/logagent-js/compare/2.0.96...2.0.97) + +> 10 January 2018 + +- Fix a typo... [`#118`](https://github.com/sematext/logagent-js/pull/118) +- Zeromq in/out plugins #116 [`#117`](https://github.com/sematext/logagent-js/pull/117) +- add reference to zeromq plugins [`8d50597`](https://github.com/sematext/logagent-js/commit/8d505979b8c1e92c5a96d1c24c9c2d508d7d54f0) +- Release 2.0.97 [`0b0b87d`](https://github.com/sematext/logagent-js/commit/0b0b87dd8e5fdf17daabb688a6eb0e76ae8099c4) +- Opss fix a typo [`8330adb`](https://github.com/sematext/logagent-js/commit/8330adb4707ae27f50dc533ced911b49981e79dd) + +#### [2.0.96](https://github.com/sematext/logagent-js/compare/2.0.95...2.0.96) + +> 5 January 2018 + +- add mqtt-broker input plugin [`bf291c1`](https://github.com/sematext/logagent-js/commit/bf291c14730930e322d17f08185f4b80712b9649) +- add mqtt output [`354e2e3`](https://github.com/sematext/logagent-js/commit/354e2e39a812e2776849d574f47bc2ca58e8a9d8) +- add input-mqtt-client plugin [`3c485b7`](https://github.com/sematext/logagent-js/commit/3c485b7eac6689f1f2b47883d4f0c3e73abd0b27) + +#### [2.0.95](https://github.com/sematext/logagent-js/compare/2.0.93...2.0.95) + +> 22 December 2017 + +- Add GELF out plugin + move alias grok filter in input filter section [`#111`](https://github.com/sematext/logagent-js/pull/111) +- optimize patterns/remove JS transforms for webserver logs, set originalLine to false [`93fa49c`](https://github.com/sematext/logagent-js/commit/93fa49c94d3e25d6f778b2bcd31659b97c0a78da) +- cpu tuning, replacing moment.js with date-fns [`0573785`](https://github.com/sematext/logagent-js/commit/0573785c078843c4fa6ac2c3c3e676c4787509fd) +- rename addr field in hosts and add example [`c5cecf0`](https://github.com/sematext/logagent-js/commit/c5cecf0a28f4440e242fa748badfbb89f6ad5e53) + +#### [2.0.93](https://github.com/sematext/logagent-js/compare/2.0.92...2.0.93) + +> 8 December 2017 + +- Release 2.0.93 [`cb2dc02`](https://github.com/sematext/logagent-js/commit/cb2dc024b1a04ea16ed5985066b0bd2c1de3c6c6) +- fix debug condition in parser for json.transform [`36320f6`](https://github.com/sematext/logagent-js/commit/36320f68c99490999397703d1b7bca9f1982dd47) + +#### [2.0.92](https://github.com/sematext/logagent-js/compare/2.0.91...2.0.92) + +> 8 December 2017 + +- remove debug flag in patterns.yml [`d1d0d46`](https://github.com/sematext/logagent-js/commit/d1d0d46cf063446ffac027d86491728447ad6b89) +- Release 2.0.92 [`7039469`](https://github.com/sematext/logagent-js/commit/7039469d18c27a0fe33d6eccb73e3472b93e2a5c) + +#### [2.0.91](https://github.com/sematext/logagent-js/compare/2.0.90...2.0.91) + +> 8 December 2017 + +- fix #110 [`#110`](https://github.com/sematext/logagent-js/issues/110) +- add gelf output [`4fc6e90`](https://github.com/sematext/logagent-js/commit/4fc6e907604cf289a4c3b2f3d1d30364e18d3f14) +- removed duplicated pattern/ better formatting, setting types [`0f54d9c`](https://github.com/sematext/logagent-js/commit/0f54d9c78a90a0147581a506c824e9b65668397a) +- add /ping /health and JSON parsing for message field [`7d1a8a9`](https://github.com/sematext/logagent-js/commit/7d1a8a938220d4186d3c900267d147a718fb838f) + +#### [2.0.90](https://github.com/sematext/logagent-js/compare/2.0.89...2.0.90) + +> 1 December 2017 + +- update nginx/http patterns [`4f496d5`](https://github.com/sematext/logagent-js/commit/4f496d5888b80107e9d60a9c29123f00e209d8be) +- Release 2.0.90 [`a98971c`](https://github.com/sematext/logagent-js/commit/a98971c421a1e1ec09a1b7f58b081ed88265ef70) + +#### [2.0.89](https://github.com/sematext/logagent-js/compare/2.0.88...2.0.89) + +> 28 November 2017 + +- move graygelf (having native dependencies) to optionalDependencies section [`541754b`](https://github.com/sematext/logagent-js/commit/541754b3976cce93e7081a3b2673c4b4b854eb9b) +- Release 2.0.89 [`1c2ad46`](https://github.com/sematext/logagent-js/commit/1c2ad46396844eaf87a84978a6c7f12b50a4c79b) +- Update cloudflare.yml [`ef949ad`](https://github.com/sematext/logagent-js/commit/ef949adf449c398dbb176da2c4828df08e70b984) + +#### [2.0.88](https://github.com/sematext/logagent-js/compare/2.0.87...2.0.88) + +> 23 November 2017 + +- Add alias for grok filter [`#107`](https://github.com/sematext/logagent-js/pull/107) +- Add a new docker image and README updates [`#104`](https://github.com/sematext/logagent-js/pull/104) +- Fix typo [`#101`](https://github.com/sematext/logagent-js/pull/101) +- Add GELF Input Plugin [`#99`](https://github.com/sematext/logagent-js/pull/99) +- Implement Elasticsearch Index API [`#92`](https://github.com/sematext/logagent-js/pull/92) +- kafka plugins are external, removed local JS files [`76731f4`](https://github.com/sematext/logagent-js/commit/76731f44665d0699863978c34490764a8954e2ba) +- apply 'standard-format -w' and fix eslint issues [`acf2782`](https://github.com/sematext/logagent-js/commit/acf2782b86f9c5be565195f9aa067d9ac2c149f9) +- implement dynamic response for N documents [`88bc066`](https://github.com/sematext/logagent-js/commit/88bc066e2b87fa69e12e438a90da4958b6518edb) + +#### [2.0.87](https://github.com/sematext/logagent-js/compare/2.0.86...2.0.87) + +> 13 October 2017 + +- Release 2.0.87 [`7b40cd9`](https://github.com/sematext/logagent-js/commit/7b40cd9668c022be7733e9b6ce47d33d5895eab2) + +#### [2.0.86](https://github.com/sematext/logagent-js/compare/2.0.85...2.0.86) + +> 13 October 2017 + +- add Infux HTTP API input [`ae21ec4`](https://github.com/sematext/logagent-js/commit/ae21ec41c21e523d9afcf7f0d6284f1b159afff1) +- fix HTTP return status for telegraf, add tags to separate object [`c6ee6fa`](https://github.com/sematext/logagent-js/commit/c6ee6fa3b55a43316243dabc1350523d99367099) +- rename input-influx-http to input-influxdb-http [`66418bf`](https://github.com/sematext/logagent-js/commit/66418bff8986af153c9cbf32e766706bc2fd1127) + +#### [2.0.85](https://github.com/sematext/logagent-js/compare/2.0.84...2.0.85) + +> 6 October 2017 + +- add example to fetch logs from cloudflare [`0f2a1da`](https://github.com/sematext/logagent-js/commit/0f2a1dab8435b3b501796fe12be9b83947125797) +- add and variables for command templates [`5ec4a7a`](https://github.com/sematext/logagent-js/commit/5ec4a7aa564591520f6491103cc37bded1b3b550) +- Release 2.0.85 [`1ea89a9`](https://github.com/sematext/logagent-js/commit/1ea89a96d4e023f8d140507c3fcbbf707eb338a8) + +#### [2.0.84](https://github.com/sematext/logagent-js/compare/2.0.83...2.0.84) + +> 21 September 2017 + +- Release 2.0.84 [`02a7829`](https://github.com/sematext/logagent-js/commit/02a7829087a5b0348366f6becc588ab739d7325b) + +#### [2.0.83](https://github.com/sematext/logagent-js/compare/2.0.82...2.0.83) + +> 21 September 2017 + +- add aws-elasticsearch.js skeleton [`54bed7e`](https://github.com/sematext/logagent-js/commit/54bed7ec280c52b3542b16ec8fd8c798c4b22d68) +- fix iitial bugs, add ES client tracing optiosn to config, log errors to stderr [`e730c45`](https://github.com/sematext/logagent-js/commit/e730c45bc66b93f0da3969c84e51578395e8ed3c) +- add aws-elasticsearch example, support aws-config.json file [`e4e940e`](https://github.com/sematext/logagent-js/commit/e4e940e21b9ccc4e55cbf88886d725e1525e6f5b) + +#### [2.0.82](https://github.com/sematext/logagent-js/compare/2.0.81...2.0.82) + +> 21 September 2017 + +- support template format for output-file plugin [`14af15e`](https://github.com/sematext/logagent-js/commit/14af15efd513e565105765a99d69c29260c3c377) +- Release 2.0.82 [`aefc79a`](https://github.com/sematext/logagent-js/commit/aefc79aef4aab9bc594e5bd63249203a5002b100) + +#### [2.0.81](https://github.com/sematext/logagent-js/compare/2.0.80...2.0.81) + +> 20 September 2017 + +- Release 2.0.81 [`1b7b696`](https://github.com/sematext/logagent-js/commit/1b7b69610f3dd896f1c0b8e523bd252dbe72c854) +- rename ENABLE_JSON_ENRICHMENT -> JSON_ENRICHMENT_ENABLED [`d175e5a`](https://github.com/sematext/logagent-js/commit/d175e5ab2c0a6462ea94d1252e48b62f4cf93ff7) + +#### [2.0.80](https://github.com/sematext/logagent-js/compare/2.0.79...2.0.80) + +> 20 September 2017 + +- Release 2.0.80 [`05df4a3`](https://github.com/sematext/logagent-js/commit/05df4a32e083004dec451784f5cb4f0a45d81b0f) +- remove console output [`c497fbe`](https://github.com/sematext/logagent-js/commit/c497fbe83e49c80346ae6b4b8299aa09ce5518de) + +#### [2.0.79](https://github.com/sematext/logagent-js/compare/2.0.78...2.0.79) + +> 20 September 2017 + +- Release 2.0.79 [`c5165c7`](https://github.com/sematext/logagent-js/commit/c5165c7611c6367c145563211538e3c511f18026) +- remove debug message [`3a42ebc`](https://github.com/sematext/logagent-js/commit/3a42ebc88100c713abfc0ed7add555dba2ae4584) + +#### [2.0.78](https://github.com/sematext/logagent-js/compare/2.0.77...2.0.78) + +> 20 September 2017 + +- fix format of example config [`ce31618`](https://github.com/sematext/logagent-js/commit/ce31618bbc26864eaa487b8a4c372b0016ad18eb) +- add env var ENABLE_JSON_ENRICHMENT (default = true) [`1349f22`](https://github.com/sematext/logagent-js/commit/1349f22c0a95a795489cb62c4eaa54f3566f7f48) +- Update output-files.yml [`25e2751`](https://github.com/sematext/logagent-js/commit/25e275136b6ccaae498cc89da965535ed5b1af6d) + +#### [2.0.77](https://github.com/sematext/logagent-js/compare/2.0.76...2.0.77) + +> 19 September 2017 + +- add output-files plugin [`a44df46`](https://github.com/sematext/logagent-js/commit/a44df4605f8d1fdc5d2257d34bb400e7a356d5dc) +- Release 2.0.77 [`27489e7`](https://github.com/sematext/logagent-js/commit/27489e778406cde8ba3614106c94f545380f6654) + +#### [2.0.76](https://github.com/sematext/logagent-js/compare/2.0.75...2.0.76) + +> 12 September 2017 + +- Release 2.0.76 [`2dc45d8`](https://github.com/sematext/logagent-js/commit/2dc45d89951ce448e957289a22ab2143b3702b3d) +- remove package 'i' [`661ad4b`](https://github.com/sematext/logagent-js/commit/661ad4b5bac0d1c0efb03eeed6c5c6ec73c6bd68) + +#### [2.0.75](https://github.com/sematext/logagent-js/compare/2.0.74...2.0.75) + +> 12 September 2017 + +- remove documentation -> sematext.com/docs/logagent [`562add0`](https://github.com/sematext/logagent-js/commit/562add08de46dabbd04f2e9c59af3bf02c8352e0) +- Update example.yml [`9418c20`](https://github.com/sematext/logagent-js/commit/9418c20cab3b309fb04f2ef66a261bc6b96bb33f) +- Cosmetics [`1c52c06`](https://github.com/sematext/logagent-js/commit/1c52c062d03da1ea093f5141517fd6f9843bae1a) + +#### [2.0.74](https://github.com/sematext/logagent-js/compare/2.0.73...2.0.74) + +> 22 August 2017 + +- add Elasticsearch slow log pattern [`f67b799`](https://github.com/sematext/logagent-js/commit/f67b79930104c09024111932391ef8d49ab51f60) +- Release 2.0.74 [`62c98db`](https://github.com/sematext/logagent-js/commit/62c98dbcb58252a38de3543f7ac03870fb0d748c) +- fix start pos for tailing files [`adddb25`](https://github.com/sematext/logagent-js/commit/adddb25f7cfe5b377623d41bcdc6dd634ea4c60a) + +#### [2.0.73](https://github.com/sematext/logagent-js/compare/2.0.72...2.0.73) + +> 9 August 2017 + +- Access Watch output filter [`#83`](https://github.com/sematext/logagent-js/pull/83) +- added possibility to choose different timezones and formats for query… [`#82`](https://github.com/sematext/logagent-js/pull/82) +- Use Kafka-node instead of kafka-native for in out and ssl support [`#81`](https://github.com/sematext/logagent-js/pull/81) +- added mssql-query plugin [`#80`](https://github.com/sematext/logagent-js/pull/80) +- Kafka input support with native [`#77`](https://github.com/sematext/logagent-js/pull/77) +- fix #72 [`#72`](https://github.com/sematext/logagent-js/issues/72) +- added mssql-query input plugin [`54e49aa`](https://github.com/sematext/logagent-js/commit/54e49aaae50059733156d0dd281a5be5e1f71fc9) +- remove wrong package file [`11c0313`](https://github.com/sematext/logagent-js/commit/11c0313e71eb6d88c08414cc793ed7b618c69af5) +- first working version, augment data form client_ip and user_agent [`510e5a9`](https://github.com/sematext/logagent-js/commit/510e5a99148b8b69e1b3e8567110d336976d7182) + +#### [2.0.72](https://github.com/sematext/logagent-js/compare/2.0.71...2.0.72) + +> 6 July 2017 + +- add US/EU comment for setup call [`8dfbb8d`](https://github.com/sematext/logagent-js/commit/8dfbb8d2b52f70526ebe3b95d9cdd4810c8ff00e) +- Release 2.0.72 [`7581316`](https://github.com/sematext/logagent-js/commit/7581316bd76c63d3f2de13aca6e151de2a73eda5) +- update dependency to logsene-js [`f1858a2`](https://github.com/sematext/logagent-js/commit/f1858a2f70e8ab8256e648e1c6e21a7365bb7b87) + +#### [2.0.71](https://github.com/sematext/logagent-js/compare/2.0.70...2.0.71) + +> 5 July 2017 + +- postgres-query #36 [`#78`](https://github.com/sematext/logagent-js/pull/78) +- Add mulitple sql statements [`#76`](https://github.com/sematext/logagent-js/pull/76) +- Add date placeholder [`#74`](https://github.com/sematext/logagent-js/pull/74) +- add producer for try plugin [`457311b`](https://github.com/sematext/logagent-js/commit/457311ba45fdd6e348fbe00031c18cbe08cc5a3d) +- rename postgres-> postgresql, improved connection/error handling [`520e1f5`](https://github.com/sematext/logagent-js/commit/520e1f55950287f92dc1402ebc321fe226fc11e6) +- improve connection handling open/close [`b1f7459`](https://github.com/sematext/logagent-js/commit/b1f7459eb8c381abb9564e9794c2f903ebb5da40) + +#### [2.0.70](https://github.com/sematext/logagent-js/compare/2.0.69...2.0.70) + +> 27 June 2017 + +- set parser debug flag to false [`3de5a16`](https://github.com/sematext/logagent-js/commit/3de5a165134b52931a34936491f9a0014869a6f3) +- Release 2.0.70 [`d425aa2`](https://github.com/sematext/logagent-js/commit/d425aa2f837083af9f686522be76ae8d636fda60) + +#### [2.0.69](https://github.com/sematext/logagent-js/compare/2.0.68...2.0.69) + +> 27 June 2017 + +- add mysql-query plugin [`#73`](https://github.com/sematext/logagent-js/pull/73) +- fix #72 [`#72`](https://github.com/sematext/logagent-js/issues/72) +- complete firt kafka input roundtrip [`68a1895`](https://github.com/sematext/logagent-js/commit/68a18955b7ad744760b7e81ce29be76454d106e6) +- add example for Prometheus to Elasticsearch [`3b40620`](https://github.com/sematext/logagent-js/commit/3b40620853eadaf072b8087df83d6d7a8a937db2) +- add shhudown kafka endpoint [`b60dd84`](https://github.com/sematext/logagent-js/commit/b60dd84262e86ea58788928e8bae7ba3e1d9c459) + +#### [2.0.68](https://github.com/sematext/logagent-js/compare/2.0.66...2.0.68) + +> 23 June 2017 + +- add options to setup-script for ES url (-u), glob pattern (-g) and index name (-i) [`54a7c57`](https://github.com/sematext/logagent-js/commit/54a7c576b8db09f0d0d9c68b4d235d175e18307e) +- Release 2.0.68 [`2a9230a`](https://github.com/sematext/logagent-js/commit/2a9230a2bc2c19d6b9f7cd2a8728563300425e43) + +#### [2.0.66](https://github.com/sematext/logagent-js/compare/2.0.65...2.0.66) + +> 8 June 2017 + +- add token blacklist for cf/heroku receiver [`2d162b7`](https://github.com/sematext/logagent-js/commit/2d162b7041e8172fb0d0c8c49d3b95dd56c4a7b6) +- Release 2.0.66 [`bc31a75`](https://github.com/sematext/logagent-js/commit/bc31a75bf95de6473fff2c5be55ebe3d03ed0160) + +#### [2.0.65](https://github.com/sematext/logagent-js/compare/2.0.64...2.0.65) + +> 8 June 2017 + +- Release 2.0.65 [`ca99003`](https://github.com/sematext/logagent-js/commit/ca99003d510f647fa7a57c7a54bed81ee1d52f55) +- update dependency for logsene-js [`d62cc13`](https://github.com/sematext/logagent-js/commit/d62cc136e9d390cc375e85baac10d5381c969c4c) + +#### [2.0.64](https://github.com/sematext/logagent-js/compare/2.0.63...2.0.64) + +> 6 June 2017 + +- fix tailF, removing separator from constructor call [`e8665b9`](https://github.com/sematext/logagent-js/commit/e8665b989c909f917906301eb6bca8055b4ebfc6) +- Release 2.0.64 [`e7c80d4`](https://github.com/sematext/logagent-js/commit/e7c80d4426a9fcf5a7d5cf19b1fa7d6add30f20c) +- Update elasticsearch-query-input.yml [`8bf57a2`](https://github.com/sematext/logagent-js/commit/8bf57a296096b161b841e01294737f6b47ecff93) + +#### [2.0.63](https://github.com/sematext/logagent-js/compare/2.0.62...2.0.63) + +> 9 May 2017 + +- fix datetime not matching on nginx [`#68`](https://github.com/sematext/logagent-js/pull/68) +- make default multi-line separator configurable [`15873d7`](https://github.com/sematext/logagent-js/commit/15873d7c40aeac6d2937408d38b4d3d4c82f5fc0) +- Release 2.0.63 [`3cec3aa`](https://github.com/sematext/logagent-js/commit/3cec3aaf04f43ed349d70b573c84cf05d03c13fd) +- use platform specific EOL [`bddbc2f`](https://github.com/sematext/logagent-js/commit/bddbc2f86bd0002fef6790905da77bc07e8d08c6) + +#### [2.0.62](https://github.com/sematext/logagent-js/compare/2.0.61...2.0.62) + +> 28 April 2017 + +- fix eslint errors [`c62aa7a`](https://github.com/sematext/logagent-js/commit/c62aa7ac04d65d3aa8e17438f11839d3818fb2c2) +- Release 2.0.62 [`d6de066`](https://github.com/sematext/logagent-js/commit/d6de066b9ceebb21ceaf9155e0c6c6b1a615b7a7) + +#### [2.0.61](https://github.com/sematext/logagent-js/compare/2.0.60...2.0.61) + +> 28 April 2017 + +- Re Issue #64 Logagent-setup fails to create init.d script [`#66`](https://github.com/sematext/logagent-js/pull/66) +- fix #64 [`#64`](https://github.com/sematext/logagent-js/issues/64) +- update docs [`2485bc2`](https://github.com/sematext/logagent-js/commit/2485bc26e1a61b22b6f0475f03c57e63ac254a8b) +- add slack-webhook output [`f7a3d09`](https://github.com/sematext/logagent-js/commit/f7a3d09018cde8243616aa2e4fc0c64e83ae6f2a) +- add elasticsearch query input [`7775b43`](https://github.com/sematext/logagent-js/commit/7775b43f66a4750848d24083e4c49adb7aa69ce8) + +#### [2.0.60](https://github.com/sematext/logagent-js/compare/2.0.59...2.0.60) + +> 12 April 2017 + +- update elasticsearch patterns [`f88bf08`](https://github.com/sematext/logagent-js/commit/f88bf080df9b4e9de19a388e9f1a9ad3da836dd0) +- Release 2.0.60 [`cc835ae`](https://github.com/sematext/logagent-js/commit/cc835ae878cd65e6957277187c3a012b5c872043) + +#### [2.0.59](https://github.com/sematext/logagent-js/compare/2.0.58...2.0.59) + +> 20 March 2017 + +- terminate worker on sigterm [`186f367`](https://github.com/sematext/logagent-js/commit/186f3673feebc1c8094b7b34b0d2ff8a9650b0ad) +- fix termination on stdin close [`b4d83a7`](https://github.com/sematext/logagent-js/commit/b4d83a7363c123c8b2a17bd1ba7901691faae2cf) +- Release 2.0.59 [`3a7ab4b`](https://github.com/sematext/logagent-js/commit/3a7ab4b7022e832c6efa4541bbc344cd94c6f9ec) + +#### [2.0.58](https://github.com/sematext/logagent-js/compare/2.0.57...2.0.58) + +> 13 March 2017 + +- Fix initial maxmind update [`#62`](https://github.com/sematext/logagent-js/pull/62) +- Release 2.0.58 [`746c105`](https://github.com/sematext/logagent-js/commit/746c1054f89d134d94c0b675d06df341a50f2a98) + +#### [2.0.57](https://github.com/sematext/logagent-js/compare/2.0.56...2.0.57) + +> 7 March 2017 + +- typo fix for word "example" [`#61`](https://github.com/sematext/logagent-js/pull/61) +- Release 2.0.56 [`2e485b6`](https://github.com/sematext/logagent-js/commit/2e485b6807080c50ba1a9af1e084e6941911cd24) +- Release 2.0.57 [`5c00383`](https://github.com/sematext/logagent-js/commit/5c003837d5a45d0d8d95b87a98f7d0ad1ef2c4c3) +- reduce memory usage using --max-old-space-size=150 as default (500MB before) [`5dbe012`](https://github.com/sematext/logagent-js/commit/5dbe012eb8ae6649bfad309c4d911ad7449665bc) + +#### [2.0.56](https://github.com/sematext/logagent-js/compare/2.0.55...2.0.56) + +> 16 February 2017 + +- Release 2.0.56 [`c3323ea`](https://github.com/sematext/logagent-js/commit/c3323eaa3750a297780788171ed1031eb1809f9c) +- fix 'depcrated os.tempdir()' message [`10b7449`](https://github.com/sematext/logagent-js/commit/10b7449dce41405b5dce68a820e9ca6d2573ac6e) +- add precommit for standard/eslint [`e01abb3`](https://github.com/sematext/logagent-js/commit/e01abb3fdcf9c655ee32be6cb4559dd65e5c0f81) + +#### [2.0.55](https://github.com/sematext/logagent-js/compare/2.0.54...2.0.55) + +> 10 February 2017 + +- [WIP] add eslintrc config, fix various issues identified by eslint [`#60`](https://github.com/sematext/logagent-js/pull/60) +- Add support for time-based index patterns, prefer severity over level [`#59`](https://github.com/sematext/logagent-js/pull/59) +- add eslintrc config, fix various issues identified by eslint [`9d65cc0`](https://github.com/sematext/logagent-js/commit/9d65cc0a0aae18e5c08ffd3efa8ab2df80ee6fcd) +- fix standard-format warnings [`bf99dee`](https://github.com/sematext/logagent-js/commit/bf99dee7201574b38f257df947737a279a1c1d07) +- support time-based elasticsearch indexes, prefer severity to level [`0642c6e`](https://github.com/sematext/logagent-js/commit/0642c6ee34b42b4e8982570d48996a0ac5686af1) + +#### [2.0.54](https://github.com/sematext/logagent-js/compare/2.0.53...2.0.54) + +> 9 February 2017 + +- update examples and docs for elasticsearch output module [`6063ae0`](https://github.com/sematext/logagent-js/commit/6063ae022223503e1b6a30d3cf92e5c5095b2474) +- Release 2.0.54 [`40eef86`](https://github.com/sematext/logagent-js/commit/40eef8694e3a4e010aae8c3e7447b148992a7dcc) + +#### [2.0.53](https://github.com/sematext/logagent-js/compare/2.0.52...2.0.53) + +> 9 February 2017 + +- assorted odds & ends [`#58`](https://github.com/sematext/logagent-js/pull/58) +- Bunyan log parsing [`#57`](https://github.com/sematext/logagent-js/pull/57) +- add test for bunyan log handling [`bd47ff0`](https://github.com/sematext/logagent-js/commit/bd47ff0515509f7c2968d85b3d4039bb5a599d72) +- fallback for filter name, initPugins -> initPlugins, outputFilterSections -> inputFilterSections, != -> !== [`865f397`](https://github.com/sematext/logagent-js/commit/865f39795d30bb45939645bd06fd17b8b0c9d69e) +- properly detect bunyan log messages, remove bunyan time when after setting @timestamp [`2d98571`](https://github.com/sematext/logagent-js/commit/2d98571e97dc73a0b9ae476d0ef8f2313a0a9e86) + +#### [2.0.52](https://github.com/sematext/logagent-js/compare/2.0.51...2.0.52) + +> 9 February 2017 + +- fix #56 [`#56`](https://github.com/sematext/logagent-js/issues/56) +- update dependencies [`b83b027`](https://github.com/sematext/logagent-js/commit/b83b027f7190cec33ca4b7ee36bebcd5b8ddc284) +- Release 2.0.52 [`86dc321`](https://github.com/sematext/logagent-js/commit/86dc3218b214ca5d2fa3747027b86b9c2e939c3e) + +#### [2.0.51](https://github.com/sematext/logagent-js/compare/2.0.50...2.0.51) + +> 9 February 2017 + +- fix undefined sourceName when using command input [`#55`](https://github.com/sematext/logagent-js/pull/55) +- Release 2.0.51 [`bf1e21d`](https://github.com/sematext/logagent-js/commit/bf1e21d1777dab07cd09179447145c7d5dfa8ab8) +- add node 7 remove node 5 [`f3fd375`](https://github.com/sematext/logagent-js/commit/f3fd3751f92794122656ddc36522956554c9e9de) +- remove node 0.10 from travis [`32a6842`](https://github.com/sematext/logagent-js/commit/32a6842405a288ba4efea5c6a1fc96b8ca781a51) + +#### [2.0.50](https://github.com/sematext/logagent-js/compare/2.0.49...2.0.50) + +> 7 February 2017 + +- fix null coordinates with GeoLite2 records [`cd9d863`](https://github.com/sematext/logagent-js/commit/cd9d863be343e2b131872611a06246b600b0fc70) +- Release 2.0.50 [`e7b5eb4`](https://github.com/sematext/logagent-js/commit/e7b5eb4e67f1e414e81c4a8ec7419ff63c913f79) + +#### [2.0.49](https://github.com/sematext/logagent-js/compare/2.0.48...2.0.49) + +> 7 February 2017 + +- upgrade to maxmind V1 API [`44c7c8e`](https://github.com/sematext/logagent-js/commit/44c7c8eba796ee96e18fdf5687373370ffc73d2e) +- Release 2.0.49 [`342cceb`](https://github.com/sematext/logagent-js/commit/342cceb3913dd95d13ac4ba1e809adaa73e98220) + +#### [2.0.48](https://github.com/sematext/logagent-js/compare/2.0.47...2.0.48) + +> 7 February 2017 + +- fix geoip lookup [`7b4ee2b`](https://github.com/sematext/logagent-js/commit/7b4ee2b2df7cc84107d15c9e3983359026b7dac3) +- Release 2.0.48 [`1e5af33`](https://github.com/sematext/logagent-js/commit/1e5af3369b9aac00b0fa5fd7209f4900d73a6f75) + +#### [2.0.47](https://github.com/sematext/logagent-js/compare/2.0.46...2.0.47) + +> 7 February 2017 + +- Release 2.0.47 [`f0433bc`](https://github.com/sematext/logagent-js/commit/f0433bcccf8d32033e98ba9137af3d84381c48ca) +- use maxmind 0.6, API changes [`b4e0e03`](https://github.com/sematext/logagent-js/commit/b4e0e031e8bbe3600a232110229e41b440599759) + +#### [2.0.46](https://github.com/sematext/logagent-js/compare/2.0.45...2.0.46) + +> 6 February 2017 + +- Revert "reset tail-forever every N minutes" [`d1c5285`](https://github.com/sematext/logagent-js/commit/d1c5285f4e778bb25bd502f32173b034699cbfad) +- reset tail-forever every N minutes [`ba8193a`](https://github.com/sematext/logagent-js/commit/ba8193ab396ef628bce201c56c3413dc465a038c) +- fix --geoipEnabled flag [`04f4491`](https://github.com/sematext/logagent-js/commit/04f449193ec13da4d40766681dca66f0673e3e4d) + +#### [2.0.45](https://github.com/sematext/logagent-js/compare/2.0.44...2.0.45) + +> 22 January 2017 + +- update dependencies [`5e24ecd`](https://github.com/sematext/logagent-js/commit/5e24ecd97b8299f9117f7e55dfa82427edda5bf6) +- Release 2.0.45 [`27fa2e6`](https://github.com/sematext/logagent-js/commit/27fa2e6f27e4d206a74279c40f425b1121281520) + +#### [2.0.44](https://github.com/sematext/logagent-js/compare/2.0.43...2.0.44) + +> 17 January 2017 + +- add example to store BRO ids logs in Elasticsearch [`a54c1e1`](https://github.com/sematext/logagent-js/commit/a54c1e1f2e8f57605db73af1d99dec8a0bc4e812) +- update for Elasticsearch 5 timestamp format [`56c575d`](https://github.com/sematext/logagent-js/commit/56c575d4326be7700004d0d4579290cff507d4c5) +- fix typo in bro-ids.yaml [`fef2651`](https://github.com/sematext/logagent-js/commit/fef2651af20a358d6b7107398ca6ae60aa0b9763) + +#### [2.0.43](https://github.com/sematext/logagent-js/compare/2.0.42...2.0.43) + +> 2 January 2017 + +- fix typo in comment [`010ad5a`](https://github.com/sematext/logagent-js/commit/010ad5a5fd932664b6d2a5ae0127359330c0f787) +- Release 2.0.43 [`1ac75eb`](https://github.com/sematext/logagent-js/commit/1ac75eb9f47dd9bee634457cf4a7672a3fde9904) +- fix typo in comment [`5d1807f`](https://github.com/sematext/logagent-js/commit/5d1807f5b696a3aa4ea21a767701231883e42b2a) + +#### [2.0.42](https://github.com/sematext/logagent-js/compare/2.0.41...2.0.42) + +> 12 December 2016 + +- multiline callback handling [`9e1161b`](https://github.com/sematext/logagent-js/commit/9e1161b313ea24fea878306e50d3673c72b38ba4) +- Release 2.0.42 [`560af6a`](https://github.com/sematext/logagent-js/commit/560af6a51d80593a473c8a2889bf49d17dcd0e30) + +#### [2.0.41](https://github.com/sematext/logagent-js/compare/2.0.40...2.0.41) + +> 8 December 2016 + +- update example for journald [`7bac233`](https://github.com/sematext/logagent-js/commit/7bac233ed8b44a1d096f66e43d8a54ee6fc7d5c9) +- add command stout/sterr as input plugin 'command' [`35716c4`](https://github.com/sematext/logagent-js/commit/35716c40c5088e98bd28a62c1adcacb073ffd106) +- example for journald input [`1d9c452`](https://github.com/sematext/logagent-js/commit/1d9c452e0e716cf751dd8d65b3993c7b6f9692fb) + +#### [2.0.40](https://github.com/sematext/logagent-js/compare/2.0.39...2.0.40) + +> 7 December 2016 + +- add timerEvents to share one timer for all multi-line parsers [`f38c287`](https://github.com/sematext/logagent-js/commit/f38c2876b5bd772a3fc2ba6f1d5b1ce81eb5f181) +- user timerEvent in multi-line parser [`03dd407`](https://github.com/sematext/logagent-js/commit/03dd407c57e124e0ebdf52e4d4866f9898ee475f) +- Release 2.0.40 [`2a64224`](https://github.com/sematext/logagent-js/commit/2a642243f0ea27495e59c1ef94e285180af2e2a3) + +#### [2.0.39](https://github.com/sematext/logagent-js/compare/2.0.38...2.0.39) + +> 6 December 2016 + +- fix 'error unknown option -t' [`1a31d35`](https://github.com/sematext/logagent-js/commit/1a31d35ee18402f39ecf86142f3e42b22a24e06e) +- Release 2.0.39 [`5ffed37`](https://github.com/sematext/logagent-js/commit/5ffed3748f750253849a204167df8093484664d7) +- fixed typo in sample config [`7f61c56`](https://github.com/sematext/logagent-js/commit/7f61c567e70700389038590bb59a2e18cd357c0c) + +#### [2.0.38](https://github.com/sematext/logagent-js/compare/2.0.37...2.0.38) + +> 6 December 2016 + +- add windows reame [`3b28f09`](https://github.com/sematext/logagent-js/commit/3b28f09c255cd5118dcdc763277fee7c99ccad47) +- updates [`4d5e267`](https://github.com/sematext/logagent-js/commit/4d5e26761b329ca7af83794fe83c894fd789d84a) +- Release 2.0.38 [`76a3da9`](https://github.com/sematext/logagent-js/commit/76a3da9892a99329c4944b6f4ffe52cc8779126c) + +#### [2.0.37](https://github.com/sematext/logagent-js/compare/2.0.36...2.0.37) + +> 6 December 2016 + +- standard format, removed debug output [`d029e9f`](https://github.com/sematext/logagent-js/commit/d029e9f243a5144f92bb21cd6f0c718f52b92404) +- add windows service installer [`dacbd09`](https://github.com/sematext/logagent-js/commit/dacbd09cc78ded95c3a975b1368f89d0b35d6923) +- Release 2.0.37 [`c3ae63f`](https://github.com/sematext/logagent-js/commit/c3ae63f3a16b93a0e5d4a4e3dba52bb56f3993a2) + +#### [2.0.36](https://github.com/sematext/logagent-js/compare/2.0.35...2.0.36) + +> 5 December 2016 + +- Update readme [`adf7b9f`](https://github.com/sematext/logagent-js/commit/adf7b9fba4d131960e0528b8f4206bee964f0a78) +- Release 2.0.36 [`2ea95bc`](https://github.com/sematext/logagent-js/commit/2ea95bc982a66391017e0da4ab68bf6fc6dba23c) +- Add overview diagram [`fdffc02`](https://github.com/sematext/logagent-js/commit/fdffc0223cd4bd455611a321cbd74eb6e5770276) + +#### [2.0.35](https://github.com/sematext/logagent-js/compare/2.0.34...2.0.35) + +> 2 December 2016 + +- Release 2.0.35 [`81a54b1`](https://github.com/sematext/logagent-js/commit/81a54b12098fa264324598f952c9ee7e3c4eeddc) +- match against data.logSource and context.sourceName [`02f2a41`](https://github.com/sematext/logagent-js/commit/02f2a4115b5c76b03f320da04eae3119344c15e9) + +#### [2.0.34](https://github.com/sematext/logagent-js/compare/2.0.33...2.0.34) + +> 2 December 2016 + +- add bin/logagent-windows.js [`cdfc991`](https://github.com/sematext/logagent-js/commit/cdfc99196b601a7becc664f21e52e733645da934) +- Release 2.0.34 [`86ad715`](https://github.com/sematext/logagent-js/commit/86ad715020c98ef26d95d8c992e52fa20daf7c8c) + +#### [2.0.33](https://github.com/sematext/logagent-js/compare/2.0.32...2.0.33) + +> 2 December 2016 + +- Release 2.0.33 [`73f3cf4`](https://github.com/sematext/logagent-js/commit/73f3cf4be4b762ac895d5dc70f8f11024104d7fa) +- add bin/logagent-windows.js [`d12dddc`](https://github.com/sematext/logagent-js/commit/d12dddcddbc9384fa437f47395d03d39e02a8538) + +#### [2.0.32](https://github.com/sematext/logagent-js/compare/2.0.31...2.0.32) + +> 2 December 2016 + +- Release 2.0.32 [`a3e37ec`](https://github.com/sematext/logagent-js/commit/a3e37ec9df25c5a6be9f02219766b022ed665994) +- changed console output [`9053234`](https://github.com/sematext/logagent-js/commit/905323405d649481f95b54fd8f314e293b42d354) +- add bin/logagent-windows.js [`9c5e4fb`](https://github.com/sematext/logagent-js/commit/9c5e4fb1bd56cd02cf9f1b60d0100f8e46c8d763) + +#### [2.0.31](https://github.com/sematext/logagent-js/compare/2.0.30...2.0.31) + +> 15 November 2016 + +- add elasticsearch output documentation [`3cd05f3`](https://github.com/sematext/logagent-js/commit/3cd05f3c97f51171cae614f41c268b2c578dc7ab) +- Release 2.0.31 [`3fa1b63`](https://github.com/sematext/logagent-js/commit/3fa1b63a593ce268359b026bdf154b25a688cc8a) +- fix typo [`5d05f73`](https://github.com/sematext/logagent-js/commit/5d05f73c15197527706a2a3b881ddc1b1622fd91) + +#### [2.0.30](https://github.com/sematext/logagent-js/compare/2.0.29...2.0.30) + +> 15 November 2016 + +- update package name in uninstall script [`6353ab5`](https://github.com/sematext/logagent-js/commit/6353ab523f7543f4f452b535232b79ce7335b5e2) +- Release 2.0.30 [`7ecb3ce`](https://github.com/sematext/logagent-js/commit/7ecb3ced8d01087bd5d180634ba51ac3907fd90c) + +#### [2.0.29](https://github.com/sematext/logagent-js/compare/2.0.28...2.0.29) + +> 11 November 2016 + +- add httpOptions to elasticsearch output plugin [`1a18279`](https://github.com/sematext/logagent-js/commit/1a18279e5169759bce88eec4b091526402a8cc3f) +- Release 2.0.29 [`befe268`](https://github.com/sematext/logagent-js/commit/befe268466474d372665bf984800e9132d93dfbc) + +#### [2.0.28](https://github.com/sematext/logagent-js/compare/2.0.27...2.0.28) + +> 4 November 2016 + +- output to multiple Elasticsearch servers, terminate after stdin.close and all logs shipped [`3276989`](https://github.com/sematext/logagent-js/commit/32769890e78f274cdef97a77ea4bcf28f2a502c3) +- Release 2.0.28 [`b29ddc3`](https://github.com/sematext/logagent-js/commit/b29ddc33a3937e0803eece1859ff8bb3161f8d0d) + +#### [2.0.27](https://github.com/sematext/logagent-js/compare/2.0.26...2.0.27) + +> 2 November 2016 + +- integrate tcp-input, grep filter, update sql filter, add docs [`da7a36e`](https://github.com/sematext/logagent-js/commit/da7a36ef143b9a55aba75a7e37082e225c342eb0) +- fix pattern list by source [`bc4738e`](https://github.com/sematext/logagent-js/commit/bc4738e0b2d58d0dee8b609e37522aebb204209d) +- update docs [`75dfcf7`](https://github.com/sematext/logagent-js/commit/75dfcf70bce8d68b8d1f14c4ed68825834ae23db) + +#### [2.0.26](https://github.com/sematext/logagent-js/compare/2.0.25...2.0.26) + +> 2 November 2016 + +- add filter docs [`2a689a7`](https://github.com/sematext/logagent-js/commit/2a689a78f52695edb10bd0113c728443aa2238ff) +- changed json handling, remove ts field [`895f310`](https://github.com/sematext/logagent-js/commit/895f310e59b8de9b330d7de71848d37941a09777) +- Release 2.0.26 [`bb1f45a`](https://github.com/sematext/logagent-js/commit/bb1f45a787a3cbe438b60034f43fb5bc11254988) + +#### [2.0.25](https://github.com/sematext/logagent-js/compare/2.0.24...2.0.25) + +> 24 October 2016 + +- Release 2.0.25 [`1380ab1`](https://github.com/sematext/logagent-js/commit/1380ab18e10cd66830a584cf634c9ab795f03cd5) +- add module alias table, e.g. to load sql output filter with a short alias 'sql' instead of ../lib/plugins/output-filter/sql.js [`4fecd56`](https://github.com/sematext/logagent-js/commit/4fecd5612e965dfb4572bcf09776ab1b62e5f93b) + +#### [2.0.24](https://github.com/sematext/logagent-js/compare/2.0.23...2.0.24) + +> 23 October 2016 + +- log error events from plugins [`6ba1241`](https://github.com/sematext/logagent-js/commit/6ba12418e3a47081be25f1e4aa9e183a839b13e3) +- updates docker start script [`e6ee6bb`](https://github.com/sematext/logagent-js/commit/e6ee6bb84f07b6e2288e4116e60f7fc4e471deb7) +- Release 2.0.24 [`6e621e1`](https://github.com/sematext/logagent-js/commit/6e621e121154a2e6df6df5047c0d33944e7d896c) + +#### [2.0.23](https://github.com/sematext/logagent-js/compare/2.0.22...2.0.23) + +> 17 October 2016 + +- fix #45 [`#45`](https://github.com/sematext/logagent-js/issues/45) +- Release 2.0.23 [`3497f1e`](https://github.com/sematext/logagent-js/commit/3497f1e0d2cbff9af93b66b97dc93f19a5ce060f) + +#### [2.0.22](https://github.com/sematext/logagent-js/compare/2.0.21...2.0.22) + +> 17 October 2016 + +- fix #45 [`#45`](https://github.com/sematext/logagent-js/issues/45) +- Release 2.0.22 [`291b692`](https://github.com/sematext/logagent-js/commit/291b692d78ffb8ac652e749a24b44e4e3212a910) + +#### [2.0.21](https://github.com/sematext/logagent-js/compare/2.0.20...2.0.21) + +> 17 October 2016 + +- fix #45, rtail plugin not loaded [`#45`](https://github.com/sematext/logagent-js/issues/45) +- change error message [`3ef3c0a`](https://github.com/sematext/logagent-js/commit/3ef3c0adfea208458df463fdb5a2908924465639) +- Release 2.0.21 [`8770870`](https://github.com/sematext/logagent-js/commit/877087073b3ea565ed39c342b3f58845230ffb7c) + +#### [2.0.20](https://github.com/sematext/logagent-js/compare/2.0.19...2.0.20) + +> 7 October 2016 + +- support filter/aggregate functions, using fibers [`4d9e0c5`](https://github.com/sematext/logagent-js/commit/4d9e0c53cad3421ede91df4e8bfa9f9bd6d7cfa8) +- switch to enable JSON processing, JSON detection/parsing after pattern processing [`a6ef4aa`](https://github.com/sematext/logagent-js/commit/a6ef4aa3e3d3f8172e1af5db9331fd8419d5137c) +- fix error when no settings for stdin plugin exist in config file [`68ff4c1`](https://github.com/sematext/logagent-js/commit/68ff4c11ebd9adadbf97de4f7ab59871f87dde23) + +#### [2.0.19](https://github.com/sematext/logagent-js/compare/2.0.17...2.0.19) + +> 4 October 2016 + +- Release 2.0.19 [`99de8b5`](https://github.com/sematext/logagent-js/commit/99de8b56588c69203573254f421c590677877cb9) +- Fix typo in syslog UDP port property [`0e1c49d`](https://github.com/sematext/logagent-js/commit/0e1c49d661004f70873f012df9698c631187a197) + +#### [2.0.17](https://github.com/sematext/logagent-js/compare/2.0.16...2.0.17) + +> 26 September 2016 + +- Release 2.0.17 [`b1fbff5`](https://github.com/sematext/logagent-js/commit/b1fbff560dcfa7d53571f14767fcc2c5465ade67) +- fix bind address [`3ffadaf`](https://github.com/sematext/logagent-js/commit/3ffadafec264c3e78e7ec906667e2303e772c84b) +- Fix typo in --elasticsearchUrl parameter [`dcc65eb`](https://github.com/sematext/logagent-js/commit/dcc65ebb12fca38b9a8ddbb139a3266808546c5e) + +#### [2.0.16](https://github.com/sematext/logagent-js/compare/2.0.15...2.0.16) + +> 23 September 2016 + +- make sure patterns are matched from beginning -> better performance [`f253edf`](https://github.com/sematext/logagent-js/commit/f253edf8e58dcb54b15295367b95e70e3c15b2f5) +- revert a00d2bf33b0f6c34a57bf44e519ef6f2f1514c1b, load always default patterns [`1c02f6c`](https://github.com/sematext/logagent-js/commit/1c02f6c4dbf5f22b1d7cdb89ea32d26b8282daaa) +- don't load default patterns, when user configured pattern files [`a00d2bf`](https://github.com/sematext/logagent-js/commit/a00d2bf33b0f6c34a57bf44e519ef6f2f1514c1b) + +#### [2.0.15](https://github.com/sematext/logagent-js/compare/2.0.14...2.0.15) + +> 23 September 2016 + +- changed multi-line timeout handling [`65f2ff5`](https://github.com/sematext/logagent-js/commit/65f2ff5e762c79b3e2fef49e777df3e8afecb3d2) +- Release 2.0.15 [`22196b6`](https://github.com/sematext/logagent-js/commit/22196b639e01151c09aff216f3f4a74062e1da6c) + +#### [2.0.14](https://github.com/sematext/logagent-js/compare/2.0.13...2.0.14) + +> 19 September 2016 + +- Release 2.0.14 [`d5aba6c`](https://github.com/sematext/logagent-js/commit/d5aba6c58ddb7a734c8f120018b42d2a92a85f6d) +- fix parsing of bunyan logs [`9b298dd`](https://github.com/sematext/logagent-js/commit/9b298dd4a4e335a1f66204e8aa146471eb0be3a8) + +#### [2.0.13](https://github.com/sematext/logagent-js/compare/2.0.12...2.0.13) + +> 13 September 2016 + +- add json post processing options (autohash, transform) in parser [`1d5af28`](https://github.com/sematext/logagent-js/commit/1d5af2859f20ff1184dc54ea24476e23d6d26c2b) +- example for json post processing [`b188f62`](https://github.com/sematext/logagent-js/commit/b188f6245b881c6b0d9b54f31f157ba805984ec5) +- json post process example in comments [`9655907`](https://github.com/sematext/logagent-js/commit/96559072b157faae252d392aff43c839fdc30039) + +#### [2.0.12](https://github.com/sematext/logagent-js/compare/2.0.11...2.0.12) + +> 13 September 2016 + +- Release 2.0.12 [`426f304`](https://github.com/sematext/logagent-js/commit/426f304d2ddde7fccecc79c941661369731b2cde) +- add keywords, e.g. elasticsearch [`2fcf202`](https://github.com/sematext/logagent-js/commit/2fcf20294c003643bbd3c098396e5c9e4a3321f6) + +#### [2.0.11](https://github.com/sematext/logagent-js/compare/2.0.10...2.0.11) + +> 13 September 2016 + +- release note changes [`9915b1a`](https://github.com/sematext/logagent-js/commit/9915b1a8d0359b79ca7dace910d63fad4a017561) +- Release 2.0.11 [`3d7866d`](https://github.com/sematext/logagent-js/commit/3d7866d6693963b23954f22a9ec0d7a8cd50464a) + +#### [2.0.10](https://github.com/sematext/logagent-js/compare/2.0.9...2.0.10) + +> 13 September 2016 + +- remo -js from logagent in readme [`14e1a22`](https://github.com/sematext/logagent-js/commit/14e1a22a4c81d8789ac8b6100a00a3e35bf1b1df) +- Release 2.0.10 [`4b926d0`](https://github.com/sematext/logagent-js/commit/4b926d036363c2ec6f7e42d55c69ab485c810c94) + +#### [2.0.9](https://github.com/sematext/logagent-js/compare/2.0.8...2.0.9) + +> 13 September 2016 + +- add putput plugin example [`5476575`](https://github.com/sematext/logagent-js/commit/547657509d5be3948229528ce34ea1b2bec3fe3a) +- move install section to the top, reference to service installer and location of default config file [`bf97b4c`](https://github.com/sematext/logagent-js/commit/bf97b4cda93b6018f877812dca6ceacc55fcdc68) +- link to existing plugins [`6c4d369`](https://github.com/sematext/logagent-js/commit/6c4d36909c5a335c8d162fa7def8bf0fa22f9e9f) + +#### [2.0.8](https://github.com/sematext/logagent-js/compare/2.0.7...2.0.8) + +> 13 September 2016 + +- structure quickstart section [`97b6a81`](https://github.com/sematext/logagent-js/commit/97b6a8199771e0d5fa3aa7621e17d8ce5172d0fa) +- Release 2.0.8 [`aeaa10c`](https://github.com/sematext/logagent-js/commit/aeaa10c2e4876c7f6a9ad6322cc4ea7082831964) + +#### [2.0.7](https://github.com/sematext/logagent-js/compare/2.0.6...2.0.7) + +> 13 September 2016 + +- link from whats new to docs [`9f7463b`](https://github.com/sematext/logagent-js/commit/9f7463b294b88e97c8d83a8b50f9fc057b62d9bb) +- add multiple pattern files, hot reload [`346d2ad`](https://github.com/sematext/logagent-js/commit/346d2ad957ae2f8bcd6b14c748b88ca0df66e983) +- Release 2.0.7 [`1899c61`](https://github.com/sematext/logagent-js/commit/1899c6169e360594528f90a07144679ce64bc019) + +#### [2.0.6](https://github.com/sematext/logagent-js/compare/2.0.5...2.0.6) + +> 13 September 2016 + +- Release 2.0.6 [`5fe9a67`](https://github.com/sematext/logagent-js/commit/5fe9a67d9b5d77c84a5e8fa06c6dd5b03536be26) +- remove npm badge - not working for scoped packages [`e5a0a3d`](https://github.com/sematext/logagent-js/commit/e5a0a3dda2f3e6dc981310445e32384acec69942) + +#### [2.0.5](https://github.com/sematext/logagent-js/compare/2.0.4...2.0.5) + +> 12 September 2016 + +- update docs [`a348714`](https://github.com/sematext/logagent-js/commit/a348714e0dbe961cee06878c1c43956c64dd5d34) +- fix cli without config file [`6ad1a5f`](https://github.com/sematext/logagent-js/commit/6ad1a5fec8eb53afe6467a3d64fb05194b01f0ae) +- load 3rd party modules first, e.g. for nodejs monitor too hook into http functions before heroku/cf server gets loaded [`1117b43`](https://github.com/sematext/logagent-js/commit/1117b43d6b70609d244e1804408b4524b5db8907) + +#### [2.0.4](https://github.com/sematext/logagent-js/compare/2.0.2...2.0.4) + +> 8 September 2016 + +- update cli options [`3c58aa4`](https://github.com/sematext/logagent-js/commit/3c58aa4d960be85dbe68ab47e02127facbe8e006) +- Release 2.0.4 [`74b7668`](https://github.com/sematext/logagent-js/commit/74b7668334937f1cbdfefe532b62d7787a9f3b02) +- remove warning on parser errors, too verbose e.g. for empty lines [`46026df`](https://github.com/sematext/logagent-js/commit/46026dfb90e1f7fd0ec311e88f8905d50f52ac54) + +#### [2.0.2](https://github.com/sematext/logagent-js/compare/2.0.1...2.0.2) + +> 8 September 2016 + +- load only required plugins/modules depending on config [`b2db631`](https://github.com/sematext/logagent-js/commit/b2db6319ba4e462ece3440c4505dd776c2232b90) +- don't terminate on stdin/ EOF when other input plugins are loaded [`53d63e1`](https://github.com/sematext/logagent-js/commit/53d63e174727b5403932608d55a086a92ac96d9f) +- include pid in logs [`e02ab45`](https://github.com/sematext/logagent-js/commit/e02ab454709b238d2170b509e58d3bac423acf44) + +### [2.0.1](https://github.com/sematext/logagent-js/compare/1.2.12...2.0.1) + +> 8 September 2016 + +- refactoring, new dir structure, fix #35 [`#35`](https://github.com/sematext/logagent-js/issues/35) +- changes for #28, move to eventemitter2, started with plugin structure [`b52a22f`](https://github.com/sematext/logagent-js/commit/b52a22f60018a8dcdf179da21a377feed2290152) +- refactoring, split in modules, prep. for cli tests [`36ce8da`](https://github.com/sematext/logagent-js/commit/36ce8da0102a48f82c2d57321febb132d223ffa6) +- code format, copyright statement [`a93ebde`](https://github.com/sematext/logagent-js/commit/a93ebdeb6035a674c824a9eae92545d6432d8486) + +#### 1.2.62 + +> 31 May 2016 + +- Fixed originalLine typo [`#8`](https://github.com/sematext/logagent-js/pull/8) +- fixed a typo in patterns.yml [`#6`](https://github.com/sematext/logagent-js/pull/6) +- structured logs dir [`b9451c2`](https://github.com/sematext/logagent-js/commit/b9451c2a5e31eda6d3dae8854c5b9530b4b0dac2) +- initial version [`3e5fe01`](https://github.com/sematext/logagent-js/commit/3e5fe015fa44e589beb7c33795c302c746b6e16b) +- add source for mkdocs [`b1fe290`](https://github.com/sematext/logagent-js/commit/b1fe2900e81a316f62cf6d27f6ff39b381f40fc5) + +#### [1.2.12](https://github.com/sematext/logagent-js/compare/1.1.64...1.2.12) + +> 2 July 2016 + +- Allow specifying the file pattern as $2 [`#10`](https://github.com/sematext/logagent-js/pull/10) +- omproved logging, add --help, moced to commander CLI option parser [`02ebe51`](https://github.com/sematext/logagent-js/commit/02ebe514bf423faf89353b9790a901fbf938510f) +- improved log output, scanning files for glob patterns [`a249780`](https://github.com/sematext/logagent-js/commit/a249780eb511fff3dbf57b9c8a4ffa7f878263ac) +- Store tail position and recover on restart. Incl. indode check to start at begin of file, when inode changed [`79cf001`](https://github.com/sematext/logagent-js/commit/79cf00139011e49a5d63e2f0448a7bc0ceaedb63) + +#### [1.1.64](https://github.com/sematext/logagent-js/compare/1.1.63...1.1.64) + +> 1 June 2016 + +- add optional type for fields e.g. fieldname:string / fieldname:number [`c5078a5`](https://github.com/sematext/logagent-js/commit/c5078a54b28cefd26432aa0c4c372c04c1bc7786) +- version bump [`51de36e`](https://github.com/sematext/logagent-js/commit/51de36e865c1721a1d0a3c23c107f1212211f165) + +#### [1.1.63](https://github.com/sematext/logagent-js/compare/1.2.62...1.1.63) + +> 31 May 2016 + +- add optional log messages for cf/heroku mode and stats [`af3c57b`](https://github.com/sematext/logagent-js/commit/af3c57bba087e98001762bbae75ab2d2f6c3742c) +- version bump [`7ee88ac`](https://github.com/sematext/logagent-js/commit/7ee88acc9bde61cbd6dcb58fd1bbfdd230247ec7) diff --git a/node_modules/@sematext/logagent/build/ci/Jenkinsfile b/node_modules/@sematext/logagent/build/ci/Jenkinsfile new file mode 100644 index 00000000..efb4b3e1 --- /dev/null +++ b/node_modules/@sematext/logagent/build/ci/Jenkinsfile @@ -0,0 +1,191 @@ +properties( + [ + buildDiscarder( + logRotator( + daysToKeepStr: '7', + numToKeepStr: '5', + artifactNumToKeepStr: '5' + ) + ), + disableConcurrentBuilds() + ] +) + +def label = "worker-${UUID.randomUUID().toString()}" + +podTemplate(label: label, serviceAccount: 'jenkins', namespace: 'jenkins', containers: [ + containerTemplate(name: 'jnlp', image: 'jenkins/jnlp-slave:alpine', args: '${computer.jnlpmac} ${computer.name}'), + containerTemplate(name: 'docker', image: 'docker:19.03.11', command: 'cat', ttyEnabled: true, alwaysPullImage: false), +], +volumes: [ + hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock') +], +podRetention: never()) { + node(label) { + def sematextLogagent = checkout ([ + $class: 'GitSCM', + branches: scm.branches, + userRemoteConfigs: scm.userRemoteConfigs, + extensions: [ + [$class: 'LocalBranch', localBranch: "**"], + [$class: 'CloneOption', noTags: true, depth: 50, shallow: true], + [$class: 'RelativeTargetDirectory', relativeTargetDir: 'logagent'], + ] + ]) + def gitCommit = sematextLogagent.GIT_COMMIT + def gitBranch = sematextLogagent.GIT_LOCAL_BRANCH + def gitTag = sematextLogagent.GIT_BRANCH + + stage('Image AMD64') { + if (gitBranch == 'master' || !gitTag.startsWith("origin")) { + try { + container('docker') { + dir('logagent') { + withCredentials([[$class: 'UsernamePasswordMultiBinding', + credentialsId: 'dockerhub', + usernameVariable: 'DOCKER_HUB_USER', + passwordVariable: 'DOCKER_HUB_PASSWORD']]) { + env.DOCKER_CLI_EXPERIMENTAL = 'enabled' + sh """ + docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASSWORD} + docker build --rm --network=host -t sematext/logagent:${gitCommit}-amd64 -f build/docker/Dockerfile.amd64 . + """ + if (gitBranch == 'master') { + sh """ + docker tag sematext/logagent:${gitCommit}-amd64 sematext/logagent:dev-amd64 + docker push sematext/logagent:dev-amd64 + """ + } else if (!gitTag.startsWith("origin")) { + sh """ + docker tag sematext/logagent:${gitCommit}-amd64 sematext/logagent:${gitTag}-amd64 + docker push sematext/logagent:${gitTag}-amd64 + if echo "${gitTag}" | grep -qE '^[0-9.]*\$'; then + docker tag sematext/logagent:${gitCommit}-amd64 sematext/logagent:latest-amd64 + docker push sematext/logagent:latest-amd64 + fi + """ + } + } + } + } + } + catch (exc) { + notifyBuild('Image AMD64', 'FAILURE') + throw(exc) + } + } + else { + println "Skip" + } + } + + stage('Image ARM64') { + if (gitBranch == 'master' || !gitTag.startsWith("origin")) { + try { + container('docker') { + dir('logagent') { + withCredentials([[$class: 'UsernamePasswordMultiBinding', + credentialsId: 'dockerhub', + usernameVariable: 'DOCKER_HUB_USER', + passwordVariable: 'DOCKER_HUB_PASSWORD']]) { + env.DOCKER_CLI_EXPERIMENTAL = 'enabled' + sh """ + docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASSWORD} + docker build --rm --network=host -t sematext/logagent:${gitCommit}-arm64 -f build/docker/Dockerfile.arm64 . + """ + if (gitBranch == 'master') { + sh """ + docker tag sematext/logagent:${gitCommit}-arm64 sematext/logagent:dev-arm64 + docker push sematext/logagent:dev-arm64 + """ + } else if (!gitTag.startsWith("origin")) { + sh """ + docker tag sematext/logagent:${gitCommit}-arm64 sematext/logagent:${gitTag}-arm64 + docker push sematext/logagent:${gitTag}-arm64 + if echo "${gitTag}" | grep -qE '^[0-9.]*\$'; then + docker tag sematext/logagent:${gitCommit}-arm64 sematext/logagent:latest-arm64 + docker push sematext/logagent:latest-arm64 + fi + """ + } + } + } + } + } + catch (exc) { + notifyBuild('Image ARM64', 'FAILURE') + throw(exc) + } + } + else { + println "Skip" + } + } + + stage('MultiArch') { + if (gitBranch == 'master' || !gitTag.startsWith("origin")) { + try { + container('docker') { + dir('logagent') { + withCredentials([[$class: 'UsernamePasswordMultiBinding', + credentialsId: 'dockerhub', + usernameVariable: 'DOCKER_HUB_USER', + passwordVariable: 'DOCKER_HUB_PASSWORD']]) { + env.DOCKER_CLI_EXPERIMENTAL = 'enabled' + sh """ + docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_PASSWORD} + """ + if (gitBranch == 'master') { + sh """ + docker manifest create sematext/logagent:dev sematext/logagent:dev-amd64 sematext/logagent:dev-arm64 + docker manifest push sematext/logagent:dev + """ + } else if (!gitTag.startsWith("origin")) { + sh """ + docker manifest create sematext/logagent:${gitTag} sematext/logagent:${gitTag}-amd64 sematext/logagent:${gitTag}-arm64 + docker manifest push sematext/logagent:${gitTag} + if echo "${gitTag}" | grep -qE '^[0-9.]*\$'; then + docker manifest create sematext/logagent:latest sematext/logagent:latest-amd64 sematext/logagent:latest-arm64 + docker manifest push sematext/logagent:latest + fi + """ + } + } + } + } + } + catch (exc) { + notifyBuild('MultiArch', 'FAILURE') + throw(exc) + } + } + else { + println "Skip" + } + } + + } +} + +def notifyBuild(String stage, String status) { + def colorName = 'RED' + def colorCode = '#FF0000' + def subject = "${status} ${stage}: ${env.JOB_NAME} [${env.BUILD_NUMBER}]\n" + def summary = "${subject} ${env.BUILD_URL.replace("http:", "https:")}console" + if (status == 'STARTED') { + color = 'YELLOW' + colorCode = '#FFFF00' + } else if (status == 'SUCCESSFUL') { + color = 'GREEN' + colorCode = '#00FF00' + } else { + color = 'RED' + colorCode = 'danger' + currentBuild.result = status + } + slackSend channel: '#jenkins-says', + teamDomain: 'sematext', + tokenCredentialId: 'slack_token', + color: colorCode, + message: summary +} \ No newline at end of file diff --git a/node_modules/@sematext/logagent/build/docker/Dockerfile.amd64 b/node_modules/@sematext/logagent/build/docker/Dockerfile.amd64 new file mode 100644 index 00000000..7fc32f89 --- /dev/null +++ b/node_modules/@sematext/logagent/build/docker/Dockerfile.amd64 @@ -0,0 +1,31 @@ +FROM amd64/node:12-alpine + +ENV REGION="US" + +RUN \ + apk add --no-cache --update bash tini && \ + rm -rf /var/cache/apk/* + +WORKDIR / + +COPY . . + +RUN \ + apk add --no-cache --virtual .build-deps alpine-sdk python3 && \ + npm install --unsafe-perm --production && \ + npm install --unsafe-perm --production @sematext/logagent-nodejs-monitor && \ + mkdir -p /etc/sematext && \ + mkdir -p /etc/logagent && \ + mkdir -p /opt/logagent && \ + touch /opt/logagent/patterns.yml && \ + npm rm -g npm && \ + rm -rf ~/.npm && \ + rm -rf /tmp/* && \ + apk del .build-deps + +COPY patterns.yml /etc/logagent/patterns.yml +COPY run.sh /run.sh +RUN chmod +x /run.sh +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/run.sh"] diff --git a/node_modules/@sematext/logagent/build/docker/Dockerfile.arm64 b/node_modules/@sematext/logagent/build/docker/Dockerfile.arm64 new file mode 100644 index 00000000..10700d82 --- /dev/null +++ b/node_modules/@sematext/logagent/build/docker/Dockerfile.arm64 @@ -0,0 +1,31 @@ +FROM arm64v8/node:12-alpine + +ENV REGION="US" + +RUN \ + apk add --no-cache --update bash tini && \ + rm -rf /var/cache/apk/* + +WORKDIR / + +COPY . . + +RUN \ + apk add --no-cache --virtual .build-deps alpine-sdk python3 && \ + npm install --unsafe-perm --production && \ + npm install --unsafe-perm --production @sematext/logagent-nodejs-monitor && \ + mkdir -p /etc/sematext && \ + mkdir -p /etc/logagent && \ + mkdir -p /opt/logagent && \ + touch /opt/logagent/patterns.yml && \ + npm rm -g npm && \ + rm -rf ~/.npm && \ + rm -rf /tmp/* && \ + apk del .build-deps + +COPY patterns.yml /etc/logagent/patterns.yml +COPY run.sh /run.sh +RUN chmod +x /run.sh +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/run.sh"] diff --git a/node_modules/@sematext/logagent/changelog.hbs b/node_modules/@sematext/logagent/changelog.hbs new file mode 100644 index 00000000..e94ab673 --- /dev/null +++ b/node_modules/@sematext/logagent/changelog.hbs @@ -0,0 +1,13 @@ +{{#each releases}} + {{#if @first}} + {{#each merges}} + - {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}} + {{/each}} + {{#each fixes}} + - {{{commit.subject}}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}} + {{/each}} + {{#each commits}} + - {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}} + {{/each}} + {{/if}} +{{/each}} diff --git a/node_modules/@sematext/logagent/config/examples/aws-ecs-input-es-output.yml b/node_modules/@sematext/logagent/config/examples/aws-ecs-input-es-output.yml new file mode 100644 index 00000000..4afb7410 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/aws-ecs-input-es-output.yml @@ -0,0 +1,19 @@ +debug: false + +input: + input-aws-ecs: + module: input-aws-ecs + port: 6666 + useIndexFromUrlPath: true + # workers: 4 + +outputFilter: + aws-ecs-format: + module: aws-ecs-format + parseMessageField: true + +output: + sematext-cloud: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # debug: true diff --git a/node_modules/@sematext/logagent/config/examples/azure-eventhub-input.yml b/node_modules/@sematext/logagent/config/examples/azure-eventhub-input.yml new file mode 100644 index 00000000..7524550c --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/azure-eventhub-input.yml @@ -0,0 +1,10 @@ +input: + azure-event-hub: + module: azure-eventhub + name: hub1 + endpoint: Endpoint=sb://sematextevents.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oahU9gjxqXvIpvJbOOU/UiTI+cyTY1kKqib43jMXnMQ= + consumerGroup: '$Default' + bodyField: body + +output: + stdout: yaml \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/bro-ids.yaml b/node_modules/@sematext/logagent/config/examples/bro-ids.yaml new file mode 100644 index 00000000..fe98b103 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/bro-ids.yaml @@ -0,0 +1,43 @@ +# Example to run BRO IDS, adjust BRO timestamps and store BRO logs in Logsene +# install BRO ids with "apt-get install bro" +# run logagent with super user permissions for packet capture +# sudo logagent --config bro-ids.yml +# Global options +options: + includeOriginalLine: false + +input: + bro-start: + module: command + # store BRO logs in /tmp/bro in JSON format + command: mkdir /tmp/bro; cd /tmp/bro; bro -i eth0 -e 'redef LogAscii::use_json=T;' + sourceName: bro + restart: 1 + # read the BRO logs from the file system ... + files: + - '/tmp/bro/*.log' +parser: + json: + enabled: true + transform: !!js/function > + function (sourceName, parsed, config) { + var src = sourceName.split('/') + // generate Elasticsearch _type out of the log file sourceName + // e.g. "dns" from /tmp/bro/dns.log + if (src && src[src.length-1]) { + parsed._type = src[src.length-1].replace(/\.log/g,'') + } + // store log file path in each doc + parsed.logSource = sourceName + // adjust BRO timestamps to JS timestamps + if (parsed.ts) { + parsed['@timestamp'] = new Date(parsed.ts * 1000) + } + } + +output: + stdout: yaml + es-secure-local: + module: elasticsearch + url: http://localhost:9200 + index: bro_ids_logs diff --git a/node_modules/@sematext/logagent/config/examples/cassandra.yml b/node_modules/@sematext/logagent/config/examples/cassandra.yml new file mode 100644 index 00000000..1b306aae --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/cassandra.yml @@ -0,0 +1,23 @@ +input: + cassandra-json: + module: cassandra-query + server: + #contact points should be separated by comma ',' for example 'h1', 'h2' + host: localhost + port: '9042' + keyspace: 'logagent' + #https://docs.datastax.com/en/developer/nodejs-driver/3.4/features/connection-pooling/ + pooling: + coreConnectionsPerHost: + distanceLocal: 2 + distanceRemote: 1 + queryTimezone: America/Los_Angeles + queryTimeFormat: YYYY-MM-DD HH:mm:ss + queries: + - sourceName: query1 + sql: SELECT * FROM logagent.orders_by_day WHERE event_time >= '$queryTime' ALLOW FILTERING + interval: 1 + debug: false + +output: + stdout: yaml diff --git a/node_modules/@sematext/logagent/config/examples/clickhouse.yaml b/node_modules/@sematext/logagent/config/examples/clickhouse.yaml new file mode 100644 index 00000000..f7a5eca3 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/clickhouse.yaml @@ -0,0 +1,42 @@ +# Preparation for the example: +# Start ClickHouse DB +# docker run -d --name clickhouse-server -p 8123:8123 -p 9000:9000 --ulimit nofile=262144:262144 yandex/clickhouse-server +# Login via ClickHouse client +# docker run -it --rm --link clickhouse-server:clickhouse-server yandex/clickhouse-client --host clickhouse-server +# Run create table statemnt +# CREATE TABLE logs( +# message String, +# severity String, +# "@timestamp" UInt64) ENGINE = Log; +# Run Logagent and enter a text to stdin as log message +# logagent --config config/examples/clickhouse.yaml + + + +# Global options +options: + includeOriginalLine: false + +input: + stdin: true + + +output: + clickhouse: + module: output-clickhouse + url: http://127.0.0.1 + port: 8123 + # Authentication Options + # user: 'default' + # password: '' + # basicAuth: null + # useGzip: true + # Set Database Name + # database: my_database_name + debug: true + table: default.logs + # Fields must be in the same order as specified in CREATE TABLE + fields: + - 'severity' + - 'message' + - '@timestamp' diff --git a/node_modules/@sematext/logagent/config/examples/cloudflare.yml b/node_modules/@sematext/logagent/config/examples/cloudflare.yml new file mode 100644 index 00000000..a51c9a52 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/cloudflare.yml @@ -0,0 +1,32 @@ +# Global options +options: + includeOriginalLine: false + +input: + cloudflare: + module: command + debug: true + # modify cloudflare URL and headers for your account + command: 'curl -s -H"X-Auth-Email: monkey@zoo.com" -H"X-Auth-Key: banana12345" "https://api.cloudflare.com/client/v4/zones/4f8g90r42275bce56f242596aic6fc5b/logs/received?start=$QUERY_TIME&end=$NOW&count=-1"' + sourceName: CloudFlare + # fetch logs every 10 seconds + restart: 10 + +outputFilter: + - name: duration + module: !!js/function > + function (context, config, eventEmitter, data, callback) { + if (data.EdgeEndTimestamp && data.EdgeStartTimestamp) { + data.Duration = data.EdgeEndTimestamp - data.EdgeStartTimestamp + } + callback(null, data) + } + +output: + stdout: yaml + sematext: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: YOUR_LOGSENE_TOKEN_HERE + + diff --git a/node_modules/@sematext/logagent/config/examples/command-input-journald-output-es.yml b/node_modules/@sematext/logagent/config/examples/command-input-journald-output-es.yml new file mode 100644 index 00000000..b3ea5832 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/command-input-journald-output-es.yml @@ -0,0 +1,64 @@ +options: + # print stats every 60 seconds + printStats: 60 + # Enable/disable GeoIP lookups + geoipEnabled: false + # Directory to store Logagent status and temporary files + # this is equals to LOGS_TMP_DIR env variable + diskBufferDir: /tmp/sematext-logagent + debug: true + suppress: false + +input: + journald-json: + module: command + # note journalctl -u unitName can filter logs for systemd-units + command: journalctl -o json --since="$QUERY_TIME" + sourceName: journald + + dateFormat: YYYY-MM-DD HH:mm:ss # date format for $QUERY_TIME and $NOW + restart: 1 # seconds to wait between runs + # where to persist last $QUERY_TIME + lastQueryTimeFile: /var/run/logagentLastQueryTimeFile + + # pull logs from one week ago initially + initialQueryTime: "$ONE_WEEK_AGO" + # 100MB pipe buffer + maxBuffer: 100000000 + +# here we parse journald logs and remove extra fields +outputFilter: + journald-format: + module: journald-format + # Run Logagent parser for the message field + parseMessageField: true + # JS regular expression to match log source name + matchSource: !!js/regexp .* + + lowercase-fields: + module: lowercase-fields # this fliter only lowercases root fields, not nested fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + allFields: true # this will lowercase all root fields + # fields: + # - fieldName: SELINUX_CONTEXT # this will lowercase only certain root fields, this is an array and you can specify multiple fields + + removeFields: + module: remove-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + # Note: journald format converts to lower case + fields: + - __cursor + - __monotonic_timestamp + - _transport + +output: + stdout: yaml + + # index logs in Elasticsearch or Sematext Logs + elasticsearch: + module: elasticsearch + url: url + # default index (Logs token) to use: + index: token diff --git a/node_modules/@sematext/logagent/config/examples/docker-logs.yml b/node_modules/@sematext/logagent/config/examples/docker-logs.yml new file mode 100644 index 00000000..95a019c1 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/docker-logs.yml @@ -0,0 +1,37 @@ +# Global options +options: + # print stats every 60 seconds + printStats: 60 + # don't write parsed logs to stdout + suppress: false + # Enable/disable GeoIP lookups + # Startup of logagent might be slower, when downloading the GeoIP database + geoipEnabled: false + # Directory to store Logagent status and temporary files + diskBufferDir: ./tmp + +input: + # a list of glob patterns to watch files to tail + #files: + # - '/var/log/**/*.log' + # listen to udp syslog protocol + dockerLogs: + module: docker-logs + labelFilter: com.docker.*,io.kubernetes.*,annotation.io.* + socket: /var/run/docker.sock + +outputFilter: + docker-enrichment: + module: docker-enrichment + autodetectSeverity: true + +#outputFilter: +# - module: docker-enrichment +# config: +# autodetectSeverity: true + + +output: + logsene: + url: https://logsene-receiver.sematext.com + index: YOUR_LOG_TOKEN_HERE diff --git a/node_modules/@sematext/logagent/config/examples/drop-events-filter.yml b/node_modules/@sematext/logagent/config/examples/drop-events-filter.yml new file mode 100644 index 00000000..7dcf058c --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/drop-events-filter.yml @@ -0,0 +1,10 @@ +outputFilter: + dropEvents: + module: drop-events + debug: false + filters: + severity: + # include: !!js/regexp error|warning + exclude: !!js/regexp /debug/i + service: + exclude: !!js/regexp /snmpd/i \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/elastic-http-input.yml b/node_modules/@sematext/logagent/config/examples/elastic-http-input.yml new file mode 100644 index 00000000..f1dac81f --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/elastic-http-input.yml @@ -0,0 +1,15 @@ +# Global options +options: + includeOriginalLine: true + +input: + elasticsearch-http: + module: input-elasticsearch-http + port: 9900 + # worker: 0 + +output: + stdout: false + es-local: + module: elasticsearch + url: http://localhost:9200 \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/elasticsearch-http-input_mqtt-output.yml b/node_modules/@sematext/logagent/config/examples/elasticsearch-http-input_mqtt-output.yml new file mode 100644 index 00000000..e7846ae9 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/elasticsearch-http-input_mqtt-output.yml @@ -0,0 +1,40 @@ +# Application: Add realtime notification for data ingested to Elasticsearch +# Listening to realtime logs using mqtt client +# mqtt subscribe -h 127.0.0.1 -t realtime_logs +input: + # Elasticsearch compatible indexing API + elasticsearch-http: + module: input-elasticsearch-http + port: 9200 + + # Run embedded MQTT broker incl. Websocket for browser clients + mqtt-broker: + module: input-mqtt-broker + port: 1883 + websocketPort: 2883 + # Ignore all topics and use the MQTT broker just for MQTT clients + # Messages are not ingested to Logagent pipeline + ignoreTopic: .* + debug: true + +output: + # Forward all messages, ingested by elasticsearch-http to MQTT + mqtt: + module: output-mqtt + url: mqtt://127.0.0.1:1883 + topic: realtime_logs + debug: false + # optional filter settings matching data field with regular expressions + filter: + field: logSource + match: .* + # store data in Elasticsearch + elasticsearch-server: + module: elasticsearch + url: http://elasticsearch_server:9200 + # note the index name might be overwritten by the index used + # in the original bulk index request + index: logs + + + diff --git a/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input.yml b/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input.yml new file mode 100644 index 00000000..36d0a973 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input.yml @@ -0,0 +1,78 @@ +# optional credentials for Amazon Elasticsearch +aws: + auth: 'username:password' + awsConfigFile: ./aws-config.json + +input: + queryLogs: + # set to true for Amazon Elasticsearch service + awsEnabled: false + # auth: 'username:password' + # awsConfigFile: ./aws-config.json + module: elasticsearch-query + sourceName: errorQuery + # repeat query every N seconds + interval: 60 + log: 'error' + url: https://logsene-receiver.sematext.com + query: + size: 50 + index: cc5e9c1b-xxxx-xxxx-xxxx-2a0b2c01b912 + body: + query: + bool: + must: + - query_string: + query: 'status:>399' + filter: + - range: + '@timestamp': + gte: now-1m/m + lte: now/m + + +outputFilter: + - module: sql + config: + matchSource: !!js/regexp /errorQuery/ + sourceName: transformedLog + interval: 1 + queries: + # use SQL to transform data, e.g. change field name + - SELECT distinct count(*) as error_count, status, 'Apache Logs' as logSource + FROM ? group by status + + +output: + stdout: yaml + slack: + debug: false + module: slack-webhook + url: https://hooks.slack.com/services/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 + matchSource: !!js/regexp /.*/ + # filter function to decide about notification via slack + filter: !!js/function > + function (context, data, config) { + if (data.status > 399 && data.error_count > config.minErrors) { + return true + } else { + return false + } + } + # custom property for filter function above + minErrors: 3 + # yaml, ld-json, json or template + format: template + # Text template for slack message + # all parsed fields can be used + template: ':st: <@stefan|stefan> {logSource}: {error_count} http errors "{status}"' + payload: + username: sematext + channel: '#test' + text: Message from Logagent + icon_emoji: ':st:' + attachments: + - title: Alert + color: danger + + diff --git a/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input_prometheus-alertmanager-output.yml b/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input_prometheus-alertmanager-output.yml new file mode 100644 index 00000000..ef85da3c --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/elasticsearch-query-input_prometheus-alertmanager-output.yml @@ -0,0 +1,43 @@ +# optional credentials for Amazon Elasticsearch +# aws: +# auth: 'username:password' +# awsConfigFile: ./aws-config.json + +input: + queryLogs: + # set to true for Amazon Elasticsearch service + awsEnabled: false + module: elasticsearch-query + sourceName: errorQuery + # repeat query every N seconds + interval: 60 + log: 'error' + url: http://elasticsearch/ + query: + size: 50 + index: logs-*app-proxy* + body: + query: + bool: + must: + - query_string: + query: '*foo122*' + filter: + - range: + '@timestamp': + gte: now-3600m/m + lte: now/m + +output: + # stdout: yaml + prometheus: + module: prometheus-alertmanager + url: http://localhost:9093 + alertTemplate: + generatorURL: http://kibana/_plugin/kibana/app/kibana#/discover?&_a=(query:(language:lucene,query:'*{host}*')) + labels: + host: "{host}" + environment: "{environment}" + annotations: + environment: "{environment}" + debug: true \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/file-input-filter-useragent-es-output.yml b/node_modules/@sematext/logagent/config/examples/file-input-filter-useragent-es-output.yml new file mode 100644 index 00000000..273241b5 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/file-input-filter-useragent-es-output.yml @@ -0,0 +1,29 @@ +# Global options +options: + includeOriginalLine: false + printStats: 10 + maxInputRate: 1mb # per second + +input: + stdin: true + files: + - '/var/log/**/*.log' + +outputFilter: + httpDeviceDetector: + module: httpDeviceDetector + # optional setting to configure the field name for the + # user agent and the user agent details + # userAgentFieldName will default to 'user_agent' if this config is omitted + # userAgentDetailsFieldName will default to 'user_agent_details' if this config is omitted + # config: + # userAgentFieldName: user_agent + # userAgentDetailsFieldName: user_agent_details + +output: + # stdout: yaml + sematext-logs: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: LOGS_TOKEN + diff --git a/node_modules/@sematext/logagent/config/examples/file-input-geoip-es-output.yml b/node_modules/@sematext/logagent/config/examples/file-input-geoip-es-output.yml new file mode 100644 index 00000000..68c946cc --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/file-input-geoip-es-output.yml @@ -0,0 +1,34 @@ +# Global options +options: + debug: true + # geoipEnabled: true + # geoipField: client_ip + +input: + files: + - /var/log/nginx + +parser: + patterns: + - + sourceName: !!js/regexp /.*/ + match: + - type: web + regex: !!js/regexp ^([0-9a-f.:]+)\s[-|\S+]\s(.*) + fields: + - client_ip:string + - message:string + +# outputFilter: +# geoip: +# module: geoip +# field: client_ip +# debug: true + +output: + # stdout: yaml + + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: token diff --git a/node_modules/@sematext/logagent/config/examples/file-input-glob-patterns-es-output.yml b/node_modules/@sematext/logagent/config/examples/file-input-glob-patterns-es-output.yml new file mode 100644 index 00000000..99dbfec3 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/file-input-glob-patterns-es-output.yml @@ -0,0 +1,25 @@ +# Global options +options: + debug: true + +input: + files: + # ship everything EXCEPT for auth*.log, system*.log, and kernel*.log + - /var/log/!(auth*.log|system*.log|kernel*.log) + + # ship everything EXCEPT for kube*.log, storage*.log, etcd*.log, and coredns*.log + - /var/log/containers/!(kube*.log|storage*.log|etcd*.log|coredns*.log) + +# inputFilter: +# - module: grep +# config: +# matchSource: !!js/regexp /.*log/ # match log files +# include: !!js/regexp /failed|error|exception/i # include errors +# exclude: !!js/regexp /super noisy error messages/i # exclude noise +# - module: input-filter-k8s-containerd # Only needed when running in K8s env with Containerd/CRI-O container runtime + +output: + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: LOGS_TOKEN diff --git a/node_modules/@sematext/logagent/config/examples/file-input-json-parse-es-output.yml b/node_modules/@sematext/logagent/config/examples/file-input-json-parse-es-output.yml new file mode 100644 index 00000000..75fc7594 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/file-input-json-parse-es-output.yml @@ -0,0 +1,17 @@ +options: + includeOriginalLine: false + +input: + files: + - '/var/log' + +# this parses the message when it is a structured JSON +parser: + json: + enabled: true + +output: + sematext: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: diff --git a/node_modules/@sematext/logagent/config/examples/find-my-iphone.yml b/node_modules/@sematext/logagent/config/examples/find-my-iphone.yml new file mode 100644 index 00000000..a088df53 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/find-my-iphone.yml @@ -0,0 +1,25 @@ +input: + track-apple-devices: + module: input-apple-device-finder + # Your Apple ID (e-mail address) + # Instead of adding Apple-ID to this config you could set env. variable APPLE_ID + appleId: your-apple-id@example.com + # Instead of adding iCloud password to this config you could set env. variable APPLE_PW + applePassword: yourPassword + # Note locating phones might consume more energy on the devices + # Query Apple API every N minutes. The minimum value is 1 minute. + interval: 10 + # Regular expressions to filter devices by device.name or device.deviceDisplayName + # blacklist - ignore devices matching following regex, case sensitive + ignoreDeviceName: 'iPhone.4' + # whitelist - track only devices matching following expression + filterDeviceName: 'Stefans.iPhone6' + # verbose output to console for filter matching + debug: true + +output: + stdout: yaml + sematext-cloud: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: YOUR_LOGSENE_TOKEN diff --git a/node_modules/@sematext/logagent/config/examples/gelf-stdout.yml b/node_modules/@sematext/logagent/config/examples/gelf-stdout.yml new file mode 100644 index 00000000..34184ea8 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/gelf-stdout.yml @@ -0,0 +1,9 @@ +# Global options +input: + gelf: + module: input-gelf + port: 12100 + host: 0.0.0.0 +output: + # print parsed logs in YAML format to stdout + stdout: yaml \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/github-webhook-input-events-format-output.yaml b/node_modules/@sematext/logagent/config/examples/github-webhook-input-events-format-output.yaml new file mode 100644 index 00000000..beca5621 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/github-webhook-input-events-format-output.yaml @@ -0,0 +1,29 @@ +input: + github-webhook: + module: input-github-webhook + port: 9200 + useIndexFromUrlPath: true + tags: + - github + - webhook + - notification + +outputFilter: + github-events-format: + module: github-events-format + +output: + # stdout: yaml + + st-events: + module: output-sematext-events + # region: us # eu + receiver: https://event-receiver.apps.test.sematext.com + debug: true + + # if STE or test env add a `receiver` + # the `region` value will overwrite the `receiver` value + + # when running the GitHub input plugin it will start a server and + # listen for incoming requests to 0.0.0.0:9200/github/ + # set the token in input URL diff --git a/node_modules/@sematext/logagent/config/examples/github-webhook-input-logs-format-output.yaml b/node_modules/@sematext/logagent/config/examples/github-webhook-input-logs-format-output.yaml new file mode 100644 index 00000000..77c03bcc --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/github-webhook-input-logs-format-output.yaml @@ -0,0 +1,24 @@ +debug: true + +input: + github-webhook: + module: input-github-webhook + port: 9200 + useIndexFromUrlPath: true + tags: + - github + - webhook + - notification + +outputFilter: + github-logs-format: + module: github-logs-format + debug: true + +output: + # stdout: yaml + + sematext-cloud: + module: elasticsearch + url: https://logs-token-receiver.apps.test.sematext.com + debug: true \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/heroku-elasticsearch.yml b/node_modules/@sematext/logagent/config/examples/heroku-elasticsearch.yml new file mode 100644 index 00000000..e24c7f10 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/heroku-elasticsearch.yml @@ -0,0 +1,20 @@ +# Global options +options: + # includeOriginalLine: true + # debug: true + +input: + cloudFoundry: + module: input-heroku + port: 9999 + +outputFilter: + heroku-format: + module: heroku-format + +output: + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # debug: true + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/influx-http-input.yml b/node_modules/@sematext/logagent/config/examples/influx-http-input.yml new file mode 100644 index 00000000..a4e18d6f --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/influx-http-input.yml @@ -0,0 +1,13 @@ +input: + influx: + module: input-influxdb-http + port: 8086 + workers: 1 + +output: + stdout: yaml + # logsene: + # module: elasticsearch + # url: https://logsene-receiver.sematext.com:9200 + # index: YOUR_LOGSENE_TOKEN_HERE + diff --git a/node_modules/@sematext/logagent/config/examples/influxdb-http-input.yml b/node_modules/@sematext/logagent/config/examples/influxdb-http-input.yml new file mode 100644 index 00000000..4361b9d4 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/influxdb-http-input.yml @@ -0,0 +1,13 @@ +input: + influx: + module: input-influxdb-http + port: 8086 + workers: 1 + +output: + stdout: yaml + # logsene: + # module: elasticsearch + # url: https://logsene-receiver.sematext.com + # index: YOUR_LOGSENE_TOKEN_HERE + diff --git a/node_modules/@sematext/logagent/config/examples/influxdb-output.yml b/node_modules/@sematext/logagent/config/examples/influxdb-output.yml new file mode 100644 index 00000000..59c422ed --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/influxdb-output.yml @@ -0,0 +1,26 @@ +input: + stdin: true + +output: + sematext-spm: + module: output-influxdb + url: http://127.0.0.1:8086 + db: sensor_data + # flush interval in seconds + flushInterval: 5 + # max buffer size to force flush + maxBufferSize: 100 + debug: true + tags: + role: backend + version: "1.0.0" + region: eu + # following message fields are not used + # as tags or fields influxDB output + ignoreFields: + - logSource + - message + # optional filter settings matching data field with regular expressions + filter: + field: logSource + match: .* diff --git a/node_modules/@sematext/logagent/config/examples/journald-and-file-input-output-es-multiple-indices.yml b/node_modules/@sematext/logagent/config/examples/journald-and-file-input-output-es-multiple-indices.yml new file mode 100644 index 00000000..babe9020 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/journald-and-file-input-output-es-multiple-indices.yml @@ -0,0 +1,72 @@ +options: + # print stats every 60 seconds + printStats: 60 + # Enable/disable GeoIP lookups + geoipEnabled: false + # Directory to store Logagent status and temporary files + # this is equals to LOGS_TMP_DIR env variable + diskBufferDir: /tmp/sematext-logagent + debug: true + suppress: false + +input: + files: + - '/var/log/nginx/**/*' + + journald-json: + module: command + # note journalctl -u unitName can filter logs for systemd-units + command: journalctl -o json --since="$QUERY_TIME" + sourceName: journald + + dateFormat: YYYY-MM-DD HH:mm:ss # date format for $QUERY_TIME and $NOW + restart: 1 # seconds to wait between runs + # where to persist last $QUERY_TIME + lastQueryTimeFile: /var/run/logagentLastQueryTimeFile + + # pull logs from one week ago initially + initialQueryTime: "$ONE_WEEK_AGO" + # 100MB pipe buffer + maxBuffer: 100000000 + +# here we parse journald logs and remove extra fields +outputFilter: + journald-format: + module: journald-format + # Run Logagent parser for the message field + parseMessageField: true + # JS regular expression to match log source name + matchSource: !!js/regexp journald + + lowercase-fields: + module: lowercase-fields # this fliter only lowercases root fields, not nested fields + # JS regular expression to match log source name + matchSource: !!js/regexp journald + allFields: true # this will lowercase all root fields + # fields: + # - fieldName: SELINUX_CONTEXT # this will lowercase only certain root fields, this is an array and you can specify multiple fields + + removeFields: + module: remove-fields + # JS regular expression to match log source name + matchSource: !!js/regexp journald + # Note: journald format converts to lower case + fields: + - __cursor + - __monotonic_timestamp + - _transport + +output: + # stdout: yaml + + # index logs in Elasticsearch or Sematext Logs + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # default index (Logs token) to use: + # index: c85ef1c3-xxxx-xxxx-xxxx-39e6944f2733 + indices: + c85ef1c3-xxxx-xxxx-xxxx-39e6944f2733: + - journald + a1fcc208-xxxx-xxxx-xxxx-18f213fe2158: + - nginx diff --git a/node_modules/@sematext/logagent/config/examples/journald-upload-receiver-index-from-path.yaml b/node_modules/@sematext/logagent/config/examples/journald-upload-receiver-index-from-path.yaml new file mode 100644 index 00000000..7db4e196 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/journald-upload-receiver-index-from-path.yaml @@ -0,0 +1,50 @@ +options: + includeOriginalLine: false + geoipEnabled: false + diskBufferDir: /tmp/logagent/ + # suppress: true + debug: true + printStats: 5 + # maxInputRate: 1m + +input: + journald-upload: + module: input-journald-upload + port: 8080 + worker: 1 + useIndexFromUrlPath: true + systemdUnitFilter: + include: !!js/regexp /.*/i + # exclude: !!js/regexp /docker|containerd/i + tags: + receiver: journald + +outputFilter: + journald-format: + module: journald-format + # Run Logagent parser for the message field + parseMessageField: true + matchSource: !!js/regexp .* + + lowercase-fields: + module: lowercase-fields # this fliter only lowercases root fields, not nested fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + allFields: true # this will lowercase all root fields + + removeFields: + module: remove-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + # Note: journald format converts to lower case + fields: + - __cursor + - __monotonic_timestamp + - _transport + +output: + # stdout: yaml + + sematext-logs: + module: elasticsearch + url: https://logsene-receiver.sematext.com diff --git a/node_modules/@sematext/logagent/config/examples/journald-upload-receiver.yaml b/node_modules/@sematext/logagent/config/examples/journald-upload-receiver.yaml new file mode 100644 index 00000000..d0fc1bed --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/journald-upload-receiver.yaml @@ -0,0 +1,81 @@ +# Global options +options: + includeOriginalLine: false + +input: + journald-upload: + module: input-journald-upload + port: 9090 + # posts to /indexName/upload set context.index to be used by elasticsearch output plugin + useIndexFromUrlPath: false + # number of web-worker processes to use multiple CPU cores + worker: 0 + # support parsing index from URL path /myElasticSearchIndex/ + # useIndexFromUrlPath: true + systemdUnitFilter: + include: !!js/regexp /.*/i + # exclude: !!js/regexp /docker|containerd/i + # add static fields to every log entry + # tags: + # _index: MY_INDEX_FOR_ELASTICSEARCH_OUTPUT + # node_role: kubernetes_worker + # journald might provide many fields. To reduce storage usage you can remove + # non-relevant fields. Note you have to use upper case here. + removeFields: + - __CURSOR + +outputFilter: + journald-format: + module: journald-format + # Run Logagent parser for the message field. This will use patterns from patterns.yml file. + parseMessageField: true + # JS regular expression to match log source name + matchSource: !!js/regexp .* + + removeFields: + module: remove-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + # Note: journald format converts to lower case + fields: + - __cursor + - __monotonic_timestamp + - _transport + # - process.gid + # - process.uid + # - container.id + # - __realtime_timestamp + # - _source_realtime_timestamp + # - journal_name + # - journal_path + # - current_use + # - current_use_pretty + # - max_use + # - max_use_pretty + # - disk_keep_free + # - disk_keep_free_pretty + # - disk_available_pretty + # - disk_available + # - limit + # - limit_pretty + # - available + # - available_pretty + # - _cap_effective + # - _systemd_slice + # List of fields where the values from removed field should be + # replaced with maskValuesString + # maskValuesInFields: + # - message + # - path + # String to replace masked values (thos from removed fields) + # maskValuesString: "ANONYMIZED-DATA + +output: + # YAML output to console, good for testing/debugging + stdout: yaml + + sematext-cloud: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # debug: true + # index: YOUR_LOGS_TOKEN_HERE diff --git a/node_modules/@sematext/logagent/config/examples/kafka-stdout-yml.yml b/node_modules/@sematext/logagent/config/examples/kafka-stdout-yml.yml new file mode 100644 index 00000000..b24dfcc2 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/kafka-stdout-yml.yml @@ -0,0 +1,20 @@ +# Global options +options: + includeOriginalLine: false +input: + kafka: + module: input-kafka + kafkaHost: localhost + groupId: ExampleTestGroup + topic: test + autoCommit: true + sessionTimeout: 15000 + sslEnable: false + #For init sslOptions please refer to to https://nodejs.org/api/tls.html + sslOptions: + - rejectUnauthorized: false + + +output: + stdout: yaml # use 'pretty' for pretty json and 'ldjson' for line delimited json (default) + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-log-routing.yml b/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-log-routing.yml new file mode 100644 index 00000000..8d52784a --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-log-routing.yml @@ -0,0 +1,33 @@ +# Global options +options: + debug: true + +input: + files: + - /var/log/*.log + - /var/log/containers/*.log + + +inputFilter: + - module: input-filter-k8s-containerd # Only needed when running in K8s env with Containerd/CRI-O container runtime +# - module: grep +# config: +# matchSource: !!js/regexp /.*log/ # match log files +# include: !!js/regexp /failed|error|exception/i # include errors +# exclude: !!js/regexp /super noisy error messages/i # exclude noise + +outputFilter: + kubernetesEnrichment: + module: kuberntes-enrichment + +output: + # stdout: ldjson + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # index: de1135be-xxxx-xxxx-xxxx-365c63d5aff2 + indices: + c332463a-xxxx-xxxx-xxxx-535d18521418: + - app.*\.log + c1590c8b-xxxx-xxxx-xxxx-10f8f8281b3d: + - kube-apiserver.*\.log diff --git a/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-with-drop-events.yaml b/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-with-drop-events.yaml new file mode 100644 index 00000000..20764f2a --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/kubernetes-containerd-with-drop-events.yaml @@ -0,0 +1,35 @@ +# Global options +options: + debug: true + +input: + files: + - /var/log/*.log + - /var/log/containers/*.log + + +inputFilter: + inputFilterK8sContainerd: + module: input-filter-k8s-containerd # Only needed when running in K8s env with Containerd/CRI-O container runtime + +outputFilter: + kubernetesEnrichment: + module: kubernetes-enrichment + dropEvents: + module: drop-events + debug: true + filters: + req: + exclude: !!js/regexp /debug|ping|health/i + +output: + # stdout: yaml + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + # index: de1135be-xxxx-xxxx-xxxx-365c63d5aff2 + indices: + c332463a-xxxx-xxxx-xxxx-535d18521418: + - app.*\.log + c1590c8b-xxxx-xxxx-xxxx-10f8f8281b3d: + - kube-apiserver.*\.log diff --git a/node_modules/@sematext/logagent/config/examples/kubernetesAudit.yaml b/node_modules/@sematext/logagent/config/examples/kubernetesAudit.yaml new file mode 100644 index 00000000..f3f0ee90 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/kubernetesAudit.yaml @@ -0,0 +1,21 @@ +# Global options +options: + includeOriginalLine: false + +# Receive Kubernetes Audit events via HTTP server +input: + kubernetesAudit: + module: input-kubernetes-audit + port: 9091 + # dynamic index setting by posting audit logs to /indexName/ URL + useIndexFromUrlPath: false + worker: 0 + tags: + _index: MY_INDEX_FOR_ELASTICSEARCH_OUTPUT + receiver: logagent_kubernetes_audit + +output: + stdout: yaml + #sematext-cloud: + # module: elasticsearch + # url: http://logsene-receiver.sematext.com \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/mqtt-broker.yml b/node_modules/@sematext/logagent/config/examples/mqtt-broker.yml new file mode 100644 index 00000000..59387293 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/mqtt-broker.yml @@ -0,0 +1,17 @@ +input: + mqtt-broker: + module: input-mqtt-broker + port: 1883 + websocketPort: 2883 + # regular expression to ignore topics + # ignoreTopic: ^\$SYS + debug: true + # Enable authentication by setting username and password + username: mqtt + password: secret + # The authenticate function can implement custom authentication logic + #authenticate: !!js/function > + # function (client, username, password, callback) { + # callback(null, username=='mqtt' && password === 'secret') + # } + diff --git a/node_modules/@sematext/logagent/config/examples/mqtt-client.yml b/node_modules/@sematext/logagent/config/examples/mqtt-client.yml new file mode 100644 index 00000000..e084f554 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/mqtt-client.yml @@ -0,0 +1,8 @@ +input: + mqtt-client: + module: input-mqtt-client + url: mqtt://test.mosquitto.org + topics: + - log-messages + - sensor-data + diff --git a/node_modules/@sematext/logagent/config/examples/mqtt-output.yml b/node_modules/@sematext/logagent/config/examples/mqtt-output.yml new file mode 100644 index 00000000..86840f40 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/mqtt-output.yml @@ -0,0 +1,21 @@ +input: + stdin: true + +output: + mqtt: + module: output-mqtt + url: mqtt://test.mosquitto.org + # see https://www.npmjs.com/package/mqtt#connect + #connectOptions: + # userName: nobody + # password: secret + # keepAlive: 60 + # wsOptions: + # port: 9999 + # host: localhost + topic: sensor-data + debug: false + # optional filter settings matching data field with regular expressions + filter: + field: logSource + match: .* diff --git a/node_modules/@sematext/logagent/config/examples/mssql.yaml b/node_modules/@sematext/logagent/config/examples/mssql.yaml new file mode 100644 index 00000000..e2604fca --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/mssql.yaml @@ -0,0 +1,24 @@ +input: + mssql: + module: mssql-query + connectioninfo: + server: localhost + port: 1433 + userName: Testuser + password: Testpassword + database: testdatabase + options: + database: testdatabase + #encrypt: true + #rowCollectionOnDone: true + rowCollectionOnRequestCompletion: true + queryTimezone: America/Los_Angeles + queryTimeFormat: YYYY-MM-DD HH:mm:ss + queries: + - sourceName: query1 + sql: SELECT * FROM employees + interval: 1 + debug: true + +output: + stdout: yaml \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/mysql.yaml b/node_modules/@sematext/logagent/config/examples/mysql.yaml new file mode 100644 index 00000000..8a08b6ed --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/mysql.yaml @@ -0,0 +1,23 @@ +input: + mysql-json: + module: mysql-query + server: + host: 'localhost' + port: '6603' + user: 'root' + password: 'mysqlRootPassword' + database: 'testdatabase' + queryTimezone: America/Los_Angeles + queryTimeFormat: YYYY-MM-DD HH:mm:ss + queries: + - sourceName: query1 + sql: SELECT * FROM potluck where signup_date < '$queryTime' + - sourceName: query2 + sql: SELECT * FROM potluck where name = 'Tina' and signup_date < '$queryTime' + - sourceName: query3 + sql: SELECT * FROM potluck where name = 'Sandy' and signup_date < '$queryTime' + interval: 1 + debug: true + +output: + stdout: yaml diff --git a/node_modules/@sematext/logagent/config/examples/novaSDS011-dust-sensor.yml b/node_modules/@sematext/logagent/config/examples/novaSDS011-dust-sensor.yml new file mode 100644 index 00000000..fd64dd5b --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/novaSDS011-dust-sensor.yml @@ -0,0 +1,7 @@ +input: + novaSDS011: + module: input-nova-sda011 + comPort: /dev/cu.wchusbserialfa1220 + +output: + stdout: yaml \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-aws-elasticsearch.yml b/node_modules/@sematext/logagent/config/examples/output-aws-elasticsearch.yml new file mode 100644 index 00000000..7026b792 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-aws-elasticsearch.yml @@ -0,0 +1,20 @@ +input: + stdin: true + files: + - /var/log/myapp.log + +output: + aws-es: + module: output-aws-elasticsearch + url: https://my-url.es.amazonaws.com + index: mylogs + type: myLogType + auth: 'user:password' + awsConfigFile: ./aws-config.json + # ES client logging options + log: + - type: 'stdio' + levels: [] # empty array to supress ES node client logs + #- 'error' + #- 'warning' + #- 'info' \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-files.yml b/node_modules/@sematext/logagent/config/examples/output-files.yml new file mode 100644 index 00000000..6e1ae70e --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-files.yml @@ -0,0 +1,47 @@ +input: + stdin: true + +# example parser, extracting country name to route file output to country files named {country}.json +parser: + patternFiles: [] + patterns: + - sourceName: !!js/regexp /.*/ + match: + - type: countryInfo + regex: !!js/regexp /(.+?)\s(.+?)\s(.+?)/i + fields: + - country:string + - anotherField:string + - andAnotherField:string + +output: + files: + module: output-files + debug: true + fileName: '/tmp/{country}.json' + # available format values: 'ldjson' (default), 'yaml', 'pretty' (pretty JSON), 'template' + format: template + template: '{country} {anotherField} {andAnotherField}' + # matches context.sourceName == data.logSource + sourceName: .* + # matches data._type field + typeName: countryInfo + # properties for https://www.npmjs.com/search?q=rotating-file-stream + size: 10M + maxFiles: 2 + interval: 1d + compress: true + + # config format example: + # output: + # files: + # module: file-output + # format: template # or ldjson, pretty, yaml + # template: '{fieldA} {fieldB}' + # sourceName: .* + # filename: /tmp/${fieldName}.txt + # size: 10M + # maxFiles: 2 + # interval: 1d + # compress: true + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-access-watch.yml b/node_modules/@sematext/logagent/config/examples/output-filter-access-watch.yml new file mode 100644 index 00000000..9ebfdcb4 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-access-watch.yml @@ -0,0 +1,32 @@ +# Global options +options: + # Enable/disable GeoIP lookups + # Startup of logagent might be slower, when downloading the GeoIP database + geoipEnabled: true + +outputFilter: + - module: access-watch + config: + # Get a free Reveal API Key from Access Watch: + # https://access.watch/reveal + apiKey: YOUR_REVEAL_API_KEY_HERE + + # Basic configuration instructions for Logagent: + # https://access.watch/reveal/logagent + + # Match Types configuration + matchTypes: + - access_common + - access_log_combined + + # Source configuration + addressSource: client_ip + userAgentSource: user_agent + + # Destination configuration + identityDestination: identity + reputationDestination: reputation + robotDestination: robot + +output: + stdout: yaml diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-aes-encrypt-fields.yml b/node_modules/@sematext/logagent/config/examples/output-filter-aes-encrypt-fields.yml new file mode 100644 index 00000000..5769d154 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-aes-encrypt-fields.yml @@ -0,0 +1,12 @@ +outputFilter: + encrypt: + module: aes-encrypt-fields + # JS regeular expression to match log source name + matchSource: !!js/regexp nginx|apache|httpd + fields: + - client_ip + - user + password: "Top secret!" + # algorithms supported by nodejs crypto module, e.g. aes-128-cbc, aes-128-ecb, aes-192-cbc, aes-192-ecb, aes-256-cbc, aes-256-ecb + algorithm: aes-256-ecb + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-hash-fields.yml b/node_modules/@sematext/logagent/config/examples/output-filter-hash-fields.yml new file mode 100644 index 00000000..d54c2bf3 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-hash-fields.yml @@ -0,0 +1,10 @@ + +outputFilter: + hashfields: + module: hash-fields + # JS regeular expression to match log source name + matchSource: !!js/regexp nginx|apache|httpd + # algorithms supported by nodejs crypto module, e.g. sha1, sha256, sha512, md5, ... + algorithm: sha256 + fields: + - client_ip \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-ip-truncate-fields.yml b/node_modules/@sematext/logagent/config/examples/output-filter-ip-truncate-fields.yml new file mode 100644 index 00000000..f792f449 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-ip-truncate-fields.yml @@ -0,0 +1,8 @@ +outputFilter: + ip-truncate-fields: + module: ip-truncate-fields + # JS regeular expression to match log source name + matchSource: !!js/regexp nginx|apache|httpd + fields: + - client_ip + - user \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-lowercase-fields.yml b/node_modules/@sematext/logagent/config/examples/output-filter-lowercase-fields.yml new file mode 100644 index 00000000..a06243c4 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-lowercase-fields.yml @@ -0,0 +1,16 @@ +outputFilter: + lowercase-fields: + module: lowercase-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + allFields: true # this will lowercase all fields + fields: + - fieldName: SELINUX_CONTEXT # this will lowercase only certain fields, this is an array and you can specify multiple fields + +# Exmple, input: +# {"USER": "{ name: root }", "SELINUX_CONTEXT": "unconfined", "message": "Client connect: root", "originalLine": "INFO Client connect: root"} +# Example, output +# {"user": "{ name: root }", "selinux_context": "unconfined", "message": "Client connect: root", "originalLine": "INFO Client connect: root"} + +# Note: +# This filter will only lowercase root fields, not any nested field names! diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-remove-fieds.yml b/node_modules/@sematext/logagent/config/examples/output-filter-remove-fieds.yml new file mode 100644 index 00000000..97ca001d --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-remove-fieds.yml @@ -0,0 +1,20 @@ +outputFilter: + remove-fields: + module: remove-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + fields: + - client_ip + - user + # List of fields, where teh values from removed field should be + # replaced with maskValuesString + maskValuesInFields: + - message + - originalLine + # String to replace masked values from removed fields + maskValuesString: "ANONYMIZED-DATA" + +# Exmple, input: +# {"client_ip": "127.0.0.1", "message": "Client connect: 127.0.0.1", "originalLine": "INFO Client connect: 127.0.0.1"} +# Example, output +# {"client_ip": "127.0.0.1", "message": "Client connect: ANONYMIZED-DATA", "originalLine": "INFO Client connect: ANONYMIZED-DATA"} \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-filter-rename-fields.yml b/node_modules/@sematext/logagent/config/examples/output-filter-rename-fields.yml new file mode 100644 index 00000000..8594a90a --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-filter-rename-fields.yml @@ -0,0 +1,13 @@ +outputFilter: + rename-fields: + module: rename-fields + # JS regular expression to match log source name + matchSource: !!js/regexp .* + fields: + - fieldName: user + renameTo: user_object + +# Exmple, input: +# {"user": "{ name: root }", "message": "Client connect: root", "originalLine": "INFO Client connect: root"} +# Example, output +# {"user_object": "{ name: root }", "message": "Client connect: root", "originalLine": "INFO Client connect: root"} \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/output-http.yaml b/node_modules/@sematext/logagent/config/examples/output-http.yaml new file mode 100644 index 00000000..57e4f5e4 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/output-http.yaml @@ -0,0 +1,20 @@ +input: + stdin: true + +output: + http-forwarding: + module: output-http + url: http://127.0.0.1:8086 + # flush interval in seconds + flushInterval: 1 + # max buffer size to force flush + maxBufferSize: 1 + debug: true + tags: + role: backend + version: "1.0.0" + region: eu + # optional filter settings matching data field with regular expressions + filter: + field: logSource + match: .* diff --git a/node_modules/@sematext/logagent/config/examples/postgresql.yaml b/node_modules/@sematext/logagent/config/examples/postgresql.yaml new file mode 100644 index 00000000..7104a266 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/postgresql.yaml @@ -0,0 +1,21 @@ +input: + postgresql: + module: postgresql-query + server: + user: 'postgres' + database: 'test' + password: '$Demo123' + host: 'localhost' + port: '5432' + queryTimezone: America/Los_Angeles + queryTimeFormat: YYYY-MM-DD HH:mm:ss + queries: + - sourceName: query1 + sql: SELECT name, age FROM company where join_date < '$queryTime' + - sourceName: query2 + sql: SELECT name, salary FROM company where join_date < '$queryTime' + interval: 1 + debug: true + +output: + stdout: yaml diff --git a/node_modules/@sematext/logagent/config/examples/prometheus-to-elk.yaml b/node_modules/@sematext/logagent/config/examples/prometheus-to-elk.yaml new file mode 100644 index 00000000..3fd424ed --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/prometheus-to-elk.yaml @@ -0,0 +1,67 @@ +input: + docker-prometheus: + module: command + command: curl http://127.0.0.1:9323/metrics + sourceName: prometheus_metrics + debug: false + restart: 10 + +parser: + patternFiles: [] + patterns: + - # prometheus + sourceName: !!js/regexp /prometheus_metrics/ + match: + - type: prometheus_metrics + regex: !!js/regexp /\sHELP|\sTYPE\s/i + inputDrop: !!js/regexp /#\sHELP|#\sTYPE\s/i + - type: prometheus_metrics + regex: !!js/regexp /(\S+)({.+?})\s([\d|\.]+)/i + fields: + - name + - labels + - value + transform: !!js/function > + function (p) { + try { + if (p.name) { + p.name_space=p.name.split('_')[0] + } + if (p.labels) { + // hack, make JS code out of key/value format to parse properties + p.labels = eval ('x=' + p.labels.replace(/=/g,':')) + var l = Object.keys(p.labels) + // convert prometheus numbers in quotes to JS numbers + for (var i=0; i + function (p) { + if (p.name) { + p.name_space = p.name.split('_')[0] + } + p[p.name]=p.value + } + + +output: + stdout: yaml + logsene: + module: elasticsearch + url: https://localhost:9200 + index: prom_stats \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/remove_fields_with_sql_output_filter.yaml b/node_modules/@sematext/logagent/config/examples/remove_fields_with_sql_output_filter.yaml new file mode 100644 index 00000000..3b182b95 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/remove_fields_with_sql_output_filter.yaml @@ -0,0 +1,15 @@ +input: + stdin: true + +outputFilter: + - module: sql + config: + matchSource: !!js/regexp /nginx/ + interval: 1 # every second + queries: + - # remove field client_ip, referrer + SELECT * REMOVE COLUMNS LIKE '%ip%', referer FROM ? + + +output: + stdout: yaml \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/stdin-gelf-output.yml b/node_modules/@sematext/logagent/config/examples/stdin-gelf-output.yml new file mode 100644 index 00000000..ca7be355 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/stdin-gelf-output.yml @@ -0,0 +1,19 @@ +# Global options +options: + includeOriginalLine: false + +input: + stdin: true + +output: + gelf: + module: output-gelf + host: localhost + # graylog port (default: 12201) + port: 12201 + # Dump all events + debug: false + # compression 'gzip' or 'deflate' (default: 'deflate') + compressType: deflate + # size of chunked messages in bytes (default: 1240) + chunkSize: 1024 \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/stdin-kafka-yml.yml b/node_modules/@sematext/logagent/config/examples/stdin-kafka-yml.yml new file mode 100644 index 00000000..23302bd9 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/stdin-kafka-yml.yml @@ -0,0 +1,24 @@ +# Global options +options: + includeOriginalLine: false + +input: + stdin: true + +output: + kafka: + module: output-kafka + kafkaHost: localhost + topic: test + #Configuration for consider message as acknowledged acknowledged + # 0 = No ack required + # 1 = Leader ack required + # -1 All in sync replicas ack required + requireAcks: 1 + sslEnable: false + #For init sslOptions please refer to to https://nodejs.org/api/tls.html + sslOptions: + - rejectUnauthorized: false + + + \ No newline at end of file diff --git a/node_modules/@sematext/logagent/config/examples/syslog-input-es-output.yml b/node_modules/@sematext/logagent/config/examples/syslog-input-es-output.yml new file mode 100644 index 00000000..bcc6165a --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/syslog-input-es-output.yml @@ -0,0 +1,26 @@ +options: + # print stats every 60 seconds + printStats: 60 + # Enable/disable GeoIP lookups + geoipEnabled: false + # Directory to store Logagent status and temporary files + # this is equals to LOGS_TMP_DIR env variable + diskBufferDir: /tmp/sematext-logagent + debug: true + suppress: false + +input: + syslog: + module: input-syslog + port: 1514 + address: 127.0.0.1 + sourceName: syslog + tags: + key: value + +output: + # index logs in Elasticsearch or Sematext Logs + elasticsearch: + module: elasticsearch + url: https://logsene-receiver.sematext.com + index: LOGS_TOKEN diff --git a/node_modules/@sematext/logagent/config/examples/vercel-input-es-output.yml b/node_modules/@sematext/logagent/config/examples/vercel-input-es-output.yml new file mode 100644 index 00000000..90f51ac9 --- /dev/null +++ b/node_modules/@sematext/logagent/config/examples/vercel-input-es-output.yml @@ -0,0 +1,23 @@ +debug: false + +input: + vercel: + module: input-vercel + port: 8400 + useIndexFromUrlPath: true + # workers: 4 + clientSecrets: + - + - + + +outputFilter: + vercel-format: + module: vercel-format + +output: + # stdout: yaml + + sematext-cloud: + module: elasticsearch + url: https://logs-token-receiver.apps.test.sematext.com diff --git a/node_modules/@sematext/logagent/dockerhub/Dockerfile b/node_modules/@sematext/logagent/dockerhub/Dockerfile new file mode 100644 index 00000000..98d8774a --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/Dockerfile @@ -0,0 +1,28 @@ +FROM node:12-alpine + +ENV REGION="US" + +RUN \ + apk add --no-cache --update bash tini && \ + rm -rf /var/cache/apk/* + +RUN \ + apk add --no-cache --virtual .build-deps alpine-sdk python && \ + npm install -g --unsafe-perm --production git+https://sematext@github.com/sematext/logagent-js.git && \ + npm install -g --unsafe-perm --production @sematext/logagent && \ + npm install -g --production --unsafe-perm @sematext/logagent-nodejs-monitor && \ + mkdir -p /etc/sematext && \ + mkdir -p /etc/logagent && \ + mkdir -p /opt/logagent && \ + touch /opt/logagent/patterns.yml && \ + npm rm -g npm && \ + rm -rf ~/.npm && \ + rm -rf /tmp/* && \ + apk del .build-deps + +COPY patterns.yml /etc/logagent/patterns.yml +COPY run.sh /run.sh +RUN chmod +x /run.sh +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/run.sh"] diff --git a/node_modules/@sematext/logagent/dockerhub/Dockerfile.aarch64 b/node_modules/@sematext/logagent/dockerhub/Dockerfile.aarch64 new file mode 100644 index 00000000..1ba634da --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/Dockerfile.aarch64 @@ -0,0 +1,27 @@ +FROM balenalib/aarch64-alpine-node:10-3.7 + +RUN [ "cross-build-start" ] + +ENV MAX_MEM="--max-old-space-size=300" +ENV REGION="US" + +RUN \ + apk add --update bash tini && \ + rm -rf /var/cache/apk/* + +RUN \ + npm install -g --unsafe-perm @sematext/logagent && \ + mkdir -p /etc/sematext && \ + mkdir -p /opt/logagent && \ + touch /opt/logagent/patterns.yml && \ + rm -rf /tmp/* /root/.npm + +COPY patterns.yml /opt/logagent/patterns.yml +COPY run.sh /run.sh +RUN chmod +x /run.sh +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 + +RUN [ "cross-build-end" ] + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/run.sh"] diff --git a/node_modules/@sematext/logagent/dockerhub/Dockerfile.arm b/node_modules/@sematext/logagent/dockerhub/Dockerfile.arm new file mode 100644 index 00000000..26ef9d08 --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/Dockerfile.arm @@ -0,0 +1,22 @@ +FROM resin/armhf-alpine-node:10-slim +ENV MAX_MEM="--max-old-space-size=300" +ENV REGION="US" + +RUN \ + apk add --update bash tini && \ + rm -rf /var/cache/apk/* + +RUN \ + npm install -g --unsafe-perm @sematext/logagent && \ + mkdir -p /etc/sematext && \ + mkdir -p /opt/logagent && \ + touch /opt/logagent/patterns.yml && \ + rm -rf /tmp/* /root/.npm + +COPY patterns.yml /opt/logagent/patterns.yml +COPY run.sh /run.sh +RUN chmod +x /run.sh +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["/run.sh"] diff --git a/node_modules/@sematext/logagent/dockerhub/Dockerfile.rhel b/node_modules/@sematext/logagent/dockerhub/Dockerfile.rhel new file mode 100644 index 00000000..4542456b --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/Dockerfile.rhel @@ -0,0 +1,53 @@ +FROM registry.access.redhat.com/ubi7/ubi:latest +### setup nodejs & logagent +RUN yum install curl +RUN curl -sL https://rpm.nodesource.com/setup_10.x | bash - +RUN yum install -y nodejs +RUN npm install -g @sematext/logagent + +MAINTAINER Sematext Group Inc. +### Atomic/OpenShift Labels - https://github.com/projectatomic/ContainerApplicationGenericLabels +LABEL name="sematext/logagent" \ + vendor="Sematext Group Inc." \ + version="2.0" \ + release="2" \ + summary="Sematext Logagent" \ + description="Sematext Logagent is a modern, open-source, container-native log collection agent for Docker. It runs as a tiny container on every Docker host and provides automatic collection and processing of Docker Logs for all cluster nodes and all auto-discovered containers. It works with Open Shift/Kubernetes or any other platform supporting Docker containers." \ +### Required labels above - recommended below + url="https://sematext.com/docker" \ + run='docker run --privileged --name ${NAME} -e LOGS_TOKEN=${LOGS_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock ${IMAGE}' \ + io.k8s.description="Sematext Logagent collects container logs" \ + io.k8s.display-name="Sematext Logagent" \ + io.openshift.tags="sematext,logging,log management,container logs" + + +COPY ./LICENSE /licenses/LICENSE +COPY ./help.1 /help.1 + +ENV APP_ROOT=/opt/sematext +ENV USER_NAME=default \ + USER_UID=10001 +RUN mkdir -p $APP_ROOT/licenses + +COPY ./run.sh $APP_ROOT/bin/run.sh + +ENV APP_HOME=${APP_ROOT}/src PATH=$PATH:${APP_ROOT}/bin +RUN mkdir -p /logs-buffer + +# Setup tini https://github.com/krallin/tini +ENV TINI_VERSION v0.18.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini ${APP_ROOT}/bin/tini + +### Setup user for build execution and application runtime +RUN chmod -R ug+x ${APP_ROOT}/bin && sync && \ + useradd -l -u ${USER_UID} -r -g 0 -d ${APP_ROOT} -s /sbin/nologin -c "${USER_NAME} user" ${USER_NAME} && \ + chown -R ${USER_UID}:0 ${APP_ROOT} && \ + chmod -R g=u ${APP_ROOT} && chown -R ${USER_UID}:0 /logs-buffer && \ + chown -R ${USER_UID}:0 ${APP_ROOT} + +### Containers should NOT run as root as a good practice +USER 10001 +HEALTHCHECK --interval=1m --timeout=10s CMD ps -ef | grep -v grep | grep -e logagent || exit 1 + +ENTRYPOINT ["/opt/sematext/bin/tini", "--"] +CMD ["/opt/sematext/bin/run.sh"] \ No newline at end of file diff --git a/node_modules/@sematext/logagent/dockerhub/LICENSE b/node_modules/@sematext/logagent/dockerhub/LICENSE new file mode 100644 index 00000000..6ea25cb8 --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2015 Sematext Group, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/node_modules/@sematext/logagent/dockerhub/README.md b/node_modules/@sematext/logagent/dockerhub/README.md new file mode 100644 index 00000000..daa93883 --- /dev/null +++ b/node_modules/@sematext/logagent/dockerhub/README.md @@ -0,0 +1,35 @@ +Logagent is a general purpose log shipper. The Logagent Docker image is pre-configured for the log collection on container platforms. It runs as a tiny container on every Docker host and collects logs for all cluster nodes and their containers. All container logs are enriched with Kubernetes and Docker Enterprise / Docker Swarm metadata. + +## Getting started + +To run Logagent you will need a Logs App Token. +If you don't have Logs Apps yet, you can [create Apps now](https://apps.sematext.com/ui/integrations). + +The [Logagent](https://sematext.com/logagent) docker container can be configured through the following environment variables: + +* **REGION**: Sematext Cloud region **US** or **EU** (default: US). The receiver URL will be set to EU/US default values. When using REGION, you don't need to set `LOGS_RECEIVER_URL` (see below). +* **LOGS_RECEIVER_URL**: The URL of your Elasticsearch Endpoint _(defaults to Sematext Cloud US `https://logsene-receiver.sematext.com`)_. + + * For Sematext Europe use `https://logsene-receiver.eu.sematext.com`. + * For Elasticsearch `https://elasticserch-server-name:9200`. + +* **LOGS_TOKEN**: The index where the agent should log to _(for [Sematext Cloud](https://sematext.com/cloud) users the logs token)_ +* **LOG_GLOB**: Semicolon-separated list of file globs
/mylogs/**/*.log;/var/log/**/*.log
. Mount your server log files into the container using a Docker volume e.g.
-v /var/log:/mylogs
+* **LOGAGENT_ARGS**: Additional [command line arguments for Logagent](https://sematext.com/docs/logagent/cli-parameters/)
LOGAGENT_ARGS="-n httpd"
to specify a log source name or
LOGAGENT_ARGS="-u 514"
to act as syslog server. Please refer to Logagent command line arguments in the [Logagent Documentation](https://sematext.com/docs/logagent/cli-parameters/) + +### Docker Run Example + +The most basic start method is using docker run command: + +``` +docker pull sematext/logagent +docker run -d --name logagent \ +-e LOGS_TOKEN=YOUR_LOGS_TOKEN \ +-e LOGS_RECEIVER_URL="https://logsene-receiver.sematext.com" +-v /var/run/docker.sock:/var/run/docker.sock sematext/logagent +``` + +# Documentation + +For further information please read the [setup manual](https://sematext.com/docs/logagent/installation-docker/). +You find in the manual all configuration options and the setup instructions for Kubernetes, OpenShift, Mesos, Docker Enterprise, etc. diff --git a/node_modules/@sematext/logagent/dockerhub/docs/logo.png b/node_modules/@sematext/logagent/dockerhub/docs/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..4e8fdf334583f387382986328302502790665658 GIT binary patch literal 55426 zcmeFZWppGluP7Mka57<>Ff(?TnK=_?W@g3-Gcz+YGcz+!I1^4LFrm$S_ult*_w4We z_3E5DU1iI%q>?OIwmV!wP8ylobR4 zsgH$wGl2MdCp3~!k_7?rBnJWU4+a7G`&HzB3IgK72m*4h4+6rK1_FX%`^GOZ*=QuCM2R#SFxR{{eBf;w4s>RUj0$b2K4jr3cb867#_l5)$$_8k=${ ziHQAo^RG8vVsmF_doBhBH#awWHx_z3M>7T{PEJk+MrH_)A5nZvJpV!e|0w(4#PNJ# z=Mr`_F>tnXRI#(O=KCiB3tKBEBLjPre{$eq_*#9rt{-^XyxO}i* zE&u03@xcO?PA5S?1VAK31XbKYFS^fC4_7^QpO$)D{`5@qftc2zkb+7PN<_3!N~ct< zHPCU(U2wSmIy{t(k=G?v zflwbD&MxAA!{^mPy9+L=xxe@S56Z7fsQ**> ze}o|ZPfh-hCj9>*gy2_CXFvNdW7l7WcILvfYTaD1Y_59J@T)wt>t?eG5a(8G>VU*SVT>_ zhC(VEEYYmltXX{wi0ZKdA~8?5R41LQ9yygP)oB-7{80_P)>_%?o*eEZrY6WTNmcx*R&Vh0>hGNImU+gvO-=)1AYm z%=*yB4-iK_wV*?x<*hE(6pdTLNuf%iQxjUd(aKkEh8-wYvg6)Y63siTq@!6P)t|E9 z8Y5h+Ts1}$9>J1|8XiPp6O6nY6{;~DybVL;Im=HQp0i#EZ!1<-Y|5^ScDkU{ln=}9 zPOlCv@w=w@>hl3r$L|6)+W(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_Odx$WOc9l1aSAMvZ&wV9H@Q=6+nLHyfa#H#8-^Z=o_ zyK@kss0B?-3*e?JG!|nig-@^F?dQ2xB%UJil5uczrFzi5Usg?SP_@9}HA`EtGOIUKmk?f0gxB{7SV-EvG8?&2 zY?_Yx+=1uwke>5(6LY;%m8hhIclR{2?+>8c-#G{)-~XsEw1)|fS#}++B>Mo$7me^L zfjjf1^qEj<30sPx`O}Jwd>E{29yyQZ4|G~jmfl!fS;ac}MeW-5?Jx(fs1$d;xj;v( z87=uKl+3(cGce;n$~%^S7``l(?N6?njR3L82Bef!y=>Lz(%ATLHN3#EZSWagdH;f- zQ=?)8+v<8Aw|9|?6d{R$SsK*4ljkwBRC1z!06jne-}JU;zyaiIn1)7KiaGwbMPOh# zx$$pbxghZZplov2g8cpeES|Y%_@Dc;9{LZRe?lfqRndY}pupK6A0;`lcfeONFL2`j z%BH2ZC8`Iq$p*(nF~Od8GcfZZG03ZY*Ws0(AZi+BW)3+dhJq4Qf*E=Dshbw4MLK;2 z%G5OPK&r`G9KvU{`JPn3qkM@F8l8TZth3t4{~7wP?<3Lc2|ILuL&9nRw0|*Umc@V2 zaeyU6@htKa-NjP))WwYL3?AE?v@LOGAGENT_ARGS="-n httpd" to specify a log source name or
LOGAGENT_ARGS="-u 514"
to act as syslog server. Please refer to Logagent command line argumetns in the [Logagent Documentation](https://sematext.com/docs/logagent/cli-parameters/) +* **LOG_GLOB**: Semicolon-separated list of file globs
/mylogs/**/*.log;/var/log/**/*.log
Mount your server log files into the container using a Docker volume e.g.
-v /var/log:/mylogs
. +* **-v /var/run/docker.sock:/var/run/docker.sock** - Collect container logs by mounting the docker socket (mandatory) + + +### Docker Run + +The most basic start method is using docker run command: + +``` +docker pull sematext/logagent +docker run -d --restart=always --name logagent \ +-e LOGS_TOKEN=YOUR_LOGS_TOKEN \ +-e LOGS_RECEIVER_URL="https://logsene-receiver.sematext.com" \ +-v /var/run/docker.sock:/var/run/docker.sock sematext/logagent +``` + + +### Docker Compose + +To use [Docker Compose](https://docs.docker.com/compose/) create docker-compose.yml as follows and insert real tokens: + +``` + +# docker-compose.yml +logagent: + image: 'sematext/logagent:latest' + environment: + - LOGS_TOKEN=YOUR_LOGS_TOKEN + - LOGS_RECEIVER_URL="https://logsene-receiver.sematext.com" + cap_add: + - SYS_ADMIN + restart: always + volumes: + - '/var/run/docker.sock:/var/run/docker.sock' + +``` + +Then start Logagent with the docker-compose file: + +``` +docker-compose up -d +``` + +### Docker Swarm and Docker Enterprise + +Connect your Docker client to Swarm or UCP remote API endpoint and +deploy Logagent with following docker command with your Logs Tokens: + +``` +docker service create --restart=always -mode global -name logagent \ +-mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ +-e LOGS_TOKEN="REPLACE THIS WITH YOUR LOGS TOKEN" \ +-e LOGS_RECEIVER_URL="https://logsene-receiver.sematext.com" \ +sematext/logagent +``` + +### Kubernetes and OpenShift + +Run Logagent as [Kubernetes DaemonSet](https://kubernetes.io/docs/concepts/workloads/controllers/daemonset). + +First, create [logagent-daemonset.yml](https://github.com/sematext/logagent-js/blob/master/kubernetes/logagent-daemonset.yml) + +``` +curl -o logagent-daemonset.yml https://raw.githubusercontent.com/sematext/logagent-js/master/kubernetes/logagent-daemonset.yml +``` + + +Then run the DaemonSet: + +``` +kubectl create -f logagent-daemonset.yml +``` + +On Red Hat OpenShift use the "oc" command instead of kubectl. + +``` +oc apply -f logagent-daemonset.yml +``` + +### Kubernetes with containerd and IBM Cloud + +Kubernetes can use cointainerd as container engine. In this case Logagent can't use the Docker remote API to retrieve logs and metadata. +Instead logs are collected from containerd log files and requires access to the relevant directories. +The logagent input-filter for containerd supports: + +* Tailing log files from `/var/log/containers/`, `/var/log/pods` and `/var/data/kubeletlogs` +* Enrichment of logs with podName, namespace, containerName, containerId +* Parsing containerd log headers (timestamp, stream, flags) +* Parsing message content with logagent parser library + +Run Logagent as [Kubernetes DaemonSet](https://kubernetes.io/docs/concepts/workloads/controllers/daemonset). + +First, create [ibm-cloud-logagent-ds.yml](https://github.com/sematext/logagent-js/blob/master/kubernetes/ibm-cloud-logagent-ds.yml) + +``` +curl -o ibm-cloud-logagent-ds.yml https://raw.githubusercontent.com/sematext/logagent-js/master/kubernetes/ibm-cloud-logagent-ds.yml +``` + +Set your Logs Token in the spec.env section in the `ibm-cloud-logagent-ds.yml` file. + +Then run the DaemonSet: + +``` +kubectl create -f ibm-cloud-logagent-ds.yml +``` + + +### Mesos / Marathon + +The following configuration will activate Logagent on every node in the Mesos cluster. Please note that you have to specify the number of Mesos nodes (instances) and Logs Token. An example call to the Marathon API: + +``` +curl -XPOST -H "Content-type: application/json" http://your_marathon_server:8080/v2/apps -d ' +{ + "container": { + "type": "DOCKER", + "docker": { + "image": "sematext/logagent" + }, + "volumes": [ + { + "containerPath": "/var/run/docker.sock", + "hostPath": "/var/run/docker.sock", + "mode": "RW" + } + ], + "network": "BRIDGE" + }, + "env": { + "LOGS_TOKEN": "YOUR_LOGS_TOKEN", + "LOGS_RECEIVER_URL": "https://logsene-receiver.sematext.com" + + }, + "id": "sematext-logagent", + "instances": 1, + "cpus": 0.1, + "mem": 100, + "constraints": [ + [ + "hostname", + "UNIQUE" + ] + ] +} +``` + + +## Configuration Parameters + +### Mandatory Parameters + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
LOGS_TOKENLogs Token enables logging to Sematext Cloud, see logging specific parameters for filter options and Log Routing section to route logs from different containers to separate Logs Apps (indices)
-v /var/run/docker.sockPath to the docker socket
+ +### Optional Parameters + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
REGIONSematext Cloud region US or EU (default: US). The receiver URL will be set to EU/US default values. When using REGION, you don't need to set LOGS_RECEIVER_URL (see below).
LOG_GLOBSemicolon-separated list of file globs (e.g. /var/log//*.log;/mylogs//*.log) to collect log files from the host, assuming the log files are mounted to /mylogs using Docker -v /var/logs:/mylogs
LOGAGENT_ARGSAdditional command line arguments for Logagent (e.g. LOGAGENT_ARGS="-n httpd" to specify a log source name or LOGAGENT_ARGS="-u 514" to act as syslog server)
--privilegedThe parameter might be helpful when Logagent could not start because of limited permission to connect and write to the Docker socket /var/run/docker.sock. The privileged mode is a potential security risk, we recommend to enable the appropriate security. Please read about Docker security: https://docs.docker.com/engine/security/security/
HTTPS_PROXYURL for a proxy server (behind firewalls)
LOGS_RECEIVER_URLURL for bulk inserts into Sematext Cloud. Required for Sematext Enterprise (local IP:PORT) or Sematext Cloud Europe: https://logsene-receiver.eu.sematext.com
JOURNALD_UPLOAD_PORTPort number for the collection of journald logs, forwarded by systemd-journal-upload.service. Equals to Logagent argument --journald PORT.
SYSTEMD_UNIT_FILTERA regular expression to filter journald logs by systemd unit name, e.g. "ssh.service|docker.service". The default value is ".*".
CONFIG_FILEPath to the configuration file, containing environment variables key=value. Default value: /run/secrets/logagent. Create a secret with docker secret create logagent ./logagent.cfg. Start Logagent with `docker service create --mode global --secret logagent --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock sematext/logagent
--privilegedThe parameter might be helpful when Logagent could not start because of limited permission to connect and write to the Docker socket /var/run/docker.sock. The privileged mode is a potential security risk, we recommend to enable the appropriate security. Please read about Docker security: https://docs.docker.com/engine/security/security/
+ +#### Docker Logs Parameters + + + + + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
TAGGING_LABELSA list of docker label names or environment variable names to tag container logs. Supporting wildcards. Default value:
com.docker.*,io.kubernetes.*,annotation.io.*
IGNORE_LOGS_PATTERNFilter logs by a JS regular expression. E.g.
IGNORE_LOGS_PATTERN=\/healthcheck|\/ping
LOGSENE_ENABLED_DEFAULTEnables log collection for containers having no explicit label/environment variable LOGSENE_ENABLED set. Default value: true. See section Log Routing.
+ +#### Whitelist Containers for Logging + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
MATCH_BY_NAMERegular expression to white list container names
MATCH_BY_IMAGERegular expression to white list image names
+ +#### Blacklist Containers + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
SKIP_BY_NAMERegular expression to black list container names
SKIP_BY_IMAGERegular expression to black list image names for logging
+ +#### Set Log Patterns + +Logagent supports various log formats defined in [patterns.yml](https://github.com/sematext/logagent-js/blob/master/patterns.yml) file. +The [Log Parser Patterns](https://sematext.com/docs/logagent/parser/) can be customized by proving your YAML file. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
PATTERNS_URLLoad pattern.yml via HTTP e.g.
PATTERNS_URL=https://myserver/patterns.yml
+
LOGAGENT_PATTERNSPass patterns.yml via env. variable e.g.
LOGAGENT_PATTERNS="$(cat ./patters.yml)"
LOGAGENT_PATTERNS_BASE64Set to "true" if the LOGAGENT_PATTERNS patterns file you are passing in via env. variable is base64 encoded e.g +
LOGAGENT_PATTERNS_BASE64="$(cat ./patterns.yml | base64)"
. Useful if your patterns file is not getting set properly due to shell interpretation or otherwise.
PATTERN_MATCHING_ENABLEDActivate logagent-js parser, default value is true. To disable the log parser set the value to false. This could increase the throughput of log processing for nodes with a very high log volume.
-v /patterns.yml:/etc/logagent/patterns.ymlMount a patterns file to customize patterns for log parsing
+ +#### Other Options + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Parameter / Environment variableDescription
-v /tmp:/log-bufferDirectory to store logs, in a case of a network or service outage. Docker Agent deletes these files after successful transmission.
GEOIP_ENABLEDEnables GeoIP lookups in the log parser, default value: "false"
MAXMIND_DB_DIRDirectory for the Geo-IP lite database, must end with /. Storing the DB in a volume could save downloads for updates after restarts. Using /tmp/ (ramdisk) could speed up Geo-IP lookups (requires add. ~30 MB main memory).
REMOVE_FIELDSRemoves fields from parsed/enriched logs. E.g.
REMOVE_FIELDS=password,creditCardNo
+ + +## Configuration Manual + +### Blacklisting and Whitelisting Logs + +Not all logs might be of interest, so sooner or later you will have the need to blacklist some log types. This is one of the reasons why Logagent automatically adds the following tags to all logs: + +- Container ID +- Container Name +- Image Name +- Docker Compose Project Name +- Docker Compose Service Name +- Docker Compose Container Number + +Using this “log metadata” you can whitelist or blacklist log outputs by image or container names. The relevant environment variables are: + +- MATCH_BY_NAME — a regular expression to whitelist container names +- MATCH_BY_IMAGE — a regular expression to whitelist image names +- SKIP_BY_NAME — a regular expression to blacklist container names +- SKIP_BY_IMAGE — a regular expression to blacklist image names + + +Some log messages are useless or noisy, like access to health check URLs in Kubernetes. +You can filter such messages via regular expressions by setting the following environment variable: +
  
+IGNORE_LOGS_PATTERNS=\/healthcheck|\/ping
+
+ +### Container Log Parsing + +In Docker, logs are console output streams from containers. They might be a mix of plain text messages from start scripts and structured logs from applications. The problem is obvious – you can’t just take a stream of log events all mixed up and treat them like a blob. You need to be able to tell which log event belongs to what container, what app, parse it correctly in order to structure it so you can later derive more insight and operational intelligence from logs, etc. + +Logagent analyzes the event format, parses out data, and turns logs into structured JSON. This is important because the value of logs increases when you structure them — you can then slice and dice them and gain a lot more insight about how your containers, servers, and applications operate. + +Traditionally it was necessary to use log shippers like Logstash, Fluentd or Rsyslog to parse log messages. The problem is that such setups are typically deployed in a very static fashion and configured for each input source. That does not work well in the hyper-dynamic world of containers! We have seen people struggling with the Syslog drivers, parsers configurations, log routing, and more! With its integrated automatic format detection, Logagent eliminates this struggle — and the waste of resources — both computing and human time that goes into dealing with such things! This integration has a low footprint, doesn’t need retransmissions of logs to external services, and it detects log types for the most popular applications and generic JSON and line-oriented log formats out of the box! + +![Example: Apache Access Log fields generated by Logagent](https://sematext.com/wp-content/uploads/2016/06/image17.png) + +For example, Logagent can parse logs from official images like: + +- Nginx, Apache, Redis, MongoDB, MySQL +- Elasticsearch, Solr, Kafka, Zookeeper +- Hadoop, HBase, Cassandra +- Any JSON output with special support for Logstash or Bunyan format +- Plain text messages with or without timestamps in various formats +- Various Linux and Mac OSX system logs + +### Adding log parsing patterns + +In addition, you can define your own patterns for any log format you need to be able to parse and structure. There are three options to pass individual log parser patterns: + +- Configuration file in a mounted volume: ```-v PATH_TO_YOUR_FILE:/etc/logagent/patterns.yml``` + - Kubernetes ConfigMap example: [Template for patterns.yml as ConfigMap](https://github.com/sematext/logagent-js/blob/master/kubernetes/configMapExample.yml) +- Content of the configuration file in an environment variable: ```-e LOGAGENT_PATTERNS=”$(cat patterns.yml)”``` +- Set patterns URL as environment variable: ```-e PATTERNS_URL=http://yourserver/patterns.yml``` + +The file format for the patterns.yml file is based on JS-YAML, in short: + +- `–` indicates an array element +- `!js/regexp` – indicates a JavaScript regular expression +- `!!js/function >` – indicates a JavaScript function + + +The file has the following properties: + +- patterns: list of patterns, each pattern starts with “-“ + - match: a list of pattern definition for a specific log source (image/container) + - sourceName: a regular expression matching the name of the log source. The source name is a combination of image name and container name. + - regex: JS regular expression + - fields: field list of extracted match groups from the regex + - type: type used in Sematext Cloud (Elasticsearch Mapping) + - dateFormat: format of the special fields ‘ts’, if the date format matches, a new field @timestamp is generated + - transform: A JavaScript function to manipulate the result of regex and date parsing + +The following example shows pattern definitions for web server logs, which is one of the patterns available by default: +![Example from https://sematext.github.io/logagent-js/parser/](https://sematext.com/wp-content/uploads/2016/06/image05-1.png) + + +This example shows a few very interesting features: + +- Masking sensitive data with “autohash” property, listing fields to be replaced with a hash code +- Automatic Geo-IP lookups including automatic updates for Maxmind Geo-IP lite database +- Post-processing of parsed logs with JavaScript functions + +The component for detecting and parsing log messages — [logagent-js](http://sematext.com/docs/logagent/parser/) — is open source and contributions for even more log formats are welcome. + + +### Log Routing + +Routing logs from different containers to separate Sematext Cloud Logs Apps can be configured via docker labels (or environment variables e.g. on Kubernetes). Simply tag a container with the label (or environment variable) ```LOGSENE_TOKEN=YOUR_LOGSENE_TOKEN```. +Logagent inspects the containers for this label and ships the logs to the specified Logs App. + +__Example:__ +The following command will start Nginx webserver and logs for this container will be shipped to the related Logs App. + +``` +docker run --label LOGSENE_TOKEN=REPLACE_WITH_YOUR_LOGS_TOKEN -p 80:80 nginx +# or use environment variable on Kubernetes (no support for Docker labels) +# docker run -e LOGSENE_TOKEN=REPLACE_WITH_YOUR_LOG_TOKEN -p 80:80 nginx +``` + +All other container logs will be shipped to the Logs App specified in the docker run command for ```sematext/logagent``` with the environment variable ```LOGSENE_TOKEN```. + +By default, all logs from all containers are collected and sent to Sematext Cloud/Elasticsearch. You can change this default by setting the ```LOGSENE_ENABLED_DEFAULT=false``` label for the Logagent container. This default can be overridden, on each container, through the ```LOGSENE_ENABLED``` label. + +Please refer to [Docker Log Management & Enrichment](https://sematext.com/blog/2017/05/15/docker-log-management-enrichment/) for further details. + + +## Known Issues + +**Conflict with Docker logging-drivers. Logagent is running +with a valid Logs Token, but Sematext Cloud does not show container logs. ** + +Please note that Logagent collects logs via Docker Remote +API. If you use a Docker logging-driver other than the default json-file +driver, logs will not be available via the Docker Remote API. Please +make sure that your container or docker daemon uses json-file logging +driver. This ensures that logs are exposed via Docker Remote API. To +check, run the "docker logs" command. If "docker logs CID" shows +container logs then Logagent should be able to collect the +logs as well. + +Please check the parsed timestamps! +Logs with timestamps in the future (or several months or years in the past) might not be displayed in Sematext Cloud. diff --git a/node_modules/@sematext/logagent/elasticsearch-http-test/docker-compose.yml b/node_modules/@sematext/logagent/elasticsearch-http-test/docker-compose.yml new file mode 100644 index 00000000..07e184f5 --- /dev/null +++ b/node_modules/@sematext/logagent/elasticsearch-http-test/docker-compose.yml @@ -0,0 +1,23 @@ +version: '2' +services: + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3 + container_name: elasticsearch + environment: + - path.data=/tmp/elasticsearch + - xpack.security.enabled=false + - discovery.type=single-node + - "ES_JAVA_OPTS=-Xms512m -Xmx512m" + ulimits: + memlock: + soft: -1 + hard: -1 + nofile: + soft: 65536 + hard: 65536 + mem_limit: 1g + #volumes: + # - /tmp/elasticsearch/data:/tmp/elasticsearch + ports: + - "9200:9200" + - "9300:9300" \ No newline at end of file diff --git a/node_modules/@sematext/logagent/elasticsearch-http-test/requests b/node_modules/@sematext/logagent/elasticsearch-http-test/requests new file mode 100644 index 00000000..847cc721 --- /dev/null +++ b/node_modules/@sematext/logagent/elasticsearch-http-test/requests @@ -0,0 +1,6 @@ +{ "index" : { "_index" : "mytest", "_type" : "type1", "_id" : "1" } } +{ "field1":"value1" } +{ "index" : { "_index" : "mytest", "_type" : "type1", "_id" : "2" } } +{ "field1":"value1" } +{ "index" : { "_index" : "mytest", "_type" : "type1", "_id" : "3" } } +{ "field1":"value1" } diff --git a/node_modules/@sematext/logagent/elasticsearch-http-test/test.sh b/node_modules/@sematext/logagent/elasticsearch-http-test/test.sh new file mode 100755 index 00000000..17b520c6 --- /dev/null +++ b/node_modules/@sematext/logagent/elasticsearch-http-test/test.sh @@ -0,0 +1,20 @@ +cd elasticsearch-test + +docker-compose version +docker version +if [[ "$(docker ps)" =~ "elastic" ]]; then + docker-compose stop && true + docker-compose rm -f && true +fi +docker-compose up -d +ps -ef |grep elastic-http | awk '{print $2}' | xargs kill +../bin/logagent.js --config ../config/examples/elastic-http-input.yml & +sleep 20 + +curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9900/_bulk --data-binary "@requests" +sleep 30 +curl 'localhost:9200/_cat/indices?v' 2>&1 | grep mytest +curl 'localhost:9200/mytest/_search' | ../bin/logagent.js -y +curl 'localhost:9200/mytest/_count' | ../bin/logagent.js -y +sleep 5 +ps -ef |grep elastic-http | awk '{print $2}' | xargs kill -3 diff --git a/node_modules/@sematext/logagent/kubernetes/configMapExample.yml b/node_modules/@sematext/logagent/kubernetes/configMapExample.yml new file mode 100644 index 00000000..d7b6f8f4 --- /dev/null +++ b/node_modules/@sematext/logagent/kubernetes/configMapExample.yml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: sematext-agent-patterns +data: + patterns.yml: |- + # Put your custom patterns below. + # Watch out on indentation to follow this comment! diff --git a/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-ds.yml b/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-ds.yml new file mode 100644 index 00000000..a7a735ae --- /dev/null +++ b/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-ds.yml @@ -0,0 +1,93 @@ +# Cluster Role bindings for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: sematext-logagent +subjects: +- kind: ServiceAccount + name: sematext-logagent + namespace: default +--- +# Cluster Role for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +rules: +- apiGroups: + - "" + resources: + - events + - pods + verbs: + - list + - get + - watch +--- +# Service Account for Logagent +apiVersion: v1 +kind: ServiceAccount +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +--- +# Daemonset +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: st-logagent +spec: + selector: + matchLabels: + app: st-logagent + template: + metadata: + labels: + app: st-logagent + spec: + nodeSelector: {} + serviceAccountName: sematext-logagent + hostNetwork: true + dnsPolicy: "ClusterFirst" + restartPolicy: "Always" + containers: + - name: st-logagent + image: sematext/logagent + imagePullPolicy: "Always" + env: + - name: LOG_GLOB + value: "/var/log/containers/*.log;/var/log/*.log" + - name: LOGAGENT_ARGS + value: "--k8sContainerd --k8sEnrichment" + - name: LOGS_TOKEN + value: "YOUR_SEMATEXT_LOGS_TOKEN" + - name: REGION + value: "US" + volumeMounts: + - mountPath: /var/log + name: var-log + - mountPath: /var/data/kubeletlogs + name: kubeletlogs + - mountPath: /etc/localtime + name: localtime + securityContext: + privileged: true + volumes: + - name: var-log + hostPath: + path: /var/log + - name: kubeletlogs + hostPath: + path: /var/data/kubeletlogs + - name: localtime + hostPath: + path: /etc/localtime diff --git a/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-with-config-ds.yml b/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-with-config-ds.yml new file mode 100644 index 00000000..7a091559 --- /dev/null +++ b/node_modules/@sematext/logagent/kubernetes/ibm-cloud-logagent-with-config-ds.yml @@ -0,0 +1,95 @@ +# Cluster Role bindings for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: sematext-logagent +subjects: +- kind: ServiceAccount + name: sematext-logagent + namespace: default +--- +# Cluster Role for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +rules: +- apiGroups: + - "" + resources: + - events + - pods + verbs: + - list + - get + - watch +--- +# Service Account for Logagent +apiVersion: v1 +kind: ServiceAccount +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +--- +# Daemonset +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: st-logagent +spec: + selector: + matchLabels: + app: st-logagent + template: + metadata: + labels: + app: st-logagent + spec: + nodeSelector: {} + serviceAccountName: sematext-logagent + hostNetwork: true + dnsPolicy: "ClusterFirst" + restartPolicy: "Always" + containers: + - name: sematext-logagent + image: sematext/logagent + imagePullPolicy: "Always" + env: + - name: LA_CONFIG_OVERRIDE + value: "true" + volumeMounts: + - mountPath: /var/log + name: var-log + - mountPath: /var/data/kubeletlogs + name: kubeletlogs + - mountPath: /etc/localtime + name: localtime + - mountPath: /etc/sematext + name: logagent-config + securityContext: + privileged: true + volumes: + - name: var-log + hostPath: + path: /var/log + - name: kubeletlogs + hostPath: + path: /var/data/kubeletlogs + - name: localtime + hostPath: + path: /etc/localtime + - name: logagent-config + configMap: + name: logagent-config + items: + - key: logagent.conf + path: logagent.conf \ No newline at end of file diff --git a/node_modules/@sematext/logagent/kubernetes/k8s-annotations-for-log-routing-example.yml b/node_modules/@sematext/logagent/kubernetes/k8s-annotations-for-log-routing-example.yml new file mode 100644 index 00000000..3354ea9b --- /dev/null +++ b/node_modules/@sematext/logagent/kubernetes/k8s-annotations-for-log-routing-example.yml @@ -0,0 +1,77 @@ +apiVersion: v1 +kind: Pod +metadata: + name: nginx + annotations: + "sematext.com/logs-enabled": "false" + #"sematext.com/logs-token": "YOUR_LOGS_TOKEN_FOR_NGINX_LOGS" + #"sematext.com/logs-remove-fields": "client_ip,user" + #"sematext.com/logs-receiver-url": "https://logsene-receiver.eu.sematext.com" + imageregistry: "https://hub.docker.com/" +spec: + containers: + - name: nginx + image: nginx + ports: + - containerPort: 80 +--- +apiVersion: v1 +kind: Pod +metadata: + name: redis1 + annotations: + "sematext.com/logs-enabled": "true" + imageregistry: "https://hub.docker.com/" +spec: + containers: + - name: redis1 + image: redis + ports: + - containerPort: 6379 +--- +apiVersion: v1 +kind: Pod +metadata: + name: redis2 + annotations: + imageregistry: "https://hub.docker.com/" +spec: + containers: + - name: redis + image: redis + ports: + - containerPort: 6379 +--- +# Logagent test pod, in prod it is deployed as daemonset +apiVersion: v1 +kind: Pod +metadata: + name: st-logagent +spec: + containers: + - name: sematext-logagent + image: sematext/logagent:latest + imagePullPolicy: "IfNotPresent" + env: + # verbose output + #- name: LOGAGENT_ARGS + # value: "-v" + #- name: DEBUG + # value: "true" + #- name: SKIP_BY_IMAGE + # value: 'sematext.logagent' + #- name: SKIP_BY_NAME + # value: 'st-logagent' + - name: LOGSENE_ENABLED_DEFAULT + value: "false" + - name: LOGS_TOKEN + value: "YOUR_SEMATEXT_LOGS_TOKEN" + - name: LOGS_RECEIVER_URL + value: "https://logsene-receiver.sematext.com" + volumeMounts: + - mountPath: /var/run/docker.sock + name: docker-sock + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock diff --git a/node_modules/@sematext/logagent/kubernetes/logagent-daemonset.yml b/node_modules/@sematext/logagent/kubernetes/logagent-daemonset.yml new file mode 100644 index 00000000..88212038 --- /dev/null +++ b/node_modules/@sematext/logagent/kubernetes/logagent-daemonset.yml @@ -0,0 +1,92 @@ +# Cluster Role bindings for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: sematext-logagent +subjects: +- kind: ServiceAccount + name: sematext-logagent + namespace: default +--- +# Cluster Role for Logagent +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +rules: +- apiGroups: + - "" + resources: + - events + - pods + verbs: + - list + - get + - watch +--- +# Service Account for Logagent +apiVersion: v1 +kind: ServiceAccount +metadata: + name: sematext-logagent + labels: + app: sematext-logagent +--- +# Daemonset +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: st-logagent +spec: + selector: + matchLabels: + app: st-logagent + template: + metadata: + labels: + app: st-logagent + spec: + nodeSelector: {} + serviceAccountName: sematext-logagent + hostNetwork: true + dnsPolicy: "ClusterFirst" + restartPolicy: "Always" + containers: + - name: sematext-logagent + image: sematext/logagent:latest + imagePullPolicy: "Always" + env: + - name: LOGS_TOKEN + value: "YOUR_LOGS_TOKEN" + - name: LOGS_RECEIVER_URL + value: "https://logsene-receiver.sematext.com" + volumeMounts: + - mountPath: /var/run/docker.sock + name: docker-sock + - mountPath: /etc/localtime + name: localtime +# - mountPath: /etc/logagent +# name: patterns + securityContext: + privileged: true + volumes: + - name: docker-sock + hostPath: + path: /var/run/docker.sock + - name: localtime + hostPath: + path: /etc/localtime +# - name: patterns +# configMap: +# name: sematext-agent-patterns +# items: +# - key: patterns.yml +# path: patterns.yml diff --git a/node_modules/@sematext/logagent/lib/plugins/input-filter/kubernetesContainerd.js b/node_modules/@sematext/logagent/lib/plugins/input-filter/kubernetesContainerd.js new file mode 100644 index 00000000..43e810e8 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input-filter/kubernetesContainerd.js @@ -0,0 +1,130 @@ +// const containerdSplitRegexp = /^(.+[stdout|stderr] [F|P]) / // old +const containerdSplitRegexp = /^(.+)\s(stdout|stderr)\s(F|P)\s(.*)/ // new + +// Dictionary to store sources and log lines +/** + * Key: sourceName + * Value (Object): { streamFlag, previousStreamFlag, logLines } + */ +const sources = {} + +/** + * sourceName - origin of the log, e.g. file name + * config - properties from the config section for this plugin + * data - the log message as string + * callback - callback function (err, data). + */ +function parseK8sFileName (sourceName) { + /** + * SAMPLE sourceName * + * ***************** * + * sourceName: /var/log/containers/app-77b4d5595b-hmjxs_default_app-80209fd578c6be842b5b8a2d6389227ccab0196b7b658bd245eed4767c9b843c.log + * fileName: app-77b4d5595b-hmjxs_default_app-80209fd578c6be842b5b8a2d6389227ccab0196b7b658bd245eed4767c9b843c.log + * meta: { + * 0: app-77b4d5595b-hmjxs, // pod + * 1: default // namespace + * 2: app-80209fd578c6be842b5b8a2d6389227ccab0196b7b658bd245eed4767c9b843c.log // container with .log suffix + * } + */ + + // cut path from /var/log/containers/__-.log + // Reference: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/node/kubelet-cri-logging.md + const index = sourceName.lastIndexOf('/') + const fileName = sourceName.substr(index + 1, sourceName.length) + const meta = fileName.split('_') + const info = {} + + if (meta.length === 3) { + const { 0: name, 1: namespace, 2: containerWithLogSuffix } = meta + info.kubernetes = { + pod: { + name, + container: {} + }, + namespace + } + + const positionOfNameAndIdSeparator = containerWithLogSuffix.lastIndexOf('-') + const positionOfDotLog = containerWithLogSuffix.indexOf('.') + const containerId = containerWithLogSuffix.substring( + positionOfNameAndIdSeparator + 1, + positionOfDotLog + ) + const containerName = containerWithLogSuffix.substring(0, index) + + if (containerId) { + info.kubernetes.pod.container.id = containerId + } + if (containerName) { + info.kubernetes.pod.container.name = containerName + } + } + return info +} + +module.exports = function (context, config, data, callback) { + try { + const sections = data.split(containerdSplitRegexp) + + if (sections && sections.length === 6) { + const k8sInfo = parseK8sFileName(context.sourceName) + const timestamp = sections[1] + const streamName = sections[2] + const streamFlag = sections[3] + const logLine = sections[4] + + if (timestamp && streamName && streamFlag) { + k8sInfo['@timestamp'] = new Date(timestamp) + k8sInfo.streamName = streamName + k8sInfo.streamFlag = streamFlag + + const sourceName = context.sourceName + if (sources[sourceName] === undefined) { + sources[sourceName] = {} + } + sources[sourceName].streamFlag = k8sInfo.streamFlag + + // if it is a partial return and wait for the next chunk + if (sources[sourceName].streamFlag === 'P') { + if (sources[sourceName].logLines === undefined) { + sources[sourceName].logLines = [] + } + + sources[sourceName].logLines.push(logLine) + sources[sourceName].previousStreamFlag = 'P' + + return callback(null, null) + } + + // if it is the final chunk of the partial log join it and ship it + if ( + sources[sourceName].streamFlag === 'F' && + sources[sourceName].previousStreamFlag === 'P' + ) { + sources[sourceName].logLines.push(logLine) + const joinedLogLine = sources[sourceName].logLines.join(' ') + delete sources[sourceName] + + // a special property in context object to propagate fields to + // the parsed object after parsing -> all logs will be enriched k8s metadata + context.enrichEvent = k8sInfo + return callback(null, joinedLogLine) + } + + // if it is a full log line, enrich it, and send as is + if (sources[sourceName].streamFlag === 'F') { + // a special property in context object to propagate fields to + // the parsed object after parsing -> all logs will be enriched k8s metadata + context.enrichEvent = k8sInfo + return callback(null, logLine) + } + } + + return callback(null, logLine) + } + return callback(null, data) + } catch (err) { + console.error(err) + return callback(null, data) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/aws-ecs.js b/node_modules/@sematext/logagent/lib/plugins/input/aws-ecs.js new file mode 100644 index 00000000..f739ee99 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/aws-ecs.js @@ -0,0 +1,238 @@ +const consoleLogger = require('../../util/logger.js') +const http = require('http') +const throng = require('throng') +const extractTokenRegEx = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/ +const tokenFormatRegEx = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ +const TokenBlacklist = require('../../util/token-blacklist.js') +const zlib = require('zlib') + +class AwsEcs { + constructor (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.tokenBlackList = new TokenBlacklist(eventEmitter) + if (config.workers) { + this.config.workers = config.workers + } else { + this.config.workers = 0 + } + } + + start () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startAwsEcs.bind(this) + ) + } else { + this.startAwsEcs(1) + } + } + + stop (cb) { + cb() + } + + emitEvent (log, token) { + this.addTags(log) + const context = { + name: 'ecs', + sourceName: 'ecs' + } + if (token) { + context.index = token + } + this.eventEmitter.emit('data.object', log, context) + } + + addTags (log) { + if (this.config.tags === undefined) { + return + } + const keys = Object.keys(this.config.tags) + for (let i = 0; i < keys.length; i++) { + // avoid setting _index when passed in URL + if (log[keys[i]] === undefined) { + log[keys[i]] = this.config.tags[keys[i]] + } + } + } + + getHttpServer (aport, handler) { + let _port = aport || process.env.PORT || 6666 + if (aport === true) { + _port = process.env.PORT + } + + let server = http.createServer(handler) + // Increase the connection timeout to equal the Nginx Ingress timeout of 1min. + server.on('connection', socket => socket.setTimeout(60 * 1000)) + + try { + const bindAddress = this.config.bindAddress || '0.0.0.0' + server = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (HTTP ECS): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use ECS (' + _port + '): ' + err) + } + } + + parseSourceName (headers) { + if (!!headers && !!headers.sourcename) { + return headers.sourcename + } + } + + parseRes (headers, body, token) { + if (body.length === 0) { + return + } + const self = this + const docs = JSON.parse(body) + if (docs && docs.length > 0) { + for (let i = 0; i < docs.length; i++) { + const log = docs[i] + log['@timestamp'] = new Date() + delete log.date + log.message = log.log + delete log.log + + const sourceName = self.parseSourceName(headers) + if (sourceName) { + log.sourceName = sourceName + } + + self.emitEvent(log, token) + } + } else { + // unknow structure, let's index the doc to ease trouble shooting + self.emitEvent(docs, token) + } + } + + HttpHandler (req, res) { + try { + const self = this + const path = req.url.split('/') + let token = null + let bodyIn = '' + const buffer = [] + + if (self.config.useIndexFromUrlPath === true && path.length > 1) { + if (path[1] && path[1].length > 31 && tokenFormatRegEx.test(path[1])) { + const match = path[1].match(extractTokenRegEx) + if (match && match.length > 1) { + token = match[1] + } + } else if (path[1] === 'health' || path[1] === 'ping') { + res.statusCode = 200 + res.end('ok\n') + return + } + } + if ( + (self.config.useIndexFromUrlPath === true && !token) || + self.tokenBlackList.isTokenInvalid(token) + ) { + res.statusCode = self.config.invalidTokenStatus || 403 + res.end(`invalid logs token in url ${req.url}`) + return + } + + const isGzip = req.headers['content-encoding'] === 'gzip' + // if the JSON content is gzipped this will unzip it and parse it into a stringified JSON string + if (isGzip) { + const gunzip = zlib.createGunzip() + req.pipe(gunzip) + + gunzip.on('data', function onGzipHandler (data) { + buffer.push(data.toString()) + }) + gunzip.on('end', function endGzipHandler () { + try { + const body = buffer.join('') + self.parseRes(req.headers, body, token) + } catch (err) { + if (self.config.debug) { + consoleLogger.error('Error in ECS HttpHandler: ' + err) + } + + res.writeHead(500, { 'Content-Type': 'text/plain' }) + res.end(`Invalid gzip input: ${err}\n`) + return + } + // send response to client + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + + return + } else { + req.on('data', function onHandler (data) { + bodyIn += String(data) + }) + req.on('end', function endHandler () { + try { + self.parseRes(req.headers, bodyIn, token) + } catch (err) { + if (self.config.debug) { + consoleLogger.error('Error in ECS HttpHandler: ' + err) + } + + res.writeHead(500, { 'Content-Type': 'text/plain' }) + res.end(`Invalid json input: ${err}\n`) + return + } + // send response to client + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + } + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in ECS HttpHandler: ' + err) + } + } + + startAwsEcs (id) { + this.getHttpServer(Number(this.config.port), this.HttpHandler.bind(this)) + let exitInProgress = false + const terminate = function terminate (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop ECS HTTP worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) + } +} + +module.exports = AwsEcs diff --git a/node_modules/@sematext/logagent/lib/plugins/input/azure-event-hub.js b/node_modules/@sematext/logagent/lib/plugins/input/azure-event-hub.js new file mode 100644 index 00000000..6e44ca8b --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/azure-event-hub.js @@ -0,0 +1,101 @@ +'use strict' +const { EventHubConsumerClient, latestEventPosition } = require('@azure/event-hubs') +const consoleLogger = require('../../util/logger.js') +/** + * + * config example: + * module: azure-event-hub + * name: hub1 + * endpoint: Endpoint=sb://sematextevents.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=oahU9gjxqXvIpvJbOOU/UiTI+cyTY1kKqib43jMXnMQ= + * consumerGroup: '$Default' + * bodyField: body + * + **/ +function InputAzureEventhub (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + if (!this.config.bodyField) { + this.config.bodyField = 'body' + } + if (!this.config.consumerGroup) { + this.config.consumerGroup = '$Default' + } + this.client = new EventHubConsumerClient( + this.config.consumerGroup || '$Default', + config.endpoint, + config.name + ) +} + +InputAzureEventhub.prototype.start = function () { + this.startAsync.bind(this)() +} + +InputAzureEventhub.prototype.startAsync = async function () { + var context = { + name: 'input.azure.eventhub', + sourceName: + this.config.sourceName || this.config.name || 'input.azure.eventhub', + consumerGroup: this.config.consumerGroup || '$Default' + } + var eventEmitter = this.eventEmitter + const self = this + async function handleEvents (events, eventContext) { + for (var i = 0; i < events.length; i++) { + self.lastOffset = events[i].offset + var msg = { + // eventContext: eventContext + } + if (events[i].enqueuedTimeUtc) { + msg['@timestamp'] = events[i].enqueuedTimeUtc + } + msg[self.config.bodyField] = events[i].body + if (events[i].body && events[i].body.records) { + for (var k = 0; k < events[i].body.records.length; k++) { + var tmp = events[i].body.records[k] + tmp['@timestamp'] = events[i].enqueuedTimeUtc + eventEmitter.emit('data.object', tmp, context) + } + } else { + eventEmitter.emit('data.object', msg, context) + } + } + } + const partitionIds = await this.client.getPartitionIds() + this.subscriptions = [] + const subscriberHandlers = { + processEvents: handleEvents, + processError: async err => { + consoleLogger.error('Azure Error: ' + err) + } + } + const subscriberOptions = { + eventPosition: latestEventPosition + } + for (var p = 0; p < partitionIds.length; p++) { + this.subscriptions.push( + this.client.subscribe( + partitionIds[p], + subscriberHandlers, + subscriberOptions + ) + ) + } +} + +InputAzureEventhub.prototype.stop = function (cb) { + this.stopAsync() +} + +InputAzureEventhub.prototype.stopAsync = async function (cb) { + if (this.subscriptions) { + this.subscriptions.forEach(async function (sub) { + await sub.close() + }) + } + if (cb) { + cb() + } +} + +module.exports = InputAzureEventhub diff --git a/node_modules/@sematext/logagent/lib/plugins/input/cassandra.js b/node_modules/@sematext/logagent/lib/plugins/input/cassandra.js new file mode 100644 index 00000000..e835041e --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/cassandra.js @@ -0,0 +1,119 @@ +'use strict' +const cassandra = require('cassandra-driver') +const momenttz = require('moment-timezone') +const consoleLogger = require('../../util/logger.js') +const distance = cassandra.types.distance + +function InputCassandra (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.started = false + var distanceLocal = config.pooling.coreConnectionsPerHost.distanceLocal + var distanceRemote = config.pooling.coreConnectionsPerHost.distanceRemote + + var contatPoints = config.server.host.split(',') + this.client = new cassandra.Client({ + contactPoints: contatPoints, + keyspace: config.server.keyspace, + pooling: { + coreConnectionsPerHost: { + [distance.local]: distanceLocal, + [distance.remote]: distanceRemote + } + } + }) + if (this.config.interval < 1) { + this.config.interval = 1 + } +} + +InputCassandra.prototype.queryResultCb = function (err, result) { + if (!err) { + if (this.debug) { + consoleLogger.error( + this.context.queryTime, + this.context.sourceName + ': ' + this.context.sql + ) + } + var rows = result.rows + for (var i = 0; i < rows.length; i++) { + if (!rows[i]['@timestamp']) { + rows[i]['@timestamp'] = new Date() + } + rows[i].logSource = this.context.sourceName + this.eventEmitter.emit('data.object', rows[i], this.context) + } + } else { + this.eventEmitter.emit('error', err) + } +} +InputCassandra.prototype.runQuery = function () { + if (!this.queryTime) { + this.queryTime = new Date() + } + for (var i = 0; i < this.config.queries.length; i++) { + var dateString = this.queryTime + .toISOString() + .slice(0, 19) + .replace('T', ' ') + if (this.config.queryTimezone && this.config.queryTimeFormat) { + dateString = momenttz(this.queryTime) + .tz(this.config.queryTimezone) + .format(this.queryTimeFormat) + } + var tmpSqlStatement = this.config.queries[i].sql.replace( + /\$queryTime/g, + dateString + ) + var context = { + sourceName: this.config.queries[i].sourceName, + sql: tmpSqlStatement, + queryTime: this.queryTime + } + this.queryTime = new Date() + this.query( + tmpSqlStatement, + this.queryResultCb.bind({ + eventEmitter: this.eventEmitter, + context: context, + debug: this.config.debug + }) + ) + } +} + +InputCassandra.prototype.start = function () { + if (!this.started) { + this.started = true + this.intervalID = setInterval( + this.runQuery.bind(this), + this.config.interval * 1000 + ) + } +} + +InputCassandra.prototype.stop = function () { + if (this.started) { + this.started = false + clearInterval(this.intervalID) + this.client.shutdown + } +} + +InputCassandra.prototype.query = function (csql, cb) { + var self = this + self.client + .connect() + .then(function () { + return self.client.execute(csql, { prepare: true }) + }) + .then(function (result) { + cb(null, result) + }) + .catch(function (err) { + console.error('error query', err) + return + }) +} + +module.exports = InputCassandra diff --git a/node_modules/@sematext/logagent/lib/plugins/input/docker/docker.js b/node_modules/@sematext/logagent/lib/plugins/input/docker/docker.js new file mode 100644 index 00000000..d716b2eb --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/docker/docker.js @@ -0,0 +1,213 @@ +'use strict' +const loghose = require('docker-loghose') +const through = require('through2') +const dockerInspectHelper = require('./dockerInspect.js') +const consoleLogger = require('../../../util/logger.js') +const ansiEscapeRegEx = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g +const dotRegex = /\./g +const TRUE_REGEX = /true/i +// The run.sh sets both LOGSENE_ENABLED_DEFAULT and LOGS_ENABLED_DEFAULT to TRUE by default. +// Users should set either of these two to FALSE to disable logging by default for all containers. +// This means you need to use whitelisting to enable logging for certain containers. +// In the ENV for those containers set 'LOGS_ENABLED=true' or 'LOGSENE_ENABLED=true'. +// const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test((process.env.LOGSENE_ENABLED_DEFAULT && process.env.LOGS_ENABLED_DEFAULT) || 'true') +const LOGSENE_ENABLED_DEFAULT = TRUE_REGEX.test( + process.env.LOGSENE_ENABLED_DEFAULT +) +const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test(process.env.LOGS_ENABLED_DEFAULT) +const FINAL_LOGS_ENABLED_DEFAULT = + LOGSENE_ENABLED_DEFAULT && LOGS_ENABLED_DEFAULT + +var ignoreLogsPattern = null +var removeAnsiEscapeSeq = true +var dockerInspectCache = {} + +function InputDockerSocket (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + if (config.REMOVE_ANSI_ESCAPE_SEQ) { + process.env.REMOVE_ANSI_ESCAPE_SEQ = config.REMOVE_ANSI_ESCAPE_SEQ + } + if (process.env.REMOVE_ANSI_ESCAPE_SEQ === 'disabled') { + removeAnsiEscapeSeq = false + } + if (process.env.IGNORE_LOGS_PATTERN) { + ignoreLogsPattern = new RegExp(process.env.IGNORE_LOGS_PATTERN) + } + if (config.socket && config.socket.indexOf('/') === 0) { + config.socket = 'unix://' + config.socket + } + if (!config.socket) { + config.socket = 'unix://var/run/docker.sock' + } + if (config.socket && !process.env.DOCKER_HOST) { + process.env.DOCKER_HOST = config.socket + } + if (!config.labelFilter && !process.env.TAGGING_LABELS) { + // collect docker + config.labelFilter = 'com.docker.*,io.kubernetes.*,annotation.io.*' + } + if (config.labelFilter && !process.env.TAGGING_LABELS) { + process.env.TAGGING_LABELS = config.labelFilter + } + this.opts = { + json: false, + newline: true, + docker: null, + events: null, + includeCurrentContainer: false, + // the following options limit the containers being matched + // so we can avoid catching logs for unwanted containers + matchByName: process.env.MATCH_BY_NAME || config.MATCH_BY_NAME, + matchByImage: process.env.MATCH_BY_IMAGE || config.MATCH_BY_IMAGE, + skipByName: process.env.SKIP_BY_NAME || config.SKIP_BY_NAME, + skipByImage: + process.env.SKIP_BY_IMAGE || config.SKIP_BY_IMAGE || 'sematext/.*agent.*', + attachFilter: function (id, info) { + var dockerInfo = dockerInspectHelper.getLogseneEnabled(info) + if (dockerInfo) { + var cid = id.substr(0, 12) + dockerInspectCache[cid] = dockerInfo + dockerInfo.taggingLabels = getTaggingLabels(dockerInfo) + } + // filter via k8s annotations + // in k8s we have to collect all logs and detach log streams + // later once POD events are handled. + if ( + FINAL_LOGS_ENABLED_DEFAULT === false && + process.env.KUBERNETES_SERVICE_HOST !== undefined + ) { + // LA running in k8s environment + return true + } else { + return dockerInfo.LOGSENE_ENABLED === true + } + } + } + // close log stream if any output filter like kubernetes-enrichment + // emits the 'dropLogsRequest' event or collectLogsEvent + var self = this + eventEmitter.on('dropLogsRequest', function (context, data) { + if (self.lh) { + if (self.config.debug) { + consoleLogger.log( + `Docker dropLogsRequest: disable log stream for ${context.container_name} ${context.container_id}` + ) + } + // self.lh.detachContainer(context.container_id) + self.lh.detachContainer(context.container_long_id) + } + }) + eventEmitter.on('collectLogsRequest', function (context, data) { + // todo make PR for docker-loghose to expose function attachContainer + if (self.lh && self.lh.attachContainer) { + if (self.config.debug) { + consoleLogger.log( + `collectLogsRequest: enable log stream for ${context.container_name} ${context.container_id}` + ) + } + // self.lh.attachContainer(context.container_id) + self.lh.attachContainer(context.container_long_id) + } + }) +} + +function getTaggingLabels (dockerInspect) { + if (dockerInspect && dockerInspect.tags) { + // Elasticsearch 5 does not support dots in field names (for String fields) + // Dots would be interpreted as object properties, which could cause errors during indexing + var tags = {} + var keys = Object.keys(dockerInspect.tags) + if (keys.length === 0) { + return null + } + for (var i = 0; i < keys.length; i++) { + // replace dots with underscore and create new tag list + var elasticsearchCompliantFieldName = keys[i].replace(dotRegex, '_') + tags[elasticsearchCompliantFieldName] = dockerInspect.tags[keys[i]] + } + return tags + } else { + return null + } +} + +InputDockerSocket.prototype.start = function () { + if (!process.env.REMOVE_ANSI_ESCAPE_SEQ) { + process.env.REMOVE_ANSI_ESCAPE_SEQ = 'enabled' + } + this.connect() +} + +InputDockerSocket.prototype.stop = function (cb) { + cb() +} + +InputDockerSocket.prototype.logLine = function (messageText, data, next) { + var logContext = { + sourceName: data.image + '_' + data.name + '_' + data.id, + image: data.image, + container_id: data.id, + container_long_id: data.long_id, + container_name: data.name, + time: data.time, + enrichEvent: { + // make sure each docker log gets timestamp from docker engine + '@timestamp_docker_engine': new Date(data.time) + } + } + var dockerInspect = dockerInspectCache[data.id] + if (dockerInspect) { + logContext.dockerInspect = dockerInspect + if (dockerInspect.taggingLabels) { + logContext.labels = dockerInspect.taggingLabels + } + } + var line = removeAnsiEscapeSeq + ? messageText.replace(ansiEscapeRegEx, '') + : messageText + this.eventEmitter.emit('data.raw', line, logContext) +} + +InputDockerSocket.prototype.connect = function () { + var self = this + var options = self.opts + self.logStream = through.obj(function (chunk, enc, cb) { + if (!chunk.line) { + cb() + return + } + setImmediate(function () { + // self.debugLog('Logs from Docker API:', chunk) + if (ignoreLogsPattern && ignoreLogsPattern.test(chunk.line)) { + return cb() + } + self.logLine(chunk.line, chunk) + cb() + }) + }) + try { + this.lh = loghose(options) + this.lh.on('error', this.reconnect.bind(this)) + self.logStream.on('error', this.reconnect.bind(this)) + this.lh.pipe(self.logStream).on('error', this.reconnect.bind(this)) + } catch (ex) { + consoleLogger.error('reconnect to docker socket in 10 sec ...') + setTimeout(this.reconnect.bind(this), 10000) + } +} + +InputDockerSocket.prototype.reconnect = function (err) { + var self = this + consoleLogger.log('error', 'Error in log stream: ' + err) + try { + consoleLogger.log('info', 'reconnect to docker.sock ') + self.logStream = null + self.connect.bind(self)() + } catch (ex) { + consoleLogger.log('error', 'reconnect to docker.sock failed') + // consoleLogger.log('error', ex) + } +} + +module.exports = InputDockerSocket diff --git a/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerEvents.js b/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerEvents.js new file mode 100644 index 00000000..b1277021 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerEvents.js @@ -0,0 +1,114 @@ +var DockerEvents = require('docker-events') +var os = require('os') +var Docker = require('dockerode') +var consoleLogger = require('../../../util/logger.js') + +function DockerEventInput (config, emitter) { + this.config = config + this.emitter = emitter + try { + this.docker = new Docker() + this.dockerEvents = new DockerEvents({ docker: this.docker }) + } catch (dockerError) { + consoleLogger.error('Error connecting to Docker socket: ' + dockerError) + } +} + +DockerEventInput.prototype.start = function () { + var self = this + this.forwardEvent = function (dockerEvent) { + try { + if (dockerEvent.Type) { + if (!dockerEvent.status) { + dockerEvent.status = + dockerEvent.Type + ' ' + (dockerEvent.Action || '') + } + if (dockerEvent.Actor && dockerEvent.Actor.Attributes) { + if (dockerEvent.Actor.Attributes.container) { + dockerEvent.id = dockerEvent.Actor.Attributes.container + } + if ( + dockerEvent.Actor.Attributes.name && + dockerEvent.Type !== 'network' + ) { + dockerEvent.containerName = dockerEvent.Actor.Attributes.name + } + if (dockerEvent.Actor.Attributes.image) { + dockerEvent.imageName = dockerEvent.Actor.Attributes.image + } + dockerEvent.message = '' + Object.keys(dockerEvent.Actor.Attributes).forEach(function (key, i) { + if (i > 0) { + dockerEvent.message += ', ' + } + dockerEvent.message += key + ':' + dockerEvent.Actor.Attributes[key] + }) + } + } + var msgStr = + 'Docker Event: ' + + dockerEvent.status + + ' ' + + (dockerEvent.containerName || dockerEvent.from || '') + + ' ' + + (dockerEvent.id || '') + + ' ' + + (dockerEvent.message || '') + var msg = { + dockerEventType: '' + dockerEvent.Type, + dockerEventAction: '' + dockerEvent.Action, + dockerEventFrom: '' + dockerEvent.from, + dockerEventImageName: dockerEvent.imageName, + message: msgStr, + image_name: dockerEvent.from, + container_id: dockerEvent.id, + container_name: dockerEvent.containerName, + dockerEventHost: process.env.SPM_REPORTED_HOSTNAME || os.hostname(), + tags: [ + 'docker', + process.env.SPM_REPORTED_HOSTNAME || + process.env.HOSTNAME || + os.hostname(), + dockerEvent.status + ] + } + if (dockerEvent.id && typeof dockerEvent.id === 'string') { + msg.tags.push(dockerEvent.id.substring(0, 12)) + } + if (self.logsene) { + self.logsene.log('info', msgStr, msg) + } + var type = dockerEvent.status || 'docker' + type = type.replace(/[\W]/gi, '_') + if (/exec_.*/.test(type)) { + type = 'exec' + } + msg.title = + 'docker ' + + dockerEvent.status + + ' ' + + (dockerEvent.containerName || dockerEvent.imageName || '') + self.emitter.emit('data.parsed', msg) + } catch (err) { + console.error(err) + } + } + + this.dockerEvents.on('connect', function () { + self.dockerEvents.on('_message', self.forwardEvent) + }) + this.dockerEvents.on('disconnect', function () { + self.dockerEvents.removeListener('_message', self.forwardEvent) + }) + this.dockerEvents.on('error', function (err) { + consoleLogger.error('Error connecting to Docker socket: ' + err) + }) + this.dockerEvents.start() + return this +} + +DockerEventInput.prototype.stop = function () { + this.dockerEvents.stop() +} + +module.exports = DockerEventInput diff --git a/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerInspect.js b/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerInspect.js new file mode 100644 index 00000000..bdefccd9 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/docker/dockerInspect.js @@ -0,0 +1,309 @@ +#!/usr/bin/env node +var Docker = require('dockerode') +var docker = new Docker() +var minimatch = require('minimatch') +var consoleLogger = require('../../../util/logger.js') +var parser = require('../../../util/parser.js') + +var dockerInfo = {} +var tagIds = null + +const TRUE_REGEX = /true/i +// The run.sh sets both LOGSENE_ENABLED_DEFAULT and LOGS_ENABLED_DEFAULT to TRUE by default. +// Users should set either of these two to FALSE to disable logging by default for all containers. +// This means you need to use whitelisting to enable logging for certain containers. +// In the ENV for those containers set 'LOGS_ENABLED=true' or 'LOGSENE_ENABLED=true'. +// const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test((process.env.LOGSENE_ENABLED_DEFAULT && process.env.LOGS_ENABLED_DEFAULT) || 'true') +const LOGSENE_ENABLED_DEFAULT = TRUE_REGEX.test( + process.env.LOGSENE_ENABLED_DEFAULT +) +const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test(process.env.LOGS_ENABLED_DEFAULT) +const FINAL_LOGS_ENABLED_DEFAULT = + LOGSENE_ENABLED_DEFAULT && LOGS_ENABLED_DEFAULT + +docker.info(function dockerInfoHandler (err, data) { + if (err) { + console.error(err) + } + if (data) { + // set Docker Hostname for logsene-js + if (data.Name && process.env.SPM_REPORTED_HOSTNAME === undefined) { + process.env.SPM_REPORTED_HOSTNAME = data.Name + } + dockerInfo = data + // SPM_MONITOR_TAGS is evaluated by spm-sender before it sends metrics to SPM + if (!process.env.SPM_MONITOR_TAGS) { + if (data.Labels && data.Labels.length > 0) { + process.env.SPM_MONITOR_TAGS = data.Labels.join(',') + } + } else { + if (data.Labels && data.Labels.length > 0) { + process.env.SPM_MONITOR_TAGS = + process.env.SPM_MONITOR_TAGS + ',' + data.Labels.join(',') + } + } + } +}) + +function getEnvVar (name, list) { + if (!list) { + return null + } + if (!(list instanceof Array)) { + var keys = Object.keys(list) + for (var k = 0; k < keys.length; k++) { + if (keys[k] === name) { + return list[keys[k]].trim() + } + } + } else { + for (var i = 0; i < list.length; i++) { + if (list[i].indexOf(name) > -1) { + var rv = list[i].split('=') + if (rv && rv.length > 1 && rv[0] === name) { + return rv[1] + } + } + } + } + return null +} + +function getValue (name, list, info) { + if (!list) { + return null + } + if (!(list instanceof Array)) { + var keys = Object.keys(list) + for (var k = 0; k < keys.length; k++) { + if (minimatch(keys[k], name)) { + if (!info.tags) { + info.tags = {} + } + info.tags[keys[k]] = list[keys[k]] + } + } + } else { + for (var i = 0; i < list.length; i++) { + if (minimatch(list[i], name)) { + var value = list[i].split('=') + if (value.length > 1) { + if (!info.tags) { + info.tags = {} + } + info.tags[value[0]] = value[1] + } + } + } + } + + return null +} + +function extractLoggingTags (labels, env, info) { + if (tagIds === null) { + if (process.env.TAGGING_LABELS) { + tagIds = process.env.TAGGING_LABELS.split(',') + } else { + tagIds = ['com.docker.*', 'io.kubernetes.*', 'annotation.io.*'] + } + } + if (tagIds.length > 0) { + for (var i = 0; i < tagIds.length; i++) { + getValue(tagIds[i] + '*', labels, info) + getValue(tagIds[i] + '*', env, info) + getValue(tagIds[i] + '*', dockerInfo.Labels, info) + } + } +} + +function getLogseneEnabled (info) { + let token = null + + extractLoggingTags(info.Config.Labels, info.Config.Env, info) + + // tag container info with LOGSENE_ENABLED flag + // check for Labels + if (info.Config && info.Config.Labels) { + info.LOGSENE_ENABLED = + info.Config.Labels.LOGSENE_ENABLED || + info.Config.Labels.LOGS_ENABLED || + null + } + + if (info.LOGSENE_ENABLED === null) { + // console.log('Container ' + info.Id + ' ' + info.Name + ' setting LOGS_ENABLED not specified') + // set the desired default from Logagent config environment + + // no Label set, check for ENV var + const LOGSENE_ENABLED = getEnvVar('LOGSENE_ENABLED', info.Config.Env) + const LOGS_ENABLED = getEnvVar('LOGS_ENABLED', info.Config.Env) + + if (LOGSENE_ENABLED !== null) { + info.LOGSENE_ENABLED = LOGSENE_ENABLED + } + if (LOGS_ENABLED !== null) { + info.LOGSENE_ENABLED = LOGS_ENABLED + } + + if (info.LOGSENE_ENABLED === null) { + info.LOGSENE_ENABLED = FINAL_LOGS_ENABLED_DEFAULT + } + } + + if ( + info.LOGSENE_ENABLED === '0' || + info.LOGSENE_ENABLED === 'false' || + info.LOGSENE_ENABLED === 'no' || + info.LOGSENE_ENABLED === false + ) { + consoleLogger.log( + 'Container ' + + info.Id + + ' ' + + info.Name + + ' setting LOGSENE_ENABLED=false' + ) + info.LOGSENE_ENABLED = false + } else { + info.LOGSENE_ENABLED = true + consoleLogger.log( + 'Container ' + info.Id + ' ' + info.Name + ' setting LOGSENE_ENABLED=true' + ) + } + + if (info.Config && info.Config.Labels && info.Config.Labels.LOGSENE_TOKEN) { + token = info.Config.Labels.LOGSENE_TOKEN + info.LOGSENE_TOKEN = token + } else { + token = getEnvVar('LOGSENE_TOKEN', info.Config.Env) + } + if (!token) { + if (info.Config && info.Config.Labels && info.Config.Labels.LOGS_TOKEN) { + token = info.Config.Labels.LOGS_TOKEN + info.LOGSENE_TOKEN = token + } else { + token = getEnvVar('LOGS_TOKEN', info.Config.Env) + } + } + info.LOGSENE_TOKEN = + token || process.env.LOGS_TOKEN || process.env.LOGSENE_TOKEN + + // get optional log receiver URLs + let logsReceivers = null + if ( + info.Config && + info.Config.Labels && + info.Config.Labels.LOGS_RECEIVER_URLS + ) { + logsReceivers = info.Config.Labels.LOGS_RECEIVER_URLS + } else { + logsReceivers = getEnvVar('LOGS_RECEIVER_URLS', info.Config.Env) + } + if (logsReceivers) { + info.LOGS_RECEIVER_URLS = parser.parseReceiverList(logsReceivers) + } + + // get optional log receiver + if ( + info.Config && + info.Config.Labels && + info.Config.Labels.LOGS_RECEIVER_URL + ) { + info.LOGS_RECEIVER_URL = info.Config.Labels.LOGS_RECEIVER_URL + } else { + info.LOGS_RECEIVER_URL = getEnvVar('LOGS_RECEIVER_URL', info.Config.Env) + } + + // get optional logs target name + if ( + info.Config && + info.Config.Labels && + info.Config.Labels.LOGS_DESTINATION + ) { + info.LOGS_DESTINATION = info.Config.Labels.LOGS_DESTINATION + } else { + info.LOGS_DESTINATION = getEnvVar('LOGS_DESTINATION', info.Config.Env) + } + + return info +} + +function getLogseneToken (err, info) { + let token = null + if (!err) { + extractLoggingTags(info.Config.Labels, info.Config.Env, info) + // tag container info with LOGSENE_ENABLED flag + // check for Labels + if ( + info.Config && + info.Config.Labels && + info.Config.Labels.LOGSENE_ENABLED !== undefined + ) { + info.LOGSENE_ENABLED = info.Config.Labels.LOGSENE_ENABLED + } else { + // no Label set, check for ENV var + info.LOGSENE_ENABLED = getEnvVar('LOGSENE_ENABLED', info.Config.Env) + } + if (info.LOGSENE_ENABLED === null) { + // no Label or env var set, use LOGS_ENABLED_DEFAULT + // console.log('Container ' + info.Id + ' ' + info.Name + ' setting LOGSENE_ENABLED not specified') + // set the desired default from Logagent config environment + info.LOGSENE_ENABLED = FINAL_LOGS_ENABLED_DEFAULT + } + + if ( + info.LOGSENE_ENABLED === '0' || + info.LOGSENE_ENABLED === 'false' || + info.LOGSENE_ENABLED === 'no' + ) { + consoleLogger.log( + 'Container ' + + info.Id + + ' ' + + info.Name + + ' setting LOGSENE_ENABLED=false' + ) + info.LOGSENE_ENABLED = false + } else { + info.LOGSENE_ENABLED = true + consoleLogger.log( + 'Container ' + + info.Id + + ' ' + + info.Name + + ' setting LOGSENE_ENABLED=true' + ) + } + if (info.Config && info.Config.Labels && info.Config.Labels.LOGSENE_TOKEN) { + token = info.Config.Labels.LOGSENE_TOKEN + info.LOGSENE_TOKEN = token + } else { + token = getEnvVar('LOGSENE_TOKEN', info.Config.Env) + } + } + if (info) { + info.LOGSENE_TOKEN = token || process.env.LOGSENE_TOKEN + info.dockerInfo = dockerInfo + this.callback(null, info) + } else { + this.callback(null, { + LOGSENE_TOKEN: process.env.LOGSENE_TOKEN, + id: this.container + }) + } +} + +function getLogseneTokenForContainer (id, cb) { + docker.getContainer(id).inspect( + getLogseneToken.bind({ + callback: cb, + container: id + }) + ) +} + +module.exports = { + getLogseneTokenForContainer: getLogseneTokenForContainer, + getLogseneEnabled: getLogseneEnabled +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchHttp.js b/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchHttp.js new file mode 100644 index 00000000..339bc0dc --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchHttp.js @@ -0,0 +1,239 @@ +var safeStringify = require('fast-safe-stringify') +var consoleLogger = require('../../util/logger.js') +var http = require('http') +var throng = require('throng') +const errResponse = + '{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: no requests added;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: no requests added;"},"status":400}' + +function InputElasticsearchHttp (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + if (config.workers) { + this.config.workers = config.workers + } else { + this.config.workers = 0 + } +} +InputElasticsearchHttp.prototype.start = function () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startElasticsearchHttp.bind(this) + ) + } else { + this.startElasticsearchHttp(1) + } +} + +InputElasticsearchHttp.prototype.stop = function (cb) { + cb() +} + +function createIndexCall (action, source, defaultIndex, defaultType) { + source._index = action._index || defaultIndex + source._type = action._type || defaultType + if (action._id) { + source._id = action._id + } + return source +} + +function isJson (str) { + try { + JSON.parse(str) + } catch (e) { + return false + } + return true +} + +InputElasticsearchHttp.prototype.getHttpServer = function (aport, handler) { + var _port = aport || process.env.PORT || 9200 + if (aport === true) { + _port = process.env.PORT + } + var server = http.createServer(handler) + try { + var bindAddress = this.config.bindAddress || '0.0.0.0' + server = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (http): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use (' + _port + '): ' + err) + } +} + +InputElasticsearchHttp.prototype.validateRequest = function (req, res) { + var path = req.url.split('/') + var result = { + defaultIndex: null, + defaultType: null, + isBulk: false, + isValid: true + } + if ( + /\/_nodes|\/_search|\/_cat|\/_count|\/_settings|\/_mapping|\/_aliases|\/_reindex|\/_cluster/.test( + req.url + ) + ) { + result.isValid = false + return result + } + if (path.length === 2) { + // post to /_bulk? + if (path[1] === '_bulk') { + result.isBulk = true + } + } + if (path.length === 3) { + // post to /indexName/_bulk? or POST to /index/type? + if (path[2] === '_bulk') { + result.isBulk = true + } else { + result.defaultType = path[2] + } + if (path[1]) { + result.defaultIndex = path[1] + } + } + if (path.length === 4) { + // post to /indexName/type/_bulk? + if (path[3] === '_bulk') { + result.isBulk = true + } + if (path[1]) { + result.defaultIndex = path[1] + } + if (path[2]) { + result.defaultType = path[2] + } + } + return result +} +InputElasticsearchHttp.prototype.elasticSearchHttpHandler = function ( + req, + res +) { + try { + var self = this + var reqInfo = self.validateRequest(req, res) + if (!reqInfo.isValid) { + return res.end(errResponse) + } + var bodyIn = '' + req.on('data', function (data) { + bodyIn += data + }) + + req.on('end', function endHandler () { + if (!reqInfo.isBulk) { + if (!bodyIn) { + return res.end() + } + // post to single + var msg = {} + try { + msg = JSON.parse(bodyIn) + } catch (err) { + consoleLogger.error('Invalid JSON: ' + bodyIn) + return + } + msg._index = reqInfo.defaultIndex + msg._type = reqInfo.defaultType + return self.eventEmitter.emit('data.object', msg, { + source: 'input-elasticsearch-http', + index: msg._index + }) + } + // process bulk data + var document = bodyIn.split('\n') + var offSet = 0 + var okResponse = { + took: 7, + errors: false, + items: [] + } + document.forEach(function (line) { + if (isJson(document[offSet])) { + var lineObj = JSON.parse(document[offSet]) + // create a factory to manage other action + if (lineObj.index) { + var source = JSON.parse(document[offSet + 1]) + offSet += 2 // each index request has 2 lines, one command + one document + var emitMsg = createIndexCall( + lineObj.index, + source, + reqInfo.defaultIndex, + reqInfo.defaultType + ) + var responseItem = { + index: { + result: 'created', + forced_refresh: false + } + } + responseItem._index = source._index + responseItem._type = source._type + responseItem._id = source._id + okResponse.items.push(responseItem) + self.eventEmitter.emit('data.object', emitMsg, { + source: 'input-elasticsearch-http', + index: lineObj.index._index + }) + } else { + consoleLogger.log('Command not supported yet: ' + document[offSet]) + offSet += 1 + } + } + }) + res.end(safeStringify(okResponse)) + }) + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in Elasticsearch HTTP: ' + err) + } +} + +InputElasticsearchHttp.prototype.startElasticsearchHttp = function (id) { + this.getHttpServer( + Number(this.config.port), + this.elasticSearchHttpHandler.bind(this) + ) + var exitInProgress = false + var terminate = function (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop Elasticsearch http worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) +} + +module.exports = InputElasticsearchHttp diff --git a/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchQuery.js b/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchQuery.js new file mode 100644 index 00000000..830765ff --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/elasticsearchQuery.js @@ -0,0 +1,118 @@ +'use strict' +var elasticsearch = require('elasticsearch') +var AWS = require('aws-sdk') + +/** + * Constructor called by logagent + * @config cli arguments and config entries + * @eventEmitter logent eventEmitter object + */ +function InputElasticsearchQuery (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter +} +module.exports = InputElasticsearchQuery +/** + * Plugin start function, called after constructor + * + */ +InputElasticsearchQuery.prototype.start = function () { + if (!this.started) { + this.started = true + var self = this + var runQuery = function () { + self.query() + } + if (this.config.interval && this.config.interval > 0) { + this.tid = setInterval(runQuery, this.config.interval * 1000) + } + runQuery() + } +} + +/** + * Plugin stop function, called when logagent terminates + * we close the server socket here. + */ +InputElasticsearchQuery.prototype.stop = function (cb) { + if (this.config.tid) { + clearInterval(this.tid) + } +} + +InputElasticsearchQuery.prototype.query = function () { + var self = this + var config = self.config + var client = null + var clientCfg = { + host: self.config.url, + log: self.config.log + } + var auth = config.auth + var awsConfigFile = config.awsConfigFile + if (config.awsEnabled) { + if (!config.auth && config.configFile.aws && config.configFile.aws.auth) { + auth = config.configFile.aws.auth + } + if ( + !config.awsConfigFile && + config.configFile.aws && + config.configFile.aws.awsConfigFile + ) { + awsConfigFile = config.configFile.aws.awsConfigFile + } + clientCfg.auth = auth + clientCfg.connectionClass = config.awsConfigFile + ? require('http-aws-es') + : undefined + clientCfg.awsConfig = AWS.config.loadFromPath(awsConfigFile) + } + client = new elasticsearch.Client(clientCfg) + if (self.config.query.index) { + var now = new Date() + self.config.query.index = self.config.query.index.replace( + /YYYY|MM|DD/g, + function (match) { + if (match === 'YYYY') { + return '' + now.getFullYear() + } + if (match === 'MM') { + return ('0' + (now.getMonth() + 1)).substr(-2) + } + if (match === 'DD') { + return ('0' + now.getDate()).substr(-2) + } + return match + } + ) + } + client + .search(self.config.query) + .then( + function (body) { + if (!body.hits) { + return + } + var hits = body.hits.hits + if (hits) { + var context = { + name: 'input.elasticsearch.query', + sourceName: self.config.sourceName || 'input.elasticsearch.query' + } + hits.forEach(function (result) { + var data = result + if (data._source) { + data = result._source + data._id = result._id + data._type = result._type + } + self.eventEmitter.emit('data.object', data, context) + }) + } + }, + function (error) { + console.trace(error.message) + } + ) + .catch(console.trace) +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/gelf.js b/node_modules/@sematext/logagent/lib/plugins/input/gelf.js new file mode 100644 index 00000000..fd9b924a --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/gelf.js @@ -0,0 +1,35 @@ +'use strict' + +var gelfserver = require('graygelf/server') +var safeStringify = require('fast-safe-stringify') + +function InputGELF (config, eventEmitter) { + this.config = config + this.config.port = config.port || 12100 + this.config.host = config.host || '0.0.0.0' + this.eventEmitter = eventEmitter +} +module.exports = InputGELF + +InputGELF.prototype.start = function () { + if (!this.started) { + this.createServer() + this.started = true + } +} +InputGELF.prototype.stop = function (cb) { + this.server.close(cb) +} +InputGELF.prototype.createServer = function () { + var self = this + this.server = gelfserver() + this.server.listen(this.config.port, this.config.host) + this.server._udp.on('message', function (buf, rinfo) { + self.source = rinfo.address + ':' + rinfo.port + }) + this.server.on('message', function (gelf) { + self.eventEmitter.emit('data.raw', safeStringify(gelf), { + sourceName: 'gelf-input : ' + self.source + }) + }) +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/influxHttp.js b/node_modules/@sematext/logagent/lib/plugins/input/influxHttp.js new file mode 100644 index 00000000..39faea1f --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/influxHttp.js @@ -0,0 +1,187 @@ +'use strict' +var consoleLogger = require('../../util/logger.js') +var throng = require('throng') +var http = require('http') +var URL = require('url') +const queryString = require('query-string') + +var influxParse = require('influx-line-protocol-parser') +function InputInfluxHttp (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + if (config.workers && config.workers > 0) { + this.config.workers = config.workers + } else { + this.config.workers = 1 + } +} + +InputInfluxHttp.prototype.start = function () { + consoleLogger.log('loading infux plugin') + if (this.config) { + throng( + { + workers: this.config.workers || this.WORKERS || 1, + lifetime: Infinity + }, + this.startServer.bind(this) + ) + } +} + +InputInfluxHttp.prototype.stop = function (cb) { + if (this.server) { + this.server.close(cb) + } +} +InputInfluxHttp.prototype.getHttpServer = function (aport, handler) { + var _port = aport || this.config.port || process.env.PORT || 8086 + if (aport === true) { + _port = process.env.PORT + } + var server = http.createServer(handler) + this.server = server + try { + server = server.listen(_port) + consoleLogger.log( + 'Logagent listening (http/influxdb interface): ' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use (' + _port + '): ' + err) + } +} + +InputInfluxHttp.prototype.startServer = function (id) { + this.getHttpServer(Number(this.config.port), this.httpHandler.bind(this)) + var exitInProgress = false + var terminate = function (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'stop influx worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) +} + +InputInfluxHttp.prototype.httpHandler = function (req, res) { + try { + var self = this + var url = URL.parse(req.url) + url.query = queryString.parse(url.query) + if (!/\/write/.test(req.url)) { + res.statusCode = 204 + return res.end() + } + var body = '' + req.on('data', function (data) { + body += data + }) + req.on('end', function endHandler () { + self.parse(body, url) + res.statusCode = 204 + res.end('Ok') + }) + } catch (err) { + consoleLogger.error('Error in influx input (http): ' + err) + } +} + +InputInfluxHttp.prototype.getTime = function (precision, timestamp) { + var time = null + switch (precision) { + case 'ns': + time = new Date(timestamp / 1000 / 1000) + break + case 'u': + time = new Date(timestamp / 1000) + break + case 'ms': + time = new Date(timestamp) + break + case 's': + time = new Date(timestamp * 1000) + break + case 'm': + time = new Date(timestamp * 1000 * 60) + break + case 'h': + time = new Date(timestamp * 1000 * 60 * 60) + break + default: + time = new Date() + break + } + return time +} + +InputInfluxHttp.prototype.parse = function (body, url) { + var lines = body.split('\n') + for (var i = 0; i < lines.length; i++) { + try { + var ir = influxParse(lines[i]) + var rv = { + measurement: ir.measurement, + timestamp: ir.timestamp, + '@timestamp': ir.timestamp + ? new Date(ir.timestamp / 1000 / 1000) + : new Date() + } + if (url.query && url.query['precision']) { + rv.precision = url.query['precision'] + rv['@timestamp'] = this.getTime(rv.precision, rv.timestamp) + } + if (ir.fields) { + ir.fields.forEach(function (f) { + Object.keys(f).forEach(function (key) { + rv[ir.measurement + '_' + key] = f[key] + }) + }) + } + if (ir.tags) { + rv.tags = {} + ir.tags.forEach(function (t) { + Object.keys(t).forEach(function (key) { + rv['tags'][key] = t[key] + }) + }) + } + if (url.query) { + rv.influxDbName = url.query['db'] + } + var context = { + name: 'input-influx-http', + sourceName: 'input-influx-http', + influxDbName: rv.influxDbName + } + if (rv.measurement) { + this.eventEmitter.emit('data.object', rv, context) + } + } catch (err) { + consoleLogger.error( + 'Error parsing data from influx: ' + err + ' body: ' + body + ) + } + } +} + +module.exports = InputInfluxHttp diff --git a/node_modules/@sematext/logagent/lib/plugins/input/journald-upload.js b/node_modules/@sematext/logagent/lib/plugins/input/journald-upload.js new file mode 100644 index 00000000..791256bc --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/journald-upload.js @@ -0,0 +1,326 @@ +const consoleLogger = require('../../util/logger.js') +const http = require('http') +const throng = require('throng') +const split = require('split2') +const createStreamThrottle = require('../../util/throttle') +const extractTokenRegEx = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/ +const tokenFormatRegEx = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ +const _SYSTEMD_UNIT = '_systemd_unit' +const SYSLOG_IDENTIFIER = 'syslog_identifier' +const TokenBlacklist = require('../../util/token-blacklist.js') +const keyValueFieldRegex = /^\S+=.+$/ // key=value +const cursorRegex = /^__CURSOR=/ +// const exportRecordRegex = /^(\S+)=(.+)$|^(\S+)$\n$\n([\S|\s]+)\n$/gm +class Parser { + constructor (emitEvent, token, removeFields) { + this.token = token + this.emitEvent = emitEvent + this.removeFields = removeFields + this.multiLineMode = false + this.log = {} + this.multiLineFieldValue = '' + this.multiLineFieldName = null + } + + isMultilineMode () { + return this.multiLineMode + } + + startMultilineField (data) { + if (!data) { + return + } + + this.multiLineMode = true + this.multiLineFieldName = data + this.multiLineFieldValue = '' + } + + appendToMultilineField (value) { + this.multiLineFieldValue += value + } + + addField (data) { + const index = data.indexOf('=') + const fieldName = data.substr(0, index).toLowerCase() + let value = data.substr(index + 1, data.length) + if (!isNaN(value)) { + value = Number(value) + } + if (fieldName.length > 0 && !this.removeFields[fieldName]) { + this.log[fieldName] = value + } + } + + endMultiLineField () { + this.multiLineMode = false + if (this.multiLineFieldName === null) { + return + } + this.log[this.multiLineFieldName] = this.multiLineFieldValue + this.multiLineFieldValue = '' + this.multiLineFieldName = null + } + + end () { + var log = this.log + this.multiLineMode = false + this.log = {} + this.multiLineFieldValue = '' + this.multiLineFieldName = null + return log + } + + getLog () { + return this.log + } + + // lines from http stream are pushed here + consume (data) { + // make sure that multiLine status ends with a new __CURSOR line + if (cursorRegex.test(data)) { + this.endMultiLineField() + } + // regular field: a=b + if ( + keyValueFieldRegex.test(data) && + data.length > 0 && + this.isMultilineMode() === false + ) { + this.addField(data) + return + } else if (data.length > 0 && !this.isMultilineMode()) { + // mulit-line field start + this.startMultilineField(data) + return + } + // multiline data + if (this.isMultilineMode() && data.length > 0) { + this.appendToMultilineField(`${data}\n`) + return + } + // end of multiline field + if ( + this.isMultilineMode() && + data.length === 0 && + this.multiLineFieldValue.length > 3 + ) { + this.endMultiLineField() + return + } + // end of a journal-log-entry + if (data.length === 0 && this.isMultilineMode() === false) { + this.emitEvent(this.end(), this.token) + } + } +} + +function JournaldUpload (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.removeFields = {} + this.tokenBlackList = new TokenBlacklist(eventEmitter) + // limit throughput per client + this.throughputPerClient = this.config.maxInputRate || 10 * 1024 * 1024 + if (config.useSematextCommonSchema === undefined) { + config.useSematextCommonSchema = true + } + if (config.parseMessageField === undefined) { + // try to parse logs using patterns.yml + config.parseMessageField = true + } + if (config.removeFields) { + for (var i = 0; i < config.removeFields.length; i++) { + this.removeFields[config.removeFields[i].toLowerCase()] = true + } + } + // set default filter + if (!config.systemdUnitFilter) { + config.systemdUnitFilter = { + include: /.*/i, + exlude: null + } + } + + if (config.workers) { + this.config.workers = config.workers + } else { + this.config.workers = 0 + } +} + +JournaldUpload.prototype.start = function () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startJournaldUpload.bind(this) + ) + } else { + this.startJournaldUpload(1) + } +} + +JournaldUpload.prototype.stop = function (cb) { + if (cb) { + cb() + } +} + +JournaldUpload.prototype.emitEvent = function (log, token) { + const systemdUnit = log[_SYSTEMD_UNIT] + const config = this.config + if (systemdUnit) { + if ( + config.systemdUnitFilter !== undefined && + config.systemdUnitFilter.include && + !config.systemdUnitFilter.include.test(systemdUnit) + ) { + return + } + if ( + config.systemdUnitFilter !== undefined && + config.systemdUnitFilter.exclude && + config.systemdUnitFilter.exclude.test(systemdUnit) + ) { + return + } + } else { + // ignore messages not from systemd + } + const context = { + sourceName: log[_SYSTEMD_UNIT] || log[SYSLOG_IDENTIFIER] || 'journald', + name: 'journald', + index: token + } + + if (Object.keys(log).length > 0) { + this.addTags(log) + this.eventEmitter.emit('data.object', log, context) + } +} + +JournaldUpload.prototype.addTags = function (log) { + if (this.config.tags === undefined) { + return + } + const keys = Object.keys(this.config.tags) + for (let i = 0; i < keys.length; i++) { + // avoid overwriting _index when passed in URL + if (log[keys[i]] === undefined) { + log[keys[i]] = this.config.tags[keys[i]] + } + } +} + +JournaldUpload.prototype.getHttpServer = function (aport, handler) { + var _port = aport || process.env.PORT || 9200 + if (aport === true) { + _port = process.env.PORT + } + var server = http.createServer(handler) + + // Increase the connection timeout to equal the Nginx Ingress timeout of 1min. + server.on('connection', socket => socket.setTimeout(60 * 1000)) + + try { + var bindAddress = this.config.bindAddress || '0.0.0.0' + server = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (http journald-upload): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use journald-upload (' + _port + '): ' + err) + } +} + +JournaldUpload.prototype.journaldHttpHandler = function (req, res) { + try { + this.config.useIndexFromUrlPath = true + const self = this + const path = req.url.split('/') + let token = null + + if (this.config.useIndexFromUrlPath === true && path.length > 1) { + if (path[1] && path[1].length > 31 && tokenFormatRegEx.test(path[1])) { + const match = path[1].match(extractTokenRegEx) + if (match && match.length > 1) { + token = match[1] + } + } else if (path[1] === 'health' || path[1] === 'ping') { + res.statusCode = 200 + res.end('ok\n') + return + } + } + + if ( + (this.config.useIndexFromUrlPath === true && !token) || + this.tokenBlackList.isTokenInvalid(token) + ) { + res.statusCode = this.config.invalidTokenStatus || 403 + res.end(`invalid logs token in url ${req.url}\n`) + return + } + + const parserState = new Parser(this.emitEvent.bind(this), token, this.removeFields) + req + .pipe(createStreamThrottle(this.throughputPerClient)) + .pipe(split()) + .on('data', parserState.consume.bind(parserState)) + .on('end', function endHandler () { + const log = parserState.end() + + self.emitEvent(log, token) + // send response to client + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + .on('error', console.error) + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in journaldHttpHandler: ' + err) + } +} + +JournaldUpload.prototype.startJournaldUpload = function (id) { + this.getHttpServer( + Number(this.config.port), + this.journaldHttpHandler.bind(this) + ) + let exitInProgress = false + const terminate = function (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop journald-upload http worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) +} + +module.exports = JournaldUpload diff --git a/node_modules/@sematext/logagent/lib/plugins/input/kubernetesAudit.js b/node_modules/@sematext/logagent/lib/plugins/input/kubernetesAudit.js new file mode 100644 index 00000000..8276b783 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/kubernetesAudit.js @@ -0,0 +1,183 @@ +const consoleLogger = require('../../util/logger.js') +const http = require('http') +const throng = require('throng') +const extractTokenRegEx = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/ +const tokenFormatRegEx = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ +const TokenBlacklist = require('../../util/token-blacklist.js') + +function KubernetesAudit (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.tokenBlackList = new TokenBlacklist(eventEmitter) + if (config.worker) { + this.config.worker = config.workers + } else { + this.config.workers = 0 + } +} + +KubernetesAudit.prototype.start = function () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startKubernetesAudit.bind(this) + ) + } else { + this.startKubernetesAudit(1) + } +} + +KubernetesAudit.prototype.stop = function (cb) { + cb() +} + +KubernetesAudit.prototype.emitEvent = function (log, token) { + this.addTags(log) + const context = { name: 'k8sAudit', sourceName: 'k8sAudit' } + if (token) { + context.index = token + } + this.eventEmitter.emit('data.object', log, context) +} + +KubernetesAudit.prototype.addTags = function (log) { + if (this.config.tags === undefined) { + return + } + const keys = Object.keys(this.config.tags) + for (let i = 0; i < keys.length; i++) { + // avoid setting _index when passed in URL + if (log[keys[i]] === undefined) { + log[keys[i]] = this.config.tags[keys[i]] + } + } +} + +KubernetesAudit.prototype.getHttpServer = function (aport, handler) { + let _port = aport || process.env.PORT || 9200 + if (aport === true) { + _port = process.env.PORT + } + + let server = http.createServer(handler) + + // Increase the connection timeout to equal the Nginx Ingress timeout of 1min. + server.on('connection', socket => socket.setTimeout(60 * 1000)) + + try { + const bindAddress = this.config.bindAddress || '0.0.0.0' + server = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (http k8s audit): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use k8s audit (' + _port + '): ' + err) + } +} + +KubernetesAudit.prototype.parseBody = function (body, token) { + if (body.length === 0) { + return + } + const self = this + const docs = JSON.parse(body) + if (docs.items && docs.items.length > 0) { + for (let i = 0; i < docs.items.length; i++) { + const log = docs.items[i] + log['@timestamp'] = new Date(log.timestamp) + self.emitEvent(log, token) + } + } else { + // unknow structure, let's index the doc to ease trouble shooting + self.emitEvent(docs, token) + } +} + +KubernetesAudit.prototype.HttpHandler = function (req, res) { + try { + const self = this + const path = req.url.split('/') + let token = null + let bodyIn = '' + if (self.config.useIndexFromUrlPath === true && path.length > 1) { + if (path[1] && path[1].length > 31 && tokenFormatRegEx.test(path[1])) { + const match = path[1].match(extractTokenRegEx) + if (match && match.length > 1) { + token = match[1] + } + } else if (path[1] === 'health' || path[1] === 'ping') { + res.statusCode = 200 + res.end('ok\n') + return + } + } + if ( + (self.config.useIndexFromUrlPath === true && !token) || + self.tokenBlackList.isTokenInvalid(token) + ) { + res.statusCode = self.config.invalidTokenStatus || 403 + res.end(`invalid logs token in url ${req.url}`) + return + } + req.on('data', function (data) { + bodyIn += String(data) + // onsole.log(data) + }) + + req.on('end', function endHandler () { + try { + self.parseBody(bodyIn, token) + } catch (err) { + res.writeHead(500, { 'Content-Type': 'text/plain' }) + res.end(`Invalid json input: ${err}\n`) + return + } + // send response to client + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in Kubernetes Audit HttpHandler: ' + err) + } +} + +KubernetesAudit.prototype.startKubernetesAudit = function (id) { + this.getHttpServer(Number(this.config.port), this.HttpHandler.bind(this)) + let exitInProgress = false + const terminate = function terminate (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop k8s audit http worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) +} + +module.exports = KubernetesAudit diff --git a/node_modules/@sematext/logagent/lib/plugins/input/kubernetesEvents.js b/node_modules/@sematext/logagent/lib/plugins/input/kubernetesEvents.js new file mode 100644 index 00000000..a0c54fb9 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/kubernetesEvents.js @@ -0,0 +1,107 @@ +// Emit k8s events as Node.js events +const { KubeConfig } = require('kubernetes-client') +const Client = require('kubernetes-client').Client +const Request = require('kubernetes-client/backends/request') +const consoleLogger = require('../../util/logger.js') +const EventEmitter = require('events').EventEmitter + +class KubernetesEventEmitter extends EventEmitter { + constructor () { + super() + const kubeconfig = new KubeConfig() + // do we run in k8s cluster? + if (process.env.KUBERNETES_PORT_443_TCP !== undefined) { + kubeconfig.loadFromCluster() + } else { + kubeconfig.loadFromDefault() + } + this.client = new Client({ backend: new Request({ kubeconfig }) }) + this.client + .loadSpec() + .then(this.start.bind(this)) + .catch(error => { + console.error('Error in k8s client', error) + }) + } + + async startWatching (namespace, cb) { + var self = this + // API docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.14/#list-all-namespaces-event-v1-core + // https://github.com/godaddy/kubernetes-client/blob/master/merging-with-kubernetes.md#getstream + self[namespace] = await this.client.api.v1.watch + .namespaces(namespace) + .pods.getObjectStream() + self[namespace].on('data', object => { + self.emit('event', object) + }) + self[namespace].on('error', function (err) { + self.emit('error', err) + self.stop() + self.startWatching(namespace, cb) + }) + cb() + } + + async startWatchingAllNamespaces (callback) { + const namespaces = await this.client.api.v1.namespaces.get() + for (var i = 0; i < namespaces.length; i++) { + this.startWatching(namespaces[i], callback) + } + callback() + } + + start (cb) { + try { + this.startWatchingAllNamespaces(() => {}) + } catch (err) { + this.emitter.emit('error', err) + consoleLogger.error('KubernetesEvents error: ' + err) + } + } + + stop () { + try { + this.stream.abort() + } catch (err) { + this.emit('error', err) + } + } +} + +function KubernetesEvents (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter +} + +KubernetesEvents.prototype.stop = function (cb) { + this.k8s.stop() + cb() +} + +KubernetesEvents.prototype.addTags = function (log) { + if (this.config.tags === undefined) { + return + } + var keys = Object.keys(this.config.tags) + for (var i = 0; i < keys.length; i++) { + log[keys[i]] = this.config.tags[keys[i]] + } +} + +KubernetesEvents.prototype.start = function () { + var context = { name: 'k8s', sourceName: this.config.sourceName || 'k8s' } + var self = this + this.k8s = new KubernetesEventEmitter() + this.k8s.on('event', function (event) { + self.addTags(event) + event['@timestamp'] = event.firstTimestamp + self.eventEmitter.emit('data.object', event, context) + }) + this.k8s.on('error', function (error) { + consoleLogger.error( + 'Error in k8s event collector:' + error.message + ' ' + error.stack + ) + }) +} + +module.exports = KubernetesEvents diff --git a/node_modules/@sematext/logagent/lib/plugins/input/mqtt-broker.js b/node_modules/@sematext/logagent/lib/plugins/input/mqtt-broker.js new file mode 100644 index 00000000..139b6338 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/mqtt-broker.js @@ -0,0 +1,142 @@ +'use strict' +var Aedes = require('aedes') +var ws = require('websocket-stream') +var consoleLogger = require('../../util/logger.js') +var ignoreTopicRegEx = /^\$SYS/ +/** + * Constructor called by logagent, when the config file contains this entry: + * input: + * mqtt-broker: + * module: mqtt-broker + * port: 1883 + * websocketPort: 9883 + * ignoreTopic: ^\$SYS + * debug: false + * username: mqtt + * password: secret + * + * @config cli arguments and config entries + * @eventEmitter logent eventEmitter object + */ +function InputMqttBroker (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.aedes = new Aedes() +} +module.exports = InputMqttBroker +/** + * Plugin start function, called after constructor + * + */ +InputMqttBroker.prototype.start = function () { + if (!this.started) { + this.createServer() + this.started = true + } + try { + if (this.config.ignoreTopic) { + ignoreTopicRegEx = new RegExp(this.config.ignoreTopic) + } + } catch (error) { + consoleLogger.error( + 'MQTT config property ignoreTopic is not a Regular Expression:' + error + ) + } +} + +/** + * Plugin stop function, called when logagent terminates + * we close the server socket here. + */ +InputMqttBroker.prototype.stop = function (cb) { + this.server.close(cb) +} + +InputMqttBroker.prototype.createServer = function () { + var self = this + var config = this.config + var aedes = this.aedes + if (!this.config.port) { + this.config.port = 1883 + } + if (this.config.username && this.config.password) { + consoleLogger.log('MQTT authentication is enabled via username/password') + this.aedes.authenticate = function (client, username, password, callback) { + callback( + null, + username === self.config.username && password === self.config.password + ) + } + } else if ( + this.config.authenticate && + typeof this.config.authenticate === 'function' + ) { + consoleLogger.log( + 'MQTT authentication is enabled via authenticate function' + ) + this.aedes.authenticate = this.config.authenticate + } + this.server = require('net').createServer(this.aedes.handle) + this.server.listen(this.config.port, function () { + consoleLogger.log('MQTT server listening on port ' + self.config.port) + }) + if (this.config.websocketPort) { + this.httpServer = require('http').createServer() + ws.createServer( + { + server: self.httpServer + }, + this.aedes.handle + ) + this.httpServer.listen(this.config.websocketPort, function () { + consoleLogger.log( + 'MQTT websocket server listening on port ' + self.config.websocketPort + ) + }) + } + aedes.on('clientError', function (client, err) { + consoleLogger.error('MQTT client error ' + client.id + ': ' + err.message) + }) + + aedes.on('publish', function (packet, client) { + // ignore messages e.g. from 'internal' $SYS topic (e.g. client connect/disconnect) + if (packet.topic && ignoreTopicRegEx.test(packet.topic)) { + return + } + var context = { + name: 'input.mqtt', + port: self.config.port, + sourceName: packet.topic, + topic: packet.topic, + qos: packet.qos, + retain: packet.retain + } + if (packet.payload) { + self.eventEmitter.emit('data.raw', packet.payload.toString(), context) + } + if (self.config.debug === true) { + consoleLogger.log('Published:' + JSON.stringify(packet)) + } + }) + + aedes.on('subscribe', function (subscriptions, client) { + if (client && config.debug) { + consoleLogger.error( + 'MQTT subscribe from client ' + client.id + ': ' + subscriptions + ) + } + }) + // fired when a client connects + aedes.on('client', function (client) { + if (config.debug) { + consoleLogger.log('Client connected: ' + client.id) + } + }) + // fired when a client disconnects + aedes.on('clientDisconnected', function (client) { + if (config.debug) { + consoleLogger.log('Client disconnected: ' + client.id) + } + }) + this.started = true +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/mqtt-client.js b/node_modules/@sematext/logagent/lib/plugins/input/mqtt-client.js new file mode 100644 index 00000000..dfa01c48 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/mqtt-client.js @@ -0,0 +1,82 @@ +'use strict' +var mqtt = require('mqtt') +var consoleLogger = require('../../util/logger.js') + +/** + * Constructor called by logagent, when the config file contains this entry: + * input + * mqtt-client: + * module: input-mqtt-client + * url: mqtt://test.mosquitto.org + * topics: + * - log-messages + * - sensor-data + * @config cli arguments and config entries + * @eventEmitter logent eventEmitter object + */ +function InputMqttClient (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter +} +module.exports = InputMqttClient +/** + * Plugin start function, called after constructor + * + */ +InputMqttClient.prototype.start = function () { + if (!this.started) { + this.connect() + this.started = true + } +} +InputMqttClient.prototype.connect = function () { + var self = this + this.client = mqtt.connect(this.config.url, console.log) + this.client.on('close', function () { + consoleLogger.log('mqtt client connection closed') + }) + this.client.on('connect', function () { + consoleLogger.log('mqtt client connect ' + self.config.url) + }) + this.client.on('reconnect', function () { + consoleLogger.log('mqtt client re-connect') + }) + this.client.on('offline', function () { + consoleLogger.log('mqtt client offline') + }) + this.client.on('error', function () { + consoleLogger.log('mqtt client error') + }) + this.subscribe() +} + +InputMqttClient.prototype.subscribe = function () { + this.client.on('message', function (topic, message, packet) { + var context = { + name: 'input.mqtt.topic', + packet: packet, + sourceName: topic, + topic: topic, + qos: packet.qos, + retain: packet.retain + } + if (message) { + self.eventEmitter.emit('data.raw', message.toString(), context) + } + }) + if (this.config.topics && this.config.topics.length > 0) { + var self = this + this.config.topics.forEach(function (topicName) { + self.client.subscribe(topicName) + }) + } +} + +/** + * Plugin stop function, called when logagent terminates + * we close the server socket here. + */ +InputMqttClient.prototype.stop = function (cb) { + this.started = false + this.client.end() +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/mssql.js b/node_modules/@sematext/logagent/lib/plugins/input/mssql.js new file mode 100644 index 00000000..8b7ba926 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/mssql.js @@ -0,0 +1,105 @@ +'use strict' +var Connection = require('tedious').Connection +var Request = require('tedious').Request +var momenttz = require('moment-timezone') +var consoleLogger = require('../../util/logger.js') +function InputMSSql (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.started = false + this.connection = new Connection(config.connectioninfo) + if (this.config.interval < 1) { + this.config.interval = 1 + } +} + +InputMSSql.prototype.queryResultCb = function (err, rows) { + if (this.debug) { + consoleLogger.log(this.context.sourceName + ': ' + this.context.sql) + } + if (!err) { + for (var i = 0; i < rows.length; i++) { + if (!rows[i]['@timestamp']) { + rows[i]['@timestamp'] = new Date() + } + rows[i].logSource = this.context.sourceName + var record = {} + var currentRow = rows[i] + for (var col = 0; col < currentRow.length; col++) { + var colName = currentRow[col].metadata.colName + record[colName] = currentRow[col].value + } + this.eventEmitter.emit('data.object', record, this.context) + } + } else { + this.eventEmitter.emit('error', err) + } +} + +InputMSSql.prototype.runQuery = function () { + if (!this.queryTime) { + this.queryTime = new Date() + } + for (var i = 0; i < this.config.queries.length; i++) { + var dateString = this.queryTime + .toISOString() + .slice(0, 19) + .replace('T', ' ') + if (this.config.queryTimezone && this.config.queryTimeFormat) { + dateString = momenttz(this.queryTime) + .tz(this.config.queryTimezone) + .format(this.queryTimeFormat) + } + var tmpSqlStatement = this.config.queries[i].sql.replace( + /\$queryTime/g, + dateString + ) + var context = { + sourceName: this.config.queries[i].sourceName, + sql: tmpSqlStatement, + queryTime: this.queryTime + } + this.queryTime = new Date() + this.query( + tmpSqlStatement, + this.queryResultCb.bind({ + eventEmitter: this.eventEmitter, + context: context, + debug: this.config.debug + }) + ) + } +} + +InputMSSql.prototype.start = function () { + if (!this.started) { + this.started = true + this.intervalID = setInterval( + this.runQuery.bind(this), + this.config.interval * 1000 + ) + } +} + +InputMSSql.prototype.stop = function () { + if (this.started) { + this.started = false + clearInterval(this.intervalID) + } +} + +InputMSSql.prototype.query = function (sql, cb) { + var self = this + var request = new Request(sql, function (err, rowCount, rows) { + console.log(rows) + if (err) { + cb(err) + return + } + cb(null, rows) + }) + request.on('doneProc', function (rowCount, more, rows) {}) + self.connection.execSql(request) +} + +module.exports = InputMSSql diff --git a/node_modules/@sematext/logagent/lib/plugins/input/mysql.js b/node_modules/@sematext/logagent/lib/plugins/input/mysql.js new file mode 100644 index 00000000..30cef869 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/mysql.js @@ -0,0 +1,95 @@ +'use strict' +var mysql = require('mysql') +var momenttz = require('moment-timezone') +function InputMySql (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.started = false + this.connection = mysql.createConnection(config.server) + if (this.config.interval < 1) { + this.config.interval = 1 + } +} + +InputMySql.prototype.queryResultCb = function (err, rows) { + if (!err) { + if (this.debug) { + console.error( + this.context.queryTime, + this.context.sourceName + ': ' + this.context.sql + ) + } + for (var i = 0; i < rows.length; i++) { + if (!rows[i]['@timestamp']) { + rows[i]['@timestamp'] = new Date() + } + rows[i].logSource = this.context.sourceName + this.eventEmitter.emit('data.object', rows[i], this.context) + } + } else { + this.eventEmitter.emit('error', err) + } +} +InputMySql.prototype.runQuery = function () { + if (!this.queryTime) { + this.queryTime = new Date() + } + for (var i = 0; i < this.config.queries.length; i++) { + var dateString = this.queryTime + .toISOString() + .slice(0, 19) + .replace('T', ' ') + if (this.config.queryTimezone && this.config.queryTimeFormat) { + dateString = momenttz(this.queryTime) + .tz(this.config.queryTimezone) + .format(this.queryTimeFormat) + } + var tmpSqlStatement = this.config.queries[i].sql.replace( + /\$queryTime/g, + dateString + ) + var context = { + sourceName: this.config.queries[i].sourceName, + sql: tmpSqlStatement, + queryTime: this.queryTime + } + this.queryTime = new Date() + this.query( + tmpSqlStatement, + this.queryResultCb.bind({ + eventEmitter: this.eventEmitter, + context: context, + debug: this.config.debug + }) + ) + } +} + +InputMySql.prototype.start = function () { + if (!this.started) { + this.started = true + this.intervalID = setInterval( + this.runQuery.bind(this), + this.config.interval * 1000 + ) + } +} + +InputMySql.prototype.stop = function () { + if (this.started) { + this.started = false + clearInterval(this.intervalID) + } +} +InputMySql.prototype.query = function (sql, cb) { + var self = this + self.connection.query(sql, function (err, rows, fields) { + if (err) { + cb(err) + return + } + cb(null, rows) + }) +} + +module.exports = InputMySql diff --git a/node_modules/@sematext/logagent/lib/plugins/input/postgresql.js b/node_modules/@sematext/logagent/lib/plugins/input/postgresql.js new file mode 100644 index 00000000..1ee180bc --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/postgresql.js @@ -0,0 +1,124 @@ +var pg = require('pg') +var momenttz = require('moment-timezone') +var consoleLogger = require('../../util/logger.js') + +function InputPostgresql (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.started = false + // this.client = new pg.Client(config.server) + // this.connection = this.client.connect() + if (this.config.interval < 1) { + this.config.interval = 1 + } +} + +InputPostgresql.prototype.queryResultCb = function (err, rows) { + if (!err) { + if (this.debug) { + consoleLogger.log( + 'PostgreSQL input: ' + this.context.sourceName + ': ' + this.context.sql + ) + } + for (var i = 0; i < rows.length; i++) { + if (!rows[i]['@timestamp']) { + rows[i]['@timestamp'] = new Date() + } + rows[i].logSource = this.context.sourceName + this.eventEmitter.emit('data.parsed', rows[i], this.context) + } + } else { + this.eventEmitter.emit('error', err) + } +} + +InputPostgresql.prototype.connect = function () { + // we re-connect, in case PG did close connections + // while LA was waiting in a long interval + if (this.client) { + this.client.end(function (err) { + if (err) { + consoleLogger.log('PostgreSQL input: ' + err) + } + }) + this.connection = null + this.client = null + } + this.client = new pg.Client(this.config.server) + this.connection = this.client.connect(function (err) { + if (err) { + consoleLogger.log('PostgreSQL input: ' + err) + } + }) +} + +InputPostgresql.prototype.runQuery = function () { + // re-connect before we run queries + this.connect() + if (!this.connection) { + // connection failed + return + } + if (!this.queryTime) { + this.queryTime = new Date() + } + for (var i = 0; i < this.config.queries.length; i++) { + var dateString = this.queryTime + .toISOString() + .slice(0, 19) + .replace('T', ' ') + if (this.config.queryTimezone && this.config.queryTimeFormat) { + dateString = momenttz(this.queryTime) + .tz(this.config.queryTimezone) + .format(this.queryTimeFormat) + } + var tmpSqlStatement = this.config.queries[i].sql.replace( + /\$queryTime/g, + dateString + ) + var context = { + sourceName: this.config.queries[i].sourceName, + sql: tmpSqlStatement, + queryTime: this.queryTime + } + this.queryTime = new Date() + this.query( + tmpSqlStatement, + this.queryResultCb.bind({ + eventEmitter: this.eventEmitter, + context: context, + debug: this.config.debug + }) + ) + } +} + +InputPostgresql.prototype.start = function () { + if (!this.started) { + this.started = true + this.intervalID = setInterval( + this.runQuery.bind(this), + this.config.interval * 1000 + ) + } +} + +InputPostgresql.prototype.stop = function () { + if (this.started) { + this.started = false + clearInterval(this.intervalID) + } +} + +InputPostgresql.prototype.query = function (sql, cb) { + var self = this + self.client.query(sql, function (err, result) { + if (err) { + cb(err) + return + } + cb(null, result.rows) + }) +} + +module.exports = InputPostgresql diff --git a/node_modules/@sematext/logagent/lib/plugins/input/unixSocketReader.js b/node_modules/@sematext/logagent/lib/plugins/input/unixSocketReader.js new file mode 100644 index 00000000..3b52a384 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/unixSocketReader.js @@ -0,0 +1,88 @@ +'use strict' +var split = require('split2') +var net = require('net') +var consoleLogger = require('../../util/logger.js') + +/** + * Constructor called by logagent, when the config file contains the following entry: + * input + * suricata-socket: + * module: input-unix-socket-client + * path: /var/log/suricata/eve.socket + * # max input rate in megabyte/s + * maxInputRateMBs: 1 + * + * @config cli arguments and config entries + * @eventEmitter logent eventEmitter object + */ +function UnixSocketReader (config, eventEmitter) { + this.config = config + this.config.maxInputRate = (config.maxInputRateMBs || 100) * 1024 * 1024 + this.eventEmitter = eventEmitter +} + +module.exports = UnixSocketReader + +/** + * Plugin start function, called after constructor + */ +UnixSocketReader.prototype.start = function () { + const self = this + function errorHandler (error) { + if (error) { + consoleLogger.error( + `Error connectiong to ${self.config.path}: ${error.message}` + ) + } + } + const context = { sourceName: self.config.path } + if (!this.started) { + this.client = net.createConnection(this.config.path, errorHandler) + this.client.on('error', errorHandler) + this.client.on('connect', function (err) { + if (!err) { + consoleLogger.log(`connected to ${self.config.path}`) + self.client + .pipe(Throttle(self.config.maxInputRate)) + .pipe(split()) + .on('data', function emitLine (data) { + // emit a 'data.raw' event for each line we receive + self.eventEmitter.emit('data.raw', data, context) + if (self.config.debug) { + consoleLogger.debug(data + '\n', context) + } + }) + } else { + consoleLogger.error( + `Error connectiong to ${self.config.path}: ${err.message}` + ) + } + }) + this.started = true + } +} + +/** + * Plugin stop function, called when logagent terminates + * we close the server socket here. + */ +UnixSocketReader.prototype.stop = function (cb) { + this.client.end() + if (cb) { + cb() + } +} + +// helper to throttle bandwidth +var StreamThrottle = require('stream-throttle').Throttle +function Throttle (maxRate) { + var inputRate = maxRate || 1024 * 1024 * 100 + var chunkSize = inputRate / 10 + if (chunkSize < 1) { + chunkSize = 1 + } + return new StreamThrottle({ + chunksize: chunkSize, + rate: inputRate || 1024 * 1024 * 100 + }) +} diff --git a/node_modules/@sematext/logagent/lib/plugins/input/vercel.js b/node_modules/@sematext/logagent/lib/plugins/input/vercel.js new file mode 100644 index 00000000..096792e2 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/vercel.js @@ -0,0 +1,226 @@ +const consoleLogger = require('../../util/logger.js') +const http = require('http') +const crypto = require('crypto') +const throng = require('throng') +const extractTokenRegEx = /([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/ +const tokenFormatRegEx = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ +const TokenBlacklist = require('../../util/token-blacklist.js') + +class Vercel { + constructor (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.tokenBlackList = new TokenBlacklist(eventEmitter) + if (config.workers) { + this.config.workers = config.workers + } else { + this.config.workers = 0 + } + } + + start () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startVercel.bind(this) + ) + } else { + this.startVercel(1) + } + } + + stop (cb) { + cb() + } + + emitEvent (log, token) { + this.addTags(log) + const context = { name: 'vercel', sourceName: 'vercel' } + if (token) { + context.index = token + } + this.eventEmitter.emit('data.object', log, context) + } + + addTags (log) { + if (this.config.tags === undefined) { + return + } + const keys = Object.keys(this.config.tags) + for (let i = 0; i < keys.length; i++) { + // avoid setting _index when passed in URL + if (log[keys[i]] === undefined) { + log[keys[i]] = this.config.tags[keys[i]] + } + } + } + + getHttpServer (aport, handler) { + let _port = aport || process.env.PORT || 8400 + if (aport === true) { + _port = process.env.PORT + } + + let server = http.createServer(handler) + // Increase the connection timeout to equal the Nginx Ingress timeout of 1min. + server.on('connection', socket => socket.setTimeout(60 * 1000)) + + try { + const bindAddress = this.config.bindAddress || '0.0.0.0' + server = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (HTTP vercel): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return server + } catch (err) { + consoleLogger.log('Port in use vercel (' + _port + '): ' + err) + } + } + + parseBody (body, token) { + if (body.length === 0) { + return + } + const self = this + const docs = JSON.parse(body) + if (docs && docs.length > 0) { + for (let i = 0; i < docs.length; i++) { + const log = docs[i] + log['@timestamp'] = new Date(log.timestamp) + delete log.timestamp + + self.emitEvent(log, token) + } + } else { + // unknow structure, let's index the doc to ease trouble shooting + self.emitEvent(docs, token) + } + } + + verifySignature (req, body) { + if (!Array.isArray(this.config.clientSecrets)) { + if (this.config.debug) { + consoleLogger.log('clientSecrets config value is not an array. Please set it to an array.') + } + return + } + + const verified = this.config.clientSecrets.some(clientSecret => { + const signature = crypto + .createHmac('sha1', clientSecret) + .update(body) + .digest('hex') + + const match = signature === req.headers['x-zeit-signature'] + + if (this.config.debug) { + if (!match) { + consoleLogger.log(`Vercel signature didn't match for Vercel Client Secret: ${clientSecret}`) + } else { + consoleLogger.log(`Vercel signature matched for Vercel Client Secret: ${clientSecret}`) + } + } + + return match + }) + + return verified + } + + HttpHandler (req, res) { + try { + const self = this + const path = req.url.split('/') + let token = null + let bodyIn = '' + if (self.config.useIndexFromUrlPath === true && path.length > 1) { + if (path[1] && path[1].length > 31 && tokenFormatRegEx.test(path[1])) { + const match = path[1].match(extractTokenRegEx) + if (match && match.length > 1) { + token = match[1] + } + } else if (path[1] === 'health' || path[1] === 'ping') { + res.statusCode = 200 + res.end('ok\n') + return + } + } + if ( + (self.config.useIndexFromUrlPath === true && !token) || + self.tokenBlackList.isTokenInvalid(token) + ) { + res.statusCode = self.config.invalidTokenStatus || 403 + res.end(`invalid logs token in url ${req.url}`) + return + } + req.on('data', function (data) { + bodyIn += String(data) + }) + req.on('end', function endHandler () { + try { + // verify log messages are from Vercel + if (!self.verifySignature(req, bodyIn)) { + res.writeHead(403, { 'Content-Type': 'text/plain' }) + res.end("Vercel signature didn't match") + return + } + + self.parseBody(bodyIn, token) + } catch (err) { + if (self.config.debug) { + consoleLogger.error('Error in Vercel HttpHandler: ' + err) + } + + res.writeHead(500, { 'Content-Type': 'text/plain' }) + res.end(`Invalid json input: ${err}\n`) + return + } + // send response to client + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in Vercel HttpHandler: ' + err) + } + } + + startVercel (id) { + this.getHttpServer(Number(this.config.port), this.HttpHandler.bind(this)) + let exitInProgress = false + const terminate = function terminate (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop vercel http worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) + } +} + +module.exports = Vercel diff --git a/node_modules/@sematext/logagent/lib/plugins/input/webhooks/github.js b/node_modules/@sematext/logagent/lib/plugins/input/webhooks/github.js new file mode 100644 index 00000000..8946bea4 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/webhooks/github.js @@ -0,0 +1,156 @@ +const http = require('http') +const throng = require('throng') +const consoleLogger = require('../../../util/logger.js') +const TokenBlacklist = require('../../../util/token-blacklist') +const { parseUrlPath } = require('./util') + +class GitHub { + constructor (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + this.tokenBlackList = new TokenBlacklist(eventEmitter) + + if (config.workers) { + this.config.workers = config.workers + } else { + this.config.workers = 0 + } + } + + start () { + if (this.config.workers && this.config.workers > 0) { + throng( + { + workers: this.config.workers, + lifetime: Infinity + }, + this.startGitHubWebhookServer.bind(this) + ) + } else { + this.startGitHubWebhookServer(1) + } + } + + stop (cb) { + cb() + } + + startGitHubWebhookServer (id) { + this.getHttpServer(Number(this.config.port), this.httpHandler.bind(this)) + let exitInProgress = false + const terminate = function (reason) { + return function () { + if (exitInProgress) { + return + } + exitInProgress = true + consoleLogger.log( + 'Stop GitHub HTTP worker: ' + + id + + ', pid:' + + process.pid + + ', terminate reason: ' + + reason + + ' memory rss: ' + + (process.memoryUsage().rss / (1024 * 1024)).toFixed(2) + + ' MB' + ) + setTimeout(process.exit, 250) + } + } + process.once('SIGTERM', terminate('SIGTERM')) + process.once('SIGINT', terminate('SIGINT')) + process.once('exit', terminate('exit')) + } + + getHttpServer (aport, handler) { + let _port = aport || process.env.PORT || 9200 + if (aport === true) { + _port = process.env.PORT + } + + const server = http.createServer(handler) + + // Increase the connection timeout to equal the Nginx Ingress timeout of 1min. + server.on('connection', socket => socket.setTimeout(60 * 1000)) + + try { + const bindAddress = this.config.bindAddress || '0.0.0.0' + const serverListening = server.listen(_port, bindAddress) + consoleLogger.log( + 'Logagent listening (HTTP GitHub): ' + + bindAddress + + ':' + + _port + + ', process id: ' + + process.pid + ) + return serverListening + } catch (err) { + consoleLogger.log('Port in use HTTP GitHub (' + _port + '): ' + err) + } + } + + httpHandler (req, res) { + try { + const emitEvent = this.emitEvent.bind(this) + let bodyIn = '' + + const { token, err } = parseUrlPath({ + useIndexFromUrlPath: this.config.useIndexFromUrlPath, + url: req.url, + webhookName: 'github', + tokenBlackList: this.tokenBlackList, + invalidTokenStatus: this.config.invalidTokenStatus + }) + + if (err) { + res.statusCode = err.statusCode + res.end(err.message) + return + } + + req.on('data', function (data) { + bodyIn += String(data) + }) + req.on('end', () => { + const log = parseReq({ headers: req.headers, bodyIn }) + if (log) { + emitEvent(log, token) + } + + res.writeHead(200, { 'Content-Type': 'text/plain' }) + res.end('OK\n') + }) + } catch (err) { + res.statusCode = 500 + res.end() + consoleLogger.error('Error in GitHub HttpHandler: ' + err) + } + } + + emitEvent (log, token) { + const context = { name: 'GitHub', sourceName: 'GitHub' } + if (token) { + context.index = token + } + + const tags = this.config.tags + const logToEmit = { ...log, tags } + this.eventEmitter.emit('data.object', logToEmit, context) + } +} + +const parseReq = ({ headers, bodyIn }) => { + const parseGithubEventApiResponseBody = bodyIn => { + const decodedBody = decodeURIComponent(bodyIn) + const decodedBodyWithoutPayload = decodedBody.replace('payload=', '') + return JSON.parse(decodedBodyWithoutPayload) + } + + const body = parseGithubEventApiResponseBody(bodyIn) + const event = headers['x-github-event'] + return { event, body } +} + +module.exports = GitHub diff --git a/node_modules/@sematext/logagent/lib/plugins/input/webhooks/util.js b/node_modules/@sematext/logagent/lib/plugins/input/webhooks/util.js new file mode 100644 index 00000000..311c97a4 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/input/webhooks/util.js @@ -0,0 +1,64 @@ +const parseUrlPath = ({ + useIndexFromUrlPath, + url, + webhookName, + tokenBlackList, + invalidTokenStatus +}) => { + // Has to return an object + + const path = url.split('/') + + if (path[1] === 'health' || path[1] === 'ping') { + return { err: { statusCode: 200, message: 'Ok\n' } } + } + + if (useIndexFromUrlPath !== true) { + return {} + } + + if (path.length !== 3) { + return { + err: { + statusCode: 400, + message: + "URL Path is invalid. Needs to be in the following format: '//'\n" + } + } + } + + if (path[1] !== (webhookName && webhookName.toLowerCase())) { + return { + err: { statusCode: 400, message: `Not a ${webhookName} Webhook.\n` } + } + } + + const urlPath = { + token: null + } + if ( + path[2] && + path[2].length > 31 && + /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(path[2]) + ) { + urlPath.token = path[2] + } + + if ( + (useIndexFromUrlPath === true && !urlPath.token) || + tokenBlackList.isTokenInvalid(urlPath.token) + ) { + return { + err: { + statusCode: invalidTokenStatus || 403, + message: `Invalid LOGS_TOKEN in URL ${url}\n` + } + } + } + + return urlPath +} + +module.exports = { + parseUrlPath +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/access-watch.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/access-watch.js new file mode 100644 index 00000000..32215ad3 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/access-watch.js @@ -0,0 +1,297 @@ +'use strict' + +var request = require('request') + +var LRU = require('lru-cache') + +var md5 = require('md5') + +var defaultConfig = { + matchTypes: ['access_common', 'access_log_combined'], + + addressSource: 'client_ip', + userAgentSource: 'user_agent', + + identityDestination: null, + addressDestination: null, + robotDestination: null, + reputationDestination: null, + + identityProperties: ['type'], + addressProperties: ['value', 'hostname', 'country_code', 'flags'], + robotProperties: ['id', 'name', 'url'], + reputationProperties: ['status', 'threats'], + + cacheSize: 10000, + + maxQueueLength: 1000, + + requestUserAgent: 'Access Watch Logagent Plugin', + + apiBaseUrl: 'https://api.access.watch' +} + +function init (config, context, eventEmitter) { + if (config.initialized) { + return + } + + for (var key in defaultConfig) { + if (defaultConfig.hasOwnProperty(key)) { + if (typeof config[key] === 'undefined') { + config[key] = defaultConfig[key] + } + } + } + + if (!config.apiKey) { + console.log( + 'Please configure the Access Watch plugin with an apiKey: get one for free from https://access.watch/reveal' + ) + return + } + + if (!config.requestHeaders) { + config.requestHeaders = { + 'User-Agent': config.requestUserAgent, + 'Api-Key': config.apiKey + } + } + + if (!config.cache) { + config.cache = LRU({ max: config.cacheSize }) + } + + config.initialized = true +} + +var queueHandler + +var queue = [] + +var currentRequests = {} + +function requestData (options, callback) { + if (options.cache && options.id) { + var object = options.cache.get(options.id) + if (object) { + callback(object) + return + } + } + + if (Object.keys(currentRequests).length >= 10) { + if (options.queue.length >= options.maxQueueLength) { + console.log('Skipping request (queue too large, check maxQueueLength)') + callback(null) + return + } + + options.queue.push([options, callback]) + if (!queueHandler) { + queueHandler = setTimeout(handleQueue, 100) + } + return + } + + var requestIdentifier = Date.now() + Math.random() + currentRequests[requestIdentifier] = 1 + + request(options, function (error, response, body) { + delete currentRequests[requestIdentifier] + if (error) { + return callback(null) + } + if (body) { + var object + if (typeof body === 'object') { + object = body + } else if (typeof body === 'string') { + object = JSON.parse(body) + } + if (object) { + if (options.cache && options.id) { + options.cache.set(options.id, object) + } + callback(object) + return + } + } + callback(null) + }) +} + +function fetchUserAgentData (userAgent, config, data, callback) { + var hash = md5(userAgent) + + var options = { + id: 'user_agent_' + hash, + url: config.apiBaseUrl + '/1.1/user-agent/' + hash, + headers: config.requestHeaders, + cache: config.cache, + queue: queue, + maxQueueLength: config.maxQueueLength + } + + requestData(options, function (result) { + if (result && config.hasOwnProperty('userAgentDestination')) { + data = augmentData(data, result, config.userAgentDestination) + } + callback(null, data) + }) +} + +function fetchAddressData (address, config, data, callback) { + var hash = md5(address) + + var options = { + id: 'address_' + hash, + url: config.apiBaseUrl + '/1.1/address/' + hash, + headers: config.requestHeaders, + cache: config.cache, + queue: queue, + maxQueueLength: config.maxQueueLength + } + + requestData(options, function (result) { + if (result && config.hasOwnProperty('addressDestination')) { + data = augmentData( + data, + result, + config.addressDestination, + config.addressProperties + ) + } + callback(null, data) + }) +} + +function fetchIdentityData (address, userAgent, config, data, callback) { + var options = { + method: 'POST', + json: { address: address, user_agent: userAgent }, + id: 'identity_' + md5(address) + '_' + md5(userAgent), + url: config.apiBaseUrl + '/1_1/identity', + headers: config.requestHeaders, + cache: config.cache, + queue: queue, + maxQueueLength: config.maxQueueLength + } + + requestData(options, function (result) { + if (result) { + if (config.hasOwnProperty('identityDestination')) { + data = augmentData( + data, + result, + config.identityDestination, + config.identityProperties + ) + } + if ( + result.hasOwnProperty('address') && + config.hasOwnProperty('addressDestination') + ) { + data = augmentData( + data, + result.address, + config.addressDestination, + config.addressProperties + ) + } + if ( + result.hasOwnProperty('robot') && + config.hasOwnProperty('robotDestination') + ) { + data = augmentData( + data, + result.robot, + config.robotDestination, + config.robotProperties + ) + } + if ( + result.hasOwnProperty('reputation') && + config.hasOwnProperty('reputationDestination') + ) { + data = augmentData( + data, + result.reputation, + config.reputationDestination, + config.reputationProperties + ) + } + } + callback(null, data) + }) +} + +function augmentData (data, object, destination, properties) { + if (!destination || !properties) { + return data + } + + if (properties) { + data[destination] = {} + properties.forEach(function (key) { + if (object.hasOwnProperty(key)) { + data[destination][key] = object[key] + } + }) + } else { + data[destination] = object + } + + return data +} + +function handleQueue () { + while (Object.keys(currentRequests).length < 10 && queue.length > 0) { + var args = queue.shift() + requestData.apply(null, args) + } + + queueHandler = setTimeout(handleQueue, 100) +} + +function accessWatch (context, config, eventEmitter, data, callback) { + if (data == null) { + return callback(new Error('data is null'), null) + } + + init(config, context, eventEmitter) + + if (!config.initialized) { + return + } + + if ( + config.matchTypes && + data._type && + config.matchTypes.indexOf(data._type) > -1 + ) { + var address, userAgent + if (config.addressSource && data[config.addressSource]) { + address = data[config.addressSource] + } + if (config.userAgentSource && data[config.userAgentSource]) { + userAgent = data[config.userAgentSource] + if (userAgent === '-') { + userAgent = null + } + } + if (address && userAgent) { + fetchIdentityData(address, userAgent, config, data, callback) + } else if (address) { + fetchAddressData(address, config, data, callback) + } else if (userAgent) { + fetchUserAgentData(userAgent, config, data, callback) + } else { + callback(null, data) + } + } else { + callback(null, data) + } +} + +module.exports = accessWatch diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/aes-encrypt-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/aes-encrypt-fields.js new file mode 100644 index 00000000..5afe770d --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/aes-encrypt-fields.js @@ -0,0 +1,54 @@ +var crypto = require('crypto') +var set = require('set-value') +var get = require('get-value') + +function replaceAll (target, search, replacement) { + if (!search) { + return target + } + if (!replacement) { + return target + } + return target.split(search).join(replacement) +} + +function aesEncrypt (text, key, aesAlgo) { + var cipher = crypto.createCipher(aesAlgo || 'aes256', key) + var crypted = cipher.update(text, 'utf8', 'hex') + crypted += cipher.final('hex') + return crypted +} + +function aesEncryptFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + try { + if (config.matchSource.test(context.sourceName || data.logSource)) { + if (config.fields && config.fields instanceof Array) { + for (var i = 0; i < config.fields.length; i++) { + var fieldValue = get(data, config.fields[i]) + if (fieldValue !== undefined) { + var newValue + if (config.password) { + newValue = aesEncrypt( + fieldValue, + config.password, + config.algorithm + ) + } + if (data.message && typeof data.message === 'string') { + data.message = replaceAll(data.message, fieldValue, newValue) + } + set(data, config.fields[i], newValue) + } + } + } + } + } catch (ex) { + callback(ex, null) + } + + callback(null, data) +} +module.exports = aesEncryptFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/aws-ecs-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/aws-ecs-format.js new file mode 100644 index 00000000..85000e92 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/aws-ecs-format.js @@ -0,0 +1,87 @@ +const Parser = require('../../parser/parser.js') +const logParser = new Parser() + +const SEVERITY = { + stderr: 'err', + stdout: 'info' +} + +function jsonParse (text) { + try { + return JSON.parse(text) + } catch (err) { + return null + } +} + +function extractJson (line, source) { + if (/^\[{0,1}\{.*\}]{0,1}$/.test(line)) { + let parsed = {} + parsed = jsonParse(line) + if (!parsed) { + return null + } + return parsed + } + return null +} + +function parseJsonLog (log) { + const jsonLog = extractJson(log.message) + if (!jsonLog) { + return null + } + + if (jsonLog && jsonLog.message) { + delete log.message + } + return { + ...jsonLog, + ...log + } +} + +function formatAwsEcs (context, config, eventEmitter, log, callback) { + try { + log.severity = SEVERITY[log.source] + log.source = log.sourceName + delete log.sourceName + + // check if log.message is in JSON format, return parsed log object or null + const parsedLog = parseJsonLog(log) + if (parsedLog) { + // if not null, the log is parsed, structured and sent down the pipeline + return callback(null, parsedLog) + } + + // if the log.message is not in JSON format then + // we parse the log.message field with logagent patterns + // using the log.source as the pattern sourceName (check patterns.yml) + // for for more info + if (log.message !== undefined) { + logParser.parseLine(log.message, log.source, function (err, data) { + if (err) { + return callback(err, log) + } + + if (data && data._type) { + delete data['@timestamp'] + delete data.logSource + delete data._type + + log.type = 'ecs' + log[log.source] = {} + Object.assign(log[log.source], data) + } + return callback(null, log) + }) + } + + return callback(null, log) + } catch (err) { + console.log(err) + return callback(err, log) + } +} + +module.exports = formatAwsEcs diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/cloudfoundry-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/cloudfoundry-format.js new file mode 100644 index 00000000..16b18e96 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/cloudfoundry-format.js @@ -0,0 +1,82 @@ +function jsonParse (text) { + try { + return JSON.parse(text) + } catch (err) { + return null + } +} + +function extractJson (line, source) { + var parsed = {} + if (/^\[{0,1}\{.*\}]{0,1}$/.test(line)) { + parsed = jsonParse(line) + if (!parsed) { + return null + } + return parsed + } +} + +function filterCloudFoundryMessage (data, context) { + if (data) { + data._type = context.sourceName.replace('_' + context.index, '') + data.logSource = ('' + data.logSource).replace('_' + context.index, '') + if (!data['@timestamp']) { + data['@timestamp'] = new Date() + } + if (data.message) { + data.json = extractJson(data.message) + } + } + return data +} + +function parseCloudFoundryTags (tags) { + try { + const parsedTags2dArr = tags + .split(' ') + .map(t => t.replace(/"/g, '').split('=')) + + const parsedTags = parsedTags2dArr + .map(a => { + const obj = {} + obj[a[0]] = a[1] + return obj + }) + .reduce((acc, o) => { + const key = Object.keys(o).pop() + acc[key] = o[key] + + return acc + }, {}) + + return parsedTags + } catch (error) { + console.error(error) + return tags + } +} + +module.exports = function (context, config, eventEmitter, log, callback) { + try { + const filteredLog = filterCloudFoundryMessage(log, context) + const json = filteredLog.json + const message = filteredLog.message + delete filteredLog.json + delete filteredLog.message + const tags = parseCloudFoundryTags(filteredLog.tags) + delete filteredLog.tags + + const parsedLog = { + message, + ...json, + ...filteredLog, + ...tags + } + + return callback(null, parsedLog) + } catch (err) { + console.log(err) + return callback(null, log) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/docker-log-enrichment.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/docker-log-enrichment.js new file mode 100644 index 00000000..b5c32c2f --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/docker-log-enrichment.js @@ -0,0 +1,149 @@ +var warningRegex = /warning/i +var errorRegex = /[^|\S]error|exception/i +var K8S = /^k8s_/ + +var parser = require('../../util/parser.js') + +var k8sMetadata = {} +if (process.env.SEVERITY_ERROR_PATTERN) { + errorRegex = new RegExp(process.env.SEVERITY_ERROR_PATTERN) +} +if (process.env.SEVERITY_WARNING_PATTERN) { + warningRegex = new RegExp(process.env.SEVERITY_WARNING_PATTERN) +} + +function parseKubernetesInfo (containerName, logObject) { + // containers managed by Kubernetes have a prefix "k8s_", reference: + // https://github.com/kubernetes/kubernetes/blob/f5d9c430e9168cf5c41197b8a4e457981cb031df/pkg/kubelet/dockertools/docker.go#L85 + if (!K8S.test(containerName)) { + return null + } + // cache for meta data + if (k8sMetadata[containerName]) { + logObject.kubernetes = k8sMetadata[containerName] + return logObject + } + var fields = containerName.split('_') + if (fields.length >= 4) { + // example: k8s_sematext-agent.c56a873d_sematext-agent-qo2yf_default_e94b48c5-e63b-11e5-a8ec-0401b386ea01_8898bc93 + if (fields[0] !== 'k8s') { + return null + } + logObject.kubernetes = { + pod: { + name: fields[2], + uid: fields[4], + container: { + // container name in pod + name: fields[1] + } + }, + namespace: fields[3] + } + k8sMetadata[containerName] = logObject.kubernetes + return logObject + } else { + return null + } +} + +module.exports = function enrichDockerLogs ( + context, + config, + eventEmitter, + data, + cb +) { + if (!context.container_name) { + return cb(null, data) + } + data.container = { + id: context.container_long_id, + type: 'docker', + name: context.container_name, + image: parser.parseImage(context.image || '') + } + data.os = { + host: process.env.SPM_REPORTED_HOSTNAME + } + if (!data['@timestamp']) { + data['@timestamp'] = new Date(context.time) + } + // Log routing, set Elasticsearch index / Logsene token from + // container label + if (context.dockerInspect && context.dockerInspect.LOGSENE_TOKEN) { + context.index = context.dockerInspect.LOGSENE_TOKEN + data._index = context.dockerInspect.LOGSENE_TOKEN + } + if (context.dockerInspect && context.dockerInspect.LOGS_RECEIVER_URL) { + context.elasticsearchUrl = context.dockerInspect.LOGS_RECEIVER_URL + } + if (context.labels) { + data.labels = context.labels + } + + if ( + context.dockerInspect && + context.dockerInspect.Config && + context.dockerInspect.Config.Labels + ) { + var swarmInfo = {} + var stackName = + context.dockerInspect.Config.Labels['com.docker.stack.namespace'] + if (stackName) { + swarmInfo.stack = { + name: stackName + } + data.swarm = swarmInfo + } + var serviceName = + context.dockerInspect.Config.Labels['com.docker.swarm.service.name'] + if (serviceName) { + swarmInfo.service = { + name: serviceName + } + data.swarm = swarmInfo + } + } + // set logs receiver urls for output plugins when you have multiple URLS + if (context.dockerInspect && context.dockerInspect.LOGS_RECEIVER_URLS) { + context.logsReceivers = context.dockerInspect.LOGS_RECEIVER_URLS + } + // set logs receiver urls for output plugins when you have one URL + if (context.dockerInspect && context.dockerInspect.LOGS_RECEIVER_URL) { + context.logsReceiver = context.dockerInspect.LOGS_RECEIVER_URL + } + // set logs destination / name of ES output module + if (context.dockerInspect && context.dockerInspect.LOGS_DESTINATION) { + context.logsDestination = context.dockerInspect.LOGS_DESTINATION + } + + var logObject = data + // make sure that top level message field is a String + var messageString = logObject.message || logObject.msg || logObject.MESSAGE + if (typeof messageString === 'object') { + messageString = JSON.stringify(messageString) + } else if (typeof messageString !== 'string') { + messageString = String(messageString) + } + if (logObject.message) { + logObject.message = messageString + } + if (data && data.container && data.container.name) { + parseKubernetesInfo(data.container.name, data) + } + var severity = logObject.level || logObject.lvl || logObject.severity + if (config.autodetectSeverity && logObject.message && !severity) { + // detect severity + var testString = String(logObject.message).substring(0, 80) + if (errorRegex.test(testString)) { + severity = 'error' + } + if (warningRegex.test(testString)) { + severity = 'warning' + } + testString = null + logObject.severity = logObject.severity || severity || 'info' + } + cb(null, data) +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/dropEventsFilter.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/dropEventsFilter.js new file mode 100644 index 00000000..5b2d1bea --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/dropEventsFilter.js @@ -0,0 +1,77 @@ +function testCondition (data, fieldName, condition) { + const value = data[fieldName] + + const isObj = isLiteralObject(value) + if (isObj) { + return condition.test(JSON.stringify(value)) + } + return condition.test(String(value)) +} + +function isLiteralObject (a) { + return !!a && a.constructor === Object +} + +function logStatus (data, debug, a, b, c, d) { + if (debug === true) { + console.log( + `drop-events plugin: ${a} ${b} ${c} ${d}`.replace(/undefined/g, '-') + ) + } +} + +function dropEventsFilter (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + var debug = config.debug + try { + if (!config.keys) { + config.keys = Object.keys(config.filters) + } + var drop = false + for (var i = 0; i < config.keys.length; i++) { + var include = config.filters[config.keys[i]].include + var exclude = config.filters[config.keys[i]].exclude + if (config.filters[config.keys[i]].include) { + drop = !testCondition(data, config.keys[i], include) || drop + logStatus( + data, + debug, + config.keys[i], + 'include', + drop, + config.filters[config.keys[i]].include + ) + } + if (config.filters[config.keys[i]].exclude) { + drop = testCondition(data, config.keys[i], exclude) || drop + logStatus( + data, + debug, + config.keys[i], + 'exclude', + drop, + config.filters[config.keys[i]].exclude + ) + } + } + logStatus(debug, 'filter result', drop) + if (drop) { + if (debug === true) { + logStatus(data, debug, 'drop', JSON.stringify(data)) + } + return callback(new Error('drop filter')) + } else { + if (debug === true) { + logStatus(data, debug, 'pass', JSON.stringify(data)) + } + return callback(null, data) + } + } catch (ex) { + logStatus(data, debug, 'exceptoion', ex) + // pass events in case of error + return callback(null, data) + } +} +module.exports = dropEventsFilter diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/geoip.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/geoip.js new file mode 100644 index 00000000..9fbfa6e1 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/geoip.js @@ -0,0 +1,57 @@ +const publicIp = require('public-ip') +const consoleLogger = require('../../util/logger.js') +const geoIpStatus = { + debug: !!process.env.DEBUG +} + +function initIpAddress () { + publicIp + .v4() + .then(ip => { + consoleLogger.log('GeoIP: Loading Public IP') + geoIpStatus.ipAddress = ip + }) + .catch(err => { + consoleLogger.error('GeoIP: error ' + err) + geoIpStatus.geoIpFailed = true + }) +} + +function geoipOutputFilter (context, config, eventEmitter, data, callback) { + geoIpStatus.debug = config.debug + geoIpStatus.field = + process.env.GEOIP_FIELD || geoIpStatus.field || config.field + + if (geoIpStatus.field) { + if (geoIpStatus.debug) { + consoleLogger.log('GeoIP: Lookup enabled for field: ' + geoIpStatus.field) + } + + if (data[geoIpStatus.field]) { + data.geo = { + ip: data[geoIpStatus.field] + } + } + return callback(null, data) + } + + if (geoIpStatus.geoIpFailed === true) { + if (geoIpStatus.debug) { + console.log('GeoIP: Lookup failed for the Public IP address') + } + + return callback(null, data) + } + + if (geoIpStatus.debug) { + console.log(`GeoIP: The Public IP address is ${geoIpStatus.ipAddress}`) + } + data.geo = { + ip: geoIpStatus.ipAddress + } + return callback(null, data) +} + +initIpAddress() + +module.exports = geoipOutputFilter diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/github-events-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/github-events-format.js new file mode 100644 index 00000000..6b0853cd --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/github-events-format.js @@ -0,0 +1,262 @@ +function formatSematextEventsOutput ( + context, + config, + eventEmitter, + log, + callback +) { + try { + const parsedLog = parseGithubEvent(log) + if (parsedLog) { + callback(null, parsedLog) + } + } catch (e) { + callback(e, log) + } +} + +const initEvent = ({ event, action, webhookName }) => ({ + severity: 'info', + type: webhookName, + title: `${webhookName} | ${capitalize(event)} ${capitalize(action)}` +}) + +const initRepoMessage = ({ repoName, repoUrl }) => `[[${repoName}](${repoUrl})]` + +const initAuthorMessage = ({ senderAvatarUrl, senderName, senderUrl }) => + `![](${senderAvatarUrl}&s=25) [${senderName}](${senderUrl})` + +const capitalize = s => { + if (typeof s !== 'string') return '' + return s.charAt(0).toUpperCase() + s.slice(1) +} + +const parseGithubEvent = log => { + /** + * x-github-event" headers that define what data to collect: + * + * [x] issues + * [x] issue_comment + * [x] pull_request + * [x] pull_request_review + * [x] pull_request_review_comment + * [x] commit_comment + * [x] push + * [x] create + * [x] delete + * [x] release + * + ******************** + */ + + const { event, body } = log + + if ( + event === 'issues' || + event === 'issue_comment' || + event === 'pull_request' || + event === 'pull_request_review' || + event === 'pull_request_review_comment' + ) { + return parseIssueOrPullRequest(event, body) + } else if (event === 'commit_comment') { + return parseCommitComment(event, body) + } else if (event === 'push') { + return parsePush(event, body) + } else if (event === 'release') { + return parseRelease(event, body) + } else if (event === 'create') { + return parseCreate(event, body) + } else if (event === 'delete') { + return parseDelete(event, body) + } else { + return null + } +} + +const buildBranchUrl = ({ repoUrl, branchName }) => + `${repoUrl}/tree/${branchName}` + +const parseRepo = repository => { + if (!repository) { + return {} + } + + return { + repoName: repository.full_name, + repoUrl: repository.html_url + } +} + +const parseSender = sender => { + if (!sender) { + return {} + } + + return { + senderUrl: sender.html_url, + senderName: sender.login, + senderAvatarUrl: sender.avatar_url + } +} + +const parseIssueOrPullRequest = (event, body) => { + const { action, repository, sender, pull_request: pullRequest, issue } = body + if (!(issue || pullRequest)) { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const prUrl = pullRequest && pullRequest.html_url + const prNumber = pullRequest && pullRequest.number + + const issueUrl = issue && issue.html_url + const issueNumber = issue && issue.number + + const eventUrl = prUrl || issueUrl + const number = prNumber || issueNumber || null + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ + repoName, + repoUrl + })}\n[${event} #${number}](${eventUrl}) ${action} by ${initAuthorMessage({ + senderUrl, + senderName, + senderAvatarUrl + })}\n` + } +} + +const parseCommitComment = (event, body) => { + const { action, repository, sender, comment } = body + if (!comment) { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const commit = { + id: comment.commit_id, + url: comment.html_url, + message: comment.body + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ repoName, repoUrl })}\n[${event} (${ + commit.id + })](${commit.url}) ${action} by ${initAuthorMessage({ + senderUrl, + senderName, + senderAvatarUrl + })}\n` + } +} + +const parsePush = (event, body) => { + const { ref, commits, head_commit: headCommit, repository, sender } = body + const commitCount = commits && commits.length + if (!commitCount) { + return + } + + const { 1: refType, 2: branchName } = ref.split('/') + if (refType !== 'heads') { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const branchUrl = buildBranchUrl({ repoUrl, branchName }) + + return { + ...initEvent({ event, action: 'branch', webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ + repoName, + repoUrl + })}\n[${commitCount} commit(s)](${(headCommit && headCommit.url) || + repoUrl}) pushed to branch [${branchName}](${branchUrl}) by ${initAuthorMessage( + { senderUrl, senderName, senderAvatarUrl } + )}\n` + } +} + +const parseRelease = (event, body) => { + const { action, repository, sender, release } = body + if (!release) { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const { html_url: url, tag_name: tag } = release + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ + repoName, + repoUrl + })}\n[${event} (${tag})](${url}) ${action} by ${initAuthorMessage({ + senderUrl, + senderName, + senderAvatarUrl + })}\n` + } +} + +const parseCreate = (event, body) => { + const { repository, sender, ref: branchName, ref_type: refType } = body + if (refType !== 'branch') { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const branchUrl = buildBranchUrl({ repoUrl, branchName }) + + return { + ...initEvent({ event, action: 'Branch', webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ + repoName, + repoUrl + })}\nBranch [${branchName}](${branchUrl}) created by ${initAuthorMessage({ + senderUrl, + senderName, + senderAvatarUrl + })}\n` + } +} + +const parseDelete = (event, body) => { + const { repository, sender, ref: branchName, ref_type: refType } = body + if (refType !== 'branch') { + return + } + + const { repoName, repoUrl } = parseRepo(repository) + const { senderUrl, senderName, senderAvatarUrl } = parseSender(sender) + + const branchUrl = buildBranchUrl({ repoUrl, branchName }) + + return { + ...initEvent({ event, action: 'Branch', webhookName: 'GitHub' }), + message: `#### ${initRepoMessage({ + repoName, + repoUrl + })}\nBranch [${branchName}](${branchUrl}) deleted by ${initAuthorMessage({ + senderUrl, + senderName, + senderAvatarUrl + })}\n` + } +} + +module.exports = formatSematextEventsOutput diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/github-logs-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/github-logs-format.js new file mode 100644 index 00000000..6ac49bbb --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/github-logs-format.js @@ -0,0 +1,502 @@ +function formatSematextLogsOutput ( + context, + config, + eventEmitter, + log, + callback +) { + try { + const parsedLog = parseGithubEvent(log) + + if (config.debug) { + console.log(parsedLog) + } + + if (parsedLog) { + callback(null, parsedLog) + } + } catch (e) { + if (config.debug) { + console.log(e, log) + } + callback(e, log) + } +} + +const initEvent = ({ event, action, webhookName }) => ({ + severity: 'info', + type: webhookName, + title: `${capitalize(action)} ${capitalize(parseEventTitle({ event }))}` +}) + +const initRepoMessage = ({ repoName, repoUrl }) => `${repoName} - ${repoUrl}` + +const initAuthorMessage = ({ senderName, senderUrl }) => + `${senderName} - ${senderUrl}` + +const parseEventTitle = ({ event }) => event.replace(/_/g, ' ') + +const parseTextFields = ({ field }) => field.replace(/\+/g, ' ') + +const capitalize = s => { + if (typeof s !== 'string') return '' + return s.replace(/(?:^|\s)\S/g, a => a.toUpperCase()) +} + +const parseGithubEvent = log => { + /** + * x-github-event" headers that define what data to collect: + * + * [x] issues + * [x] issue_comment + * [x] pull_request + * [x] pull_request_review + * [x] pull_request_review_comment + * [x] commit_comment + * [x] push + * [x] create + * [x] delete + * [x] release + * + ******************** + */ + + const { event, body } = log + + if (event === 'issues' || event === 'issue_comment') { + return parseIssue(event, body) + } else if ( + event === 'pull_request' || + event === 'pull_request_review' || + event === 'pull_request_review_comment' + ) { + return parsePullRequest(event, body) + } else if (event === 'commit_comment') { + return parseCommitComment(event, body) + } else if (event === 'push') { + return parsePush(event, body) + } else if (event === 'release') { + return parseRelease(event, body) + } else if (event === 'create') { + return parseCreate(event, body) + } else if (event === 'delete') { + return parseDelete(event, body) + } else { + return null + } +} + +const buildBranchUrl = ({ repoUrl, branchName }) => + `${repoUrl}/tree/${branchName}` + +const parseRepo = repository => { + if (!repository) { + return {} + } + + return { + name: repository.full_name, + url: repository.html_url, + isPrivate: repository.private, + isFork: repository.fork, + defaultBranch: repository.default_branch, + openIssuesCount: repository.open_issues, + forksCount: repository.forks, + starsCount: repository.stargazers_count, + watchersCount: repository.watchers_count, + language: repository.language, + owner: { + username: repository.owner.login, + url: repository.owner.html_url + }, + homepage: repository.homepage, + createdAt: + typeof repository.created_at === 'number' + ? new Date(repository.created_at * 1000) + : repository.created_at, + updatedAt: + typeof repository.updated_at === 'number' + ? new Date(repository.updated_at * 1000) + : repository.updated_at, + pushedAt: + typeof repository.pushed_at === 'number' + ? new Date(repository.pushed_at * 1000) + : repository.pushed_at + } +} + +const parseSender = sender => { + if (!sender) { + return {} + } + + return { + url: sender.html_url, + username: sender.login, + avatarUrl: sender.avatar_url, + type: sender.type, + siteAdmin: sender.siteAdmin + } +} + +const parseIssue = (event, body) => { + const { action, repository, sender, issue } = body + if (!issue) { + return + } + + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + + const parsedIssue = { + url: issue.html_url, + number: issue.number, + title: parseTextFields({ field: issue.title }), + body: parseTextFields({ field: issue.body }), + state: issue.state, + commentCount: issue.comments, + createdAt: issue.created_at, + updatedAt: issue.updated_at, + closedAt: issue.closed_at + } + + if (issue.assignee) { + parsedIssue.assignee = { + url: issue.assignee.html_url, + username: issue.assignee.login, + avatarUrl: issue.assignee.avatar_url, + type: issue.assignee.type, + siteAdmin: issue.assignee.siteAdmin + } + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + event, + action, + repository: parsedRepo, + sender: parsedSender, + issue: parsedIssue, + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} | ${event} #${parsedIssue.number} - ${ + parsedIssue.url + } ${action} by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}` + } +} + +const parsePullRequest = (event, body) => { + const { action, repository, sender, pull_request: pullRequest } = body + if (!pullRequest) { + return + } + + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + + const parsedPullRequest = { + url: pullRequest.html_url, + number: pullRequest.number, + title: parseTextFields({ field: pullRequest.title }), + body: parseTextFields({ field: pullRequest.body }), + state: pullRequest.state, + commentCount: pullRequest.comments, + createdAt: pullRequest.created_at, + updatedAt: pullRequest.updated_at, + closedAt: pullRequest.closed_at + } + + if (pullRequest.assignee) { + parsedPullRequest.assignee = { + url: pullRequest.assignee.html_url, + username: pullRequest.assignee.login, + avatarUrl: pullRequest.assignee.avatar_url, + type: pullRequest.assignee.type, + siteAdmin: pullRequest.assignee.siteAdmin + } + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + event, + action, + repository: parsedRepo, + sender: parsedSender, + pullRequest: parsedPullRequest, + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} | ${event} #${parsedPullRequest.number} - ${ + parsedPullRequest.url + } ${action} by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}` + } +} + +const parseCommitComment = (event, body) => { + const { action, repository, sender, comment } = body + if (!comment) { + return + } + + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + + const parsedComment = { + commitId: comment.commit_id, + url: comment.html_url, + body: parseTextFields({ field: comment.body }), + line: comment.line, + path: comment.path, + position: comment.position, + createdAt: comment.created_at, + updatedAt: comment.updated_at, + authorAssociation: comment.author_association + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} - ${event} ${parsedComment.commitId} - ${ + parsedComment.url + } ${action} by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}`, + event, + action, + repository: parsedRepo, + sender: parsedSender, + comment: parsedComment + } +} + +const parsePush = (event, body) => { + const { ref, commits, head_commit: headCommit, repository, sender } = body + const commitCount = commits && commits.length + if (!commitCount) { + return + } + + const { 1: refType, 2: branchName } = ref.split('/') + if (refType !== 'heads') { + return + } + + const action = 'Branch' + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + const parsedBranch = { + name: branchName, + url: buildBranchUrl({ repoUrl: parsedRepo.url, branchName }) + } + + const parsedHeadCommit = { + id: headCommit.id, + treeId: headCommit.tree_id, + distinct: headCommit.distinct, + body: parseTextFields({ field: headCommit.message }), + timestamp: headCommit.timestamp, + url: headCommit.url, + author: { + username: headCommit.author.username + }, + committer: { + username: headCommit.committer.username + }, + added: headCommit.added, + removed: headCommit.removed, + modified: headCommit.modified + } + + const reducedCommits = commits.reduce((acc, curr) => { + const { + id, + tree_id: treeId, + distinct, + message: body, + timestamp, + url, + author: { username: authorUsername }, + committer: { username: committerUsername }, + added, + removed, + modified + } = curr + + const currCommit = { + id, + treeId, + distinct, + body: parseTextFields({ field: body }), + timestamp, + url, + author: { username: authorUsername }, + committer: { username: committerUsername }, + added, + removed, + modified + } + + acc.push(currCommit) + return acc + }, []) + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} ${commitCount} commit(s) - ${(headCommit && headCommit.url) || + parsedRepo.url} pushed to branch: ${parsedBranch.name} - ${ + parsedBranch.url + }) by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}`, + event, + action, + branch: parsedBranch, + repository: parsedRepo, + sender: parsedSender, + headCommit: parsedHeadCommit, + commitCount, + commits: reducedCommits + } +} + +const parseRelease = (event, body) => { + const { action, repository, sender, release } = body + if (!release) { + return + } + + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + + const { + html_url: url, + tag_name: tag, + name, + body: releaseBody, + target_commitish: branch, + draft, + author: { login: authorUsername }, + prerelease, + created_at: createdAt, + published_at: publishedAt, + assets, + tarball_url: tarballUrl, + zipball_url: zipballUrl + } = release + + const parsedRelease = { + url, + tag, + name: parseTextFields({ field: name }), + body: parseTextFields({ field: releaseBody }), + branch, + draft, + author: { username: authorUsername }, + prerelease, + createdAt, + publishedAt, + assets, + tarballUrl, + zipballUrl + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} ${event} ${parsedRelease.tag} - ${ + parsedRelease.url + } ${action} by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}`, + event, + action, + repository: parsedRepo, + sender: parsedSender, + release: parsedRelease + } +} + +const parseCreate = (event, body) => { + const { repository, sender, ref: branchName, ref_type: refType } = body + if (refType !== 'branch') { + return + } + + const action = 'Branch' + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + const parsedBranch = { + name: branchName, + url: buildBranchUrl({ repoUrl: parsedRepo.url, branchName }) + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} Branch ${parsedBranch.name} - ${ + parsedBranch.url + }) created by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}`, + event, + action, + repository: parsedRepo, + sender: parsedSender, + branch: parsedBranch + } +} + +const parseDelete = (event, body) => { + const { repository, sender, ref: branchName, ref_type: refType } = body + if (refType !== 'branch') { + return + } + + const action = 'Branch' + const parsedRepo = parseRepo(repository) + const parsedSender = parseSender(sender) + const parsedBranch = { + name: branchName, + url: buildBranchUrl({ repoUrl: parsedRepo.url, branchName }) + } + + return { + ...initEvent({ event, action, webhookName: 'GitHub' }), + message: `${initRepoMessage({ + repoName: parsedRepo.name, + repoUrl: parsedRepo.url + })} Branch ${parsedBranch.name} - ${ + parsedBranch.url + }) deleted by ${initAuthorMessage({ + senderUrl: parsedSender.url, + senderName: parsedSender.username + })}`, + event, + action, + repository: parsedRepo, + sender: parsedSender, + branch: parsedBranch + } +} + +module.exports = formatSematextLogsOutput diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/hash-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/hash-fields.js new file mode 100644 index 00000000..8215433c --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/hash-fields.js @@ -0,0 +1,49 @@ +var crypto = require('crypto') +var set = require('set-value') +var get = require('get-value') + +function replaceAll (target, search, replacement) { + if (!search) { + return target + } + if (!replacement) { + return target + } + return target.split(search).join(replacement) +} + +function hash (input, hashFunction) { + if (!input) { + return + } + var sha256 = crypto.createHash(hashFunction || 'sha256') + sha256.update(input.toString()) + return sha256.digest('hex') +} + +function hashFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + try { + if (config.matchSource.test(context.sourceName || data.logSource)) { + if (config.fields && config.fields instanceof Array) { + for (var i = 0; i < config.fields.length; i++) { + var fieldValue = get(data, config.fields[i]) + if (fieldValue !== undefined) { + var newValue = hash(fieldValue, config.algorithm) + if (data.message && typeof data.message === 'string') { + data.message = replaceAll(data.message, fieldValue, newValue) + } + set(data, config.fields[i], newValue) + } + } + } + } + } catch (ex) { + callback(ex, null) + } + callback(null, data) +} + +module.exports = hashFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/heroku-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/heroku-format.js new file mode 100644 index 00000000..06ddde51 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/heroku-format.js @@ -0,0 +1,76 @@ +function jsonParse (text) { + try { + return JSON.parse(text) + } catch (err) { + return null + } +} + +function extractJson (line, source) { + let parsed = {} + if (/^\[{0,1}\{.*\}]{0,1}$/.test(line)) { + parsed = jsonParse(line) + if (!parsed) { + return null + } + return parsed + } +} + +function filterHerokuMessage (data, context) { + if (data) { + data._type = context.sourceName.replace('_' + context.index, '') + data.logSource = ('' + data.logSource).replace('_' + context.index, '') + const msg = { + message: data.message, + app: data.app, + host: data.host, + process_type: data.process_type, + originalLine: data.originalLine, + severity: data.severity, + facility: data.facility + } + + const optionalFields = [ + 'method', + 'path', + 'host', + 'request_id', + 'fwd', + 'dyno', + 'connect', + 'service', + 'status', + 'bytes' + ] + optionalFields.forEach(function (f) { + if (data[f]) { + msg[f] = data[f] + } + }) + if (!data['@timestamp']) { + msg['@timestamp'] = new Date() + } + + const json = extractJson(msg.message) + if (json && json.message) { + delete msg.message + } + + return { + ...msg, + ...json + } + } +} + +module.exports = function (context, config, eventEmitter, log, callback) { + try { + const parsedLog = filterHerokuMessage(log, context) + + return callback(null, parsedLog) + } catch (err) { + console.log(err) + return callback(null, log) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/httpDeviceDetector.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/httpDeviceDetector.js new file mode 100644 index 00000000..1aa7b82d --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/httpDeviceDetector.js @@ -0,0 +1,21 @@ +const DeviceDetector = require('device-detector-js') +const deviceDetector = new DeviceDetector() + +module.exports = function (context, config, eventEmitter, log, callback) { + try { + const userAgentFieldName = config.userAgentFieldName || 'user_agent' + const userAgentDetailsFieldName = + config.userAgentDetailsFieldName || 'user_agent_details' + + const userAgent = log[userAgentFieldName] + const device = deviceDetector.parse(userAgent) + + const logWithUserAgentDetails = { + [userAgentDetailsFieldName]: device, + ...log + } + return callback(null, logWithUserAgentDetails) + } catch (err) { + return callback(null, log) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/ip-truncate-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/ip-truncate-fields.js new file mode 100644 index 00000000..75eac625 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/ip-truncate-fields.js @@ -0,0 +1,88 @@ +/** + +outputFilter: + ip-truncate-fields: + module: ip-truncate-fields + # JS regeular expression to match log source name + matchSource: !!js/regexp nginx + # not existing fields are ignored + # existing field values are replaced according to config below + fields: + - client_ip + - x.y +*/ + +var set = require('set-value') +var get = require('get-value') + +function replaceAll (target, search, replacement) { + if (!target) { + return target + } + if (!search) { + return target + } + if (!replacement) { + return target + } + return target.split(search).join(replacement) +} + +function truncateIpV4 (ip, blocksToKeep) { + if (!ip) { + return + } + var blocks = ip.split('.') + var length = blocks.length // should be 4 for valid IPv4 adresses + blocks = blocks.splice(0, blocksToKeep) + for (var i = 0; i < length - blocksToKeep; i++) { + blocks.push('0') + } + return blocks.join('.') +} + +function truncateIpV6 (ip) { + if (!ip) { + return ip + } + var blocks = ip.split(':') + var length = blocks.length + var splitted = blocks[length - 1].split('/') + splitted[0] = '0' + blocks[blocks.length - 1] = splitted.join('/') + return blocks.join(':') +} + +function ipTuncateFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + try { + if (config.matchSource.test(context.sourceName || data.logSource)) { + if (config.fields && config.fields instanceof Array) { + for (var i = 0; i < config.fields.length; i++) { + if (data[config.fields[i]] !== undefined) { + var newValue = null + var fieldValue = String(get(data, config.fields[i]) || '') + if (fieldValue.indexOf(':') > -1) { + newValue = truncateIpV6(data[config.fields[i]]) + } + if (fieldValue.indexOf('.') > -1) { + newValue = truncateIpV4(fieldValue, 3) + } + if (data.message && typeof data.message === 'string') { + data.message = replaceAll(data.message, fieldValue, newValue) + } + set(data, config.fields[i], newValue) + } + } + } + } + } catch (ex) { + console.log(ex) + callback(null, data) + } + + callback(null, data) +} +module.exports = ipTuncateFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/journald-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/journald-format.js new file mode 100644 index 00000000..48a06e2d --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/journald-format.js @@ -0,0 +1,148 @@ +// Transforming journald fields to Sematext Common Schema https://sematext.com/docs/tags/common-schema/ +// see https://sematext.com/docs/agents/sematext-agent/processes/metadata/ +const Parser = require('../../parser/parser.js') +const logParser = new Parser() + +// journald fields for lowercase access +const __REALTIME_TIMESTAMP = '__realtime_timestamp' +const __SOURCE_REALTIME_TIMESTAMP = '_source_realtime_timestamp' +const _HOSTNAME = '_hostname' +const _SYSTEMD_UNIT = '_systemd_unit' +const PRIORITY = 'priority' +const SYSLOG_FACILITY = 'syslog_facility' +const CONTAINER_TAG = 'container_tag' +const CONTAINER_ID_FULL = 'container_id_full' +const CONTAINER_ID = 'container_id' +const CONTAINER_NAME = 'container_name' + +// field mapping for Sematext Common Schema +const processFields = { + _pid: 'pid', + _uid: 'uid', + _gid: 'gid', + _cmdline: 'cmd', + _systemd_cgroup: 'cgroup' +} +// mapping for syslog priority and facility values +const SEVERITY = [ + 'emerg', + 'alert', + 'crit', + 'err', + 'warning', + 'notice', + 'info', + 'debug' +] + +const FACILITY = [ + 'kern', + 'user', + 'mail', + 'daemon', + 'auth', + 'syslog', + 'lpr', + 'news', + 'uucp', + 'cron', + 'authpriv', + 'ftp', + 'ntp', + 'logaudit', + 'logalert', + 'clock', + 'local0', + 'local1', + 'local2', + 'local3', + 'local4', + 'local5', + 'local6', + 'local7' +] + +function applySematextCommonSchema ( + context, + config, + eventEmitter, + log, + callback +) { + try { + if (!config.matchSource.test(context.sourceName || log.logSource)) { + return callback(null, log) + } + + // use Sematext common schema os.host = hostname + const hostname = log[_HOSTNAME] + if (hostname) { + log.os = { host: hostname } + delete log[_HOSTNAME] + } + const timestamp = + log[__REALTIME_TIMESTAMP] || log[__SOURCE_REALTIME_TIMESTAMP] + if (timestamp) { + var d = new Date(Number(timestamp) / 1000) + if (d instanceof Date && !isNaN(d)) { + log['@timestamp'] = d + } + } + const prio = log[PRIORITY] + const facility = log[SYSLOG_FACILITY] + // handling syslog priorit and facility values + if (prio || facility) { + log.facility = FACILITY[facility] + log.severity = SEVERITY[prio] + } + // handling docker journald-drive fields + if (log[CONTAINER_ID_FULL] || log[CONTAINER_NAME]) { + log.container = { + id: log[CONTAINER_ID_FULL] || log[CONTAINER_ID], + name: log[CONTAINER_NAME], + tag: log[CONTAINER_TAG] + } + delete log[CONTAINER_NAME] + delete log[CONTAINER_TAG] + delete log[CONTAINER_ID_FULL] + } + if (log._pid) { + log.process = {} + for (const field in processFields) { + if (log[field]) { + log.process[processFields[field]] = log[field] + delete log[field] + } + } + } + // optional parsing of message field with logagent patterns + if (config.parseMessageField === true && log.message !== undefined) { + let source = log[_SYSTEMD_UNIT] + if (log.container) { + source = log.container.tag || log.container.name + } + + logParser.parseLine(log.message, source, function (err, data) { + if (err) { + return callback(null, log) + } + + if (data && data._type) { + const type = `${data._type}` + delete data['@timestamp'] + delete data.logSource + delete data._type + log[type] = {} + Object.assign(log[type], data) + } + callback(null, log) + }) + } else { + callback(null, log) + } + } catch (ex) { + callback(ex, log) + } +} + +module.exports = applySematextCommonSchema diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/kubernetes-enrichment.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/kubernetes-enrichment.js new file mode 100644 index 00000000..b7cb1aa7 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/kubernetes-enrichment.js @@ -0,0 +1,292 @@ +const { KubeConfig } = require('kubernetes-client') +const Client = require('kubernetes-client').Client +const Request = require('kubernetes-client/backends/request') +const parser = require('../../util/parser.js') +const kubeconfig = new KubeConfig() +const consoleLogger = require('../../util/logger.js') +const LRU = require('lru-cache') +const podCache = new LRU({ + max: 2000, + maxAge: 1000 * 60 * 60 +}) + +var client = null +const FALSE_REGEX = /false/i +const TRUE_REGEX = /true/i +const useLogsEnabledPodAnnotation = TRUE_REGEX.test( + process.env.USE_LOGS_ENABLED_K8S_ANNOTATIONS || 'true' +) + +// The run.sh sets both LOGSENE_ENABLED_DEFAULT and LOGS_ENABLED_DEFAULT to TRUE by default. +// Users should set either of these two to FALSE to disable logging by default for all containers. +// This means you need to use whitelisting to enable logging for certain containers. +// In the ENV for those containers set 'LOGS_ENABLED=true' or 'LOGSENE_ENABLED=true'. +// const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test((process.env.LOGSENE_ENABLED_DEFAULT && process.env.LOGS_ENABLED_DEFAULT) || 'true') + +const LOGSENE_ENABLED_DEFAULT = TRUE_REGEX.test( + process.env.LOGSENE_ENABLED_DEFAULT +) +const LOGS_ENABLED_DEFAULT = TRUE_REGEX.test(process.env.LOGS_ENABLED_DEFAULT) +const FINAL_LOGS_ENABLED_DEFAULT = + LOGSENE_ENABLED_DEFAULT && LOGS_ENABLED_DEFAULT + +if (process.env.KUBERNETES_PORT_443_TCP !== undefined) { + kubeconfig.loadFromCluster() +} else { + kubeconfig.loadFromDefault() +} +client = new Client({ backend: new Request({ kubeconfig }) }) +client.loadSpec().catch(error => { + consoleLogger.error('Error in k8s client', error) +}) + +function kubernetesOutputFilter ( + context, + config, + eventEmitter, + data, + callback +) { + // we use the config object to track state of each plugin instance + if (!config.client) { + initKubernetesClient(context, config, eventEmitter, data, callback) + } else { + enrichLogs(context, config, eventEmitter, data, callback) + } +} + +function initKubernetesClient (context, config, eventEmitter, data, callback) { + // do we run in k8s cluster? + config.client = client + config.getPodSpec = function (namespace, podName, cb) { + this.client.api.v1 + .namespaces(namespace) + .pods(podName) + .get(cb) + }.bind(config) + + enrichLogs(context, config, eventEmitter, data, callback) +} + +const getPodSpec = async (config, namespace, podName, cb) => { + try { + var spec = await config.client.api.v1 + .namespaces(namespace) + .pods(podName) + .get() + cb(null, spec.body) + } catch (error) { + cb(new Error('Kubernetes API not ready')) + } +} + +function removeFields (pod, data) { + if (pod && pod.stRemoveFields === false) { + return + } + var annotations = pod.metadata.annotations + if (!annotations) { + pod.stRemoveFields = false + return + } + var removeFields = + annotations.REMOVE_FIELDS || annotations['sematext.com/logs-remove-fields'] + if (removeFields) { + var fieldNames = removeFields.split(',') + for (var i = 0; i < fieldNames.length; i++) { + delete data[fieldNames[i]] + } + } else { + pod.stRemoveFields = false + } +} + +function checkLogsEnabled (pod, data, context, config) { + if (pod.stLogEnabled !== undefined) { + data.stLogEnabled = pod.stLogEnabled + + if (config.debug === true) { + consoleLogger.log( + `sematext.com/logs-enabled = ${pod.stLogEnabled} for ${pod.metadata.name}` + ) + } + + return + } + + pod.stLogEnabled = FINAL_LOGS_ENABLED_DEFAULT + + if (config.debug === true) { + consoleLogger.log( + `sematext.com/logs-enabled = ${pod.stLogEnabled} for ${pod.metadata.name}` + ) + } + + var annotations = pod.metadata.annotations + if (annotations) { + var logsEnabled = annotations['sematext.com/logs-enabled'] + if (logsEnabled !== undefined) { + if (TRUE_REGEX.test(logsEnabled)) { + pod.stLogEnabled = true + } else if (FALSE_REGEX.test(logsEnabled)) { + pod.stLogEnabled = false + } + } + data.stLogEnabled = pod.stLogEnabled + + if (config.debug === true) { + consoleLogger.log( + `sematext.com/logs-enabled = ${pod.stLogEnabled} for ${pod.metadata.name}` + ) + } + } +} + +function checkLogsReceiverUrl (pod, data, context) { + var annotations = pod.metadata.annotations + if (annotations && annotations['sematext.com/logs-receiver-urls']) { + context.logsReceivers = parser.parseReceiverList( + annotations['sematext.com/logs-receiver-urls'] + ) + return + } + + context.logsReceiver = + annotations && annotations['sematext.com/logs-receiver-url'] +} + +function addLogsIndex (pod, data) { + if (pod.stLogsTokenSet === false) { + return + } + if (pod.stLogsTokenSet === true) { + data._index = pod.stToken + return + } + if (!pod.metadata.annotations) { + pod.stLogsTokenSet = false + return + } + // get ST Logs Token from pod annotation + pod.stToken = pod.metadata.annotations['sematext.com/logs-token'] + // get comma separated list of fields from pod annotation + if (pod.stToken) { + data._index = pod.stToken + pod.stLogsTokenSet = true + } else { + pod.stLogsTokenSet = false + } +} + +function replaceDockerImageName (pod, data) { + if (data.kubernetes && data.container && pod.stImageCache) { + var containerName = data.kubernetes.pod.container.name + var imageInfo = pod.stImageCache[data.kubernetes.pod.name + containerName] + if (!imageInfo) { + return + } + if (data.container.image.name === 'sha256') { + data.container.image.digest = 'sha256:' + data.container.image.tag + } + data.container.image.name = imageInfo.name + data.container.image.tag = imageInfo.tag + } +} + +function processAnnotations ( + data, + context, + config, + pod, + eventEmitter, + callback +) { + if (pod && pod.metadata) { + if (useLogsEnabledPodAnnotation) { + checkLogsEnabled(pod, data, context, config) + // var logsEnabled = context.dockerInspect.LOGSENE_ENABLED + if (data.stLogEnabled === false) { + // allow input plugins to close the input stream, e.g. input/docker/docker.js + eventEmitter.emit('dropLogsRequest', context, data) + // logs will be droped, skip enrichment + return callback() + } + } + replaceDockerImageName(pod, data) + removeFields(pod, data) + addLogsIndex(pod, data) + checkLogsReceiverUrl(pod, data, context) + return callback(null, data) + } + + // fallback to return data if no pod info found + return callback(null, data) +} + +function getPodCacheKey (data) { + return `${data.kubernetes.namespace}/${data.kubernetes.pod.name}` +} + +function enrichLogs (context, config, eventEmitter, data, callback) { + if (!(data.kubernetes && data.kubernetes.pod)) { + return callback(null, data) + } + const cachedPod = podCache.get(getPodCacheKey(data)) + if (cachedPod) { + processAnnotations(data, context, config, cachedPod, eventEmitter, callback) + if (data.stLogEnabled === false) { + if (config.debug === true) { + consoleLogger.log( + 'logs dropped ' + + data.kubernetes.namespace + + '/' + + data.kubernetes.pod.name, + data.message + ) + } + } + } else { + getPodSpec( + config, + data.kubernetes.namespace, + data.kubernetes.pod.name, + function (err, pod) { + if (err) { + consoleLogger.log(err.message) + return callback(null, data) + } + podCache.set(getPodCacheKey(data), pod) + // create hashtable with containerName -> imageInformation + pod.stImageCache = {} + if (pod.spec && pod.spec.containers) { + var podContainers = pod.spec.containers + for (var i = 0; i < podContainers.length; i++) { + var container = podContainers[i] + // split imageName:version + var imageInfo = container.image.split(':') + // split registry/imageName + var imageRegistryInfo = container.image.split('/') + var imageKey = pod.metadata.name + container.name + pod.stImageCache[imageKey] = { + image: container.image, + name: imageInfo[0], + registry: imageRegistryInfo[0] + } + if (imageInfo.length > 1) { + pod.stImageCache[imageKey].tag = imageInfo[1] + } + if (imageRegistryInfo.length > 1) { + pod.stImageCache[imageKey].plainImageName = imageRegistryInfo[1] + } + } + } + if (config.debug) { + consoleLogger.log('pod spec: ' + JSON.stringify(pod)) + } + processAnnotations(data, context, pod, eventEmitter, callback) + } + ) + } +} + +module.exports = kubernetesOutputFilter diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/lowercase-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/lowercase-fields.js new file mode 100644 index 00000000..2f2c14f8 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/lowercase-fields.js @@ -0,0 +1,43 @@ +const get = require('get-value') +const unset = require('unset-value') +const set = require('set-value') + +function renameFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + if (config.allFields !== true) { + config.allFields = false + } + + try { + if (!config.matchSource.test(context.sourceName || data.logSource)) { + return callback(null, data) + } + + if (config.allFields === true) { + const fields = Object.keys(data) + fields.forEach(field => { + const lowerCaseField = field.toLowerCase() + const fieldValue = get(data, field) + unset(data, field) + set(data, lowerCaseField, fieldValue) + }) + return callback(null, data) + } + + const fields = config.fields + fields.forEach(field => { + const { fieldName } = field + const lowerCaseField = fieldName.toLowerCase() + const fieldValue = get(data, fieldName) + unset(data, fieldName) + set(data, lowerCaseField, fieldValue) + }) + + callback(null, data) + } catch (ex) { + callback(ex, null) + } +} +module.exports = renameFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/remove-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/remove-fields.js new file mode 100644 index 00000000..ae2ffb83 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/remove-fields.js @@ -0,0 +1,44 @@ +var get = require('get-value') +var unset = require('unset-value') + +function replaceAll (target, search, replacement) { + if (!search) { + return target + } + if (!replacement) { + return target + } + return target.split(search).join(replacement) +} + +function removeFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + try { + if (config.matchSource.test(context.sourceName || data.logSource)) { + if (config.fields && config.fields instanceof Array) { + for (var i = 0; i < config.fields.length; i++) { + var fieldValue = get(data, config.fields[i]) + unset(data, config.fields[i]) + if (config.maskValuesInFields) { + for (var j = 0; j < config.maskValuesInFields.length; j++) { + var value = data[config.maskValuesInFields[j]] + if (value && typeof value === 'string') { + data[config.maskValuesInFields[j]] = replaceAll( + data[config.maskValuesInFields[j]], + fieldValue, + config.maskValuesString || '!REMOVED!' + ) + } + } + } + } + } + } + } catch (ex) { + callback(ex, null) + } + callback(null, data) +} +module.exports = removeFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/rename-fields.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/rename-fields.js new file mode 100644 index 00000000..64f1de43 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/rename-fields.js @@ -0,0 +1,27 @@ +const get = require('get-value') +const unset = require('unset-value') +const set = require('set-value') + +function renameFields (context, config, eventEmitter, data, callback) { + if (data === undefined) { + return callback(new Error('data is null'), null) + } + try { + if (!config.matchSource.test(context.sourceName || data.logSource)) { + return callback(null, data) + } + + const fields = config.fields + fields.forEach(field => { + const { fieldName, renameTo } = field + const fieldValue = get(data, fieldName) + unset(data, fieldName) + set(data, renameTo, fieldValue) + }) + + callback(null, data) + } catch (ex) { + callback(ex, null) + } +} +module.exports = renameFields diff --git a/node_modules/@sematext/logagent/lib/plugins/output-filter/vercel-format.js b/node_modules/@sematext/logagent/lib/plugins/output-filter/vercel-format.js new file mode 100644 index 00000000..b0a26ab9 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output-filter/vercel-format.js @@ -0,0 +1,124 @@ +const durationRegex = /Duration:\s([\d+]+\.[\d+]+)\sms/ +const billedDurationRegex = /Billed\sDuration:\s([\d+]+)\sms/ +const memorySizeRegex = /Memory\sSize:\s([\d+]+)\sMB/ +const maxMemoryUsedRegex = /Max\sMemory\sUsed:\s([\d+]+)\sMB/ +const initDurationRegex = /Init\sDuration:\s([\d+]+\.[\d+]+)\sms/ + +function formatVercelLogsOutput (context, config, eventEmitter, log, callback) { + try { + const parsedLog = parseVercelLog(log) + const error = parseVercelError(log.message) + const logToSend = { ...parsedLog, ...error } + + if (config.debug) { + console.log(logToSend) + } + + if (logToSend) { + callback(null, logToSend) + } + } catch (e) { + if (config.debug) { + console.log(e, log) + } + + callback(null, log) + } +} + +function parseVercelLog (log) { + // if the log is not from Lambda, return right away + if (log && log.source && log.source !== 'lambda') { + return log + } + + // if the log is a cached request, handle parsing here + if (log && log.proxy && log.proxy.cacheId) { + const { source, ...rest } = log + return { + message: `Cache hit for requestId: ${rest.proxy.cacheId}`, + source: 'cache', + ...rest + } + } + + // if the log is a Lambda request enrich log with metrics + const { message, ...rest } = log + const splitN = message.split('\n') + const filtered = splitN.filter(f => f.startsWith('REPORT')) + const splitT = filtered.pop().split('\t') + const lambdaVals = splitT.splice(1, 5) + + const duration = +lambdaVals[0].match(durationRegex)[1] + const billedDuration = +lambdaVals[1].match(billedDurationRegex)[1] + const memorySize = +lambdaVals[2].match(memorySizeRegex)[1] + const maxMemoryUsed = +lambdaVals[3].match(maxMemoryUsedRegex)[1] + const initDuration = {} + if (lambdaVals[4] && lambdaVals[4].length) { + initDuration.coldStart = true + initDuration.initDuration = +lambdaVals[4].match(initDurationRegex)[1] + } + + return { + message, + duration, + billedDuration, + memorySize, + maxMemoryUsed, + ...initDuration, + ...rest + } +} + +function parseVercelError (message) { + try { + const errorLine = message + .split('\n') + .filter(line => line.length) + .filter( + line => + !( + line.startsWith('REPORT') || + line.startsWith('END') || + line.startsWith('START') + ) + ) + .map(line => removeErrorLineStart(line)) + .shift() + + const { errorType, errorMessage, stack } = tryParseErrorLine(errorLine) + + return { + error: { + type: errorType, + message: errorMessage, + stack: stack.join('\n') + } + } + } catch (error) { + // return empty object it is not an error message + return {} + } +} + +function removeErrorLineStart (line) { + const res = line.replace(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/, '') + return res.replace( + /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i, + '' + ) +} + +function tryParseErrorLine (line) { + const json = line.match(/{[\s\S]*}/) + if (json === null) { + return line + } + try { + return JSON.parse(json[0]) + } catch (e) { + return line + } +} + +module.exports = formatVercelLogsOutput diff --git a/node_modules/@sematext/logagent/lib/plugins/output/aws-elasticsearch.js b/node_modules/@sematext/logagent/lib/plugins/output/aws-elasticsearch.js new file mode 100644 index 00000000..8c68d052 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/aws-elasticsearch.js @@ -0,0 +1,88 @@ +'use strict' +var elasticsearch = require('elasticsearch') +const AWS = require('aws-sdk') +var consoleLogger = require('../../util/logger.js') +/** +Config File format: +# global AWS settings +aws: + auth: 'user:password' + awsConfigFile: ./aws-config.json +output: + module: output-aws-elasticsearch + url: https://my-url.es.amazonaws.com + index: indexName + type: typeName + # local AWS settings (overwrite global AWS settings) + auth: 'user:password' + awsConfigFile: ./aws-config.json +*/ + +function OutputAwsElasticsearch (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + // read global AWS settings if the plugin has no local AWS settings + var auth = config.auth + var awsConfigFile = config.awsConfigFile + if (!config.auth && config.configFile.aws && config.configFile.aws.auth) { + auth = config.configFile.aws.auth + } + if ( + !config.awsConfigFile && + config.configFile.aws && + config.configFile.aws.awsConfigFile + ) { + awsConfigFile = config.configFile.aws.awsConfigFile + } + var esClientConfig = { + log: config.log, + host: config.url, + auth: auth, + connectionClass: config.awsConfigFile ? require('http-aws-es') : undefined, + awsConfig: AWS.config.loadFromPath(awsConfigFile) + } + this.client = new elasticsearch.Client(esClientConfig) +} + +OutputAwsElasticsearch.prototype.eventHandler = function (data, context) { + // support for time-based index patterns + var index = this.config.index + index = index.replace(/YYYY|MM|DD/g, function (match) { + if (match === 'YYYY') { + return '' + data['@timestamp'].getFullYear() + } + if (match === 'MM') { + return ('0' + (data['@timestamp'].getMonth() + 1)).substr(-2) + } + if (match === 'DD') { + return ('0' + data['@timestamp'].getDate()).substr(-2) + } + return match + }) + + var obj = { + index: index, + type: this.config.type, + body: data + } + var self = this + this.client.index(obj, function (err, data) { + if (!err) { + self.eventEmitter.emit('aws-insert', data) + } else { + self.eventEmitter.emit('aws-insert-error', err, data) + consoleLogger.error('aws-elasticsearch:' + err) + } + }) +} + +OutputAwsElasticsearch.prototype.start = function () { + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +OutputAwsElasticsearch.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = OutputAwsElasticsearch \ No newline at end of file diff --git a/node_modules/@sematext/logagent/lib/plugins/output/clickhouse.js b/node_modules/@sematext/logagent/lib/plugins/output/clickhouse.js new file mode 100644 index 00000000..bb97928e --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/clickhouse.js @@ -0,0 +1,70 @@ +'use strict' +// var ClickHouse = require('clickhouse') +const { ClickHouse } = require('clickhouse') +var consoleLogger = require('../../util/logger.js') + +function ClickHouseOutput (config, eventEmitter) { + this.config = config.configFile.output.clickhouse + this.eventEmitter = eventEmitter + var chOptions = { + url: this.config.url || 'http://localhost', + port: this.config.port || 8123, + debug: this.config.debug || false + } + if (this.config.user) { + chOptions.user = this.config.user + } + if (this.config.password) { + chOptions.password = this.config.password + } + if (this.config.basicAuth !== undefined) { + chOptions.basicAuth = this.config.basicAuth + } + if (this.config.database !== undefined) { + chOptions.config = { database: this.config.database } + } + if (this.config.useGzip !== undefined) { + chOptions.isUseGzip = this.config.useGzip + } + + this.ch = new ClickHouse(chOptions) + if (this.config.debug) { + var cfg = this.config + delete cfg.configFile + consoleLogger.log(JSON.stringify(config)) + } + this.fields = this.config.fields + this.table = this.config.table + this.data = [] + this.ws = this.ch.insert('INSERT INTO ' + this.table).stream() + this.ws.on('error', console.error) +} + +ClickHouseOutput.prototype.eventHandler = function (data, context) { + var record = [] + Object.keys(this.fields).forEach( + function (value) { + if (this.fields[value] === '@timestamp') { + record.push(data[this.fields[value]].getTime()) + } else { + record.push(data[this.fields[value]] || null) + } + }.bind(this) + ) + this.ws.on('error', console.log) + this.ws.writeRow(record) + this.ws.exec() + this.ws = this.ch.insert('INSERT INTO ' + this.table).stream() + this.ws.on('error', console.error) +} + +ClickHouseOutput.prototype.start = function () { + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +ClickHouseOutput.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = ClickHouseOutput diff --git a/node_modules/@sematext/logagent/lib/plugins/output/files.js b/node_modules/@sematext/logagent/lib/plugins/output/files.js new file mode 100644 index 00000000..77b5e17b --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/files.js @@ -0,0 +1,83 @@ +'use strict' +const format = require('string-template') +const prettyjson = require('prettyjson') +const safeStringify = require('fast-safe-stringify') +const rfs = require('rotating-file-stream') + +function OutputFile (config, eventEmitter) { + this.streams = {} + this.config = config + this.eventEmitter = eventEmitter + this.sourceNameFilter = new RegExp(config.sourceName || '.*') + this.typeFilter = new RegExp(config.typeName || '.*') + if (config.format === 'ldjson') { + this.config.ldjson = true + } + if (config.format === 'yaml') { + this.config.yaml = true + } + if (config.format === 'pretty') { + this.config.pretty = true + } + if (config.format === 'template') { + this.config.formatTemplate = true + } + if (config.compress === false) { + this.config.compress = false + } else { + this.config.compress = true + } +} + +OutputFile.prototype.createStream = function (file) { + const stream = rfs(file, { + size: this.config.size || '10M', // rotate every 10 MegaBytes written + interval: this.config.interval || '1d', // rotate daily + compress: this.config.compress // compress rotated files + }) + stream.on('error', console.log) + stream.on('warning', console.log) + + return stream +} + +OutputFile.prototype.eventHandler = function (data, context) { + if ( + this.sourceNameFilter.test(context.sourceName) && + this.typeFilter.test(data._type) + ) { + const fileName = format(this.config.fileName, data) + if (!this.streams[fileName]) { + this.streams[fileName] = this.createStream(fileName) + } + const stream = this.streams[fileName] + + if (this.config.pretty) { + return stream.write(JSON.stringify(data, null, '\t')) + } + + if (this.config.yaml) { + return stream.write(prettyjson.render(data, { noColor: false }) + '\n') + } + + if (this.config.formatTemplate) { + return stream.write(format(this.config.template, data) + '\n') + } + + return stream.write(safeStringify(data) + '\n') + } +} + +OutputFile.prototype.start = function () { + if (!this.config.fileName) { + throw new Error('missing fileName property') + } + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +OutputFile.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = OutputFile diff --git a/node_modules/@sematext/logagent/lib/plugins/output/gelfout.js b/node_modules/@sematext/logagent/lib/plugins/output/gelfout.js new file mode 100644 index 00000000..08bbca8d --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/gelfout.js @@ -0,0 +1,49 @@ +'use strict' +var graygelf = require('graygelf') + +function OutputGELF (config, eventEmitter) { + this.config = config + this.config.port = config.port || 12100 + this.config.host = config.host || '0.0.0.0' + this.compression = config.compression || 'deflate' + this.chunkSize = config.chunkSize || 1024 + this.eventEmitter = eventEmitter + this.log = graygelf({ + host: this.config.host, + port: this.config.port, + compressType: this.compression, + chunkSize: this.chunkSize + }) +} + +OutputGELF.prototype.eventHandler = function (data, context) { + if (this.config.debug) { + console.log('context ' + JSON.stringify(context)) + } + var rawMessage = this.mapData(data, context) + this.log.raw(rawMessage) +} + +OutputGELF.prototype.mapData = function (data, context) { + var timestamp = data['@timestamp'] + var severity = data['severity'] || 'INFO' + var message = data['message'] + var srcName = context['name'] + return { + timestamp: timestamp, + level: severity, + full_message: message, + short_message: 'src:logagent-' + srcName + } +} + +OutputGELF.prototype.start = function () { + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +OutputGELF.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = OutputGELF diff --git a/node_modules/@sematext/logagent/lib/plugins/output/influxdb.js b/node_modules/@sematext/logagent/lib/plugins/output/influxdb.js new file mode 100644 index 00000000..a39702fa --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/influxdb.js @@ -0,0 +1,266 @@ +'use strict' +var consoleLogger = require('../../util/logger.js') +var json2influx = require('json-influx').convert +var flatten = require('flat') +var request = require('requestretry') +var os = require('os') +/** example configuration + output: + module: output-influxdb + url: influx://127.0.0.1:1883 + topic: all_events + tags: + token: SPM_TOKEN + role: backend + host: myServerName + filter: + field: logSource + match: sensor.* +*/ +function OutputInflux (config, eventEmitter) { + this.config = config + this.buffer = [] + this.eventEmitter = eventEmitter + if ( + this.config.filter && + this.config.filter.match && + this.config.filter.field + ) { + this.config.filter.match = RegExp(this.config.filter.match) + } + if (this.config.ignoreFields && this.config.ignoreFields.length > 0) { + this.ignoreFields = {} + for (var i = 0; i < this.config.ignoreFields.length; i++) { + this.ignoreFields[this.config.ignoreFields[i]] = true + } + } + if (this.config.maxBufferSize === undefined) { + // set default + this.config.maxBufferSize = 100 + } + if (this.config.maxBufferSize <= 0) { + // set default to 100, when buffer size is set to 0 or negative values + this.config.maxBufferSize = 100 + } + if (!this.config.flushInterval) { + // set default 10 seconds + this.config.flushInterval = 10 + } + if (this.config.flushInterval < 0.5) { + // don't allow more than 2 requests per second + this.config.flushInterval = 1 + } + if (!this.config.tags) { + this.config.tags = { + host: os.hostname() + } + } else { + this.config.tags.host = os.hostname() + } +} +module.exports = OutputInflux + +OutputInflux.prototype.start = function () { + var self = this + self.ping() + self.createDb() + this.evtFunction = this.eventHandler.bind(this) + this.eventEmitter.on('data.parsed', this.evtFunction) + if (self.config.debug) { + consoleLogger.log('output-influxdb plugin started ' + this.config.url) + } + var sendBuffer = self.sendBuffer.bind(this) + this.timerId = setInterval(function () { + sendBuffer() + }, 1000 * this.config.flushInterval) +} + +OutputInflux.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.evtFunction) + clearInterval(this.timerId) + cb() +} + +OutputInflux.prototype.ping = function (cb) { + var self = this + var options = { + method: 'get', + url: this.config.url + '/ping', + body: '', + maxAttempts: 1, // try 1 time + retryDelay: 500 // wait for 0.5s before trying again + // retryStrategy: request.RetryStrategies.HTTPOrNetworkError + } + request(options, function (err, response, body) { + if (self.config.debug === true && response && response.attempts) { + consoleLogger.log( + 'output-influxdb: ' + + response.attempts + + ' attempts ' + + options.url + + ' ' + + response.statusCode + ) + } + if (err) { + self.eventEmitter.emit( + 'error', + 'output-influxdb: connection error in ping: ' + + self.config.url + + '/ping ' + + err + ) + if (cb) { + cb(err) + } + } + }) +} + +OutputInflux.prototype.createDb = function (cb) { + var self = this + var options = { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + }, + method: 'post', + url: this.config.url + '/query', + formData: { + q: 'CREATE DATABASE ' + self.config.db + }, + maxAttempts: 5, + retryDelay: 1000, + retryStrategy: request.RetryStrategies.HTTPOrNetworkError + } + request(options, function (err, response, body) { + if (self.config.debug === true && response && response.attempts) { + consoleLogger.log( + 'output-influxdb: ' + + response.attempts + + ' attempts ' + + options.url + + ' ' + + body + ) + } + if (err) { + self.eventEmitter.emit('error', 'output-influxdb: create database ' + err) + } + if (cb) { + cb(err, response, body) + } + }) +} + +OutputInflux.prototype.addTobuffer = function (influxDbString) { + this.buffer.push(influxDbString) + if (this.buffer.length >= this.config.maxBufferSize) { + this.sendBuffer() + } +} + +OutputInflux.prototype.sendBuffer = function () { + var httpBody = '' + for (var i = 0; i < this.buffer.length; i++) { + httpBody = httpBody + this.buffer[i] + '\n' + } + if (httpBody.length > 0) { + this.buffer = [] + this.send(httpBody) + } +} + +OutputInflux.prototype.send = function (body) { + if (this.config.debug) { + consoleLogger.log( + 'output-influxdb: influx line protocol format \n\t' + + body.replace(/\n/g, '\n\t') + ) + } + var self = this + var options = { + method: 'post', + url: this.config.url + '/write?db=' + self.config.db, + body: body, + maxAttempts: 20, + retryDelay: 3000, + retryStrategy: request.RetryStrategies.HTTPOrNetworkError + } + request(options, function (err, response, body) { + if (self.config.debug === true && response && response.attempts) { + consoleLogger.log( + 'output-influxdb: ' + + response.attempts + + ' attempts ' + + ' ' + + options.url + + ' ' + + body + + ' ' + + response.statusCode + ) + } + if (err) { + self.eventEmitter.emit('error', err) + } + }) +} + +OutputInflux.prototype.convertToInfluxFormat = function (data, context) { + var flat = flatten(data) + var tags = this.config.tags + var fields = {} + var keys = Object.keys(flat) + var ignoreFields = this.ignoreFields || {} + var ts = data['@timestamp'] + if (ts && ts.getTime) { + ts = ts.getTime() * 1000 * 1000 + } else { + ts = Date.now() * 1000 * 1000 + } + for (var i in keys) { + if (ignoreFields[keys[i]] !== true) { + var value = flat[keys[i]] + if (value !== undefined && typeof value === 'number') { + fields[keys[i]] = value + } + if (value !== undefined && typeof value === 'string') { + tags[keys[i]] = value + } + } + } + if (Object.keys(fields).length === 0) { + fields['value'] = 0 + } + return { + measurement: data.measurement || data.logSource || 'unknown', + ts: ts, + tags: tags, + fields: fields + } +} + +OutputInflux.prototype.eventHandler = function (data, context) { + var msg = this.convertToInfluxFormat(data, context) + msg = json2influx(msg) + if (this.config.filter !== undefined) { + // match field with filter expression + var fieldName = this.config.filter.field || 'logSource' + var matchValue = data[fieldName] || '' + var match = this.config.filter.match + if (match.test(matchValue)) { + return this.addTobuffer(msg) + } else { + if (this.config.debug === true) { + consoleLogger.log( + 'output-influxdb: filter expression' + + match + + ' did not match ' + + matchValue + ) + } + } + } else { + return this.addTobuffer(msg) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output/mqtt.js b/node_modules/@sematext/logagent/lib/plugins/output/mqtt.js new file mode 100644 index 00000000..81cb6315 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/mqtt.js @@ -0,0 +1,117 @@ +'use strict' +var safeStringify = require('fast-safe-stringify') +var mqtt = require('mqtt') +var consoleLogger = require('../../util/logger.js') + +/** example configuration + output: + module: mqtt + url: mqtt://127.0.0.1:1883 + topic: all_events + # see https://www.npmjs.com/package/mqtt#connect options + connectOptions: + userName: nobody + password: secret + keepAlive: 60 + wsOptions: + port: 9999 + host: localhost + filter: + field: logSource + match: sensor.* +*/ +function OutputMqtt (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter + if ( + this.config.filter && + this.config.filter.match && + this.config.filter.field + ) { + this.config.filter.match = RegExp(this.config.filter.match) + } +} +module.exports = OutputMqtt + +OutputMqtt.prototype.eventHandler = function (data, context) { + var msg = safeStringify(data) + var topic = this.config.topic + if (this.config.dynamicTopic !== undefined) { + topic = eval(this.config.dynamicTopic) + consoleLogger.log('Topic ' + topic) + if (!topic) { + if (this.config.debug) { + consoleLogger.error( + 'MQTT output: Wrong JavaScript expression in dynamicTopic field using fallback topic ' + + this.config.topic + ) + } + topic = this.config.topic + } + } + if (this.config.filter !== undefined) { + // match field with filter expression + var fieldName = this.config.filter.field || 'logSource' + var matchValue = data[fieldName] || '' + var match = this.config.filter.match + + if (match.test(matchValue)) { + if (this.config.debug === true) { + consoleLogger.log('mqtt publish -t ' + topic + ' -m ' + msg) + } + return this.client.publish(topic, msg) + } else { + if (this.config.debug === true) { + consoleLogger.log( + 'mqtt filter expression' + match + ' did not match ' + matchValue + ) + } + } + } else { + // no filter defined, pass all events + if (this.config.debug === true) { + consoleLogger.log('mqtt pub -t ' + topic + ' -m ' + msg) + } + return this.client.publish(topic, safeStringify(data)) + } +} + +OutputMqtt.prototype.start = function () { + var self = this + this.client = mqtt.connect(this.config.url, this.config.connectOptions || {}) + this.client.on('close', function () { + if (self.config.debug) { + consoleLogger.log('mqtt client connection closed') + } + }) + this.client.on('connect', function () { + if (self.config.debug) { + consoleLogger.log('mqtt client connect ' + self.config.url) + } + }) + this.client.on('reconnect', function () { + if (self.config.debug) { + consoleLogger.log('mqtt client re-connect') + } + }) + this.client.on('offline', function () { + if (self.config.debug) { + consoleLogger.log('mqtt client offline') + } + }) + this.client.on('error', function () { + if (self.config.debug) { + consoleLogger.log('mqtt client error') + } + }) + this.evtFunction = this.eventHandler.bind(this) + this.eventEmitter.on('data.parsed', this.evtFunction) + if (self.config.debug) { + consoleLogger.log('MQTT output plugin started ' + this.config.url) + } +} + +OutputMqtt.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.evtFunction) + cb() +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output/output-http.js b/node_modules/@sematext/logagent/lib/plugins/output/output-http.js new file mode 100644 index 00000000..5a9f668e --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/output-http.js @@ -0,0 +1,152 @@ +'use strict' +var consoleLogger = require('../../util/logger.js') +var request = require('requestretry') +/** example configuration + output: + module: output-http + url: http://localhost:8080/events + format: ldjson + maxBufferSize: 1 + flushInterval: 1 + tags: + token: SPM_TOKEN + role: backend + host: myServerName + filter: + field: logSource + match: sensor.* +*/ +function OutputHttp (config, eventEmitter) { + this.config = config + this.buffer = [] + this.eventEmitter = eventEmitter + if ( + this.config.filter && + this.config.filter.match && + this.config.filter.field + ) { + this.config.filter.match = RegExp(this.config.filter.match) + } + if (this.config.ignoreFields && this.config.ignoreFields.length > 0) { + this.ignoreFields = {} + for (var i = 0; i < this.config.ignoreFields.length; i++) { + this.ignoreFields[this.config.ignoreFields[i]] = true + } + } + if (this.config.maxBufferSize === undefined) { + // set default + this.config.maxBufferSize = 1 + } + if (this.config.maxBufferSize <= 0) { + // set default to 100, when buffer size is set to 0 or negative values + this.config.maxBufferSize = 100 + } + if (!this.config.flushInterval) { + // set default 10 seconds + this.config.flushInterval = 10 + } + if (this.config.flushInterval < 0.5) { + // don't allow more than 2 requests per second + this.config.flushInterval = 1 + } +} +module.exports = OutputHttp + +OutputHttp.prototype.start = function () { + var self = this + this.evtFunction = this.eventHandler.bind(this) + this.eventEmitter.on('data.parsed', this.evtFunction) + if (self.config.debug) { + consoleLogger.log('output-http plugin started ' + this.config.url) + } + var sendBuffer = self.sendBuffer.bind(this) + this.timerId = setInterval(function () { + sendBuffer() + }, 1000 * this.config.flushInterval) +} + +OutputHttp.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.evtFunction) + clearInterval(this.timerId) + cb() +} + +OutputHttp.prototype.addTobuffer = function (line) { + this.buffer.push(line + '\n') + if (this.buffer.length >= this.config.maxBufferSize) { + this.sendBuffer() + } +} + +OutputHttp.prototype.sendBuffer = function () { + var httpBody = '' + for (var i = 0; i < this.buffer.length; i++) { + httpBody = httpBody + this.buffer[i] + '\n' + } + if (httpBody.length > 0) { + this.buffer = [] + this.send(httpBody) + } +} + +OutputHttp.prototype.send = function (body) { + if (this.config.debug) { + consoleLogger.log('output-http: ' + body.replace(/\n/g, '\n\t')) + } + var self = this + var options = { + method: 'post', + url: this.config.url, + body: body, + maxAttempts: 20, + retryDelay: 3000, + retryStrategy: request.RetryStrategies.HTTPOrNetworkError + } + request(options, function (err, response, body) { + if (self.config.debug === true && response && response.attempts) { + consoleLogger.log( + 'output-http: ' + + response.attempts + + ' attempts ' + + ' ' + + options.url + + ' ' + + body + + ' ' + + response.statusCode + ) + } + if (err) { + self.eventEmitter.emit('error', err) + } + }) +} + +OutputHttp.prototype.eventHandler = function (data, context) { + // enrich log with static tags + if (this.config.tags) { + data.tags = this.config.tags + } + // todo: alternative formats in http body + var msg = JSON.stringify(data) + if (this.config.filter !== undefined) { + // match field with filter expression + var fieldName = this.config.filter.field || 'logSource' + var matchValue = data[fieldName] || '' + var match = this.config.filter.match + if (match.test(matchValue)) { + return this.addTobuffer(msg) + } else { + if (this.config.debug === true) { + consoleLogger.log( + 'output-http: filter expression' + + match + + ' did not match ' + + matchValue + ) + } + } + } else { + return this.addTobuffer(msg) + } +} diff --git a/node_modules/@sematext/logagent/lib/plugins/output/output-sematext-events.js b/node_modules/@sematext/logagent/lib/plugins/output/output-sematext-events.js new file mode 100644 index 00000000..8895fdeb --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/output-sematext-events.js @@ -0,0 +1,197 @@ +'use strict' +const consoleLogger = require('../../util/logger.js') +const request = require('requestretry') +/** example configuration + output: + module: output-sematext-events + url: http://localhost:8080/events + format: ldjson + maxBufferSize: 1 + flushInterval: 1 + tags: + token: SPM_TOKEN + role: backend + host: myServerName + filter: + field: logSource + match: sensor.* +*/ + +function jsonParse (text) { + try { + return JSON.parse(text) + } catch (err) { + return null + } +} + +class OutputSematextEvents { + constructor (config, eventEmitter) { + this.config = config + this.buffer = [] + this.eventEmitter = eventEmitter + if ( + this.config.filter && + this.config.filter.match && + this.config.filter.field + ) { + this.config.filter.match = RegExp(this.config.filter.match) + } + if (this.config.ignoreFields && this.config.ignoreFields.length > 0) { + this.ignoreFields = {} + for (var i = 0; i < this.config.ignoreFields.length; i++) { + this.ignoreFields[this.config.ignoreFields[i]] = true + } + } + if (this.config.maxBufferSize === undefined) { + // set default + this.config.maxBufferSize = 1 + } + if (this.config.maxBufferSize <= 0) { + // set default to 100, when buffer size is set to 0 or negative values + this.config.maxBufferSize = 100 + } + if (!this.config.flushInterval) { + // set default 10 seconds + this.config.flushInterval = 10 + } + if (this.config.flushInterval < 0.5) { + // don't allow more than 2 requests per second + this.config.flushInterval = 1 + } + } + + start () { + this.evtFunction = this.eventHandler.bind(this) + this.eventEmitter.on('data.parsed', this.evtFunction) + if (this.config.debug) { + consoleLogger.log( + 'output-sematext-events plugin started ' + this.config.url + ) + } + var sendBuffer = this.sendBuffer.bind(this) + this.timerId = setInterval(function () { + sendBuffer() + }, 1000 * this.config.flushInterval) + } + + stop (cb) { + this.eventEmitter.removeListener('data.parsed', this.evtFunction) + clearInterval(this.timerId) + cb() + } + + addTobuffer (line) { + this.buffer.push(line + '\n') + if (this.buffer.length >= this.config.maxBufferSize) { + this.sendBuffer() + } + } + + sendBuffer () { + var httpBody = '' + for (var i = 0; i < this.buffer.length; i++) { + httpBody = httpBody + this.buffer[i] + '\n' + } + if (httpBody.length > 0) { + this.buffer = [] + this.send(httpBody) + } + } + + send (body) { + if (this.config.debug) { + consoleLogger.log( + 'output-sematext-events: ' + body.replace(/\n/g, '\n\t') + ) + } + + var self = this + var options = { + method: 'post', + url: this.config.eventsReceiver, + body: body, + maxAttempts: 20, + retryDelay: 3000, + retryStrategy: request.RetryStrategies.HTTPOrNetworkError + } + request(options, function (err, response, body) { + if (response.statusCode === 403) { + self.eventEmitter.emit('error', jsonParse(body).error) + } + if (err) { + self.eventEmitter.emit('error', err) + } + if (self.config.debug === true && response && response.attempts) { + consoleLogger.log( + 'output-sematext-events: ' + + response.attempts + + ' attempts ' + + ' ' + + options.url + + ' ' + + body + + ' ' + + response.statusCode + ) + } + }) + } + + eventHandler (data, context) { + if (!context.index) { + if (this.config.debug === true) { + consoleLogger.log('output-sematext-events: no token') + } + return + } + + if (this.config.region && this.config.region.toLowerCase() === 'us') { + this.config.receiver = 'https://event-receiver.sematext.com' + } + if (this.config.region && this.config.region.toLowerCase() === 'eu') { + this.config.receiver = 'https://event-receiver.eu.sematext.com' + } + + if (!this.config.receiver) { + if (this.config.debug === true) { + consoleLogger.log('output-sematext-events: no events receiver URL') + } + return + } + + // build the events receiver from the base receiver URL and the token + this.config.eventsReceiver = `${this.config.receiver}/${context.index}/event` + + // enrich log with static tags + if (this.config.tags) { + data.tags = this.config.tags + } + + // todo: alternative formats in http body + const msg = JSON.stringify(data) + + if (this.config.filter !== undefined) { + // match field with filter expression + const fieldName = this.config.filter.field || 'logSource' + const matchValue = data[fieldName] || '' + const match = this.config.filter.match + if (match.test(matchValue)) { + return this.addTobuffer(msg) + } else { + if (this.config.debug === true) { + consoleLogger.log( + 'output-sematext-events: filter expression' + + match + + ' did not match ' + + matchValue + ) + } + } + } else { + return this.addTobuffer(msg) + } + } +} + +module.exports = OutputSematextEvents diff --git a/node_modules/@sematext/logagent/lib/plugins/output/prometheus-alertmanager.js b/node_modules/@sematext/logagent/lib/plugins/output/prometheus-alertmanager.js new file mode 100644 index 00000000..cd78ea55 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/prometheus-alertmanager.js @@ -0,0 +1,110 @@ +'use strict' +var format = require('string-template') +var request +try { + request = require('request') +} catch (e) { + request = { + post: function () { + require('request') + } + } +} +function OutputPrometheusAlertmanager (config, eventEmitter) { + if (!config || !config.url) { + throw new TypeError('Please specify Prometheus Alertmanager "url"') + } + this.config = config + this.eventEmitter = eventEmitter +} + +/* see https://prometheus.io/docs/alerting/clients/ +/* payload: +[ + { + "labels": { + "": "", + ... + }, + "annotations": { + "": "", + }, + "startsAt": "", + "endsAt": "", + "generatorURL": "" + }, + ... +] +*/ +OutputPrometheusAlertmanager.prototype.buildAlert = function (data, context) { + var alert = { + labels: {}, + annotations: {} + } + if (this.config.alertTemplate) { + if (this.config.alertTemplate.generatorURL) { + alert.generatorURL = format(this.config.alertTemplate.generatorURL, data) + } + var labels = Object.keys(this.config.alertTemplate.labels || {}) + for (var i = 0; i < labels.length; i++) { + var label = labels[i] + alert.labels[label] = format( + this.config.alertTemplate.labels[label], + data + ) + } + var annotations = Object.keys(this.config.alertTemplate.annotations || {}) + for (var j = 0; j < annotations.length; j++) { + var annotation = annotations[j] + alert.annotations[annotation] = format( + this.config.alertTemplate.annotations[annotation], + data + ) + } + } + return alert +} + +OutputPrometheusAlertmanager.prototype.eventHandler = function (data, context) { + var alert = this.buildAlert(data, context) + var options = { + url: this.config.url + '/api/v1/alerts', + headers: { + 'Content-Type': 'application/json' + }, + json: [alert] + } + request.post( + options, + function responseHandler (error, response, body) { + if (!error && response.statusCode < 300) { + if (this.debug === true) { + console.error( + new Date(), + 'Alert sent to Prometheus Alertmanager: alert=' + + JSON.stringify(this.alert), + body + ) + } + } else { + console.error( + new Date(), + 'Error while alerting Prometheus Alertmanager:', + error, + body + ) + } + }.bind({ debug: this.config.debug, alert: alert }) + ) +} + +OutputPrometheusAlertmanager.prototype.start = function () { + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +OutputPrometheusAlertmanager.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = OutputPrometheusAlertmanager diff --git a/node_modules/@sematext/logagent/lib/plugins/output/slack-webhook.js b/node_modules/@sematext/logagent/lib/plugins/output/slack-webhook.js new file mode 100644 index 00000000..8e0b5330 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/plugins/output/slack-webhook.js @@ -0,0 +1,83 @@ +'use strict' +var prettyjson = require('prettyjson') +var safeStringify = require('fast-safe-stringify') +var format = require('string-template') +var request = require('request') +function OutputSlackWebhook (config, eventEmitter) { + this.config = config + this.eventEmitter = eventEmitter +} + +OutputSlackWebhook.prototype.match = function (data, context) { + var rv = true + if (this.config.matchSource) { + rv = this.config.matchSource.test(context.sourceName) + } + if (rv && this.config.filter) { + rv = this.config.filter(context, data, this.config) + } + return rv +} + +OutputSlackWebhook.prototype.eventHandler = function (data, context) { + if (this.config.suppress) { + return + } + if (this.match(data, context)) { + var slackMessage = '' + var payload = this.config.payload + if (this.config.format === 'json') { + slackMessage = JSON.stringify(data, null, '\t') + } else if (this.config.format === 'yaml') { + slackMessage = prettyjson.render(data, { noColor: true }) + '\n' + } else if (this.config.format === 'ld-json') { + slackMessage = safeStringify(data) + } else if (this.config.template) { + slackMessage = format(this.config.template, data) + } + if (payload.attachments && payload.attachments[0]) { + payload.attachments[0].text = slackMessage + } else { + payload.text = slackMessage + } + + if (payload) { + var options = { + url: this.config.url, + headers: { + 'Content-Type': 'application/json' + }, + json: payload + } + } + request.post( + options, + function responseHandler (error, response, body) { + if (!error && response.statusCode < 300) { + if (this.debug === true) { + console.error( + new Date(), + 'Slack Message sent: ' + + 'payload=' + + JSON.stringify(this.payload), + body + ) + } + } else { + console.error(new Date(), 'Error in slack webhook:', error, body) + } + }.bind({ debug: this.config.debug, payload: payload }) + ) + } +} + +OutputSlackWebhook.prototype.start = function () { + this.eventEmitter.on('data.parsed', this.eventHandler.bind(this)) +} + +OutputSlackWebhook.prototype.stop = function (cb) { + this.eventEmitter.removeListener('data.parsed', this.eventHandler) + cb() +} + +module.exports = OutputSlackWebhook diff --git a/node_modules/@sematext/logagent/lib/util/config-reducer.js b/node_modules/@sematext/logagent/lib/util/config-reducer.js new file mode 100644 index 00000000..7fb8cd7b --- /dev/null +++ b/node_modules/@sematext/logagent/lib/util/config-reducer.js @@ -0,0 +1,22 @@ +'use strict' + +function reduce (context, data, conf) { + let newConf = {} + for (var key in conf) { + if (key === 'tokenMapper') { + newConf[key] = conf[key] + continue + } + if (!conf.hasOwnProperty(key)) { + continue + } + if (typeof conf[key] !== 'function') { + newConf[key] = conf[key] + continue + } + newConf[key] = conf[key](context, conf, data) + } + return newConf +} + +module.exports = reduce diff --git a/node_modules/@sematext/logagent/lib/util/parser.js b/node_modules/@sematext/logagent/lib/util/parser.js new file mode 100644 index 00000000..017f3a52 --- /dev/null +++ b/node_modules/@sematext/logagent/lib/util/parser.js @@ -0,0 +1,59 @@ +'use strict' +/** + * Parse a list of URLs to an array with base URL and index for elasticsearch API endpoints + * Return value is an array with objects with url and index property, e.g. + * [{url: 'http://servername', index: 'logs'}] + * @receiverListAsString a comma separatedlist of URLs + */ +function parseReceiverList (receiverListAsString) { + if (!receiverListAsString) { + return undefined + } + + const parseUrlRegexMultiReceivers = /(\S+:\/\/\S+?)\/(\S+)$/i + const receiverList = receiverListAsString.split(',') + + const receivers = receiverList.map(receiver => { + const match = receiver.match(parseUrlRegexMultiReceivers) + if (!(match && match.length === 3)) { + return + } + + return { + url: match[1], + index: match[2] + } + }) + + return receivers +} + +/** + * Parse Docker image names. + * Returns an object with name,registry, tag properties. + * [{url: 'http://servername', index: 'logs'}] + * @receiverListAsString a comma separatedlist of URLs + */ +var parseImageRegex = /^(\S+?\.\S+?\/|\S+?:\d+\/){0,1}(\S+?):(\S+?){0,1}(@\S+?){0,1}$/i +function parseImage (image) { + var rv = { name: image } + var result = parseImageRegex.exec(image) + if (result) { + if (result.length > 3) { + if (result[1]) { + rv.registry = result[1] + } + rv.name = result[2] + rv.tag = result[3] + if (result[4] !== undefined) { + rv.digest = result[4].substring(1, result[4].length) + } + } + } + return rv +} + +module.exports = { + parseImage: parseImage, + parseReceiverList: parseReceiverList +} diff --git a/node_modules/@sematext/logagent/lib/util/token-blacklist.js b/node_modules/@sematext/logagent/lib/util/token-blacklist.js new file mode 100644 index 00000000..28a95f4e --- /dev/null +++ b/node_modules/@sematext/logagent/lib/util/token-blacklist.js @@ -0,0 +1,41 @@ +const LRU = require('lru-cache') +const consoleLogger = require('./logger.js') + +class TokenBlacklist { + constructor (eventEmitter, maxIndexingErrors, errorRegex) { + this.errorRegex = errorRegex || /Application not found for token (\S+),/ + this.maxIndexingErrors = maxIndexingErrors || 1 // failures before blacklisting tokens + this.invalidTokens = new LRU({ + max: 5000, + maxAge: 10 * 60 * 1000 + }) + + eventEmitter.on( + 'error', + function (err) { + // blacklist tokens only when the token is unknown + const match = String(err).match(this.errorRegex) + const token = match && match.length > 1 && match[1] + if (!token) { + return + } + + if (!this.invalidTokens.get(token)) { + this.invalidTokens.set(token, 1) + } else { + this.invalidTokens.set(token, this.invalidTokens.get(token)) + } + + if (this.invalidTokens.get(token) >= this.maxIndexingErrors) { + consoleLogger.log(`Invalid token added to blacklist ${token}`) + } + }.bind(this) + ) + } + + isTokenInvalid (token) { + return this.invalidTokens.get(token) >= this.maxIndexingErrors + } +} + +module.exports = TokenBlacklist diff --git a/node_modules/@sematext/logagent/run.sh b/node_modules/@sematext/logagent/run.sh new file mode 100644 index 00000000..ea77edb4 --- /dev/null +++ b/node_modules/@sematext/logagent/run.sh @@ -0,0 +1,205 @@ +#!/bin/bash + +# check docker secrets volume +export CONFIG_FILE=${CONFIG_FILE:-/run/secrets/logagent} +set -o allexport +if [ -f "$CONFIG_FILE" ] +then + echo "Reading configuration from file: ${CONFIG_FILE}" + source $CONFIG_FILE +fi + + +if [[ -z "$APP_ROOT" ]]; then + export PATTERN_DIR=/etc/logagent +else + export PATTERN_DIR=${APP_ROOT} +fi + +if [[ -z "$LA_CONFIG" ]]; then + if [[ -z "$APP_ROOT" ]]; then + export LA_CONFIG=/etc/sematext/logagent.conf + else + export LA_CONFIG=${APP_ROOT}/logagent.conf} + fi + export GENERATE_CONFIG_FILE="true" +fi + +echo $LA_CONFIG + +export MAX_CLIENT_SOCKETS=${MAX_CLIENT_SOCKETS:-5} + +# Set both values to be default TRUE +# Check in the code if they are both TRUE +# If they are not both TRUE, because user sets at +# least one of them to FALSE, the env will view +# them as FALSE +export LOGSENE_ENABLED_DEFAULT=${LOGSENE_ENABLED_DEFAULT:-true} +export LOGS_ENABLED_DEFAULT=${LOGS_ENABLED_DEFAULT:-true} + +export LOGSENE_TMP_DIR=/log-buffer +mkdir -p $LOGSENE_TMP_DIR +export LA_CONFIG_OVERRIDE=${LA_CONFIG_OVERRIDE:-false} + +# be backward compatible +export LOGSENE_RECEIVER_URL +if [[ -z "$LOGSENE_RECEIVER_URL" ]]; then + export LOGSENE_RECEIVER_URL="$LOGS_RECEIVER_URL" +fi + +if [[ -z "$LOGS_TOKEN" ]]; then + export LOGS_TOKEN="$LOGSENE_TOKEN" +fi + +if [[ -z "$LOGS_TOKEN" ]]; then + export LOGS_TOKEN="$LOG_INDEX" +fi + +if [[ -z "$LOGS_TOKEN" ]]; then + if [ "${LA_CONFIG_OVERRIDE}" != "true" ]; then + echo "You need to set the LOGS_TOKEN in the environment!" >&2 + exit 1 + fi + echo "You have selected to override the token configuration in your ${LA_CONFIG}!" >&2 +fi + + +if [[ -n "${JOURNALD_UPLOAD_PORT}" ]]; then + # enable journald log collection + export LOGAGENT_ARGS="--journald {JOURNALD_UPLOAD_PORT} ${LOGAGENT_ARGS}" +fi + +if [[ -z "$LOG_GLOB" ]]; then + echo "You need to specify a log source. Mount the docker socket or set the LOG_GLOB in the environment!" >&2 +fi + +if [[ -n "${KUBERNETES_SERVICE_HOST}" ]]; then + # K8S env -> use k8sEnrichment plugin + export LOGAGENT_ARGS="--k8sEnrichment ${LOGAGENT_ARGS}" +fi + +if [[ ! -r /var/run/docker.sock ]]; then + # no docker socket + if [[ -n "${KUBERNETES_SERVICE_HOST}" ]]; then + # no docker socket & K8S env -> use containerd plugin + export LOGAGENT_ARGS="--k8sContainerd ${LOGAGENT_ARGS}" + fi + + if [[ -z "$LOG_GLOB" ]]; then + echo "You need to specify a log source. Mount the docker socket or set the LOG_GLOB in the environment!" >&2 + fi +else + export LOGAGENT_ARGS="--docker /var/run/docker.sock ${LOGAGENT_ARGS}" +fi + +# Support custom patterns for Logagent +if [ -n "${PATTERNS_URL}" ]; then + # Logagent will fetch the patterns file via HTTP + mkdir -p $PATTERN_DIR +fi + +if [ -n "${LOGAGENT_PATTERNS}" ]; then + if [ "${LOGAGENT_PATTERNS_BASE64}" == "true" ]; then + # If the logagent patterns file is an environment variable, and base64 encoded + mkdir -p $PATTERN_DIR + echo "writing LOGAGENT_PATTERNS to ${PATTERN_DIR}/patterns.yml" + echo "$LOGAGENT_PATTERNS" | base64 -d > $PATTERN_DIR/patterns.yml + else + mkdir -p $PATTERN_DIR + echo "writing LOGAGENT_PATTERNS to ${PATTERN_DIR}/patterns.yml" + echo "$LOGAGENT_PATTERNS" > ${PATTERN_DIR}/patterns.yml + fi +fi + + +echo "Preparing environment..." + +touch $LA_CONFIG + +generate_config() { + if [[ ! -z "$LOGSENE_RECEIVER_URL" ]]; then + export LOGSENE_RECEIVER_URL=$LOGSENE_RECEIVER_URL + export REGION="custom" + fi + + if [[ $REGION == "US" ]]; then + export LOGSENE_RECEIVER_URL="https://logsene-receiver.sematext.com" + fi + + if [[ $REGION == "EU" ]]; then + export LOGSENE_RECEIVER_URL="https://logsene-receiver.eu.sematext.com" + fi + echo "Log receiver url: $LOGSENE_RECEIVER_URL" +} + +generate_config + +if [[ -n "${GENERATE_CONFIG_FILE}" ]]; then +echo "Creating Logagent config file: $LA_CONFIG" +cat >$LA_CONFIG <>$LA_CONFIG <>$LA_CONFIG + done + done <<<"$LOG_GLOB" +cat >>$LA_CONFIG <>$LA_CONFIG <>$LA_CONFIG <>$LA_CONFIG <= ? ALLOW FILTERING' + + return client.execute(QUERY, params, { prepare: true }) + }) + .then(function (result) { + console.log('result ' + JSON.stringify(result)) + client.shutdown() + }) + .catch(function (err) { + console.error('There was an error', err) + return client.shutdown() + }) diff --git a/node_modules/@sematext/logagent/test/gelf-server-client/gelf-client.js b/node_modules/@sematext/logagent/test/gelf-server-client/gelf-client.js new file mode 100644 index 00000000..30691e92 --- /dev/null +++ b/node_modules/@sematext/logagent/test/gelf-server-client/gelf-client.js @@ -0,0 +1,2 @@ +var log = require('graygelf')({ host: 'localhost', port: 12100 }) +log.info.a('short', 'full', { foo: 'bar' }) diff --git a/node_modules/@sematext/logagent/test/gelf-server-client/gelf-server.js b/node_modules/@sematext/logagent/test/gelf-server-client/gelf-server.js new file mode 100644 index 00000000..3eb0eecd --- /dev/null +++ b/node_modules/@sematext/logagent/test/gelf-server-client/gelf-server.js @@ -0,0 +1,6 @@ +var gelfserver = require('graygelf/server') +var server = gelfserver() +server.on('message', function (gelf) { + console.log('received message', JSON.stringify(gelf)) +}) +server.listen(12201) diff --git a/node_modules/@sematext/logagent/test/output-prometheus-alertmanager-test.js b/node_modules/@sematext/logagent/test/output-prometheus-alertmanager-test.js new file mode 100644 index 00000000..474388be --- /dev/null +++ b/node_modules/@sematext/logagent/test/output-prometheus-alertmanager-test.js @@ -0,0 +1,61 @@ +var assert = require('assert') +var OutputPrometheusAlertmanager = require('../lib/plugins/output/prometheus-alertmanager.js') +describe('OutputPrometheusAlertmanager', function () { + describe('#new', function () { + it('throws if no config given', function () { + assert.throws(function () { + new OutputPrometheusAlertmanager({}) + }, /Please specify Prometheus Alertmanager "url"/) + }) + + it('throws if no config.url given', function () { + assert.throws(function () { + new OutputPrometheusAlertmanager() + }, /Please specify Prometheus Alertmanager "url"/) + }) + + it('returns instance', function () { + new OutputPrometheusAlertmanager({ url: 'foo' }) + }) + }) + + describe('#buildAlert', function () { + it('return alert', function () { + var output = new OutputPrometheusAlertmanager({ url: 'foo' }) + assert.deepStrictEqual(output.buildAlert(), { + labels: {}, + annotations: {} + }) + }) + + it('return alert with templated values', function () { + var output = new OutputPrometheusAlertmanager({ + url: 'foo', + alertTemplate: { + generatorURL: 'http://foo?myVarA={myVarA}&myVarB={myVarB}', + labels: { + myLabel: '{myVarA}-{myVarB}' + }, + annotations: { + myAnnotation: '{myVarA} and {myVarB}' + } + } + }) + assert.deepStrictEqual( + output.buildAlert({ + myVarA: 'valOfMyVarA', + myVarB: 'valOfMyVarB' + }), + { + generatorURL: 'http://foo?myVarA=valOfMyVarA&myVarB=valOfMyVarB', + labels: { + myLabel: 'valOfMyVarA-valOfMyVarB' + }, + annotations: { + myAnnotation: 'valOfMyVarA and valOfMyVarB' + } + } + ) + }) + }) +}) diff --git a/node_modules/@sematext/logagent/test/vercel/vercelSignature.spec.js b/node_modules/@sematext/logagent/test/vercel/vercelSignature.spec.js new file mode 100644 index 00000000..a364e8b9 --- /dev/null +++ b/node_modules/@sematext/logagent/test/vercel/vercelSignature.spec.js @@ -0,0 +1,56 @@ +/* global describe, it */ +const assert = require('assert') +const crypto = require('crypto') +const sampleClientSecret = 'idmnMEd7Yx4QmgzZpZ4axXoe' +const sampleBody = { + id: 1, + message: '1' +} +const sampleBodyBuf = Buffer.from(JSON.stringify(sampleBody)) +const sampleSignature = crypto + .createHmac('sha1', sampleClientSecret) + .update(sampleBodyBuf) + .digest('hex') + +const sampleReq = { + headers: { + 'x-zeit-signature': sampleSignature + } +} +const configWithArrayWithTwoClientSecrets = { + clientSecrets: [sampleClientSecret, sampleClientSecret] +} +const configWithArrayWithOneClientSecret = { + clientSecrets: [sampleClientSecret] +} +const configWithArrayWithManyClientSecretsOfWhichOnlyOneIsValid = { + clientSecrets: [sampleClientSecret, 'kjsdfakslf', 'aslsadslkjdkld'] +} +const EventEmitter = require('events') +const evem = new EventEmitter() + +/** + * Init Vercel Class + */ +const Vercel = require('../../lib/plugins/input/vercel') +const vercelWithArrayWithTwoSecrets = new Vercel(configWithArrayWithTwoClientSecrets, evem) +const vercelWithArrayWithOneSecret = new Vercel(configWithArrayWithOneClientSecret, evem) +const vercelWithArrayWithOnlyOneValidSecret = new Vercel(configWithArrayWithManyClientSecretsOfWhichOnlyOneIsValid, evem) + +describe('verifySignature should', function () { + it('return true for an array with 2 secrets', function (done) { + const signature = vercelWithArrayWithTwoSecrets.verifySignature(sampleReq, sampleBodyBuf) + assert.strictEqual(signature, true) + done() + }) + it('return true for an array with 1 secret', function (done) { + const signature = vercelWithArrayWithOneSecret.verifySignature(sampleReq, sampleBodyBuf) + assert.strictEqual(signature, true) + done() + }) + it('return true for an array with only 1 valid secret', function (done) { + const signature = vercelWithArrayWithOnlyOneValidSecret.verifySignature(sampleReq, sampleBodyBuf) + assert.strictEqual(signature, true) + done() + }) +}) diff --git a/node_modules/bl/.jshintrc b/node_modules/bl/.jshintrc deleted file mode 100644 index c8ef3ca4..00000000 --- a/node_modules/bl/.jshintrc +++ /dev/null @@ -1,59 +0,0 @@ -{ - "predef": [ ] - , "bitwise": false - , "camelcase": false - , "curly": false - , "eqeqeq": false - , "forin": false - , "immed": false - , "latedef": false - , "noarg": true - , "noempty": true - , "nonew": true - , "plusplus": false - , "quotmark": true - , "regexp": false - , "undef": true - , "unused": true - , "strict": false - , "trailing": true - , "maxlen": 120 - , "asi": true - , "boss": true - , "debug": true - , "eqnull": true - , "esnext": true - , "evil": true - , "expr": true - , "funcscope": false - , "globalstrict": false - , "iterator": false - , "lastsemic": true - , "laxbreak": true - , "laxcomma": true - , "loopfunc": true - , "multistr": false - , "onecase": false - , "proto": false - , "regexdash": false - , "scripturl": true - , "smarttabs": false - , "shadow": false - , "sub": true - , "supernew": false - , "validthis": true - , "browser": true - , "couch": false - , "devel": false - , "dojo": false - , "mootools": false - , "node": true - , "nonstandard": true - , "prototypejs": false - , "rhino": false - , "worker": true - , "wsh": false - , "nomen": false - , "onevar": false - , "passfail": false -} \ No newline at end of file diff --git a/node_modules/bl/.travis.yml b/node_modules/bl/.travis.yml deleted file mode 100644 index a349506c..00000000 --- a/node_modules/bl/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -sudo: false -language: node_js -node_js: - - '6' - - '8' - - '10' - - '12' - - '14' - - lts/* -notifications: - email: - - rod@vagg.org - - matteo.collina@gmail.com diff --git a/node_modules/bl/LICENSE.md b/node_modules/bl/LICENSE.md deleted file mode 100644 index ff35a347..00000000 --- a/node_modules/bl/LICENSE.md +++ /dev/null @@ -1,13 +0,0 @@ -The MIT License (MIT) -===================== - -Copyright (c) 2013-2016 bl contributors ----------------------------------- - -*bl contributors listed at * - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/bl/README.md b/node_modules/bl/README.md deleted file mode 100644 index 9eebd88b..00000000 --- a/node_modules/bl/README.md +++ /dev/null @@ -1,208 +0,0 @@ -# bl *(BufferList)* - -[![Build Status](https://travis-ci.org/rvagg/bl.svg?branch=master)](https://travis-ci.org/rvagg/bl) - -**A Node.js Buffer list collector, reader and streamer thingy.** - -[![NPM](https://nodei.co/npm/bl.png?downloads=true&downloadRank=true)](https://nodei.co/npm/bl/) -[![NPM](https://nodei.co/npm-dl/bl.png?months=6&height=3)](https://nodei.co/npm/bl/) - -**bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them! - -The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently. - -```js -const BufferList = require('bl') - -var bl = new BufferList() -bl.append(new Buffer('abcd')) -bl.append(new Buffer('efg')) -bl.append('hi') // bl will also accept & convert Strings -bl.append(new Buffer('j')) -bl.append(new Buffer([ 0x3, 0x4 ])) - -console.log(bl.length) // 12 - -console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij' -console.log(bl.slice(3, 10).toString('ascii')) // 'defghij' -console.log(bl.slice(3, 6).toString('ascii')) // 'def' -console.log(bl.slice(3, 8).toString('ascii')) // 'defgh' -console.log(bl.slice(5, 10).toString('ascii')) // 'fghij' - -// or just use toString! -console.log(bl.toString()) // 'abcdefghij\u0003\u0004' -console.log(bl.toString('ascii', 3, 8)) // 'defgh' -console.log(bl.toString('ascii', 5, 10)) // 'fghij' - -// other standard Buffer readables -console.log(bl.readUInt16BE(10)) // 0x0304 -console.log(bl.readUInt16LE(10)) // 0x0403 -``` - -Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**: - -```js -const bl = require('bl') - , fs = require('fs') - -fs.createReadStream('README.md') - .pipe(bl(function (err, data) { // note 'new' isn't strictly required - // `data` is a complete Buffer object containing the full data - console.log(data.toString()) - })) -``` - -Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream. - -Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!): -```js -const hyperquest = require('hyperquest') - , bl = require('bl') - , url = 'https://raw.github.com/rvagg/bl/master/README.md' - -hyperquest(url).pipe(bl(function (err, data) { - console.log(data.toString()) -})) -``` - -Or, use it as a readable stream to recompose a list of Buffers to an output source: - -```js -const BufferList = require('bl') - , fs = require('fs') - -var bl = new BufferList() -bl.append(new Buffer('abcd')) -bl.append(new Buffer('efg')) -bl.append(new Buffer('hi')) -bl.append(new Buffer('j')) - -bl.pipe(fs.createWriteStream('gibberish.txt')) -``` - -## API - - * new BufferList([ callback ]) - * bl.length - * bl.append(buffer) - * bl.get(index) - * bl.slice([ start[, end ] ]) - * bl.shallowSlice([ start[, end ] ]) - * bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) - * bl.duplicate() - * bl.consume(bytes) - * bl.toString([encoding, [ start, [ end ]]]) - * bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() - * Streams - --------------------------------------------------------- - -### new BufferList([ callback | Buffer | Buffer array | BufferList | BufferList array | String ]) -The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream. - -Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object. - -`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with: - -```js -var bl = require('bl') -var myinstance = bl() - -// equivalent to: - -var BufferList = require('bl') -var myinstance = new BufferList() -``` - --------------------------------------------------------- - -### bl.length -Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list. - --------------------------------------------------------- - -### bl.append(Buffer | Buffer array | BufferList | BufferList array | String) -`append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained. - --------------------------------------------------------- - -### bl.get(index) -`get()` will return the byte at the specified index. - --------------------------------------------------------- - -### bl.slice([ start, [ end ] ]) -`slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. - -If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer. - --------------------------------------------------------- - -### bl.shallowSlice([ start, [ end ] ]) -`shallowSlice()` returns a new `BufferList` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. - -No copies will be performed. All buffers in the result share memory with the original list. - --------------------------------------------------------- - -### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) -`copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively. - --------------------------------------------------------- - -### bl.duplicate() -`duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example: - -```js -var bl = new BufferList() - -bl.append('hello') -bl.append(' world') -bl.append('\n') - -bl.duplicate().pipe(process.stdout, { end: false }) - -console.log(bl.toString()) -``` - --------------------------------------------------------- - -### bl.consume(bytes) -`consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers—initial offsets will be calculated accordingly in order to give you a consistent view of the data. - --------------------------------------------------------- - -### bl.toString([encoding, [ start, [ end ]]]) -`toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information. - --------------------------------------------------------- - -### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() - -All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently. - -See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work. - --------------------------------------------------------- - -### Streams -**bl** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **bl** instance. - --------------------------------------------------------- - -## Contributors - -**bl** is brought to you by the following hackers: - - * [Rod Vagg](https://github.com/rvagg) - * [Matteo Collina](https://github.com/mcollina) - * [Jarett Cruger](https://github.com/jcrugzz) - -======= - - -## License & copyright - -Copyright (c) 2013-2016 bl contributors (listed above). - -bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details. diff --git a/node_modules/bl/bl.js b/node_modules/bl/bl.js deleted file mode 100644 index 0c8de189..00000000 --- a/node_modules/bl/bl.js +++ /dev/null @@ -1,290 +0,0 @@ -var DuplexStream = require('readable-stream/duplex') - , util = require('util') - , Buffer = require('safe-buffer').Buffer - - -function BufferList (callback) { - if (!(this instanceof BufferList)) - return new BufferList(callback) - - this._bufs = [] - this.length = 0 - - if (typeof callback == 'function') { - this._callback = callback - - var piper = function piper (err) { - if (this._callback) { - this._callback(err) - this._callback = null - } - }.bind(this) - - this.on('pipe', function onPipe (src) { - src.on('error', piper) - }) - this.on('unpipe', function onUnpipe (src) { - src.removeListener('error', piper) - }) - } else { - this.append(callback) - } - - DuplexStream.call(this) -} - - -util.inherits(BufferList, DuplexStream) - - -BufferList.prototype._offset = function _offset (offset) { - var tot = 0, i = 0, _t - if (offset === 0) return [ 0, 0 ] - for (; i < this._bufs.length; i++) { - _t = tot + this._bufs[i].length - if (offset < _t || i == this._bufs.length - 1) - return [ i, offset - tot ] - tot = _t - } -} - - -BufferList.prototype.append = function append (buf) { - var i = 0 - - if (Buffer.isBuffer(buf)) { - this._appendBuffer(buf); - } else if (Array.isArray(buf)) { - for (; i < buf.length; i++) - this.append(buf[i]) - } else if (buf instanceof BufferList) { - // unwrap argument into individual BufferLists - for (; i < buf._bufs.length; i++) - this.append(buf._bufs[i]) - } else if (buf != null) { - // coerce number arguments to strings, since Buffer(number) does - // uninitialized memory allocation - if (typeof buf == 'number') - buf = buf.toString() - - this._appendBuffer(Buffer.from(buf)); - } - - return this -} - - -BufferList.prototype._appendBuffer = function appendBuffer (buf) { - this._bufs.push(buf) - this.length += buf.length -} - - -BufferList.prototype._write = function _write (buf, encoding, callback) { - this._appendBuffer(buf) - - if (typeof callback == 'function') - callback() -} - - -BufferList.prototype._read = function _read (size) { - if (!this.length) - return this.push(null) - - size = Math.min(size, this.length) - this.push(this.slice(0, size)) - this.consume(size) -} - - -BufferList.prototype.end = function end (chunk) { - DuplexStream.prototype.end.call(this, chunk) - - if (this._callback) { - this._callback(null, this.slice()) - this._callback = null - } -} - - -BufferList.prototype.get = function get (index) { - return this.slice(index, index + 1)[0] -} - - -BufferList.prototype.slice = function slice (start, end) { - if (typeof start == 'number' && start < 0) - start += this.length - if (typeof end == 'number' && end < 0) - end += this.length - return this.copy(null, 0, start, end) -} - - -BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { - if (typeof srcStart != 'number' || srcStart < 0) - srcStart = 0 - if (typeof srcEnd != 'number' || srcEnd > this.length) - srcEnd = this.length - if (srcStart >= this.length) - return dst || Buffer.alloc(0) - if (srcEnd <= 0) - return dst || Buffer.alloc(0) - - var copy = !!dst - , off = this._offset(srcStart) - , len = srcEnd - srcStart - , bytes = len - , bufoff = (copy && dstStart) || 0 - , start = off[1] - , l - , i - - // copy/slice everything - if (srcStart === 0 && srcEnd == this.length) { - if (!copy) { // slice, but full concat if multiple buffers - return this._bufs.length === 1 - ? this._bufs[0] - : Buffer.concat(this._bufs, this.length) - } - - // copy, need to copy individual buffers - for (i = 0; i < this._bufs.length; i++) { - this._bufs[i].copy(dst, bufoff) - bufoff += this._bufs[i].length - } - - return dst - } - - // easy, cheap case where it's a subset of one of the buffers - if (bytes <= this._bufs[off[0]].length - start) { - return copy - ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) - : this._bufs[off[0]].slice(start, start + bytes) - } - - if (!copy) // a slice, we need something to copy in to - dst = Buffer.allocUnsafe(len) - - for (i = off[0]; i < this._bufs.length; i++) { - l = this._bufs[i].length - start - - if (bytes > l) { - this._bufs[i].copy(dst, bufoff, start) - bufoff += l - } else { - this._bufs[i].copy(dst, bufoff, start, start + bytes) - bufoff += l - break - } - - bytes -= l - - if (start) - start = 0 - } - - // safeguard so that we don't return uninitialized memory - if (dst.length > bufoff) return dst.slice(0, bufoff) - - return dst -} - -BufferList.prototype.shallowSlice = function shallowSlice (start, end) { - start = start || 0 - end = end || this.length - - if (start < 0) - start += this.length - if (end < 0) - end += this.length - - var startOffset = this._offset(start) - , endOffset = this._offset(end) - , buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1) - - if (endOffset[1] == 0) - buffers.pop() - else - buffers[buffers.length-1] = buffers[buffers.length-1].slice(0, endOffset[1]) - - if (startOffset[1] != 0) - buffers[0] = buffers[0].slice(startOffset[1]) - - return new BufferList(buffers) -} - -BufferList.prototype.toString = function toString (encoding, start, end) { - return this.slice(start, end).toString(encoding) -} - -BufferList.prototype.consume = function consume (bytes) { - // first, normalize the argument, in accordance with how Buffer does it - bytes = Math.trunc(bytes) - // do nothing if not a positive number - if (Number.isNaN(bytes) || bytes <= 0) return this - - while (this._bufs.length) { - if (bytes >= this._bufs[0].length) { - bytes -= this._bufs[0].length - this.length -= this._bufs[0].length - this._bufs.shift() - } else { - this._bufs[0] = this._bufs[0].slice(bytes) - this.length -= bytes - break - } - } - return this -} - - -BufferList.prototype.duplicate = function duplicate () { - var i = 0 - , copy = new BufferList() - - for (; i < this._bufs.length; i++) - copy.append(this._bufs[i]) - - return copy -} - - -BufferList.prototype.destroy = function destroy () { - this._bufs.length = 0 - this.length = 0 - this.push(null) -} - - -;(function () { - var methods = { - 'readDoubleBE' : 8 - , 'readDoubleLE' : 8 - , 'readFloatBE' : 4 - , 'readFloatLE' : 4 - , 'readInt32BE' : 4 - , 'readInt32LE' : 4 - , 'readUInt32BE' : 4 - , 'readUInt32LE' : 4 - , 'readInt16BE' : 2 - , 'readInt16LE' : 2 - , 'readUInt16BE' : 2 - , 'readUInt16LE' : 2 - , 'readInt8' : 1 - , 'readUInt8' : 1 - } - - for (var m in methods) { - (function (m) { - BufferList.prototype[m] = function (offset) { - return this.slice(offset, offset + methods[m])[m](0) - } - }(m)) - } -}()) - - -module.exports = BufferList diff --git a/node_modules/bl/package.json b/node_modules/bl/package.json deleted file mode 100644 index 1ffd2526..00000000 --- a/node_modules/bl/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "bl", - "version": "1.2.3", - "description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!", - "main": "bl.js", - "scripts": { - "test": "node test/test.js | faucet" - }, - "repository": { - "type": "git", - "url": "https://github.com/rvagg/bl.git" - }, - "homepage": "https://github.com/rvagg/bl", - "authors": [ - "Rod Vagg (https://github.com/rvagg)", - "Matteo Collina (https://github.com/mcollina)", - "Jarett Cruger (https://github.com/jcrugzz)" - ], - "keywords": [ - "buffer", - "buffers", - "stream", - "awesomesauce" - ], - "license": "MIT", - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - }, - "devDependencies": { - "faucet": "0.0.1", - "hash_file": "~0.1.1", - "tape": "~4.9.0" - } -} diff --git a/node_modules/bl/test/test.js b/node_modules/bl/test/test.js deleted file mode 100644 index dac1861e..00000000 --- a/node_modules/bl/test/test.js +++ /dev/null @@ -1,718 +0,0 @@ -var tape = require('tape') - , crypto = require('crypto') - , fs = require('fs') - , hash = require('hash_file') - , BufferList = require('../') - , Buffer = require('safe-buffer').Buffer - - , encodings = - ('hex utf8 utf-8 ascii binary base64' - + (process.browser ? '' : ' ucs2 ucs-2 utf16le utf-16le')).split(' ') - -tape('single bytes from single buffer', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('abcd')) - - t.equal(bl.length, 4) - - t.equal(bl.get(0), 97) - t.equal(bl.get(1), 98) - t.equal(bl.get(2), 99) - t.equal(bl.get(3), 100) - - t.end() -}) - -tape('single bytes from multiple buffers', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.get(0), 97) - t.equal(bl.get(1), 98) - t.equal(bl.get(2), 99) - t.equal(bl.get(3), 100) - t.equal(bl.get(4), 101) - t.equal(bl.get(5), 102) - t.equal(bl.get(6), 103) - t.equal(bl.get(7), 104) - t.equal(bl.get(8), 105) - t.equal(bl.get(9), 106) - t.end() -}) - -tape('multi bytes from single buffer', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('abcd')) - - t.equal(bl.length, 4) - - t.equal(bl.slice(0, 4).toString('ascii'), 'abcd') - t.equal(bl.slice(0, 3).toString('ascii'), 'abc') - t.equal(bl.slice(1, 4).toString('ascii'), 'bcd') - t.equal(bl.slice(-4, -1).toString('ascii'), 'abc') - - t.end() -}) - -tape('multi bytes from single buffer (negative indexes)', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('buffer')) - - t.equal(bl.length, 6) - - t.equal(bl.slice(-6, -1).toString('ascii'), 'buffe') - t.equal(bl.slice(-6, -2).toString('ascii'), 'buff') - t.equal(bl.slice(-5, -2).toString('ascii'), 'uff') - - t.end() -}) - -tape('multiple bytes from multiple buffers', function (t) { - var bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - t.equal(bl.slice(-7, -4).toString('ascii'), 'def') - - t.end() -}) - -tape('multiple bytes from multiple buffer lists', function (t) { - var bl = new BufferList() - - bl.append(new BufferList([ Buffer.from('abcd'), Buffer.from('efg') ])) - bl.append(new BufferList([ Buffer.from('hi'), Buffer.from('j') ])) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - - t.end() -}) - -// same data as previous test, just using nested constructors -tape('multiple bytes from crazy nested buffer lists', function (t) { - var bl = new BufferList() - - bl.append(new BufferList([ - new BufferList([ - new BufferList(Buffer.from('abc')) - , Buffer.from('d') - , new BufferList(Buffer.from('efg')) - ]) - , new BufferList([ Buffer.from('hi') ]) - , new BufferList(Buffer.from('j')) - ])) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - - t.end() -}) - -tape('append accepts arrays of Buffers', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('abc')) - bl.append([ Buffer.from('def') ]) - bl.append([ Buffer.from('ghi'), Buffer.from('jkl') ]) - bl.append([ Buffer.from('mnop'), Buffer.from('qrstu'), Buffer.from('vwxyz') ]) - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - t.end() -}) - -tape('append accepts arrays of BufferLists', function (t) { - var bl = new BufferList() - bl.append(Buffer.from('abc')) - bl.append([ new BufferList('def') ]) - bl.append(new BufferList([ Buffer.from('ghi'), new BufferList('jkl') ])) - bl.append([ Buffer.from('mnop'), new BufferList([ Buffer.from('qrstu'), Buffer.from('vwxyz') ]) ]) - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - t.end() -}) - -tape('append chainable', function (t) { - var bl = new BufferList() - t.ok(bl.append(Buffer.from('abcd')) === bl) - t.ok(bl.append([ Buffer.from('abcd') ]) === bl) - t.ok(bl.append(new BufferList(Buffer.from('abcd'))) === bl) - t.ok(bl.append([ new BufferList(Buffer.from('abcd')) ]) === bl) - t.end() -}) - -tape('append chainable (test results)', function (t) { - var bl = new BufferList('abc') - .append([ new BufferList('def') ]) - .append(new BufferList([ Buffer.from('ghi'), new BufferList('jkl') ])) - .append([ Buffer.from('mnop'), new BufferList([ Buffer.from('qrstu'), Buffer.from('vwxyz') ]) ]) - - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - t.end() -}) - -tape('consuming from multiple buffers', function (t) { - var bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - bl.consume(3) - t.equal(bl.length, 7) - t.equal(bl.slice(0, 7).toString('ascii'), 'defghij') - - bl.consume(2) - t.equal(bl.length, 5) - t.equal(bl.slice(0, 5).toString('ascii'), 'fghij') - - bl.consume(1) - t.equal(bl.length, 4) - t.equal(bl.slice(0, 4).toString('ascii'), 'ghij') - - bl.consume(1) - t.equal(bl.length, 3) - t.equal(bl.slice(0, 3).toString('ascii'), 'hij') - - bl.consume(2) - t.equal(bl.length, 1) - t.equal(bl.slice(0, 1).toString('ascii'), 'j') - - t.end() -}) - -tape('complete consumption', function (t) { - var bl = new BufferList() - - bl.append(Buffer.from('a')) - bl.append(Buffer.from('b')) - - bl.consume(2) - - t.equal(bl.length, 0) - t.equal(bl._bufs.length, 0) - - t.end() -}) - -tape('test readUInt8 / readInt8', function (t) { - var buf1 = Buffer.alloc(1) - , buf2 = Buffer.alloc(3) - , buf3 = Buffer.alloc(3) - , bl = new BufferList() - - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt8(2), 0x3) - t.equal(bl.readInt8(2), 0x3) - t.equal(bl.readUInt8(3), 0x4) - t.equal(bl.readInt8(3), 0x4) - t.equal(bl.readUInt8(4), 0x23) - t.equal(bl.readInt8(4), 0x23) - t.equal(bl.readUInt8(5), 0x42) - t.equal(bl.readInt8(5), 0x42) - t.end() -}) - -tape('test readUInt16LE / readUInt16BE / readInt16LE / readInt16BE', function (t) { - var buf1 = Buffer.alloc(1) - , buf2 = Buffer.alloc(3) - , buf3 = Buffer.alloc(3) - , bl = new BufferList() - - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt16BE(2), 0x0304) - t.equal(bl.readUInt16LE(2), 0x0403) - t.equal(bl.readInt16BE(2), 0x0304) - t.equal(bl.readInt16LE(2), 0x0403) - t.equal(bl.readUInt16BE(3), 0x0423) - t.equal(bl.readUInt16LE(3), 0x2304) - t.equal(bl.readInt16BE(3), 0x0423) - t.equal(bl.readInt16LE(3), 0x2304) - t.equal(bl.readUInt16BE(4), 0x2342) - t.equal(bl.readUInt16LE(4), 0x4223) - t.equal(bl.readInt16BE(4), 0x2342) - t.equal(bl.readInt16LE(4), 0x4223) - t.end() -}) - -tape('test readUInt32LE / readUInt32BE / readInt32LE / readInt32BE', function (t) { - var buf1 = Buffer.alloc(1) - , buf2 = Buffer.alloc(3) - , buf3 = Buffer.alloc(3) - , bl = new BufferList() - - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt32BE(2), 0x03042342) - t.equal(bl.readUInt32LE(2), 0x42230403) - t.equal(bl.readInt32BE(2), 0x03042342) - t.equal(bl.readInt32LE(2), 0x42230403) - t.end() -}) - -tape('test readFloatLE / readFloatBE', function (t) { - var buf1 = Buffer.alloc(1) - , buf2 = Buffer.alloc(3) - , buf3 = Buffer.alloc(3) - , bl = new BufferList() - - buf2[1] = 0x00 - buf2[2] = 0x00 - buf3[0] = 0x80 - buf3[1] = 0x3f - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readFloatLE(2), 0x01) - t.end() -}) - -tape('test readDoubleLE / readDoubleBE', function (t) { - var buf1 = Buffer.alloc(1) - , buf2 = Buffer.alloc(3) - , buf3 = Buffer.alloc(10) - , bl = new BufferList() - - buf2[1] = 0x55 - buf2[2] = 0x55 - buf3[0] = 0x55 - buf3[1] = 0x55 - buf3[2] = 0x55 - buf3[3] = 0x55 - buf3[4] = 0xd5 - buf3[5] = 0x3f - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readDoubleLE(2), 0.3333333333333333) - t.end() -}) - -tape('test toString', function (t) { - var bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.toString('ascii', 0, 10), 'abcdefghij') - t.equal(bl.toString('ascii', 3, 10), 'defghij') - t.equal(bl.toString('ascii', 3, 6), 'def') - t.equal(bl.toString('ascii', 3, 8), 'defgh') - t.equal(bl.toString('ascii', 5, 10), 'fghij') - - t.end() -}) - -tape('test toString encoding', function (t) { - var bl = new BufferList() - , b = Buffer.from('abcdefghij\xff\x00') - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - bl.append(Buffer.from('\xff\x00')) - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc), enc) - }) - - t.end() -}) - -tape('uninitialized memory', function (t) { - const secret = crypto.randomBytes(256) - for (let i = 0; i < 1e6; i++) { - const clone = Buffer.from(secret) - const bl = new BufferList() - bl.append(Buffer.from('a')) - bl.consume(-1024) - const buf = bl.slice(1) - if (buf.indexOf(clone) !== -1) { - t.fail(`Match (at ${i})`) - break - } - } - t.end() -}) - -!process.browser && tape('test stream', function (t) { - var random = crypto.randomBytes(65534) - , rndhash = hash(random, 'md5') - , md5sum = crypto.createHash('md5') - , bl = new BufferList(function (err, buf) { - t.ok(Buffer.isBuffer(buf)) - t.ok(err === null) - t.equal(rndhash, hash(bl.slice(), 'md5')) - t.equal(rndhash, hash(buf, 'md5')) - - bl.pipe(fs.createWriteStream('/tmp/bl_test_rnd_out.dat')) - .on('close', function () { - var s = fs.createReadStream('/tmp/bl_test_rnd_out.dat') - s.on('data', md5sum.update.bind(md5sum)) - s.on('end', function() { - t.equal(rndhash, md5sum.digest('hex'), 'woohoo! correct hash!') - t.end() - }) - }) - - }) - - fs.writeFileSync('/tmp/bl_test_rnd.dat', random) - fs.createReadStream('/tmp/bl_test_rnd.dat').pipe(bl) -}) - -tape('instantiation with Buffer', function (t) { - var buf = crypto.randomBytes(1024) - , buf2 = crypto.randomBytes(1024) - , b = BufferList(buf) - - t.equal(buf.toString('hex'), b.slice().toString('hex'), 'same buffer') - b = BufferList([ buf, buf2 ]) - t.equal(b.slice().toString('hex'), Buffer.concat([ buf, buf2 ]).toString('hex'), 'same buffer') - t.end() -}) - -tape('test String appendage', function (t) { - var bl = new BufferList() - , b = Buffer.from('abcdefghij\xff\x00') - - bl.append('abcd') - bl.append('efg') - bl.append('hi') - bl.append('j') - bl.append('\xff\x00') - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc)) - }) - - t.end() -}) - -tape('test Number appendage', function (t) { - var bl = new BufferList() - , b = Buffer.from('1234567890') - - bl.append(1234) - bl.append(567) - bl.append(89) - bl.append(0) - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc)) - }) - - t.end() -}) - -tape('write nothing, should get empty buffer', function (t) { - t.plan(3) - BufferList(function (err, data) { - t.notOk(err, 'no error') - t.ok(Buffer.isBuffer(data), 'got a buffer') - t.equal(0, data.length, 'got a zero-length buffer') - t.end() - }).end() -}) - -tape('unicode string', function (t) { - t.plan(2) - var inp1 = '\u2600' - , inp2 = '\u2603' - , exp = inp1 + ' and ' + inp2 - , bl = BufferList() - bl.write(inp1) - bl.write(' and ') - bl.write(inp2) - t.equal(exp, bl.toString()) - t.equal(Buffer.from(exp).toString('hex'), bl.toString('hex')) -}) - -tape('should emit finish', function (t) { - var source = BufferList() - , dest = BufferList() - - source.write('hello') - source.pipe(dest) - - dest.on('finish', function () { - t.equal(dest.toString('utf8'), 'hello') - t.end() - }) -}) - -tape('basic copy', function (t) { - var buf = crypto.randomBytes(1024) - , buf2 = Buffer.alloc(1024) - , b = BufferList(buf) - - b.copy(buf2) - t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') - t.end() -}) - -tape('copy after many appends', function (t) { - var buf = crypto.randomBytes(512) - , buf2 = Buffer.alloc(1024) - , b = BufferList(buf) - - b.append(buf) - b.copy(buf2) - t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') - t.end() -}) - -tape('copy at a precise position', function (t) { - var buf = crypto.randomBytes(1004) - , buf2 = Buffer.alloc(1024) - , b = BufferList(buf) - - b.copy(buf2, 20) - t.equal(b.slice().toString('hex'), buf2.slice(20).toString('hex'), 'same buffer') - t.end() -}) - -tape('copy starting from a precise location', function (t) { - var buf = crypto.randomBytes(10) - , buf2 = Buffer.alloc(5) - , b = BufferList(buf) - - b.copy(buf2, 0, 5) - t.equal(b.slice(5).toString('hex'), buf2.toString('hex'), 'same buffer') - t.end() -}) - -tape('copy in an interval', function (t) { - var rnd = crypto.randomBytes(10) - , b = BufferList(rnd) // put the random bytes there - , actual = Buffer.alloc(3) - , expected = Buffer.alloc(3) - - rnd.copy(expected, 0, 5, 8) - b.copy(actual, 0, 5, 8) - - t.equal(actual.toString('hex'), expected.toString('hex'), 'same buffer') - t.end() -}) - -tape('copy an interval between two buffers', function (t) { - var buf = crypto.randomBytes(10) - , buf2 = Buffer.alloc(10) - , b = BufferList(buf) - - b.append(buf) - b.copy(buf2, 0, 5, 15) - - t.equal(b.slice(5, 15).toString('hex'), buf2.toString('hex'), 'same buffer') - t.end() -}) - -tape('shallow slice across buffer boundaries', function (t) { - var bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(3, 13).toString(), 'stSecondTh') - t.end() -}) - -tape('shallow slice within single buffer', function (t) { - t.plan(2) - var bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(5, 10).toString(), 'Secon') - t.equal(bl.shallowSlice(7, 10).toString(), 'con') - t.end() -}) - -tape('shallow slice single buffer', function (t) { - t.plan(3) - var bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(0, 5).toString(), 'First') - t.equal(bl.shallowSlice(5, 11).toString(), 'Second') - t.equal(bl.shallowSlice(11, 16).toString(), 'Third') -}) - -tape('shallow slice with negative or omitted indices', function (t) { - t.plan(4) - var bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice().toString(), 'FirstSecondThird') - t.equal(bl.shallowSlice(5).toString(), 'SecondThird') - t.equal(bl.shallowSlice(5, -3).toString(), 'SecondTh') - t.equal(bl.shallowSlice(-8).toString(), 'ondThird') -}) - -tape('shallow slice does not make a copy', function (t) { - t.plan(1) - var buffers = [Buffer.from('First'), Buffer.from('Second'), Buffer.from('Third')] - var bl = (new BufferList(buffers)).shallowSlice(5, -3) - - buffers[1].fill('h') - buffers[2].fill('h') - - t.equal(bl.toString(), 'hhhhhhhh') -}) - -tape('duplicate', function (t) { - t.plan(2) - - var bl = new BufferList('abcdefghij\xff\x00') - , dup = bl.duplicate() - - t.equal(bl.prototype, dup.prototype) - t.equal(bl.toString('hex'), dup.toString('hex')) -}) - -tape('destroy no pipe', function (t) { - t.plan(2) - - var bl = new BufferList('alsdkfja;lsdkfja;lsdk') - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) -}) - -!process.browser && tape('destroy with pipe before read end', function (t) { - t.plan(2) - - var bl = new BufferList() - fs.createReadStream(__dirname + '/test.js') - .pipe(bl) - - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) - -}) - -!process.browser && tape('destroy with pipe before read end with race', function (t) { - t.plan(2) - - var bl = new BufferList() - fs.createReadStream(__dirname + '/test.js') - .pipe(bl) - - setTimeout(function () { - bl.destroy() - setTimeout(function () { - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) - }, 500) - }, 500) -}) - -!process.browser && tape('destroy with pipe after read end', function (t) { - t.plan(2) - - var bl = new BufferList() - fs.createReadStream(__dirname + '/test.js') - .on('end', onEnd) - .pipe(bl) - - function onEnd () { - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) - } -}) - -!process.browser && tape('destroy with pipe while writing to a destination', function (t) { - t.plan(4) - - var bl = new BufferList() - , ds = new BufferList() - - fs.createReadStream(__dirname + '/test.js') - .on('end', onEnd) - .pipe(bl) - - function onEnd () { - bl.pipe(ds) - - setTimeout(function () { - bl.destroy() - - t.equals(bl._bufs.length, 0) - t.equals(bl.length, 0) - - ds.destroy() - - t.equals(bl._bufs.length, 0) - t.equals(bl.length, 0) - - }, 100) - } -}) - -!process.browser && tape('handle error', function (t) { - t.plan(2) - fs.createReadStream('/does/not/exist').pipe(BufferList(function (err, data) { - t.ok(err instanceof Error, 'has error') - t.notOk(data, 'no data') - })) -}) diff --git a/node_modules/camelcase/index.js b/node_modules/camelcase/index.js deleted file mode 100644 index 6ff4ee85..00000000 --- a/node_modules/camelcase/index.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -const UPPERCASE = /[\p{Lu}]/u; -const LOWERCASE = /[\p{Ll}]/u; -const LEADING_CAPITAL = /^[\p{Lu}](?![\p{Lu}])/gu; -const IDENTIFIER = /([\p{Alpha}\p{N}_]|$)/u; -const SEPARATORS = /[_.\- ]+/; - -const LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source); -const SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu'); -const NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu'); - -const preserveCamelCase = (string, toLowerCase, toUpperCase) => { - let isLastCharLower = false; - let isLastCharUpper = false; - let isLastLastCharUpper = false; - - for (let i = 0; i < string.length; i++) { - const character = string[i]; - - if (isLastCharLower && UPPERCASE.test(character)) { - string = string.slice(0, i) + '-' + string.slice(i); - isLastCharLower = false; - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = true; - i++; - } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) { - string = string.slice(0, i - 1) + '-' + string.slice(i - 1); - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = false; - isLastCharLower = true; - } else { - isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character; - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character; - } - } - - return string; -}; - -const preserveConsecutiveUppercase = (input, toLowerCase) => { - LEADING_CAPITAL.lastIndex = 0; - - return input.replace(LEADING_CAPITAL, m1 => toLowerCase(m1)); -}; - -const postProcess = (input, toUpperCase) => { - SEPARATORS_AND_IDENTIFIER.lastIndex = 0; - NUMBERS_AND_IDENTIFIER.lastIndex = 0; - - return input.replace(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier)) - .replace(NUMBERS_AND_IDENTIFIER, m => toUpperCase(m)); -}; - -const camelCase = (input, options) => { - if (!(typeof input === 'string' || Array.isArray(input))) { - throw new TypeError('Expected the input to be `string | string[]`'); - } - - options = { - pascalCase: false, - preserveConsecutiveUppercase: false, - ...options - }; - - if (Array.isArray(input)) { - input = input.map(x => x.trim()) - .filter(x => x.length) - .join('-'); - } else { - input = input.trim(); - } - - if (input.length === 0) { - return ''; - } - - const toLowerCase = options.locale === false ? - string => string.toLowerCase() : - string => string.toLocaleLowerCase(options.locale); - const toUpperCase = options.locale === false ? - string => string.toUpperCase() : - string => string.toLocaleUpperCase(options.locale); - - if (input.length === 1) { - return options.pascalCase ? toUpperCase(input) : toLowerCase(input); - } - - const hasUpperCase = input !== toLowerCase(input); - - if (hasUpperCase) { - input = preserveCamelCase(input, toLowerCase, toUpperCase); - } - - input = input.replace(LEADING_SEPARATORS, ''); - - if (options.preserveConsecutiveUppercase) { - input = preserveConsecutiveUppercase(input, toLowerCase); - } else { - input = toLowerCase(input); - } - - if (options.pascalCase) { - input = toUpperCase(input.charAt(0)) + input.slice(1); - } - - return postProcess(input, toUpperCase); -}; - -module.exports = camelCase; -// TODO: Remove this for the next major release -module.exports.default = camelCase; diff --git a/node_modules/camelcase/license b/node_modules/camelcase/license deleted file mode 100644 index fa7ceba3..00000000 --- a/node_modules/camelcase/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/camelcase/package.json b/node_modules/camelcase/package.json deleted file mode 100644 index c4335792..00000000 --- a/node_modules/camelcase/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "camelcase", - "version": "6.3.0", - "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", - "license": "MIT", - "repository": "sindresorhus/camelcase", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "camelcase", - "camel-case", - "camel", - "case", - "dash", - "hyphen", - "dot", - "underscore", - "separator", - "string", - "text", - "convert", - "pascalcase", - "pascal-case" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.11.0", - "xo": "^0.28.3" - } -} diff --git a/node_modules/camelcase/readme.md b/node_modules/camelcase/readme.md deleted file mode 100644 index 0ff8f9e1..00000000 --- a/node_modules/camelcase/readme.md +++ /dev/null @@ -1,144 +0,0 @@ -# camelcase - -> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar` - -Correctly handles Unicode strings. - -If you use this on untrusted user input, don't forget to limit the length to something reasonable. - -## Install - -``` -$ npm install camelcase -``` - -*If you need to support Firefox < 78, stay on version 5 as version 6 uses regex features not available in Firefox < 78.* - -## Usage - -```js -const camelCase = require('camelcase'); - -camelCase('foo-bar'); -//=> 'fooBar' - -camelCase('foo_bar'); -//=> 'fooBar' - -camelCase('Foo-Bar'); -//=> 'fooBar' - -camelCase('розовый_пушистый_единорог'); -//=> 'розовыйПушистыйЕдинорог' - -camelCase('Foo-Bar', {pascalCase: true}); -//=> 'FooBar' - -camelCase('--foo.bar', {pascalCase: false}); -//=> 'fooBar' - -camelCase('Foo-BAR', {preserveConsecutiveUppercase: true}); -//=> 'fooBAR' - -camelCase('fooBAR', {pascalCase: true, preserveConsecutiveUppercase: true})); -//=> 'FooBAR' - -camelCase('foo bar'); -//=> 'fooBar' - -console.log(process.argv[3]); -//=> '--foo-bar' -camelCase(process.argv[3]); -//=> 'fooBar' - -camelCase(['foo', 'bar']); -//=> 'fooBar' - -camelCase(['__foo__', '--bar'], {pascalCase: true}); -//=> 'FooBar' - -camelCase(['foo', 'BAR'], {pascalCase: true, preserveConsecutiveUppercase: true}) -//=> 'FooBAR' - -camelCase('lorem-ipsum', {locale: 'en-US'}); -//=> 'loremIpsum' -``` - -## API - -### camelCase(input, options?) - -#### input - -Type: `string | string[]` - -String to convert to camel case. - -#### options - -Type: `object` - -##### pascalCase - -Type: `boolean`\ -Default: `false` - -Uppercase the first character: `foo-bar` → `FooBar` - -##### preserveConsecutiveUppercase - -Type: `boolean`\ -Default: `false` - -Preserve the consecutive uppercase characters: `foo-BAR` → `FooBAR`. - -##### locale - -Type: `false | string | string[]`\ -Default: The host environment’s current locale. - -The locale parameter indicates the locale to be used to convert to upper/lower case according to any locale-specific case mappings. If multiple locales are given in an array, the best available locale is used. - -```js -const camelCase = require('camelcase'); - -camelCase('lorem-ipsum', {locale: 'en-US'}); -//=> 'loremIpsum' - -camelCase('lorem-ipsum', {locale: 'tr-TR'}); -//=> 'loremİpsum' - -camelCase('lorem-ipsum', {locale: ['en-US', 'en-GB']}); -//=> 'loremIpsum' - -camelCase('lorem-ipsum', {locale: ['tr', 'TR', 'tr-TR']}); -//=> 'loremİpsum' -``` - -Setting `locale: false` ignores the platform locale and uses the [Unicode Default Case Conversion](https://unicode-org.github.io/icu/userguide/transforms/casemappings.html#simple-single-character-case-mapping) algorithm: - -```js -const camelCase = require('camelcase'); - -// On a platform with 'tr-TR' - -camelCase('lorem-ipsum'); -//=> 'loremİpsum' - -camelCase('lorem-ipsum', {locale: false}); -//=> 'loremIpsum' -``` - -## camelcase for enterprise - -Available as part of the Tidelift Subscription. - -The maintainers of camelcase and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-camelcase?utm_source=npm-camelcase&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -## Related - -- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module -- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase -- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string -- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one -- [camelcase-keys](https://github.com/sindresorhus/camelcase-keys) - Convert object keys to camel case diff --git a/node_modules/concat-stream/LICENSE b/node_modules/concat-stream/LICENSE deleted file mode 100644 index 99c130e1..00000000 --- a/node_modules/concat-stream/LICENSE +++ /dev/null @@ -1,24 +0,0 @@ -The MIT License - -Copyright (c) 2013 Max Ogden - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/concat-stream/index.js b/node_modules/concat-stream/index.js deleted file mode 100644 index dd672a76..00000000 --- a/node_modules/concat-stream/index.js +++ /dev/null @@ -1,144 +0,0 @@ -var Writable = require('readable-stream').Writable -var inherits = require('inherits') -var bufferFrom = require('buffer-from') - -if (typeof Uint8Array === 'undefined') { - var U8 = require('typedarray').Uint8Array -} else { - var U8 = Uint8Array -} - -function ConcatStream(opts, cb) { - if (!(this instanceof ConcatStream)) return new ConcatStream(opts, cb) - - if (typeof opts === 'function') { - cb = opts - opts = {} - } - if (!opts) opts = {} - - var encoding = opts.encoding - var shouldInferEncoding = false - - if (!encoding) { - shouldInferEncoding = true - } else { - encoding = String(encoding).toLowerCase() - if (encoding === 'u8' || encoding === 'uint8') { - encoding = 'uint8array' - } - } - - Writable.call(this, { objectMode: true }) - - this.encoding = encoding - this.shouldInferEncoding = shouldInferEncoding - - if (cb) this.on('finish', function () { cb(this.getBody()) }) - this.body = [] -} - -module.exports = ConcatStream -inherits(ConcatStream, Writable) - -ConcatStream.prototype._write = function(chunk, enc, next) { - this.body.push(chunk) - next() -} - -ConcatStream.prototype.inferEncoding = function (buff) { - var firstBuffer = buff === undefined ? this.body[0] : buff; - if (Buffer.isBuffer(firstBuffer)) return 'buffer' - if (typeof Uint8Array !== 'undefined' && firstBuffer instanceof Uint8Array) return 'uint8array' - if (Array.isArray(firstBuffer)) return 'array' - if (typeof firstBuffer === 'string') return 'string' - if (Object.prototype.toString.call(firstBuffer) === "[object Object]") return 'object' - return 'buffer' -} - -ConcatStream.prototype.getBody = function () { - if (!this.encoding && this.body.length === 0) return [] - if (this.shouldInferEncoding) this.encoding = this.inferEncoding() - if (this.encoding === 'array') return arrayConcat(this.body) - if (this.encoding === 'string') return stringConcat(this.body) - if (this.encoding === 'buffer') return bufferConcat(this.body) - if (this.encoding === 'uint8array') return u8Concat(this.body) - return this.body -} - -var isArray = Array.isArray || function (arr) { - return Object.prototype.toString.call(arr) == '[object Array]' -} - -function isArrayish (arr) { - return /Array\]$/.test(Object.prototype.toString.call(arr)) -} - -function isBufferish (p) { - return typeof p === 'string' || isArrayish(p) || (p && typeof p.subarray === 'function') -} - -function stringConcat (parts) { - var strings = [] - var needsToString = false - for (var i = 0; i < parts.length; i++) { - var p = parts[i] - if (typeof p === 'string') { - strings.push(p) - } else if (Buffer.isBuffer(p)) { - strings.push(p) - } else if (isBufferish(p)) { - strings.push(bufferFrom(p)) - } else { - strings.push(bufferFrom(String(p))) - } - } - if (Buffer.isBuffer(parts[0])) { - strings = Buffer.concat(strings) - strings = strings.toString('utf8') - } else { - strings = strings.join('') - } - return strings -} - -function bufferConcat (parts) { - var bufs = [] - for (var i = 0; i < parts.length; i++) { - var p = parts[i] - if (Buffer.isBuffer(p)) { - bufs.push(p) - } else if (isBufferish(p)) { - bufs.push(bufferFrom(p)) - } else { - bufs.push(bufferFrom(String(p))) - } - } - return Buffer.concat(bufs) -} - -function arrayConcat (parts) { - var res = [] - for (var i = 0; i < parts.length; i++) { - res.push.apply(res, parts[i]) - } - return res -} - -function u8Concat (parts) { - var len = 0 - for (var i = 0; i < parts.length; i++) { - if (typeof parts[i] === 'string') { - parts[i] = bufferFrom(parts[i]) - } - len += parts[i].length - } - var u8 = new U8(len) - for (var i = 0, offset = 0; i < parts.length; i++) { - var part = parts[i] - for (var j = 0; j < part.length; j++) { - u8[offset++] = part[j] - } - } - return u8 -} diff --git a/node_modules/concat-stream/package.json b/node_modules/concat-stream/package.json deleted file mode 100644 index f7090223..00000000 --- a/node_modules/concat-stream/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "concat-stream", - "version": "1.6.2", - "description": "writable stream that concatenates strings or binary data and calls a callback with the result", - "tags": [ - "stream", - "simple", - "util", - "utility" - ], - "author": "Max Ogden ", - "repository": { - "type": "git", - "url": "http://github.com/maxogden/concat-stream.git" - }, - "bugs": { - "url": "http://github.com/maxogden/concat-stream/issues" - }, - "engines": [ - "node >= 0.8" - ], - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "tape test/*.js test/server/*.js" - }, - "license": "MIT", - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "devDependencies": { - "tape": "^4.6.3" - }, - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/node_modules/concat-stream/readme.md b/node_modules/concat-stream/readme.md deleted file mode 100644 index 7aa19c4f..00000000 --- a/node_modules/concat-stream/readme.md +++ /dev/null @@ -1,102 +0,0 @@ -# concat-stream - -Writable stream that concatenates all the data from a stream and calls a callback with the result. Use this when you want to collect all the data from a stream into a single buffer. - -[![Build Status](https://travis-ci.org/maxogden/concat-stream.svg?branch=master)](https://travis-ci.org/maxogden/concat-stream) - -[![NPM](https://nodei.co/npm/concat-stream.png)](https://nodei.co/npm/concat-stream/) - -### description - -Streams emit many buffers. If you want to collect all of the buffers, and when the stream ends concatenate all of the buffers together and receive a single buffer then this is the module for you. - -Only use this if you know you can fit all of the output of your stream into a single Buffer (e.g. in RAM). - -There are also `objectMode` streams that emit things other than Buffers, and you can concatenate these too. See below for details. - -## Related - -`concat-stream` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. - -### examples - -#### Buffers - -```js -var fs = require('fs') -var concat = require('concat-stream') - -var readStream = fs.createReadStream('cat.png') -var concatStream = concat(gotPicture) - -readStream.on('error', handleError) -readStream.pipe(concatStream) - -function gotPicture(imageBuffer) { - // imageBuffer is all of `cat.png` as a node.js Buffer -} - -function handleError(err) { - // handle your error appropriately here, e.g.: - console.error(err) // print the error to STDERR - process.exit(1) // exit program with non-zero exit code -} - -``` - -#### Arrays - -```js -var write = concat(function(data) {}) -write.write([1,2,3]) -write.write([4,5,6]) -write.end() -// data will be [1,2,3,4,5,6] in the above callback -``` - -#### Uint8Arrays - -```js -var write = concat(function(data) {}) -var a = new Uint8Array(3) -a[0] = 97; a[1] = 98; a[2] = 99 -write.write(a) -write.write('!') -write.end(Buffer.from('!!1')) -``` - -See `test/` for more examples - -# methods - -```js -var concat = require('concat-stream') -``` - -## var writable = concat(opts={}, cb) - -Return a `writable` stream that will fire `cb(data)` with all of the data that -was written to the stream. Data can be written to `writable` as strings, -Buffers, arrays of byte integers, and Uint8Arrays. - -By default `concat-stream` will give you back the same data type as the type of the first buffer written to the stream. Use `opts.encoding` to set what format `data` should be returned as, e.g. if you if you don't want to rely on the built-in type checking or for some other reason. - -* `string` - get a string -* `buffer` - get back a Buffer -* `array` - get an array of byte integers -* `uint8array`, `u8`, `uint8` - get back a Uint8Array -* `object`, get back an array of Objects - -If you don't specify an encoding, and the types can't be inferred (e.g. you write things that aren't in the list above), it will try to convert concat them into a `Buffer`. - -If nothing is written to `writable` then `data` will be an empty array `[]`. - -# error handling - -`concat-stream` does not handle errors for you, so you must handle errors on whatever streams you pipe into `concat-stream`. This is a general rule when programming with node.js streams: always handle errors on each and every stream. Since `concat-stream` is not itself a stream it does not emit errors. - -We recommend using [`end-of-stream`](https://npmjs.org/end-of-stream) or [`pump`](https://npmjs.org/pump) for writing error tolerant stream code. - -# license - -MIT LICENSE diff --git a/node_modules/decamelize/index.js b/node_modules/decamelize/index.js deleted file mode 100644 index 702e270e..00000000 --- a/node_modules/decamelize/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = (text, separator = '_') => { - if (!(typeof text === 'string' && typeof separator === 'string')) { - throw new TypeError('The `text` and `separator` arguments should be of type `string`'); - } - - return text - .replace(/([\p{Lowercase_Letter}\d])(\p{Uppercase_Letter})/gu, `$1${separator}$2`) - .replace(/(\p{Uppercase_Letter}+)(\p{Uppercase_Letter}\p{Lowercase_Letter}+)/gu, `$1${separator}$2`) - .toLowerCase(); -}; diff --git a/node_modules/decamelize/license b/node_modules/decamelize/license deleted file mode 100644 index e7af2f77..00000000 --- a/node_modules/decamelize/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/decamelize/package.json b/node_modules/decamelize/package.json deleted file mode 100644 index 116ae7a8..00000000 --- a/node_modules/decamelize/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "decamelize", - "version": "4.0.0", - "description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow", - "license": "MIT", - "repository": "sindresorhus/decamelize", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "decamelize", - "decamelcase", - "camelcase", - "lowercase", - "case", - "dash", - "hyphen", - "string", - "text", - "convert" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.11.0", - "xo": "^0.24.0" - } -} diff --git a/node_modules/decamelize/readme.md b/node_modules/decamelize/readme.md deleted file mode 100644 index 4fd4e2c7..00000000 --- a/node_modules/decamelize/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize) - -> Convert a camelized string into a lowercased one with a custom separator
-> Example: `unicornRainbow` → `unicorn_rainbow` - -## Install - -``` -$ npm install decamelize -``` - -## Usage - -```js -const decamelize = require('decamelize'); - -decamelize('unicornRainbow'); -//=> 'unicorn_rainbow' - -decamelize('unicornRainbow', '-'); -//=> 'unicorn-rainbow' -``` - -## API - -### decamelize(input, separator?) - -#### input - -Type: `string` - -#### separator - -Type: `string`\ -Default: `'_'` - -## Related - -See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse. - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/depd/History.md b/node_modules/depd/History.md deleted file mode 100644 index cd9ebaaa..00000000 --- a/node_modules/depd/History.md +++ /dev/null @@ -1,103 +0,0 @@ -2.0.0 / 2018-10-26 -================== - - * Drop support for Node.js 0.6 - * Replace internal `eval` usage with `Function` constructor - * Use instance methods on `process` to check for listeners - -1.1.2 / 2018-01-11 -================== - - * perf: remove argument reassignment - * Support Node.js 0.6 to 9.x - -1.1.1 / 2017-07-27 -================== - - * Remove unnecessary `Buffer` loading - * Support Node.js 0.6 to 8.x - -1.1.0 / 2015-09-14 -================== - - * Enable strict mode in more places - * Support io.js 3.x - * Support io.js 2.x - * Support web browser loading - - Requires bundler like Browserify or webpack - -1.0.1 / 2015-04-07 -================== - - * Fix `TypeError`s when under `'use strict'` code - * Fix useless type name on auto-generated messages - * Support io.js 1.x - * Support Node.js 0.12 - -1.0.0 / 2014-09-17 -================== - - * No changes - -0.4.5 / 2014-09-09 -================== - - * Improve call speed to functions using the function wrapper - * Support Node.js 0.6 - -0.4.4 / 2014-07-27 -================== - - * Work-around v8 generating empty stack traces - -0.4.3 / 2014-07-26 -================== - - * Fix exception when global `Error.stackTraceLimit` is too low - -0.4.2 / 2014-07-19 -================== - - * Correct call site for wrapped functions and properties - -0.4.1 / 2014-07-19 -================== - - * Improve automatic message generation for function properties - -0.4.0 / 2014-07-19 -================== - - * Add `TRACE_DEPRECATION` environment variable - * Remove non-standard grey color from color output - * Support `--no-deprecation` argument - * Support `--trace-deprecation` argument - * Support `deprecate.property(fn, prop, message)` - -0.3.0 / 2014-06-16 -================== - - * Add `NO_DEPRECATION` environment variable - -0.2.0 / 2014-06-15 -================== - - * Add `deprecate.property(obj, prop, message)` - * Remove `supports-color` dependency for node.js 0.8 - -0.1.0 / 2014-06-15 -================== - - * Add `deprecate.function(fn, message)` - * Add `process.on('deprecation', fn)` emitter - * Automatically generate message when omitted from `deprecate()` - -0.0.1 / 2014-06-15 -================== - - * Fix warning for dynamic calls at singe call site - -0.0.0 / 2014-06-15 -================== - - * Initial implementation diff --git a/node_modules/depd/LICENSE b/node_modules/depd/LICENSE deleted file mode 100644 index 248de7af..00000000 --- a/node_modules/depd/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2018 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/depd/Readme.md b/node_modules/depd/Readme.md deleted file mode 100644 index 043d1ca2..00000000 --- a/node_modules/depd/Readme.md +++ /dev/null @@ -1,280 +0,0 @@ -# depd - -[![NPM Version][npm-version-image]][npm-url] -[![NPM Downloads][npm-downloads-image]][npm-url] -[![Node.js Version][node-image]][node-url] -[![Linux Build][travis-image]][travis-url] -[![Windows Build][appveyor-image]][appveyor-url] -[![Coverage Status][coveralls-image]][coveralls-url] - -Deprecate all the things - -> With great modules comes great responsibility; mark things deprecated! - -## Install - -This module is installed directly using `npm`: - -```sh -$ npm install depd -``` - -This module can also be bundled with systems like -[Browserify](http://browserify.org/) or [webpack](https://webpack.github.io/), -though by default this module will alter it's API to no longer display or -track deprecations. - -## API - - - -```js -var deprecate = require('depd')('my-module') -``` - -This library allows you to display deprecation messages to your users. -This library goes above and beyond with deprecation warnings by -introspection of the call stack (but only the bits that it is interested -in). - -Instead of just warning on the first invocation of a deprecated -function and never again, this module will warn on the first invocation -of a deprecated function per unique call site, making it ideal to alert -users of all deprecated uses across the code base, rather than just -whatever happens to execute first. - -The deprecation warnings from this module also include the file and line -information for the call into the module that the deprecated function was -in. - -**NOTE** this library has a similar interface to the `debug` module, and -this module uses the calling file to get the boundary for the call stacks, -so you should always create a new `deprecate` object in each file and not -within some central file. - -### depd(namespace) - -Create a new deprecate function that uses the given namespace name in the -messages and will display the call site prior to the stack entering the -file this function was called from. It is highly suggested you use the -name of your module as the namespace. - -### deprecate(message) - -Call this function from deprecated code to display a deprecation message. -This message will appear once per unique caller site. Caller site is the -first call site in the stack in a different file from the caller of this -function. - -If the message is omitted, a message is generated for you based on the site -of the `deprecate()` call and will display the name of the function called, -similar to the name displayed in a stack trace. - -### deprecate.function(fn, message) - -Call this function to wrap a given function in a deprecation message on any -call to the function. An optional message can be supplied to provide a custom -message. - -### deprecate.property(obj, prop, message) - -Call this function to wrap a given property on object in a deprecation message -on any accessing or setting of the property. An optional message can be supplied -to provide a custom message. - -The method must be called on the object where the property belongs (not -inherited from the prototype). - -If the property is a data descriptor, it will be converted to an accessor -descriptor in order to display the deprecation message. - -### process.on('deprecation', fn) - -This module will allow easy capturing of deprecation errors by emitting the -errors as the type "deprecation" on the global `process`. If there are no -listeners for this type, the errors are written to STDERR as normal, but if -there are any listeners, nothing will be written to STDERR and instead only -emitted. From there, you can write the errors in a different format or to a -logging source. - -The error represents the deprecation and is emitted only once with the same -rules as writing to STDERR. The error has the following properties: - - - `message` - This is the message given by the library - - `name` - This is always `'DeprecationError'` - - `namespace` - This is the namespace the deprecation came from - - `stack` - This is the stack of the call to the deprecated thing - -Example `error.stack` output: - -``` -DeprecationError: my-cool-module deprecated oldfunction - at Object. ([eval]-wrapper:6:22) - at Module._compile (module.js:456:26) - at evalScript (node.js:532:25) - at startup (node.js:80:7) - at node.js:902:3 -``` - -### process.env.NO_DEPRECATION - -As a user of modules that are deprecated, the environment variable `NO_DEPRECATION` -is provided as a quick solution to silencing deprecation warnings from being -output. The format of this is similar to that of `DEBUG`: - -```sh -$ NO_DEPRECATION=my-module,othermod node app.js -``` - -This will suppress deprecations from being output for "my-module" and "othermod". -The value is a list of comma-separated namespaces. To suppress every warning -across all namespaces, use the value `*` for a namespace. - -Providing the argument `--no-deprecation` to the `node` executable will suppress -all deprecations (only available in Node.js 0.8 or higher). - -**NOTE** This will not suppress the deperecations given to any "deprecation" -event listeners, just the output to STDERR. - -### process.env.TRACE_DEPRECATION - -As a user of modules that are deprecated, the environment variable `TRACE_DEPRECATION` -is provided as a solution to getting more detailed location information in deprecation -warnings by including the entire stack trace. The format of this is the same as -`NO_DEPRECATION`: - -```sh -$ TRACE_DEPRECATION=my-module,othermod node app.js -``` - -This will include stack traces for deprecations being output for "my-module" and -"othermod". The value is a list of comma-separated namespaces. To trace every -warning across all namespaces, use the value `*` for a namespace. - -Providing the argument `--trace-deprecation` to the `node` executable will trace -all deprecations (only available in Node.js 0.8 or higher). - -**NOTE** This will not trace the deperecations silenced by `NO_DEPRECATION`. - -## Display - -![message](files/message.png) - -When a user calls a function in your library that you mark deprecated, they -will see the following written to STDERR (in the given colors, similar colors -and layout to the `debug` module): - -``` -bright cyan bright yellow -| | reset cyan -| | | | -▼ ▼ ▼ ▼ -my-cool-module deprecated oldfunction [eval]-wrapper:6:22 -▲ ▲ ▲ ▲ -| | | | -namespace | | location of mycoolmod.oldfunction() call - | deprecation message - the word "deprecated" -``` - -If the user redirects their STDERR to a file or somewhere that does not support -colors, they see (similar layout to the `debug` module): - -``` -Sun, 15 Jun 2014 05:21:37 GMT my-cool-module deprecated oldfunction at [eval]-wrapper:6:22 -▲ ▲ ▲ ▲ ▲ -| | | | | -timestamp of message namespace | | location of mycoolmod.oldfunction() call - | deprecation message - the word "deprecated" -``` - -## Examples - -### Deprecating all calls to a function - -This will display a deprecated message about "oldfunction" being deprecated -from "my-module" on STDERR. - -```js -var deprecate = require('depd')('my-cool-module') - -// message automatically derived from function name -// Object.oldfunction -exports.oldfunction = deprecate.function(function oldfunction () { - // all calls to function are deprecated -}) - -// specific message -exports.oldfunction = deprecate.function(function () { - // all calls to function are deprecated -}, 'oldfunction') -``` - -### Conditionally deprecating a function call - -This will display a deprecated message about "weirdfunction" being deprecated -from "my-module" on STDERR when called with less than 2 arguments. - -```js -var deprecate = require('depd')('my-cool-module') - -exports.weirdfunction = function () { - if (arguments.length < 2) { - // calls with 0 or 1 args are deprecated - deprecate('weirdfunction args < 2') - } -} -``` - -When calling `deprecate` as a function, the warning is counted per call site -within your own module, so you can display different deprecations depending -on different situations and the users will still get all the warnings: - -```js -var deprecate = require('depd')('my-cool-module') - -exports.weirdfunction = function () { - if (arguments.length < 2) { - // calls with 0 or 1 args are deprecated - deprecate('weirdfunction args < 2') - } else if (typeof arguments[0] !== 'string') { - // calls with non-string first argument are deprecated - deprecate('weirdfunction non-string first arg') - } -} -``` - -### Deprecating property access - -This will display a deprecated message about "oldprop" being deprecated -from "my-module" on STDERR when accessed. A deprecation will be displayed -when setting the value and when getting the value. - -```js -var deprecate = require('depd')('my-cool-module') - -exports.oldprop = 'something' - -// message automatically derives from property name -deprecate.property(exports, 'oldprop') - -// explicit message -deprecate.property(exports, 'oldprop', 'oldprop >= 0.10') -``` - -## License - -[MIT](LICENSE) - -[appveyor-image]: https://badgen.net/appveyor/ci/dougwilson/nodejs-depd/master?label=windows -[appveyor-url]: https://ci.appveyor.com/project/dougwilson/nodejs-depd -[coveralls-image]: https://badgen.net/coveralls/c/github/dougwilson/nodejs-depd/master -[coveralls-url]: https://coveralls.io/r/dougwilson/nodejs-depd?branch=master -[node-image]: https://badgen.net/npm/node/depd -[node-url]: https://nodejs.org/en/download/ -[npm-downloads-image]: https://badgen.net/npm/dm/depd -[npm-url]: https://npmjs.org/package/depd -[npm-version-image]: https://badgen.net/npm/v/depd -[travis-image]: https://badgen.net/travis/dougwilson/nodejs-depd/master?label=linux -[travis-url]: https://travis-ci.org/dougwilson/nodejs-depd diff --git a/node_modules/depd/index.js b/node_modules/depd/index.js deleted file mode 100644 index 1bf2fcfd..00000000 --- a/node_modules/depd/index.js +++ /dev/null @@ -1,538 +0,0 @@ -/*! - * depd - * Copyright(c) 2014-2018 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module dependencies. - */ - -var relative = require('path').relative - -/** - * Module exports. - */ - -module.exports = depd - -/** - * Get the path to base files on. - */ - -var basePath = process.cwd() - -/** - * Determine if namespace is contained in the string. - */ - -function containsNamespace (str, namespace) { - var vals = str.split(/[ ,]+/) - var ns = String(namespace).toLowerCase() - - for (var i = 0; i < vals.length; i++) { - var val = vals[i] - - // namespace contained - if (val && (val === '*' || val.toLowerCase() === ns)) { - return true - } - } - - return false -} - -/** - * Convert a data descriptor to accessor descriptor. - */ - -function convertDataDescriptorToAccessor (obj, prop, message) { - var descriptor = Object.getOwnPropertyDescriptor(obj, prop) - var value = descriptor.value - - descriptor.get = function getter () { return value } - - if (descriptor.writable) { - descriptor.set = function setter (val) { return (value = val) } - } - - delete descriptor.value - delete descriptor.writable - - Object.defineProperty(obj, prop, descriptor) - - return descriptor -} - -/** - * Create arguments string to keep arity. - */ - -function createArgumentsString (arity) { - var str = '' - - for (var i = 0; i < arity; i++) { - str += ', arg' + i - } - - return str.substr(2) -} - -/** - * Create stack string from stack. - */ - -function createStackString (stack) { - var str = this.name + ': ' + this.namespace - - if (this.message) { - str += ' deprecated ' + this.message - } - - for (var i = 0; i < stack.length; i++) { - str += '\n at ' + stack[i].toString() - } - - return str -} - -/** - * Create deprecate for namespace in caller. - */ - -function depd (namespace) { - if (!namespace) { - throw new TypeError('argument namespace is required') - } - - var stack = getStack() - var site = callSiteLocation(stack[1]) - var file = site[0] - - function deprecate (message) { - // call to self as log - log.call(deprecate, message) - } - - deprecate._file = file - deprecate._ignored = isignored(namespace) - deprecate._namespace = namespace - deprecate._traced = istraced(namespace) - deprecate._warned = Object.create(null) - - deprecate.function = wrapfunction - deprecate.property = wrapproperty - - return deprecate -} - -/** - * Determine if event emitter has listeners of a given type. - * - * The way to do this check is done three different ways in Node.js >= 0.8 - * so this consolidates them into a minimal set using instance methods. - * - * @param {EventEmitter} emitter - * @param {string} type - * @returns {boolean} - * @private - */ - -function eehaslisteners (emitter, type) { - var count = typeof emitter.listenerCount !== 'function' - ? emitter.listeners(type).length - : emitter.listenerCount(type) - - return count > 0 -} - -/** - * Determine if namespace is ignored. - */ - -function isignored (namespace) { - if (process.noDeprecation) { - // --no-deprecation support - return true - } - - var str = process.env.NO_DEPRECATION || '' - - // namespace ignored - return containsNamespace(str, namespace) -} - -/** - * Determine if namespace is traced. - */ - -function istraced (namespace) { - if (process.traceDeprecation) { - // --trace-deprecation support - return true - } - - var str = process.env.TRACE_DEPRECATION || '' - - // namespace traced - return containsNamespace(str, namespace) -} - -/** - * Display deprecation message. - */ - -function log (message, site) { - var haslisteners = eehaslisteners(process, 'deprecation') - - // abort early if no destination - if (!haslisteners && this._ignored) { - return - } - - var caller - var callFile - var callSite - var depSite - var i = 0 - var seen = false - var stack = getStack() - var file = this._file - - if (site) { - // provided site - depSite = site - callSite = callSiteLocation(stack[1]) - callSite.name = depSite.name - file = callSite[0] - } else { - // get call site - i = 2 - depSite = callSiteLocation(stack[i]) - callSite = depSite - } - - // get caller of deprecated thing in relation to file - for (; i < stack.length; i++) { - caller = callSiteLocation(stack[i]) - callFile = caller[0] - - if (callFile === file) { - seen = true - } else if (callFile === this._file) { - file = this._file - } else if (seen) { - break - } - } - - var key = caller - ? depSite.join(':') + '__' + caller.join(':') - : undefined - - if (key !== undefined && key in this._warned) { - // already warned - return - } - - this._warned[key] = true - - // generate automatic message from call site - var msg = message - if (!msg) { - msg = callSite === depSite || !callSite.name - ? defaultMessage(depSite) - : defaultMessage(callSite) - } - - // emit deprecation if listeners exist - if (haslisteners) { - var err = DeprecationError(this._namespace, msg, stack.slice(i)) - process.emit('deprecation', err) - return - } - - // format and write message - var format = process.stderr.isTTY - ? formatColor - : formatPlain - var output = format.call(this, msg, caller, stack.slice(i)) - process.stderr.write(output + '\n', 'utf8') -} - -/** - * Get call site location as array. - */ - -function callSiteLocation (callSite) { - var file = callSite.getFileName() || '' - var line = callSite.getLineNumber() - var colm = callSite.getColumnNumber() - - if (callSite.isEval()) { - file = callSite.getEvalOrigin() + ', ' + file - } - - var site = [file, line, colm] - - site.callSite = callSite - site.name = callSite.getFunctionName() - - return site -} - -/** - * Generate a default message from the site. - */ - -function defaultMessage (site) { - var callSite = site.callSite - var funcName = site.name - - // make useful anonymous name - if (!funcName) { - funcName = '' - } - - var context = callSite.getThis() - var typeName = context && callSite.getTypeName() - - // ignore useless type name - if (typeName === 'Object') { - typeName = undefined - } - - // make useful type name - if (typeName === 'Function') { - typeName = context.name || typeName - } - - return typeName && callSite.getMethodName() - ? typeName + '.' + funcName - : funcName -} - -/** - * Format deprecation message without color. - */ - -function formatPlain (msg, caller, stack) { - var timestamp = new Date().toUTCString() - - var formatted = timestamp + - ' ' + this._namespace + - ' deprecated ' + msg - - // add stack trace - if (this._traced) { - for (var i = 0; i < stack.length; i++) { - formatted += '\n at ' + stack[i].toString() - } - - return formatted - } - - if (caller) { - formatted += ' at ' + formatLocation(caller) - } - - return formatted -} - -/** - * Format deprecation message with color. - */ - -function formatColor (msg, caller, stack) { - var formatted = '\x1b[36;1m' + this._namespace + '\x1b[22;39m' + // bold cyan - ' \x1b[33;1mdeprecated\x1b[22;39m' + // bold yellow - ' \x1b[0m' + msg + '\x1b[39m' // reset - - // add stack trace - if (this._traced) { - for (var i = 0; i < stack.length; i++) { - formatted += '\n \x1b[36mat ' + stack[i].toString() + '\x1b[39m' // cyan - } - - return formatted - } - - if (caller) { - formatted += ' \x1b[36m' + formatLocation(caller) + '\x1b[39m' // cyan - } - - return formatted -} - -/** - * Format call site location. - */ - -function formatLocation (callSite) { - return relative(basePath, callSite[0]) + - ':' + callSite[1] + - ':' + callSite[2] -} - -/** - * Get the stack as array of call sites. - */ - -function getStack () { - var limit = Error.stackTraceLimit - var obj = {} - var prep = Error.prepareStackTrace - - Error.prepareStackTrace = prepareObjectStackTrace - Error.stackTraceLimit = Math.max(10, limit) - - // capture the stack - Error.captureStackTrace(obj) - - // slice this function off the top - var stack = obj.stack.slice(1) - - Error.prepareStackTrace = prep - Error.stackTraceLimit = limit - - return stack -} - -/** - * Capture call site stack from v8. - */ - -function prepareObjectStackTrace (obj, stack) { - return stack -} - -/** - * Return a wrapped function in a deprecation message. - */ - -function wrapfunction (fn, message) { - if (typeof fn !== 'function') { - throw new TypeError('argument fn must be a function') - } - - var args = createArgumentsString(fn.length) - var stack = getStack() - var site = callSiteLocation(stack[1]) - - site.name = fn.name - - // eslint-disable-next-line no-new-func - var deprecatedfn = new Function('fn', 'log', 'deprecate', 'message', 'site', - '"use strict"\n' + - 'return function (' + args + ') {' + - 'log.call(deprecate, message, site)\n' + - 'return fn.apply(this, arguments)\n' + - '}')(fn, log, this, message, site) - - return deprecatedfn -} - -/** - * Wrap property in a deprecation message. - */ - -function wrapproperty (obj, prop, message) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new TypeError('argument obj must be object') - } - - var descriptor = Object.getOwnPropertyDescriptor(obj, prop) - - if (!descriptor) { - throw new TypeError('must call property on owner object') - } - - if (!descriptor.configurable) { - throw new TypeError('property must be configurable') - } - - var deprecate = this - var stack = getStack() - var site = callSiteLocation(stack[1]) - - // set site name - site.name = prop - - // convert data descriptor - if ('value' in descriptor) { - descriptor = convertDataDescriptorToAccessor(obj, prop, message) - } - - var get = descriptor.get - var set = descriptor.set - - // wrap getter - if (typeof get === 'function') { - descriptor.get = function getter () { - log.call(deprecate, message, site) - return get.apply(this, arguments) - } - } - - // wrap setter - if (typeof set === 'function') { - descriptor.set = function setter () { - log.call(deprecate, message, site) - return set.apply(this, arguments) - } - } - - Object.defineProperty(obj, prop, descriptor) -} - -/** - * Create DeprecationError for deprecation - */ - -function DeprecationError (namespace, message, stack) { - var error = new Error() - var stackString - - Object.defineProperty(error, 'constructor', { - value: DeprecationError - }) - - Object.defineProperty(error, 'message', { - configurable: true, - enumerable: false, - value: message, - writable: true - }) - - Object.defineProperty(error, 'name', { - enumerable: false, - configurable: true, - value: 'DeprecationError', - writable: true - }) - - Object.defineProperty(error, 'namespace', { - configurable: true, - enumerable: false, - value: namespace, - writable: true - }) - - Object.defineProperty(error, 'stack', { - configurable: true, - enumerable: false, - get: function () { - if (stackString !== undefined) { - return stackString - } - - // prepare stack trace - return (stackString = createStackString.call(this, stack)) - }, - set: function setter (val) { - stackString = val - } - }) - - return error -} diff --git a/node_modules/depd/lib/browser/index.js b/node_modules/depd/lib/browser/index.js deleted file mode 100644 index 6be45cc2..00000000 --- a/node_modules/depd/lib/browser/index.js +++ /dev/null @@ -1,77 +0,0 @@ -/*! - * depd - * Copyright(c) 2015 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = depd - -/** - * Create deprecate for namespace in caller. - */ - -function depd (namespace) { - if (!namespace) { - throw new TypeError('argument namespace is required') - } - - function deprecate (message) { - // no-op in browser - } - - deprecate._file = undefined - deprecate._ignored = true - deprecate._namespace = namespace - deprecate._traced = false - deprecate._warned = Object.create(null) - - deprecate.function = wrapfunction - deprecate.property = wrapproperty - - return deprecate -} - -/** - * Return a wrapped function in a deprecation message. - * - * This is a no-op version of the wrapper, which does nothing but call - * validation. - */ - -function wrapfunction (fn, message) { - if (typeof fn !== 'function') { - throw new TypeError('argument fn must be a function') - } - - return fn -} - -/** - * Wrap property in a deprecation message. - * - * This is a no-op version of the wrapper, which does nothing but call - * validation. - */ - -function wrapproperty (obj, prop, message) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new TypeError('argument obj must be object') - } - - var descriptor = Object.getOwnPropertyDescriptor(obj, prop) - - if (!descriptor) { - throw new TypeError('must call property on owner object') - } - - if (!descriptor.configurable) { - throw new TypeError('property must be configurable') - } -} diff --git a/node_modules/depd/package.json b/node_modules/depd/package.json deleted file mode 100644 index 3857e199..00000000 --- a/node_modules/depd/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "depd", - "description": "Deprecate all the things", - "version": "2.0.0", - "author": "Douglas Christopher Wilson ", - "license": "MIT", - "keywords": [ - "deprecate", - "deprecated" - ], - "repository": "dougwilson/nodejs-depd", - "browser": "lib/browser/index.js", - "devDependencies": { - "benchmark": "2.1.4", - "beautify-benchmark": "0.2.4", - "eslint": "5.7.0", - "eslint-config-standard": "12.0.0", - "eslint-plugin-import": "2.14.0", - "eslint-plugin-markdown": "1.0.0-beta.7", - "eslint-plugin-node": "7.0.1", - "eslint-plugin-promise": "4.0.1", - "eslint-plugin-standard": "4.0.0", - "istanbul": "0.4.5", - "mocha": "5.2.0", - "safe-buffer": "5.1.2", - "uid-safe": "2.1.5" - }, - "files": [ - "lib/", - "History.md", - "LICENSE", - "index.js", - "Readme.md" - ], - "engines": { - "node": ">= 0.8" - }, - "scripts": { - "bench": "node benchmark/index.js", - "lint": "eslint --plugin markdown --ext js,md .", - "test": "mocha --reporter spec --bail test/", - "test-ci": "istanbul cover --print=none node_modules/mocha/bin/_mocha -- --reporter spec test/ && istanbul report lcovonly text-summary", - "test-cov": "istanbul cover --print=none node_modules/mocha/bin/_mocha -- --reporter dot test/ && istanbul report lcov text-summary" - } -} diff --git a/node_modules/duplexify/.travis.yml b/node_modules/duplexify/.travis.yml deleted file mode 100644 index 37494af3..00000000 --- a/node_modules/duplexify/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: node_js -arch: - - amd64 - - ppc64le -node_js: - - "4" - - "6" - - "8" - - "10" diff --git a/node_modules/duplexify/LICENSE b/node_modules/duplexify/LICENSE deleted file mode 100644 index 757562ec..00000000 --- a/node_modules/duplexify/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Mathias Buus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/duplexify/README.md b/node_modules/duplexify/README.md deleted file mode 100644 index 8352900f..00000000 --- a/node_modules/duplexify/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# duplexify - -Turn a writeable and readable stream into a single streams2 duplex stream. - -Similar to [duplexer2](https://github.com/deoxxa/duplexer2) except it supports both streams2 and streams1 as input -and it allows you to set the readable and writable part asynchronously using `setReadable(stream)` and `setWritable(stream)` - -``` -npm install duplexify -``` - -[![build status](http://img.shields.io/travis/mafintosh/duplexify.svg?style=flat)](http://travis-ci.org/mafintosh/duplexify) - -## Usage - -Use `duplexify(writable, readable, streamOptions)` (or `duplexify.obj(writable, readable)` to create an object stream) - -``` js -var duplexify = require('duplexify') - -// turn writableStream and readableStream into a single duplex stream -var dup = duplexify(writableStream, readableStream) - -dup.write('hello world') // will write to writableStream -dup.on('data', function(data) { - // will read from readableStream -}) -``` - -You can also set the readable and writable parts asynchronously - -``` js -var dup = duplexify() - -dup.write('hello world') // write will buffer until the writable - // part has been set - -// wait a bit ... -dup.setReadable(readableStream) - -// maybe wait some more? -dup.setWritable(writableStream) -``` - -If you call `setReadable` or `setWritable` multiple times it will unregister the previous readable/writable stream. -To disable the readable or writable part call `setReadable` or `setWritable` with `null`. - -If the readable or writable streams emits an error or close it will destroy both streams and bubble up the event. -You can also explicitly destroy the streams by calling `dup.destroy()`. The `destroy` method optionally takes an -error object as argument, in which case the error is emitted as part of the `error` event. - -``` js -dup.on('error', function(err) { - console.log('readable or writable emitted an error - close will follow') -}) - -dup.on('close', function() { - console.log('the duplex stream is destroyed') -}) - -dup.destroy() // calls destroy on the readable and writable part (if present) -``` - -## HTTP request example - -Turn a node core http request into a duplex stream is as easy as - -``` js -var duplexify = require('duplexify') -var http = require('http') - -var request = function(opts) { - var req = http.request(opts) - var dup = duplexify(req) - req.on('response', function(res) { - dup.setReadable(res) - }) - return dup -} - -var req = request({ - method: 'GET', - host: 'www.google.com', - port: 80 -}) - -req.end() -req.pipe(process.stdout) -``` - -## License - -MIT - -## Related - -`duplexify` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. diff --git a/node_modules/duplexify/example.js b/node_modules/duplexify/example.js deleted file mode 100644 index 5585c197..00000000 --- a/node_modules/duplexify/example.js +++ /dev/null @@ -1,21 +0,0 @@ -var duplexify = require('duplexify') -var http = require('http') - -var request = function(opts) { - var req = http.request(opts) - var dup = duplexify() - dup.setWritable(req) - req.on('response', function(res) { - dup.setReadable(res) - }) - return dup -} - -var req = request({ - method: 'GET', - host: 'www.google.com', - port: 80 -}) - -req.end() -req.pipe(process.stdout) diff --git a/node_modules/duplexify/index.js b/node_modules/duplexify/index.js deleted file mode 100644 index 3430fe46..00000000 --- a/node_modules/duplexify/index.js +++ /dev/null @@ -1,238 +0,0 @@ -var stream = require('readable-stream') -var eos = require('end-of-stream') -var inherits = require('inherits') -var shift = require('stream-shift') - -var SIGNAL_FLUSH = (Buffer.from && Buffer.from !== Uint8Array.from) - ? Buffer.from([0]) - : new Buffer([0]) - -var onuncork = function(self, fn) { - if (self._corked) self.once('uncork', fn) - else fn() -} - -var autoDestroy = function (self, err) { - if (self._autoDestroy) self.destroy(err) -} - -var destroyer = function(self, end) { - return function(err) { - if (err) autoDestroy(self, err.message === 'premature close' ? null : err) - else if (end && !self._ended) self.end() - } -} - -var end = function(ws, fn) { - if (!ws) return fn() - if (ws._writableState && ws._writableState.finished) return fn() - if (ws._writableState) return ws.end(fn) - ws.end() - fn() -} - -var noop = function() {} - -var toStreams2 = function(rs) { - return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs) -} - -var Duplexify = function(writable, readable, opts) { - if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts) - stream.Duplex.call(this, opts) - - this._writable = null - this._readable = null - this._readable2 = null - - this._autoDestroy = !opts || opts.autoDestroy !== false - this._forwardDestroy = !opts || opts.destroy !== false - this._forwardEnd = !opts || opts.end !== false - this._corked = 1 // start corked - this._ondrain = null - this._drained = false - this._forwarding = false - this._unwrite = null - this._unread = null - this._ended = false - - this.destroyed = false - - if (writable) this.setWritable(writable) - if (readable) this.setReadable(readable) -} - -inherits(Duplexify, stream.Duplex) - -Duplexify.obj = function(writable, readable, opts) { - if (!opts) opts = {} - opts.objectMode = true - opts.highWaterMark = 16 - return new Duplexify(writable, readable, opts) -} - -Duplexify.prototype.cork = function() { - if (++this._corked === 1) this.emit('cork') -} - -Duplexify.prototype.uncork = function() { - if (this._corked && --this._corked === 0) this.emit('uncork') -} - -Duplexify.prototype.setWritable = function(writable) { - if (this._unwrite) this._unwrite() - - if (this.destroyed) { - if (writable && writable.destroy) writable.destroy() - return - } - - if (writable === null || writable === false) { - this.end() - return - } - - var self = this - var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd)) - - var ondrain = function() { - var ondrain = self._ondrain - self._ondrain = null - if (ondrain) ondrain() - } - - var clear = function() { - self._writable.removeListener('drain', ondrain) - unend() - } - - if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks - - this._writable = writable - this._writable.on('drain', ondrain) - this._unwrite = clear - - this.uncork() // always uncork setWritable -} - -Duplexify.prototype.setReadable = function(readable) { - if (this._unread) this._unread() - - if (this.destroyed) { - if (readable && readable.destroy) readable.destroy() - return - } - - if (readable === null || readable === false) { - this.push(null) - this.resume() - return - } - - var self = this - var unend = eos(readable, {writable:false, readable:true}, destroyer(this)) - - var onreadable = function() { - self._forward() - } - - var onend = function() { - self.push(null) - } - - var clear = function() { - self._readable2.removeListener('readable', onreadable) - self._readable2.removeListener('end', onend) - unend() - } - - this._drained = true - this._readable = readable - this._readable2 = readable._readableState ? readable : toStreams2(readable) - this._readable2.on('readable', onreadable) - this._readable2.on('end', onend) - this._unread = clear - - this._forward() -} - -Duplexify.prototype._read = function() { - this._drained = true - this._forward() -} - -Duplexify.prototype._forward = function() { - if (this._forwarding || !this._readable2 || !this._drained) return - this._forwarding = true - - var data - - while (this._drained && (data = shift(this._readable2)) !== null) { - if (this.destroyed) continue - this._drained = this.push(data) - } - - this._forwarding = false -} - -Duplexify.prototype.destroy = function(err, cb) { - if (!cb) cb = noop - if (this.destroyed) return cb(null) - this.destroyed = true - - var self = this - process.nextTick(function() { - self._destroy(err) - cb(null) - }) -} - -Duplexify.prototype._destroy = function(err) { - if (err) { - var ondrain = this._ondrain - this._ondrain = null - if (ondrain) ondrain(err) - else this.emit('error', err) - } - - if (this._forwardDestroy) { - if (this._readable && this._readable.destroy) this._readable.destroy() - if (this._writable && this._writable.destroy) this._writable.destroy() - } - - this.emit('close') -} - -Duplexify.prototype._write = function(data, enc, cb) { - if (this.destroyed) return - if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb)) - if (data === SIGNAL_FLUSH) return this._finish(cb) - if (!this._writable) return cb() - - if (this._writable.write(data) === false) this._ondrain = cb - else if (!this.destroyed) cb() -} - -Duplexify.prototype._finish = function(cb) { - var self = this - this.emit('preend') - onuncork(this, function() { - end(self._forwardEnd && self._writable, function() { - // haxx to not emit prefinish twice - if (self._writableState.prefinished === false) self._writableState.prefinished = true - self.emit('prefinish') - onuncork(self, cb) - }) - }) -} - -Duplexify.prototype.end = function(data, enc, cb) { - if (typeof data === 'function') return this.end(null, null, data) - if (typeof enc === 'function') return this.end(data, null, enc) - this._ended = true - if (data) this.write(data) - if (!this._writableState.ending && !this._writableState.destroyed) this.write(SIGNAL_FLUSH) - return stream.Writable.prototype.end.call(this, cb) -} - -module.exports = Duplexify diff --git a/node_modules/duplexify/package.json b/node_modules/duplexify/package.json deleted file mode 100644 index 2758df93..00000000 --- a/node_modules/duplexify/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "duplexify", - "version": "4.1.2", - "description": "Turn a writable and readable stream into a streams2 duplex stream with support for async initialization and streams1/streams2 input", - "main": "index.js", - "dependencies": { - "end-of-stream": "^1.4.1", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1", - "stream-shift": "^1.0.0" - }, - "devDependencies": { - "concat-stream": "^1.5.2", - "tape": "^4.0.0", - "through2": "^2.0.0" - }, - "scripts": { - "test": "tape test.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/mafintosh/duplexify" - }, - "keywords": [ - "duplex", - "streams2", - "streams", - "stream", - "writable", - "readable", - "async" - ], - "author": "Mathias Buus", - "license": "MIT", - "bugs": { - "url": "https://github.com/mafintosh/duplexify/issues" - }, - "homepage": "https://github.com/mafintosh/duplexify" -} diff --git a/node_modules/duplexify/test.js b/node_modules/duplexify/test.js deleted file mode 100644 index 93411059..00000000 --- a/node_modules/duplexify/test.js +++ /dev/null @@ -1,339 +0,0 @@ -var tape = require('tape') -var through = require('through2') -var concat = require('concat-stream') -var stream = require('readable-stream') -var net = require('net') -var duplexify = require('./') - -var HELLO_WORLD = (Buffer.from && Buffer.from !== Uint8Array.from) - ? Buffer.from('hello world') - : new Buffer('hello world') - -tape('passthrough', function(t) { - t.plan(2) - - var pt = through() - var dup = duplexify(pt, pt) - - dup.end('hello world') - dup.on('finish', function() { - t.ok(true, 'should finish') - }) - dup.pipe(concat(function(data) { - t.same(data.toString(), 'hello world', 'same in as out') - })) -}) - -tape('passthrough + double end', function(t) { - t.plan(2) - - var pt = through() - var dup = duplexify(pt, pt) - - dup.end('hello world') - dup.end() - - dup.on('finish', function() { - t.ok(true, 'should finish') - }) - dup.pipe(concat(function(data) { - t.same(data.toString(), 'hello world', 'same in as out') - })) -}) - -tape('async passthrough + end', function(t) { - t.plan(2) - - var pt = through.obj({highWaterMark:1}, function(data, enc, cb) { - setTimeout(function() { - cb(null, data) - }, 100) - }) - - var dup = duplexify(pt, pt) - - dup.write('hello ') - dup.write('world') - dup.end() - - dup.on('finish', function() { - t.ok(true, 'should finish') - }) - dup.pipe(concat(function(data) { - t.same(data.toString(), 'hello world', 'same in as out') - })) -}) - -tape('duplex', function(t) { - var readExpected = ['read-a', 'read-b', 'read-c'] - var writeExpected = ['write-a', 'write-b', 'write-c'] - - t.plan(readExpected.length+writeExpected.length+2) - - var readable = through.obj() - var writable = through.obj(function(data, enc, cb) { - t.same(data, writeExpected.shift(), 'onwrite should match') - cb() - }) - - var dup = duplexify.obj(writable, readable) - - readExpected.slice().forEach(function(data) { - readable.write(data) - }) - readable.end() - - writeExpected.slice().forEach(function(data) { - dup.write(data) - }) - dup.end() - - dup.on('data', function(data) { - t.same(data, readExpected.shift(), 'ondata should match') - }) - dup.on('end', function() { - t.ok(true, 'should end') - }) - dup.on('finish', function() { - t.ok(true, 'should finish') - }) -}) - -tape('async', function(t) { - var dup = duplexify() - var pt = through() - - dup.pipe(concat(function(data) { - t.same(data.toString(), 'i was async', 'same in as out') - t.end() - })) - - dup.write('i') - dup.write(' was ') - dup.end('async') - - setTimeout(function() { - dup.setWritable(pt) - setTimeout(function() { - dup.setReadable(pt) - }, 50) - }, 50) -}) - -tape('destroy', function(t) { - t.plan(2) - - var write = through() - var read = through() - var dup = duplexify(write, read) - - write.destroy = function() { - t.ok(true, 'write destroyed') - } - - dup.on('close', function() { - t.ok(true, 'close emitted') - }) - - dup.destroy() - dup.destroy() // should only work once - dup.end() -}) - -tape('destroy both', function(t) { - t.plan(3) - - var write = through() - var read = through() - var dup = duplexify(write, read) - - write.destroy = function() { - t.ok(true, 'write destroyed') - } - - read.destroy = function() { - t.ok(true, 'read destroyed') - } - - dup.on('close', function() { - t.ok(true, 'close emitted') - }) - - dup.destroy() - dup.destroy() // should only work once -}) - -tape('bubble read errors', function(t) { - t.plan(2) - - var write = through() - var read = through() - var dup = duplexify(write, read) - - dup.on('error', function(err) { - t.same(err.message, 'read-error', 'received read error') - }) - dup.on('close', function() { - t.ok(true, 'close emitted') - }) - - read.emit('error', new Error('read-error')) - write.emit('error', new Error('write-error')) // only emit first error -}) - -tape('bubble write errors', function(t) { - t.plan(2) - - var write = through() - var read = through() - var dup = duplexify(write, read) - - dup.on('error', function(err) { - t.same(err.message, 'write-error', 'received write error') - }) - dup.on('close', function() { - t.ok(true, 'close emitted') - }) - - write.emit('error', new Error('write-error')) - read.emit('error', new Error('read-error')) // only emit first error -}) - -tape('bubble errors from write()', function(t) { - t.plan(3) - - var errored = false - var dup = duplexify(new stream.Writable({ - write: function(chunk, enc, next) { - next(new Error('write-error')) - } - })) - - dup.on('error', function(err) { - errored = true - t.same(err.message, 'write-error', 'received write error') - }) - dup.on('close', function() { - t.pass('close emitted') - t.ok(errored, 'error was emitted before close') - }) - dup.end('123') -}) - -tape('destroy while waiting for drain', function(t) { - t.plan(3) - - var errored = false - var dup = duplexify(new stream.Writable({ - highWaterMark: 0, - write: function() {} - })) - - dup.on('error', function(err) { - errored = true - t.same(err.message, 'destroy-error', 'received destroy error') - }) - dup.on('close', function() { - t.pass('close emitted') - t.ok(errored, 'error was emitted before close') - }) - dup.write('123') - dup.destroy(new Error('destroy-error')) -}) - -tape('reset writable / readable', function(t) { - t.plan(3) - - var toUpperCase = function(data, enc, cb) { - cb(null, data.toString().toUpperCase()) - } - - var passthrough = through() - var upper = through(toUpperCase) - var dup = duplexify(passthrough, passthrough) - - dup.once('data', function(data) { - t.same(data.toString(), 'hello') - dup.setWritable(upper) - dup.setReadable(upper) - dup.once('data', function(data) { - t.same(data.toString(), 'HELLO') - dup.once('data', function(data) { - t.same(data.toString(), 'HI') - t.end() - }) - }) - dup.write('hello') - dup.write('hi') - }) - dup.write('hello') -}) - -tape('cork', function(t) { - var passthrough = through() - var dup = duplexify(passthrough, passthrough) - var ok = false - - dup.on('prefinish', function() { - dup.cork() - setTimeout(function() { - ok = true - dup.uncork() - }, 100) - }) - dup.on('finish', function() { - t.ok(ok) - t.end() - }) - dup.end() -}) - -tape('prefinish not twice', function(t) { - var passthrough = through() - var dup = duplexify(passthrough, passthrough) - var prefinished = false - - dup.on('prefinish', function() { - t.ok(!prefinished, 'only prefinish once') - prefinished = true - }) - - dup.on('finish', function() { - t.end() - }) - - dup.end() -}) - -tape('close', function(t) { - var passthrough = through() - var dup = duplexify(passthrough, passthrough) - - passthrough.emit('close') - dup.on('close', function() { - t.ok(true, 'should forward close') - t.end() - }) -}) - -tape('works with node native streams (net)', function(t) { - t.plan(1) - - var server = net.createServer(function(socket) { - var dup = duplexify(socket, socket) - - dup.once('data', function(chunk) { - t.same(chunk, HELLO_WORLD) - server.close() - socket.end() - t.end() - }) - }) - - server.listen(0, function () { - var socket = net.connect(server.address().port) - var dup = duplexify(socket, socket) - - dup.write(HELLO_WORLD) - }) -}) diff --git a/node_modules/end-of-stream/README.md b/node_modules/end-of-stream/README.md deleted file mode 100644 index 857b14bd..00000000 --- a/node_modules/end-of-stream/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# end-of-stream - -A node module that calls a callback when a readable/writable/duplex stream has completed or failed. - - npm install end-of-stream - -[![Build status](https://travis-ci.org/mafintosh/end-of-stream.svg?branch=master)](https://travis-ci.org/mafintosh/end-of-stream) - -## Usage - -Simply pass a stream and a callback to the `eos`. -Both legacy streams, streams2 and stream3 are supported. - -``` js -var eos = require('end-of-stream'); - -eos(readableStream, function(err) { - // this will be set to the stream instance - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended', this === readableStream); -}); - -eos(writableStream, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has finished', this === writableStream); -}); - -eos(duplexStream, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended and finished', this === duplexStream); -}); - -eos(duplexStream, {readable:false}, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has finished but might still be readable'); -}); - -eos(duplexStream, {writable:false}, function(err) { - if (err) return console.log('stream had an error or closed early'); - console.log('stream has ended but might still be writable'); -}); - -eos(readableStream, {error:false}, function(err) { - // do not treat emit('error', err) as a end-of-stream -}); -``` - -## License - -MIT - -## Related - -`end-of-stream` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. diff --git a/node_modules/end-of-stream/index.js b/node_modules/end-of-stream/index.js deleted file mode 100644 index c77f0d5d..00000000 --- a/node_modules/end-of-stream/index.js +++ /dev/null @@ -1,94 +0,0 @@ -var once = require('once'); - -var noop = function() {}; - -var isRequest = function(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -}; - -var isChildProcess = function(stream) { - return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 -}; - -var eos = function(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; - - callback = once(callback || noop); - - var ws = stream._writableState; - var rs = stream._readableState; - var readable = opts.readable || (opts.readable !== false && stream.readable); - var writable = opts.writable || (opts.writable !== false && stream.writable); - var cancelled = false; - - var onlegacyfinish = function() { - if (!stream.writable) onfinish(); - }; - - var onfinish = function() { - writable = false; - if (!readable) callback.call(stream); - }; - - var onend = function() { - readable = false; - if (!writable) callback.call(stream); - }; - - var onexit = function(exitCode) { - callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); - }; - - var onerror = function(err) { - callback.call(stream, err); - }; - - var onclose = function() { - process.nextTick(onclosenexttick); - }; - - var onclosenexttick = function() { - if (cancelled) return; - if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); - if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); - }; - - var onrequest = function() { - stream.req.on('finish', onfinish); - }; - - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest(); - else stream.on('request', onrequest); - } else if (writable && !ws) { // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } - - if (isChildProcess(stream)) stream.on('exit', onexit); - - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); - - return function() { - cancelled = true; - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('exit', onexit); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; -}; - -module.exports = eos; diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json deleted file mode 100644 index b75bbf0f..00000000 --- a/node_modules/end-of-stream/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "end-of-stream", - "version": "1.4.4", - "description": "Call a callback when a readable/writable/duplex stream has completed or failed.", - "repository": { - "type": "git", - "url": "git://github.com/mafintosh/end-of-stream.git" - }, - "dependencies": { - "once": "^1.4.0" - }, - "scripts": { - "test": "node test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "stream", - "streams", - "callback", - "finish", - "close", - "end", - "wait" - ], - "bugs": { - "url": "https://github.com/mafintosh/end-of-stream/issues" - }, - "homepage": "https://github.com/mafintosh/end-of-stream", - "main": "index.js", - "author": "Mathias Buus ", - "license": "MIT", - "devDependencies": { - "tape": "^4.11.0" - } -} diff --git a/node_modules/flat/cli.js b/node_modules/flat/cli.js new file mode 100755 index 00000000..dc42f526 --- /dev/null +++ b/node_modules/flat/cli.js @@ -0,0 +1,39 @@ +#!/usr/bin/env node + +const flat = require('.') +const fs = require('fs') +const path = require('path') +const readline = require('readline') + +if (process.stdin.isTTY) { + // Read from file + const file = path.resolve(process.cwd(), process.argv.slice(2)[0]) + if (!file) usage() + if (!fs.existsSync(file)) usage() + out(require(file)) +} else { + // Read from newline-delimited STDIN + const lines = [] + readline.createInterface({ + input: process.stdin, + output: process.stdout, + terminal: false + }) + .on('line', line => lines.push(line)) + .on('close', () => out(JSON.parse(lines.join('\n')))) +} + +function out (data) { + process.stdout.write(JSON.stringify(flat(data), null, 2)) +} + +function usage () { + console.log(` +Usage: + +flat foo.json +cat foo.json | flat +`) + + process.exit() +} diff --git a/node_modules/forwarded/HISTORY.md b/node_modules/forwarded/HISTORY.md deleted file mode 100644 index 2599a557..00000000 --- a/node_modules/forwarded/HISTORY.md +++ /dev/null @@ -1,16 +0,0 @@ -0.1.2 / 2017-09-14 -================== - - * perf: improve header parsing - * perf: reduce overhead when no `X-Forwarded-For` header - -0.1.1 / 2017-09-10 -================== - - * Fix trimming leading / trailing OWS - * perf: hoist regular expression - -0.1.0 / 2014-09-21 -================== - - * Initial release diff --git a/node_modules/forwarded/LICENSE b/node_modules/forwarded/LICENSE deleted file mode 100644 index 84441fbb..00000000 --- a/node_modules/forwarded/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 Douglas Christopher Wilson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/forwarded/README.md b/node_modules/forwarded/README.md deleted file mode 100644 index c776ee54..00000000 --- a/node_modules/forwarded/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# forwarded - -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] -[![Node.js Version][node-version-image]][node-version-url] -[![Build Status][travis-image]][travis-url] -[![Test Coverage][coveralls-image]][coveralls-url] - -Parse HTTP X-Forwarded-For header - -## Installation - -This is a [Node.js](https://nodejs.org/en/) module available through the -[npm registry](https://www.npmjs.com/). Installation is done using the -[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): - -```sh -$ npm install forwarded -``` - -## API - -```js -var forwarded = require('forwarded') -``` - -### forwarded(req) - -```js -var addresses = forwarded(req) -``` - -Parse the `X-Forwarded-For` header from the request. Returns an array -of the addresses, including the socket address for the `req`, in reverse -order (i.e. index `0` is the socket address and the last index is the -furthest address, typically the end-user). - -## Testing - -```sh -$ npm test -``` - -## License - -[MIT](LICENSE) - -[npm-image]: https://img.shields.io/npm/v/forwarded.svg -[npm-url]: https://npmjs.org/package/forwarded -[node-version-image]: https://img.shields.io/node/v/forwarded.svg -[node-version-url]: https://nodejs.org/en/download/ -[travis-image]: https://img.shields.io/travis/jshttp/forwarded/master.svg -[travis-url]: https://travis-ci.org/jshttp/forwarded -[coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master -[downloads-image]: https://img.shields.io/npm/dm/forwarded.svg -[downloads-url]: https://npmjs.org/package/forwarded diff --git a/node_modules/forwarded/index.js b/node_modules/forwarded/index.js deleted file mode 100644 index 7833b3de..00000000 --- a/node_modules/forwarded/index.js +++ /dev/null @@ -1,76 +0,0 @@ -/*! - * forwarded - * Copyright(c) 2014-2017 Douglas Christopher Wilson - * MIT Licensed - */ - -'use strict' - -/** - * Module exports. - * @public - */ - -module.exports = forwarded - -/** - * Get all addresses in the request, using the `X-Forwarded-For` header. - * - * @param {object} req - * @return {array} - * @public - */ - -function forwarded (req) { - if (!req) { - throw new TypeError('argument req is required') - } - - // simple header parsing - var proxyAddrs = parse(req.headers['x-forwarded-for'] || '') - var socketAddr = req.connection.remoteAddress - var addrs = [socketAddr].concat(proxyAddrs) - - // return all addresses - return addrs -} - -/** - * Parse the X-Forwarded-For header. - * - * @param {string} header - * @private - */ - -function parse (header) { - var end = header.length - var list = [] - var start = header.length - - // gather addresses, backwards - for (var i = header.length - 1; i >= 0; i--) { - switch (header.charCodeAt(i)) { - case 0x20: /* */ - if (start === end) { - start = end = i - } - break - case 0x2c: /* , */ - if (start !== end) { - list.push(header.substring(start, end)) - } - start = end = i - break - default: - start = i - break - } - } - - // final address - if (start !== end) { - list.push(header.substring(start, end)) - } - - return list -} diff --git a/node_modules/forwarded/package.json b/node_modules/forwarded/package.json deleted file mode 100644 index 501f6d2c..00000000 --- a/node_modules/forwarded/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "forwarded", - "description": "Parse HTTP X-Forwarded-For header", - "version": "0.1.2", - "contributors": [ - "Douglas Christopher Wilson " - ], - "license": "MIT", - "keywords": [ - "x-forwarded-for", - "http", - "req" - ], - "repository": "jshttp/forwarded", - "devDependencies": { - "beautify-benchmark": "0.2.4", - "benchmark": "2.1.4", - "eslint": "3.19.0", - "eslint-config-standard": "10.2.1", - "eslint-plugin-import": "2.7.0", - "eslint-plugin-node": "5.1.1", - "eslint-plugin-promise": "3.5.0", - "eslint-plugin-standard": "3.0.1", - "istanbul": "0.4.5", - "mocha": "1.21.5" - }, - "files": [ - "LICENSE", - "HISTORY.md", - "README.md", - "index.js" - ], - "engines": { - "node": ">= 0.6" - }, - "scripts": { - "bench": "node benchmark/index.js", - "lint": "eslint .", - "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" - } -} diff --git a/node_modules/got/package.json b/node_modules/got/package.json deleted file mode 100644 index f2bef852..00000000 --- a/node_modules/got/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "got", - "version": "9.6.0", - "description": "Simplified HTTP requests", - "license": "MIT", - "repository": "sindresorhus/got", - "main": "source", - "engines": { - "node": ">=8.6" - }, - "scripts": { - "test": "xo && nyc ava", - "release": "np" - }, - "files": [ - "source" - ], - "keywords": [ - "http", - "https", - "get", - "got", - "url", - "uri", - "request", - "util", - "utility", - "simple", - "curl", - "wget", - "fetch", - "net", - "network", - "electron" - ], - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "devDependencies": { - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "delay": "^4.1.0", - "form-data": "^2.3.3", - "get-port": "^4.0.0", - "np": "^3.1.0", - "nyc": "^13.1.0", - "p-event": "^2.1.0", - "pem": "^1.13.2", - "proxyquire": "^2.0.1", - "sinon": "^7.2.2", - "slow-stream": "0.0.4", - "tempfile": "^2.0.0", - "tempy": "^0.2.1", - "tough-cookie": "^3.0.0", - "xo": "^0.24.0" - }, - "ava": { - "concurrency": 4 - }, - "browser": { - "decompress-response": false, - "electron": false - } -} diff --git a/node_modules/got/readme.md b/node_modules/got/readme.md deleted file mode 100644 index 37132ab0..00000000 --- a/node_modules/got/readme.md +++ /dev/null @@ -1,1237 +0,0 @@ -
-
-
- Got -
-
-
-

Huge thanks to for sponsoring me! -

-
-
-
- -> Simplified HTTP requests - -[![Build Status: Linux](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/got/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/got?branch=master) [![Downloads](https://img.shields.io/npm/dm/got.svg)](https://npmjs.com/got) [![Install size](https://packagephobia.now.sh/badge?p=got)](https://packagephobia.now.sh/result?p=got) - -Got is a human-friendly and powerful HTTP request library. - -It was created because the popular [`request`](https://github.com/request/request) package is bloated: [![Install size](https://packagephobia.now.sh/badge?p=request)](https://packagephobia.now.sh/result?p=request) - -Got is for Node.js. For browsers, we recommend [Ky](https://github.com/sindresorhus/ky). - - -## Highlights - -- [Promise & stream API](#api) -- [Request cancelation](#aborting-the-request) -- [RFC compliant caching](#cache-adapters) -- [Follows redirects](#followredirect) -- [Retries on failure](#retry) -- [Progress events](#onuploadprogress-progress) -- [Handles gzip/deflate](#decompress) -- [Timeout handling](#timeout) -- [Errors with metadata](#errors) -- [JSON mode](#json) -- [WHATWG URL support](#url) -- [Hooks](#hooks) -- [Instances with custom defaults](#instances) -- [Composable](advanced-creation.md#merging-instances) -- [Electron support](#useelectronnet) -- [Used by ~2000 packages and ~500K repos](https://github.com/sindresorhus/got/network/dependents) -- Actively maintained - -[Moving from Request?](migration-guides.md) - -[See how Got compares to other HTTP libraries](#comparison) - -## Install - -``` -$ npm install got -``` - - - - - - -## Usage - -```js -const got = require('got'); - -(async () => { - try { - const response = await got('sindresorhus.com'); - console.log(response.body); - //=> ' ...' - } catch (error) { - console.log(error.response.body); - //=> 'Internal server error ...' - } -})(); -``` - -###### Streams - -```js -const fs = require('fs'); -const got = require('got'); - -got.stream('sindresorhus.com').pipe(fs.createWriteStream('index.html')); - -// For POST, PUT, and PATCH methods `got.stream` returns a `stream.Writable` -fs.createReadStream('index.html').pipe(got.stream.post('sindresorhus.com')); -``` - - -### API - -It's a `GET` request by default, but can be changed by using different methods or in the `options`. - -#### got(url, [options]) - -Returns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.stream` is set to true. - -##### url - -Type: `string` `Object` - -The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). - -Properties from `options` will override properties in the parsed `url`. - -If no protocol is specified, it will default to `https`. - -##### options - -Type: `Object` - -Any of the [`https.request`](https://nodejs.org/api/https.html#https_https_request_options_callback) options. - -###### baseUrl - -Type: `string` `Object` - -When specified, `url` will be prepended by `baseUrl`.
-If you specify an absolute URL, it will skip the `baseUrl`. - -Very useful when used with `got.extend()` to create niche-specific Got instances. - -Can be a string or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url). - -Slash at the end of `baseUrl` and at the beginning of the `url` argument is optional: - -```js -await got('hello', {baseUrl: 'https://example.com/v1'}); -//=> 'https://example.com/v1/hello' - -await got('/hello', {baseUrl: 'https://example.com/v1/'}); -//=> 'https://example.com/v1/hello' - -await got('/hello', {baseUrl: 'https://example.com/v1'}); -//=> 'https://example.com/v1/hello' -``` - -###### headers - -Type: `Object`
-Default: `{}` - -Request headers. - -Existing headers will be overwritten. Headers set to `null` will be omitted. - -###### stream - -Type: `boolean`
-Default: `false` - -Returns a `Stream` instead of a `Promise`. This is equivalent to calling `got.stream(url, [options])`. - -###### body - -Type: `string` `Buffer` `stream.Readable` [`form-data` instance](https://github.com/form-data/form-data) - -**Note:** If you provide this option, `got.stream()` will be read-only. - -The body that will be sent with a `POST` request. - -If present in `options` and `options.method` is not set, `options.method` will be set to `POST`. - -The `content-length` header will be automatically set if `body` is a `string` / `Buffer` / `fs.createReadStream` instance / [`form-data` instance](https://github.com/form-data/form-data), and `content-length` and `transfer-encoding` are not manually set in `options.headers`. - -###### cookieJar - -Type: [`tough.CookieJar` instance](https://github.com/salesforce/tough-cookie#cookiejar) - -**Note:** If you provide this option, `options.headers.cookie` will be overridden. - -Cookie support. You don't have to care about parsing or how to store them. [Example.](#cookies) - -###### encoding - -Type: `string` `null`
-Default: `'utf8'` - -[Encoding](https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings) to be used on `setEncoding` of the response data. If `null`, the body is returned as a [`Buffer`](https://nodejs.org/api/buffer.html) (binary data). - -###### form - -Type: `boolean`
-Default: `false` - -**Note:** If you provide this option, `got.stream()` will be read-only. -**Note:** `body` must be a plain object. It will be converted to a query string using [`(new URLSearchParams(object)).toString()`](https://nodejs.org/api/url.html#url_constructor_new_urlsearchparams_obj). - -If set to `true` and `Content-Type` header is not set, it will be set to `application/x-www-form-urlencoded`. - -###### json - -Type: `boolean`
-Default: `false` - -**Note:** If you use `got.stream()`, this option will be ignored. -**Note:** `body` must be a plain object or array and will be stringified. - -If set to `true` and `Content-Type` header is not set, it will be set to `application/json`. - -Parse response body with `JSON.parse` and set `accept` header to `application/json`. If used in conjunction with the `form` option, the `body` will the stringified as querystring and the response parsed as JSON. - -###### query - -Type: `string` `Object` [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) - -Query string that will be added to the request URL. This will override the query string in `url`. - -If you need to pass in an array, you can do it using a `URLSearchParams` instance: - -```js -const got = require('got'); - -const query = new URLSearchParams([['key', 'a'], ['key', 'b']]); - -got('https://example.com', {query}); - -console.log(query.toString()); -//=> 'key=a&key=b' -``` - -And if you need a different array format, you could use the [`query-string`](https://github.com/sindresorhus/query-string) package: - -```js -const got = require('got'); -const queryString = require('query-string'); - -const query = queryString.stringify({key: ['a', 'b']}, {arrayFormat: 'bracket'}); - -got('https://example.com', {query}); - -console.log(query); -//=> 'key[]=a&key[]=b' -``` - -###### timeout - -Type: `number` `Object` - -Milliseconds to wait for the server to end the response before aborting the request with [`got.TimeoutError`](#gottimeouterror) error (a.k.a. `request` property). By default, there's no timeout. - -This also accepts an `object` with the following fields to constrain the duration of each phase of the request lifecycle: - -- `lookup` starts when a socket is assigned and ends when the hostname has been resolved. Does not apply when using a Unix domain socket. -- `connect` starts when `lookup` completes (or when the socket is assigned if lookup does not apply to the request) and ends when the socket is connected. -- `secureConnect` starts when `connect` completes and ends when the handshaking process completes (HTTPS only). -- `socket` starts when the socket is connected. See [request.setTimeout](https://nodejs.org/api/http.html#http_request_settimeout_timeout_callback). -- `response` starts when the request has been written to the socket and ends when the response headers are received. -- `send` starts when the socket is connected and ends with the request has been written to the socket. -- `request` starts when the request is initiated and ends when the response's end event fires. - -###### retry - -Type: `number` `Object`
-Default: -- retries: `2` -- methods: `GET` `PUT` `HEAD` `DELETE` `OPTIONS` `TRACE` -- statusCodes: [`408`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) [`413`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413) [`429`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) [`500`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) [`502`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) [`503`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) [`504`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) -- maxRetryAfter: `undefined` -- errorCodes: `ETIMEDOUT` `ECONNRESET` `EADDRINUSE` `ECONNREFUSED` `EPIPE` `ENOTFOUND` `ENETUNREACH` `EAI_AGAIN` - -An object representing `retries`, `methods`, `statusCodes`, `maxRetryAfter` and `errorCodes` fields for the time until retry, allowed methods, allowed status codes, maximum [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) time and allowed error codes. - -If `maxRetryAfter` is set to `undefined`, it will use `options.timeout`.
-If [`Retry-After`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After) header is greater than `maxRetryAfter`, it will cancel the request. - -Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 1). - -The `retries` property can be a `number` or a `function` with `retry` and `error` arguments. The function must return a delay in milliseconds (`0` return value cancels retry). - -By default, it retries *only* on the specified methods, status codes, and on these network errors: -- `ETIMEDOUT`: One of the [timeout](#timeout) limits were reached. -- `ECONNRESET`: Connection was forcibly closed by a peer. -- `EADDRINUSE`: Could not bind to any free port. -- `ECONNREFUSED`: Connection was refused by the server. -- `EPIPE`: The remote side of the stream being written has been closed. -- `ENOTFOUND`: Couldn't resolve the hostname to an IP address. -- `ENETUNREACH`: No internet connection. -- `EAI_AGAIN`: DNS lookup timed out. - -###### followRedirect - -Type: `boolean`
-Default: `true` - -Defines if redirect responses should be followed automatically. - -Note that if a `303` is sent by the server in response to any request type (`POST`, `DELETE`, etc.), Got will automatically request the resource pointed to in the location header via `GET`. This is in accordance with [the spec](https://tools.ietf.org/html/rfc7231#section-6.4.4). - -###### decompress - -Type: `boolean`
-Default: `true` - -Decompress the response automatically. This will set the `accept-encoding` header to `gzip, deflate` unless you set it yourself. - -If this is disabled, a compressed response is returned as a `Buffer`. This may be useful if you want to handle decompression yourself or stream the raw compressed data. - -###### cache - -Type: `Object`
-Default: `false` - -[Cache adapter instance](#cache-adapters) for storing cached data. - -###### request - -Type: `Function`
-Default: `http.request` `https.request` *(depending on the protocol)* - -Custom request function. The main purpose of this is to [support HTTP2 using a wrapper](#experimental-http2-support). - -###### useElectronNet - -Type: `boolean`
-Default: `false` - -When used in Electron, Got will use [`electron.net`](https://electronjs.org/docs/api/net/) instead of the Node.js `http` module. According to the Electron docs, it should be fully compatible, but it's not entirely. See [#443](https://github.com/sindresorhus/got/issues/443) and [#461](https://github.com/sindresorhus/got/issues/461). - -###### throwHttpErrors - -Type: `boolean`
-Default: `true` - -Determines if a `got.HTTPError` is thrown for error responses (non-2xx status codes). - -If this is disabled, requests that encounter an error status code will be resolved with the `response` instead of throwing. This may be useful if you are checking for resource availability and are expecting error responses. - -###### agent - -Same as the [`agent` option](https://nodejs.org/api/http.html#http_http_request_url_options_callback) for `http.request`, but with an extra feature: - -If you require different agents for different protocols, you can pass a map of agents to the `agent` option. This is necessary because a request to one protocol might redirect to another. In such a scenario, Got will switch over to the right protocol agent for you. - -```js -const got = require('got'); -const HttpAgent = require('agentkeepalive'); -const {HttpsAgent} = HttpAgent; - -got('sindresorhus.com', { - agent: { - http: new HttpAgent(), - https: new HttpsAgent() - } -}); -``` - -###### hooks - -Type: `Object` - -Hooks allow modifications during the request lifecycle. Hook functions may be async and are run serially. - -###### hooks.init - -Type: `Function[]`
-Default: `[]` - -Called with plain [request options](#options), right before their normalization. This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](advanced-creation.md) when the input needs custom handling. - -See the [Request migration guide](migration-guides.md#breaking-changes) for an example. - -**Note**: This hook must be synchronous! - -###### hooks.beforeRequest - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options). Got will make no further changes to the request before it is sent. This is especially useful in conjunction with [`got.extend()`](#instances) and [`got.create()`](advanced-creation.md) when you want to create an API client that, for example, uses HMAC-signing. - -See the [AWS section](#aws) for an example. - -**Note:** If you modify the `body` you will need to modify the `content-length` header too, because it has already been computed and assigned. - -###### hooks.beforeRedirect - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options). Got will make no further changes to the request. This is especially useful when you want to avoid dead sites. Example: - -```js -const got = require('got'); - -got('example.com', { - hooks: { - beforeRedirect: [ - options => { - if (options.hostname === 'deadSite') { - options.hostname = 'fallbackSite'; - } - } - ] - } -}); -``` - -###### hooks.beforeRetry - -Type: `Function[]`
-Default: `[]` - -Called with [normalized](source/normalize-arguments.js) [request options](#options), the error and the retry count. Got will make no further changes to the request. This is especially useful when some extra work is required before the next try. Example: - -```js -const got = require('got'); - -got('example.com', { - hooks: { - beforeRetry: [ - (options, error, retryCount) => { - if (error.statusCode === 413) { // Payload too large - options.body = getNewBody(); - } - } - ] - } -}); -``` - -###### hooks.afterResponse - -Type: `Function[]`
-Default: `[]` - -Called with [response object](#response) and a retry function. - -Each function should return the response. This is especially useful when you want to refresh an access token. Example: - -```js -const got = require('got'); - -const instance = got.extend({ - hooks: { - afterResponse: [ - (response, retryWithMergedOptions) => { - if (response.statusCode === 401) { // Unauthorized - const updatedOptions = { - headers: { - token: getNewToken() // Refresh the access token - } - }; - - // Save for further requests - instance.defaults.options = got.mergeOptions(instance.defaults.options, updatedOptions); - - // Make a new retry - return retryWithMergedOptions(updatedOptions); - } - - // No changes otherwise - return response; - } - ] - }, - mutableDefaults: true -}); -``` - -###### hooks.beforeError - -Type: `Function[]`
-Default: `[]` - -Called with an `Error` instance. The error is passed to the hook right before it's thrown. This is especially useful when you want to have more detailed errors. - -**Note**: Errors thrown while normalizing input options are thrown directly and not part of this hook. - -```js -const got = require('got'); - -got('api.github.com/some-endpoint', { - hooks: { - onError: [ - error => { - const {response} = error; - if (response && response.body) { - error.name = 'GitHubError'; - error.message = `${response.body.message} (${error.statusCode})`; - } - - return error; - } - ] - } -}); -``` - -#### Response - -The response object will typically be a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage), however, if returned from the cache it will be a [response-like object](https://github.com/lukechilds/responselike) which behaves in the same way. - -##### request - -Type: `Object` - -**Note:** This is not a [http.ClientRequest](https://nodejs.org/api/http.html#http_class_http_clientrequest). - -- `gotOptions` - The options that were set on this request. - -##### body - -Type: `string` `Object` *(depending on `options.json`)* - -The result of the request. - -##### url - -Type: `string` - -The request URL or the final URL after redirects. - -##### requestUrl - -Type: `string` - -The original request URL. - -##### timings - -Type: `Object` - -The object contains the following properties: - -- `start` - Time when the request started. -- `socket` - Time when a socket was assigned to the request. -- `lookup` - Time when the DNS lookup finished. -- `connect` - Time when the socket successfully connected. -- `upload` - Time when the request finished uploading. -- `response` - Time when the request fired the `response` event. -- `end` - Time when the response fired the `end` event. -- `error` - Time when the request fired the `error` event. -- `phases` - - `wait` - `timings.socket - timings.start` - - `dns` - `timings.lookup - timings.socket` - - `tcp` - `timings.connect - timings.lookup` - - `request` - `timings.upload - timings.connect` - - `firstByte` - `timings.response - timings.upload` - - `download` - `timings.end - timings.response` - - `total` - `timings.end - timings.start` or `timings.error - timings.start` - -**Note:** The time is a `number` representing the milliseconds elapsed since the UNIX epoch. - -##### fromCache - -Type: `boolean` - -Whether the response was retrieved from the cache. - -##### redirectUrls - -Type: `Array` - -The redirect URLs. - -##### retryCount - -Type: `number` - -The number of times the request was retried. - -#### Streams - -**Note:** Progress events, redirect events and request/response events can also be used with promises. - -#### got.stream(url, [options]) - -Sets `options.stream` to `true`. - -Returns a [duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex) with additional events: - -##### .on('request', request) - -`request` event to get the request object of the request. - -**Tip:** You can use `request` event to abort request: - -```js -got.stream('github.com') - .on('request', request => setTimeout(() => request.abort(), 50)); -``` - -##### .on('response', response) - -The `response` event to get the response object of the final request. - -##### .on('redirect', response, nextOptions) - -The `redirect` event to get the response object of a redirect. The second argument is options for the next request to the redirect location. - -##### .on('uploadProgress', progress) -##### .on('downloadProgress', progress) - -Progress events for uploading (sending a request) and downloading (receiving a response). The `progress` argument is an object like: - -```js -{ - percent: 0.1, - transferred: 1024, - total: 10240 -} -``` - -If it's not possible to retrieve the body size (can happen when streaming), `total` will be `null`. - -```js -(async () => { - const response = await got('sindresorhus.com') - .on('downloadProgress', progress => { - // Report download progress - }) - .on('uploadProgress', progress => { - // Report upload progress - }); - - console.log(response); -})(); -``` - -##### .on('error', error, body, response) - -The `error` event emitted in case of a protocol error (like `ENOTFOUND` etc.) or status error (4xx or 5xx). The second argument is the body of the server response in case of status error. The third argument is a response object. - -#### got.get(url, [options]) -#### got.post(url, [options]) -#### got.put(url, [options]) -#### got.patch(url, [options]) -#### got.head(url, [options]) -#### got.delete(url, [options]) - -Sets `options.method` to the method name and makes a request. - -### Instances - -#### got.extend([options]) - -Configure a new `got` instance with default `options`. The `options` are merged with the parent instance's `defaults.options` using [`got.mergeOptions`](#gotmergeoptionsparentoptions-newoptions). You can access the resolved options with the `.defaults` property on the instance. - -```js -const client = got.extend({ - baseUrl: 'https://example.com', - headers: { - 'x-unicorn': 'rainbow' - } -}); - -client.get('/demo'); - -/* HTTP Request => - * GET /demo HTTP/1.1 - * Host: example.com - * x-unicorn: rainbow - */ -``` - -```js -(async () => { - const client = got.extend({ - baseUrl: 'httpbin.org', - headers: { - 'x-foo': 'bar' - } - }); - const {headers} = (await client.get('/headers', {json: true})).body; - //=> headers['x-foo'] === 'bar' - - const jsonClient = client.extend({ - json: true, - headers: { - 'x-baz': 'qux' - } - }); - const {headers: headers2} = (await jsonClient.get('/headers')).body; - //=> headers2['x-foo'] === 'bar' - //=> headers2['x-baz'] === 'qux' -})(); -``` - -**Tip:** Need more control over the behavior of Got? Check out the [`got.create()`](advanced-creation.md). - -#### got.mergeOptions(parentOptions, newOptions) - -Extends parent options. Avoid using [object spread](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#Spread_in_object_literals) as it doesn't work recursively: - -```js -const a = {headers: {cat: 'meow', wolf: ['bark', 'wrrr']}}; -const b = {headers: {cow: 'moo', wolf: ['auuu']}}; - -{...a, ...b} // => {headers: {cow: 'moo', wolf: ['auuu']}} -got.mergeOptions(a, b) // => {headers: {cat: 'meow', cow: 'moo', wolf: ['auuu']}} -``` - -Options are deeply merged to a new object. The value of each key is determined as follows: - -- If the new property is set to `undefined`, it keeps the old one. -- If the parent property is an instance of `URL` and the new value is a `string` or `URL`, a new URL instance is created: [`new URL(new, parent)`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Syntax). -- If the new property is a plain `Object`: - - If the parent property is a plain `Object` too, both values are merged recursively into a new `Object`. - - Otherwise, only the new value is deeply cloned. -- If the new property is an `Array`, it overwrites the old one with a deep clone of the new property. -- Otherwise, the new value is assigned to the key. - -#### got.defaults - -Type: `Object` - -The default Got options. - -## Errors - -Each error contains `host`, `hostname`, `method`, `path`, `protocol`, `url` and `gotOptions` properties to make debugging easier. - -In Promise mode, the `response` is attached to the error. - -#### got.CacheError - -When a cache method fails, for example, if the database goes down or there's a filesystem error. - -#### got.RequestError - -When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. - -#### got.ReadError - -When reading from response stream fails. - -#### got.ParseError - -When `json` option is enabled, server response code is 2xx, and `JSON.parse` fails. Includes `statusCode` and `statusMessage` properties. - -#### got.HTTPError - -When the server response code is not 2xx. Includes `body`, `statusCode`, `statusMessage`, and `redirectUrls` properties. - -#### got.MaxRedirectsError - -When the server redirects you more than ten times. Includes a `statusCode`, `statusMessage`, and `redirectUrls` property which is an array of the URLs Got was redirected to before giving up. - -#### got.UnsupportedProtocolError - -When given an unsupported protocol. - -#### got.CancelError - -When the request is aborted with `.cancel()`. - -#### got.TimeoutError - -When the request is aborted due to a [timeout](#timeout). Includes an `event` property. - -## Aborting the request - -The promise returned by Got has a [`.cancel()`](https://github.com/sindresorhus/p-cancelable) method which when called, aborts the request. - -```js -(async () => { - const request = got(url, options); - - // … - - // In another part of the code - if (something) { - request.cancel(); - } - - // … - - try { - await request; - } catch (error) { - if (request.isCanceled) { // Or `error instanceof got.CancelError` - // Handle cancelation - } - - // Handle other errors - } -})(); -``` - - -## Cache - -Got implements [RFC 7234](http://httpwg.org/specs/rfc7234.html) compliant HTTP caching which works out of the box in-memory and is easily pluggable with a wide range of storage adapters. Fresh cache entries are served directly from the cache, and stale cache entries are revalidated with `If-None-Match`/`If-Modified-Since` headers. You can read more about the underlying cache behavior in the [`cacheable-request` documentation](https://github.com/lukechilds/cacheable-request). - -You can use the JavaScript `Map` type as an in-memory cache: - -```js -const got = require('got'); -const map = new Map(); - -(async () => { - let response = await got('sindresorhus.com', {cache: map}); - console.log(response.fromCache); - //=> false - - response = await got('sindresorhus.com', {cache: map}); - console.log(response.fromCache); - //=> true -})(); -``` - -Got uses [Keyv](https://github.com/lukechilds/keyv) internally to support a wide range of storage adapters. For something more scalable you could use an [official Keyv storage adapter](https://github.com/lukechilds/keyv#official-storage-adapters): - -``` -$ npm install @keyv/redis -``` - -```js -const got = require('got'); -const KeyvRedis = require('@keyv/redis'); - -const redis = new KeyvRedis('redis://user:pass@localhost:6379'); - -got('sindresorhus.com', {cache: redis}); -``` - -Got supports anything that follows the Map API, so it's easy to write your own storage adapter or use a third-party solution. - -For example, the following are all valid storage adapters: - -```js -const storageAdapter = new Map(); -// Or -const storageAdapter = require('./my-storage-adapter'); -// Or -const QuickLRU = require('quick-lru'); -const storageAdapter = new QuickLRU({maxSize: 1000}); - -got('sindresorhus.com', {cache: storageAdapter}); -``` - -View the [Keyv docs](https://github.com/lukechilds/keyv) for more information on how to use storage adapters. - - -## Proxies - -You can use the [`tunnel`](https://github.com/koichik/node-tunnel) package with the `agent` option to work with proxies: - -```js -const got = require('got'); -const tunnel = require('tunnel'); - -got('sindresorhus.com', { - agent: tunnel.httpOverHttp({ - proxy: { - host: 'localhost' - } - }) -}); -``` - -Check out [`global-tunnel`](https://github.com/np-maintain/global-tunnel) if you want to configure proxy support for all HTTP/HTTPS traffic in your app. - - -## Cookies - -You can use the [`tough-cookie`](https://github.com/salesforce/tough-cookie) package: - -```js -const got = require('got'); -const {CookieJar} = require('tough-cookie'); - -const cookieJar = new CookieJar(); -cookieJar.setCookie('foo=bar', 'https://www.google.com'); - -got('google.com', {cookieJar}); -``` - - -## Form data - -You can use the [`form-data`](https://github.com/form-data/form-data) package to create POST request with form data: - -```js -const fs = require('fs'); -const got = require('got'); -const FormData = require('form-data'); -const form = new FormData(); - -form.append('my_file', fs.createReadStream('/foo/bar.jpg')); - -got.post('google.com', { - body: form -}); -``` - - -## OAuth - -You can use the [`oauth-1.0a`](https://github.com/ddo/oauth-1.0a) package to create a signed OAuth request: - -```js -const got = require('got'); -const crypto = require('crypto'); -const OAuth = require('oauth-1.0a'); - -const oauth = OAuth({ - consumer: { - key: process.env.CONSUMER_KEY, - secret: process.env.CONSUMER_SECRET - }, - signature_method: 'HMAC-SHA1', - hash_function: (baseString, key) => crypto.createHmac('sha1', key).update(baseString).digest('base64') -}); - -const token = { - key: process.env.ACCESS_TOKEN, - secret: process.env.ACCESS_TOKEN_SECRET -}; - -const url = 'https://api.twitter.com/1.1/statuses/home_timeline.json'; - -got(url, { - headers: oauth.toHeader(oauth.authorize({url, method: 'GET'}, token)), - json: true -}); -``` - - -## Unix Domain Sockets - -Requests can also be sent via [unix domain sockets](http://serverfault.com/questions/124517/whats-the-difference-between-unix-socket-and-tcp-ip-socket). Use the following URL scheme: `PROTOCOL://unix:SOCKET:PATH`. - -- `PROTOCOL` - `http` or `https` *(optional)* -- `SOCKET` - Absolute path to a unix domain socket, for example: `/var/run/docker.sock` -- `PATH` - Request path, for example: `/v2/keys` - -```js -got('http://unix:/var/run/docker.sock:/containers/json'); - -// Or without protocol (HTTP by default) -got('unix:/var/run/docker.sock:/containers/json'); -``` - - -## AWS - -Requests to AWS services need to have their headers signed. This can be accomplished by using the [`aws4`](https://www.npmjs.com/package/aws4) package. This is an example for querying an ["API Gateway"](https://docs.aws.amazon.com/apigateway/api-reference/signing-requests/) with a signed request. - -```js -const AWS = require('aws-sdk'); -const aws4 = require('aws4'); -const got = require('got'); - -const chain = new AWS.CredentialProviderChain(); - -// Create a Got instance to use relative paths and signed requests -const awsClient = got.extend({ - baseUrl: 'https://.execute-api..amazonaws.com//', - hooks: { - beforeRequest: [ - async options => { - const credentials = await chain.resolvePromise(); - aws4.sign(options, credentials); - } - ] - } -}); - -const response = await awsClient('endpoint/path', { - // Request-specific options -}); -``` - - -## Testing - -You can test your requests by using the [`nock`](https://github.com/node-nock/nock) package to mock an endpoint: - -```js -const got = require('got'); -const nock = require('nock'); - -nock('https://sindresorhus.com') - .get('/') - .reply(200, 'Hello world!'); - -(async () => { - const response = await got('sindresorhus.com'); - console.log(response.body); - //=> 'Hello world!' -})(); -``` - -If you need real integration tests you can use [`create-test-server`](https://github.com/lukechilds/create-test-server): - -```js -const got = require('got'); -const createTestServer = require('create-test-server'); - -(async () => { - const server = await createTestServer(); - server.get('/', 'Hello world!'); - - const response = await got(server.url); - console.log(response.body); - //=> 'Hello world!' - - await server.close(); -})(); -``` - - -## Tips - -### User Agent - -It's a good idea to set the `'user-agent'` header so the provider can more easily see how their resource is used. By default, it's the URL to this repo. You can omit this header by setting it to `null`. - -```js -const got = require('got'); -const pkg = require('./package.json'); - -got('sindresorhus.com', { - headers: { - 'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)` - } -}); - -got('sindresorhus.com', { - headers: { - 'user-agent': null - } -}); -``` - -### 304 Responses - -Bear in mind; if you send an `if-modified-since` header and receive a `304 Not Modified` response, the body will be empty. It's your responsibility to cache and retrieve the body contents. - -### Custom endpoints - -Use `got.extend()` to make it nicer to work with REST APIs. Especially if you use the `baseUrl` option. - -**Note:** Not to be confused with [`got.create()`](advanced-creation.md), which has no defaults. - -```js -const got = require('got'); -const pkg = require('./package.json'); - -const custom = got.extend({ - baseUrl: 'example.com', - json: true, - headers: { - 'user-agent': `my-package/${pkg.version} (https://github.com/username/my-package)` - } -}); - -// Use `custom` exactly how you use `got` -(async () => { - const list = await custom('/v1/users/list'); -})(); -``` - -**Tip:** Need to merge some instances into a single one? Check out [`got.mergeInstances()`](advanced-creation.md#merging-instances). - -### Experimental HTTP2 support - -Got provides an experimental support for HTTP2 using the [`http2-wrapper`](https://github.com/szmarczak/http2-wrapper) package: - -```js -const got = require('got'); -const {request} = require('http2-wrapper'); - -const h2got = got.extend({request}); - -(async () => { - const {body} = await h2got('https://nghttp2.org/httpbin/headers'); - console.log(body); -})(); -``` - -## Comparison - -| | `got` | [`request`][r0] | [`node-fetch`][n0] | [`axios`][a0] | [`superagent`][s0] | -|-----------------------|:--------------:|:---------------:|:------------------:|:---------------:|:--------------------:| -| HTTP/2 support | ❔ | ✖ | ✖ | ✖ | ✔\*\* | -| Browser support | ✖ | ✖ | ✔\* | ✔ | ✔ | -| Electron support | ✔ | ✖ | ✖ | ✖ | ✖ | -| Promise API | ✔ | ✔ | ✔ | ✔ | ✔ | -| Stream API | ✔ | ✔ | Node.js only | ✖ | ✔ | -| Request cancelation | ✔ | ✖ | ✔ | ✔ | ✔ | -| RFC compliant caching | ✔ | ✖ | ✖ | ✖ | ✖ | -| Cookies (out-of-box) | ✔ | ✔ | ✖ | ✖ | ✖ | -| Follows redirects | ✔ | ✔ | ✔ | ✔ | ✔ | -| Retries on failure | ✔ | ✖ | ✖ | ✖ | ✔ | -| Progress events | ✔ | ✖ | ✖ | Browser only | ✔ | -| Handles gzip/deflate | ✔ | ✔ | ✔ | ✔ | ✔ | -| Advanced timeouts | ✔ | ✖ | ✖ | ✖ | ✖ | -| Timings | ✔ | ✔ | ✖ | ✖ | ✖ | -| Errors with metadata | ✔ | ✖ | ✖ | ✔ | ✖ | -| JSON mode | ✔ | ✔ | ✖ | ✔ | ✔ | -| Custom defaults | ✔ | ✔ | ✖ | ✔ | ✖ | -| Composable | ✔ | ✖ | ✖ | ✖ | ✔ | -| Hooks | ✔ | ✖ | ✖ | ✔ | ✖ | -| Issues open | [![][gio]][g1] | [![][rio]][r1] | [![][nio]][n1] | [![][aio]][a1] | [![][sio]][s1] | -| Issues closed | [![][gic]][g2] | [![][ric]][r2] | [![][nic]][n2] | [![][aic]][a2] | [![][sic]][s2] | -| Downloads | [![][gd]][g3] | [![][rd]][r3] | [![][nd]][n3] | [![][ad]][a3] | [![][sd]][s3] | -| Coverage | [![][gc]][g4] | [![][rc]][r4] | [![][nc]][n4] | [![][ac]][a4] | unknown | -| Build | [![][gb]][g5] | [![][rb]][r5] | [![][nb]][n5] | [![][ab]][a5] | [![][sb]][s5] | -| Bugs | [![][gbg]][g6] | [![][rbg]][r6] | [![][nbg]][n6] | [![][abg]][a6] | [![][sbg]][s6] | -| Dependents | [![][gdp]][g7] | [![][rdp]][r7] | [![][ndp]][n7] | [![][adp]][a7] | [![][sdp]][s7] | -| Install size | [![][gis]][g8] | [![][ris]][r8] | [![][nis]][n8] | [![][ais]][a8] | [![][sis]][s8] | - -\* It's almost API compatible with the browser `fetch` API.
-\*\* Need to switch the protocol manually.
-❔ Experimental support. - - -[r0]: https://github.com/request/request -[n0]: https://github.com/bitinn/node-fetch -[a0]: https://github.com/axios/axios -[s0]: https://github.com/visionmedia/superagent - - -[gio]: https://badgen.net/github/open-issues/sindresorhus/got?label -[rio]: https://badgen.net/github/open-issues/request/request?label -[nio]: https://badgen.net/github/open-issues/bitinn/node-fetch?label -[aio]: https://badgen.net/github/open-issues/axios/axios?label -[sio]: https://badgen.net/github/open-issues/visionmedia/superagent?label - -[g1]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[r1]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[n1]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[a1]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc -[s1]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc - - -[gic]: https://badgen.net/github/closed-issues/sindresorhus/got?label -[ric]: https://badgen.net/github/closed-issues/request/request?label -[nic]: https://badgen.net/github/closed-issues/bitinn/node-fetch?label -[aic]: https://badgen.net/github/closed-issues/axios/axios?label -[sic]: https://badgen.net/github/closed-issues/visionmedia/superagent?label - -[g2]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[r2]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[n2]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[a2]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc -[s2]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aclosed+sort%3Aupdated-desc - - -[gd]: https://badgen.net/npm/dm/got?label -[rd]: https://badgen.net/npm/dm/request?label -[nd]: https://badgen.net/npm/dm/node-fetch?label -[ad]: https://badgen.net/npm/dm/axios?label -[sd]: https://badgen.net/npm/dm/superagent?label - -[g3]: https://www.npmjs.com/package/got -[r3]: https://www.npmjs.com/package/request -[n3]: https://www.npmjs.com/package/node-fetch -[a3]: https://www.npmjs.com/package/axios -[s3]: https://www.npmjs.com/package/superagent - - -[gc]: https://badgen.net/coveralls/c/github/sindresorhus/got?label -[rc]: https://badgen.net/coveralls/c/github/request/request?label -[nc]: https://badgen.net/coveralls/c/github/bitinn/node-fetch?label -[ac]: https://badgen.net/coveralls/c/github/mzabriskie/axios?label - -[g4]: https://coveralls.io/github/sindresorhus/got -[r4]: https://coveralls.io/github/request/request -[n4]: https://coveralls.io/github/bitinn/node-fetch -[a4]: https://coveralls.io/github/mzabriskie/axios - - -[gb]: https://badgen.net/travis/sindresorhus/got?label -[rb]: https://badgen.net/travis/request/request?label -[nb]: https://badgen.net/travis/bitinn/node-fetch?label -[ab]: https://badgen.net/travis/axios/axios?label -[sb]: https://badgen.net/travis/visionmedia/superagent?label - -[g5]: https://travis-ci.org/sindresorhus/got -[r5]: https://travis-ci.org/request/request -[n5]: https://travis-ci.org/bitinn/node-fetch -[a5]: https://travis-ci.org/axios/axios -[s5]: https://travis-ci.org/visionmedia/superagent - - -[gbg]: https://badgen.net/github/label-issues/sindresorhus/got/bug/open?label -[rbg]: https://badgen.net/github/label-issues/request/request/Needs%20investigation/open?label -[nbg]: https://badgen.net/github/label-issues/bitinn/node-fetch/bug/open?label -[abg]: https://badgen.net/github/label-issues/axios/axios/bug/open?label -[sbg]: https://badgen.net/github/label-issues/visionmedia/superagent/Bug/open?label - -[g6]: https://github.com/sindresorhus/got/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[r6]: https://github.com/request/request/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A"Needs+investigation" -[n6]: https://github.com/bitinn/node-fetch/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[a6]: https://github.com/axios/axios/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Abug -[s6]: https://github.com/visionmedia/superagent/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3ABug - - -[gdp]: https://badgen.net/npm/dependents/got?label -[rdp]: https://badgen.net/npm/dependents/request?label -[ndp]: https://badgen.net/npm/dependents/node-fetch?label -[adp]: https://badgen.net/npm/dependents/axios?label -[sdp]: https://badgen.net/npm/dependents/superagent?label - -[g7]: https://www.npmjs.com/package/got?activeTab=dependents -[r7]: https://www.npmjs.com/package/request?activeTab=dependents -[n7]: https://www.npmjs.com/package/node-fetch?activeTab=dependents -[a7]: https://www.npmjs.com/package/axios?activeTab=dependents -[s7]: https://www.npmjs.com/package/visionmedia?activeTab=dependents - - -[gis]: https://badgen.net/packagephobia/install/got?label -[ris]: https://badgen.net/packagephobia/install/request?label -[nis]: https://badgen.net/packagephobia/install/node-fetch?label -[ais]: https://badgen.net/packagephobia/install/axios?label -[sis]: https://badgen.net/packagephobia/install/superagent?label - -[g8]: https://packagephobia.now.sh/result?p=got -[r8]: https://packagephobia.now.sh/result?p=request -[n8]: https://packagephobia.now.sh/result?p=node-fetch -[a8]: https://packagephobia.now.sh/result?p=axios -[s8]: https://packagephobia.now.sh/result?p=superagent - - -## Related - -- [gh-got](https://github.com/sindresorhus/gh-got) - Got convenience wrapper to interact with the GitHub API -- [gl-got](https://github.com/singapore/gl-got) - Got convenience wrapper to interact with the GitLab API -- [travis-got](https://github.com/samverschueren/travis-got) - Got convenience wrapper to interact with the Travis API -- [graphql-got](https://github.com/kevva/graphql-got) - Got convenience wrapper to interact with GraphQL -- [GotQL](https://github.com/khaosdoctor/gotql) - Got convenience wrapper to interact with GraphQL using JSON-parsed queries instead of strings - - -## Maintainers - -[![Sindre Sorhus](https://github.com/sindresorhus.png?size=100)](https://sindresorhus.com) | [![Vsevolod Strukchinsky](https://github.com/floatdrop.png?size=100)](https://github.com/floatdrop) | [![Alexander Tesfamichael](https://github.com/AlexTes.png?size=100)](https://github.com/AlexTes) | [![Luke Childs](https://github.com/lukechilds.png?size=100)](https://github.com/lukechilds) | [![Szymon Marczak](https://github.com/szmarczak.png?size=100)](https://github.com/szmarczak) | [![Brandon Smith](https://github.com/brandon93s.png?size=100)](https://github.com/brandon93s) ----|---|---|---|---|--- -[Sindre Sorhus](https://sindresorhus.com) | [Vsevolod Strukchinsky](https://github.com/floatdrop) | [Alexander Tesfamichael](https://alextes.me) | [Luke Childs](https://github.com/lukechilds) | [Szymon Marczak](https://github.com/szmarczak) | [Brandon Smith](https://github.com/brandon93s) - - -## License - -MIT diff --git a/node_modules/has-ansi/index.js b/node_modules/has-ansi/index.js deleted file mode 100644 index 98fae067..00000000 --- a/node_modules/has-ansi/index.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict'; -var ansiRegex = require('ansi-regex'); -var re = new RegExp(ansiRegex().source); // remove the `g` flag -module.exports = re.test.bind(re); diff --git a/node_modules/has-ansi/license b/node_modules/has-ansi/license deleted file mode 100644 index 654d0bfe..00000000 --- a/node_modules/has-ansi/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/has-ansi/package.json b/node_modules/has-ansi/package.json deleted file mode 100644 index 01e08d4f..00000000 --- a/node_modules/has-ansi/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "has-ansi", - "version": "2.0.0", - "description": "Check if a string has ANSI escape codes", - "license": "MIT", - "repository": "sindresorhus/has-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Appelman (jbnicolai.com)" - ], - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "node test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern", - "has" - ], - "dependencies": { - "ansi-regex": "^2.0.0" - }, - "devDependencies": { - "ava": "0.0.4" - } -} diff --git a/node_modules/has-ansi/readme.md b/node_modules/has-ansi/readme.md deleted file mode 100644 index 02bc7c23..00000000 --- a/node_modules/has-ansi/readme.md +++ /dev/null @@ -1,36 +0,0 @@ -# has-ansi [![Build Status](https://travis-ci.org/sindresorhus/has-ansi.svg?branch=master)](https://travis-ci.org/sindresorhus/has-ansi) - -> Check if a string has [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) - - -## Install - -``` -$ npm install --save has-ansi -``` - - -## Usage - -```js -var hasAnsi = require('has-ansi'); - -hasAnsi('\u001b[4mcake\u001b[0m'); -//=> true - -hasAnsi('cake'); -//=> false -``` - - -## Related - -- [has-ansi-cli](https://github.com/sindresorhus/has-ansi-cli) - CLI for this module -- [strip-ansi](https://github.com/sindresorhus/strip-ansi) - Strip ANSI escape codes -- [ansi-regex](https://github.com/sindresorhus/ansi-regex) - Regular expression for matching ANSI escape codes -- [chalk](https://github.com/sindresorhus/chalk) - Terminal string styling done right - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/isarray/.npmignore b/node_modules/isarray/.npmignore deleted file mode 100644 index 3c3629e6..00000000 --- a/node_modules/isarray/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/isarray/.travis.yml b/node_modules/isarray/.travis.yml deleted file mode 100644 index cc4dba29..00000000 --- a/node_modules/isarray/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/isarray/Makefile b/node_modules/isarray/Makefile deleted file mode 100644 index 787d56e1..00000000 --- a/node_modules/isarray/Makefile +++ /dev/null @@ -1,6 +0,0 @@ - -test: - @node_modules/.bin/tape test.js - -.PHONY: test - diff --git a/node_modules/isarray/README.md b/node_modules/isarray/README.md deleted file mode 100644 index 16d2c59c..00000000 --- a/node_modules/isarray/README.md +++ /dev/null @@ -1,60 +0,0 @@ - -# isarray - -`Array#isArray` for older browsers. - -[![build status](https://secure.travis-ci.org/juliangruber/isarray.svg)](http://travis-ci.org/juliangruber/isarray) -[![downloads](https://img.shields.io/npm/dm/isarray.svg)](https://www.npmjs.org/package/isarray) - -[![browser support](https://ci.testling.com/juliangruber/isarray.png) -](https://ci.testling.com/juliangruber/isarray) - -## Usage - -```js -var isArray = require('isarray'); - -console.log(isArray([])); // => true -console.log(isArray({})); // => false -``` - -## Installation - -With [npm](http://npmjs.org) do - -```bash -$ npm install isarray -``` - -Then bundle for the browser with -[browserify](https://github.com/substack/browserify). - -With [component](http://component.io) do - -```bash -$ component install juliangruber/isarray -``` - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/isarray/component.json b/node_modules/isarray/component.json deleted file mode 100644 index 9e31b683..00000000 --- a/node_modules/isarray/component.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name" : "isarray", - "description" : "Array#isArray for older browsers", - "version" : "0.0.1", - "repository" : "juliangruber/isarray", - "homepage": "https://github.com/juliangruber/isarray", - "main" : "index.js", - "scripts" : [ - "index.js" - ], - "dependencies" : {}, - "keywords": ["browser","isarray","array"], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT" -} diff --git a/node_modules/isarray/index.js b/node_modules/isarray/index.js deleted file mode 100644 index a57f6349..00000000 --- a/node_modules/isarray/index.js +++ /dev/null @@ -1,5 +0,0 @@ -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; diff --git a/node_modules/isarray/package.json b/node_modules/isarray/package.json deleted file mode 100644 index 1a4317a9..00000000 --- a/node_modules/isarray/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "isarray", - "description": "Array#isArray for older browsers", - "version": "1.0.0", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/isarray.git" - }, - "homepage": "https://github.com/juliangruber/isarray", - "main": "index.js", - "dependencies": {}, - "devDependencies": { - "tape": "~2.13.4" - }, - "keywords": [ - "browser", - "isarray", - "array" - ], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test.js", - "browsers": [ - "ie/8..latest", - "firefox/17..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - }, - "scripts": { - "test": "tape test.js" - } -} diff --git a/node_modules/isarray/test.js b/node_modules/isarray/test.js deleted file mode 100644 index e0c3444d..00000000 --- a/node_modules/isarray/test.js +++ /dev/null @@ -1,20 +0,0 @@ -var isArray = require('./'); -var test = require('tape'); - -test('is array', function(t){ - t.ok(isArray([])); - t.notOk(isArray({})); - t.notOk(isArray(null)); - t.notOk(isArray(false)); - - var obj = {}; - obj[0] = true; - t.notOk(isArray(obj)); - - var arr = []; - arr.foo = 'bar'; - t.ok(isArray(arr)); - - t.end(); -}); - diff --git a/node_modules/lowercase-keys/index.js b/node_modules/lowercase-keys/index.js deleted file mode 100644 index b8d88983..00000000 --- a/node_modules/lowercase-keys/index.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; -module.exports = function (obj) { - var ret = {}; - var keys = Object.keys(Object(obj)); - - for (var i = 0; i < keys.length; i++) { - ret[keys[i].toLowerCase()] = obj[keys[i]]; - } - - return ret; -}; diff --git a/node_modules/lowercase-keys/package.json b/node_modules/lowercase-keys/package.json deleted file mode 100644 index 188af703..00000000 --- a/node_modules/lowercase-keys/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "lowercase-keys", - "version": "1.0.1", - "description": "Lowercase the keys of an object", - "license": "MIT", - "repository": "sindresorhus/lowercase-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "object", - "assign", - "extend", - "properties", - "lowercase", - "lower-case", - "case", - "keys", - "key" - ], - "devDependencies": { - "ava": "*" - } -} diff --git a/node_modules/lowercase-keys/readme.md b/node_modules/lowercase-keys/readme.md deleted file mode 100644 index dc65770a..00000000 --- a/node_modules/lowercase-keys/readme.md +++ /dev/null @@ -1,33 +0,0 @@ -# lowercase-keys [![Build Status](https://travis-ci.org/sindresorhus/lowercase-keys.svg?branch=master)](https://travis-ci.org/sindresorhus/lowercase-keys) - -> Lowercase the keys of an object - - -## Install - -``` -$ npm install --save lowercase-keys -``` - - -## Usage - -```js -var lowercaseKeys = require('lowercase-keys'); - -lowercaseKeys({FOO: true, bAr: false}); -//=> {foo: true, bar: false} -``` - - -## API - -### lowercaseKeys(object) - -Lowercases the keys and returns a new object. - - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/node_modules/mkdirp/LICENSE b/node_modules/mkdirp/LICENSE deleted file mode 100644 index 432d1aeb..00000000 --- a/node_modules/mkdirp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright 2010 James Halliday (mail@substack.net) - -This project is free software released under the MIT/X11 license: - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/mkdirp/bin/cmd.js b/node_modules/mkdirp/bin/cmd.js deleted file mode 100755 index d95de15a..00000000 --- a/node_modules/mkdirp/bin/cmd.js +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env node - -var mkdirp = require('../'); -var minimist = require('minimist'); -var fs = require('fs'); - -var argv = minimist(process.argv.slice(2), { - alias: { m: 'mode', h: 'help' }, - string: [ 'mode' ] -}); -if (argv.help) { - fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout); - return; -} - -var paths = argv._.slice(); -var mode = argv.mode ? parseInt(argv.mode, 8) : undefined; - -(function next () { - if (paths.length === 0) return; - var p = paths.shift(); - - if (mode === undefined) mkdirp(p, cb) - else mkdirp(p, mode, cb) - - function cb (err) { - if (err) { - console.error(err.message); - process.exit(1); - } - else next(); - } -})(); diff --git a/node_modules/mkdirp/bin/usage.txt b/node_modules/mkdirp/bin/usage.txt deleted file mode 100644 index f952aa2c..00000000 --- a/node_modules/mkdirp/bin/usage.txt +++ /dev/null @@ -1,12 +0,0 @@ -usage: mkdirp [DIR1,DIR2..] {OPTIONS} - - Create each supplied directory including any necessary parent directories that - don't yet exist. - - If the directory already exists, do nothing. - -OPTIONS are: - - -m, --mode If a directory needs to be created, set the mode as an octal - permission string. - diff --git a/node_modules/mkdirp/index.js b/node_modules/mkdirp/index.js deleted file mode 100644 index 0890ac3b..00000000 --- a/node_modules/mkdirp/index.js +++ /dev/null @@ -1,102 +0,0 @@ -var path = require('path'); -var fs = require('fs'); -var _0777 = parseInt('0777', 8); - -module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP; - -function mkdirP (p, opts, f, made) { - if (typeof opts === 'function') { - f = opts; - opts = {}; - } - else if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 - } - if (!made) made = null; - - var cb = f || /* istanbul ignore next */ function () {}; - p = path.resolve(p); - - xfs.mkdir(p, mode, function (er) { - if (!er) { - made = made || p; - return cb(null, made); - } - switch (er.code) { - case 'ENOENT': - /* istanbul ignore if */ - if (path.dirname(p) === p) return cb(er); - mkdirP(path.dirname(p), opts, function (er, made) { - /* istanbul ignore if */ - if (er) cb(er, made); - else mkdirP(p, opts, cb, made); - }); - break; - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - xfs.stat(p, function (er2, stat) { - // if the stat fails, then that's super weird. - // let the original error be the failure reason. - if (er2 || !stat.isDirectory()) cb(er, made) - else cb(null, made); - }); - break; - } - }); -} - -mkdirP.sync = function sync (p, opts, made) { - if (!opts || typeof opts !== 'object') { - opts = { mode: opts }; - } - - var mode = opts.mode; - var xfs = opts.fs || fs; - - if (mode === undefined) { - mode = _0777 - } - if (!made) made = null; - - p = path.resolve(p); - - try { - xfs.mkdirSync(p, mode); - made = made || p; - } - catch (err0) { - switch (err0.code) { - case 'ENOENT' : - made = sync(path.dirname(p), opts, made); - sync(p, opts, made); - break; - - // In the case of any other error, just see if there's a dir - // there already. If so, then hooray! If not, then something - // is borked. - default: - var stat; - try { - stat = xfs.statSync(p); - } - catch (err1) /* istanbul ignore next */ { - throw err0; - } - /* istanbul ignore if */ - if (!stat.isDirectory()) throw err0; - break; - } - } - - return made; -}; diff --git a/node_modules/mkdirp/package.json b/node_modules/mkdirp/package.json deleted file mode 100644 index 951e58da..00000000 --- a/node_modules/mkdirp/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "mkdirp", - "description": "Recursively mkdir, like `mkdir -p`", - "version": "0.5.6", - "publishConfig": { - "tag": "legacy" - }, - "author": "James Halliday (http://substack.net)", - "main": "index.js", - "keywords": [ - "mkdir", - "directory" - ], - "repository": { - "type": "git", - "url": "https://github.com/substack/node-mkdirp.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "dependencies": { - "minimist": "^1.2.6" - }, - "devDependencies": { - "tap": "^16.0.1" - }, - "bin": "bin/cmd.js", - "license": "MIT", - "files": [ - "bin", - "index.js" - ] -} diff --git a/node_modules/mkdirp/readme.markdown b/node_modules/mkdirp/readme.markdown deleted file mode 100644 index fc314bfb..00000000 --- a/node_modules/mkdirp/readme.markdown +++ /dev/null @@ -1,100 +0,0 @@ -# mkdirp - -Like `mkdir -p`, but in node.js! - -[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp) - -# example - -## pow.js - -```js -var mkdirp = require('mkdirp'); - -mkdirp('/tmp/foo/bar/baz', function (err) { - if (err) console.error(err) - else console.log('pow!') -}); -``` - -Output - -``` -pow! -``` - -And now /tmp/foo/bar/baz exists, huzzah! - -# methods - -```js -var mkdirp = require('mkdirp'); -``` - -## mkdirp(dir, opts, cb) - -Create a new directory and any necessary subdirectories at `dir` with octal -permission string `opts.mode`. If `opts` is a non-object, it will be treated as -the `opts.mode`. - -If `opts.mode` isn't specified, it defaults to `0777`. - -`cb(err, made)` fires with the error or the first directory `made` -that had to be created, if any. - -You can optionally pass in an alternate `fs` implementation by passing in -`opts.fs`. Your implementation should have `opts.fs.mkdir(path, mode, cb)` and -`opts.fs.stat(path, cb)`. - -## mkdirp.sync(dir, opts) - -Synchronously create a new directory and any necessary subdirectories at `dir` -with octal permission string `opts.mode`. If `opts` is a non-object, it will be -treated as the `opts.mode`. - -If `opts.mode` isn't specified, it defaults to `0777`. - -Returns the first directory that had to be created, if any. - -You can optionally pass in an alternate `fs` implementation by passing in -`opts.fs`. Your implementation should have `opts.fs.mkdirSync(path, mode)` and -`opts.fs.statSync(path)`. - -# usage - -This package also ships with a `mkdirp` command. - -``` -usage: mkdirp [DIR1,DIR2..] {OPTIONS} - - Create each supplied directory including any necessary parent directories that - don't yet exist. - - If the directory already exists, do nothing. - -OPTIONS are: - - -m, --mode If a directory needs to be created, set the mode as an octal - permission string. - -``` - -# install - -With [npm](http://npmjs.org) do: - -``` -npm install mkdirp -``` - -to get the library, or - -``` -npm install -g mkdirp -``` - -to get the command. - -# license - -MIT diff --git a/node_modules/mocha/bin/mocha.js b/node_modules/mocha/bin/mocha.js new file mode 100755 index 00000000..fb58e65f --- /dev/null +++ b/node_modules/mocha/bin/mocha.js @@ -0,0 +1,142 @@ +#!/usr/bin/env node + +'use strict'; + +/** + * This wrapper executable checks for known node flags and appends them when found, + * before invoking the "real" executable (`lib/cli/cli.js`) + * + * @module bin/mocha + * @private + */ + +const {loadOptions} = require('../lib/cli/options'); +const { + unparseNodeFlags, + isNodeFlag, + impliesNoTimeouts +} = require('../lib/cli/node-flags'); +const unparse = require('yargs-unparser'); +const debug = require('debug')('mocha:cli:mocha'); +const {aliases} = require('../lib/cli/run-option-metadata'); + +const mochaArgs = {}; +const nodeArgs = {}; +let hasInspect = false; + +const opts = loadOptions(process.argv.slice(2)); +debug('loaded opts', opts); + +/** + * Given option/command `value`, disable timeouts if applicable + * @param {string} [value] - Value to check + * @ignore + */ +const disableTimeouts = value => { + if (impliesNoTimeouts(value)) { + debug('option %s disabled timeouts', value); + mochaArgs.timeout = 0; + } +}; + +/** + * If `value` begins with `v8-` and is not explicitly `v8-options`, remove prefix + * @param {string} [value] - Value to check + * @returns {string} `value` with prefix (maybe) removed + * @ignore + */ +const trimV8Option = value => + value !== 'v8-options' && /^v8-/.test(value) ? value.slice(3) : value; + +// sort options into "node" and "mocha" buckets +Object.keys(opts).forEach(opt => { + if (isNodeFlag(opt)) { + nodeArgs[trimV8Option(opt)] = opts[opt]; + } else { + mochaArgs[opt] = opts[opt]; + } +}); + +// disable 'timeout' for debugFlags +Object.keys(nodeArgs).forEach(opt => disableTimeouts(opt)); +mochaArgs['node-option'] && + mochaArgs['node-option'].forEach(opt => disableTimeouts(opt)); + +// Native debugger handling +// see https://nodejs.org/api/debugger.html#debugger_debugger +// look for 'inspect' that would launch this debugger, +// remove it from Mocha's opts and prepend it to Node's opts. +// A deprecation warning will be printed by node, if applicable. +// (mochaArgs._ are "positional" arguments, not prefixed with - or --) +if (mochaArgs._) { + const i = mochaArgs._.findIndex(val => val === 'inspect'); + if (i > -1) { + mochaArgs._.splice(i, 1); + disableTimeouts('inspect'); + hasInspect = true; + } +} + +if (mochaArgs['node-option'] || Object.keys(nodeArgs).length || hasInspect) { + const {spawn} = require('child_process'); + const mochaPath = require.resolve('../lib/cli/cli.js'); + + const nodeArgv = + (mochaArgs['node-option'] && mochaArgs['node-option'].map(v => '--' + v)) || + unparseNodeFlags(nodeArgs); + + if (hasInspect) nodeArgv.unshift('inspect'); + delete mochaArgs['node-option']; + + debug('final node argv', nodeArgv); + + const args = [].concat( + nodeArgv, + mochaPath, + unparse(mochaArgs, {alias: aliases}) + ); + + debug( + 'forking child process via command: %s %s', + process.execPath, + args.join(' ') + ); + + const proc = spawn(process.execPath, args, { + stdio: 'inherit' + }); + + proc.on('exit', (code, signal) => { + process.on('exit', () => { + if (signal) { + process.kill(process.pid, signal); + } else { + process.exit(code); + } + }); + }); + + // terminate children. + process.on('SIGINT', () => { + // XXX: a previous comment said this would abort the runner, but I can't see that it does + // anything with the default runner. + debug('main process caught SIGINT'); + proc.kill('SIGINT'); + // if running in parallel mode, we will have a proper SIGINT handler, so the below won't + // be needed. + if (!args.parallel || args.jobs < 2) { + // win32 does not support SIGTERM, so use next best thing. + if (require('os').platform() === 'win32') { + proc.kill('SIGKILL'); + } else { + // using SIGKILL won't cleanly close the output streams, which can result + // in cut-off text or a befouled terminal. + debug('sending SIGTERM to child process'); + proc.kill('SIGTERM'); + } + } + }); +} else { + debug('running Mocha in-process'); + require('../lib/cli/cli').main([], mochaArgs); +} diff --git a/node_modules/mocha/lib/browser/highlight-tags.js b/node_modules/mocha/lib/browser/highlight-tags.js new file mode 100644 index 00000000..d98896e7 --- /dev/null +++ b/node_modules/mocha/lib/browser/highlight-tags.js @@ -0,0 +1,39 @@ +'use strict'; + +/** + * Highlight the given string of `js`. + * + * @private + * @param {string} js + * @return {string} + */ +function highlight(js) { + return js + .replace(//g, '>') + .replace(/\/\/(.*)/gm, '//$1') + .replace(/('.*?')/gm, '$1') + .replace(/(\d+\.\d+)/gm, '$1') + .replace(/(\d+)/gm, '$1') + .replace( + /\bnew[ \t]+(\w+)/gm, + 'new $1' + ) + .replace( + /\b(function|new|throw|return|var|if|else)\b/gm, + '$1' + ); +} + +/** + * Highlight the contents of tag `name`. + * + * @private + * @param {string} name + */ +module.exports = function highlightTags(name) { + var code = document.getElementById('mocha').getElementsByTagName(name); + for (var i = 0, len = code.length; i < len; ++i) { + code[i].innerHTML = highlight(code[i].innerHTML); + } +}; diff --git a/node_modules/mocha/lib/browser/parse-query.js b/node_modules/mocha/lib/browser/parse-query.js new file mode 100644 index 00000000..3a7ac1ab --- /dev/null +++ b/node_modules/mocha/lib/browser/parse-query.js @@ -0,0 +1,24 @@ +'use strict'; + +/** + * Parse the given `qs`. + * + * @private + * @param {string} qs + * @return {Object} + */ +module.exports = function parseQuery(qs) { + return qs + .replace('?', '') + .split('&') + .reduce(function (obj, pair) { + var i = pair.indexOf('='); + var key = pair.slice(0, i); + var val = pair.slice(++i); + + // Due to how the URLSearchParams API treats spaces + obj[key] = decodeURIComponent(val.replace(/\+/g, '%20')); + + return obj; + }, {}); +}; diff --git a/node_modules/mocha/lib/browser/template.html b/node_modules/mocha/lib/browser/template.html new file mode 100644 index 00000000..4ebd4af4 --- /dev/null +++ b/node_modules/mocha/lib/browser/template.html @@ -0,0 +1,20 @@ + + + + + Mocha + + + + +
+ + + + + + diff --git a/node_modules/mocha/lib/cli/cli.js b/node_modules/mocha/lib/cli/cli.js new file mode 100755 index 00000000..977a3415 --- /dev/null +++ b/node_modules/mocha/lib/cli/cli.js @@ -0,0 +1,89 @@ +#!/usr/bin/env node + +'use strict'; + +/** + * Contains CLI entry point and public API for programmatic usage in Node.js. + * - Option parsing is handled by {@link https://npm.im/yargs yargs}. + * - If executed via `node`, this module will run {@linkcode module:lib/cli.main main()}. + * @public + * @module lib/cli + */ + +const debug = require('debug')('mocha:cli:cli'); +const symbols = require('log-symbols'); +const yargs = require('yargs/yargs'); +const path = require('path'); +const { + loadRc, + loadPkgRc, + loadOptions, + YARGS_PARSER_CONFIG +} = require('./options'); +const lookupFiles = require('./lookup-files'); +const commands = require('./commands'); +const ansi = require('ansi-colors'); +const {repository, homepage, version, gitter} = require('../../package.json'); +const {cwd} = require('../utils'); + +/** + * - Accepts an `Array` of arguments + * - Modifies {@link https://nodejs.org/api/modules.html#modules_module_paths Node.js' search path} for easy loading of consumer modules + * - Sets {@linkcode https://nodejs.org/api/errors.html#errors_error_stacktracelimit Error.stackTraceLimit} to `Infinity` + * @public + * @summary Mocha's main command-line entry-point. + * @param {string[]} argv - Array of arguments to parse, or by default the lovely `process.argv.slice(2)` + * @param {object} [mochaArgs] - Object of already parsed Mocha arguments (by bin/mocha) + */ +exports.main = (argv = process.argv.slice(2), mochaArgs) => { + debug('entered main with raw args', argv); + // ensure we can require() from current working directory + if (typeof module.paths !== 'undefined') { + module.paths.push(cwd(), path.resolve('node_modules')); + } + + Error.stackTraceLimit = Infinity; // configurable via --stack-trace-limit? + + var args = mochaArgs || loadOptions(argv); + + yargs() + .scriptName('mocha') + .command(commands.run) + .command(commands.init) + .updateStrings({ + 'Positionals:': 'Positional Arguments', + 'Options:': 'Other Options', + 'Commands:': 'Commands' + }) + .fail((msg, err, yargs) => { + debug('caught error sometime before command handler: %O', err); + yargs.showHelp(); + console.error(`\n${symbols.error} ${ansi.red('ERROR:')} ${msg}`); + process.exitCode = 1; + }) + .help('help', 'Show usage information & exit') + .alias('help', 'h') + .version('version', 'Show version number & exit', version) + .alias('version', 'V') + .wrap(process.stdout.columns ? Math.min(process.stdout.columns, 80) : 80) + .epilog( + `Mocha Resources + Chat: ${ansi.magenta(gitter)} + GitHub: ${ansi.blue(repository.url)} + Docs: ${ansi.yellow(homepage)} + ` + ) + .parserConfiguration(YARGS_PARSER_CONFIG) + .config(args) + .parse(args._); +}; + +exports.lookupFiles = lookupFiles; +exports.loadOptions = loadOptions; +exports.loadPkgRc = loadPkgRc; +exports.loadRc = loadRc; + +// allow direct execution +if (require.main === module) { + exports.main(); +} diff --git a/node_modules/mocha/lib/cli/collect-files.js b/node_modules/mocha/lib/cli/collect-files.js new file mode 100644 index 00000000..39934cbf --- /dev/null +++ b/node_modules/mocha/lib/cli/collect-files.js @@ -0,0 +1,92 @@ +'use strict'; + +const path = require('path'); +const ansi = require('ansi-colors'); +const debug = require('debug')('mocha:cli:run:helpers'); +const minimatch = require('minimatch'); +const {NO_FILES_MATCH_PATTERN} = require('../errors').constants; +const lookupFiles = require('./lookup-files'); +const {castArray} = require('../utils'); + +/** + * Exports a function that collects test files from CLI parameters. + * @see module:lib/cli/run-helpers + * @see module:lib/cli/watch-run + * @module + * @private + */ + +/** + * Smash together an array of test files in the correct order + * @param {FileCollectionOptions} [opts] - Options + * @returns {string[]} List of files to test + * @private + */ +module.exports = ({ + ignore, + extension, + file: fileArgs, + recursive, + sort, + spec +} = {}) => { + const unmatched = []; + const specFiles = spec.reduce((specFiles, arg) => { + try { + const moreSpecFiles = castArray(lookupFiles(arg, extension, recursive)) + .filter(filename => + ignore.every(pattern => !minimatch(filename, pattern)) + ) + .map(filename => path.resolve(filename)); + return [...specFiles, ...moreSpecFiles]; + } catch (err) { + if (err.code === NO_FILES_MATCH_PATTERN) { + unmatched.push({message: err.message, pattern: err.pattern}); + return specFiles; + } + + throw err; + } + }, []); + + // ensure we don't sort the stuff from fileArgs; order is important! + if (sort) { + specFiles.sort(); + } + + // add files given through --file to be ran first + const files = [ + ...fileArgs.map(filepath => path.resolve(filepath)), + ...specFiles + ]; + debug('test files (in order): ', files); + + if (!files.length) { + // give full message details when only 1 file is missing + const noneFoundMsg = + unmatched.length === 1 + ? `Error: No test files found: ${JSON.stringify(unmatched[0].pattern)}` // stringify to print escaped characters raw + : 'Error: No test files found'; + console.error(ansi.red(noneFoundMsg)); + process.exit(1); + } else { + // print messages as a warning + unmatched.forEach(warning => { + console.warn(ansi.yellow(`Warning: ${warning.message}`)); + }); + } + + return files; +}; + +/** + * An object to configure how Mocha gathers test files + * @private + * @typedef {Object} FileCollectionOptions + * @property {string[]} extension - File extensions to use + * @property {string[]} spec - Files, dirs, globs to run + * @property {string[]} ignore - Files, dirs, globs to ignore + * @property {string[]} file - List of additional files to include + * @property {boolean} recursive - Find files recursively + * @property {boolean} sort - Sort test files + */ diff --git a/node_modules/mocha/lib/cli/commands.js b/node_modules/mocha/lib/cli/commands.js new file mode 100644 index 00000000..1102f860 --- /dev/null +++ b/node_modules/mocha/lib/cli/commands.js @@ -0,0 +1,13 @@ +'use strict'; + +/** + * Exports Yargs commands + * @see https://github.com/yargs/yargs/blob/main/docs/advanced.md + * @private + * @module + */ + +exports.init = require('./init'); + +// default command +exports.run = require('./run'); diff --git a/node_modules/mocha/lib/cli/config.js b/node_modules/mocha/lib/cli/config.js new file mode 100644 index 00000000..ac719833 --- /dev/null +++ b/node_modules/mocha/lib/cli/config.js @@ -0,0 +1,100 @@ +'use strict'; + +/** + * Responsible for loading / finding Mocha's "rc" files. + * + * @private + * @module + */ + +const fs = require('fs'); +const path = require('path'); +const debug = require('debug')('mocha:cli:config'); +const findUp = require('find-up'); +const {createUnparsableFileError} = require('../errors'); +const utils = require('../utils'); + +/** + * These are the valid config files, in order of precedence; + * e.g., if `.mocharc.js` is present, then `.mocharc.yaml` and the rest + * will be ignored. + * The user should still be able to explicitly specify a file. + * @private + */ +exports.CONFIG_FILES = [ + '.mocharc.cjs', + '.mocharc.js', + '.mocharc.yaml', + '.mocharc.yml', + '.mocharc.jsonc', + '.mocharc.json' +]; + +/** + * Parsers for various config filetypes. Each accepts a filepath and + * returns an object (but could throw) + */ +const parsers = (exports.parsers = { + yaml: filepath => require('js-yaml').load(fs.readFileSync(filepath, 'utf8')), + js: filepath => { + let cwdFilepath; + try { + debug('parsers: load cwd-relative path: "%s"', path.resolve(filepath)); + cwdFilepath = require.resolve(path.resolve(filepath)); // evtl. throws + return require(cwdFilepath); + } catch (err) { + if (cwdFilepath) throw err; + + debug('parsers: retry load as module-relative path: "%s"', filepath); + return require(filepath); + } + }, + json: filepath => + JSON.parse( + require('strip-json-comments')(fs.readFileSync(filepath, 'utf8')) + ) +}); + +/** + * Loads and parses, based on file extension, a config file. + * "JSON" files may have comments. + * + * @private + * @param {string} filepath - Config file path to load + * @returns {Object} Parsed config object + */ +exports.loadConfig = filepath => { + let config = {}; + debug('loadConfig: trying to parse config at %s', filepath); + + const ext = path.extname(filepath); + try { + if (ext === '.yml' || ext === '.yaml') { + config = parsers.yaml(filepath); + } else if (ext === '.js' || ext === '.cjs') { + config = parsers.js(filepath); + } else { + config = parsers.json(filepath); + } + } catch (err) { + throw createUnparsableFileError( + `Unable to read/parse ${filepath}: ${err}`, + filepath + ); + } + return config; +}; + +/** + * Find ("find up") config file starting at `cwd` + * + * @param {string} [cwd] - Current working directory + * @returns {string|null} Filepath to config, if found + */ +exports.findConfig = (cwd = utils.cwd()) => { + const filepath = findUp.sync(exports.CONFIG_FILES, {cwd}); + if (filepath) { + debug('findConfig: found config file %s', filepath); + } + return filepath; +}; diff --git a/node_modules/mocha/lib/cli/index.js b/node_modules/mocha/lib/cli/index.js new file mode 100644 index 00000000..f20314ea --- /dev/null +++ b/node_modules/mocha/lib/cli/index.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = require('./cli'); diff --git a/node_modules/mocha/lib/cli/init.js b/node_modules/mocha/lib/cli/init.js new file mode 100644 index 00000000..3847aff8 --- /dev/null +++ b/node_modules/mocha/lib/cli/init.js @@ -0,0 +1,36 @@ +'use strict'; + +/** + * Command module for "init" command + * + * @private + * @module + */ + +const fs = require('fs'); +const path = require('path'); + +exports.command = 'init '; + +exports.description = 'create a client-side Mocha setup at '; + +exports.builder = yargs => + yargs.positional('path', { + type: 'string', + normalize: true + }); + +exports.handler = argv => { + const destdir = argv.path; + const srcdir = path.join(__dirname, '..', '..'); + fs.mkdirSync(destdir, {recursive: true}); + const css = fs.readFileSync(path.join(srcdir, 'mocha.css')); + const js = fs.readFileSync(path.join(srcdir, 'mocha.js')); + const tmpl = fs.readFileSync( + path.join(srcdir, 'lib', 'browser', 'template.html') + ); + fs.writeFileSync(path.join(destdir, 'mocha.css'), css); + fs.writeFileSync(path.join(destdir, 'mocha.js'), js); + fs.writeFileSync(path.join(destdir, 'tests.spec.js'), ''); + fs.writeFileSync(path.join(destdir, 'index.html'), tmpl); +}; diff --git a/node_modules/mocha/lib/cli/lookup-files.js b/node_modules/mocha/lib/cli/lookup-files.js new file mode 100644 index 00000000..00b98a7a --- /dev/null +++ b/node_modules/mocha/lib/cli/lookup-files.js @@ -0,0 +1,145 @@ +'use strict'; +/** + * Contains `lookupFiles`, which takes some globs/dirs/options and returns a list of files. + * @module + * @private + */ + +var fs = require('fs'); +var path = require('path'); +var glob = require('glob'); +var errors = require('../errors'); +var createNoFilesMatchPatternError = errors.createNoFilesMatchPatternError; +var createMissingArgumentError = errors.createMissingArgumentError; +const debug = require('debug')('mocha:cli:lookup-files'); + +/** + * Determines if pathname would be a "hidden" file (or directory) on UN*X. + * + * @description + * On UN*X, pathnames beginning with a full stop (aka dot) are hidden during + * typical usage. Dotfiles, plain-text configuration files, are prime examples. + * + * @see {@link http://xahlee.info/UnixResource_dir/writ/unix_origin_of_dot_filename.html|Origin of Dot File Names} + * + * @private + * @param {string} pathname - Pathname to check for match. + * @return {boolean} whether pathname would be considered a hidden file. + * @example + * isHiddenOnUnix('.profile'); // => true + */ +const isHiddenOnUnix = pathname => path.basename(pathname).startsWith('.'); + +/** + * Determines if pathname has a matching file extension. + * + * Supports multi-part extensions. + * + * @private + * @param {string} pathname - Pathname to check for match. + * @param {string[]} exts - List of file extensions, w/-or-w/o leading period + * @return {boolean} `true` if file extension matches. + * @example + * hasMatchingExtname('foo.html', ['js', 'css']); // false + * hasMatchingExtname('foo.js', ['.js']); // true + * hasMatchingExtname('foo.js', ['js']); // ture + */ +const hasMatchingExtname = (pathname, exts = []) => + exts + .map(ext => (ext.startsWith('.') ? ext : `.${ext}`)) + .some(ext => pathname.endsWith(ext)); + +/** + * Lookup file names at the given `path`. + * + * @description + * Filenames are returned in _traversal_ order by the OS/filesystem. + * **Make no assumption that the names will be sorted in any fashion.** + * + * @public + * @alias module:lib/cli.lookupFiles + * @param {string} filepath - Base path to start searching from. + * @param {string[]} [extensions=[]] - File extensions to look for. + * @param {boolean} [recursive=false] - Whether to recurse into subdirectories. + * @return {string[]} An array of paths. + * @throws {Error} if no files match pattern. + * @throws {TypeError} if `filepath` is directory and `extensions` not provided. + */ +module.exports = function lookupFiles( + filepath, + extensions = [], + recursive = false +) { + const files = []; + let stat; + + if (!fs.existsSync(filepath)) { + let pattern; + if (glob.hasMagic(filepath)) { + // Handle glob as is without extensions + pattern = filepath; + } else { + // glob pattern e.g. 'filepath+(.js|.ts)' + const strExtensions = extensions + .map(ext => (ext.startsWith('.') ? ext : `.${ext}`)) + .join('|'); + pattern = `${filepath}+(${strExtensions})`; + debug('looking for files using glob pattern: %s', pattern); + } + files.push(...glob.sync(pattern, {nodir: true})); + if (!files.length) { + throw createNoFilesMatchPatternError( + `Cannot find any files matching pattern "${filepath}"`, + filepath + ); + } + return files; + } + + // Handle file + try { + stat = fs.statSync(filepath); + if (stat.isFile()) { + return filepath; + } + } catch (err) { + // ignore error + return; + } + + // Handle directory + fs.readdirSync(filepath).forEach(dirent => { + const pathname = path.join(filepath, dirent); + let stat; + + try { + stat = fs.statSync(pathname); + if (stat.isDirectory()) { + if (recursive) { + files.push(...lookupFiles(pathname, extensions, recursive)); + } + return; + } + } catch (ignored) { + return; + } + if (!extensions.length) { + throw createMissingArgumentError( + `Argument '${extensions}' required when argument '${filepath}' is a directory`, + 'extensions', + 'array' + ); + } + + if ( + !stat.isFile() || + !hasMatchingExtname(pathname, extensions) || + isHiddenOnUnix(pathname) + ) { + return; + } + files.push(pathname); + }); + + return files; +}; diff --git a/node_modules/mocha/lib/cli/node-flags.js b/node_modules/mocha/lib/cli/node-flags.js new file mode 100644 index 00000000..25ca2669 --- /dev/null +++ b/node_modules/mocha/lib/cli/node-flags.js @@ -0,0 +1,85 @@ +'use strict'; + +/** + * Some settings and code related to Mocha's handling of Node.js/V8 flags. + * @private + * @module + */ + +const nodeFlags = process.allowedNodeEnvironmentFlags; +const {isMochaFlag} = require('./run-option-metadata'); +const unparse = require('yargs-unparser'); + +/** + * These flags are considered "debug" flags. + * @see {@link impliesNoTimeouts} + * @private + */ +const debugFlags = new Set(['inspect', 'inspect-brk']); + +/** + * Mocha has historical support for various `node` and V8 flags which might not + * appear in `process.allowedNodeEnvironmentFlags`. + * These include: + * - `--preserve-symlinks` + * - `--harmony-*` + * - `--gc-global` + * - `--trace-*` + * - `--es-staging` + * - `--use-strict` + * - `--v8-*` (but *not* `--v8-options`) + * @summary Whether or not to pass a flag along to the `node` executable. + * @param {string} flag - Flag to test + * @param {boolean} [bareword=true] - If `false`, we expect `flag` to have one or two leading dashes. + * @returns {boolean} If the flag is considered a "Node" flag. + * @private + */ +exports.isNodeFlag = (flag, bareword = true) => { + if (!bareword) { + // check if the flag begins with dashes; if not, not a node flag. + if (!/^--?/.test(flag)) { + return false; + } + // strip the leading dashes to match against subsequent checks + flag = flag.replace(/^--?/, ''); + } + return ( + // check actual node flags from `process.allowedNodeEnvironmentFlags`, + // then historical support for various V8 and non-`NODE_OPTIONS` flags + // and also any V8 flags with `--v8-` prefix + (!isMochaFlag(flag) && nodeFlags && nodeFlags.has(flag)) || + debugFlags.has(flag) || + /(?:preserve-symlinks(?:-main)?|harmony(?:[_-]|$)|(?:trace[_-].+$)|gc[_-]global$|es[_-]staging$|use[_-]strict$|v8[_-](?!options).+?$)/.test( + flag + ) + ); +}; + +/** + * Returns `true` if the flag is a "debug-like" flag. These require timeouts + * to be suppressed, or pausing the debugger on breakpoints will cause test failures. + * @param {string} flag - Flag to test + * @returns {boolean} + * @private + */ +exports.impliesNoTimeouts = flag => debugFlags.has(flag); + +/** + * All non-strictly-boolean arguments to node--those with values--must specify those values using `=`, e.g., `--inspect=0.0.0.0`. + * Unparse these arguments using `yargs-unparser` (which would result in `--inspect 0.0.0.0`), then supply `=` where we have values. + * There's probably an easier or more robust way to do this; fixes welcome + * @param {Object} opts - Arguments object + * @returns {string[]} Unparsed arguments using `=` to specify values + * @private + */ +exports.unparseNodeFlags = opts => { + var args = unparse(opts); + return args.length + ? args + .join(' ') + .split(/\b/) + .map(arg => (arg === ' ' ? '=' : arg)) + .join('') + .split(' ') + : []; +}; diff --git a/node_modules/mocha/lib/cli/one-and-dones.js b/node_modules/mocha/lib/cli/one-and-dones.js new file mode 100644 index 00000000..21bad6fd --- /dev/null +++ b/node_modules/mocha/lib/cli/one-and-dones.js @@ -0,0 +1,69 @@ +'use strict'; + +/** + * Contains "command" code for "one-and-dones"--options passed + * to Mocha which cause it to just dump some info and exit. + * See {@link module:lib/cli/one-and-dones.ONE_AND_DONE_ARGS ONE_AND_DONE_ARGS} for more info. + * @module + * @private + */ + +const Mocha = require('../mocha'); + +/** + * Dumps a sorted list of the enumerable, lower-case keys of some object + * to `STDOUT`. + * @param {Object} obj - Object, ostensibly having some enumerable keys + * @ignore + * @private + */ +const showKeys = obj => { + console.log(); + const keys = Object.keys(obj); + const maxKeyLength = keys.reduce((max, key) => Math.max(max, key.length), 0); + keys + .filter( + key => /^[a-z]/.test(key) && !obj[key].browserOnly && !obj[key].abstract + ) + .sort() + .forEach(key => { + const description = obj[key].description; + console.log( + ` ${key.padEnd(maxKeyLength + 1)}${ + description ? `- ${description}` : '' + }` + ); + }); + console.log(); +}; + +/** + * Handlers for one-and-done options + * @namespace + * @private + */ +exports.ONE_AND_DONES = { + /** + * Dump list of built-in interfaces + * @private + */ + 'list-interfaces': () => { + showKeys(Mocha.interfaces); + }, + /** + * Dump list of built-in reporters + * @private + */ + 'list-reporters': () => { + showKeys(Mocha.reporters); + } +}; + +/** + * A Set of all one-and-done options + * @type Set + * @private + */ +exports.ONE_AND_DONE_ARGS = new Set( + ['help', 'h', 'version', 'V'].concat(Object.keys(exports.ONE_AND_DONES)) +); diff --git a/node_modules/mocha/lib/cli/options.js b/node_modules/mocha/lib/cli/options.js new file mode 100644 index 00000000..8fa9470e --- /dev/null +++ b/node_modules/mocha/lib/cli/options.js @@ -0,0 +1,261 @@ +'use strict'; + +/** + * Main entry point for handling filesystem-based configuration, + * whether that's a config file or `package.json` or whatever. + * @module lib/cli/options + * @private + */ + +const fs = require('fs'); +const ansi = require('ansi-colors'); +const yargsParser = require('yargs-parser'); +const {types, aliases} = require('./run-option-metadata'); +const {ONE_AND_DONE_ARGS} = require('./one-and-dones'); +const mocharc = require('../mocharc.json'); +const {list} = require('./run-helpers'); +const {loadConfig, findConfig} = require('./config'); +const findUp = require('find-up'); +const debug = require('debug')('mocha:cli:options'); +const {isNodeFlag} = require('./node-flags'); +const {createUnparsableFileError} = require('../errors'); + +/** + * The `yargs-parser` namespace + * @external yargsParser + * @see {@link https://npm.im/yargs-parser} + */ + +/** + * An object returned by a configured `yargs-parser` representing arguments + * @memberof external:yargsParser + * @interface Arguments + */ + +/** + * Base yargs parser configuration + * @private + */ +const YARGS_PARSER_CONFIG = { + 'combine-arrays': true, + 'short-option-groups': false, + 'dot-notation': false, + 'strip-aliased': true +}; + +/** + * This is the config pulled from the `yargs` property of Mocha's + * `package.json`, but it also disables camel case expansion as to + * avoid outputting non-canonical keynames, as we need to do some + * lookups. + * @private + * @ignore + */ +const configuration = Object.assign({}, YARGS_PARSER_CONFIG, { + 'camel-case-expansion': false +}); + +/** + * This is a really fancy way to: + * - `array`-type options: ensure unique values and evtl. split comma-delimited lists + * - `boolean`/`number`/`string`- options: use last element when given multiple times + * This is passed as the `coerce` option to `yargs-parser` + * @private + * @ignore + */ +const globOptions = ['spec', 'ignore']; +const coerceOpts = Object.assign( + types.array.reduce( + (acc, arg) => + Object.assign(acc, { + [arg]: v => Array.from(new Set(globOptions.includes(arg) ? v : list(v))) + }), + {} + ), + types.boolean + .concat(types.string, types.number) + .reduce( + (acc, arg) => + Object.assign(acc, {[arg]: v => (Array.isArray(v) ? v.pop() : v)}), + {} + ) +); + +/** + * We do not have a case when multiple arguments are ever allowed after a flag + * (e.g., `--foo bar baz quux`), so we fix the number of arguments to 1 across + * the board of non-boolean options. + * This is passed as the `narg` option to `yargs-parser` + * @private + * @ignore + */ +const nargOpts = types.array + .concat(types.string, types.number) + .reduce((acc, arg) => Object.assign(acc, {[arg]: 1}), {}); + +/** + * Wrapper around `yargs-parser` which applies our settings + * @param {string|string[]} args - Arguments to parse + * @param {Object} defaultValues - Default values of mocharc.json + * @param {...Object} configObjects - `configObjects` for yargs-parser + * @private + * @ignore + */ +const parse = (args = [], defaultValues = {}, ...configObjects) => { + // save node-specific args for special handling. + // 1. when these args have a "=" they should be considered to have values + // 2. if they don't, they just boolean flags + // 3. to avoid explicitly defining the set of them, we tell yargs-parser they + // are ALL boolean flags. + // 4. we can then reapply the values after yargs-parser is done. + const nodeArgs = (Array.isArray(args) ? args : args.split(' ')).reduce( + (acc, arg) => { + const pair = arg.split('='); + let flag = pair[0]; + if (isNodeFlag(flag, false)) { + flag = flag.replace(/^--?/, ''); + return arg.includes('=') + ? acc.concat([[flag, pair[1]]]) + : acc.concat([[flag, true]]); + } + return acc; + }, + [] + ); + + const result = yargsParser.detailed(args, { + configuration, + configObjects, + default: defaultValues, + coerce: coerceOpts, + narg: nargOpts, + alias: aliases, + string: types.string, + array: types.array, + number: types.number, + boolean: types.boolean.concat(nodeArgs.map(pair => pair[0])) + }); + if (result.error) { + console.error(ansi.red(`Error: ${result.error.message}`)); + process.exit(1); + } + + // reapply "=" arg values from above + nodeArgs.forEach(([key, value]) => { + result.argv[key] = value; + }); + + return result.argv; +}; + +/** + * Given path to config file in `args.config`, attempt to load & parse config file. + * @param {Object} [args] - Arguments object + * @param {string|boolean} [args.config] - Path to config file or `false` to skip + * @public + * @alias module:lib/cli.loadRc + * @returns {external:yargsParser.Arguments|void} Parsed config, or nothing if `args.config` is `false` + */ +const loadRc = (args = {}) => { + if (args.config !== false) { + const config = args.config || findConfig(); + return config ? loadConfig(config) : {}; + } +}; + +module.exports.loadRc = loadRc; + +/** + * Given path to `package.json` in `args.package`, attempt to load config from `mocha` prop. + * @param {Object} [args] - Arguments object + * @param {string|boolean} [args.config] - Path to `package.json` or `false` to skip + * @public + * @alias module:lib/cli.loadPkgRc + * @returns {external:yargsParser.Arguments|void} Parsed config, or nothing if `args.package` is `false` + */ +const loadPkgRc = (args = {}) => { + let result; + if (args.package === false) { + return result; + } + result = {}; + const filepath = args.package || findUp.sync(mocharc.package); + if (filepath) { + try { + const pkg = JSON.parse(fs.readFileSync(filepath, 'utf8')); + if (pkg.mocha) { + debug('`mocha` prop of package.json parsed: %O', pkg.mocha); + result = pkg.mocha; + } else { + debug('no config found in %s', filepath); + } + } catch (err) { + if (args.package) { + throw createUnparsableFileError( + `Unable to read/parse ${filepath}: ${err}`, + filepath + ); + } + debug('failed to read default package.json at %s; ignoring', filepath); + } + } + return result; +}; + +module.exports.loadPkgRc = loadPkgRc; + +/** + * Priority list: + * + * 1. Command-line args + * 2. RC file (`.mocharc.c?js`, `.mocharc.ya?ml`, `mocharc.json`) + * 3. `mocha` prop of `package.json` + * 4. default configuration (`lib/mocharc.json`) + * + * If a {@link module:lib/cli/one-and-dones.ONE_AND_DONE_ARGS "one-and-done" option} is present in the `argv` array, no external config files will be read. + * @summary Parses options read from `.mocharc.*` and `package.json`. + * @param {string|string[]} [argv] - Arguments to parse + * @public + * @alias module:lib/cli.loadOptions + * @returns {external:yargsParser.Arguments} Parsed args from everything + */ +const loadOptions = (argv = []) => { + let args = parse(argv); + // short-circuit: look for a flag that would abort loading of options + if ( + Array.from(ONE_AND_DONE_ARGS).reduce( + (acc, arg) => acc || arg in args, + false + ) + ) { + return args; + } + + const rcConfig = loadRc(args); + const pkgConfig = loadPkgRc(args); + + if (rcConfig) { + args.config = false; + args._ = args._.concat(rcConfig._ || []); + } + if (pkgConfig) { + args.package = false; + args._ = args._.concat(pkgConfig._ || []); + } + + args = parse(args._, mocharc, args, rcConfig || {}, pkgConfig || {}); + + // recombine positional arguments and "spec" + if (args.spec) { + args._ = args._.concat(args.spec); + delete args.spec; + } + + // make unique + args._ = Array.from(new Set(args._)); + + return args; +}; + +module.exports.loadOptions = loadOptions; +module.exports.YARGS_PARSER_CONFIG = YARGS_PARSER_CONFIG; diff --git a/node_modules/mocha/lib/cli/run-helpers.js b/node_modules/mocha/lib/cli/run-helpers.js new file mode 100644 index 00000000..078ca7e4 --- /dev/null +++ b/node_modules/mocha/lib/cli/run-helpers.js @@ -0,0 +1,243 @@ +'use strict'; + +/** + * Helper scripts for the `run` command + * @see module:lib/cli/run + * @module + * @private + */ + +const fs = require('fs'); +const path = require('path'); +const debug = require('debug')('mocha:cli:run:helpers'); +const {watchRun, watchParallelRun} = require('./watch-run'); +const collectFiles = require('./collect-files'); +const {format} = require('util'); +const {createInvalidLegacyPluginError} = require('../errors'); +const {requireOrImport} = require('../nodejs/esm-utils'); +const PluginLoader = require('../plugin-loader'); + +/** + * Exits Mocha when tests + code under test has finished execution (default) + * @param {number} code - Exit code; typically # of failures + * @ignore + * @private + */ +const exitMochaLater = code => { + process.on('exit', () => { + process.exitCode = Math.min(code, 255); + }); +}; + +/** + * Exits Mocha when Mocha itself has finished execution, regardless of + * what the tests or code under test is doing. + * @param {number} code - Exit code; typically # of failures + * @ignore + * @private + */ +const exitMocha = code => { + const clampedCode = Math.min(code, 255); + let draining = 0; + + // Eagerly set the process's exit code in case stream.write doesn't + // execute its callback before the process terminates. + process.exitCode = clampedCode; + + // flush output for Node.js Windows pipe bug + // https://github.com/joyent/node/issues/6247 is just one bug example + // https://github.com/visionmedia/mocha/issues/333 has a good discussion + const done = () => { + if (!draining--) { + process.exit(clampedCode); + } + }; + + const streams = [process.stdout, process.stderr]; + + streams.forEach(stream => { + // submit empty write request and wait for completion + draining += 1; + stream.write('', done); + }); + + done(); +}; + +/** + * Coerce a comma-delimited string (or array thereof) into a flattened array of + * strings + * @param {string|string[]} str - Value to coerce + * @returns {string[]} Array of strings + * @private + */ +exports.list = str => + Array.isArray(str) ? exports.list(str.join(',')) : str.split(/ *, */); + +/** + * `require()` the modules as required by `--require `. + * + * Returns array of `mochaHooks` exports, if any. + * @param {string[]} requires - Modules to require + * @returns {Promise} Plugin implementations + * @private + */ +exports.handleRequires = async (requires = [], {ignoredPlugins = []} = {}) => { + const pluginLoader = PluginLoader.create({ignore: ignoredPlugins}); + for await (const mod of requires) { + let modpath = mod; + // this is relative to cwd + if (fs.existsSync(mod) || fs.existsSync(`${mod}.js`)) { + modpath = path.resolve(mod); + debug('resolved required file %s to %s', mod, modpath); + } + const requiredModule = await requireOrImport(modpath); + if (requiredModule && typeof requiredModule === 'object') { + if (pluginLoader.load(requiredModule)) { + debug('found one or more plugin implementations in %s', modpath); + } + } + debug('loaded required module "%s"', mod); + } + const plugins = await pluginLoader.finalize(); + if (Object.keys(plugins).length) { + debug('finalized plugin implementations: %O', plugins); + } + return plugins; +}; + +/** + * Collect and load test files, then run mocha instance. + * @param {Mocha} mocha - Mocha instance + * @param {Options} [opts] - Command line options + * @param {boolean} [opts.exit] - Whether or not to force-exit after tests are complete + * @param {Object} fileCollectParams - Parameters that control test + * file collection. See `lib/cli/collect-files.js`. + * @returns {Promise} + * @private + */ +const singleRun = async (mocha, {exit}, fileCollectParams) => { + const files = collectFiles(fileCollectParams); + debug('single run with %d file(s)', files.length); + mocha.files = files; + + // handles ESM modules + await mocha.loadFilesAsync(); + return mocha.run(exit ? exitMocha : exitMochaLater); +}; + +/** + * Collect files and run tests (using `BufferedRunner`). + * + * This is `async` for consistency. + * + * @param {Mocha} mocha - Mocha instance + * @param {Options} options - Command line options + * @param {Object} fileCollectParams - Parameters that control test + * file collection. See `lib/cli/collect-files.js`. + * @returns {Promise} + * @ignore + * @private + */ +const parallelRun = async (mocha, options, fileCollectParams) => { + const files = collectFiles(fileCollectParams); + debug('executing %d test file(s) in parallel mode', files.length); + mocha.files = files; + + // note that we DO NOT load any files here; this is handled by the worker + return mocha.run(options.exit ? exitMocha : exitMochaLater); +}; + +/** + * Actually run tests. Delegates to one of four different functions: + * - `singleRun`: run tests in serial & exit + * - `watchRun`: run tests in serial, rerunning as files change + * - `parallelRun`: run tests in parallel & exit + * - `watchParallelRun`: run tests in parallel, rerunning as files change + * @param {Mocha} mocha - Mocha instance + * @param {Options} opts - Command line options + * @private + * @returns {Promise} + */ +exports.runMocha = async (mocha, options) => { + const { + watch = false, + extension = [], + ignore = [], + file = [], + parallel = false, + recursive = false, + sort = false, + spec = [] + } = options; + + const fileCollectParams = { + ignore, + extension, + file, + recursive, + sort, + spec + }; + + let run; + if (watch) { + run = parallel ? watchParallelRun : watchRun; + } else { + run = parallel ? parallelRun : singleRun; + } + + return run(mocha, options, fileCollectParams); +}; + +/** + * Used for `--reporter` and `--ui`. Ensures there's only one, and asserts that + * it actually exists. This must be run _after_ requires are processed (see + * {@link handleRequires}), as it'll prevent interfaces from loading otherwise. + * @param {Object} opts - Options object + * @param {"reporter"|"ui"} pluginType - Type of plugin. + * @param {Object} [map] - Used as a cache of sorts; + * `Mocha.reporters` where each key corresponds to a reporter name, + * `Mocha.interfaces` where each key corresponds to an interface name. + * @private + */ +exports.validateLegacyPlugin = (opts, pluginType, map = {}) => { + /** + * This should be a unique identifier; either a string (present in `map`), + * or a resolvable (via `require.resolve`) module ID/path. + * @type {string} + */ + const pluginId = opts[pluginType]; + + if (Array.isArray(pluginId)) { + throw createInvalidLegacyPluginError( + `"--${pluginType}" can only be specified once`, + pluginType + ); + } + + const createUnknownError = err => + createInvalidLegacyPluginError( + format('Could not load %s "%s":\n\n %O', pluginType, pluginId, err), + pluginType, + pluginId + ); + + // if this exists, then it's already loaded, so nothing more to do. + if (!map[pluginId]) { + let foundId; + try { + foundId = require.resolve(pluginId); + map[pluginId] = require(foundId); + } catch (err) { + if (foundId) throw createUnknownError(err); + + // Try to load reporters from a cwd-relative path + try { + map[pluginId] = require(path.resolve(pluginId)); + } catch (e) { + throw createUnknownError(e); + } + } + } +}; diff --git a/node_modules/mocha/lib/cli/run-option-metadata.js b/node_modules/mocha/lib/cli/run-option-metadata.js new file mode 100644 index 00000000..492608fb --- /dev/null +++ b/node_modules/mocha/lib/cli/run-option-metadata.js @@ -0,0 +1,115 @@ +'use strict'; + +/** + * Metadata about various options of the `run` command + * @see module:lib/cli/run + * @module + * @private + */ + +/** + * Dictionary of yargs option types to list of options having said type + * @type {{string:string[]}} + * @private + */ +const TYPES = (exports.types = { + array: [ + 'extension', + 'file', + 'global', + 'ignore', + 'node-option', + 'reporter-option', + 'require', + 'spec', + 'watch-files', + 'watch-ignore' + ], + boolean: [ + 'allow-uncaught', + 'async-only', + 'bail', + 'check-leaks', + 'color', + 'delay', + 'diff', + 'dry-run', + 'exit', + 'fail-zero', + 'forbid-only', + 'forbid-pending', + 'full-trace', + 'inline-diffs', + 'invert', + 'list-interfaces', + 'list-reporters', + 'no-colors', + 'parallel', + 'recursive', + 'sort', + 'watch' + ], + number: ['retries', 'jobs'], + string: [ + 'config', + 'fgrep', + 'grep', + 'package', + 'reporter', + 'ui', + 'slow', + 'timeout' + ] +}); + +/** + * Option aliases keyed by canonical option name. + * Arrays used to reduce + * @type {{string:string[]}} + * @private + */ +exports.aliases = { + 'async-only': ['A'], + bail: ['b'], + color: ['c', 'colors'], + fgrep: ['f'], + global: ['globals'], + grep: ['g'], + ignore: ['exclude'], + invert: ['i'], + jobs: ['j'], + 'no-colors': ['C'], + 'node-option': ['n'], + parallel: ['p'], + reporter: ['R'], + 'reporter-option': ['reporter-options', 'O'], + require: ['r'], + slow: ['s'], + sort: ['S'], + timeout: ['t', 'timeouts'], + ui: ['u'], + watch: ['w'] +}; + +const ALL_MOCHA_FLAGS = Object.keys(TYPES).reduce((acc, key) => { + // gets all flags from each of the fields in `types`, adds those, + // then adds aliases of each flag (if any) + TYPES[key].forEach(flag => { + acc.add(flag); + const aliases = exports.aliases[flag] || []; + aliases.forEach(alias => { + acc.add(alias); + }); + }); + return acc; +}, new Set()); + +/** + * Returns `true` if the provided `flag` is known to Mocha. + * @param {string} flag - Flag to check + * @returns {boolean} If `true`, this is a Mocha flag + * @private + */ +exports.isMochaFlag = flag => { + return ALL_MOCHA_FLAGS.has(flag.replace(/^--?/, '')); +}; diff --git a/node_modules/mocha/lib/cli/run.js b/node_modules/mocha/lib/cli/run.js new file mode 100644 index 00000000..fbbe510e --- /dev/null +++ b/node_modules/mocha/lib/cli/run.js @@ -0,0 +1,375 @@ +'use strict'; + +/** + * Definition for Mocha's default ("run tests") command + * + * @module + * @private + */ + +const symbols = require('log-symbols'); +const ansi = require('ansi-colors'); +const Mocha = require('../mocha'); +const { + createUnsupportedError, + createInvalidArgumentValueError, + createMissingArgumentError +} = require('../errors'); + +const { + list, + handleRequires, + validateLegacyPlugin, + runMocha +} = require('./run-helpers'); +const {ONE_AND_DONES, ONE_AND_DONE_ARGS} = require('./one-and-dones'); +const debug = require('debug')('mocha:cli:run'); +const defaults = require('../mocharc'); +const {types, aliases} = require('./run-option-metadata'); + +/** + * Logical option groups + * @constant + */ +const GROUPS = { + FILES: 'File Handling', + FILTERS: 'Test Filters', + NODEJS: 'Node.js & V8', + OUTPUT: 'Reporting & Output', + RULES: 'Rules & Behavior', + CONFIG: 'Configuration' +}; + +exports.command = ['$0 [spec..]', 'inspect']; + +exports.describe = 'Run tests with Mocha'; + +exports.builder = yargs => + yargs + .options({ + 'allow-uncaught': { + description: 'Allow uncaught errors to propagate', + group: GROUPS.RULES + }, + 'async-only': { + description: + 'Require all tests to use a callback (async) or return a Promise', + group: GROUPS.RULES + }, + bail: { + description: 'Abort ("bail") after first test failure', + group: GROUPS.RULES + }, + 'check-leaks': { + description: 'Check for global variable leaks', + group: GROUPS.RULES + }, + color: { + description: 'Force-enable color output', + group: GROUPS.OUTPUT + }, + config: { + config: true, + defaultDescription: '(nearest rc file)', + description: 'Path to config file', + group: GROUPS.CONFIG + }, + delay: { + description: 'Delay initial execution of root suite', + group: GROUPS.RULES + }, + diff: { + default: true, + description: 'Show diff on failure', + group: GROUPS.OUTPUT + }, + 'dry-run': { + description: 'Report tests without executing them', + group: GROUPS.RULES + }, + exit: { + description: 'Force Mocha to quit after tests complete', + group: GROUPS.RULES + }, + extension: { + default: defaults.extension, + description: 'File extension(s) to load', + group: GROUPS.FILES, + requiresArg: true, + coerce: list + }, + 'fail-zero': { + description: 'Fail test run if no test(s) encountered', + group: GROUPS.RULES + }, + fgrep: { + conflicts: 'grep', + description: 'Only run tests containing this string', + group: GROUPS.FILTERS, + requiresArg: true + }, + file: { + defaultDescription: '(none)', + description: + 'Specify file(s) to be loaded prior to root suite execution', + group: GROUPS.FILES, + normalize: true, + requiresArg: true + }, + 'forbid-only': { + description: 'Fail if exclusive test(s) encountered', + group: GROUPS.RULES + }, + 'forbid-pending': { + description: 'Fail if pending test(s) encountered', + group: GROUPS.RULES + }, + 'full-trace': { + description: 'Display full stack traces', + group: GROUPS.OUTPUT + }, + global: { + coerce: list, + description: 'List of allowed global variables', + group: GROUPS.RULES, + requiresArg: true + }, + grep: { + coerce: value => (!value ? null : value), + conflicts: 'fgrep', + description: 'Only run tests matching this string or regexp', + group: GROUPS.FILTERS, + requiresArg: true + }, + ignore: { + defaultDescription: '(none)', + description: 'Ignore file(s) or glob pattern(s)', + group: GROUPS.FILES, + requiresArg: true + }, + 'inline-diffs': { + description: + 'Display actual/expected differences inline within each string', + group: GROUPS.OUTPUT + }, + invert: { + description: 'Inverts --grep and --fgrep matches', + group: GROUPS.FILTERS + }, + jobs: { + description: + 'Number of concurrent jobs for --parallel; use 1 to run in serial', + defaultDescription: '(number of CPU cores - 1)', + requiresArg: true, + group: GROUPS.RULES + }, + 'list-interfaces': { + conflicts: Array.from(ONE_AND_DONE_ARGS), + description: 'List built-in user interfaces & exit' + }, + 'list-reporters': { + conflicts: Array.from(ONE_AND_DONE_ARGS), + description: 'List built-in reporters & exit' + }, + 'no-colors': { + description: 'Force-disable color output', + group: GROUPS.OUTPUT, + hidden: true + }, + 'node-option': { + description: 'Node or V8 option (no leading "--")', + group: GROUPS.CONFIG + }, + package: { + description: 'Path to package.json for config', + group: GROUPS.CONFIG, + normalize: true, + requiresArg: true + }, + parallel: { + description: 'Run tests in parallel', + group: GROUPS.RULES + }, + recursive: { + description: 'Look for tests in subdirectories', + group: GROUPS.FILES + }, + reporter: { + default: defaults.reporter, + description: 'Specify reporter to use', + group: GROUPS.OUTPUT, + requiresArg: true + }, + 'reporter-option': { + coerce: opts => + list(opts).reduce((acc, opt) => { + const pair = opt.split('='); + + if (pair.length > 2 || !pair.length) { + throw createInvalidArgumentValueError( + `invalid reporter option '${opt}'`, + '--reporter-option', + opt, + 'expected "key=value" format' + ); + } + + acc[pair[0]] = pair.length === 2 ? pair[1] : true; + return acc; + }, {}), + description: 'Reporter-specific options ()', + group: GROUPS.OUTPUT, + requiresArg: true + }, + require: { + defaultDescription: '(none)', + description: 'Require module', + group: GROUPS.FILES, + requiresArg: true + }, + retries: { + description: 'Retry failed tests this many times', + group: GROUPS.RULES + }, + slow: { + default: defaults.slow, + description: 'Specify "slow" test threshold (in milliseconds)', + group: GROUPS.RULES + }, + sort: { + description: 'Sort test files', + group: GROUPS.FILES + }, + timeout: { + default: defaults.timeout, + description: 'Specify test timeout threshold (in milliseconds)', + group: GROUPS.RULES + }, + ui: { + default: defaults.ui, + description: 'Specify user interface', + group: GROUPS.RULES, + requiresArg: true + }, + watch: { + description: 'Watch files in the current working directory for changes', + group: GROUPS.FILES + }, + 'watch-files': { + description: 'List of paths or globs to watch', + group: GROUPS.FILES, + requiresArg: true, + coerce: list + }, + 'watch-ignore': { + description: 'List of paths or globs to exclude from watching', + group: GROUPS.FILES, + requiresArg: true, + coerce: list, + default: defaults['watch-ignore'] + } + }) + .positional('spec', { + default: ['test'], + description: 'One or more files, directories, or globs to test', + type: 'array' + }) + .check(argv => { + // "one-and-dones"; let yargs handle help and version + Object.keys(ONE_AND_DONES).forEach(opt => { + if (argv[opt]) { + ONE_AND_DONES[opt].call(null, yargs); + process.exit(); + } + }); + + // yargs.implies() isn't flexible enough to handle this + if (argv.invert && !('fgrep' in argv || 'grep' in argv)) { + throw createMissingArgumentError( + '"--invert" requires one of "--fgrep " or "--grep "', + '--fgrep|--grep', + 'string|regexp' + ); + } + + if (argv.parallel) { + // yargs.conflicts() can't deal with `--file foo.js --no-parallel`, either + if (argv.file) { + throw createUnsupportedError( + '--parallel runs test files in a non-deterministic order, and is mutually exclusive with --file' + ); + } + + // or this + if (argv.sort) { + throw createUnsupportedError( + '--parallel runs test files in a non-deterministic order, and is mutually exclusive with --sort' + ); + } + + if (argv.reporter === 'progress') { + throw createUnsupportedError( + '--reporter=progress is mutually exclusive with --parallel' + ); + } + + if (argv.reporter === 'markdown') { + throw createUnsupportedError( + '--reporter=markdown is mutually exclusive with --parallel' + ); + } + + if (argv.reporter === 'json-stream') { + throw createUnsupportedError( + '--reporter=json-stream is mutually exclusive with --parallel' + ); + } + } + + if (argv.compilers) { + throw createUnsupportedError( + `--compilers is DEPRECATED and no longer supported. + See https://github.com/mochajs/mocha/wiki/compilers-deprecation for migration information.` + ); + } + + if (argv.opts) { + throw createUnsupportedError( + `--opts: configuring Mocha via 'mocha.opts' is DEPRECATED and no longer supported. + Please use a configuration file instead.` + ); + } + + return true; + }) + .middleware(async (argv, yargs) => { + // currently a failing middleware does not work nicely with yargs' `fail()`. + try { + // load requires first, because it can impact "plugin" validation + const plugins = await handleRequires(argv.require); + validateLegacyPlugin(argv, 'reporter', Mocha.reporters); + validateLegacyPlugin(argv, 'ui', Mocha.interfaces); + Object.assign(argv, plugins); + } catch (err) { + // this could be a bad --require, bad reporter, ui, etc. + console.error(`\n${symbols.error} ${ansi.red('ERROR:')}`, err); + yargs.exit(1); + } + }) + .array(types.array) + .boolean(types.boolean) + .string(types.string) + .number(types.number) + .alias(aliases); + +exports.handler = async function (argv) { + debug('post-yargs config', argv); + const mocha = new Mocha(argv); + + try { + await runMocha(mocha, argv); + } catch (err) { + console.error('\n' + (err.stack || `Error: ${err.message || err}`)); + process.exit(1); + } +}; diff --git a/node_modules/mocha/lib/cli/watch-run.js b/node_modules/mocha/lib/cli/watch-run.js new file mode 100644 index 00000000..a77ed7a9 --- /dev/null +++ b/node_modules/mocha/lib/cli/watch-run.js @@ -0,0 +1,377 @@ +'use strict'; + +const logSymbols = require('log-symbols'); +const debug = require('debug')('mocha:cli:watch'); +const path = require('path'); +const chokidar = require('chokidar'); +const Context = require('../context'); +const collectFiles = require('./collect-files'); + +/** + * Exports the `watchRun` function that runs mocha in "watch" mode. + * @see module:lib/cli/run-helpers + * @module + * @private + */ + +/** + * Run Mocha in parallel "watch" mode + * @param {Mocha} mocha - Mocha instance + * @param {Object} opts - Options + * @param {string[]} [opts.watchFiles] - List of paths and patterns to + * watch. If not provided all files with an extension included in + * `fileCollectionParams.extension` are watched. See first argument of + * `chokidar.watch`. + * @param {string[]} opts.watchIgnore - List of paths and patterns to + * exclude from watching. See `ignored` option of `chokidar`. + * @param {FileCollectionOptions} fileCollectParams - Parameters that control test + * @private + */ +exports.watchParallelRun = ( + mocha, + {watchFiles, watchIgnore}, + fileCollectParams +) => { + debug('creating parallel watcher'); + + return createWatcher(mocha, { + watchFiles, + watchIgnore, + beforeRun({mocha}) { + // I don't know why we're cloning the root suite. + const rootSuite = mocha.suite.clone(); + + // ensure we aren't leaking event listeners + mocha.dispose(); + + // this `require` is needed because the require cache has been cleared. the dynamic + // exports set via the below call to `mocha.ui()` won't work properly if a + // test depends on this module. + const Mocha = require('../mocha'); + + // ... and now that we've gotten a new module, we need to use it again due + // to `mocha.ui()` call + const newMocha = new Mocha(mocha.options); + // don't know why this is needed + newMocha.suite = rootSuite; + // nor this + newMocha.suite.ctx = new Context(); + + // reset the list of files + newMocha.files = collectFiles(fileCollectParams); + + // because we've swapped out the root suite (see the `run` inner function + // in `createRerunner`), we need to call `mocha.ui()` again to set up the context/globals. + newMocha.ui(newMocha.options.ui); + + // we need to call `newMocha.rootHooks` to set up rootHooks for the new + // suite + newMocha.rootHooks(newMocha.options.rootHooks); + + // in parallel mode, the main Mocha process doesn't actually load the + // files. this flag prevents `mocha.run()` from autoloading. + newMocha.lazyLoadFiles(true); + return newMocha; + }, + fileCollectParams + }); +}; + +/** + * Run Mocha in "watch" mode + * @param {Mocha} mocha - Mocha instance + * @param {Object} opts - Options + * @param {string[]} [opts.watchFiles] - List of paths and patterns to + * watch. If not provided all files with an extension included in + * `fileCollectionParams.extension` are watched. See first argument of + * `chokidar.watch`. + * @param {string[]} opts.watchIgnore - List of paths and patterns to + * exclude from watching. See `ignored` option of `chokidar`. + * @param {FileCollectionOptions} fileCollectParams - Parameters that control test + * file collection. See `lib/cli/collect-files.js`. + * @private + */ +exports.watchRun = (mocha, {watchFiles, watchIgnore}, fileCollectParams) => { + debug('creating serial watcher'); + + return createWatcher(mocha, { + watchFiles, + watchIgnore, + beforeRun({mocha}) { + mocha.unloadFiles(); + + // I don't know why we're cloning the root suite. + const rootSuite = mocha.suite.clone(); + + // ensure we aren't leaking event listeners + mocha.dispose(); + + // this `require` is needed because the require cache has been cleared. the dynamic + // exports set via the below call to `mocha.ui()` won't work properly if a + // test depends on this module. + const Mocha = require('../mocha'); + + // ... and now that we've gotten a new module, we need to use it again due + // to `mocha.ui()` call + const newMocha = new Mocha(mocha.options); + // don't know why this is needed + newMocha.suite = rootSuite; + // nor this + newMocha.suite.ctx = new Context(); + + // reset the list of files + newMocha.files = collectFiles(fileCollectParams); + + // because we've swapped out the root suite (see the `run` inner function + // in `createRerunner`), we need to call `mocha.ui()` again to set up the context/globals. + newMocha.ui(newMocha.options.ui); + + // we need to call `newMocha.rootHooks` to set up rootHooks for the new + // suite + newMocha.rootHooks(newMocha.options.rootHooks); + + return newMocha; + }, + fileCollectParams + }); +}; + +/** + * Bootstraps a chokidar watcher. Handles keyboard input & signals + * @param {Mocha} mocha - Mocha instance + * @param {Object} opts + * @param {BeforeWatchRun} [opts.beforeRun] - Function to call before + * `mocha.run()` + * @param {string[]} [opts.watchFiles] - List of paths and patterns to watch. If + * not provided all files with an extension included in + * `fileCollectionParams.extension` are watched. See first argument of + * `chokidar.watch`. + * @param {string[]} [opts.watchIgnore] - List of paths and patterns to exclude + * from watching. See `ignored` option of `chokidar`. + * @param {FileCollectionOptions} opts.fileCollectParams - List of extensions to watch if `opts.watchFiles` is not given. + * @returns {FSWatcher} + * @ignore + * @private + */ +const createWatcher = ( + mocha, + {watchFiles, watchIgnore, beforeRun, fileCollectParams} +) => { + if (!watchFiles) { + watchFiles = fileCollectParams.extension.map(ext => `**/*.${ext}`); + } + + debug('ignoring files matching: %s', watchIgnore); + let globalFixtureContext; + + // we handle global fixtures manually + mocha.enableGlobalSetup(false).enableGlobalTeardown(false); + + const watcher = chokidar.watch(watchFiles, { + ignored: watchIgnore, + ignoreInitial: true + }); + + const rerunner = createRerunner(mocha, watcher, { + beforeRun + }); + + watcher.on('ready', async () => { + if (!globalFixtureContext) { + debug('triggering global setup'); + globalFixtureContext = await mocha.runGlobalSetup(); + } + rerunner.run(); + }); + + watcher.on('all', () => { + rerunner.scheduleRun(); + }); + + hideCursor(); + process.on('exit', () => { + showCursor(); + }); + + // this is for testing. + // win32 cannot gracefully shutdown via a signal from a parent + // process; a `SIGINT` from a parent will cause the process + // to immediately exit. during normal course of operation, a user + // will type Ctrl-C and the listener will be invoked, but this + // is not possible in automated testing. + // there may be another way to solve this, but it too will be a hack. + // for our watch tests on win32 we must _fork_ mocha with an IPC channel + if (process.connected) { + process.on('message', msg => { + if (msg === 'SIGINT') { + process.emit('SIGINT'); + } + }); + } + + let exiting = false; + process.on('SIGINT', async () => { + showCursor(); + console.error(`${logSymbols.warning} [mocha] cleaning up, please wait...`); + if (!exiting) { + exiting = true; + if (mocha.hasGlobalTeardownFixtures()) { + debug('running global teardown'); + try { + await mocha.runGlobalTeardown(globalFixtureContext); + } catch (err) { + console.error(err); + } + } + process.exit(130); + } + }); + + // Keyboard shortcut for restarting when "rs\n" is typed (ala Nodemon) + process.stdin.resume(); + process.stdin.setEncoding('utf8'); + process.stdin.on('data', data => { + const str = data.toString().trim().toLowerCase(); + if (str === 'rs') rerunner.scheduleRun(); + }); + + return watcher; +}; + +/** + * Create an object that allows you to rerun tests on the mocha instance. + * + * @param {Mocha} mocha - Mocha instance + * @param {FSWatcher} watcher - chokidar `FSWatcher` instance + * @param {Object} [opts] - Options! + * @param {BeforeWatchRun} [opts.beforeRun] - Function to call before `mocha.run()` + * @returns {Rerunner} + * @ignore + * @private + */ +const createRerunner = (mocha, watcher, {beforeRun} = {}) => { + // Set to a `Runner` when mocha is running. Set to `null` when mocha is not + // running. + let runner = null; + + // true if a file has changed during a test run + let rerunScheduled = false; + + const run = () => { + try { + mocha = beforeRun ? beforeRun({mocha, watcher}) || mocha : mocha; + runner = mocha.run(() => { + debug('finished watch run'); + runner = null; + blastCache(watcher); + if (rerunScheduled) { + rerun(); + } else { + console.error(`${logSymbols.info} [mocha] waiting for changes...`); + } + }); + } catch (e) { + console.error(e.stack); + } + }; + + const scheduleRun = () => { + if (rerunScheduled) { + return; + } + + rerunScheduled = true; + if (runner) { + runner.abort(); + } else { + rerun(); + } + }; + + const rerun = () => { + rerunScheduled = false; + eraseLine(); + run(); + }; + + return { + scheduleRun, + run + }; +}; + +/** + * Return the list of absolute paths watched by a chokidar watcher. + * + * @param watcher - Instance of a chokidar watcher + * @return {string[]} - List of absolute paths + * @ignore + * @private + */ +const getWatchedFiles = watcher => { + const watchedDirs = watcher.getWatched(); + return Object.keys(watchedDirs).reduce( + (acc, dir) => [ + ...acc, + ...watchedDirs[dir].map(file => path.join(dir, file)) + ], + [] + ); +}; + +/** + * Hide the cursor. + * @ignore + * @private + */ +const hideCursor = () => { + process.stdout.write('\u001b[?25l'); +}; + +/** + * Show the cursor. + * @ignore + * @private + */ +const showCursor = () => { + process.stdout.write('\u001b[?25h'); +}; + +/** + * Erases the line on stdout + * @private + */ +const eraseLine = () => { + process.stdout.write('\u001b[2K'); +}; + +/** + * Blast all of the watched files out of `require.cache` + * @param {FSWatcher} watcher - chokidar FSWatcher + * @ignore + * @private + */ +const blastCache = watcher => { + const files = getWatchedFiles(watcher); + files.forEach(file => { + delete require.cache[file]; + }); + debug('deleted %d file(s) from the require cache', files.length); +}; + +/** + * Callback to be run before `mocha.run()` is called. + * Optionally, it can return a new `Mocha` instance. + * @callback BeforeWatchRun + * @private + * @param {{mocha: Mocha, watcher: FSWatcher}} options + * @returns {Mocha} + */ + +/** + * Object containing run control methods + * @typedef {Object} Rerunner + * @private + * @property {Function} run - Calls `mocha.run()` + * @property {Function} scheduleRun - Schedules another call to `run` + */ diff --git a/node_modules/mocha/lib/errors.js b/node_modules/mocha/lib/errors.js new file mode 100644 index 00000000..bcc7291c --- /dev/null +++ b/node_modules/mocha/lib/errors.js @@ -0,0 +1,563 @@ +'use strict'; + +const {format} = require('util'); + +/** + * Contains error codes, factory functions to create throwable error objects, + * and warning/deprecation functions. + * @module + */ + +/** + * process.emitWarning or a polyfill + * @see https://nodejs.org/api/process.html#process_process_emitwarning_warning_options + * @ignore + */ +const emitWarning = (msg, type) => { + if (process.emitWarning) { + process.emitWarning(msg, type); + } else { + /* istanbul ignore next */ + process.nextTick(function () { + console.warn(type + ': ' + msg); + }); + } +}; + +/** + * Show a deprecation warning. Each distinct message is only displayed once. + * Ignores empty messages. + * + * @param {string} [msg] - Warning to print + * @private + */ +const deprecate = msg => { + msg = String(msg); + if (msg && !deprecate.cache[msg]) { + deprecate.cache[msg] = true; + emitWarning(msg, 'DeprecationWarning'); + } +}; +deprecate.cache = {}; + +/** + * Show a generic warning. + * Ignores empty messages. + * + * @param {string} [msg] - Warning to print + * @private + */ +const warn = msg => { + if (msg) { + emitWarning(msg); + } +}; + +/** + * When Mocha throws exceptions (or rejects `Promise`s), it attempts to assign a `code` property to the `Error` object, for easier handling. These are the potential values of `code`. + * @public + * @namespace + * @memberof module:lib/errors + */ +var constants = { + /** + * An unrecoverable error. + * @constant + * @default + */ + FATAL: 'ERR_MOCHA_FATAL', + + /** + * The type of an argument to a function call is invalid + * @constant + * @default + */ + INVALID_ARG_TYPE: 'ERR_MOCHA_INVALID_ARG_TYPE', + + /** + * The value of an argument to a function call is invalid + * @constant + * @default + */ + INVALID_ARG_VALUE: 'ERR_MOCHA_INVALID_ARG_VALUE', + + /** + * Something was thrown, but it wasn't an `Error` + * @constant + * @default + */ + INVALID_EXCEPTION: 'ERR_MOCHA_INVALID_EXCEPTION', + + /** + * An interface (e.g., `Mocha.interfaces`) is unknown or invalid + * @constant + * @default + */ + INVALID_INTERFACE: 'ERR_MOCHA_INVALID_INTERFACE', + + /** + * A reporter (.e.g, `Mocha.reporters`) is unknown or invalid + * @constant + * @default + */ + INVALID_REPORTER: 'ERR_MOCHA_INVALID_REPORTER', + + /** + * `done()` was called twice in a `Test` or `Hook` callback + * @constant + * @default + */ + MULTIPLE_DONE: 'ERR_MOCHA_MULTIPLE_DONE', + + /** + * No files matched the pattern provided by the user + * @constant + * @default + */ + NO_FILES_MATCH_PATTERN: 'ERR_MOCHA_NO_FILES_MATCH_PATTERN', + + /** + * Known, but unsupported behavior of some kind + * @constant + * @default + */ + UNSUPPORTED: 'ERR_MOCHA_UNSUPPORTED', + + /** + * Invalid state transition occurring in `Mocha` instance + * @constant + * @default + */ + INSTANCE_ALREADY_RUNNING: 'ERR_MOCHA_INSTANCE_ALREADY_RUNNING', + + /** + * Invalid state transition occurring in `Mocha` instance + * @constant + * @default + */ + INSTANCE_ALREADY_DISPOSED: 'ERR_MOCHA_INSTANCE_ALREADY_DISPOSED', + + /** + * Use of `only()` w/ `--forbid-only` results in this error. + * @constant + * @default + */ + FORBIDDEN_EXCLUSIVITY: 'ERR_MOCHA_FORBIDDEN_EXCLUSIVITY', + + /** + * To be thrown when a user-defined plugin implementation (e.g., `mochaHooks`) is invalid + * @constant + * @default + */ + INVALID_PLUGIN_IMPLEMENTATION: 'ERR_MOCHA_INVALID_PLUGIN_IMPLEMENTATION', + + /** + * To be thrown when a builtin or third-party plugin definition (the _definition_ of `mochaHooks`) is invalid + * @constant + * @default + */ + INVALID_PLUGIN_DEFINITION: 'ERR_MOCHA_INVALID_PLUGIN_DEFINITION', + + /** + * When a runnable exceeds its allowed run time. + * @constant + * @default + */ + TIMEOUT: 'ERR_MOCHA_TIMEOUT', + + /** + * Input file is not able to be parsed + * @constant + * @default + */ + UNPARSABLE_FILE: 'ERR_MOCHA_UNPARSABLE_FILE' +}; + +/** + * A set containing all string values of all Mocha error constants, for use by {@link isMochaError}. + * @private + */ +const MOCHA_ERRORS = new Set(Object.values(constants)); + +/** + * Creates an error object to be thrown when no files to be tested could be found using specified pattern. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} pattern - User-specified argument value. + * @returns {Error} instance detailing the error condition + */ +function createNoFilesMatchPatternError(message, pattern) { + var err = new Error(message); + err.code = constants.NO_FILES_MATCH_PATTERN; + err.pattern = pattern; + return err; +} + +/** + * Creates an error object to be thrown when the reporter specified in the options was not found. + * + * @public + * @param {string} message - Error message to be displayed. + * @param {string} reporter - User-specified reporter value. + * @returns {Error} instance detailing the error condition + */ +function createInvalidReporterError(message, reporter) { + var err = new TypeError(message); + err.code = constants.INVALID_REPORTER; + err.reporter = reporter; + return err; +} + +/** + * Creates an error object to be thrown when the interface specified in the options was not found. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} ui - User-specified interface value. + * @returns {Error} instance detailing the error condition + */ +function createInvalidInterfaceError(message, ui) { + var err = new Error(message); + err.code = constants.INVALID_INTERFACE; + err.interface = ui; + return err; +} + +/** + * Creates an error object to be thrown when a behavior, option, or parameter is unsupported. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @returns {Error} instance detailing the error condition + */ +function createUnsupportedError(message) { + var err = new Error(message); + err.code = constants.UNSUPPORTED; + return err; +} + +/** + * Creates an error object to be thrown when an argument is missing. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} argument - Argument name. + * @param {string} expected - Expected argument datatype. + * @returns {Error} instance detailing the error condition + */ +function createMissingArgumentError(message, argument, expected) { + return createInvalidArgumentTypeError(message, argument, expected); +} + +/** + * Creates an error object to be thrown when an argument did not use the supported type + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} argument - Argument name. + * @param {string} expected - Expected argument datatype. + * @returns {Error} instance detailing the error condition + */ +function createInvalidArgumentTypeError(message, argument, expected) { + var err = new TypeError(message); + err.code = constants.INVALID_ARG_TYPE; + err.argument = argument; + err.expected = expected; + err.actual = typeof argument; + return err; +} + +/** + * Creates an error object to be thrown when an argument did not use the supported value + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} argument - Argument name. + * @param {string} value - Argument value. + * @param {string} [reason] - Why value is invalid. + * @returns {Error} instance detailing the error condition + */ +function createInvalidArgumentValueError(message, argument, value, reason) { + var err = new TypeError(message); + err.code = constants.INVALID_ARG_VALUE; + err.argument = argument; + err.value = value; + err.reason = typeof reason !== 'undefined' ? reason : 'is invalid'; + return err; +} + +/** + * Creates an error object to be thrown when an exception was caught, but the `Error` is falsy or undefined. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @returns {Error} instance detailing the error condition + */ +function createInvalidExceptionError(message, value) { + var err = new Error(message); + err.code = constants.INVALID_EXCEPTION; + err.valueType = typeof value; + err.value = value; + return err; +} + +/** + * Creates an error object to be thrown when an unrecoverable error occurs. + * + * @public + * @static + * @param {string} message - Error message to be displayed. + * @returns {Error} instance detailing the error condition + */ +function createFatalError(message, value) { + var err = new Error(message); + err.code = constants.FATAL; + err.valueType = typeof value; + err.value = value; + return err; +} + +/** + * Dynamically creates a plugin-type-specific error based on plugin type + * @param {string} message - Error message + * @param {"reporter"|"ui"} pluginType - Plugin type. Future: expand as needed + * @param {string} [pluginId] - Name/path of plugin, if any + * @throws When `pluginType` is not known + * @public + * @static + * @returns {Error} + */ +function createInvalidLegacyPluginError(message, pluginType, pluginId) { + switch (pluginType) { + case 'reporter': + return createInvalidReporterError(message, pluginId); + case 'ui': + return createInvalidInterfaceError(message, pluginId); + default: + throw new Error('unknown pluginType "' + pluginType + '"'); + } +} + +/** + * **DEPRECATED**. Use {@link createInvalidLegacyPluginError} instead Dynamically creates a plugin-type-specific error based on plugin type + * @deprecated + * @param {string} message - Error message + * @param {"reporter"|"interface"} pluginType - Plugin type. Future: expand as needed + * @param {string} [pluginId] - Name/path of plugin, if any + * @throws When `pluginType` is not known + * @public + * @static + * @returns {Error} + */ +function createInvalidPluginError(...args) { + deprecate('Use createInvalidLegacyPluginError() instead'); + return createInvalidLegacyPluginError(...args); +} + +/** + * Creates an error object to be thrown when a mocha object's `run` method is executed while it is already disposed. + * @param {string} message The error message to be displayed. + * @param {boolean} cleanReferencesAfterRun the value of `cleanReferencesAfterRun` + * @param {Mocha} instance the mocha instance that throw this error + * @static + */ +function createMochaInstanceAlreadyDisposedError( + message, + cleanReferencesAfterRun, + instance +) { + var err = new Error(message); + err.code = constants.INSTANCE_ALREADY_DISPOSED; + err.cleanReferencesAfterRun = cleanReferencesAfterRun; + err.instance = instance; + return err; +} + +/** + * Creates an error object to be thrown when a mocha object's `run` method is called while a test run is in progress. + * @param {string} message The error message to be displayed. + * @static + * @public + */ +function createMochaInstanceAlreadyRunningError(message, instance) { + var err = new Error(message); + err.code = constants.INSTANCE_ALREADY_RUNNING; + err.instance = instance; + return err; +} + +/** + * Creates an error object to be thrown when done() is called multiple times in a test + * + * @public + * @param {Runnable} runnable - Original runnable + * @param {Error} [originalErr] - Original error, if any + * @returns {Error} instance detailing the error condition + * @static + */ +function createMultipleDoneError(runnable, originalErr) { + var title; + try { + title = format('<%s>', runnable.fullTitle()); + if (runnable.parent.root) { + title += ' (of root suite)'; + } + } catch (ignored) { + title = format('<%s> (of unknown suite)', runnable.title); + } + var message = format( + 'done() called multiple times in %s %s', + runnable.type ? runnable.type : 'unknown runnable', + title + ); + if (runnable.file) { + message += format(' of file %s', runnable.file); + } + if (originalErr) { + message += format('; in addition, done() received error: %s', originalErr); + } + + var err = new Error(message); + err.code = constants.MULTIPLE_DONE; + err.valueType = typeof originalErr; + err.value = originalErr; + return err; +} + +/** + * Creates an error object to be thrown when `.only()` is used with + * `--forbid-only`. + * @static + * @public + * @param {Mocha} mocha - Mocha instance + * @returns {Error} Error with code {@link constants.FORBIDDEN_EXCLUSIVITY} + */ +function createForbiddenExclusivityError(mocha) { + var err = new Error( + mocha.isWorker + ? '`.only` is not supported in parallel mode' + : '`.only` forbidden by --forbid-only' + ); + err.code = constants.FORBIDDEN_EXCLUSIVITY; + return err; +} + +/** + * Creates an error object to be thrown when a plugin definition is invalid + * @static + * @param {string} msg - Error message + * @param {PluginDefinition} [pluginDef] - Problematic plugin definition + * @public + * @returns {Error} Error with code {@link constants.INVALID_PLUGIN_DEFINITION} + */ +function createInvalidPluginDefinitionError(msg, pluginDef) { + const err = new Error(msg); + err.code = constants.INVALID_PLUGIN_DEFINITION; + err.pluginDef = pluginDef; + return err; +} + +/** + * Creates an error object to be thrown when a plugin implementation (user code) is invalid + * @static + * @param {string} msg - Error message + * @param {Object} [opts] - Plugin definition and user-supplied implementation + * @param {PluginDefinition} [opts.pluginDef] - Plugin Definition + * @param {*} [opts.pluginImpl] - Plugin Implementation (user-supplied) + * @public + * @returns {Error} Error with code {@link constants.INVALID_PLUGIN_DEFINITION} + */ +function createInvalidPluginImplementationError( + msg, + {pluginDef, pluginImpl} = {} +) { + const err = new Error(msg); + err.code = constants.INVALID_PLUGIN_IMPLEMENTATION; + err.pluginDef = pluginDef; + err.pluginImpl = pluginImpl; + return err; +} + +/** + * Creates an error object to be thrown when a runnable exceeds its allowed run time. + * @static + * @param {string} msg - Error message + * @param {number} [timeout] - Timeout in ms + * @param {string} [file] - File, if given + * @returns {MochaTimeoutError} + */ +function createTimeoutError(msg, timeout, file) { + const err = new Error(msg); + err.code = constants.TIMEOUT; + err.timeout = timeout; + err.file = file; + return err; +} + +/** + * Creates an error object to be thrown when file is unparsable + * @public + * @static + * @param {string} message - Error message to be displayed. + * @param {string} filename - File name + * @returns {Error} Error with code {@link constants.UNPARSABLE_FILE} + */ +function createUnparsableFileError(message, filename) { + var err = new Error(message); + err.code = constants.UNPARSABLE_FILE; + return err; +} + +/** + * Returns `true` if an error came out of Mocha. + * _Can suffer from false negatives, but not false positives._ + * @static + * @public + * @param {*} err - Error, or anything + * @returns {boolean} + */ +const isMochaError = err => + Boolean(err && typeof err === 'object' && MOCHA_ERRORS.has(err.code)); + +module.exports = { + constants, + createFatalError, + createForbiddenExclusivityError, + createInvalidArgumentTypeError, + createInvalidArgumentValueError, + createInvalidExceptionError, + createInvalidInterfaceError, + createInvalidLegacyPluginError, + createInvalidPluginDefinitionError, + createInvalidPluginError, + createInvalidPluginImplementationError, + createInvalidReporterError, + createMissingArgumentError, + createMochaInstanceAlreadyDisposedError, + createMochaInstanceAlreadyRunningError, + createMultipleDoneError, + createNoFilesMatchPatternError, + createTimeoutError, + createUnparsableFileError, + createUnsupportedError, + deprecate, + isMochaError, + warn +}; + +/** + * The error thrown when a Runnable times out + * @memberof module:lib/errors + * @typedef {Error} MochaTimeoutError + * @property {constants.TIMEOUT} code - Error code + * @property {number?} timeout Timeout in ms + * @property {string?} file Filepath, if given + */ diff --git a/node_modules/mocha/lib/mocharc.json b/node_modules/mocha/lib/mocharc.json new file mode 100644 index 00000000..51c3fce6 --- /dev/null +++ b/node_modules/mocha/lib/mocharc.json @@ -0,0 +1,10 @@ +{ + "diff": true, + "extension": ["js", "cjs", "mjs"], + "package": "./package.json", + "reporter": "spec", + "slow": 75, + "timeout": 2000, + "ui": "bdd", + "watch-ignore": ["node_modules", ".git"] +} diff --git a/node_modules/mocha/lib/nodejs/buffered-worker-pool.js b/node_modules/mocha/lib/nodejs/buffered-worker-pool.js new file mode 100644 index 00000000..fe4abf94 --- /dev/null +++ b/node_modules/mocha/lib/nodejs/buffered-worker-pool.js @@ -0,0 +1,188 @@ +/** + * A wrapper around a third-party child process worker pool implementation. + * Used by {@link module:buffered-runner}. + * @private + * @module buffered-worker-pool + */ + +'use strict'; + +const serializeJavascript = require('serialize-javascript'); +const workerpool = require('workerpool'); +const {deserialize} = require('./serializer'); +const debug = require('debug')('mocha:parallel:buffered-worker-pool'); +const {createInvalidArgumentTypeError} = require('../errors'); + +const WORKER_PATH = require.resolve('./worker.js'); + +/** + * A mapping of Mocha `Options` objects to serialized values. + * + * This is helpful because we tend to same the same options over and over + * over IPC. + * @type {WeakMap} + */ +let optionsCache = new WeakMap(); + +/** + * These options are passed into the [workerpool](https://npm.im/workerpool) module. + * @type {Partial} + */ +const WORKER_POOL_DEFAULT_OPTS = { + // use child processes, not worker threads! + workerType: 'process', + // ensure the same flags sent to `node` for this `mocha` invocation are passed + // along to children + forkOpts: {execArgv: process.execArgv}, + maxWorkers: workerpool.cpus - 1 +}; + +/** + * A wrapper around a third-party worker pool implementation. + * @private + */ +class BufferedWorkerPool { + /** + * Creates an underlying worker pool instance; determines max worker count + * @param {Partial} [opts] - Options + */ + constructor(opts = {}) { + const maxWorkers = Math.max( + 1, + typeof opts.maxWorkers === 'undefined' + ? WORKER_POOL_DEFAULT_OPTS.maxWorkers + : opts.maxWorkers + ); + + /* istanbul ignore next */ + if (workerpool.cpus < 2) { + // TODO: decide whether we should warn + debug( + 'not enough CPU cores available to run multiple jobs; avoid --parallel on this machine' + ); + } else if (maxWorkers >= workerpool.cpus) { + // TODO: decide whether we should warn + debug( + '%d concurrent job(s) requested, but only %d core(s) available', + maxWorkers, + workerpool.cpus + ); + } + /* istanbul ignore next */ + debug( + 'run(): starting worker pool of max size %d, using node args: %s', + maxWorkers, + process.execArgv.join(' ') + ); + + let counter = 0; + const onCreateWorker = ({forkOpts}) => { + return { + forkOpts: { + ...forkOpts, + // adds an incremental id to all workers, which can be useful to allocate resources for each process + env: {...process.env, MOCHA_WORKER_ID: counter++} + } + }; + }; + + this.options = { + ...WORKER_POOL_DEFAULT_OPTS, + ...opts, + maxWorkers, + onCreateWorker + }; + this._pool = workerpool.pool(WORKER_PATH, this.options); + } + + /** + * Terminates all workers in the pool. + * @param {boolean} [force] - Whether to force-kill workers. By default, lets workers finish their current task before termination. + * @private + * @returns {Promise} + */ + async terminate(force = false) { + /* istanbul ignore next */ + debug('terminate(): terminating with force = %s', force); + return this._pool.terminate(force); + } + + /** + * Adds a test file run to the worker pool queue for execution by a worker process. + * + * Handles serialization/deserialization. + * + * @param {string} filepath - Filepath of test + * @param {Options} [options] - Options for Mocha instance + * @private + * @returns {Promise} + */ + async run(filepath, options = {}) { + if (!filepath || typeof filepath !== 'string') { + throw createInvalidArgumentTypeError( + 'Expected a non-empty filepath', + 'filepath', + 'string' + ); + } + const serializedOptions = BufferedWorkerPool.serializeOptions(options); + const result = await this._pool.exec('run', [filepath, serializedOptions]); + return deserialize(result); + } + + /** + * Returns stats about the state of the worker processes in the pool. + * + * Used for debugging. + * + * @private + */ + stats() { + return this._pool.stats(); + } + + /** + * Instantiates a {@link WorkerPool}. + * @private + */ + static create(...args) { + return new BufferedWorkerPool(...args); + } + + /** + * Given Mocha options object `opts`, serialize into a format suitable for + * transmission over IPC. + * + * @param {Options} [opts] - Mocha options + * @private + * @returns {string} Serialized options + */ + static serializeOptions(opts = {}) { + if (!optionsCache.has(opts)) { + const serialized = serializeJavascript(opts, { + unsafe: true, // this means we don't care about XSS + ignoreFunction: true // do not serialize functions + }); + optionsCache.set(opts, serialized); + /* istanbul ignore next */ + debug( + 'serializeOptions(): serialized options %O to: %s', + opts, + serialized + ); + } + return optionsCache.get(opts); + } + + /** + * Resets internal cache of serialized options objects. + * + * For testing/debugging + * @private + */ + static resetOptionsCache() { + optionsCache = new WeakMap(); + } +} + +exports.BufferedWorkerPool = BufferedWorkerPool; diff --git a/node_modules/mocha/lib/nodejs/esm-utils.js b/node_modules/mocha/lib/nodejs/esm-utils.js new file mode 100644 index 00000000..18abe81f --- /dev/null +++ b/node_modules/mocha/lib/nodejs/esm-utils.js @@ -0,0 +1,94 @@ +const path = require('path'); +const url = require('url'); + +const formattedImport = async file => { + if (path.isAbsolute(file)) { + try { + return await import(url.pathToFileURL(file)); + } catch (err) { + // This is a hack created because ESM in Node.js (at least in Node v15.5.1) does not emit + // the location of the syntax error in the error thrown. + // This is problematic because the user can't see what file has the problem, + // so we add the file location to the error. + // TODO: remove once Node.js fixes the problem. + if ( + err instanceof SyntaxError && + err.message && + err.stack && + !err.stack.includes(file) + ) { + const newErrorWithFilename = new SyntaxError(err.message); + newErrorWithFilename.stack = err.stack.replace( + /^SyntaxError/, + `SyntaxError[ @${file} ]` + ); + throw newErrorWithFilename; + } + throw err; + } + } + return import(file); +}; + +exports.requireOrImport = async file => { + if (path.extname(file) === '.mjs') { + return formattedImport(file); + } + try { + return dealWithExports(await formattedImport(file)); + } catch (err) { + if ( + err.code === 'ERR_MODULE_NOT_FOUND' || + err.code === 'ERR_UNKNOWN_FILE_EXTENSION' || + err.code === 'ERR_UNSUPPORTED_DIR_IMPORT' + ) { + try { + // Importing a file usually works, but the resolution of `import` is the ESM + // resolution algorithm, and not the CJS resolution algorithm. We may have + // failed because we tried the ESM resolution, so we try to `require` it. + return require(file); + } catch (requireErr) { + if ( + requireErr.code === 'ERR_REQUIRE_ESM' || + (requireErr instanceof SyntaxError && + requireErr + .toString() + .includes('Cannot use import statement outside a module')) + ) { + // ERR_REQUIRE_ESM happens when the test file is a JS file, but via type:module is actually ESM, + // AND has an import to a file that doesn't exist. + // This throws an `ERR_MODULE_NOT_FOUND` error above, + // and when we try to `require` it here, it throws an `ERR_REQUIRE_ESM`. + // What we want to do is throw the original error (the `ERR_MODULE_NOT_FOUND`), + // and not the `ERR_REQUIRE_ESM` error, which is a red herring. + // + // SyntaxError happens when in an edge case: when we're using an ESM loader that loads + // a `test.ts` file (i.e. unrecognized extension), and that file includes an unknown + // import (which throws an ERR_MODULE_NOT_FOUND). `require`-ing it will throw the + // syntax error, because we cannot require a file that has `import`-s. + throw err; + } else { + throw requireErr; + } + } + } else { + throw err; + } + } +}; + +function dealWithExports(module) { + if (module.default) { + return module.default; + } else { + return {...module, default: undefined}; + } +} + +exports.loadFilesAsync = async (files, preLoadFunc, postLoadFunc) => { + for (const file of files) { + preLoadFunc(file); + const result = await exports.requireOrImport(path.resolve(file)); + postLoadFunc(file, result); + } +}; diff --git a/node_modules/mocha/lib/nodejs/file-unloader.js b/node_modules/mocha/lib/nodejs/file-unloader.js new file mode 100644 index 00000000..50a81783 --- /dev/null +++ b/node_modules/mocha/lib/nodejs/file-unloader.js @@ -0,0 +1,15 @@ +'use strict'; + +/** + * This module should not be in the browser bundle, so it's here. + * @private + * @module + */ + +/** + * Deletes a file from the `require` cache. + * @param {string} file - File + */ +exports.unloadFile = file => { + delete require.cache[require.resolve(file)]; +}; diff --git a/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js b/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js new file mode 100644 index 00000000..3f882ba2 --- /dev/null +++ b/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js @@ -0,0 +1,434 @@ +/** + * A test Runner that uses a {@link module:buffered-worker-pool}. + * @module parallel-buffered-runner + * @private + */ + +'use strict'; + +const allSettled = require('@ungap/promise-all-settled').bind(Promise); +const Runner = require('../runner'); +const {EVENT_RUN_BEGIN, EVENT_RUN_END} = Runner.constants; +const debug = require('debug')('mocha:parallel:parallel-buffered-runner'); +const {BufferedWorkerPool} = require('./buffered-worker-pool'); +const {setInterval, clearInterval} = global; +const {createMap, constants} = require('../utils'); +const {MOCHA_ID_PROP_NAME} = constants; +const {createFatalError} = require('../errors'); + +const DEFAULT_WORKER_REPORTER = require.resolve( + './reporters/parallel-buffered' +); + +/** + * List of options to _not_ serialize for transmission to workers + */ +const DENY_OPTIONS = [ + 'globalSetup', + 'globalTeardown', + 'parallel', + 'p', + 'jobs', + 'j' +]; + +/** + * Outputs a debug statement with worker stats + * @param {BufferedWorkerPool} pool - Worker pool + */ +/* istanbul ignore next */ +const debugStats = pool => { + const {totalWorkers, busyWorkers, idleWorkers, pendingTasks} = pool.stats(); + debug( + '%d/%d busy workers; %d idle; %d tasks queued', + busyWorkers, + totalWorkers, + idleWorkers, + pendingTasks + ); +}; + +/** + * The interval at which we will display stats for worker processes in debug mode + */ +const DEBUG_STATS_INTERVAL = 5000; + +const ABORTED = 'ABORTED'; +const IDLE = 'IDLE'; +const ABORTING = 'ABORTING'; +const RUNNING = 'RUNNING'; +const BAILING = 'BAILING'; +const BAILED = 'BAILED'; +const COMPLETE = 'COMPLETE'; + +const states = createMap({ + [IDLE]: new Set([RUNNING, ABORTING]), + [RUNNING]: new Set([COMPLETE, BAILING, ABORTING]), + [COMPLETE]: new Set(), + [ABORTED]: new Set(), + [ABORTING]: new Set([ABORTED]), + [BAILING]: new Set([BAILED, ABORTING]), + [BAILED]: new Set([COMPLETE, ABORTING]) +}); + +/** + * This `Runner` delegates tests runs to worker threads. Does not execute any + * {@link Runnable}s by itself! + * @public + */ +class ParallelBufferedRunner extends Runner { + constructor(...args) { + super(...args); + + let state = IDLE; + Object.defineProperty(this, '_state', { + get() { + return state; + }, + set(newState) { + if (states[state].has(newState)) { + state = newState; + } else { + throw new Error(`invalid state transition: ${state} => ${newState}`); + } + } + }); + + this._workerReporter = DEFAULT_WORKER_REPORTER; + this._linkPartialObjects = false; + this._linkedObjectMap = new Map(); + + this.once(Runner.constants.EVENT_RUN_END, () => { + this._state = COMPLETE; + }); + } + + /** + * Returns a mapping function to enqueue a file in the worker pool and return results of its execution. + * @param {BufferedWorkerPool} pool - Worker pool + * @param {Options} options - Mocha options + * @returns {FileRunner} Mapping function + * @private + */ + _createFileRunner(pool, options) { + /** + * Emits event and sets `BAILING` state, if necessary. + * @param {Object} event - Event having `eventName`, maybe `data` and maybe `error` + * @param {number} failureCount - Failure count + */ + const emitEvent = (event, failureCount) => { + this.emit(event.eventName, event.data, event.error); + if ( + this._state !== BAILING && + event.data && + event.data._bail && + (failureCount || event.error) + ) { + debug('run(): nonzero failure count & found bail flag'); + // we need to let the events complete for this file, as the worker + // should run any cleanup hooks + this._state = BAILING; + } + }; + + /** + * Given an event, recursively find any objects in its data that have ID's, and create object references to already-seen objects. + * @param {Object} event - Event having `eventName`, maybe `data` and maybe `error` + */ + const linkEvent = event => { + const stack = [{parent: event, prop: 'data'}]; + while (stack.length) { + const {parent, prop} = stack.pop(); + const obj = parent[prop]; + let newObj; + if (obj && typeof obj === 'object') { + if (obj[MOCHA_ID_PROP_NAME]) { + const id = obj[MOCHA_ID_PROP_NAME]; + newObj = this._linkedObjectMap.has(id) + ? Object.assign(this._linkedObjectMap.get(id), obj) + : obj; + this._linkedObjectMap.set(id, newObj); + parent[prop] = newObj; + } else { + throw createFatalError( + 'Object missing ID received in event data', + obj + ); + } + } + Object.keys(newObj).forEach(key => { + const value = obj[key]; + if (value && typeof value === 'object' && value[MOCHA_ID_PROP_NAME]) { + stack.push({obj: value, parent: newObj, prop: key}); + } + }); + } + }; + + return async file => { + debug('run(): enqueueing test file %s', file); + try { + const {failureCount, events} = await pool.run(file, options); + + if (this._state === BAILED) { + // short-circuit after a graceful bail. if this happens, + // some other worker has bailed. + // TODO: determine if this is the desired behavior, or if we + // should report the events of this run anyway. + return; + } + debug( + 'run(): completed run of file %s; %d failures / %d events', + file, + failureCount, + events.length + ); + this.failures += failureCount; // can this ever be non-numeric? + let event = events.shift(); + + if (this._linkPartialObjects) { + while (event) { + linkEvent(event); + emitEvent(event, failureCount); + event = events.shift(); + } + } else { + while (event) { + emitEvent(event, failureCount); + event = events.shift(); + } + } + if (this._state === BAILING) { + debug('run(): terminating pool due to "bail" flag'); + this._state = BAILED; + await pool.terminate(); + } + } catch (err) { + if (this._state === BAILED || this._state === ABORTING) { + debug( + 'run(): worker pool terminated with intent; skipping file %s', + file + ); + } else { + // this is an uncaught exception + debug('run(): encountered uncaught exception: %O', err); + if (this.allowUncaught) { + // still have to clean up + this._state = ABORTING; + await pool.terminate(true); + } + throw err; + } + } finally { + debug('run(): done running file %s', file); + } + }; + } + + /** + * Listen on `Process.SIGINT`; terminate pool if caught. + * Returns the listener for later call to `process.removeListener()`. + * @param {BufferedWorkerPool} pool - Worker pool + * @returns {SigIntListener} Listener + * @private + */ + _bindSigIntListener(pool) { + const sigIntListener = async () => { + debug('run(): caught a SIGINT'); + this._state = ABORTING; + + try { + debug('run(): force-terminating worker pool'); + await pool.terminate(true); + } catch (err) { + console.error( + `Error while attempting to force-terminate worker pool: ${err}` + ); + process.exitCode = 1; + } finally { + process.nextTick(() => { + debug('run(): imminent death'); + this._state = ABORTED; + process.kill(process.pid, 'SIGINT'); + }); + } + }; + + process.once('SIGINT', sigIntListener); + + return sigIntListener; + } + + /** + * Runs Mocha tests by creating a thread pool, then delegating work to the + * worker threads. + * + * Each worker receives one file, and as workers become available, they take a + * file from the queue and run it. The worker thread execution is treated like + * an RPC--it returns a `Promise` containing serialized information about the + * run. The information is processed as it's received, and emitted to a + * {@link Reporter}, which is likely listening for these events. + * + * @param {Function} callback - Called with an exit code corresponding to + * number of test failures. + * @param {Object} [opts] - options + * @param {string[]} opts.files - Files to run + * @param {Options} opts.options - command-line options + */ + run(callback, {files, options = {}} = {}) { + /** + * Listener on `Process.SIGINT` which tries to cleanly terminate the worker pool. + */ + let sigIntListener; + + // assign the reporter the worker will use, which will be different than the + // main process' reporter + options = {...options, reporter: this._workerReporter}; + + // This function should _not_ return a `Promise`; its parent (`Runner#run`) + // returns this instance, so this should do the same. However, we want to make + // use of `async`/`await`, so we use this IIFE. + (async () => { + /** + * This is an interval that outputs stats about the worker pool every so often + */ + let debugInterval; + + /** + * @type {BufferedWorkerPool} + */ + let pool; + + try { + pool = BufferedWorkerPool.create({maxWorkers: options.jobs}); + + sigIntListener = this._bindSigIntListener(pool); + + /* istanbul ignore next */ + debugInterval = setInterval( + () => debugStats(pool), + DEBUG_STATS_INTERVAL + ).unref(); + + // this is set for uncaught exception handling in `Runner#uncaught` + // TODO: `Runner` should be using a state machine instead. + this.started = true; + this._state = RUNNING; + + this.emit(EVENT_RUN_BEGIN); + + options = {...options}; + DENY_OPTIONS.forEach(opt => { + delete options[opt]; + }); + + const results = await allSettled( + files.map(this._createFileRunner(pool, options)) + ); + + // note that pool may already be terminated due to --bail + await pool.terminate(); + + results + .filter(({status}) => status === 'rejected') + .forEach(({reason}) => { + if (this.allowUncaught) { + // yep, just the first one. + throw reason; + } + // "rejected" will correspond to uncaught exceptions. + // unlike the serial runner, the parallel runner can always recover. + this.uncaught(reason); + }); + + if (this._state === ABORTING) { + return; + } + + this.emit(EVENT_RUN_END); + debug('run(): completing with failure count %d', this.failures); + callback(this.failures); + } catch (err) { + // this `nextTick` takes us out of the `Promise` scope, so the + // exception will not be caught and returned as a rejected `Promise`, + // which would lead to an `unhandledRejection` event. + process.nextTick(() => { + debug('run(): re-throwing uncaught exception'); + throw err; + }); + } finally { + clearInterval(debugInterval); + process.removeListener('SIGINT', sigIntListener); + } + })(); + return this; + } + + /** + * Toggle partial object linking behavior; used for building object references from + * unique ID's. + * @param {boolean} [value] - If `true`, enable partial object linking, otherwise disable + * @returns {Runner} + * @chainable + * @public + * @example + * // this reporter needs proper object references when run in parallel mode + * class MyReporter() { + * constructor(runner) { + * this.runner.linkPartialObjects(true) + * .on(EVENT_SUITE_BEGIN, suite => { + // this Suite may be the same object... + * }) + * .on(EVENT_TEST_BEGIN, test => { + * // ...as the `test.parent` property + * }); + * } + * } + */ + linkPartialObjects(value) { + this._linkPartialObjects = Boolean(value); + return super.linkPartialObjects(value); + } + + /** + * If this class is the `Runner` in use, then this is going to return `true`. + * + * For use by reporters. + * @returns {true} + * @public + */ + isParallelMode() { + return true; + } + + /** + * Configures an alternate reporter for worker processes to use. Subclasses + * using worker processes should implement this. + * @public + * @param {string} path - Absolute path to alternate reporter for worker processes to use + * @returns {Runner} + * @throws When in serial mode + * @chainable + */ + workerReporter(reporter) { + this._workerReporter = reporter; + return this; + } +} + +module.exports = ParallelBufferedRunner; + +/** + * Listener function intended to be bound to `Process.SIGINT` event + * @private + * @callback SigIntListener + * @returns {Promise} + */ + +/** + * A function accepting a test file path and returning the results of a test run + * @private + * @callback FileRunner + * @param {string} filename - File to run + * @returns {Promise} + */ diff --git a/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js b/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js new file mode 100644 index 00000000..840d718e --- /dev/null +++ b/node_modules/mocha/lib/nodejs/reporters/parallel-buffered.js @@ -0,0 +1,165 @@ +/** + * "Buffered" reporter used internally by a worker process when running in parallel mode. + * @module nodejs/reporters/parallel-buffered + * @public + */ + +'use strict'; + +/** + * Module dependencies. + */ + +const { + EVENT_SUITE_BEGIN, + EVENT_SUITE_END, + EVENT_TEST_FAIL, + EVENT_TEST_PASS, + EVENT_TEST_PENDING, + EVENT_TEST_BEGIN, + EVENT_TEST_END, + EVENT_TEST_RETRY, + EVENT_DELAY_BEGIN, + EVENT_DELAY_END, + EVENT_HOOK_BEGIN, + EVENT_HOOK_END, + EVENT_RUN_END +} = require('../../runner').constants; +const {SerializableEvent, SerializableWorkerResult} = require('../serializer'); +const debug = require('debug')('mocha:reporters:buffered'); +const Base = require('../../reporters/base'); + +/** + * List of events to listen to; these will be buffered and sent + * when `Mocha#run` is complete (via {@link ParallelBuffered#done}). + */ +const EVENT_NAMES = [ + EVENT_SUITE_BEGIN, + EVENT_SUITE_END, + EVENT_TEST_BEGIN, + EVENT_TEST_PENDING, + EVENT_TEST_FAIL, + EVENT_TEST_PASS, + EVENT_TEST_RETRY, + EVENT_TEST_END, + EVENT_HOOK_BEGIN, + EVENT_HOOK_END +]; + +/** + * Like {@link EVENT_NAMES}, except we expect these events to only be emitted + * by the `Runner` once. + */ +const ONCE_EVENT_NAMES = [EVENT_DELAY_BEGIN, EVENT_DELAY_END]; + +/** + * The `ParallelBuffered` reporter is used by each worker process in "parallel" + * mode, by default. Instead of reporting to to `STDOUT`, etc., it retains a + * list of events it receives and hands these off to the callback passed into + * {@link Mocha#run}. That callback will then return the data to the main + * process. + * @public + */ +class ParallelBuffered extends Base { + /** + * Calls {@link ParallelBuffered#createListeners} + * @param {Runner} runner + */ + constructor(runner, opts) { + super(runner, opts); + + /** + * Retained list of events emitted from the {@link Runner} instance. + * @type {BufferedEvent[]} + * @public + */ + this.events = []; + + /** + * Map of `Runner` event names to listeners (for later teardown) + * @public + * @type {Map} + */ + this.listeners = new Map(); + + this.createListeners(runner); + } + + /** + * Returns a new listener which saves event data in memory to + * {@link ParallelBuffered#events}. Listeners are indexed by `eventName` and stored + * in {@link ParallelBuffered#listeners}. This is a defensive measure, so that we + * don't a) leak memory or b) remove _other_ listeners that may not be + * associated with this reporter. + * + * Subclasses could override this behavior. + * + * @public + * @param {string} eventName - Name of event to create listener for + * @returns {EventListener} + */ + createListener(eventName) { + const listener = (runnable, err) => { + this.events.push(SerializableEvent.create(eventName, runnable, err)); + }; + return this.listeners.set(eventName, listener).get(eventName); + } + + /** + * Creates event listeners (using {@link ParallelBuffered#createListener}) for each + * reporter-relevant event emitted by a {@link Runner}. This array is drained when + * {@link ParallelBuffered#done} is called by {@link Runner#run}. + * + * Subclasses could override this behavior. + * @public + * @param {Runner} runner - Runner instance + * @returns {ParallelBuffered} + * @chainable + */ + createListeners(runner) { + EVENT_NAMES.forEach(evt => { + runner.on(evt, this.createListener(evt)); + }); + ONCE_EVENT_NAMES.forEach(evt => { + runner.once(evt, this.createListener(evt)); + }); + + runner.once(EVENT_RUN_END, () => { + debug('received EVENT_RUN_END'); + this.listeners.forEach((listener, evt) => { + runner.removeListener(evt, listener); + this.listeners.delete(evt); + }); + }); + + return this; + } + + /** + * Calls the {@link Mocha#run} callback (`callback`) with the test failure + * count and the array of {@link BufferedEvent} objects. Resets the array. + * + * This is called directly by `Runner#run` and should not be called by any other consumer. + * + * Subclasses could override this. + * + * @param {number} failures - Number of failed tests + * @param {Function} callback - The callback passed to {@link Mocha#run}. + * @public + */ + done(failures, callback) { + callback(SerializableWorkerResult.create(this.events, failures)); + this.events = []; // defensive + } +} + +/** + * Serializable event data from a `Runner`. Keys of the `data` property + * beginning with `__` will be converted into a function which returns the value + * upon deserialization. + * @typedef {Object} BufferedEvent + * @property {string} name - Event name + * @property {object} data - Event parameters + */ + +module.exports = ParallelBuffered; diff --git a/node_modules/mocha/lib/nodejs/serializer.js b/node_modules/mocha/lib/nodejs/serializer.js new file mode 100644 index 00000000..b25c493b --- /dev/null +++ b/node_modules/mocha/lib/nodejs/serializer.js @@ -0,0 +1,412 @@ +/** + * Serialization/deserialization classes and functions for communication between a main Mocha process and worker processes. + * @module serializer + * @private + */ + +'use strict'; + +const {type} = require('../utils'); +const {createInvalidArgumentTypeError} = require('../errors'); +// this is not named `mocha:parallel:serializer` because it's noisy and it's +// helpful to be able to write `DEBUG=mocha:parallel*` and get everything else. +const debug = require('debug')('mocha:serializer'); + +const SERIALIZABLE_RESULT_NAME = 'SerializableWorkerResult'; +const SERIALIZABLE_TYPES = new Set(['object', 'array', 'function', 'error']); + +/** + * The serializable result of a test file run from a worker. + * @private + */ +class SerializableWorkerResult { + /** + * Creates instance props; of note, the `__type` prop. + * + * Note that the failure count is _redundant_ and could be derived from the + * list of events; but since we're already doing the work, might as well use + * it. + * @param {SerializableEvent[]} [events=[]] - Events to eventually serialize + * @param {number} [failureCount=0] - Failure count + */ + constructor(events = [], failureCount = 0) { + /** + * The number of failures in this run + * @type {number} + */ + this.failureCount = failureCount; + /** + * All relevant events emitted from the {@link Runner}. + * @type {SerializableEvent[]} + */ + this.events = events; + + /** + * Symbol-like value needed to distinguish when attempting to deserialize + * this object (once it's been received over IPC). + * @type {Readonly<"SerializableWorkerResult">} + */ + Object.defineProperty(this, '__type', { + value: SERIALIZABLE_RESULT_NAME, + enumerable: true, + writable: false + }); + } + + /** + * Instantiates a new {@link SerializableWorkerResult}. + * @param {...any} args - Args to constructor + * @returns {SerializableWorkerResult} + */ + static create(...args) { + return new SerializableWorkerResult(...args); + } + + /** + * Serializes each {@link SerializableEvent} in our `events` prop; + * makes this object read-only. + * @returns {Readonly} + */ + serialize() { + this.events.forEach(event => { + event.serialize(); + }); + return Object.freeze(this); + } + + /** + * Deserializes a {@link SerializedWorkerResult} into something reporters can + * use; calls {@link SerializableEvent.deserialize} on each item in its + * `events` prop. + * @param {SerializedWorkerResult} obj + * @returns {SerializedWorkerResult} + */ + static deserialize(obj) { + obj.events.forEach(event => { + SerializableEvent.deserialize(event); + }); + return obj; + } + + /** + * Returns `true` if this is a {@link SerializedWorkerResult} or a + * {@link SerializableWorkerResult}. + * @param {*} value - A value to check + * @returns {boolean} If true, it's deserializable + */ + static isSerializedWorkerResult(value) { + return ( + value instanceof SerializableWorkerResult || + (type(value) === 'object' && value.__type === SERIALIZABLE_RESULT_NAME) + ); + } +} + +/** + * Represents an event, emitted by a {@link Runner}, which is to be transmitted + * over IPC. + * + * Due to the contents of the event data, it's not possible to send them + * verbatim. When received by the main process--and handled by reporters--these + * objects are expected to contain {@link Runnable} instances. This class + * provides facilities to perform the translation via serialization and + * deserialization. + * @private + */ +class SerializableEvent { + /** + * Constructs a `SerializableEvent`, throwing if we receive unexpected data. + * + * Practically, events emitted from `Runner` have a minumum of zero (0) + * arguments-- (for example, {@link Runnable.constants.EVENT_RUN_BEGIN}) and a + * maximum of two (2) (for example, + * {@link Runnable.constants.EVENT_TEST_FAIL}, where the second argument is an + * `Error`). The first argument, if present, is a {@link Runnable}. This + * constructor's arguments adhere to this convention. + * @param {string} eventName - A non-empty event name. + * @param {any} [originalValue] - Some data. Corresponds to extra arguments + * passed to `EventEmitter#emit`. + * @param {Error} [originalError] - An error, if there's an error. + * @throws If `eventName` is empty, or `originalValue` is a non-object. + */ + constructor(eventName, originalValue, originalError) { + if (!eventName) { + throw createInvalidArgumentTypeError( + 'Empty `eventName` string argument', + 'eventName', + 'string' + ); + } + /** + * The event name. + * @memberof SerializableEvent + */ + this.eventName = eventName; + const originalValueType = type(originalValue); + if (originalValueType !== 'object' && originalValueType !== 'undefined') { + throw createInvalidArgumentTypeError( + `Expected object but received ${originalValueType}`, + 'originalValue', + 'object' + ); + } + /** + * An error, if present. + * @memberof SerializableEvent + */ + Object.defineProperty(this, 'originalError', { + value: originalError, + enumerable: false + }); + + /** + * The raw value. + * + * We don't want this value sent via IPC; making it non-enumerable will do that. + * + * @memberof SerializableEvent + */ + Object.defineProperty(this, 'originalValue', { + value: originalValue, + enumerable: false + }); + } + + /** + * In case you hated using `new` (I do). + * + * @param {...any} args - Args for {@link SerializableEvent#constructor}. + * @returns {SerializableEvent} A new `SerializableEvent` + */ + static create(...args) { + return new SerializableEvent(...args); + } + + /** + * Used internally by {@link SerializableEvent#serialize}. + * @ignore + * @param {Array} pairs - List of parent/key tuples to process; modified in-place. This JSDoc type is an approximation + * @param {object} parent - Some parent object + * @param {string} key - Key to inspect + * @param {WeakSet} seenObjects - For avoiding circular references + */ + static _serialize(pairs, parent, key, seenObjects) { + let value = parent[key]; + if (seenObjects.has(value)) { + parent[key] = Object.create(null); + return; + } + let _type = type(value); + if (_type === 'error') { + // we need to reference the stack prop b/c it's lazily-loaded. + // `__type` is necessary for deserialization to create an `Error` later. + // `message` is apparently not enumerable, so we must handle it specifically. + value = Object.assign(Object.create(null), value, { + stack: value.stack, + message: value.message, + __type: 'Error' + }); + parent[key] = value; + // after this, set the result of type(value) to be `object`, and we'll throw + // whatever other junk is in the original error into the new `value`. + _type = 'object'; + } + switch (_type) { + case 'object': + if (type(value.serialize) === 'function') { + parent[key] = value.serialize(); + } else { + // by adding props to the `pairs` array, we will process it further + pairs.push( + ...Object.keys(value) + .filter(key => SERIALIZABLE_TYPES.has(type(value[key]))) + .map(key => [value, key]) + ); + } + break; + case 'function': + // we _may_ want to dig in to functions for some assertion libraries + // that might put a usable property on a function. + // for now, just zap it. + delete parent[key]; + break; + case 'array': + pairs.push( + ...value + .filter(value => SERIALIZABLE_TYPES.has(type(value))) + .map((value, index) => [value, index]) + ); + break; + } + } + + /** + * Modifies this object *in place* (for theoretical memory consumption & + * performance reasons); serializes `SerializableEvent#originalValue` (placing + * the result in `SerializableEvent#data`) and `SerializableEvent#error`. + * Freezes this object. The result is an object that can be transmitted over + * IPC. + * If this quickly becomes unmaintainable, we will want to move towards immutable + * objects post-haste. + */ + serialize() { + // given a parent object and a key, inspect the value and decide whether + // to replace it, remove it, or add it to our `pairs` array to further process. + // this is recursion in loop form. + const originalValue = this.originalValue; + const result = Object.assign(Object.create(null), { + data: + type(originalValue) === 'object' && + type(originalValue.serialize) === 'function' + ? originalValue.serialize() + : originalValue, + error: this.originalError + }); + + const pairs = Object.keys(result).map(key => [result, key]); + const seenObjects = new WeakSet(); + + let pair; + while ((pair = pairs.shift())) { + SerializableEvent._serialize(pairs, ...pair, seenObjects); + seenObjects.add(pair[0]); + } + + this.data = result.data; + this.error = result.error; + + return Object.freeze(this); + } + + /** + * Used internally by {@link SerializableEvent.deserialize}; creates an `Error` + * from an `Error`-like (serialized) object + * @ignore + * @param {Object} value - An Error-like value + * @returns {Error} Real error + */ + static _deserializeError(value) { + const error = new Error(value.message); + error.stack = value.stack; + Object.assign(error, value); + delete error.__type; + return error; + } + + /** + * Used internally by {@link SerializableEvent.deserialize}; recursively + * deserializes an object in-place. + * @param {object|Array} parent - Some object or array + * @param {string|number} key - Some prop name or array index within `parent` + */ + static _deserializeObject(parent, key) { + if (key === '__proto__') { + delete parent[key]; + return; + } + const value = parent[key]; + // keys beginning with `$$` are converted into functions returning the value + // and renamed, stripping the `$$` prefix. + // functions defined this way cannot be array members! + if (type(key) === 'string' && key.startsWith('$$')) { + const newKey = key.slice(2); + parent[newKey] = () => value; + delete parent[key]; + key = newKey; + } + if (type(value) === 'array') { + value.forEach((_, idx) => { + SerializableEvent._deserializeObject(value, idx); + }); + } else if (type(value) === 'object') { + if (value.__type === 'Error') { + parent[key] = SerializableEvent._deserializeError(value); + } else { + Object.keys(value).forEach(key => { + SerializableEvent._deserializeObject(value, key); + }); + } + } + } + + /** + * Deserialize value returned from a worker into something more useful. + * Does not return the same object. + * @todo do this in a loop instead of with recursion (if necessary) + * @param {SerializedEvent} obj - Object returned from worker + * @returns {SerializedEvent} Deserialized result + */ + static deserialize(obj) { + if (!obj) { + throw createInvalidArgumentTypeError('Expected value', obj); + } + + obj = Object.assign(Object.create(null), obj); + + if (obj.data) { + Object.keys(obj.data).forEach(key => { + SerializableEvent._deserializeObject(obj.data, key); + }); + } + + if (obj.error) { + obj.error = SerializableEvent._deserializeError(obj.error); + } + + return obj; + } +} + +/** + * "Serializes" a value for transmission over IPC as a message. + * + * If value is an object and has a `serialize()` method, call that method; otherwise return the object and hope for the best. + * + * @param {*} [value] - A value to serialize + */ +exports.serialize = function serialize(value) { + const result = + type(value) === 'object' && type(value.serialize) === 'function' + ? value.serialize() + : value; + debug('serialized: %O', result); + return result; +}; + +/** + * "Deserializes" a "message" received over IPC. + * + * This could be expanded with other objects that need deserialization, + * but at present time we only care about {@link SerializableWorkerResult} objects. + * + * @param {*} [value] - A "message" to deserialize + */ +exports.deserialize = function deserialize(value) { + const result = SerializableWorkerResult.isSerializedWorkerResult(value) + ? SerializableWorkerResult.deserialize(value) + : value; + debug('deserialized: %O', result); + return result; +}; + +exports.SerializableEvent = SerializableEvent; +exports.SerializableWorkerResult = SerializableWorkerResult; + +/** + * The result of calling `SerializableEvent.serialize`, as received + * by the deserializer. + * @private + * @typedef {Object} SerializedEvent + * @property {object?} data - Optional serialized data + * @property {object?} error - Optional serialized `Error` + */ + +/** + * The result of calling `SerializableWorkerResult.serialize` as received + * by the deserializer. + * @private + * @typedef {Object} SerializedWorkerResult + * @property {number} failureCount - Number of failures + * @property {SerializedEvent[]} events - Serialized events + * @property {"SerializedWorkerResult"} __type - Symbol-like to denote the type of object this is + */ diff --git a/node_modules/mocha/lib/nodejs/worker.js b/node_modules/mocha/lib/nodejs/worker.js new file mode 100644 index 00000000..cf5655e8 --- /dev/null +++ b/node_modules/mocha/lib/nodejs/worker.js @@ -0,0 +1,151 @@ +/** + * A worker process. Consumes {@link module:reporters/parallel-buffered} reporter. + * @module worker + * @private + */ + +'use strict'; + +const { + createInvalidArgumentTypeError, + createInvalidArgumentValueError +} = require('../errors'); +const workerpool = require('workerpool'); +const Mocha = require('../mocha'); +const {handleRequires, validateLegacyPlugin} = require('../cli/run-helpers'); +const d = require('debug'); +const debug = d.debug(`mocha:parallel:worker:${process.pid}`); +const isDebugEnabled = d.enabled(`mocha:parallel:worker:${process.pid}`); +const {serialize} = require('./serializer'); +const {setInterval, clearInterval} = global; + +let rootHooks; + +if (workerpool.isMainThread) { + throw new Error( + 'This script is intended to be run as a worker (by the `workerpool` package).' + ); +} + +/** + * Initializes some stuff on the first call to {@link run}. + * + * Handles `--require` and `--ui`. Does _not_ handle `--reporter`, + * as only the `Buffered` reporter is used. + * + * **This function only runs once per worker**; it overwrites itself with a no-op + * before returning. + * + * @param {Options} argv - Command-line options + */ +let bootstrap = async argv => { + // globalSetup and globalTeardown do not run in workers + const plugins = await handleRequires(argv.require, { + ignoredPlugins: ['mochaGlobalSetup', 'mochaGlobalTeardown'] + }); + validateLegacyPlugin(argv, 'ui', Mocha.interfaces); + + rootHooks = plugins.rootHooks; + bootstrap = () => {}; + debug('bootstrap(): finished with args: %O', argv); +}; + +/** + * Runs a single test file in a worker thread. + * @param {string} filepath - Filepath of test file + * @param {string} [serializedOptions] - **Serialized** options. This string will be eval'd! + * @see https://npm.im/serialize-javascript + * @returns {Promise<{failures: number, events: BufferedEvent[]}>} - Test + * failure count and list of events. + */ +async function run(filepath, serializedOptions = '{}') { + if (!filepath) { + throw createInvalidArgumentTypeError( + 'Expected a non-empty "filepath" argument', + 'file', + 'string' + ); + } + + debug('run(): running test file %s', filepath); + + if (typeof serializedOptions !== 'string') { + throw createInvalidArgumentTypeError( + 'run() expects second parameter to be a string which was serialized by the `serialize-javascript` module', + 'serializedOptions', + 'string' + ); + } + let argv; + try { + // eslint-disable-next-line no-eval + argv = eval('(' + serializedOptions + ')'); + } catch (err) { + throw createInvalidArgumentValueError( + 'run() was unable to deserialize the options', + 'serializedOptions', + serializedOptions + ); + } + + const opts = Object.assign({ui: 'bdd'}, argv, { + // if this was true, it would cause infinite recursion. + parallel: false, + // this doesn't work in parallel mode + forbidOnly: true, + // it's useful for a Mocha instance to know if it's running in a worker process. + isWorker: true + }); + + await bootstrap(opts); + + opts.rootHooks = rootHooks; + + const mocha = new Mocha(opts).addFile(filepath); + + try { + await mocha.loadFilesAsync(); + } catch (err) { + debug('run(): could not load file %s: %s', filepath, err); + throw err; + } + + return new Promise((resolve, reject) => { + let debugInterval; + /* istanbul ignore next */ + if (isDebugEnabled) { + debugInterval = setInterval(() => { + debug('run(): still running %s...', filepath); + }, 5000).unref(); + } + mocha.run(result => { + // Runner adds these; if we don't remove them, we'll get a leak. + process.removeAllListeners('uncaughtException'); + process.removeAllListeners('unhandledRejection'); + + try { + const serialized = serialize(result); + debug( + 'run(): completed run with %d test failures; returning to main process', + typeof result.failures === 'number' ? result.failures : 0 + ); + resolve(serialized); + } catch (err) { + // TODO: figure out exactly what the sad path looks like here. + // rejection should only happen if an error is "unrecoverable" + debug('run(): serialization failed; rejecting: %O', err); + reject(err); + } finally { + clearInterval(debugInterval); + } + }); + }); +} + +// this registers the `run` function. +workerpool.worker({run}); + +debug('started worker process'); + +// for testing +exports.run = run; diff --git a/node_modules/mocha/lib/plugin-loader.js b/node_modules/mocha/lib/plugin-loader.js new file mode 100644 index 00000000..075ad91b --- /dev/null +++ b/node_modules/mocha/lib/plugin-loader.js @@ -0,0 +1,286 @@ +/** + * Provides a way to load "plugins" as provided by the user. + * + * Currently supports: + * + * - Root hooks + * - Global fixtures (setup/teardown) + * @private + * @module plugin + */ + +'use strict'; + +const debug = require('debug')('mocha:plugin-loader'); +const { + createInvalidPluginDefinitionError, + createInvalidPluginImplementationError +} = require('./errors'); +const {castArray} = require('./utils'); + +/** + * Built-in plugin definitions. + */ +const MochaPlugins = [ + /** + * Root hook plugin definition + * @type {PluginDefinition} + */ + { + exportName: 'mochaHooks', + optionName: 'rootHooks', + validate(value) { + if ( + Array.isArray(value) || + (typeof value !== 'function' && typeof value !== 'object') + ) { + throw createInvalidPluginImplementationError( + `mochaHooks must be an object or a function returning (or fulfilling with) an object` + ); + } + }, + async finalize(rootHooks) { + if (rootHooks.length) { + const rootHookObjects = await Promise.all( + rootHooks.map(async hook => + typeof hook === 'function' ? hook() : hook + ) + ); + + return rootHookObjects.reduce( + (acc, hook) => { + hook = { + beforeAll: [], + beforeEach: [], + afterAll: [], + afterEach: [], + ...hook + }; + return { + beforeAll: [...acc.beforeAll, ...castArray(hook.beforeAll)], + beforeEach: [...acc.beforeEach, ...castArray(hook.beforeEach)], + afterAll: [...acc.afterAll, ...castArray(hook.afterAll)], + afterEach: [...acc.afterEach, ...castArray(hook.afterEach)] + }; + }, + {beforeAll: [], beforeEach: [], afterAll: [], afterEach: []} + ); + } + } + }, + /** + * Global setup fixture plugin definition + * @type {PluginDefinition} + */ + { + exportName: 'mochaGlobalSetup', + optionName: 'globalSetup', + validate(value) { + let isValid = true; + if (Array.isArray(value)) { + if (value.some(item => typeof item !== 'function')) { + isValid = false; + } + } else if (typeof value !== 'function') { + isValid = false; + } + if (!isValid) { + throw createInvalidPluginImplementationError( + `mochaGlobalSetup must be a function or an array of functions`, + {pluginDef: this, pluginImpl: value} + ); + } + } + }, + /** + * Global teardown fixture plugin definition + * @type {PluginDefinition} + */ + { + exportName: 'mochaGlobalTeardown', + optionName: 'globalTeardown', + validate(value) { + let isValid = true; + if (Array.isArray(value)) { + if (value.some(item => typeof item !== 'function')) { + isValid = false; + } + } else if (typeof value !== 'function') { + isValid = false; + } + if (!isValid) { + throw createInvalidPluginImplementationError( + `mochaGlobalTeardown must be a function or an array of functions`, + {pluginDef: this, pluginImpl: value} + ); + } + } + } +]; + +/** + * Contains a registry of [plugin definitions]{@link PluginDefinition} and discovers plugin implementations in user-supplied code. + * + * - [load()]{@link #load} should be called for all required modules + * - The result of [finalize()]{@link #finalize} should be merged into the options for the [Mocha]{@link Mocha} constructor. + * @private + */ +class PluginLoader { + /** + * Initializes plugin names, plugin map, etc. + * @param {PluginLoaderOptions} [opts] - Options + */ + constructor({pluginDefs = MochaPlugins, ignore = []} = {}) { + /** + * Map of registered plugin defs + * @type {Map} + */ + this.registered = new Map(); + + /** + * Cache of known `optionName` values for checking conflicts + * @type {Set} + */ + this.knownOptionNames = new Set(); + + /** + * Cache of known `exportName` values for checking conflicts + * @type {Set} + */ + this.knownExportNames = new Set(); + + /** + * Map of user-supplied plugin implementations + * @type {Map>} + */ + this.loaded = new Map(); + + /** + * Set of ignored plugins by export name + * @type {Set} + */ + this.ignoredExportNames = new Set(castArray(ignore)); + + castArray(pluginDefs).forEach(pluginDef => { + this.register(pluginDef); + }); + + debug( + 'registered %d plugin defs (%d ignored)', + this.registered.size, + this.ignoredExportNames.size + ); + } + + /** + * Register a plugin + * @param {PluginDefinition} pluginDef - Plugin definition + */ + register(pluginDef) { + if (!pluginDef || typeof pluginDef !== 'object') { + throw createInvalidPluginDefinitionError( + 'pluginDef is non-object or falsy', + pluginDef + ); + } + if (!pluginDef.exportName) { + throw createInvalidPluginDefinitionError( + `exportName is expected to be a non-empty string`, + pluginDef + ); + } + let {exportName} = pluginDef; + if (this.ignoredExportNames.has(exportName)) { + debug( + 'refusing to register ignored plugin with export name "%s"', + exportName + ); + return; + } + exportName = String(exportName); + pluginDef.optionName = String(pluginDef.optionName || exportName); + if (this.knownExportNames.has(exportName)) { + throw createInvalidPluginDefinitionError( + `Plugin definition conflict: ${exportName}; exportName must be unique`, + pluginDef + ); + } + this.loaded.set(exportName, []); + this.registered.set(exportName, pluginDef); + this.knownExportNames.add(exportName); + this.knownOptionNames.add(pluginDef.optionName); + debug('registered plugin def "%s"', exportName); + } + + /** + * Inspects a module's exports for known plugins and keeps them in memory. + * + * @param {*} requiredModule - The exports of a module loaded via `--require` + * @returns {boolean} If one or more plugins was found, return `true`. + */ + load(requiredModule) { + // we should explicitly NOT fail if other stuff is exported. + // we only care about the plugins we know about. + if (requiredModule && typeof requiredModule === 'object') { + return Array.from(this.knownExportNames).reduce( + (pluginImplFound, pluginName) => { + const pluginImpl = requiredModule[pluginName]; + if (pluginImpl) { + const plugin = this.registered.get(pluginName); + if (typeof plugin.validate === 'function') { + plugin.validate(pluginImpl); + } + this.loaded.set(pluginName, [ + ...this.loaded.get(pluginName), + ...castArray(pluginImpl) + ]); + return true; + } + return pluginImplFound; + }, + false + ); + } + return false; + } + + /** + * Call the `finalize()` function of each known plugin definition on the plugins found by [load()]{@link PluginLoader#load}. + * + * Output suitable for passing as input into {@link Mocha} constructor. + * @returns {Promise} Object having keys corresponding to registered plugin definitions' `optionName` prop (or `exportName`, if none), and the values are the implementations as provided by a user. + */ + async finalize() { + const finalizedPlugins = Object.create(null); + + for await (const [exportName, pluginImpls] of this.loaded.entries()) { + if (pluginImpls.length) { + const plugin = this.registered.get(exportName); + finalizedPlugins[plugin.optionName] = + typeof plugin.finalize === 'function' + ? await plugin.finalize(pluginImpls) + : pluginImpls; + } + } + + debug('finalized plugins: %O', finalizedPlugins); + return finalizedPlugins; + } + + /** + * Constructs a {@link PluginLoader} + * @param {PluginLoaderOptions} [opts] - Plugin loader options + */ + static create({pluginDefs = MochaPlugins, ignore = []} = {}) { + return new PluginLoader({pluginDefs, ignore}); + } +} + +module.exports = PluginLoader; + +/** + * Options for {@link PluginLoader} + * @typedef {Object} PluginLoaderOptions + * @property {PluginDefinition[]} [pluginDefs] - Plugin definitions + * @property {string[]} [ignore] - A list of plugins to ignore when loading + */ diff --git a/node_modules/mocha/lib/stats-collector.js b/node_modules/mocha/lib/stats-collector.js new file mode 100644 index 00000000..738fd5d7 --- /dev/null +++ b/node_modules/mocha/lib/stats-collector.js @@ -0,0 +1,83 @@ +'use strict'; + +/** + * Provides a factory function for a {@link StatsCollector} object. + * @module + */ + +var constants = require('./runner').constants; +var EVENT_TEST_PASS = constants.EVENT_TEST_PASS; +var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL; +var EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN; +var EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN; +var EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING; +var EVENT_RUN_END = constants.EVENT_RUN_END; +var EVENT_TEST_END = constants.EVENT_TEST_END; + +/** + * Test statistics collector. + * + * @public + * @typedef {Object} StatsCollector + * @property {number} suites - integer count of suites run. + * @property {number} tests - integer count of tests run. + * @property {number} passes - integer count of passing tests. + * @property {number} pending - integer count of pending tests. + * @property {number} failures - integer count of failed tests. + * @property {Date} start - time when testing began. + * @property {Date} end - time when testing concluded. + * @property {number} duration - number of msecs that testing took. + */ + +var Date = global.Date; + +/** + * Provides stats such as test duration, number of tests passed / failed etc., by listening for events emitted by `runner`. + * + * @private + * @param {Runner} runner - Runner instance + * @throws {TypeError} If falsy `runner` + */ +function createStatsCollector(runner) { + /** + * @type StatsCollector + */ + var stats = { + suites: 0, + tests: 0, + passes: 0, + pending: 0, + failures: 0 + }; + + if (!runner) { + throw new TypeError('Missing runner argument'); + } + + runner.stats = stats; + + runner.once(EVENT_RUN_BEGIN, function () { + stats.start = new Date(); + }); + runner.on(EVENT_SUITE_BEGIN, function (suite) { + suite.root || stats.suites++; + }); + runner.on(EVENT_TEST_PASS, function () { + stats.passes++; + }); + runner.on(EVENT_TEST_FAIL, function () { + stats.failures++; + }); + runner.on(EVENT_TEST_PENDING, function () { + stats.pending++; + }); + runner.on(EVENT_TEST_END, function () { + stats.tests++; + }); + runner.once(EVENT_RUN_END, function () { + stats.end = new Date(); + stats.duration = stats.end - stats.start; + }); +} + +module.exports = createStatsCollector; diff --git a/node_modules/mocha/mocha.js.map b/node_modules/mocha/mocha.js.map new file mode 100644 index 00000000..ada49c03 --- /dev/null +++ b/node_modules/mocha/mocha.js.map @@ -0,0 +1 @@ +{"version":3,"file":"mocha.js","sources":["node_modules/rollup-plugin-node-globals/src/global.js","node_modules/process-es6/browser.js","node_modules/browser-stdout/index.js","lib/browser/parse-query.js","lib/browser/highlight-tags.js","node_modules/escape-string-regexp/index.js","node_modules/diff/lib/diff/base.js","node_modules/diff/lib/diff/character.js","node_modules/diff/lib/util/params.js","node_modules/diff/lib/diff/word.js","node_modules/diff/lib/diff/line.js","node_modules/diff/lib/diff/sentence.js","node_modules/diff/lib/diff/css.js","node_modules/diff/lib/diff/json.js","node_modules/diff/lib/diff/array.js","node_modules/diff/lib/patch/parse.js","node_modules/diff/lib/util/distance-iterator.js","node_modules/diff/lib/patch/apply.js","node_modules/diff/lib/patch/create.js","node_modules/diff/lib/util/array.js","node_modules/diff/lib/patch/merge.js","node_modules/diff/lib/convert/dmp.js","node_modules/diff/lib/convert/xml.js","node_modules/diff/lib/index.js","node_modules/ms/index.js","node_modules/buffer-es6/base64.js","node_modules/buffer-es6/ieee754.js","node_modules/buffer-es6/isArray.js","node_modules/buffer-es6/index.js","node_modules/rollup-plugin-node-globals/src/browser.js","node_modules/nanoid/non-secure/index.cjs","node_modules/he/he.js","lib/utils.js","node_modules/log-symbols/browser.js","lib/pending.js","node_modules/debug/node_modules/ms/index.js","node_modules/debug/src/common.js","node_modules/debug/src/browser.js","lib/errors.js","lib/runnable.js","lib/hook.js","lib/suite.js","lib/runner.js","lib/reporters/base.js","lib/reporters/dot.js","lib/reporters/doc.js","lib/reporters/tap.js","lib/reporters/json.js","lib/browser/progress.js","lib/reporters/html.js","lib/reporters/list.js","lib/reporters/min.js","lib/reporters/spec.js","lib/reporters/nyan.js","lib/reporters/xunit.js","lib/reporters/markdown.js","lib/reporters/progress.js","lib/reporters/landing.js","lib/reporters/json-stream.js","lib/reporters/index.js","lib/stats-collector.js","lib/test.js","lib/interfaces/common.js","lib/interfaces/bdd.js","lib/interfaces/tdd.js","lib/interfaces/qunit.js","lib/interfaces/exports.js","lib/interfaces/index.js","lib/context.js","lib/mocha.js","browser-entry.js"],"sourcesContent":["export default (typeof global !== \"undefined\" ? global :\n typeof self !== \"undefined\" ? self :\n typeof window !== \"undefined\" ? window : {});\n","// shim for using process in browser\n// based off https://github.com/defunctzombie/node-process/blob/master/browser.js\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\nvar cachedSetTimeout = defaultSetTimout;\nvar cachedClearTimeout = defaultClearTimeout;\nif (typeof global.setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n}\nif (typeof global.clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n}\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\nexport function nextTick(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n}\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nexport var title = 'browser';\nexport var platform = 'browser';\nexport var browser = true;\nexport var env = {};\nexport var argv = [];\nexport var version = ''; // empty string to avoid regexp issues\nexport var versions = {};\nexport var release = {};\nexport var config = {};\n\nfunction noop() {}\n\nexport var on = noop;\nexport var addListener = noop;\nexport var once = noop;\nexport var off = noop;\nexport var removeListener = noop;\nexport var removeAllListeners = noop;\nexport var emit = noop;\n\nexport function binding(name) {\n throw new Error('process.binding is not supported');\n}\n\nexport function cwd () { return '/' }\nexport function chdir (dir) {\n throw new Error('process.chdir is not supported');\n};\nexport function umask() { return 0; }\n\n// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\nvar performance = global.performance || {}\nvar performanceNow =\n performance.now ||\n performance.mozNow ||\n performance.msNow ||\n performance.oNow ||\n performance.webkitNow ||\n function(){ return (new Date()).getTime() }\n\n// generate timestamp or delta\n// see http://nodejs.org/api/process.html#process_process_hrtime\nexport function hrtime(previousTimestamp){\n var clocktime = performanceNow.call(performance)*1e-3\n var seconds = Math.floor(clocktime)\n var nanoseconds = Math.floor((clocktime%1)*1e9)\n if (previousTimestamp) {\n seconds = seconds - previousTimestamp[0]\n nanoseconds = nanoseconds - previousTimestamp[1]\n if (nanoseconds<0) {\n seconds--\n nanoseconds += 1e9\n }\n }\n return [seconds,nanoseconds]\n}\n\nvar startTime = new Date();\nexport function uptime() {\n var currentTime = new Date();\n var dif = currentTime - startTime;\n return dif / 1000;\n}\n\nexport default {\n nextTick: nextTick,\n title: title,\n browser: browser,\n env: env,\n argv: argv,\n version: version,\n versions: versions,\n on: on,\n addListener: addListener,\n once: once,\n off: off,\n removeListener: removeListener,\n removeAllListeners: removeAllListeners,\n emit: emit,\n binding: binding,\n cwd: cwd,\n chdir: chdir,\n umask: umask,\n hrtime: hrtime,\n platform: platform,\n release: release,\n config: config,\n uptime: uptime\n};\n","var WritableStream = require('stream').Writable\nvar inherits = require('util').inherits\n\nmodule.exports = BrowserStdout\n\n\ninherits(BrowserStdout, WritableStream)\n\nfunction BrowserStdout(opts) {\n if (!(this instanceof BrowserStdout)) return new BrowserStdout(opts)\n\n opts = opts || {}\n WritableStream.call(this, opts)\n this.label = (opts.label !== undefined) ? opts.label : 'stdout'\n}\n\nBrowserStdout.prototype._write = function(chunks, encoding, cb) {\n var output = chunks.toString ? chunks.toString() : chunks\n if (this.label === false) {\n console.log(output)\n } else {\n console.log(this.label+':', output)\n }\n process.nextTick(cb)\n}\n","'use strict';\n\n/**\n * Parse the given `qs`.\n *\n * @private\n * @param {string} qs\n * @return {Object}\n */\nmodule.exports = function parseQuery(qs) {\n return qs\n .replace('?', '')\n .split('&')\n .reduce(function (obj, pair) {\n var i = pair.indexOf('=');\n var key = pair.slice(0, i);\n var val = pair.slice(++i);\n\n // Due to how the URLSearchParams API treats spaces\n obj[key] = decodeURIComponent(val.replace(/\\+/g, '%20'));\n\n return obj;\n }, {});\n};\n","'use strict';\n\n/**\n * Highlight the given string of `js`.\n *\n * @private\n * @param {string} js\n * @return {string}\n */\nfunction highlight(js) {\n return js\n .replace(//g, '>')\n .replace(/\\/\\/(.*)/gm, '//$1')\n .replace(/('.*?')/gm, '$1')\n .replace(/(\\d+\\.\\d+)/gm, '$1')\n .replace(/(\\d+)/gm, '$1')\n .replace(\n /\\bnew[ \\t]+(\\w+)/gm,\n 'new $1'\n )\n .replace(\n /\\b(function|new|throw|return|var|if|else)\\b/gm,\n '$1'\n );\n}\n\n/**\n * Highlight the contents of tag `name`.\n *\n * @private\n * @param {string} name\n */\nmodule.exports = function highlightTags(name) {\n var code = document.getElementById('mocha').getElementsByTagName(name);\n for (var i = 0, len = code.length; i < len; ++i) {\n code[i].innerHTML = highlight(code[i].innerHTML);\n }\n};\n","'use strict';\n\nmodule.exports = string => {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a \\unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n};\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = Diff;\n\n/*istanbul ignore end*/\nfunction Diff() {}\n\nDiff.prototype = {\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n diff: function diff(oldString, newString) {\n /*istanbul ignore start*/\n var\n /*istanbul ignore end*/\n options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var callback = options.callback;\n\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n this.options = options;\n var self = this;\n\n function done(value) {\n if (callback) {\n setTimeout(function () {\n callback(undefined, value);\n }, 0);\n return true;\n } else {\n return value;\n }\n } // Allow subclasses to massage the input prior to running\n\n\n oldString = this.castInput(oldString);\n newString = this.castInput(newString);\n oldString = this.removeEmpty(this.tokenize(oldString));\n newString = this.removeEmpty(this.tokenize(newString));\n var newLen = newString.length,\n oldLen = oldString.length;\n var editLength = 1;\n var maxEditLength = newLen + oldLen;\n var bestPath = [{\n newPos: -1,\n components: []\n }]; // Seed editLength = 0, i.e. the content starts with the same values\n\n var oldPos = this.extractCommon(bestPath[0], newString, oldString, 0);\n\n if (bestPath[0].newPos + 1 >= newLen && oldPos + 1 >= oldLen) {\n // Identity per the equality and tokenizer\n return done([{\n value: this.join(newString),\n count: newString.length\n }]);\n } // Main worker method. checks all permutations of a given edit length for acceptance.\n\n\n function execEditLength() {\n for (var diagonalPath = -1 * editLength; diagonalPath <= editLength; diagonalPath += 2) {\n var basePath =\n /*istanbul ignore start*/\n void 0\n /*istanbul ignore end*/\n ;\n\n var addPath = bestPath[diagonalPath - 1],\n removePath = bestPath[diagonalPath + 1],\n _oldPos = (removePath ? removePath.newPos : 0) - diagonalPath;\n\n if (addPath) {\n // No one else is going to attempt to use this value, clear it\n bestPath[diagonalPath - 1] = undefined;\n }\n\n var canAdd = addPath && addPath.newPos + 1 < newLen,\n canRemove = removePath && 0 <= _oldPos && _oldPos < oldLen;\n\n if (!canAdd && !canRemove) {\n // If this path is a terminal then prune\n bestPath[diagonalPath] = undefined;\n continue;\n } // Select the diagonal that we want to branch from. We select the prior\n // path whose position in the new string is the farthest from the origin\n // and does not pass the bounds of the diff graph\n\n\n if (!canAdd || canRemove && addPath.newPos < removePath.newPos) {\n basePath = clonePath(removePath);\n self.pushComponent(basePath.components, undefined, true);\n } else {\n basePath = addPath; // No need to clone, we've pulled it from the list\n\n basePath.newPos++;\n self.pushComponent(basePath.components, true, undefined);\n }\n\n _oldPos = self.extractCommon(basePath, newString, oldString, diagonalPath); // If we have hit the end of both strings, then we are done\n\n if (basePath.newPos + 1 >= newLen && _oldPos + 1 >= oldLen) {\n return done(buildValues(self, basePath.components, newString, oldString, self.useLongestToken));\n } else {\n // Otherwise track this path as a potential candidate and continue.\n bestPath[diagonalPath] = basePath;\n }\n }\n\n editLength++;\n } // Performs the length of edit iteration. Is a bit fugly as this has to support the\n // sync and async mode which is never fun. Loops over execEditLength until a value\n // is produced.\n\n\n if (callback) {\n (function exec() {\n setTimeout(function () {\n // This should not happen, but we want to be safe.\n\n /* istanbul ignore next */\n if (editLength > maxEditLength) {\n return callback();\n }\n\n if (!execEditLength()) {\n exec();\n }\n }, 0);\n })();\n } else {\n while (editLength <= maxEditLength) {\n var ret = execEditLength();\n\n if (ret) {\n return ret;\n }\n }\n }\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n pushComponent: function pushComponent(components, added, removed) {\n var last = components[components.length - 1];\n\n if (last && last.added === added && last.removed === removed) {\n // We need to clone here as the component clone operation is just\n // as shallow array clone\n components[components.length - 1] = {\n count: last.count + 1,\n added: added,\n removed: removed\n };\n } else {\n components.push({\n count: 1,\n added: added,\n removed: removed\n });\n }\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n extractCommon: function extractCommon(basePath, newString, oldString, diagonalPath) {\n var newLen = newString.length,\n oldLen = oldString.length,\n newPos = basePath.newPos,\n oldPos = newPos - diagonalPath,\n commonCount = 0;\n\n while (newPos + 1 < newLen && oldPos + 1 < oldLen && this.equals(newString[newPos + 1], oldString[oldPos + 1])) {\n newPos++;\n oldPos++;\n commonCount++;\n }\n\n if (commonCount) {\n basePath.components.push({\n count: commonCount\n });\n }\n\n basePath.newPos = newPos;\n return oldPos;\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n equals: function equals(left, right) {\n if (this.options.comparator) {\n return this.options.comparator(left, right);\n } else {\n return left === right || this.options.ignoreCase && left.toLowerCase() === right.toLowerCase();\n }\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n removeEmpty: function removeEmpty(array) {\n var ret = [];\n\n for (var i = 0; i < array.length; i++) {\n if (array[i]) {\n ret.push(array[i]);\n }\n }\n\n return ret;\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n castInput: function castInput(value) {\n return value;\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n tokenize: function tokenize(value) {\n return value.split('');\n },\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n join: function join(chars) {\n return chars.join('');\n }\n};\n\nfunction buildValues(diff, components, newString, oldString, useLongestToken) {\n var componentPos = 0,\n componentLen = components.length,\n newPos = 0,\n oldPos = 0;\n\n for (; componentPos < componentLen; componentPos++) {\n var component = components[componentPos];\n\n if (!component.removed) {\n if (!component.added && useLongestToken) {\n var value = newString.slice(newPos, newPos + component.count);\n value = value.map(function (value, i) {\n var oldValue = oldString[oldPos + i];\n return oldValue.length > value.length ? oldValue : value;\n });\n component.value = diff.join(value);\n } else {\n component.value = diff.join(newString.slice(newPos, newPos + component.count));\n }\n\n newPos += component.count; // Common case\n\n if (!component.added) {\n oldPos += component.count;\n }\n } else {\n component.value = diff.join(oldString.slice(oldPos, oldPos + component.count));\n oldPos += component.count; // Reverse add and remove so removes are output first to match common convention\n // The diffing algorithm is tied to add then remove output and this is the simplest\n // route to get the desired output with minimal overhead.\n\n if (componentPos && components[componentPos - 1].added) {\n var tmp = components[componentPos - 1];\n components[componentPos - 1] = components[componentPos];\n components[componentPos] = tmp;\n }\n }\n } // Special case handle for when one terminal is ignored (i.e. whitespace).\n // For this case we merge the terminal into the prior string and drop the change.\n // This is only available for string mode.\n\n\n var lastComponent = components[componentLen - 1];\n\n if (componentLen > 1 && typeof lastComponent.value === 'string' && (lastComponent.added || lastComponent.removed) && diff.equals('', lastComponent.value)) {\n components[componentLen - 2].value += lastComponent.value;\n components.pop();\n }\n\n return components;\n}\n\nfunction clonePath(path) {\n return {\n newPos: path.newPos,\n components: path.components.slice(0)\n };\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOlsiRGlmZiIsInByb3RvdHlwZSIsImRpZmYiLCJvbGRTdHJpbmciLCJuZXdTdHJpbmciLCJvcHRpb25zIiwiY2FsbGJhY2siLCJzZWxmIiwiZG9uZSIsInZhbHVlIiwic2V0VGltZW91dCIsInVuZGVmaW5lZCIsImNhc3RJbnB1dCIsInJlbW92ZUVtcHR5IiwidG9rZW5pemUiLCJuZXdMZW4iLCJsZW5ndGgiLCJvbGRMZW4iLCJlZGl0TGVuZ3RoIiwibWF4RWRpdExlbmd0aCIsImJlc3RQYXRoIiwibmV3UG9zIiwiY29tcG9uZW50cyIsIm9sZFBvcyIsImV4dHJhY3RDb21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vbXBvbmVudC52YWx1ZSkpIHtcbiAgICBjb21wb25lbnRzW2NvbXBvbmVudExlbiAtIDJdLnZhbHVlICs9IGxhc3RDb21wb25lbnQudmFsdWU7XG4gICAgY29tcG9uZW50cy5wb3AoKTtcbiAgfVxuXG4gIHJldHVybiBjb21wb25lbnRzO1xufVxuXG5mdW5jdGlvbiBjbG9uZVBhdGgocGF0aCkge1xuICByZXR1cm4geyBuZXdQb3M6IHBhdGgubmV3UG9zLCBjb21wb25lbnRzOiBwYXRoLmNvbXBvbmVudHMuc2xpY2UoMCkgfTtcbn1cbiJdfQ==\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffChars = diffChars;\nexports.characterDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nvar characterDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.characterDiff = characterDiff;\n\n/*istanbul ignore end*/\nfunction diffChars(oldStr, newStr, options) {\n return characterDiff.diff(oldStr, newStr, options);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2NoYXJhY3Rlci5qcyJdLCJuYW1lcyI6WyJjaGFyYWN0ZXJEaWZmIiwiRGlmZiIsImRpZmZDaGFycyIsIm9sZFN0ciIsIm5ld1N0ciIsIm9wdGlvbnMiLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7Ozs7QUFFTyxJQUFNQSxhQUFhLEdBQUc7QUFBSUM7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUEsQ0FBSixFQUF0Qjs7Ozs7O0FBQ0EsU0FBU0MsU0FBVCxDQUFtQkMsTUFBbkIsRUFBMkJDLE1BQTNCLEVBQW1DQyxPQUFuQyxFQUE0QztBQUFFLFNBQU9MLGFBQWEsQ0FBQ00sSUFBZCxDQUFtQkgsTUFBbkIsRUFBMkJDLE1BQTNCLEVBQW1DQyxPQUFuQyxDQUFQO0FBQXFEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNoYXJhY3RlckRpZmYgPSBuZXcgRGlmZigpO1xuZXhwb3J0IGZ1bmN0aW9uIGRpZmZDaGFycyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykgeyByZXR1cm4gY2hhcmFjdGVyRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTsgfVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.generateOptions = generateOptions;\n\n/*istanbul ignore end*/\nfunction generateOptions(options, defaults) {\n if (typeof options === 'function') {\n defaults.callback = options;\n } else if (options) {\n for (var name in options) {\n /* istanbul ignore else */\n if (options.hasOwnProperty(name)) {\n defaults[name] = options[name];\n }\n }\n }\n\n return defaults;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcmFtcy5qcyJdLCJuYW1lcyI6WyJnZW5lcmF0ZU9wdGlvbnMiLCJvcHRpb25zIiwiZGVmYXVsdHMiLCJjYWxsYmFjayIsIm5hbWUiLCJoYXNPd25Qcm9wZXJ0eSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQU8sU0FBU0EsZUFBVCxDQUF5QkMsT0FBekIsRUFBa0NDLFFBQWxDLEVBQTRDO0FBQ2pELE1BQUksT0FBT0QsT0FBUCxLQUFtQixVQUF2QixFQUFtQztBQUNqQ0MsSUFBQUEsUUFBUSxDQUFDQyxRQUFULEdBQW9CRixPQUFwQjtBQUNELEdBRkQsTUFFTyxJQUFJQSxPQUFKLEVBQWE7QUFDbEIsU0FBSyxJQUFJRyxJQUFULElBQWlCSCxPQUFqQixFQUEwQjtBQUN4QjtBQUNBLFVBQUlBLE9BQU8sQ0FBQ0ksY0FBUixDQUF1QkQsSUFBdkIsQ0FBSixFQUFrQztBQUNoQ0YsUUFBQUEsUUFBUSxDQUFDRSxJQUFELENBQVIsR0FBaUJILE9BQU8sQ0FBQ0csSUFBRCxDQUF4QjtBQUNEO0FBQ0Y7QUFDRjs7QUFDRCxTQUFPRixRQUFQO0FBQ0QiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZnVuY3Rpb24gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIGRlZmF1bHRzKSB7XG4gIGlmICh0eXBlb2Ygb3B0aW9ucyA9PT0gJ2Z1bmN0aW9uJykge1xuICAgIGRlZmF1bHRzLmNhbGxiYWNrID0gb3B0aW9ucztcbiAgfSBlbHNlIGlmIChvcHRpb25zKSB7XG4gICAgZm9yIChsZXQgbmFtZSBpbiBvcHRpb25zKSB7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9wdGlvbnMuaGFzT3duUHJvcGVydHkobmFtZSkpIHtcbiAgICAgICAgZGVmYXVsdHNbbmFtZV0gPSBvcHRpb25zW25hbWVdO1xuICAgICAgfVxuICAgIH1cbiAgfVxuICByZXR1cm4gZGVmYXVsdHM7XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffWords = diffWords;\nexports.diffWordsWithSpace = diffWordsWithSpace;\nexports.wordDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_params = require(\"../util/params\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\n// Based on https://en.wikipedia.org/wiki/Latin_script_in_Unicode\n//\n// Ranges and exceptions:\n// Latin-1 Supplement, 0080–00FF\n// - U+00D7 × Multiplication sign\n// - U+00F7 ÷ Division sign\n// Latin Extended-A, 0100–017F\n// Latin Extended-B, 0180–024F\n// IPA Extensions, 0250–02AF\n// Spacing Modifier Letters, 02B0–02FF\n// - U+02C7 ˇ ˇ Caron\n// - U+02D8 ˘ ˘ Breve\n// - U+02D9 ˙ ˙ Dot Above\n// - U+02DA ˚ ˚ Ring Above\n// - U+02DB ˛ ˛ Ogonek\n// - U+02DC ˜ ˜ Small Tilde\n// - U+02DD ˝ ˝ Double Acute Accent\n// Latin Extended Additional, 1E00–1EFF\nvar extendedWordChars = /^[A-Za-z\\xC0-\\u02C6\\u02C8-\\u02D7\\u02DE-\\u02FF\\u1E00-\\u1EFF]+$/;\nvar reWhitespace = /\\S/;\nvar wordDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.wordDiff = wordDiff;\n\n/*istanbul ignore end*/\nwordDiff.equals = function (left, right) {\n if (this.options.ignoreCase) {\n left = left.toLowerCase();\n right = right.toLowerCase();\n }\n\n return left === right || this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right);\n};\n\nwordDiff.tokenize = function (value) {\n // All whitespace symbols except newline group into one token, each newline - in separate token\n var tokens = value.split(/([^\\S\\r\\n]+|[()[\\]{}'\"\\r\\n]|\\b)/); // Join the boundary splits that we do not consider to be boundaries. This is primarily the extended Latin character set.\n\n for (var i = 0; i < tokens.length - 1; i++) {\n // If we have an empty string in the next field and we have only word chars before and after, merge\n if (!tokens[i + 1] && tokens[i + 2] && extendedWordChars.test(tokens[i]) && extendedWordChars.test(tokens[i + 2])) {\n tokens[i] += tokens[i + 2];\n tokens.splice(i + 1, 2);\n i--;\n }\n }\n\n return tokens;\n};\n\nfunction diffWords(oldStr, newStr, options) {\n options =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _params\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n generateOptions)\n /*istanbul ignore end*/\n (options, {\n ignoreWhitespace: true\n });\n return wordDiff.diff(oldStr, newStr, options);\n}\n\nfunction diffWordsWithSpace(oldStr, newStr, options) {\n return wordDiff.diff(oldStr, newStr, options);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL3dvcmQuanMiXSwibmFtZXMiOlsiZXh0ZW5kZWRXb3JkQ2hhcnMiLCJyZVdoaXRlc3BhY2UiLCJ3b3JkRGlmZiIsIkRpZmYiLCJlcXVhbHMiLCJsZWZ0IiwicmlnaHQiLCJvcHRpb25zIiwiaWdub3JlQ2FzZSIsInRvTG93ZXJDYXNlIiwiaWdub3JlV2hpdGVzcGFjZSIsInRlc3QiLCJ0b2tlbml6ZSIsInZhbHVlIiwidG9rZW5zIiwic3BsaXQiLCJpIiwibGVuZ3RoIiwic3BsaWNlIiwiZGlmZldvcmRzIiwib2xkU3RyIiwibmV3U3RyIiwiZ2VuZXJhdGVPcHRpb25zIiwiZGlmZiIsImRpZmZXb3Jkc1dpdGhTcGFjZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOztBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7Ozs7O0FBRUE7QUFD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hpcyBpcyBwcmltYXJpbHkgdGhlIGV4dGVuZGVkIExhdGluIGNoYXJhY3RlciBzZXQuXG4gIGZvciAobGV0IGkgPSAwOyBpIDwgdG9rZW5zLmxlbmd0aCAtIDE7IGkrKykge1xuICAgIC8vIElmIHdlIGhhdmUgYW4gZW1wdHkgc3RyaW5nIGluIHRoZSBuZXh0IGZpZWxkIGFuZCB3ZSBoYXZlIG9ubHkgd29yZCBjaGFycyBiZWZvcmUgYW5kIGFmdGVyLCBtZXJnZVxuICAgIGlmICghdG9rZW5zW2kgKyAxXSAmJiB0b2tlbnNbaSArIDJdXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaV0pXG4gICAgICAgICAgJiYgZXh0ZW5kZWRXb3JkQ2hhcnMudGVzdCh0b2tlbnNbaSArIDJdKSkge1xuICAgICAgdG9rZW5zW2ldICs9IHRva2Vuc1tpICsgMl07XG4gICAgICB0b2tlbnMuc3BsaWNlKGkgKyAxLCAyKTtcbiAgICAgIGktLTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gdG9rZW5zO1xufTtcblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3JkcyhvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICBvcHRpb25zID0gZ2VuZXJhdGVPcHRpb25zKG9wdGlvbnMsIHtpZ25vcmVXaGl0ZXNwYWNlOiB0cnVlfSk7XG4gIHJldHVybiB3b3JkRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBvcHRpb25zKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGRpZmZXb3Jkc1dpdGhTcGFjZShvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucykge1xuICByZXR1cm4gd29yZERpZmYuZGlmZihvbGRTdHIsIG5ld1N0ciwgb3B0aW9ucyk7XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffLines = diffLines;\nexports.diffTrimmedLines = diffTrimmedLines;\nexports.lineDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_params = require(\"../util/params\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nvar lineDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.lineDiff = lineDiff;\n\n/*istanbul ignore end*/\nlineDiff.tokenize = function (value) {\n var retLines = [],\n linesAndNewlines = value.split(/(\\n|\\r\\n)/); // Ignore the final empty token that occurs if the string ends with a new line\n\n if (!linesAndNewlines[linesAndNewlines.length - 1]) {\n linesAndNewlines.pop();\n } // Merge the content and line separators into single tokens\n\n\n for (var i = 0; i < linesAndNewlines.length; i++) {\n var line = linesAndNewlines[i];\n\n if (i % 2 && !this.options.newlineIsToken) {\n retLines[retLines.length - 1] += line;\n } else {\n if (this.options.ignoreWhitespace) {\n line = line.trim();\n }\n\n retLines.push(line);\n }\n }\n\n return retLines;\n};\n\nfunction diffLines(oldStr, newStr, callback) {\n return lineDiff.diff(oldStr, newStr, callback);\n}\n\nfunction diffTrimmedLines(oldStr, newStr, callback) {\n var options =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _params\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n generateOptions)\n /*istanbul ignore end*/\n (callback, {\n ignoreWhitespace: true\n });\n return lineDiff.diff(oldStr, newStr, options);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2xpbmUuanMi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ICByZXRMaW5lcy5wdXNoKGxpbmUpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiByZXRMaW5lcztcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmTGluZXMob2xkU3RyLCBuZXdTdHIsIGNhbGxiYWNrKSB7IHJldHVybiBsaW5lRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbmV4cG9ydCBmdW5jdGlvbiBkaWZmVHJpbW1lZExpbmVzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykge1xuICBsZXQgb3B0aW9ucyA9IGdlbmVyYXRlT3B0aW9ucyhjYWxsYmFjaywge2lnbm9yZVdoaXRlc3BhY2U6IHRydWV9KTtcbiAgcmV0dXJuIGxpbmVEaWZmLmRpZmYob2xkU3RyLCBuZXdTdHIsIG9wdGlvbnMpO1xufVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffSentences = diffSentences;\nexports.sentenceDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nvar sentenceDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.sentenceDiff = sentenceDiff;\n\n/*istanbul ignore end*/\nsentenceDiff.tokenize = function (value) {\n return value.split(/(\\S.+?[.!?])(?=\\s+|$)/);\n};\n\nfunction diffSentences(oldStr, newStr, callback) {\n return sentenceDiff.diff(oldStr, newStr, callback);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ka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bmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ==\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffCss = diffCss;\nexports.cssDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nvar cssDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.cssDiff = cssDiff;\n\n/*istanbul ignore end*/\ncssDiff.tokenize = function (value) {\n return value.split(/([{}:;,]|\\s+)/);\n};\n\nfunction diffCss(oldStr, newStr, callback) {\n return cssDiff.diff(oldStr, newStr, callback);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Nzcy5qcyJdLCJuYW1lcyI6WyJjc3NEaWZmIiwiRGlmZiIsInRva2VuaXplIiwidmFsdWUiLCJzcGxpdCIsImRpZmZDc3MiLCJvbGRTdHIiLCJuZXdTdHIiLCJjYWxsYmFjayIsImRpZmYiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOzs7OztBQUVPLElBQU1BLE9BQU8sR0FBRztBQUFJQztBQUFBQTtBQUFBQTtBQUFBQTtBQUFBQTtBQUFBQTtBQUFBQTtBQUFBQSxDQUFKLEVBQWhCOzs7Ozs7QUFDUEQsT0FBTyxDQUFDRSxRQUFSLEdBQW1CLFVBQVNDLEtBQVQsRUFBZ0I7QUFDakMsU0FBT0EsS0FBSyxDQUFDQyxLQUFOLENBQVksZUFBWixDQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTQyxPQUFULENBQWlCQyxNQUFqQixFQUF5QkMsTUFBekIsRUFBaUNDLFFBQWpDLEVBQTJDO0FBQUUsU0FBT1IsT0FBTyxDQUFDUyxJQUFSLENBQWFILE1BQWIsRUFBcUJDLE1BQXJCLEVBQTZCQyxRQUE3QixDQUFQO0FBQWdEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGNzc0RpZmYgPSBuZXcgRGlmZigpO1xuY3NzRGlmZi50b2tlbml6ZSA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gIHJldHVybiB2YWx1ZS5zcGxpdCgvKFt7fTo7LF18XFxzKykvKTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmQ3NzKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjaykgeyByZXR1cm4gY3NzRGlmZi5kaWZmKG9sZFN0ciwgbmV3U3RyLCBjYWxsYmFjayk7IH1cbiJdfQ==\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffJson = diffJson;\nexports.canonicalize = canonicalize;\nexports.jsonDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_line = require(\"./line\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/*istanbul ignore end*/\nvar objectPrototypeToString = Object.prototype.toString;\nvar jsonDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n](); // Discriminate between two lines of pretty-printed, serialized JSON where one of them has a\n// dangling comma and the other doesn't. Turns out including the dangling comma yields the nicest output:\n\n/*istanbul ignore start*/\nexports.jsonDiff = jsonDiff;\n\n/*istanbul ignore end*/\njsonDiff.useLongestToken = true;\njsonDiff.tokenize =\n/*istanbul ignore start*/\n_line\n/*istanbul ignore end*/\n.\n/*istanbul ignore start*/\nlineDiff\n/*istanbul ignore end*/\n.tokenize;\n\njsonDiff.castInput = function (value) {\n /*istanbul ignore start*/\n var _this$options =\n /*istanbul ignore end*/\n this.options,\n undefinedReplacement = _this$options.undefinedReplacement,\n _this$options$stringi = _this$options.stringifyReplacer,\n stringifyReplacer = _this$options$stringi === void 0 ? function (k, v)\n /*istanbul ignore start*/\n {\n return (\n /*istanbul ignore end*/\n typeof v === 'undefined' ? undefinedReplacement : v\n );\n } : _this$options$stringi;\n return typeof value === 'string' ? value : JSON.stringify(canonicalize(value, null, null, stringifyReplacer), stringifyReplacer, ' ');\n};\n\njsonDiff.equals = function (left, right) {\n return (\n /*istanbul ignore start*/\n _base\n /*istanbul ignore end*/\n [\n /*istanbul ignore start*/\n \"default\"\n /*istanbul ignore end*/\n ].prototype.equals.call(jsonDiff, left.replace(/,([\\r\\n])/g, '$1'), right.replace(/,([\\r\\n])/g, '$1'))\n );\n};\n\nfunction diffJson(oldObj, newObj, options) {\n return jsonDiff.diff(oldObj, newObj, options);\n} // This function handles the presence of circular references by bailing out when encountering an\n// object that is already on the \"stack\" of items being processed. Accepts an optional replacer\n\n\nfunction canonicalize(obj, stack, replacementStack, replacer, key) {\n stack = stack || [];\n replacementStack = replacementStack || [];\n\n if (replacer) {\n obj = replacer(key, obj);\n }\n\n var i;\n\n for (i = 0; i < stack.length; i += 1) {\n if (stack[i] === obj) {\n return replacementStack[i];\n }\n }\n\n var canonicalizedObj;\n\n if ('[object Array]' === objectPrototypeToString.call(obj)) {\n stack.push(obj);\n canonicalizedObj = new Array(obj.length);\n replacementStack.push(canonicalizedObj);\n\n for (i = 0; i < obj.length; i += 1) {\n canonicalizedObj[i] = canonicalize(obj[i], stack, replacementStack, replacer, key);\n }\n\n stack.pop();\n replacementStack.pop();\n return canonicalizedObj;\n }\n\n if (obj && obj.toJSON) {\n obj = obj.toJSON();\n }\n\n if (\n /*istanbul ignore start*/\n _typeof(\n /*istanbul ignore end*/\n obj) === 'object' && obj !== null) {\n stack.push(obj);\n canonicalizedObj = {};\n replacementStack.push(canonicalizedObj);\n\n var sortedKeys = [],\n _key;\n\n for (_key in obj) {\n /* istanbul ignore else */\n if (obj.hasOwnProperty(_key)) {\n sortedKeys.push(_key);\n }\n }\n\n sortedKeys.sort();\n\n for (i = 0; i < sortedKeys.length; i += 1) {\n _key = sortedKeys[i];\n canonicalizedObj[_key] = canonicalize(obj[_key], stack, replacementStack, replacer, _key);\n }\n\n stack.pop();\n replacementStack.pop();\n } else {\n canonicalizedObj = obj;\n }\n\n return canonicalizedObj;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2pzb24uanMiXSwibmFtZXMiOlsib2JqZWN0UHJvdG90eXBlVG9TdHJpbmciLCJPYmplY3QiLCJwcm90b3R5cGUiLCJ0b1N0cmluZyIsImpzb25EaWZmIiwiRGlmZiIsInVzZUxvbmdlc3RUb2tlbiIsInRva2VuaXplIiwibGluZURpZmYiLCJjYXN0SW5wdXQiLCJ2YWx1ZSIsIm9wdGlvbnMiLCJ1bmRlZmluZWRSZXBsYWNlbWVudCIsInN0cmluZ2lmeVJlcGxhY2VyIiwiayIsInYiLCJKU09OIiwic3RyaW5naWZ5IiwiY2Fub25pY2FsaXplIiwiZXF1YWxzIiwibGVmdCIsInJpZ2h0Iiwi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7XG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgZWxzZSAqL1xuICAgICAgaWYgKG9iai5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgIHNvcnRlZEtleXMucHVzaChrZXkpO1xuICAgICAgfVxuICAgIH1cbiAgICBzb3J0ZWRLZXlzLnNvcnQoKTtcbiAgICBmb3IgKGkgPSAwOyBpIDwgc29ydGVkS2V5cy5sZW5ndGg7IGkgKz0gMSkge1xuICAgICAga2V5ID0gc29ydGVkS2V5c1tpXTtcbiAgICAgIGNhbm9uaWNhbGl6ZWRPYmpba2V5XSA9IGNhbm9uaWNhbGl6ZShvYmpba2V5XSwgc3RhY2ssIHJlcGxhY2VtZW50U3RhY2ssIHJlcGxhY2VyLCBrZXkpO1xuICAgIH1cbiAgICBzdGFjay5wb3AoKTtcbiAgICByZXBsYWNlbWVudFN0YWNrLnBvcCgpO1xuICB9IGVsc2Uge1xuICAgIGNhbm9uaWNhbGl6ZWRPYmogPSBvYmo7XG4gIH1cbiAgcmV0dXJuIGNhbm9uaWNhbGl6ZWRPYmo7XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.diffArrays = diffArrays;\nexports.arrayDiff = void 0;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./base\"))\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nvar arrayDiff = new\n/*istanbul ignore start*/\n_base\n/*istanbul ignore end*/\n[\n/*istanbul ignore start*/\n\"default\"\n/*istanbul ignore end*/\n]();\n\n/*istanbul ignore start*/\nexports.arrayDiff = arrayDiff;\n\n/*istanbul ignore end*/\narrayDiff.tokenize = function (value) {\n return value.slice();\n};\n\narrayDiff.join = arrayDiff.removeEmpty = function (value) {\n return value;\n};\n\nfunction diffArrays(oldArr, newArr, callback) {\n return arrayDiff.diff(oldArr, newArr, callback);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RGlmZiIsIkRpZmYiLCJ0b2tlbml6ZSIsInZhbHVlIiwic2xpY2UiLCJqb2luIiwicmVtb3ZlRW1wdHkiLCJkaWZmQXJyYXlzIiwib2xkQXJyIiwibmV3QXJyIiwiY2FsbGJhY2siLCJkaWZmIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7Ozs7QUFFTyxJQUFNQSxTQUFTLEdBQUc7QUFBSUM7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUE7QUFBQUEsQ0FBSixFQUFsQjs7Ozs7O0FBQ1BELFNBQVMsQ0FBQ0UsUUFBVixHQUFxQixVQUFTQyxLQUFULEVBQWdCO0FBQ25DLFNBQU9BLEtBQUssQ0FBQ0MsS0FBTixFQUFQO0FBQ0QsQ0FGRDs7QUFHQUosU0FBUyxDQUFDSyxJQUFWLEdBQWlCTCxTQUFTLENBQUNNLFdBQVYsR0FBd0IsVUFBU0gsS0FBVCxFQUFnQjtBQUN2RCxTQUFPQSxLQUFQO0FBQ0QsQ0FGRDs7QUFJTyxTQUFTSSxVQUFULENBQW9CQyxNQUFwQixFQUE0QkMsTUFBNUIsRUFBb0NDLFFBQXBDLEVBQThDO0FBQUUsU0FBT1YsU0FBUyxDQUFDVyxJQUFWLENBQWVILE1BQWYsRUFBdUJDLE1BQXZCLEVBQStCQyxRQUEvQixDQUFQO0FBQWtEIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IERpZmYgZnJvbSAnLi9iYXNlJztcblxuZXhwb3J0IGNvbnN0IGFycmF5RGlmZiA9IG5ldyBEaWZmKCk7XG5hcnJheURpZmYudG9rZW5pemUgPSBmdW5jdGlvbih2YWx1ZSkge1xuICByZXR1cm4gdmFsdWUuc2xpY2UoKTtcbn07XG5hcnJheURpZmYuam9pbiA9IGFycmF5RGlmZi5yZW1vdmVFbXB0eSA9IGZ1bmN0aW9uKHZhbHVlKSB7XG4gIHJldHVybiB2YWx1ZTtcbn07XG5cbmV4cG9ydCBmdW5jdGlvbiBkaWZmQXJyYXlzKG9sZEFyciwgbmV3QXJyLCBjYWxsYmFjaykgeyByZXR1cm4gYXJyYXlEaWZmLmRpZmYob2xkQXJyLCBuZXdBcnIsIGNhbGxiYWNrKTsgfVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.parsePatch = parsePatch;\n\n/*istanbul ignore end*/\nfunction parsePatch(uniDiff) {\n /*istanbul ignore start*/\n var\n /*istanbul ignore end*/\n options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var diffstr = uniDiff.split(/\\r\\n|[\\n\\v\\f\\r\\x85]/),\n delimiters = uniDiff.match(/\\r\\n|[\\n\\v\\f\\r\\x85]/g) || [],\n list = [],\n i = 0;\n\n function parseIndex() {\n var index = {};\n list.push(index); // Parse diff metadata\n\n while (i < diffstr.length) {\n var line = diffstr[i]; // File header found, end parsing diff metadata\n\n if (/^(\\-\\-\\-|\\+\\+\\+|@@)\\s/.test(line)) {\n break;\n } // Diff index\n\n\n var header = /^(?:Index:|diff(?: -r \\w+)+)\\s+(.+?)\\s*$/.exec(line);\n\n if (header) {\n index.index = header[1];\n }\n\n i++;\n } // Parse file headers if they are defined. Unified diff requires them, but\n // there's no technical issues to have an isolated hunk without file header\n\n\n parseFileHeader(index);\n parseFileHeader(index); // Parse hunks\n\n index.hunks = [];\n\n while (i < diffstr.length) {\n var _line = diffstr[i];\n\n if (/^(Index:|diff|\\-\\-\\-|\\+\\+\\+)\\s/.test(_line)) {\n break;\n } else if (/^@@/.test(_line)) {\n index.hunks.push(parseHunk());\n } else if (_line && options.strict) {\n // Ignore unexpected content unless in strict mode\n throw new Error('Unknown line ' + (i + 1) + ' ' + JSON.stringify(_line));\n } else {\n i++;\n }\n }\n } // Parses the --- and +++ headers, if none are found, no lines\n // are consumed.\n\n\n function parseFileHeader(index) {\n var fileHeader = /^(---|\\+\\+\\+)\\s+(.*)$/.exec(diffstr[i]);\n\n if (fileHeader) {\n var keyPrefix = fileHeader[1] === '---' ? 'old' : 'new';\n var data = fileHeader[2].split('\\t', 2);\n var fileName = data[0].replace(/\\\\\\\\/g, '\\\\');\n\n if (/^\".*\"$/.test(fileName)) {\n fileName = fileName.substr(1, fileName.length - 2);\n }\n\n index[keyPrefix + 'FileName'] = fileName;\n index[keyPrefix + 'Header'] = (data[1] || '').trim();\n i++;\n }\n } // Parses a hunk\n // This assumes that we are at the start of a hunk.\n\n\n function parseHunk() {\n var chunkHeaderIndex = i,\n chunkHeaderLine = diffstr[i++],\n chunkHeader = chunkHeaderLine.split(/@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))? @@/);\n var hunk = {\n oldStart: +chunkHeader[1],\n oldLines: typeof chunkHeader[2] === 'undefined' ? 1 : +chunkHeader[2],\n newStart: +chunkHeader[3],\n newLines: typeof chunkHeader[4] === 'undefined' ? 1 : +chunkHeader[4],\n lines: [],\n linedelimiters: []\n }; // Unified Diff Format quirk: If the chunk size is 0,\n // the first number is one lower than one would expect.\n // https://www.artima.com/weblogs/viewpost.jsp?thread=164293\n\n if (hunk.oldLines === 0) {\n hunk.oldStart += 1;\n }\n\n if (hunk.newLines === 0) {\n hunk.newStart += 1;\n }\n\n var addCount = 0,\n removeCount = 0;\n\n for (; i < diffstr.length; i++) {\n // Lines starting with '---' could be mistaken for the \"remove line\" operation\n // But they could be the header for the next file. Therefore prune such cases out.\n if (diffstr[i].indexOf('--- ') === 0 && i + 2 < diffstr.length && diffstr[i + 1].indexOf('+++ ') === 0 && diffstr[i + 2].indexOf('@@') === 0) {\n break;\n }\n\n var operation = diffstr[i].length == 0 && i != diffstr.length - 1 ? ' ' : diffstr[i][0];\n\n if (operation === '+' || operation === '-' || operation === ' ' || operation === '\\\\') {\n hunk.lines.push(diffstr[i]);\n hunk.linedelimiters.push(delimiters[i] || '\\n');\n\n if (operation === '+') {\n addCount++;\n } else if (operation === '-') {\n removeCount++;\n } else if (operation === ' ') {\n addCount++;\n removeCount++;\n }\n } else {\n break;\n }\n } // Handle the empty block count case\n\n\n if (!addCount && hunk.newLines === 1) {\n hunk.newLines = 0;\n }\n\n if (!removeCount && hunk.oldLines === 1) {\n hunk.oldLines = 0;\n } // Perform optional sanity checking\n\n\n if (options.strict) {\n if (addCount !== hunk.newLines) {\n throw new Error('Added line count did not match for hunk at line ' + (chunkHeaderIndex + 1));\n }\n\n if (removeCount !== hunk.oldLines) {\n throw new Error('Removed line count did not match for hunk at line ' + (chunkHeaderIndex + 1));\n }\n }\n\n return hunk;\n }\n\n while (i < diffstr.length) {\n parseIndex();\n }\n\n return list;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9wYXJzZS5qcyJdLCJuYW1lcyI6WyJwYXJzZVBhdGNoIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJkaWZmc3RyIiwic3BsaXQiLCJkZWxpbWl0ZXJzIiwibWF0Y2giLCJsaXN0IiwiaSIsInBhcnNlSW5kZXgiLCJpbmRleCIsInB1c2giLCJsZW5ndGgiLCJsaW5lIiwidGVzdCIsImhlYWRlciIsImV4ZWMiLCJwYXJzZUZpbGVIZWFkZXIiLCJodW5rcyIsInBhcnNlSHVuayIsInN0cmljdCIsIkVycm9yIiwiSlNPTiIsInN0cmluZ2lmeSIsImZpbGVIZWFkZXIiLCJrZXlQcmVmaXgiLCJkYXRhIiwiZmlsZU5hbWUiLCJyZXBsYWNlIiwic3Vic3RyIiwidHJpbSIsImNodW5rSGVhZG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gICAgICAmJiAoaSArIDIgPCBkaWZmc3RyLmxlbmd0aClcbiAgICAgICAgICAgICYmIGRpZmZzdHJbaSArIDFdLmluZGV4T2YoJysrKyAnKSA9PT0gMFxuICAgICAgICAgICAgJiYgZGlmZnN0cltpICsgMl0uaW5kZXhPZignQEAnKSA9PT0gMCkge1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgfVxuICAgICAgbGV0IG9wZXJhdGlvbiA9IChkaWZmc3RyW2ldLmxlbmd0aCA9PSAwICYmIGkgIT0gKGRpZmZzdHIubGVuZ3RoIC0gMSkpID8gJyAnIDogZGlmZnN0cltpXVswXTtcblxuICAgICAgaWYgKG9wZXJhdGlvbiA9PT0gJysnIHx8IG9wZXJhdGlvbiA9PT0gJy0nIHx8IG9wZXJhdGlvbiA9PT0gJyAnIHx8IG9wZXJhdGlvbiA9PT0gJ1xcXFwnKSB7XG4gICAgICAgIGh1bmsubGluZXMucHVzaChkaWZmc3RyW2ldKTtcbiAgICAgICAgaHVuay5saW5lZGVsaW1pdGVycy5wdXNoKGRlbGltaXRlcnNbaV0gfHwgJ1xcbicpO1xuXG4gICAgICAgIGlmIChvcGVyYXRpb24gPT09ICcrJykge1xuICAgICAgICAgIGFkZENvdW50Kys7XG4gICAgICAgIH0gZWxzZSBpZiAob3BlcmF0aW9uID09PSAnLScpIHtcbiAgICAgICAgICByZW1vdmVDb3VudCsrO1xuICAgICAgICB9IGVsc2UgaWYgKG9wZXJhdGlvbiA9PT0gJyAnKSB7XG4gICAgICAgICAgYWRkQ291bnQrKztcbiAgICAgICAgICByZW1vdmVDb3VudCsrO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBicmVhaztcbiAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBIYW5kbGUgdGhlIGVtcHR5IGJsb2NrIGNvdW50IGNhc2VcbiAgICBpZiAoIWFkZENvdW50ICYmIGh1bmsubmV3TGluZXMgPT09IDEpIHtcbiAgICAgIGh1bmsubmV3TGluZXMgPSAwO1xuICAgIH1cbiAgICBpZiAoIXJlbW92ZUNvdW50ICYmIGh1bmsub2xkTGluZXMgPT09IDEpIHtcbiAgICAgIGh1bmsub2xkTGluZXMgPSAwO1xuICAgIH1cblxuICAgIC8vIFBlcmZvcm0gb3B0aW9uYWwgc2FuaXR5IGNoZWNraW5nXG4gICAgaWYgKG9wdGlvbnMuc3RyaWN0KSB7XG4gICAgICBpZiAoYWRkQ291bnQgIT09IGh1bmsubmV3TGluZXMpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdBZGRlZCBsaW5lIGNvdW50IGRpZCBub3QgbWF0Y2ggZm9yIGh1bmsgYXQgbGluZSAnICsgKGNodW5rSGVhZGVySW5kZXggKyAxKSk7XG4gICAgICB9XG4gICAgICBpZiAocmVtb3ZlQ291bnQgIT09IGh1bmsub2xkTGluZXMpIHtcbiAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdSZW1vdmVkIGxpbmUgY291bnQgZGlkIG5vdCBtYXRjaCBmb3IgaHVuayBhdCBsaW5lICcgKyAoY2h1bmtIZWFkZXJJbmRleCArIDEpKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gaHVuaztcbiAgfVxuXG4gIHdoaWxlIChpIDwgZGlmZnN0ci5sZW5ndGgpIHtcbiAgICBwYXJzZUluZGV4KCk7XG4gIH1cblxuICByZXR1cm4gbGlzdDtcbn1cbiJdfQ==\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = _default;\n\n/*istanbul ignore end*/\n// Iterator that traverses in the range of [min, max], stepping\n// by distance from a given start position. I.e. for [0, 4], with\n// start of 2, this will iterate 2, 3, 1, 4, 0.\nfunction\n/*istanbul ignore start*/\n_default\n/*istanbul ignore end*/\n(start, minLine, maxLine) {\n var wantForward = true,\n backwardExhausted = false,\n forwardExhausted = false,\n localOffset = 1;\n return function iterator() {\n if (wantForward && !forwardExhausted) {\n if (backwardExhausted) {\n localOffset++;\n } else {\n wantForward = false;\n } // Check if trying to fit beyond text length, and if not, check it fits\n // after offset location (or desired location on first iteration)\n\n\n if (start + localOffset <= maxLine) {\n return localOffset;\n }\n\n forwardExhausted = true;\n }\n\n if (!backwardExhausted) {\n if (!forwardExhausted) {\n wantForward = true;\n } // Check if trying to fit before text beginning, and if not, check it fits\n // before offset location\n\n\n if (minLine <= start - localOffset) {\n return -localOffset++;\n }\n\n backwardExhausted = true;\n return iterator();\n } // We tried to fit hunk before text beginning and beyond text length, then\n // hunk can't fit on the text. Return undefined\n\n };\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2Rpc3RhbmNlLWl0ZXJhdG9yLmpzIl0sIm5hbWVzIjpbInN0YXJ0IiwibWluTGluZSIsIm1heExpbmUiLCJ3YW50Rm9yd2FyZCIsImJhY2t3YXJkRXhoYXVzdGVkIiwiZm9yd2FyZEV4aGF1c3RlZCIsImxvY2FsT2Zmc2V0IiwiaXRlcmF0b3IiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNlO0FBQUE7QUFBQTtBQUFBO0FBQUEsQ0FBU0EsS0FBVCxFQUFnQkMsT0FBaEIsRUFBeUJDLE9BQXpCLEVBQWtDO0FBQy9DLE1BQUlDLFdBQVcsR0FBRyxJQUFsQjtBQUFBLE1BQ0lDLGlCQUFpQixHQUFHLEtBRHhCO0FBQUEsTUFFSUMsZ0JBQWdCLEdBQUcsS0FGdkI7QUFBQSxNQUdJQyxXQUFXLEdBQUcsQ0FIbEI7QUFLQSxTQUFPLFNBQVNDLFFBQVQsR0FBb0I7QUFDekIsUUFBSUosV0FBVyxJQUFJLENBQUNFLGdCQUFwQixFQUFzQztBQUNwQyxVQUFJRCxpQkFBSixFQUF1QjtBQUNyQkUsUUFBQUEsV0FBVztBQUNaLE9BRkQsTUFFTztB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c3RlZCA9IHRydWU7XG4gICAgICByZXR1cm4gaXRlcmF0b3IoKTtcbiAgICB9XG5cbiAgICAvLyBXZSB0cmllZCB0byBmaXQgaHVuayBiZWZvcmUgdGV4dCBiZWdpbm5pbmcgYW5kIGJleW9uZCB0ZXh0IGxlbmd0aCwgdGhlblxuICAgIC8vIGh1bmsgY2FuJ3QgZml0IG9uIHRoZSB0ZXh0LiBSZXR1cm4gdW5kZWZpbmVkXG4gIH07XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.applyPatch = applyPatch;\nexports.applyPatches = applyPatches;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_parse = require(\"./parse\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_distanceIterator = _interopRequireDefault(require(\"../util/distance-iterator\"))\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\nfunction applyPatch(source, uniDiff) {\n /*istanbul ignore start*/\n var\n /*istanbul ignore end*/\n options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (typeof uniDiff === 'string') {\n uniDiff =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _parse\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n parsePatch)\n /*istanbul ignore end*/\n (uniDiff);\n }\n\n if (Array.isArray(uniDiff)) {\n if (uniDiff.length > 1) {\n throw new Error('applyPatch only works with a single input.');\n }\n\n uniDiff = uniDiff[0];\n } // Apply the diff to the input\n\n\n var lines = source.split(/\\r\\n|[\\n\\v\\f\\r\\x85]/),\n delimiters = source.match(/\\r\\n|[\\n\\v\\f\\r\\x85]/g) || [],\n hunks = uniDiff.hunks,\n compareLine = options.compareLine || function (lineNumber, line, operation, patchContent)\n /*istanbul ignore start*/\n {\n return (\n /*istanbul ignore end*/\n line === patchContent\n );\n },\n errorCount = 0,\n fuzzFactor = options.fuzzFactor || 0,\n minLine = 0,\n offset = 0,\n removeEOFNL,\n addEOFNL;\n /**\n * Checks if the hunk exactly fits on the provided location\n */\n\n\n function hunkFits(hunk, toPos) {\n for (var j = 0; j < hunk.lines.length; j++) {\n var line = hunk.lines[j],\n operation = line.length > 0 ? line[0] : ' ',\n content = line.length > 0 ? line.substr(1) : line;\n\n if (operation === ' ' || operation === '-') {\n // Context sanity check\n if (!compareLine(toPos + 1, lines[toPos], operation, content)) {\n errorCount++;\n\n if (errorCount > fuzzFactor) {\n return false;\n }\n }\n\n toPos++;\n }\n }\n\n return true;\n } // Search best fit offsets for each hunk based on the previous ones\n\n\n for (var i = 0; i < hunks.length; i++) {\n var hunk = hunks[i],\n maxLine = lines.length - hunk.oldLines,\n localOffset = 0,\n toPos = offset + hunk.oldStart - 1;\n var iterator =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _distanceIterator\n /*istanbul ignore end*/\n [\n /*istanbul ignore start*/\n \"default\"\n /*istanbul ignore end*/\n ])(toPos, minLine, maxLine);\n\n for (; localOffset !== undefined; localOffset = iterator()) {\n if (hunkFits(hunk, toPos + localOffset)) {\n hunk.offset = offset += localOffset;\n break;\n }\n }\n\n if (localOffset === undefined) {\n return false;\n } // Set lower text limit to end of the current hunk, so next ones don't try\n // to fit over already patched text\n\n\n minLine = hunk.offset + hunk.oldStart + hunk.oldLines;\n } // Apply patch hunks\n\n\n var diffOffset = 0;\n\n for (var _i = 0; _i < hunks.length; _i++) {\n var _hunk = hunks[_i],\n _toPos = _hunk.oldStart + _hunk.offset + diffOffset - 1;\n\n diffOffset += _hunk.newLines - _hunk.oldLines;\n\n for (var j = 0; j < _hunk.lines.length; j++) {\n var line = _hunk.lines[j],\n operation = line.length > 0 ? line[0] : ' ',\n content = line.length > 0 ? line.substr(1) : line,\n delimiter = _hunk.linedelimiters[j];\n\n if (operation === ' ') {\n _toPos++;\n } else if (operation === '-') {\n lines.splice(_toPos, 1);\n delimiters.splice(_toPos, 1);\n /* istanbul ignore else */\n } else if (operation === '+') {\n lines.splice(_toPos, 0, content);\n delimiters.splice(_toPos, 0, delimiter);\n _toPos++;\n } else if (operation === '\\\\') {\n var previousOperation = _hunk.lines[j - 1] ? _hunk.lines[j - 1][0] : null;\n\n if (previousOperation === '+') {\n removeEOFNL = true;\n } else if (previousOperation === '-') {\n addEOFNL = true;\n }\n }\n }\n } // Handle EOFNL insertion/removal\n\n\n if (removeEOFNL) {\n while (!lines[lines.length - 1]) {\n lines.pop();\n delimiters.pop();\n }\n } else if (addEOFNL) {\n lines.push('');\n delimiters.push('\\n');\n }\n\n for (var _k = 0; _k < lines.length - 1; _k++) {\n lines[_k] = lines[_k] + delimiters[_k];\n }\n\n return lines.join('');\n} // Wrapper that supports multiple file patches via callbacks.\n\n\nfunction applyPatches(uniDiff, options) {\n if (typeof uniDiff === 'string') {\n uniDiff =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _parse\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n parsePatch)\n /*istanbul ignore end*/\n (uniDiff);\n }\n\n var currentIndex = 0;\n\n function processIndex() {\n var index = uniDiff[currentIndex++];\n\n if (!index) {\n return options.complete();\n }\n\n options.loadFile(index, function (err, data) {\n if (err) {\n return options.complete(err);\n }\n\n var updatedContent = applyPatch(data, index, options);\n options.patched(index, updatedContent, function (err) {\n if (err) {\n return options.complete(err);\n }\n\n processIndex();\n });\n });\n }\n\n processIndex();\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9hcHBseS5qcyJdLCJuYW1lcyI6WyJhcHBseVBhdGNoIiwic291cmNlIiwidW5pRGlmZiIsIm9wdGlvbnMiLCJwYXJzZVBhdGNoIiwiQX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uICAgIH0pO1xuICB9XG4gIHByb2Nlc3NJbmRleCgpO1xufVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.structuredPatch = structuredPatch;\nexports.formatPatch = formatPatch;\nexports.createTwoFilesPatch = createTwoFilesPatch;\nexports.createPatch = createPatch;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_line = require(\"../diff/line\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/*istanbul ignore end*/\nfunction structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {\n if (!options) {\n options = {};\n }\n\n if (typeof options.context === 'undefined') {\n options.context = 4;\n }\n\n var diff =\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _line\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n diffLines)\n /*istanbul ignore end*/\n (oldStr, newStr, options);\n diff.push({\n value: '',\n lines: []\n }); // Append an empty value to make cleanup easier\n\n function contextLines(lines) {\n return lines.map(function (entry) {\n return ' ' + entry;\n });\n }\n\n var hunks = [];\n var oldRangeStart = 0,\n newRangeStart = 0,\n curRange = [],\n oldLine = 1,\n newLine = 1;\n\n /*istanbul ignore start*/\n var _loop = function _loop(\n /*istanbul ignore end*/\n i) {\n var current = diff[i],\n lines = current.lines || current.value.replace(/\\n$/, '').split('\\n');\n current.lines = lines;\n\n if (current.added || current.removed) {\n /*istanbul ignore start*/\n var _curRange;\n\n /*istanbul ignore end*/\n // If we have previous context, start with that\n if (!oldRangeStart) {\n var prev = diff[i - 1];\n oldRangeStart = oldLine;\n newRangeStart = newLine;\n\n if (prev) {\n curRange = options.context > 0 ? contextLines(prev.lines.slice(-options.context)) : [];\n oldRangeStart -= curRange.length;\n newRangeStart -= curRange.length;\n }\n } // Output our changes\n\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_curRange =\n /*istanbul ignore end*/\n curRange).push.apply(\n /*istanbul ignore start*/\n _curRange\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n lines.map(function (entry) {\n return (current.added ? '+' : '-') + entry;\n }))); // Track the updated file position\n\n\n if (current.added) {\n newLine += lines.length;\n } else {\n oldLine += lines.length;\n }\n } else {\n // Identical context lines. Track line changes\n if (oldRangeStart) {\n // Close out any changes that have been output (or join overlapping)\n if (lines.length <= options.context * 2 && i < diff.length - 2) {\n /*istanbul ignore start*/\n var _curRange2;\n\n /*istanbul ignore end*/\n // Overlapping\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_curRange2 =\n /*istanbul ignore end*/\n curRange).push.apply(\n /*istanbul ignore start*/\n _curRange2\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n contextLines(lines)));\n } else {\n /*istanbul ignore start*/\n var _curRange3;\n\n /*istanbul ignore end*/\n // end the range and output\n var contextSize = Math.min(lines.length, options.context);\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_curRange3 =\n /*istanbul ignore end*/\n curRange).push.apply(\n /*istanbul ignore start*/\n _curRange3\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n contextLines(lines.slice(0, contextSize))));\n\n var hunk = {\n oldStart: oldRangeStart,\n oldLines: oldLine - oldRangeStart + contextSize,\n newStart: newRangeStart,\n newLines: newLine - newRangeStart + contextSize,\n lines: curRange\n };\n\n if (i >= diff.length - 2 && lines.length <= options.context) {\n // EOF is inside this hunk\n var oldEOFNewline = /\\n$/.test(oldStr);\n var newEOFNewline = /\\n$/.test(newStr);\n var noNlBeforeAdds = lines.length == 0 && curRange.length > hunk.oldLines;\n\n if (!oldEOFNewline && noNlBeforeAdds && oldStr.length > 0) {\n // special case: old has no eol and no trailing context; no-nl can end up before adds\n // however, if the old file is empty, do not output the no-nl line\n curRange.splice(hunk.oldLines, 0, '\\\\ No newline at end of file');\n }\n\n if (!oldEOFNewline && !noNlBeforeAdds || !newEOFNewline) {\n curRange.push('\\\\ No newline at end of file');\n }\n }\n\n hunks.push(hunk);\n oldRangeStart = 0;\n newRangeStart = 0;\n curRange = [];\n }\n }\n\n oldLine += lines.length;\n newLine += lines.length;\n }\n };\n\n for (var i = 0; i < diff.length; i++) {\n /*istanbul ignore start*/\n _loop(\n /*istanbul ignore end*/\n i);\n }\n\n return {\n oldFileName: oldFileName,\n newFileName: newFileName,\n oldHeader: oldHeader,\n newHeader: newHeader,\n hunks: hunks\n };\n}\n\nfunction formatPatch(diff) {\n var ret = [];\n\n if (diff.oldFileName == diff.newFileName) {\n ret.push('Index: ' + diff.oldFileName);\n }\n\n ret.push('===================================================================');\n ret.push('--- ' + diff.oldFileName + (typeof diff.oldHeader === 'undefined' ? '' : '\\t' + diff.oldHeader));\n ret.push('+++ ' + diff.newFileName + (typeof diff.newHeader === 'undefined' ? '' : '\\t' + diff.newHeader));\n\n for (var i = 0; i < diff.hunks.length; i++) {\n var hunk = diff.hunks[i]; // Unified Diff Format quirk: If the chunk size is 0,\n // the first number is one lower than one would expect.\n // https://www.artima.com/weblogs/viewpost.jsp?thread=164293\n\n if (hunk.oldLines === 0) {\n hunk.oldStart -= 1;\n }\n\n if (hunk.newLines === 0) {\n hunk.newStart -= 1;\n }\n\n ret.push('@@ -' + hunk.oldStart + ',' + hunk.oldLines + ' +' + hunk.newStart + ',' + hunk.newLines + ' @@');\n ret.push.apply(ret, hunk.lines);\n }\n\n return ret.join('\\n') + '\\n';\n}\n\nfunction createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options) {\n return formatPatch(structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options));\n}\n\nfunction createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options) {\n return createTwoFilesPatch(fileName, fileName, oldStr, newStr, oldHeader, newHeader, options);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9jcmVhdGUuanMiXSwibmFtZXMiOlsic3RydWN0dXJlZFBhdGNoIiwib2xkRmlsZU5hbWUiLCJuZXdGaWxlTmFtZSIsIm9sZFN0ciIsIm5ld1N0ciIsIm9sZEhlYWRlciIsIm5ld0hlYWRlciIsIm9wdGlvbnMiLCJjb250ZXh0IiwiZGlmZiIsImRpZmZMaW5lcyIsInB1c2giLCJ2YWx1ZSIsImxpbmVzIiwiY29udGV4dExpbmVzIiwibWFwIiwiZW50cnkiLCJodW5rcyIsIm9sZFJhbmdlU3RhcnQiLCJuZXdSYW5nZVN0YXJ0IiwiY3VyUmFuZ2UiLCJv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ICAgICAgLy8gZW5kIHRoZSByYW5nZSBhbmQgb3V0cHV0XG4gICAgICAgICAgbGV0IGNvbnRleHRTaXplID0gTWF0aC5taW4obGluZXMubGVuZ3RoLCBvcHRpb25zLmNvbnRleHQpO1xuICAgICAgICAgIGN1clJhbmdlLnB1c2goLi4uIGNvbnRleHRMaW5lcyhsaW5lcy5zbGljZSgwLCBjb250ZXh0U2l6ZSkpKTtcblxuICAgICAgICAgIGxldCBodW5rID0ge1xuICAgICAgICAgICAgb2xkU3RhcnQ6IG9sZFJhbmdlU3RhcnQsXG4gICAgICAgICAgICBvbGRMaW5lczogKG9sZExpbmUgLSBvbGRSYW5nZVN0YXJ0ICsgY29udGV4dFNpemUpLFxuICAgICAgICAgICAgbmV3U3RhcnQ6IG5ld1JhbmdlU3RhcnQsXG4gICAgICAgICAgICBuZXdMaW5lczogKG5ld0xpbmUgLSBuZXdSYW5nZVN0YXJ0ICsgY29udGV4dFNpemUpLFxuICAgICAgICAgICAgbGluZXM6IGN1clJhbmdlXG4gICAgICAgICAgfTtcbiAgICAgICAgICBpZiAoaSA+PSBkaWZmLmxlbmd0aCAtIDIgJiYgbGluZXMubGVuZ3RoIDw9IG9wdGlvbnMuY29udGV4dCkge1xuICAgICAgICAgICAgLy8gRU9GIGlzIGluc2lkZSB0aGlzIGh1bmtcbiAgICAgICAgICAgIGxldCBvbGRFT0ZOZXdsaW5lID0gKCgvXFxuJC8pLnRlc3Qob2xkU3RyKSk7XG4gICAgICAgICAgICBsZXQgbmV3RU9GTmV3bGluZSA9ICgoL1xcbiQvKS50ZXN0KG5ld1N0cikpO1xuICAgICAgICAgICAgbGV0IG5vTmxCZWZvcmVBZGRzID0gbGluZXMubGVuZ3RoID09IDAgJiYgY3VyUmFuZ2UubGVuZ3RoID4gaHVuay5vbGRMaW5lcztcbiAgICAgICAgICAgIGlmICghb2xkRU9GTmV3bGluZSAmJiBub05sQmVmb3JlQWRkcyAmJiBvbGRTdHIubGVuZ3RoID4gMCkge1xuICA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0gMTtcbiAgICB9XG4gICAgcmV0LnB1c2goXG4gICAgICAnQEAgLScgKyBodW5rLm9sZFN0YXJ0ICsgJywnICsgaHVuay5vbGRMaW5lc1xuICAgICAgKyAnICsnICsgaHVuay5uZXdTdGFydCArICcsJyArIGh1bmsubmV3TGluZXNcbiAgICAgICsgJyBAQCdcbiAgICApO1xuICAgIHJldC5wdXNoLmFwcGx5KHJldCwgaHVuay5saW5lcyk7XG4gIH1cblxuICByZXR1cm4gcmV0LmpvaW4oJ1xcbicpICsgJ1xcbic7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVUd29GaWxlc1BhdGNoKG9sZEZpbGVOYW1lLCBuZXdGaWxlTmFtZSwgb2xkU3RyLCBuZXdTdHIsIG9sZEhlYWRlciwgbmV3SGVhZGVyLCBvcHRpb25zKSB7XG4gIHJldHVybiBmb3JtYXRQYXRjaChzdHJ1Y3R1cmVkUGF0Y2gob2xkRmlsZU5hbWUsIG5ld0ZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZVBhdGNoKGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpIHtcbiAgcmV0dXJuIGNyZWF0ZVR3b0ZpbGVzUGF0Y2goZmlsZU5hbWUsIGZpbGVOYW1lLCBvbGRTdHIsIG5ld1N0ciwgb2xkSGVhZGVyLCBuZXdIZWFkZXIsIG9wdGlvbnMpO1xufVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.arrayEqual = arrayEqual;\nexports.arrayStartsWith = arrayStartsWith;\n\n/*istanbul ignore end*/\nfunction arrayEqual(a, b) {\n if (a.length !== b.length) {\n return false;\n }\n\n return arrayStartsWith(a, b);\n}\n\nfunction arrayStartsWith(array, start) {\n if (start.length > array.length) {\n return false;\n }\n\n for (var i = 0; i < start.length; i++) {\n if (start[i] !== array[i]) {\n return false;\n }\n }\n\n return true;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL2FycmF5LmpzIl0sIm5hbWVzIjpbImFycmF5RXF1YWwiLCJhIiwiYiIsImxlbmd0aCIsImFycmF5U3RhcnRzV2l0aCIsImFycmF5Iiwic3RhcnQiLCJpIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQU8sU0FBU0EsVUFBVCxDQUFvQkMsQ0FBcEIsRUFBdUJDLENBQXZCLEVBQTBCO0FBQy9CLE1BQUlELENBQUMsQ0FBQ0UsTUFBRixLQUFhRCxDQUFDLENBQUNDLE1BQW5CLEVBQTJCO0FBQ3pCLFdBQU8sS0FBUDtBQUNEOztBQUVELFNBQU9DLGVBQWUsQ0FBQ0gsQ0FBRCxFQUFJQyxDQUFKLENBQXRCO0FBQ0Q7O0FBRU0sU0FBU0UsZUFBVCxDQUF5QkMsS0FBekIsRUFBZ0NDLEtBQWhDLEVBQXVDO0FBQzVDLE1BQUlBLEtBQUssQ0FBQ0gsTUFBTixHQUFlRSxLQUFLLENBQUNGLE1BQXpCLEVBQWlDO0FBQy9CLFdBQU8sS0FBUDtBQUNEOztBQUVELE9BQUssSUFBSUksQ0FBQyxHQUFHLENBQWIsRUFBZ0JBLENBQUMsR0FBR0QsS0FBSyxDQUFDSCxNQUExQixFQUFrQ0ksQ0FBQyxFQUFuQyxFQUF1QztBQUNyQyxRQUFJRCxLQUFLLENBQUNDLENBQUQsQ0FBTCxLQUFhRixLQUFLLENBQUNFLENBQUQsQ0FBdEIsRUFBMkI7QUFDekIsYUFBTyxLQUFQO0FBQ0Q7QUFDRjs7QUFFRCxTQUFPLElBQVA7QUFDRCIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBmdW5jdGlvbiBhcnJheUVxdWFsKGEsIGIpIHtcbiAgaWYgKGEubGVuZ3RoICE9PSBiLmxlbmd0aCkge1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIHJldHVybiBhcnJheVN0YXJ0c1dpdGgoYSwgYik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhcnJheVN0YXJ0c1dpdGgoYXJyYXksIHN0YXJ0KSB7XG4gIGlmIChzdGFydC5sZW5ndGggPiBhcnJheS5sZW5ndGgpIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICBmb3IgKGxldCBpID0gMDsgaSA8IHN0YXJ0Lmxlbmd0aDsgaSsrKSB7XG4gICAgaWYgKHN0YXJ0W2ldICE9PSBhcnJheVtpXSkge1xuICAgICAgcmV0dXJuIGZhbHNlO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiB0cnVlO1xufVxuIl19\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.calcLineCount = calcLineCount;\nexports.merge = merge;\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_create = require(\"./create\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_parse = require(\"./parse\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_array = require(\"../util/array\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/*istanbul ignore end*/\nfunction calcLineCount(hunk) {\n /*istanbul ignore start*/\n var _calcOldNewLineCount =\n /*istanbul ignore end*/\n calcOldNewLineCount(hunk.lines),\n oldLines = _calcOldNewLineCount.oldLines,\n newLines = _calcOldNewLineCount.newLines;\n\n if (oldLines !== undefined) {\n hunk.oldLines = oldLines;\n } else {\n delete hunk.oldLines;\n }\n\n if (newLines !== undefined) {\n hunk.newLines = newLines;\n } else {\n delete hunk.newLines;\n }\n}\n\nfunction merge(mine, theirs, base) {\n mine = loadPatch(mine, base);\n theirs = loadPatch(theirs, base);\n var ret = {}; // For index we just let it pass through as it doesn't have any necessary meaning.\n // Leaving sanity checks on this to the API consumer that may know more about the\n // meaning in their own context.\n\n if (mine.index || theirs.index) {\n ret.index = mine.index || theirs.index;\n }\n\n if (mine.newFileName || theirs.newFileName) {\n if (!fileNameChanged(mine)) {\n // No header or no change in ours, use theirs (and ours if theirs does not exist)\n ret.oldFileName = theirs.oldFileName || mine.oldFileName;\n ret.newFileName = theirs.newFileName || mine.newFileName;\n ret.oldHeader = theirs.oldHeader || mine.oldHeader;\n ret.newHeader = theirs.newHeader || mine.newHeader;\n } else if (!fileNameChanged(theirs)) {\n // No header or no change in theirs, use ours\n ret.oldFileName = mine.oldFileName;\n ret.newFileName = mine.newFileName;\n ret.oldHeader = mine.oldHeader;\n ret.newHeader = mine.newHeader;\n } else {\n // Both changed... figure it out\n ret.oldFileName = selectField(ret, mine.oldFileName, theirs.oldFileName);\n ret.newFileName = selectField(ret, mine.newFileName, theirs.newFileName);\n ret.oldHeader = selectField(ret, mine.oldHeader, theirs.oldHeader);\n ret.newHeader = selectField(ret, mine.newHeader, theirs.newHeader);\n }\n }\n\n ret.hunks = [];\n var mineIndex = 0,\n theirsIndex = 0,\n mineOffset = 0,\n theirsOffset = 0;\n\n while (mineIndex < mine.hunks.length || theirsIndex < theirs.hunks.length) {\n var mineCurrent = mine.hunks[mineIndex] || {\n oldStart: Infinity\n },\n theirsCurrent = theirs.hunks[theirsIndex] || {\n oldStart: Infinity\n };\n\n if (hunkBefore(mineCurrent, theirsCurrent)) {\n // This patch does not overlap with any of the others, yay.\n ret.hunks.push(cloneHunk(mineCurrent, mineOffset));\n mineIndex++;\n theirsOffset += mineCurrent.newLines - mineCurrent.oldLines;\n } else if (hunkBefore(theirsCurrent, mineCurrent)) {\n // This patch does not overlap with any of the others, yay.\n ret.hunks.push(cloneHunk(theirsCurrent, theirsOffset));\n theirsIndex++;\n mineOffset += theirsCurrent.newLines - theirsCurrent.oldLines;\n } else {\n // Overlap, merge as best we can\n var mergedHunk = {\n oldStart: Math.min(mineCurrent.oldStart, theirsCurrent.oldStart),\n oldLines: 0,\n newStart: Math.min(mineCurrent.newStart + mineOffset, theirsCurrent.oldStart + theirsOffset),\n newLines: 0,\n lines: []\n };\n mergeLines(mergedHunk, mineCurrent.oldStart, mineCurrent.lines, theirsCurrent.oldStart, theirsCurrent.lines);\n theirsIndex++;\n mineIndex++;\n ret.hunks.push(mergedHunk);\n }\n }\n\n return ret;\n}\n\nfunction loadPatch(param, base) {\n if (typeof param === 'string') {\n if (/^@@/m.test(param) || /^Index:/m.test(param)) {\n return (\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _parse\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n parsePatch)\n /*istanbul ignore end*/\n (param)[0]\n );\n }\n\n if (!base) {\n throw new Error('Must provide a base reference or pass in a patch');\n }\n\n return (\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _create\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n structuredPatch)\n /*istanbul ignore end*/\n (undefined, undefined, base, param)\n );\n }\n\n return param;\n}\n\nfunction fileNameChanged(patch) {\n return patch.newFileName && patch.newFileName !== patch.oldFileName;\n}\n\nfunction selectField(index, mine, theirs) {\n if (mine === theirs) {\n return mine;\n } else {\n index.conflict = true;\n return {\n mine: mine,\n theirs: theirs\n };\n }\n}\n\nfunction hunkBefore(test, check) {\n return test.oldStart < check.oldStart && test.oldStart + test.oldLines < check.oldStart;\n}\n\nfunction cloneHunk(hunk, offset) {\n return {\n oldStart: hunk.oldStart,\n oldLines: hunk.oldLines,\n newStart: hunk.newStart + offset,\n newLines: hunk.newLines,\n lines: hunk.lines\n };\n}\n\nfunction mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines) {\n // This will generally result in a conflicted hunk, but there are cases where the context\n // is the only overlap where we can successfully merge the content here.\n var mine = {\n offset: mineOffset,\n lines: mineLines,\n index: 0\n },\n their = {\n offset: theirOffset,\n lines: theirLines,\n index: 0\n }; // Handle any leading content\n\n insertLeading(hunk, mine, their);\n insertLeading(hunk, their, mine); // Now in the overlap content. Scan through and select the best changes from each.\n\n while (mine.index < mine.lines.length && their.index < their.lines.length) {\n var mineCurrent = mine.lines[mine.index],\n theirCurrent = their.lines[their.index];\n\n if ((mineCurrent[0] === '-' || mineCurrent[0] === '+') && (theirCurrent[0] === '-' || theirCurrent[0] === '+')) {\n // Both modified ...\n mutualChange(hunk, mine, their);\n } else if (mineCurrent[0] === '+' && theirCurrent[0] === ' ') {\n /*istanbul ignore start*/\n var _hunk$lines;\n\n /*istanbul ignore end*/\n // Mine inserted\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n collectChange(mine)));\n } else if (theirCurrent[0] === '+' && mineCurrent[0] === ' ') {\n /*istanbul ignore start*/\n var _hunk$lines2;\n\n /*istanbul ignore end*/\n // Theirs inserted\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines2 =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines2\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n collectChange(their)));\n } else if (mineCurrent[0] === '-' && theirCurrent[0] === ' ') {\n // Mine removed or edited\n removal(hunk, mine, their);\n } else if (theirCurrent[0] === '-' && mineCurrent[0] === ' ') {\n // Their removed or edited\n removal(hunk, their, mine, true);\n } else if (mineCurrent === theirCurrent) {\n // Context identity\n hunk.lines.push(mineCurrent);\n mine.index++;\n their.index++;\n } else {\n // Context mismatch\n conflict(hunk, collectChange(mine), collectChange(their));\n }\n } // Now push anything that may be remaining\n\n\n insertTrailing(hunk, mine);\n insertTrailing(hunk, their);\n calcLineCount(hunk);\n}\n\nfunction mutualChange(hunk, mine, their) {\n var myChanges = collectChange(mine),\n theirChanges = collectChange(their);\n\n if (allRemoves(myChanges) && allRemoves(theirChanges)) {\n // Special case for remove changes that are supersets of one another\n if (\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _array\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n arrayStartsWith)\n /*istanbul ignore end*/\n (myChanges, theirChanges) && skipRemoveSuperset(their, myChanges, myChanges.length - theirChanges.length)) {\n /*istanbul ignore start*/\n var _hunk$lines3;\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines3 =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines3\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n myChanges));\n\n return;\n } else if (\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _array\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n arrayStartsWith)\n /*istanbul ignore end*/\n (theirChanges, myChanges) && skipRemoveSuperset(mine, theirChanges, theirChanges.length - myChanges.length)) {\n /*istanbul ignore start*/\n var _hunk$lines4;\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines4 =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines4\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n theirChanges));\n\n return;\n }\n } else if (\n /*istanbul ignore start*/\n (0,\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n _array\n /*istanbul ignore end*/\n .\n /*istanbul ignore start*/\n arrayEqual)\n /*istanbul ignore end*/\n (myChanges, theirChanges)) {\n /*istanbul ignore start*/\n var _hunk$lines5;\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines5 =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines5\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n myChanges));\n\n return;\n }\n\n conflict(hunk, myChanges, theirChanges);\n}\n\nfunction removal(hunk, mine, their, swap) {\n var myChanges = collectChange(mine),\n theirChanges = collectContext(their, myChanges);\n\n if (theirChanges.merged) {\n /*istanbul ignore start*/\n var _hunk$lines6;\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n\n /*istanbul ignore end*/\n\n /*istanbul ignore start*/\n (_hunk$lines6 =\n /*istanbul ignore end*/\n hunk.lines).push.apply(\n /*istanbul ignore start*/\n _hunk$lines6\n /*istanbul ignore end*/\n ,\n /*istanbul ignore start*/\n _toConsumableArray(\n /*istanbul ignore end*/\n theirChanges.merged));\n } else {\n conflict(hunk, swap ? theirChanges : myChanges, swap ? myChanges : theirChanges);\n }\n}\n\nfunction conflict(hunk, mine, their) {\n hunk.conflict = true;\n hunk.lines.push({\n conflict: true,\n mine: mine,\n theirs: their\n });\n}\n\nfunction insertLeading(hunk, insert, their) {\n while (insert.offset < their.offset && insert.index < insert.lines.length) {\n var line = insert.lines[insert.index++];\n hunk.lines.push(line);\n insert.offset++;\n }\n}\n\nfunction insertTrailing(hunk, insert) {\n while (insert.index < insert.lines.length) {\n var line = insert.lines[insert.index++];\n hunk.lines.push(line);\n }\n}\n\nfunction collectChange(state) {\n var ret = [],\n operation = state.lines[state.index][0];\n\n while (state.index < state.lines.length) {\n var line = state.lines[state.index]; // Group additions that are immediately after subtractions and treat them as one \"atomic\" modify change.\n\n if (operation === '-' && line[0] === '+') {\n operation = '+';\n }\n\n if (operation === line[0]) {\n ret.push(line);\n state.index++;\n } else {\n break;\n }\n }\n\n return ret;\n}\n\nfunction collectContext(state, matchChanges) {\n var changes = [],\n merged = [],\n matchIndex = 0,\n contextChanges = false,\n conflicted = false;\n\n while (matchIndex < matchChanges.length && state.index < state.lines.length) {\n var change = state.lines[state.index],\n match = matchChanges[matchIndex]; // Once we've hit our add, then we are done\n\n if (match[0] === '+') {\n break;\n }\n\n contextChanges = contextChanges || change[0] !== ' ';\n merged.push(match);\n matchIndex++; // Consume any additions in the other block as a conflict to attempt\n // to pull in the remaining context after this\n\n if (change[0] === '+') {\n conflicted = true;\n\n while (change[0] === '+') {\n changes.push(change);\n change = state.lines[++state.index];\n }\n }\n\n if (match.substr(1) === change.substr(1)) {\n changes.push(change);\n state.index++;\n } else {\n conflicted = true;\n }\n }\n\n if ((matchChanges[matchIndex] || '')[0] === '+' && contextChanges) {\n conflicted = true;\n }\n\n if (conflicted) {\n return changes;\n }\n\n while (matchIndex < matchChanges.length) {\n merged.push(matchChanges[matchIndex++]);\n }\n\n return {\n merged: merged,\n changes: changes\n };\n}\n\nfunction allRemoves(changes) {\n return changes.reduce(function (prev, change) {\n return prev && change[0] === '-';\n }, true);\n}\n\nfunction skipRemoveSuperset(state, removeChanges, delta) {\n for (var i = 0; i < delta; i++) {\n var changeContent = removeChanges[removeChanges.length - delta + i].substr(1);\n\n if (state.lines[state.index + i] !== ' ' + changeContent) {\n return false;\n }\n }\n\n state.index += delta;\n return true;\n}\n\nfunction calcOldNewLineCount(lines) {\n var oldLines = 0;\n var newLines = 0;\n lines.forEach(function (line) {\n if (typeof line !== 'string') {\n var myCount = calcOldNewLineCount(line.mine);\n var theirCount = calcOldNewLineCount(line.theirs);\n\n if (oldLines !== undefined) {\n if (myCount.oldLines === theirCount.oldLines) {\n oldLines += myCount.oldLines;\n } else {\n oldLines = undefined;\n }\n }\n\n if (newLines !== undefined) {\n if (myCount.newLines === theirCount.newLines) {\n newLines += myCount.newLines;\n } else {\n newLines = undefined;\n }\n }\n } else {\n if (newLines !== undefined && (line[0] === '+' || line[0] === ' ')) {\n newLines++;\n }\n\n if (oldLines !== undefined && (line[0] === '-' || line[0] === ' ')) {\n oldLines++;\n }\n }\n });\n return {\n oldLines: oldLines,\n newLines: newLines\n };\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wYXRjaC9tZXJnZS5qcyJdLCJuYW1lcyI6WyJjYWxjTGluZUNvdW50IiwiaHVuayIsImNhbGNPbGROZXdMaW5lQ291bnQiLCJsaW5lcyIsIm9sZExpbmVzIiwibmV3TGluZXMiLCJ1bmRlZmluZWQiLCJtZXJnZSIsIm1pbmUiLCJ0aGVpcnMiLCJiY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IHJldHVybiB0cnVlO1xufVxuXG5mdW5jdGlvbiBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmVzKSB7XG4gIGxldCBvbGRMaW5lcyA9IDA7XG4gIGxldCBuZXdMaW5lcyA9IDA7XG5cbiAgbGluZXMuZm9yRWFjaChmdW5jdGlvbihsaW5lKSB7XG4gICAgaWYgKHR5cGVvZiBsaW5lICE9PSAnc3RyaW5nJykge1xuICAgICAgbGV0IG15Q291bnQgPSBjYWxjT2xkTmV3TGluZUNvdW50KGxpbmUubWluZSk7XG4gICAgICBsZXQgdGhlaXJDb3VudCA9IGNhbGNPbGROZXdMaW5lQ291bnQobGluZS50aGVpcnMpO1xuXG4gICAgICBpZiAob2xkTGluZXMgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICBpZiAobXlDb3VudC5vbGRMaW5lcyA9PT0gdGhlaXJDb3VudC5vbGRMaW5lcykge1xuICAgICAgICAgIG9sZExpbmVzICs9IG15Q291bnQub2xkTGluZXM7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgb2xkTGluZXMgPSB1bmRlZmluZWQ7XG4gICAgICAgIH1cbiAgICAgIH1cblxuICAgICAgaWYgKG5ld0xpbmVzICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKG15Q291bnQubmV3TGluZXMgPT09IHRoZWlyQ291bnQubmV3TGluZXMpIHtcbiAgICAgICAgICBuZXdMaW5lcyArPSBteUNvdW50Lm5ld0xpbmVzO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG5ld0xpbmVzID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGlmIChuZXdMaW5lcyAhPT0gdW5kZWZpbmVkICYmIChsaW5lWzBdID09PSAnKycgfHwgbGluZVswXSA9PT0gJyAnKSkge1xuICAgICAgICBuZXdMaW5lcysrO1xuICAgICAgfVxuICAgICAgaWYgKG9sZExpbmVzICE9PSB1bmRlZmluZWQgJiYgKGxpbmVbMF0gPT09ICctJyB8fCBsaW5lWzBdID09PSAnICcpKSB7XG4gICAgICAgIG9sZExpbmVzKys7XG4gICAgICB9XG4gICAgfVxuICB9KTtcblxuICByZXR1cm4ge29sZExpbmVzLCBuZXdMaW5lc307XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.convertChangesToDMP = convertChangesToDMP;\n\n/*istanbul ignore end*/\n// See: http://code.google.com/p/google-diff-match-patch/wiki/API\nfunction convertChangesToDMP(changes) {\n var ret = [],\n change,\n operation;\n\n for (var i = 0; i < changes.length; i++) {\n change = changes[i];\n\n if (change.added) {\n operation = 1;\n } else if (change.removed) {\n operation = -1;\n } else {\n operation = 0;\n }\n\n ret.push([operation, change.value]);\n }\n\n return ret;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L2RtcC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvRE1QIiwiY2hhbmdlcyIsInJldCIsImNoYW5nZSIsIm9wZXJhdGlvbiIsImkiLCJsZW5ndGgiLCJhZGRlZCIsInJlbW92ZWQiLCJwdXNoIiwidmFsdWUiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBO0FBQ08sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLEdBQUcsR0FBRyxFQUFWO0FBQUEsTUFDSUMsTUFESjtBQUFBLE1BRUlDLFNBRko7O0FBR0EsT0FBSyxJQUFJQyxDQUFDLEdBQUcsQ0FBYixFQUFnQkEsQ0FBQyxHQUFHSixPQUFPLENBQUNLLE1BQTVCLEVBQW9DRCxDQUFDLEVBQXJDLEVBQXlDO0FBQ3ZDRixJQUFBQSxNQUFNLEdBQUdGLE9BQU8sQ0FBQ0ksQ0FBRCxDQUF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value: true\n});\nexports.convertChangesToXML = convertChangesToXML;\n\n/*istanbul ignore end*/\nfunction convertChangesToXML(changes) {\n var ret = [];\n\n for (var i = 0; i < changes.length; i++) {\n var change = changes[i];\n\n if (change.added) {\n ret.push('');\n } else if (change.removed) {\n ret.push('');\n }\n\n ret.push(escapeHTML(change.value));\n\n if (change.added) {\n ret.push('');\n } else if (change.removed) {\n ret.push('');\n }\n }\n\n return ret.join('');\n}\n\nfunction escapeHTML(s) {\n var n = s;\n n = n.replace(/&/g, '&');\n n = n.replace(//g, '>');\n n = n.replace(/\"/g, '"');\n return n;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0L3htbC5qcyJdLCJuYW1lcyI6WyJjb252ZXJ0Q2hhbmdlc1RvWE1MIiwiY2hhbmdlcyIsInJldCIsImkiLCJsZW5ndGgiLCJjaGFuZ2UiLCJhZGRlZCIsInB1c2giLCJyZW1vdmVkIiwiZXNjYXBlSFRNTCIsInZhbHVlIiwiam9pbiIsInMiLCJuIiwicmVwbGFjZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQU8sU0FBU0EsbUJBQVQsQ0FBNkJDLE9BQTdCLEVBQXNDO0FBQzNDLE1BQUlDLEdBQUcsR0FBRyxFQUFWOztBQUNBLE9BQUssSUFBSUMsQ0FBQyxHQUFHLENBQWIsRUFBZ0JBLENBQUMsR0FBR0YsT0FBTyxDQUFDRyxNQUE1QixFQUFvQ0QsQ0FBQyxFQUFyQyxFQUF5QztBQUN2QyxRQUFJRSxNQUFNLEdBQUdKLE9BQU8sQ0FBQ0UsQ0FBRCxDQUFwQjs7QUFDQSxRQUFJRSxNQUFNLENBQUNDLEtBQVgsRUFBa0I7QUFDaEJKLE1BQUFBLEdBQUcsQ0FBQ0ssSUFBSixDQUFTLE9BQVQ7QUFDRCxLQUZELE1BRU8sSUFBSUYsTUFBTSxDQUFDR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A9IDA7IGkgPCBjaGFuZ2VzLmxlbmd0aDsgaSsrKSB7XG4gICAgbGV0IGNoYW5nZSA9IGNoYW5nZXNbaV07XG4gICAgaWYgKGNoYW5nZS5hZGRlZCkge1xuICAgICAgcmV0LnB1c2goJzxpbnM+Jyk7XG4gICAgfSBlbHNlIGlmIChjaGFuZ2UucmVtb3ZlZCkge1xuICAgICAgcmV0LnB1c2goJzxkZWw+Jyk7XG4gICAgfVxuXG4gICAgcmV0LnB1c2goZXNjYXBlSFRNTChjaGFuZ2UudmFsdWUpKTtcblxuICAgIGlmIChjaGFuZ2UuYWRkZWQpIHtcbiAgICAgIHJldC5wdXNoKCc8L2lucz4nKTtcbiAgICB9IGVsc2UgaWYgKGNoYW5nZS5yZW1vdmVkKSB7XG4gICAgICByZXQucHVzaCgnPC9kZWw+Jyk7XG4gICAgfVxuICB9XG4gIHJldHVybiByZXQuam9pbignJyk7XG59XG5cbmZ1bmN0aW9uIGVzY2FwZUhUTUwocykge1xuICBsZXQgbiA9IHM7XG4gIG4gPSBuLnJlcGxhY2UoLyYvZywgJyZhbXA7Jyk7XG4gIG4gPSBuLnJlcGxhY2UoLzwvZywgJyZsdDsnKTtcbiAgbiA9IG4ucmVwbGFjZSgvPi9nLCAnJmd0OycpO1xuICBuID0gbi5yZXBsYWNlKC9cIi9nLCAnJnF1b3Q7Jyk7XG5cbiAgcmV0dXJuIG47XG59XG4iXX0=\n","/*istanbul ignore start*/\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"Diff\", {\n enumerable: true,\n get: function get() {\n return _base[\"default\"];\n }\n});\nObject.defineProperty(exports, \"diffChars\", {\n enumerable: true,\n get: function get() {\n return _character.diffChars;\n }\n});\nObject.defineProperty(exports, \"diffWords\", {\n enumerable: true,\n get: function get() {\n return _word.diffWords;\n }\n});\nObject.defineProperty(exports, \"diffWordsWithSpace\", {\n enumerable: true,\n get: function get() {\n return _word.diffWordsWithSpace;\n }\n});\nObject.defineProperty(exports, \"diffLines\", {\n enumerable: true,\n get: function get() {\n return _line.diffLines;\n }\n});\nObject.defineProperty(exports, \"diffTrimmedLines\", {\n enumerable: true,\n get: function get() {\n return _line.diffTrimmedLines;\n }\n});\nObject.defineProperty(exports, \"diffSentences\", {\n enumerable: true,\n get: function get() {\n return _sentence.diffSentences;\n }\n});\nObject.defineProperty(exports, \"diffCss\", {\n enumerable: true,\n get: function get() {\n return _css.diffCss;\n }\n});\nObject.defineProperty(exports, \"diffJson\", {\n enumerable: true,\n get: function get() {\n return _json.diffJson;\n }\n});\nObject.defineProperty(exports, \"canonicalize\", {\n enumerable: true,\n get: function get() {\n return _json.canonicalize;\n }\n});\nObject.defineProperty(exports, \"diffArrays\", {\n enumerable: true,\n get: function get() {\n return _array.diffArrays;\n }\n});\nObject.defineProperty(exports, \"applyPatch\", {\n enumerable: true,\n get: function get() {\n return _apply.applyPatch;\n }\n});\nObject.defineProperty(exports, \"applyPatches\", {\n enumerable: true,\n get: function get() {\n return _apply.applyPatches;\n }\n});\nObject.defineProperty(exports, \"parsePatch\", {\n enumerable: true,\n get: function get() {\n return _parse.parsePatch;\n }\n});\nObject.defineProperty(exports, \"merge\", {\n enumerable: true,\n get: function get() {\n return _merge.merge;\n }\n});\nObject.defineProperty(exports, \"structuredPatch\", {\n enumerable: true,\n get: function get() {\n return _create.structuredPatch;\n }\n});\nObject.defineProperty(exports, \"createTwoFilesPatch\", {\n enumerable: true,\n get: function get() {\n return _create.createTwoFilesPatch;\n }\n});\nObject.defineProperty(exports, \"createPatch\", {\n enumerable: true,\n get: function get() {\n return _create.createPatch;\n }\n});\nObject.defineProperty(exports, \"convertChangesToDMP\", {\n enumerable: true,\n get: function get() {\n return _dmp.convertChangesToDMP;\n }\n});\nObject.defineProperty(exports, \"convertChangesToXML\", {\n enumerable: true,\n get: function get() {\n return _xml.convertChangesToXML;\n }\n});\n\n/*istanbul ignore end*/\nvar\n/*istanbul ignore start*/\n_base = _interopRequireDefault(require(\"./diff/base\"))\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_character = require(\"./diff/character\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_word = require(\"./diff/word\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_line = require(\"./diff/line\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_sentence = require(\"./diff/sentence\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_css = require(\"./diff/css\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_json = require(\"./diff/json\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_array = require(\"./diff/array\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_apply = require(\"./patch/apply\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_parse = require(\"./patch/parse\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_merge = require(\"./patch/merge\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_create = require(\"./patch/create\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_dmp = require(\"./convert/dmp\")\n/*istanbul ignore end*/\n;\n\nvar\n/*istanbul ignore start*/\n_xml = require(\"./convert/xml\")\n/*istanbul ignore end*/\n;\n\n/*istanbul ignore start*/ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\n/*istanbul ignore end*/\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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0ZpbGVzUGF0Y2gsIGNyZWF0ZVBhdGNofSBmcm9tICcuL3BhdGNoL2NyZWF0ZSc7XG5cbmltcG9ydCB7Y29udmVydENoYW5nZXNUb0RNUH0gZnJvbSAnLi9jb252ZXJ0L2RtcCc7XG5pbXBvcnQge2NvbnZlcnRDaGFuZ2VzVG9YTUx9IGZyb20gJy4vY29udmVydC94bWwnO1xuXG5leHBvcnQge1xuICBEaWZmLFxuXG4gIGRpZmZDaGFycyxcbiAgZGlmZldvcmRzLFxuICBkaWZmV29yZHNXaXRoU3BhY2UsXG4gIGRpZmZMaW5lcyxcbiAgZGlmZlRyaW1tZWRMaW5lcyxcbiAgZGlmZlNlbnRlbmNlcyxcblxuICBkaWZmQ3NzLFxuICBkaWZmSnNvbixcblxuICBkaWZmQXJyYXlzLFxuXG4gIHN0cnVjdHVyZWRQYXRjaCxcbiAgY3JlYXRlVHdvRmlsZXNQYXRjaCxcbiAgY3JlYXRlUGF0Y2gsXG4gIGFwcGx5UGF0Y2gsXG4gIGFwcGx5UGF0Y2hlcyxcbiAgcGFyc2VQYXRjaCxcbiAgbWVyZ2UsXG4gIGNvbnZlcnRDaGFuZ2VzVG9ETVAsXG4gIGNvbnZlcnRDaGFuZ2VzVG9YTUwsXG4gIGNhbm9uaWNhbGl6ZVxufTtcbiJdfQ==\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\nvar inited = false;\nfunction init () {\n inited = true;\n var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\n for (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n }\n\n revLookup['-'.charCodeAt(0)] = 62\n revLookup['_'.charCodeAt(0)] = 63\n}\n\nexport function toByteArray (b64) {\n if (!inited) {\n init();\n }\n var i, j, l, tmp, placeHolders, arr\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // the number of equal signs (place holders)\n // if there are two placeholders, than the two characters before it\n // represent one byte\n // if there is only one, then the three characters before it represent 2 bytes\n // this is just a cheap hack to not do indexOf twice\n placeHolders = b64[len - 2] === '=' ? 2 : b64[len - 1] === '=' ? 1 : 0\n\n // base64 is 4/3 + up to two characters of the original data\n arr = new Arr(len * 3 / 4 - placeHolders)\n\n // if there are placeholders, only get up to the last complete 4 chars\n l = placeHolders > 0 ? len - 4 : len\n\n var L = 0\n\n for (i = 0, j = 0; i < l; i += 4, j += 3) {\n tmp = (revLookup[b64.charCodeAt(i)] << 18) | (revLookup[b64.charCodeAt(i + 1)] << 12) | (revLookup[b64.charCodeAt(i + 2)] << 6) | revLookup[b64.charCodeAt(i + 3)]\n arr[L++] = (tmp >> 16) & 0xFF\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n if (placeHolders === 2) {\n tmp = (revLookup[b64.charCodeAt(i)] << 2) | (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[L++] = tmp & 0xFF\n } else if (placeHolders === 1) {\n tmp = (revLookup[b64.charCodeAt(i)] << 10) | (revLookup[b64.charCodeAt(i + 1)] << 4) | (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[L++] = (tmp >> 8) & 0xFF\n arr[L++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] + lookup[num >> 12 & 0x3F] + lookup[num >> 6 & 0x3F] + lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nexport function fromByteArray (uint8) {\n if (!inited) {\n init();\n }\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var output = ''\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n output += lookup[tmp >> 2]\n output += lookup[(tmp << 4) & 0x3F]\n output += '=='\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + (uint8[len - 1])\n output += lookup[tmp >> 10]\n output += lookup[(tmp >> 4) & 0x3F]\n output += lookup[(tmp << 2) & 0x3F]\n output += '='\n }\n\n parts.push(output)\n\n return parts.join('')\n}\n","\nexport function read (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexport function write (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","var toString = {}.toString;\n\nexport default Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\nimport * as base64 from './base64'\nimport * as ieee754 from './ieee754'\nimport isArray from './isArray'\n\nexport var INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : true\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nvar _kMaxLength = kMaxLength()\nexport {_kMaxLength as kMaxLength};\nfunction typedArraySupport () {\n return true;\n // rollup issues\n // try {\n // var arr = new Uint8Array(1)\n // arr.__proto__ = {\n // __proto__: Uint8Array.prototype,\n // foo: function () { return 42 }\n // }\n // return arr.foo() === 42 && // typed array instances can be augmented\n // typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n // arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n // } catch (e) {\n // return false\n // }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nexport function Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n // Object.defineProperty(Buffer, Symbol.species, {\n // value: null,\n // configurable: true\n // })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (internalIsBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nexport function SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\nBuffer.isBuffer = isBuffer;\nfunction internalIsBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!internalIsBuffer(a) || !internalIsBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!internalIsBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (internalIsBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!internalIsBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!internalIsBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (internalIsBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!internalIsBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = internalIsBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n\n\n// the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nexport function isBuffer(obj) {\n return obj != null && (!!obj._isBuffer || isFastBuffer(obj) || isSlowBuffer(obj))\n}\n\nfunction isFastBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isFastBuffer(obj.slice(0, 0))\n}\n","export var browser = true;\n","let urlAlphabet =\n 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\nlet customAlphabet = (alphabet, defaultSize = 21) => {\n return (size = defaultSize) => {\n let id = ''\n let i = size\n while (i--) {\n id += alphabet[(Math.random() * alphabet.length) | 0]\n }\n return id\n }\n}\nlet nanoid = (size = 21) => {\n let id = ''\n let i = size\n while (i--) {\n id += urlAlphabet[(Math.random() * 64) | 0]\n }\n return id\n}\nmodule.exports = { nanoid, customAlphabet }\n","/*! https://mths.be/he v1.2.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code,\n\t// and use it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t// All astral symbols.\n\tvar regexAstralSymbols = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n\t// All ASCII symbols (not just printable ASCII) except those listed in the\n\t// first column of the overrides table.\n\t// https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides\n\tvar regexAsciiWhitelist = /[\\x01-\\x7F]/g;\n\t// All BMP symbols that are not ASCII newlines, printable ASCII symbols, or\n\t// code points listed in the first column of the overrides table on\n\t// https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides.\n\tvar regexBmpWhitelist = /[\\x01-\\t\\x0B\\f\\x0E-\\x1F\\x7F\\x81\\x8D\\x8F\\x90\\x9D\\xA0-\\uFFFF]/g;\n\n\tvar regexEncodeNonAscii = /<\\u20D2|=\\u20E5|>\\u20D2|\\u205F\\u200A|\\u219D\\u0338|\\u2202\\u0338|\\u2220\\u20D2|\\u2229\\uFE00|\\u222A\\uFE00|\\u223C\\u20D2|\\u223D\\u0331|\\u223E\\u0333|\\u2242\\u0338|\\u224B\\u0338|\\u224D\\u20D2|\\u224E\\u0338|\\u224F\\u0338|\\u2250\\u0338|\\u2261\\u20E5|\\u2264\\u20D2|\\u2265\\u20D2|\\u2266\\u0338|\\u2267\\u0338|\\u2268\\uFE00|\\u2269\\uFE00|\\u226A\\u0338|\\u226A\\u20D2|\\u226B\\u0338|\\u226B\\u20D2|\\u227F\\u0338|\\u2282\\u20D2|\\u2283\\u20D2|\\u228A\\uFE00|\\u228B\\uFE00|\\u228F\\u0338|\\u2290\\u0338|\\u2293\\uFE00|\\u2294\\uFE00|\\u22B4\\u20D2|\\u22B5\\u20D2|\\u22D8\\u0338|\\u22D9\\u0338|\\u22DA\\uFE00|\\u22DB\\uFE00|\\u22F5\\u0338|\\u22F9\\u0338|\\u2933\\u0338|\\u29CF\\u0338|\\u29D0\\u0338|\\u2A6D\\u0338|\\u2A70\\u0338|\\u2A7D\\u0338|\\u2A7E\\u0338|\\u2AA1\\u0338|\\u2AA2\\u0338|\\u2AAC\\uFE00|\\u2AAD\\uFE00|\\u2AAF\\u0338|\\u2AB0\\u0338|\\u2AC5\\u0338|\\u2AC6\\u0338|\\u2ACB\\uFE00|\\u2ACC\\uFE00|\\u2AFD\\u20E5|[\\xA0-\\u0113\\u0116-\\u0122\\u0124-\\u012B\\u012E-\\u014D\\u0150-\\u017E\\u0192\\u01B5\\u01F5\\u0237\\u02C6\\u02C7\\u02D8-\\u02DD\\u0311\\u0391-\\u03A1\\u03A3-\\u03A9\\u03B1-\\u03C9\\u03D1\\u03D2\\u03D5\\u03D6\\u03DC\\u03DD\\u03F0\\u03F1\\u03F5\\u03F6\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E\\u045F\\u2002-\\u2005\\u2007-\\u2010\\u2013-\\u2016\\u2018-\\u201A\\u201C-\\u201E\\u2020-\\u2022\\u2025\\u2026\\u2030-\\u2035\\u2039\\u203A\\u203E\\u2041\\u2043\\u2044\\u204F\\u2057\\u205F-\\u2063\\u20AC\\u20DB\\u20DC\\u2102\\u2105\\u210A-\\u2113\\u2115-\\u211E\\u2122\\u2124\\u2127-\\u2129\\u212C\\u212D\\u212F-\\u2131\\u2133-\\u2138\\u2145-\\u2148\\u2153-\\u215E\\u2190-\\u219B\\u219D-\\u21A7\\u21A9-\\u21AE\\u21B0-\\u21B3\\u21B5-\\u21B7\\u21BA-\\u21DB\\u21DD\\u21E4\\u21E5\\u21F5\\u21FD-\\u2205\\u2207-\\u2209\\u220B\\u220C\\u220F-\\u2214\\u2216-\\u2218\\u221A\\u221D-\\u2238\\u223A-\\u2257\\u2259\\u225A\\u225C\\u225F-\\u2262\\u2264-\\u228B\\u228D-\\u229B\\u229D-\\u22A5\\u22A7-\\u22B0\\u22B2-\\u22BB\\u22BD-\\u22DB\\u22DE-\\u22E3\\u22E6-\\u22F7\\u22F9-\\u22FE\\u2305\\u2306\\u2308-\\u2310\\u2312\\u2313\\u2315\\u2316\\u231C-\\u231F\\u2322\\u2323\\u232D\\u232E\\u2336\\u233D\\u233F\\u237C\\u23B0\\u23B1\\u23B4-\\u23B6\\u23DC-\\u23DF\\u23E2\\u23E7\\u2423\\u24C8\\u2500\\u2502\\u250C\\u2510\\u2514\\u2518\\u251C\\u2524\\u252C\\u2534\\u253C\\u2550-\\u256C\\u2580\\u2584\\u2588\\u2591-\\u2593\\u25A1\\u25AA\\u25AB\\u25AD\\u25AE\\u25B1\\u25B3-\\u25B5\\u25B8\\u25B9\\u25BD-\\u25BF\\u25C2\\u25C3\\u25CA\\u25CB\\u25EC\\u25EF\\u25F8-\\u25FC\\u2605\\u2606\\u260E\\u2640\\u2642\\u2660\\u2663\\u2665\\u2666\\u266A\\u266D-\\u266F\\u2713\\u2717\\u2720\\u2736\\u2758\\u2772\\u2773\\u27C8\\u27C9\\u27E6-\\u27ED\\u27F5-\\u27FA\\u27FC\\u27FF\\u2902-\\u2905\\u290C-\\u2913\\u2916\\u2919-\\u2920\\u2923-\\u292A\\u2933\\u2935-\\u2939\\u293C\\u293D\\u2945\\u2948-\\u294B\\u294E-\\u2976\\u2978\\u2979\\u297B-\\u297F\\u2985\\u2986\\u298B-\\u2996\\u299A\\u299C\\u299D\\u29A4-\\u29B7\\u29B9\\u29BB\\u29BC\\u29BE-\\u29C5\\u29C9\\u29CD-\\u29D0\\u29DC-\\u29DE\\u29E3-\\u29E5\\u29EB\\u29F4\\u29F6\\u2A00-\\u2A02\\u2A04\\u2A06\\u2A0C\\u2A0D\\u2A10-\\u2A17\\u2A22-\\u2A27\\u2A29\\u2A2A\\u2A2D-\\u2A31\\u2A33-\\u2A3C\\u2A3F\\u2A40\\u2A42-\\u2A4D\\u2A50\\u2A53-\\u2A58\\u2A5A-\\u2A5D\\u2A5F\\u2A66\\u2A6A\\u2A6D-\\u2A75\\u2A77-\\u2A9A\\u2A9D-\\u2AA2\\u2AA4-\\u2AB0\\u2AB3-\\u2AC8\\u2ACB\\u2ACC\\u2ACF-\\u2ADB\\u2AE4\\u2AE6-\\u2AE9\\u2AEB-\\u2AF3\\u2AFD\\uFB00-\\uFB04]|\\uD835[\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDCCF\\uDD04\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDD6B]/g;\n\tvar encodeMap = {'\\xAD':'shy','\\u200C':'zwnj','\\u200D':'zwj','\\u200E':'lrm','\\u2063':'ic','\\u2062':'it','\\u2061':'af','\\u200F':'rlm','\\u200B':'ZeroWidthSpace','\\u2060':'NoBreak','\\u0311':'DownBreve','\\u20DB':'tdot','\\u20DC':'DotDot','\\t':'Tab','\\n':'NewLine','\\u2008':'puncsp','\\u205F':'MediumSpace','\\u2009':'thinsp','\\u200A':'hairsp','\\u2004':'emsp13','\\u2002':'ensp','\\u2005':'emsp14','\\u2003':'emsp','\\u2007':'numsp','\\xA0':'nbsp','\\u205F\\u200A':'ThickSpace','\\u203E':'oline','_':'lowbar','\\u2010':'dash','\\u2013':'ndash','\\u2014':'mdash','\\u2015':'horbar',',':'comma',';':'semi','\\u204F':'bsemi',':':'colon','\\u2A74':'Colone','!':'excl','\\xA1':'iexcl','?':'quest','\\xBF':'iquest','.':'period','\\u2025':'nldr','\\u2026':'mldr','\\xB7':'middot','\\'':'apos','\\u2018':'lsquo','\\u2019':'rsquo','\\u201A':'sbquo','\\u2039':'lsaquo','\\u203A':'rsaquo','\"':'quot','\\u201C':'ldquo','\\u201D':'rdquo','\\u201E':'bdquo','\\xAB':'laquo','\\xBB':'raquo','(':'lpar',')':'rpar','[':'lsqb',']':'rsqb','{':'lcub','}':'rcub','\\u2308':'lceil','\\u2309':'rceil','\\u230A':'lfloor','\\u230B':'rfloor','\\u2985':'lopar','\\u2986':'ropar','\\u298B':'lbrke','\\u298C':'rbrke','\\u298D':'lbrkslu','\\u298E':'rbrksld','\\u298F':'lbrksld','\\u2990':'rbrkslu','\\u2991':'langd','\\u2992':'rangd','\\u2993':'lparlt','\\u2994':'rpargt','\\u2995':'gtlPar','\\u2996':'ltrPar','\\u27E6':'lobrk','\\u27E7':'robrk','\\u27E8':'lang','\\u27E9':'rang','\\u27EA':'Lang','\\u27EB':'Rang','\\u27EC':'loang','\\u27ED':'roang','\\u2772':'lbbrk','\\u2773':'rbbrk','\\u2016':'Vert','\\xA7':'sect','\\xB6':'para','@':'commat','*':'ast','/':'sol','undefined':null,'&':'amp','#':'num','%':'percnt','\\u2030':'permil','\\u2031':'pertenk','\\u2020':'dagger','\\u2021':'Dagger','\\u2022':'bull','\\u2043':'hybull','\\u2032':'prime','\\u2033':'Prime','\\u2034':'tprime','\\u2057':'qprime','\\u2035':'bprime','\\u2041':'caret','`':'grave','\\xB4':'acute','\\u02DC':'tilde','^':'Hat','\\xAF':'macr','\\u02D8':'breve','\\u02D9':'dot','\\xA8':'die','\\u02DA':'ring','\\u02DD':'dblac','\\xB8':'cedil','\\u02DB':'ogon','\\u02C6':'circ','\\u02C7':'caron','\\xB0':'deg','\\xA9':'copy','\\xAE':'reg','\\u2117':'copysr','\\u2118':'wp','\\u211E':'rx','\\u2127':'mho','\\u2129':'iiota','\\u2190':'larr','\\u219A':'nlarr','\\u2192':'rarr','\\u219B':'nrarr','\\u2191':'uarr','\\u2193':'darr','\\u2194':'harr','\\u21AE':'nharr','\\u2195':'varr','\\u2196':'nwarr','\\u2197':'nearr','\\u2198':'searr','\\u2199':'swarr','\\u219D':'rarrw','\\u219D\\u0338':'nrarrw','\\u219E':'Larr','\\u219F':'Uarr','\\u21A0':'Rarr','\\u21A1':'Darr','\\u21A2':'larrtl','\\u21A3':'rarrtl','\\u21A4':'mapstoleft','\\u21A5':'mapstoup','\\u21A6':'map','\\u21A7':'mapstodown','\\u21A9':'larrhk','\\u21AA':'rarrhk','\\u21AB':'larrlp','\\u21AC':'rarrlp','\\u21AD':'harrw','\\u21B0':'lsh','\\u21B1':'rsh','\\u21B2':'ldsh','\\u21B3':'rdsh','\\u21B5':'crarr','\\u21B6':'cularr','\\u21B7':'curarr','\\u21BA':'olarr','\\u21BB':'orarr','\\u21BC':'lharu','\\u21BD':'lhard','\\u21BE':'uharr','\\u21BF':'uharl','\\u21C0':'rharu','\\u21C1':'rhard','\\u21C2':'dharr','\\u21C3':'dharl','\\u21C4':'rlarr','\\u21C5':'udarr','\\u21C6':'lrarr','\\u21C7':'llarr','\\u21C8':'uuarr','\\u21C9':'rrarr','\\u21CA':'ddarr','\\u21CB':'lrhar','\\u21CC':'rlhar','\\u21D0':'lArr','\\u21CD':'nlArr','\\u21D1':'uArr','\\u21D2':'rArr','\\u21CF':'nrArr','\\u21D3':'dArr','\\u21D4':'iff','\\u21CE':'nhArr','\\u21D5':'vArr','\\u21D6':'nwArr','\\u21D7':'neArr','\\u21D8':'seArr','\\u21D9':'swArr','\\u21DA':'lAarr','\\u21DB':'rAarr','\\u21DD':'zigrarr','\\u21E4':'larrb','\\u21E5':'rarrb','\\u21F5':'duarr','\\u21FD':'loarr','\\u21FE':'roarr','\\u21FF':'hoarr','\\u2200':'forall','\\u2201':'comp','\\u2202':'part','\\u2202\\u0338':'npart','\\u2203':'exist','\\u2204':'nexist','\\u2205':'empty','\\u2207':'Del','\\u2208':'in','\\u2209':'notin','\\u220B':'ni','\\u220C':'notni','\\u03F6':'bepsi','\\u220F':'prod','\\u2210':'coprod','\\u2211':'sum','+':'plus','\\xB1':'pm','\\xF7':'div','\\xD7':'times','<':'lt','\\u226E':'nlt','<\\u20D2':'nvlt','=':'equals','\\u2260':'ne','=\\u20E5':'bne','\\u2A75':'Equal','>':'gt','\\u226F':'ngt','>\\u20D2':'nvgt','\\xAC':'not','|':'vert','\\xA6':'brvbar','\\u2212':'minus','\\u2213':'mp','\\u2214':'plusdo','\\u2044':'frasl','\\u2216':'setmn','\\u2217':'lowast','\\u2218':'compfn','\\u221A':'Sqrt','\\u221D':'prop','\\u221E':'infin','\\u221F':'angrt','\\u2220':'ang','\\u2220\\u20D2':'nang','\\u2221':'angmsd','\\u2222':'angsph','\\u2223':'mid','\\u2224':'nmid','\\u2225':'par','\\u2226':'npar','\\u2227':'and','\\u2228':'or','\\u2229':'cap','\\u2229\\uFE00':'caps','\\u222A':'cup','\\u222A\\uFE00':'cups','\\u222B':'int','\\u222C':'Int','\\u222D':'tint','\\u2A0C':'qint','\\u222E':'oint','\\u222F':'Conint','\\u2230':'Cconint','\\u2231':'cwint','\\u2232':'cwconint','\\u2233':'awconint','\\u2234':'there4','\\u2235':'becaus','\\u2236':'ratio','\\u2237':'Colon','\\u2238':'minusd','\\u223A':'mDDot','\\u223B':'homtht','\\u223C':'sim','\\u2241':'nsim','\\u223C\\u20D2':'nvsim','\\u223D':'bsim','\\u223D\\u0331':'race','\\u223E':'ac','\\u223E\\u0333':'acE','\\u223F':'acd','\\u2240':'wr','\\u2242':'esim','\\u2242\\u0338':'nesim','\\u2243':'sime','\\u2244':'nsime','\\u2245':'cong','\\u2247':'ncong','\\u2246':'simne','\\u2248':'ap','\\u2249':'nap','\\u224A':'ape','\\u224B':'apid','\\u224B\\u0338':'napid','\\u224C':'bcong','\\u224D':'CupCap','\\u226D':'NotCupCap','\\u224D\\u20D2':'nvap','\\u224E':'bump','\\u224E\\u0338':'nbump','\\u224F':'bumpe','\\u224F\\u0338':'nbumpe','\\u2250':'doteq','\\u2250\\u0338':'nedot','\\u2251':'eDot','\\u2252':'efDot','\\u2253':'erDot','\\u2254':'colone','\\u2255':'ecolon','\\u2256':'ecir','\\u2257':'cire','\\u2259':'wedgeq','\\u225A':'veeeq','\\u225C':'trie','\\u225F':'equest','\\u2261':'equiv','\\u2262':'nequiv','\\u2261\\u20E5':'bnequiv','\\u2264':'le','\\u2270':'nle','\\u2264\\u20D2':'nvle','\\u2265':'ge','\\u2271':'nge','\\u2265\\u20D2':'nvge','\\u2266':'lE','\\u2266\\u0338':'nlE','\\u2267':'gE','\\u2267\\u0338':'ngE','\\u2268\\uFE00':'lvnE','\\u2268':'lnE','\\u2269':'gnE','\\u2269\\uFE00':'gvnE','\\u226A':'ll','\\u226A\\u0338':'nLtv','\\u226A\\u20D2':'nLt','\\u226B':'gg','\\u226B\\u0338':'nGtv','\\u226B\\u20D2':'nGt','\\u226C':'twixt','\\u2272':'lsim','\\u2274':'nlsim','\\u2273':'gsim','\\u2275':'ngsim','\\u2276':'lg','\\u2278':'ntlg','\\u2277':'gl','\\u2279':'ntgl','\\u227A':'pr','\\u2280':'npr','\\u227B':'sc','\\u2281':'nsc','\\u227C':'prcue','\\u22E0':'nprcue','\\u227D':'sccue','\\u22E1':'nsccue','\\u227E':'prsim','\\u227F':'scsim','\\u227F\\u0338':'NotSucceedsTilde','\\u2282':'sub','\\u2284':'nsub','\\u2282\\u20D2':'vnsub','\\u2283':'sup','\\u2285':'nsup','\\u2283\\u20D2':'vnsup','\\u2286':'sube','\\u2288':'nsube','\\u2287':'supe','\\u2289':'nsupe','\\u228A\\uFE00':'vsubne','\\u228A':'subne','\\u228B\\uFE00':'vsupne','\\u228B':'supne','\\u228D':'cupdot','\\u228E':'uplus','\\u228F':'sqsub','\\u228F\\u0338':'NotSquareSubset','\\u2290':'sqsup','\\u2290\\u0338':'NotSquareSuperset','\\u2291':'sqsube','\\u22E2':'nsqsube','\\u2292':'sqsupe','\\u22E3':'nsqsupe','\\u2293':'sqcap','\\u2293\\uFE00':'sqcaps','\\u2294':'sqcup','\\u2294\\uFE00':'sqcups','\\u2295':'oplus','\\u2296':'ominus','\\u2297':'otimes','\\u2298':'osol','\\u2299':'odot','\\u229A':'ocir','\\u229B':'oast','\\u229D':'odash','\\u229E':'plusb','\\u229F':'minusb','\\u22A0':'timesb','\\u22A1':'sdotb','\\u22A2':'vdash','\\u22AC':'nvdash','\\u22A3':'dashv','\\u22A4':'top','\\u22A5':'bot','\\u22A7':'models','\\u22A8':'vDash','\\u22AD':'nvDash','\\u22A9':'Vdash','\\u22AE':'nVdash','\\u22AA':'Vvdash','\\u22AB':'VDash','\\u22AF':'nVDash','\\u22B0':'prurel','\\u22B2':'vltri','\\u22EA':'nltri','\\u22B3':'vrtri','\\u22EB':'nrtri','\\u22B4':'ltrie','\\u22EC':'nltrie','\\u22B4\\u20D2':'nvltrie','\\u22B5':'rtrie','\\u22ED':'nrtrie','\\u22B5\\u20D2':'nvrtrie','\\u22B6':'origof','\\u22B7':'imof','\\u22B8':'mumap','\\u22B9':'hercon','\\u22BA':'intcal','\\u22BB':'veebar','\\u22BD':'barvee','\\u22BE':'angrtvb','\\u22BF':'lrtri','\\u22C0':'Wedge','\\u22C1':'Vee','\\u22C2':'xcap','\\u22C3':'xcup','\\u22C4':'diam','\\u22C5':'sdot','\\u22C6':'Star','\\u22C7':'divonx','\\u22C8':'bowtie','\\u22C9':'ltimes','\\u22CA':'rtimes','\\u22CB':'lthree','\\u22CC':'rthree','\\u22CD':'bsime','\\u22CE':'cuvee','\\u22CF':'cuwed','\\u22D0':'Sub','\\u22D1':'Sup','\\u22D2':'Cap','\\u22D3':'Cup','\\u22D4':'fork','\\u22D5':'epar','\\u22D6':'ltdot','\\u22D7':'gtdot','\\u22D8':'Ll','\\u22D8\\u0338':'nLl','\\u22D9':'Gg','\\u22D9\\u0338':'nGg','\\u22DA\\uFE00':'lesg','\\u22DA':'leg','\\u22DB':'gel','\\u22DB\\uFE00':'gesl','\\u22DE':'cuepr','\\u22DF':'cuesc','\\u22E6':'lnsim','\\u22E7':'gnsim','\\u22E8':'prnsim','\\u22E9':'scnsim','\\u22EE':'vellip','\\u22EF':'ctdot','\\u22F0':'utdot','\\u22F1':'dtdot','\\u22F2':'disin','\\u22F3':'isinsv','\\u22F4':'isins','\\u22F5':'isindot','\\u22F5\\u0338':'notindot','\\u22F6':'notinvc','\\u22F7':'notinvb','\\u22F9':'isinE','\\u22F9\\u0338':'notinE','\\u22FA':'nisd','\\u22FB':'xnis','\\u22FC':'nis','\\u22FD':'notnivc','\\u22FE':'notnivb','\\u2305':'barwed','\\u2306':'Barwed','\\u230C':'drcrop','\\u230D':'dlcrop','\\u230E':'urcrop','\\u230F':'ulcrop','\\u2310':'bnot','\\u2312':'profline','\\u2313':'profsurf','\\u2315':'telrec','\\u2316':'target','\\u231C':'ulcorn','\\u231D':'urcorn','\\u231E':'dlcorn','\\u231F':'drcorn','\\u2322':'frown','\\u2323':'smile','\\u232D':'cylcty','\\u232E':'profalar','\\u2336':'topbot','\\u233D':'ovbar','\\u233F':'solbar','\\u237C':'angzarr','\\u23B0':'lmoust','\\u23B1':'rmoust','\\u23B4':'tbrk','\\u23B5':'bbrk','\\u23B6':'bbrktbrk','\\u23DC':'OverParenthesis','\\u23DD':'UnderParenthesis','\\u23DE':'OverBrace','\\u23DF':'UnderBrace','\\u23E2':'trpezium','\\u23E7':'elinters','\\u2423':'blank','\\u2500':'boxh','\\u2502':'boxv','\\u250C':'boxdr','\\u2510':'boxdl','\\u2514':'boxur','\\u2518':'boxul','\\u251C':'boxvr','\\u2524':'boxvl','\\u252C':'boxhd','\\u2534':'boxhu','\\u253C':'boxvh','\\u2550':'boxH','\\u2551':'boxV','\\u2552':'boxdR','\\u2553':'boxDr','\\u2554':'boxDR','\\u2555':'boxdL','\\u2556':'boxDl','\\u2557':'boxDL','\\u2558':'boxuR','\\u2559':'boxUr','\\u255A':'boxUR','\\u255B':'boxuL','\\u255C':'boxUl','\\u255D':'boxUL','\\u255E':'boxvR','\\u255F':'boxVr','\\u2560':'boxVR','\\u2561':'boxvL','\\u2562':'boxVl','\\u2563':'boxVL','\\u2564':'boxHd','\\u2565':'boxhD','\\u2566':'boxHD','\\u2567':'boxHu','\\u2568':'boxhU','\\u2569':'boxHU','\\u256A':'boxvH','\\u256B':'boxVh','\\u256C':'boxVH','\\u2580':'uhblk','\\u2584':'lhblk','\\u2588':'block','\\u2591':'blk14','\\u2592':'blk12','\\u2593':'blk34','\\u25A1':'squ','\\u25AA':'squf','\\u25AB':'EmptyVerySmallSquare','\\u25AD':'rect','\\u25AE':'marker','\\u25B1':'fltns','\\u25B3':'xutri','\\u25B4':'utrif','\\u25B5':'utri','\\u25B8':'rtrif','\\u25B9':'rtri','\\u25BD':'xdtri','\\u25BE':'dtrif','\\u25BF':'dtri','\\u25C2':'ltrif','\\u25C3':'ltri','\\u25CA':'loz','\\u25CB':'cir','\\u25EC':'tridot','\\u25EF':'xcirc','\\u25F8':'ultri','\\u25F9':'urtri','\\u25FA':'lltri','\\u25FB':'EmptySmallSquare','\\u25FC':'FilledSmallSquare','\\u2605':'starf','\\u2606':'star','\\u260E':'phone','\\u2640':'female','\\u2642':'male','\\u2660':'spades','\\u2663':'clubs','\\u2665':'hearts','\\u2666':'diams','\\u266A':'sung','\\u2713':'check','\\u2717':'cross','\\u2720':'malt','\\u2736':'sext','\\u2758':'VerticalSeparator','\\u27C8':'bsolhsub','\\u27C9':'suphsol','\\u27F5':'xlarr','\\u27F6':'xrarr','\\u27F7':'xharr','\\u27F8':'xlArr','\\u27F9':'xrArr','\\u27FA':'xhArr','\\u27FC':'xmap','\\u27FF':'dzigrarr','\\u2902':'nvlArr','\\u2903':'nvrArr','\\u2904':'nvHarr','\\u2905':'Map','\\u290C':'lbarr','\\u290D':'rbarr','\\u290E':'lBarr','\\u290F':'rBarr','\\u2910':'RBarr','\\u2911':'DDotrahd','\\u2912':'UpArrowBar','\\u2913':'DownArrowBar','\\u2916':'Rarrtl','\\u2919':'latail','\\u291A':'ratail','\\u291B':'lAtail','\\u291C':'rAtail','\\u291D':'larrfs','\\u291E':'rarrfs','\\u291F':'larrbfs','\\u2920':'rarrbfs','\\u2923':'nwarhk','\\u2924':'nearhk','\\u2925':'searhk','\\u2926':'swarhk','\\u2927':'nwnear','\\u2928':'toea','\\u2929':'tosa','\\u292A':'swnwar','\\u2933':'rarrc','\\u2933\\u0338':'nrarrc','\\u2935':'cudarrr','\\u2936':'ldca','\\u2937':'rdca','\\u2938':'cudarrl','\\u2939':'larrpl','\\u293C':'curarrm','\\u293D':'cularrp','\\u2945':'rarrpl','\\u2948':'harrcir','\\u2949':'Uarrocir','\\u294A':'lurdshar','\\u294B':'ldrushar','\\u294E':'LeftRightVector','\\u294F':'RightUpDownVector','\\u2950':'DownLeftRightVector','\\u2951':'LeftUpDownVector','\\u2952':'LeftVectorBar','\\u2953':'RightVectorBar','\\u2954':'RightUpVectorBar','\\u2955':'RightDownVectorBar','\\u2956':'DownLeftVectorBar','\\u2957':'DownRightVectorBar','\\u2958':'LeftUpVectorBar','\\u2959':'LeftDownVectorBar','\\u295A':'LeftTeeVector','\\u295B':'RightTeeVector','\\u295C':'RightUpTeeVector','\\u295D':'RightDownTeeVector','\\u295E':'DownLeftTeeVector','\\u295F':'DownRightTeeVector','\\u2960':'LeftUpTeeVector','\\u2961':'LeftDownTeeVector','\\u2962':'lHar','\\u2963':'uHar','\\u2964':'rHar','\\u2965':'dHar','\\u2966':'luruhar','\\u2967':'ldrdhar','\\u2968':'ruluhar','\\u2969':'rdldhar','\\u296A':'lharul','\\u296B':'llhard','\\u296C':'rharul','\\u296D':'lrhard','\\u296E':'udhar','\\u296F':'duhar','\\u2970':'RoundImplies','\\u2971':'erarr','\\u2972':'simrarr','\\u2973':'larrsim','\\u2974':'rarrsim','\\u2975':'rarrap','\\u2976':'ltlarr','\\u2978':'gtrarr','\\u2979':'subrarr','\\u297B':'suplarr','\\u297C':'lfisht','\\u297D':'rfisht','\\u297E':'ufisht','\\u297F':'dfisht','\\u299A':'vzigzag','\\u299C':'vangrt','\\u299D':'angrtvbd','\\u29A4':'ange','\\u29A5':'range','\\u29A6':'dwangle','\\u29A7':'uwangle','\\u29A8':'angmsdaa','\\u29A9':'angmsdab','\\u29AA':'angmsdac','\\u29AB':'angmsdad','\\u29AC':'angmsdae','\\u29AD':'angmsdaf','\\u29AE':'angmsdag','\\u29AF':'angmsdah','\\u29B0':'bemptyv','\\u29B1':'demptyv','\\u29B2':'cemptyv','\\u29B3':'raemptyv','\\u29B4':'laemptyv','\\u29B5':'ohbar','\\u29B6':'omid','\\u29B7':'opar','\\u29B9':'operp','\\u29BB':'olcross','\\u29BC':'odsold','\\u29BE':'olcir','\\u29BF':'ofcir','\\u29C0':'olt','\\u29C1':'ogt','\\u29C2':'cirscir','\\u29C3':'cirE','\\u29C4':'solb','\\u29C5':'bsolb','\\u29C9':'boxbox','\\u29CD':'trisb','\\u29CE':'rtriltri','\\u29CF':'LeftTriangleBar','\\u29CF\\u0338':'NotLeftTriangleBar','\\u29D0':'RightTriangleBar','\\u29D0\\u0338':'NotRightTriangleBar','\\u29DC':'iinfin','\\u29DD':'infintie','\\u29DE':'nvinfin','\\u29E3':'eparsl','\\u29E4':'smeparsl','\\u29E5':'eqvparsl','\\u29EB':'lozf','\\u29F4':'RuleDelayed','\\u29F6':'dsol','\\u2A00':'xodot','\\u2A01':'xoplus','\\u2A02':'xotime','\\u2A04':'xuplus','\\u2A06':'xsqcup','\\u2A0D':'fpartint','\\u2A10':'cirfnint','\\u2A11':'awint','\\u2A12':'rppolint','\\u2A13':'scpolint','\\u2A14':'npolint','\\u2A15':'pointint','\\u2A16':'quatint','\\u2A17':'intlarhk','\\u2A22':'pluscir','\\u2A23':'plusacir','\\u2A24':'simplus','\\u2A25':'plusdu','\\u2A26':'plussim','\\u2A27':'plustwo','\\u2A29':'mcomma','\\u2A2A':'minusdu','\\u2A2D':'loplus','\\u2A2E':'roplus','\\u2A2F':'Cross','\\u2A30':'timesd','\\u2A31':'timesbar','\\u2A33':'smashp','\\u2A34':'lotimes','\\u2A35':'rotimes','\\u2A36':'otimesas','\\u2A37':'Otimes','\\u2A38':'odiv','\\u2A39':'triplus','\\u2A3A':'triminus','\\u2A3B':'tritime','\\u2A3C':'iprod','\\u2A3F':'amalg','\\u2A40':'capdot','\\u2A42':'ncup','\\u2A43':'ncap','\\u2A44':'capand','\\u2A45':'cupor','\\u2A46':'cupcap','\\u2A47':'capcup','\\u2A48':'cupbrcap','\\u2A49':'capbrcup','\\u2A4A':'cupcup','\\u2A4B':'capcap','\\u2A4C':'ccups','\\u2A4D':'ccaps','\\u2A50':'ccupssm','\\u2A53':'And','\\u2A54':'Or','\\u2A55':'andand','\\u2A56':'oror','\\u2A57':'orslope','\\u2A58':'andslope','\\u2A5A':'andv','\\u2A5B':'orv','\\u2A5C':'andd','\\u2A5D':'ord','\\u2A5F':'wedbar','\\u2A66':'sdote','\\u2A6A':'simdot','\\u2A6D':'congdot','\\u2A6D\\u0338':'ncongdot','\\u2A6E':'easter','\\u2A6F':'apacir','\\u2A70':'apE','\\u2A70\\u0338':'napE','\\u2A71':'eplus','\\u2A72':'pluse','\\u2A73':'Esim','\\u2A77':'eDDot','\\u2A78':'equivDD','\\u2A79':'ltcir','\\u2A7A':'gtcir','\\u2A7B':'ltquest','\\u2A7C':'gtquest','\\u2A7D':'les','\\u2A7D\\u0338':'nles','\\u2A7E':'ges','\\u2A7E\\u0338':'nges','\\u2A7F':'lesdot','\\u2A80':'gesdot','\\u2A81':'lesdoto','\\u2A82':'gesdoto','\\u2A83':'lesdotor','\\u2A84':'gesdotol','\\u2A85':'lap','\\u2A86':'gap','\\u2A87':'lne','\\u2A88':'gne','\\u2A89':'lnap','\\u2A8A':'gnap','\\u2A8B':'lEg','\\u2A8C':'gEl','\\u2A8D':'lsime','\\u2A8E':'gsime','\\u2A8F':'lsimg','\\u2A90':'gsiml','\\u2A91':'lgE','\\u2A92':'glE','\\u2A93':'lesges','\\u2A94':'gesles','\\u2A95':'els','\\u2A96':'egs','\\u2A97':'elsdot','\\u2A98':'egsdot','\\u2A99':'el','\\u2A9A':'eg','\\u2A9D':'siml','\\u2A9E':'simg','\\u2A9F':'simlE','\\u2AA0':'simgE','\\u2AA1':'LessLess','\\u2AA1\\u0338':'NotNestedLessLess','\\u2AA2':'GreaterGreater','\\u2AA2\\u0338':'NotNestedGreaterGreater','\\u2AA4':'glj','\\u2AA5':'gla','\\u2AA6':'ltcc','\\u2AA7':'gtcc','\\u2AA8':'lescc','\\u2AA9':'gescc','\\u2AAA':'smt','\\u2AAB':'lat','\\u2AAC':'smte','\\u2AAC\\uFE00':'smtes','\\u2AAD':'late','\\u2AAD\\uFE00':'lates','\\u2AAE':'bumpE','\\u2AAF':'pre','\\u2AAF\\u0338':'npre','\\u2AB0':'sce','\\u2AB0\\u0338':'nsce','\\u2AB3':'prE','\\u2AB4':'scE','\\u2AB5':'prnE','\\u2AB6':'scnE','\\u2AB7':'prap','\\u2AB8':'scap','\\u2AB9':'prnap','\\u2ABA':'scnap','\\u2ABB':'Pr','\\u2ABC':'Sc','\\u2ABD':'subdot','\\u2ABE':'supdot','\\u2ABF':'subplus','\\u2AC0':'supplus','\\u2AC1':'submult','\\u2AC2':'supmult','\\u2AC3':'subedot','\\u2AC4':'supedot','\\u2AC5':'subE','\\u2AC5\\u0338':'nsubE','\\u2AC6':'supE','\\u2AC6\\u0338':'nsupE','\\u2AC7':'subsim','\\u2AC8':'supsim','\\u2ACB\\uFE00':'vsubnE','\\u2ACB':'subnE','\\u2ACC\\uFE00':'vsupnE','\\u2ACC':'supnE','\\u2ACF':'csub','\\u2AD0':'csup','\\u2AD1':'csube','\\u2AD2':'csupe','\\u2AD3':'subsup','\\u2AD4':'supsub','\\u2AD5':'subsub','\\u2AD6':'supsup','\\u2AD7':'suphsub','\\u2AD8':'supdsub','\\u2AD9':'forkv','\\u2ADA':'topfork','\\u2ADB':'mlcp','\\u2AE4':'Dashv','\\u2AE6':'Vdashl','\\u2AE7':'Barv','\\u2AE8':'vBar','\\u2AE9':'vBarv','\\u2AEB':'Vbar','\\u2AEC':'Not','\\u2AED':'bNot','\\u2AEE':'rnmid','\\u2AEF':'cirmid','\\u2AF0':'midcir','\\u2AF1':'topcir','\\u2AF2':'nhpar','\\u2AF3':'parsim','\\u2AFD':'parsl','\\u2AFD\\u20E5':'nparsl','\\u266D':'flat','\\u266E':'natur','\\u266F':'sharp','\\xA4':'curren','\\xA2':'cent','$':'dollar','\\xA3':'pound','\\xA5':'yen','\\u20AC':'euro','\\xB9':'sup1','\\xBD':'half','\\u2153':'frac13','\\xBC':'frac14','\\u2155':'frac15','\\u2159':'frac16','\\u215B':'frac18','\\xB2':'sup2','\\u2154':'frac23','\\u2156':'frac25','\\xB3':'sup3','\\xBE':'frac34','\\u2157':'frac35','\\u215C':'frac38','\\u2158':'frac45','\\u215A':'frac56','\\u215D':'frac58','\\u215E':'frac78','\\uD835\\uDCB6':'ascr','\\uD835\\uDD52':'aopf','\\uD835\\uDD1E':'afr','\\uD835\\uDD38':'Aopf','\\uD835\\uDD04':'Afr','\\uD835\\uDC9C':'Ascr','\\xAA':'ordf','\\xE1':'aacute','\\xC1':'Aacute','\\xE0':'agrave','\\xC0':'Agrave','\\u0103':'abreve','\\u0102':'Abreve','\\xE2':'acirc','\\xC2':'Acirc','\\xE5':'aring','\\xC5':'angst','\\xE4':'auml','\\xC4':'Auml','\\xE3':'atilde','\\xC3':'Atilde','\\u0105':'aogon','\\u0104':'Aogon','\\u0101':'amacr','\\u0100':'Amacr','\\xE6':'aelig','\\xC6':'AElig','\\uD835\\uDCB7':'bscr','\\uD835\\uDD53':'bopf','\\uD835\\uDD1F':'bfr','\\uD835\\uDD39':'Bopf','\\u212C':'Bscr','\\uD835\\uDD05':'Bfr','\\uD835\\uDD20':'cfr','\\uD835\\uDCB8':'cscr','\\uD835\\uDD54':'copf','\\u212D':'Cfr','\\uD835\\uDC9E':'Cscr','\\u2102':'Copf','\\u0107':'cacute','\\u0106':'Cacute','\\u0109':'ccirc','\\u0108':'Ccirc','\\u010D':'ccaron','\\u010C':'Ccaron','\\u010B':'cdot','\\u010A':'Cdot','\\xE7':'ccedil','\\xC7':'Ccedil','\\u2105':'incare','\\uD835\\uDD21':'dfr','\\u2146':'dd','\\uD835\\uDD55':'dopf','\\uD835\\uDCB9':'dscr','\\uD835\\uDC9F':'Dscr','\\uD835\\uDD07':'Dfr','\\u2145':'DD','\\uD835\\uDD3B':'Dopf','\\u010F':'dcaron','\\u010E':'Dcaron','\\u0111':'dstrok','\\u0110':'Dstrok','\\xF0':'eth','\\xD0':'ETH','\\u2147':'ee','\\u212F':'escr','\\uD835\\uDD22':'efr','\\uD835\\uDD56':'eopf','\\u2130':'Escr','\\uD835\\uDD08':'Efr','\\uD835\\uDD3C':'Eopf','\\xE9':'eacute','\\xC9':'Eacute','\\xE8':'egrave','\\xC8':'Egrave','\\xEA':'ecirc','\\xCA':'Ecirc','\\u011B':'ecaron','\\u011A':'Ecaron','\\xEB':'euml','\\xCB':'Euml','\\u0117':'edot','\\u0116':'Edot','\\u0119':'eogon','\\u0118':'Eogon','\\u0113':'emacr','\\u0112':'Emacr','\\uD835\\uDD23':'ffr','\\uD835\\uDD57':'fopf','\\uD835\\uDCBB':'fscr','\\uD835\\uDD09':'Ffr','\\uD835\\uDD3D':'Fopf','\\u2131':'Fscr','\\uFB00':'fflig','\\uFB03':'ffilig','\\uFB04':'ffllig','\\uFB01':'filig','fj':'fjlig','\\uFB02':'fllig','\\u0192':'fnof','\\u210A':'gscr','\\uD835\\uDD58':'gopf','\\uD835\\uDD24':'gfr','\\uD835\\uDCA2':'Gscr','\\uD835\\uDD3E':'Gopf','\\uD835\\uDD0A':'Gfr','\\u01F5':'gacute','\\u011F':'gbreve','\\u011E':'Gbreve','\\u011D':'gcirc','\\u011C':'Gcirc','\\u0121':'gdot','\\u0120':'Gdot','\\u0122':'Gcedil','\\uD835\\uDD25':'hfr','\\u210E':'planckh','\\uD835\\uDCBD':'hscr','\\uD835\\uDD59':'hopf','\\u210B':'Hscr','\\u210C':'Hfr','\\u210D':'Hopf','\\u0125':'hcirc','\\u0124':'Hcirc','\\u210F':'hbar','\\u0127':'hstrok','\\u0126':'Hstrok','\\uD835\\uDD5A':'iopf','\\uD835\\uDD26':'ifr','\\uD835\\uDCBE':'iscr','\\u2148':'ii','\\uD835\\uDD40':'Iopf','\\u2110':'Iscr','\\u2111':'Im','\\xED':'iacute','\\xCD':'Iacute','\\xEC':'igrave','\\xCC':'Igrave','\\xEE':'icirc','\\xCE':'Icirc','\\xEF':'iuml','\\xCF':'Iuml','\\u0129':'itilde','\\u0128':'Itilde','\\u0130':'Idot','\\u012F':'iogon','\\u012E':'Iogon','\\u012B':'imacr','\\u012A':'Imacr','\\u0133':'ijlig','\\u0132':'IJlig','\\u0131':'imath','\\uD835\\uDCBF':'jscr','\\uD835\\uDD5B':'jopf','\\uD835\\uDD27':'jfr','\\uD835\\uDCA5':'Jscr','\\uD835\\uDD0D':'Jfr','\\uD835\\uDD41':'Jopf','\\u0135':'jcirc','\\u0134':'Jcirc','\\u0237':'jmath','\\uD835\\uDD5C':'kopf','\\uD835\\uDCC0':'kscr','\\uD835\\uDD28':'kfr','\\uD835\\uDCA6':'Kscr','\\uD835\\uDD42':'Kopf','\\uD835\\uDD0E':'Kfr','\\u0137':'kcedil','\\u0136':'Kcedil','\\uD835\\uDD29':'lfr','\\uD835\\uDCC1':'lscr','\\u2113':'ell','\\uD835\\uDD5D':'lopf','\\u2112':'Lscr','\\uD835\\uDD0F':'Lfr','\\uD835\\uDD43':'Lopf','\\u013A':'lacute','\\u0139':'Lacute','\\u013E':'lcaron','\\u013D':'Lcaron','\\u013C':'lcedil','\\u013B':'Lcedil','\\u0142':'lstrok','\\u0141':'Lstrok','\\u0140':'lmidot','\\u013F':'Lmidot','\\uD835\\uDD2A':'mfr','\\uD835\\uDD5E':'mopf','\\uD835\\uDCC2':'mscr','\\uD835\\uDD10':'Mfr','\\uD835\\uDD44':'Mopf','\\u2133':'Mscr','\\uD835\\uDD2B':'nfr','\\uD835\\uDD5F':'nopf','\\uD835\\uDCC3':'nscr','\\u2115':'Nopf','\\uD835\\uDCA9':'Nscr','\\uD835\\uDD11':'Nfr','\\u0144':'nacute','\\u0143':'Nacute','\\u0148':'ncaron','\\u0147':'Ncaron','\\xF1':'ntilde','\\xD1':'Ntilde','\\u0146':'ncedil','\\u0145':'Ncedil','\\u2116':'numero','\\u014B':'eng','\\u014A':'ENG','\\uD835\\uDD60':'oopf','\\uD835\\uDD2C':'ofr','\\u2134':'oscr','\\uD835\\uDCAA':'Oscr','\\uD835\\uDD12':'Ofr','\\uD835\\uDD46':'Oopf','\\xBA':'ordm','\\xF3':'oacute','\\xD3':'Oacute','\\xF2':'ograve','\\xD2':'Ograve','\\xF4':'ocirc','\\xD4':'Ocirc','\\xF6':'ouml','\\xD6':'Ouml','\\u0151':'odblac','\\u0150':'Odblac','\\xF5':'otilde','\\xD5':'Otilde','\\xF8':'oslash','\\xD8':'Oslash','\\u014D':'omacr','\\u014C':'Omacr','\\u0153':'oelig','\\u0152':'OElig','\\uD835\\uDD2D':'pfr','\\uD835\\uDCC5':'pscr','\\uD835\\uDD61':'popf','\\u2119':'Popf','\\uD835\\uDD13':'Pfr','\\uD835\\uDCAB':'Pscr','\\uD835\\uDD62':'qopf','\\uD835\\uDD2E':'qfr','\\uD835\\uDCC6':'qscr','\\uD835\\uDCAC':'Qscr','\\uD835\\uDD14':'Qfr','\\u211A':'Qopf','\\u0138':'kgreen','\\uD835\\uDD2F':'rfr','\\uD835\\uDD63':'ropf','\\uD835\\uDCC7':'rscr','\\u211B':'Rscr','\\u211C':'Re','\\u211D':'Ropf','\\u0155':'racute','\\u0154':'Racute','\\u0159':'rcaron','\\u0158':'Rcaron','\\u0157':'rcedil','\\u0156':'Rcedil','\\uD835\\uDD64':'sopf','\\uD835\\uDCC8':'sscr','\\uD835\\uDD30':'sfr','\\uD835\\uDD4A':'Sopf','\\uD835\\uDD16':'Sfr','\\uD835\\uDCAE':'Sscr','\\u24C8':'oS','\\u015B':'sacute','\\u015A':'Sacute','\\u015D':'scirc','\\u015C':'Scirc','\\u0161':'scaron','\\u0160':'Scaron','\\u015F':'scedil','\\u015E':'Scedil','\\xDF':'szlig','\\uD835\\uDD31':'tfr','\\uD835\\uDCC9':'tscr','\\uD835\\uDD65':'topf','\\uD835\\uDCAF':'Tscr','\\uD835\\uDD17':'Tfr','\\uD835\\uDD4B':'Topf','\\u0165':'tcaron','\\u0164':'Tcaron','\\u0163':'tcedil','\\u0162':'Tcedil','\\u2122':'trade','\\u0167':'tstrok','\\u0166':'Tstrok','\\uD835\\uDCCA':'uscr','\\uD835\\uDD66':'uopf','\\uD835\\uDD32':'ufr','\\uD835\\uDD4C':'Uopf','\\uD835\\uDD18':'Ufr','\\uD835\\uDCB0':'Uscr','\\xFA':'uacute','\\xDA':'Uacute','\\xF9':'ugrave','\\xD9':'Ugrave','\\u016D':'ubreve','\\u016C':'Ubreve','\\xFB':'ucirc','\\xDB':'Ucirc','\\u016F':'uring','\\u016E':'Uring','\\xFC':'uuml','\\xDC':'Uuml','\\u0171':'udblac','\\u0170':'Udblac','\\u0169':'utilde','\\u0168':'Utilde','\\u0173':'uogon','\\u0172':'Uogon','\\u016B':'umacr','\\u016A':'Umacr','\\uD835\\uDD33':'vfr','\\uD835\\uDD67':'vopf','\\uD835\\uDCCB':'vscr','\\uD835\\uDD19':'Vfr','\\uD835\\uDD4D':'Vopf','\\uD835\\uDCB1':'Vscr','\\uD835\\uDD68':'wopf','\\uD835\\uDCCC':'wscr','\\uD835\\uDD34':'wfr','\\uD835\\uDCB2':'Wscr','\\uD835\\uDD4E':'Wopf','\\uD835\\uDD1A':'Wfr','\\u0175':'wcirc','\\u0174':'Wcirc','\\uD835\\uDD35':'xfr','\\uD835\\uDCCD':'xscr','\\uD835\\uDD69':'xopf','\\uD835\\uDD4F':'Xopf','\\uD835\\uDD1B':'Xfr','\\uD835\\uDCB3':'Xscr','\\uD835\\uDD36':'yfr','\\uD835\\uDCCE':'yscr','\\uD835\\uDD6A':'yopf','\\uD835\\uDCB4':'Yscr','\\uD835\\uDD1C':'Yfr','\\uD835\\uDD50':'Yopf','\\xFD':'yacute','\\xDD':'Yacute','\\u0177':'ycirc','\\u0176':'Ycirc','\\xFF':'yuml','\\u0178':'Yuml','\\uD835\\uDCCF':'zscr','\\uD835\\uDD37':'zfr','\\uD835\\uDD6B':'zopf','\\u2128':'Zfr','\\u2124':'Zopf','\\uD835\\uDCB5':'Zscr','\\u017A':'zacute','\\u0179':'Zacute','\\u017E':'zcaron','\\u017D':'Zcaron','\\u017C':'zdot','\\u017B':'Zdot','\\u01B5':'imped','\\xFE':'thorn','\\xDE':'THORN','\\u0149':'napos','\\u03B1':'alpha','\\u0391':'Alpha','\\u03B2':'beta','\\u0392':'Beta','\\u03B3':'gamma','\\u0393':'Gamma','\\u03B4':'delta','\\u0394':'Delta','\\u03B5':'epsi','\\u03F5':'epsiv','\\u0395':'Epsilon','\\u03DD':'gammad','\\u03DC':'Gammad','\\u03B6':'zeta','\\u0396':'Zeta','\\u03B7':'eta','\\u0397':'Eta','\\u03B8':'theta','\\u03D1':'thetav','\\u0398':'Theta','\\u03B9':'iota','\\u0399':'Iota','\\u03BA':'kappa','\\u03F0':'kappav','\\u039A':'Kappa','\\u03BB':'lambda','\\u039B':'Lambda','\\u03BC':'mu','\\xB5':'micro','\\u039C':'Mu','\\u03BD':'nu','\\u039D':'Nu','\\u03BE':'xi','\\u039E':'Xi','\\u03BF':'omicron','\\u039F':'Omicron','\\u03C0':'pi','\\u03D6':'piv','\\u03A0':'Pi','\\u03C1':'rho','\\u03F1':'rhov','\\u03A1':'Rho','\\u03C3':'sigma','\\u03A3':'Sigma','\\u03C2':'sigmaf','\\u03C4':'tau','\\u03A4':'Tau','\\u03C5':'upsi','\\u03A5':'Upsilon','\\u03D2':'Upsi','\\u03C6':'phi','\\u03D5':'phiv','\\u03A6':'Phi','\\u03C7':'chi','\\u03A7':'Chi','\\u03C8':'psi','\\u03A8':'Psi','\\u03C9':'omega','\\u03A9':'ohm','\\u0430':'acy','\\u0410':'Acy','\\u0431':'bcy','\\u0411':'Bcy','\\u0432':'vcy','\\u0412':'Vcy','\\u0433':'gcy','\\u0413':'Gcy','\\u0453':'gjcy','\\u0403':'GJcy','\\u0434':'dcy','\\u0414':'Dcy','\\u0452':'djcy','\\u0402':'DJcy','\\u0435':'iecy','\\u0415':'IEcy','\\u0451':'iocy','\\u0401':'IOcy','\\u0454':'jukcy','\\u0404':'Jukcy','\\u0436':'zhcy','\\u0416':'ZHcy','\\u0437':'zcy','\\u0417':'Zcy','\\u0455':'dscy','\\u0405':'DScy','\\u0438':'icy','\\u0418':'Icy','\\u0456':'iukcy','\\u0406':'Iukcy','\\u0457':'yicy','\\u0407':'YIcy','\\u0439':'jcy','\\u0419':'Jcy','\\u0458':'jsercy','\\u0408':'Jsercy','\\u043A':'kcy','\\u041A':'Kcy','\\u045C':'kjcy','\\u040C':'KJcy','\\u043B':'lcy','\\u041B':'Lcy','\\u0459':'ljcy','\\u0409':'LJcy','\\u043C':'mcy','\\u041C':'Mcy','\\u043D':'ncy','\\u041D':'Ncy','\\u045A':'njcy','\\u040A':'NJcy','\\u043E':'ocy','\\u041E':'Ocy','\\u043F':'pcy','\\u041F':'Pcy','\\u0440':'rcy','\\u0420':'Rcy','\\u0441':'scy','\\u0421':'Scy','\\u0442':'tcy','\\u0422':'Tcy','\\u045B':'tshcy','\\u040B':'TSHcy','\\u0443':'ucy','\\u0423':'Ucy','\\u045E':'ubrcy','\\u040E':'Ubrcy','\\u0444':'fcy','\\u0424':'Fcy','\\u0445':'khcy','\\u0425':'KHcy','\\u0446':'tscy','\\u0426':'TScy','\\u0447':'chcy','\\u0427':'CHcy','\\u045F':'dzcy','\\u040F':'DZcy','\\u0448':'shcy','\\u0428':'SHcy','\\u0449':'shchcy','\\u0429':'SHCHcy','\\u044A':'hardcy','\\u042A':'HARDcy','\\u044B':'ycy','\\u042B':'Ycy','\\u044C':'softcy','\\u042C':'SOFTcy','\\u044D':'ecy','\\u042D':'Ecy','\\u044E':'yucy','\\u042E':'YUcy','\\u044F':'yacy','\\u042F':'YAcy','\\u2135':'aleph','\\u2136':'beth','\\u2137':'gimel','\\u2138':'daleth'};\n\n\tvar regexEscape = /[\"&'<>`]/g;\n\tvar escapeMap = {\n\t\t'\"': '"',\n\t\t'&': '&',\n\t\t'\\'': ''',\n\t\t'<': '<',\n\t\t// See https://mathiasbynens.be/notes/ambiguous-ampersands: in HTML, the\n\t\t// following is not strictly necessary unless it’s part of a tag or an\n\t\t// unquoted attribute value. We’re only escaping it to support those\n\t\t// situations, and for XML support.\n\t\t'>': '>',\n\t\t// In Internet Explorer ≤ 8, the backtick character can be used\n\t\t// to break out of (un)quoted attribute values or HTML comments.\n\t\t// See http://html5sec.org/#102, http://html5sec.org/#108, and\n\t\t// http://html5sec.org/#133.\n\t\t'`': '`'\n\t};\n\n\tvar regexInvalidEntity = /&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/;\n\tvar regexInvalidRawCodePoint = /[\\0-\\x08\\x0B\\x0E-\\x1F\\x7F-\\x9F\\uFDD0-\\uFDEF\\uFFFE\\uFFFF]|[\\uD83F\\uD87F\\uD8BF\\uD8FF\\uD93F\\uD97F\\uD9BF\\uD9FF\\uDA3F\\uDA7F\\uDABF\\uDAFF\\uDB3F\\uDB7F\\uDBBF\\uDBFF][\\uDFFE\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\n\tvar regexDecode = /&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g;\n\tvar decodeMap = {'aacute':'\\xE1','Aacute':'\\xC1','abreve':'\\u0103','Abreve':'\\u0102','ac':'\\u223E','acd':'\\u223F','acE':'\\u223E\\u0333','acirc':'\\xE2','Acirc':'\\xC2','acute':'\\xB4','acy':'\\u0430','Acy':'\\u0410','aelig':'\\xE6','AElig':'\\xC6','af':'\\u2061','afr':'\\uD835\\uDD1E','Afr':'\\uD835\\uDD04','agrave':'\\xE0','Agrave':'\\xC0','alefsym':'\\u2135','aleph':'\\u2135','alpha':'\\u03B1','Alpha':'\\u0391','amacr':'\\u0101','Amacr':'\\u0100','amalg':'\\u2A3F','amp':'&','AMP':'&','and':'\\u2227','And':'\\u2A53','andand':'\\u2A55','andd':'\\u2A5C','andslope':'\\u2A58','andv':'\\u2A5A','ang':'\\u2220','ange':'\\u29A4','angle':'\\u2220','angmsd':'\\u2221','angmsdaa':'\\u29A8','angmsdab':'\\u29A9','angmsdac':'\\u29AA','angmsdad':'\\u29AB','angmsdae':'\\u29AC','angmsdaf':'\\u29AD','angmsdag':'\\u29AE','angmsdah':'\\u29AF','angrt':'\\u221F','angrtvb':'\\u22BE','angrtvbd':'\\u299D','angsph':'\\u2222','angst':'\\xC5','angzarr':'\\u237C','aogon':'\\u0105','Aogon':'\\u0104','aopf':'\\uD835\\uDD52','Aopf':'\\uD835\\uDD38','ap':'\\u2248','apacir':'\\u2A6F','ape':'\\u224A','apE':'\\u2A70','apid':'\\u224B','apos':'\\'','ApplyFunction':'\\u2061','approx':'\\u2248','approxeq':'\\u224A','aring':'\\xE5','Aring':'\\xC5','ascr':'\\uD835\\uDCB6','Ascr':'\\uD835\\uDC9C','Assign':'\\u2254','ast':'*','asymp':'\\u2248','asympeq':'\\u224D','atilde':'\\xE3','Atilde':'\\xC3','auml':'\\xE4','Auml':'\\xC4','awconint':'\\u2233','awint':'\\u2A11','backcong':'\\u224C','backepsilon':'\\u03F6','backprime':'\\u2035','backsim':'\\u223D','backsimeq':'\\u22CD','Backslash':'\\u2216','Barv':'\\u2AE7','barvee':'\\u22BD','barwed':'\\u2305','Barwed':'\\u2306','barwedge':'\\u2305','bbrk':'\\u23B5','bbrktbrk':'\\u23B6','bcong':'\\u224C','bcy':'\\u0431','Bcy':'\\u0411','bdquo':'\\u201E','becaus':'\\u2235','because':'\\u2235','Because':'\\u2235','bemptyv':'\\u29B0','bepsi':'\\u03F6','bernou':'\\u212C','Bernoullis':'\\u212C','beta':'\\u03B2','Beta':'\\u0392','beth':'\\u2136','between':'\\u226C','bfr':'\\uD835\\uDD1F','Bfr':'\\uD835\\uDD05','bigcap':'\\u22C2','bigcirc':'\\u25EF','bigcup':'\\u22C3','bigodot':'\\u2A00','bigoplus':'\\u2A01','bigotimes':'\\u2A02','bigsqcup':'\\u2A06','bigstar':'\\u2605','bigtriangledown':'\\u25BD','bigtriangleup':'\\u25B3','biguplus':'\\u2A04','bigvee':'\\u22C1','bigwedge':'\\u22C0','bkarow':'\\u290D','blacklozenge':'\\u29EB','blacksquare':'\\u25AA','blacktriangle':'\\u25B4','blacktriangledown':'\\u25BE','blacktriangleleft':'\\u25C2','blacktriangleright':'\\u25B8','blank':'\\u2423','blk12':'\\u2592','blk14':'\\u2591','blk34':'\\u2593','block':'\\u2588','bne':'=\\u20E5','bnequiv':'\\u2261\\u20E5','bnot':'\\u2310','bNot':'\\u2AED','bopf':'\\uD835\\uDD53','Bopf':'\\uD835\\uDD39','bot':'\\u22A5','bottom':'\\u22A5','bowtie':'\\u22C8','boxbox':'\\u29C9','boxdl':'\\u2510','boxdL':'\\u2555','boxDl':'\\u2556','boxDL':'\\u2557','boxdr':'\\u250C','boxdR':'\\u2552','boxDr':'\\u2553','boxDR':'\\u2554','boxh':'\\u2500','boxH':'\\u2550','boxhd':'\\u252C','boxhD':'\\u2565','boxHd':'\\u2564','boxHD':'\\u2566','boxhu':'\\u2534','boxhU':'\\u2568','boxHu':'\\u2567','boxHU':'\\u2569','boxminus':'\\u229F','boxplus':'\\u229E','boxtimes':'\\u22A0','boxul':'\\u2518','boxuL':'\\u255B','boxUl':'\\u255C','boxUL':'\\u255D','boxur':'\\u2514','boxuR':'\\u2558','boxUr':'\\u2559','boxUR':'\\u255A','boxv':'\\u2502','boxV':'\\u2551','boxvh':'\\u253C','boxvH':'\\u256A','boxVh':'\\u256B','boxVH':'\\u256C','boxvl':'\\u2524','boxvL':'\\u2561','boxVl':'\\u2562','boxVL':'\\u2563','boxvr':'\\u251C','boxvR':'\\u255E','boxVr':'\\u255F','boxVR':'\\u2560','bprime':'\\u2035','breve':'\\u02D8','Breve':'\\u02D8','brvbar':'\\xA6','bscr':'\\uD835\\uDCB7','Bscr':'\\u212C','bsemi':'\\u204F','bsim':'\\u223D','bsime':'\\u22CD','bsol':'\\\\','bsolb':'\\u29C5','bsolhsub':'\\u27C8','bull':'\\u2022','bullet':'\\u2022','bump':'\\u224E','bumpe':'\\u224F','bumpE':'\\u2AAE','bumpeq':'\\u224F','Bumpeq':'\\u224E','cacute':'\\u0107','Cacute':'\\u0106','cap':'\\u2229','Cap':'\\u22D2','capand':'\\u2A44','capbrcup':'\\u2A49','capcap':'\\u2A4B','capcup':'\\u2A47','capdot':'\\u2A40','CapitalDifferentialD':'\\u2145','caps':'\\u2229\\uFE00','caret':'\\u2041','caron':'\\u02C7','Cayleys':'\\u212D','ccaps':'\\u2A4D','ccaron':'\\u010D','Ccaron':'\\u010C','ccedil':'\\xE7','Ccedil':'\\xC7','ccirc':'\\u0109','Ccirc':'\\u0108','Cconint':'\\u2230','ccups':'\\u2A4C','ccupssm':'\\u2A50','cdot':'\\u010B','Cdot':'\\u010A','cedil':'\\xB8','Cedilla':'\\xB8','cemptyv':'\\u29B2','cent':'\\xA2','centerdot':'\\xB7','CenterDot':'\\xB7','cfr':'\\uD835\\uDD20','Cfr':'\\u212D','chcy':'\\u0447','CHcy':'\\u0427','check':'\\u2713','checkmark':'\\u2713','chi':'\\u03C7','Chi':'\\u03A7','cir':'\\u25CB','circ':'\\u02C6','circeq':'\\u2257','circlearrowleft':'\\u21BA','circlearrowright':'\\u21BB','circledast':'\\u229B','circledcirc':'\\u229A','circleddash':'\\u229D','CircleDot':'\\u2299','circledR':'\\xAE','circledS':'\\u24C8','CircleMinus':'\\u2296','CirclePlus':'\\u2295','CircleTimes':'\\u2297','cire':'\\u2257','cirE':'\\u29C3','cirfnint':'\\u2A10','cirmid':'\\u2AEF','cirscir':'\\u29C2','ClockwiseContourIntegral':'\\u2232','CloseCurlyDoubleQuote':'\\u201D','CloseCurlyQuote':'\\u2019','clubs':'\\u2663','clubsuit':'\\u2663','colon':':','Colon':'\\u2237','colone':'\\u2254','Colone':'\\u2A74','coloneq':'\\u2254','comma':',','commat':'@','comp':'\\u2201','compfn':'\\u2218','complement':'\\u2201','complexes':'\\u2102','cong':'\\u2245','congdot':'\\u2A6D','Congruent':'\\u2261','conint':'\\u222E','Conint':'\\u222F','ContourIntegral':'\\u222E','copf':'\\uD835\\uDD54','Copf':'\\u2102','coprod':'\\u2210','Coproduct':'\\u2210','copy':'\\xA9','COPY':'\\xA9','copysr':'\\u2117','CounterClockwiseContourIntegral':'\\u2233','crarr':'\\u21B5','cross':'\\u2717','Cross':'\\u2A2F','cscr':'\\uD835\\uDCB8','Cscr':'\\uD835\\uDC9E','csub':'\\u2ACF','csube':'\\u2AD1','csup':'\\u2AD0','csupe':'\\u2AD2','ctdot':'\\u22EF','cudarrl':'\\u2938','cudarrr':'\\u2935','cuepr':'\\u22DE','cuesc':'\\u22DF','cularr':'\\u21B6','cularrp':'\\u293D','cup':'\\u222A','Cup':'\\u22D3','cupbrcap':'\\u2A48','cupcap':'\\u2A46','CupCap':'\\u224D','cupcup':'\\u2A4A','cupdot':'\\u228D','cupor':'\\u2A45','cups':'\\u222A\\uFE00','curarr':'\\u21B7','curarrm':'\\u293C','curlyeqprec':'\\u22DE','curlyeqsucc':'\\u22DF','curlyvee':'\\u22CE','curlywedge':'\\u22CF','curren':'\\xA4','curvearrowleft':'\\u21B6','curvearrowright':'\\u21B7','cuvee':'\\u22CE','cuwed':'\\u22CF','cwconint':'\\u2232','cwint':'\\u2231','cylcty':'\\u232D','dagger':'\\u2020','Dagger':'\\u2021','daleth':'\\u2138','darr':'\\u2193','dArr':'\\u21D3','Darr':'\\u21A1','dash':'\\u2010','dashv':'\\u22A3','Dashv':'\\u2AE4','dbkarow':'\\u290F','dblac':'\\u02DD','dcaron':'\\u010F','Dcaron':'\\u010E','dcy':'\\u0434','Dcy':'\\u0414','dd':'\\u2146','DD':'\\u2145','ddagger':'\\u2021','ddarr':'\\u21CA','DDotrahd':'\\u2911','ddotseq':'\\u2A77','deg':'\\xB0','Del':'\\u2207','delta':'\\u03B4','Delta':'\\u0394','demptyv':'\\u29B1','dfisht':'\\u297F','dfr':'\\uD835\\uDD21','Dfr':'\\uD835\\uDD07','dHar':'\\u2965','dharl':'\\u21C3','dharr':'\\u21C2','DiacriticalAcute':'\\xB4','DiacriticalDot':'\\u02D9','DiacriticalDoubleAcute':'\\u02DD','DiacriticalGrave':'`','DiacriticalTilde':'\\u02DC','diam':'\\u22C4','diamond':'\\u22C4','Diamond':'\\u22C4','diamondsuit':'\\u2666','diams':'\\u2666','die':'\\xA8','DifferentialD':'\\u2146','digamma':'\\u03DD','disin':'\\u22F2','div':'\\xF7','divide':'\\xF7','divideontimes':'\\u22C7','divonx':'\\u22C7','djcy':'\\u0452','DJcy':'\\u0402','dlcorn':'\\u231E','dlcrop':'\\u230D','dollar':'$','dopf':'\\uD835\\uDD55','Dopf':'\\uD835\\uDD3B','dot':'\\u02D9','Dot':'\\xA8','DotDot':'\\u20DC','doteq':'\\u2250','doteqdot':'\\u2251','DotEqual':'\\u2250','dotminus':'\\u2238','dotplus':'\\u2214','dotsquare':'\\u22A1','doublebarwedge':'\\u2306','DoubleContourIntegral':'\\u222F','DoubleDot':'\\xA8','DoubleDownArrow':'\\u21D3','DoubleLeftArrow':'\\u21D0','DoubleLeftRightArrow':'\\u21D4','DoubleLeftTee':'\\u2AE4','DoubleLongLeftArrow':'\\u27F8','DoubleLongLeftRightArrow':'\\u27FA','DoubleLongRightArrow':'\\u27F9','DoubleRightArrow':'\\u21D2','DoubleRightTee':'\\u22A8','DoubleUpArrow':'\\u21D1','DoubleUpDownArrow':'\\u21D5','DoubleVerticalBar':'\\u2225','downarrow':'\\u2193','Downarrow':'\\u21D3','DownArrow':'\\u2193','DownArrowBar':'\\u2913','DownArrowUpArrow':'\\u21F5','DownBreve':'\\u0311','downdownarrows':'\\u21CA','downharpoonleft':'\\u21C3','downharpoonright':'\\u21C2','DownLeftRightVector':'\\u2950','DownLeftTeeVector':'\\u295E','DownLeftVector':'\\u21BD','DownLeftVectorBar':'\\u2956','DownRightTeeVector':'\\u295F','DownRightVector':'\\u21C1','DownRightVectorBar':'\\u2957','DownTee':'\\u22A4','DownTeeArrow':'\\u21A7','drbkarow':'\\u2910','drcorn':'\\u231F','drcrop':'\\u230C','dscr':'\\uD835\\uDCB9','Dscr':'\\uD835\\uDC9F','dscy':'\\u0455','DScy':'\\u0405','dsol':'\\u29F6','dstrok':'\\u0111','Dstrok':'\\u0110','dtdot':'\\u22F1','dtri':'\\u25BF','dtrif':'\\u25BE','duarr':'\\u21F5','duhar':'\\u296F','dwangle':'\\u29A6','dzcy':'\\u045F','DZcy':'\\u040F','dzigrarr':'\\u27FF','eacute':'\\xE9','Eacute':'\\xC9','easter':'\\u2A6E','ecaron':'\\u011B','Ecaron':'\\u011A','ecir':'\\u2256','ecirc':'\\xEA','Ecirc':'\\xCA','ecolon':'\\u2255','ecy':'\\u044D','Ecy':'\\u042D','eDDot':'\\u2A77','edot':'\\u0117','eDot':'\\u2251','Edot':'\\u0116','ee':'\\u2147','efDot':'\\u2252','efr':'\\uD835\\uDD22','Efr':'\\uD835\\uDD08','eg':'\\u2A9A','egrave':'\\xE8','Egrave':'\\xC8','egs':'\\u2A96','egsdot':'\\u2A98','el':'\\u2A99','Element':'\\u2208','elinters':'\\u23E7','ell':'\\u2113','els':'\\u2A95','elsdot':'\\u2A97','emacr':'\\u0113','Emacr':'\\u0112','empty':'\\u2205','emptyset':'\\u2205','EmptySmallSquare':'\\u25FB','emptyv':'\\u2205','EmptyVerySmallSquare':'\\u25AB','emsp':'\\u2003','emsp13':'\\u2004','emsp14':'\\u2005','eng':'\\u014B','ENG':'\\u014A','ensp':'\\u2002','eogon':'\\u0119','Eogon':'\\u0118','eopf':'\\uD835\\uDD56','Eopf':'\\uD835\\uDD3C','epar':'\\u22D5','eparsl':'\\u29E3','eplus':'\\u2A71','epsi':'\\u03B5','epsilon':'\\u03B5','Epsilon':'\\u0395','epsiv':'\\u03F5','eqcirc':'\\u2256','eqcolon':'\\u2255','eqsim':'\\u2242','eqslantgtr':'\\u2A96','eqslantless':'\\u2A95','Equal':'\\u2A75','equals':'=','EqualTilde':'\\u2242','equest':'\\u225F','Equilibrium':'\\u21CC','equiv':'\\u2261','equivDD':'\\u2A78','eqvparsl':'\\u29E5','erarr':'\\u2971','erDot':'\\u2253','escr':'\\u212F','Escr':'\\u2130','esdot':'\\u2250','esim':'\\u2242','Esim':'\\u2A73','eta':'\\u03B7','Eta':'\\u0397','eth':'\\xF0','ETH':'\\xD0','euml':'\\xEB','Euml':'\\xCB','euro':'\\u20AC','excl':'!','exist':'\\u2203','Exists':'\\u2203','expectation':'\\u2130','exponentiale':'\\u2147','ExponentialE':'\\u2147','fallingdotseq':'\\u2252','fcy':'\\u0444','Fcy':'\\u0424','female':'\\u2640','ffilig':'\\uFB03','fflig':'\\uFB00','ffllig':'\\uFB04','ffr':'\\uD835\\uDD23','Ffr':'\\uD835\\uDD09','filig':'\\uFB01','FilledSmallSquare':'\\u25FC','FilledVerySmallSquare':'\\u25AA','fjlig':'fj','flat':'\\u266D','fllig':'\\uFB02','fltns':'\\u25B1','fnof':'\\u0192','fopf':'\\uD835\\uDD57','Fopf':'\\uD835\\uDD3D','forall':'\\u2200','ForAll':'\\u2200','fork':'\\u22D4','forkv':'\\u2AD9','Fouriertrf':'\\u2131','fpartint':'\\u2A0D','frac12':'\\xBD','frac13':'\\u2153','frac14':'\\xBC','frac15':'\\u2155','frac16':'\\u2159','frac18':'\\u215B','frac23':'\\u2154','frac25':'\\u2156','frac34':'\\xBE','frac35':'\\u2157','frac38':'\\u215C','frac45':'\\u2158','frac56':'\\u215A','frac58':'\\u215D','frac78':'\\u215E','frasl':'\\u2044','frown':'\\u2322','fscr':'\\uD835\\uDCBB','Fscr':'\\u2131','gacute':'\\u01F5','gamma':'\\u03B3','Gamma':'\\u0393','gammad':'\\u03DD','Gammad':'\\u03DC','gap':'\\u2A86','gbreve':'\\u011F','Gbreve':'\\u011E','Gcedil':'\\u0122','gcirc':'\\u011D','Gcirc':'\\u011C','gcy':'\\u0433','Gcy':'\\u0413','gdot':'\\u0121','Gdot':'\\u0120','ge':'\\u2265','gE':'\\u2267','gel':'\\u22DB','gEl':'\\u2A8C','geq':'\\u2265','geqq':'\\u2267','geqslant':'\\u2A7E','ges':'\\u2A7E','gescc':'\\u2AA9','gesdot':'\\u2A80','gesdoto':'\\u2A82','gesdotol':'\\u2A84','gesl':'\\u22DB\\uFE00','gesles':'\\u2A94','gfr':'\\uD835\\uDD24','Gfr':'\\uD835\\uDD0A','gg':'\\u226B','Gg':'\\u22D9','ggg':'\\u22D9','gimel':'\\u2137','gjcy':'\\u0453','GJcy':'\\u0403','gl':'\\u2277','gla':'\\u2AA5','glE':'\\u2A92','glj':'\\u2AA4','gnap':'\\u2A8A','gnapprox':'\\u2A8A','gne':'\\u2A88','gnE':'\\u2269','gneq':'\\u2A88','gneqq':'\\u2269','gnsim':'\\u22E7','gopf':'\\uD835\\uDD58','Gopf':'\\uD835\\uDD3E','grave':'`','GreaterEqual':'\\u2265','GreaterEqualLess':'\\u22DB','GreaterFullEqual':'\\u2267','GreaterGreater':'\\u2AA2','GreaterLess':'\\u2277','GreaterSlantEqual':'\\u2A7E','GreaterTilde':'\\u2273','gscr':'\\u210A','Gscr':'\\uD835\\uDCA2','gsim':'\\u2273','gsime':'\\u2A8E','gsiml':'\\u2A90','gt':'>','Gt':'\\u226B','GT':'>','gtcc':'\\u2AA7','gtcir':'\\u2A7A','gtdot':'\\u22D7','gtlPar':'\\u2995','gtquest':'\\u2A7C','gtrapprox':'\\u2A86','gtrarr':'\\u2978','gtrdot':'\\u22D7','gtreqless':'\\u22DB','gtreqqless':'\\u2A8C','gtrless':'\\u2277','gtrsim':'\\u2273','gvertneqq':'\\u2269\\uFE00','gvnE':'\\u2269\\uFE00','Hacek':'\\u02C7','hairsp':'\\u200A','half':'\\xBD','hamilt':'\\u210B','hardcy':'\\u044A','HARDcy':'\\u042A','harr':'\\u2194','hArr':'\\u21D4','harrcir':'\\u2948','harrw':'\\u21AD','Hat':'^','hbar':'\\u210F','hcirc':'\\u0125','Hcirc':'\\u0124','hearts':'\\u2665','heartsuit':'\\u2665','hellip':'\\u2026','hercon':'\\u22B9','hfr':'\\uD835\\uDD25','Hfr':'\\u210C','HilbertSpace':'\\u210B','hksearow':'\\u2925','hkswarow':'\\u2926','hoarr':'\\u21FF','homtht':'\\u223B','hookleftarrow':'\\u21A9','hookrightarrow':'\\u21AA','hopf':'\\uD835\\uDD59','Hopf':'\\u210D','horbar':'\\u2015','HorizontalLine':'\\u2500','hscr':'\\uD835\\uDCBD','Hscr':'\\u210B','hslash':'\\u210F','hstrok':'\\u0127','Hstrok':'\\u0126','HumpDownHump':'\\u224E','HumpEqual':'\\u224F','hybull':'\\u2043','hyphen':'\\u2010','iacute':'\\xED','Iacute':'\\xCD','ic':'\\u2063','icirc':'\\xEE','Icirc':'\\xCE','icy':'\\u0438','Icy':'\\u0418','Idot':'\\u0130','iecy':'\\u0435','IEcy':'\\u0415','iexcl':'\\xA1','iff':'\\u21D4','ifr':'\\uD835\\uDD26','Ifr':'\\u2111','igrave':'\\xEC','Igrave':'\\xCC','ii':'\\u2148','iiiint':'\\u2A0C','iiint':'\\u222D','iinfin':'\\u29DC','iiota':'\\u2129','ijlig':'\\u0133','IJlig':'\\u0132','Im':'\\u2111','imacr':'\\u012B','Imacr':'\\u012A','image':'\\u2111','ImaginaryI':'\\u2148','imagline':'\\u2110','imagpart':'\\u2111','imath':'\\u0131','imof':'\\u22B7','imped':'\\u01B5','Implies':'\\u21D2','in':'\\u2208','incare':'\\u2105','infin':'\\u221E','infintie':'\\u29DD','inodot':'\\u0131','int':'\\u222B','Int':'\\u222C','intcal':'\\u22BA','integers':'\\u2124','Integral':'\\u222B','intercal':'\\u22BA','Intersection':'\\u22C2','intlarhk':'\\u2A17','intprod':'\\u2A3C','InvisibleComma':'\\u2063','InvisibleTimes':'\\u2062','iocy':'\\u0451','IOcy':'\\u0401','iogon':'\\u012F','Iogon':'\\u012E','iopf':'\\uD835\\uDD5A','Iopf':'\\uD835\\uDD40','iota':'\\u03B9','Iota':'\\u0399','iprod':'\\u2A3C','iquest':'\\xBF','iscr':'\\uD835\\uDCBE','Iscr':'\\u2110','isin':'\\u2208','isindot':'\\u22F5','isinE':'\\u22F9','isins':'\\u22F4','isinsv':'\\u22F3','isinv':'\\u2208','it':'\\u2062','itilde':'\\u0129','Itilde':'\\u0128','iukcy':'\\u0456','Iukcy':'\\u0406','iuml':'\\xEF','Iuml':'\\xCF','jcirc':'\\u0135','Jcirc':'\\u0134','jcy':'\\u0439','Jcy':'\\u0419','jfr':'\\uD835\\uDD27','Jfr':'\\uD835\\uDD0D','jmath':'\\u0237','jopf':'\\uD835\\uDD5B','Jopf':'\\uD835\\uDD41','jscr':'\\uD835\\uDCBF','Jscr':'\\uD835\\uDCA5','jsercy':'\\u0458','Jsercy':'\\u0408','jukcy':'\\u0454','Jukcy':'\\u0404','kappa':'\\u03BA','Kappa':'\\u039A','kappav':'\\u03F0','kcedil':'\\u0137','Kcedil':'\\u0136','kcy':'\\u043A','Kcy':'\\u041A','kfr':'\\uD835\\uDD28','Kfr':'\\uD835\\uDD0E','kgreen':'\\u0138','khcy':'\\u0445','KHcy':'\\u0425','kjcy':'\\u045C','KJcy':'\\u040C','kopf':'\\uD835\\uDD5C','Kopf':'\\uD835\\uDD42','kscr':'\\uD835\\uDCC0','Kscr':'\\uD835\\uDCA6','lAarr':'\\u21DA','lacute':'\\u013A','Lacute':'\\u0139','laemptyv':'\\u29B4','lagran':'\\u2112','lambda':'\\u03BB','Lambda':'\\u039B','lang':'\\u27E8','Lang':'\\u27EA','langd':'\\u2991','langle':'\\u27E8','lap':'\\u2A85','Laplacetrf':'\\u2112','laquo':'\\xAB','larr':'\\u2190','lArr':'\\u21D0','Larr':'\\u219E','larrb':'\\u21E4','larrbfs':'\\u291F','larrfs':'\\u291D','larrhk':'\\u21A9','larrlp':'\\u21AB','larrpl':'\\u2939','larrsim':'\\u2973','larrtl':'\\u21A2','lat':'\\u2AAB','latail':'\\u2919','lAtail':'\\u291B','late':'\\u2AAD','lates':'\\u2AAD\\uFE00','lbarr':'\\u290C','lBarr':'\\u290E','lbbrk':'\\u2772','lbrace':'{','lbrack':'[','lbrke':'\\u298B','lbrksld':'\\u298F','lbrkslu':'\\u298D','lcaron':'\\u013E','Lcaron':'\\u013D','lcedil':'\\u013C','Lcedil':'\\u013B','lceil':'\\u2308','lcub':'{','lcy':'\\u043B','Lcy':'\\u041B','ldca':'\\u2936','ldquo':'\\u201C','ldquor':'\\u201E','ldrdhar':'\\u2967','ldrushar':'\\u294B','ldsh':'\\u21B2','le':'\\u2264','lE':'\\u2266','LeftAngleBracket':'\\u27E8','leftarrow':'\\u2190','Leftarrow':'\\u21D0','LeftArrow':'\\u2190','LeftArrowBar':'\\u21E4','LeftArrowRightArrow':'\\u21C6','leftarrowtail':'\\u21A2','LeftCeiling':'\\u2308','LeftDoubleBracket':'\\u27E6','LeftDownTeeVector':'\\u2961','LeftDownVector':'\\u21C3','LeftDownVectorBar':'\\u2959','LeftFloor':'\\u230A','leftharpoondown':'\\u21BD','leftharpoonup':'\\u21BC','leftleftarrows':'\\u21C7','leftrightarrow':'\\u2194','Leftrightarrow':'\\u21D4','LeftRightArrow':'\\u2194','leftrightarrows':'\\u21C6','leftrightharpoons':'\\u21CB','leftrightsquigarrow':'\\u21AD','LeftRightVector':'\\u294E','LeftTee':'\\u22A3','LeftTeeArrow':'\\u21A4','LeftTeeVector':'\\u295A','leftthreetimes':'\\u22CB','LeftTriangle':'\\u22B2','LeftTriangleBar':'\\u29CF','LeftTriangleEqual':'\\u22B4','LeftUpDownVector':'\\u2951','LeftUpTeeVector':'\\u2960','LeftUpVector':'\\u21BF','LeftUpVectorBar':'\\u2958','LeftVector':'\\u21BC','LeftVectorBar':'\\u2952','leg':'\\u22DA','lEg':'\\u2A8B','leq':'\\u2264','leqq':'\\u2266','leqslant':'\\u2A7D','les':'\\u2A7D','lescc':'\\u2AA8','lesdot':'\\u2A7F','lesdoto':'\\u2A81','lesdotor':'\\u2A83','lesg':'\\u22DA\\uFE00','lesges':'\\u2A93','lessapprox':'\\u2A85','lessdot':'\\u22D6','lesseqgtr':'\\u22DA','lesseqqgtr':'\\u2A8B','LessEqualGreater':'\\u22DA','LessFullEqual':'\\u2266','LessGreater':'\\u2276','lessgtr':'\\u2276','LessLess':'\\u2AA1','lesssim':'\\u2272','LessSlantEqual':'\\u2A7D','LessTilde':'\\u2272','lfisht':'\\u297C','lfloor':'\\u230A','lfr':'\\uD835\\uDD29','Lfr':'\\uD835\\uDD0F','lg':'\\u2276','lgE':'\\u2A91','lHar':'\\u2962','lhard':'\\u21BD','lharu':'\\u21BC','lharul':'\\u296A','lhblk':'\\u2584','ljcy':'\\u0459','LJcy':'\\u0409','ll':'\\u226A','Ll':'\\u22D8','llarr':'\\u21C7','llcorner':'\\u231E','Lleftarrow':'\\u21DA','llhard':'\\u296B','lltri':'\\u25FA','lmidot':'\\u0140','Lmidot':'\\u013F','lmoust':'\\u23B0','lmoustache':'\\u23B0','lnap':'\\u2A89','lnapprox':'\\u2A89','lne':'\\u2A87','lnE':'\\u2268','lneq':'\\u2A87','lneqq':'\\u2268','lnsim':'\\u22E6','loang':'\\u27EC','loarr':'\\u21FD','lobrk':'\\u27E6','longleftarrow':'\\u27F5','Longleftarrow':'\\u27F8','LongLeftArrow':'\\u27F5','longleftrightarrow':'\\u27F7','Longleftrightarrow':'\\u27FA','LongLeftRightArrow':'\\u27F7','longmapsto':'\\u27FC','longrightarrow':'\\u27F6','Longrightarrow':'\\u27F9','LongRightArrow':'\\u27F6','looparrowleft':'\\u21AB','looparrowright':'\\u21AC','lopar':'\\u2985','lopf':'\\uD835\\uDD5D','Lopf':'\\uD835\\uDD43','loplus':'\\u2A2D','lotimes':'\\u2A34','lowast':'\\u2217','lowbar':'_','LowerLeftArrow':'\\u2199','LowerRightArrow':'\\u2198','loz':'\\u25CA','lozenge':'\\u25CA','lozf':'\\u29EB','lpar':'(','lparlt':'\\u2993','lrarr':'\\u21C6','lrcorner':'\\u231F','lrhar':'\\u21CB','lrhard':'\\u296D','lrm':'\\u200E','lrtri':'\\u22BF','lsaquo':'\\u2039','lscr':'\\uD835\\uDCC1','Lscr':'\\u2112','lsh':'\\u21B0','Lsh':'\\u21B0','lsim':'\\u2272','lsime':'\\u2A8D','lsimg':'\\u2A8F','lsqb':'[','lsquo':'\\u2018','lsquor':'\\u201A','lstrok':'\\u0142','Lstrok':'\\u0141','lt':'<','Lt':'\\u226A','LT':'<','ltcc':'\\u2AA6','ltcir':'\\u2A79','ltdot':'\\u22D6','lthree':'\\u22CB','ltimes':'\\u22C9','ltlarr':'\\u2976','ltquest':'\\u2A7B','ltri':'\\u25C3','ltrie':'\\u22B4','ltrif':'\\u25C2','ltrPar':'\\u2996','lurdshar':'\\u294A','luruhar':'\\u2966','lvertneqq':'\\u2268\\uFE00','lvnE':'\\u2268\\uFE00','macr':'\\xAF','male':'\\u2642','malt':'\\u2720','maltese':'\\u2720','map':'\\u21A6','Map':'\\u2905','mapsto':'\\u21A6','mapstodown':'\\u21A7','mapstoleft':'\\u21A4','mapstoup':'\\u21A5','marker':'\\u25AE','mcomma':'\\u2A29','mcy':'\\u043C','Mcy':'\\u041C','mdash':'\\u2014','mDDot':'\\u223A','measuredangle':'\\u2221','MediumSpace':'\\u205F','Mellintrf':'\\u2133','mfr':'\\uD835\\uDD2A','Mfr':'\\uD835\\uDD10','mho':'\\u2127','micro':'\\xB5','mid':'\\u2223','midast':'*','midcir':'\\u2AF0','middot':'\\xB7','minus':'\\u2212','minusb':'\\u229F','minusd':'\\u2238','minusdu':'\\u2A2A','MinusPlus':'\\u2213','mlcp':'\\u2ADB','mldr':'\\u2026','mnplus':'\\u2213','models':'\\u22A7','mopf':'\\uD835\\uDD5E','Mopf':'\\uD835\\uDD44','mp':'\\u2213','mscr':'\\uD835\\uDCC2','Mscr':'\\u2133','mstpos':'\\u223E','mu':'\\u03BC','Mu':'\\u039C','multimap':'\\u22B8','mumap':'\\u22B8','nabla':'\\u2207','nacute':'\\u0144','Nacute':'\\u0143','nang':'\\u2220\\u20D2','nap':'\\u2249','napE':'\\u2A70\\u0338','napid':'\\u224B\\u0338','napos':'\\u0149','napprox':'\\u2249','natur':'\\u266E','natural':'\\u266E','naturals':'\\u2115','nbsp':'\\xA0','nbump':'\\u224E\\u0338','nbumpe':'\\u224F\\u0338','ncap':'\\u2A43','ncaron':'\\u0148','Ncaron':'\\u0147','ncedil':'\\u0146','Ncedil':'\\u0145','ncong':'\\u2247','ncongdot':'\\u2A6D\\u0338','ncup':'\\u2A42','ncy':'\\u043D','Ncy':'\\u041D','ndash':'\\u2013','ne':'\\u2260','nearhk':'\\u2924','nearr':'\\u2197','neArr':'\\u21D7','nearrow':'\\u2197','nedot':'\\u2250\\u0338','NegativeMediumSpace':'\\u200B','NegativeThickSpace':'\\u200B','NegativeThinSpace':'\\u200B','NegativeVeryThinSpace':'\\u200B','nequiv':'\\u2262','nesear':'\\u2928','nesim':'\\u2242\\u0338','NestedGreaterGreater':'\\u226B','NestedLessLess':'\\u226A','NewLine':'\\n','nexist':'\\u2204','nexists':'\\u2204','nfr':'\\uD835\\uDD2B','Nfr':'\\uD835\\uDD11','nge':'\\u2271','ngE':'\\u2267\\u0338','ngeq':'\\u2271','ngeqq':'\\u2267\\u0338','ngeqslant':'\\u2A7E\\u0338','nges':'\\u2A7E\\u0338','nGg':'\\u22D9\\u0338','ngsim':'\\u2275','ngt':'\\u226F','nGt':'\\u226B\\u20D2','ngtr':'\\u226F','nGtv':'\\u226B\\u0338','nharr':'\\u21AE','nhArr':'\\u21CE','nhpar':'\\u2AF2','ni':'\\u220B','nis':'\\u22FC','nisd':'\\u22FA','niv':'\\u220B','njcy':'\\u045A','NJcy':'\\u040A','nlarr':'\\u219A','nlArr':'\\u21CD','nldr':'\\u2025','nle':'\\u2270','nlE':'\\u2266\\u0338','nleftarrow':'\\u219A','nLeftarrow':'\\u21CD','nleftrightarrow':'\\u21AE','nLeftrightarrow':'\\u21CE','nleq':'\\u2270','nleqq':'\\u2266\\u0338','nleqslant':'\\u2A7D\\u0338','nles':'\\u2A7D\\u0338','nless':'\\u226E','nLl':'\\u22D8\\u0338','nlsim':'\\u2274','nlt':'\\u226E','nLt':'\\u226A\\u20D2','nltri':'\\u22EA','nltrie':'\\u22EC','nLtv':'\\u226A\\u0338','nmid':'\\u2224','NoBreak':'\\u2060','NonBreakingSpace':'\\xA0','nopf':'\\uD835\\uDD5F','Nopf':'\\u2115','not':'\\xAC','Not':'\\u2AEC','NotCongruent':'\\u2262','NotCupCap':'\\u226D','NotDoubleVerticalBar':'\\u2226','NotElement':'\\u2209','NotEqual':'\\u2260','NotEqualTilde':'\\u2242\\u0338','NotExists':'\\u2204','NotGreater':'\\u226F','NotGreaterEqual':'\\u2271','NotGreaterFullEqual':'\\u2267\\u0338','NotGreaterGreater':'\\u226B\\u0338','NotGreaterLess':'\\u2279','NotGreaterSlantEqual':'\\u2A7E\\u0338','NotGreaterTilde':'\\u2275','NotHumpDownHump':'\\u224E\\u0338','NotHumpEqual':'\\u224F\\u0338','notin':'\\u2209','notindot':'\\u22F5\\u0338','notinE':'\\u22F9\\u0338','notinva':'\\u2209','notinvb':'\\u22F7','notinvc':'\\u22F6','NotLeftTriangle':'\\u22EA','NotLeftTriangleBar':'\\u29CF\\u0338','NotLeftTriangleEqual':'\\u22EC','NotLess':'\\u226E','NotLessEqual':'\\u2270','NotLessGreater':'\\u2278','NotLessLess':'\\u226A\\u0338','NotLessSlantEqual':'\\u2A7D\\u0338','NotLessTilde':'\\u2274','NotNestedGreaterGreater':'\\u2AA2\\u0338','NotNestedLessLess':'\\u2AA1\\u0338','notni':'\\u220C','notniva':'\\u220C','notnivb':'\\u22FE','notnivc':'\\u22FD','NotPrecedes':'\\u2280','NotPrecedesEqual':'\\u2AAF\\u0338','NotPrecedesSlantEqual':'\\u22E0','NotReverseElement':'\\u220C','NotRightTriangle':'\\u22EB','NotRightTriangleBar':'\\u29D0\\u0338','NotRightTriangleEqual':'\\u22ED','NotSquareSubset':'\\u228F\\u0338','NotSquareSubsetEqual':'\\u22E2','NotSquareSuperset':'\\u2290\\u0338','NotSquareSupersetEqual':'\\u22E3','NotSubset':'\\u2282\\u20D2','NotSubsetEqual':'\\u2288','NotSucceeds':'\\u2281','NotSucceedsEqual':'\\u2AB0\\u0338','NotSucceedsSlantEqual':'\\u22E1','NotSucceedsTilde':'\\u227F\\u0338','NotSuperset':'\\u2283\\u20D2','NotSupersetEqual':'\\u2289','NotTilde':'\\u2241','NotTildeEqual':'\\u2244','NotTildeFullEqual':'\\u2247','NotTildeTilde':'\\u2249','NotVerticalBar':'\\u2224','npar':'\\u2226','nparallel':'\\u2226','nparsl':'\\u2AFD\\u20E5','npart':'\\u2202\\u0338','npolint':'\\u2A14','npr':'\\u2280','nprcue':'\\u22E0','npre':'\\u2AAF\\u0338','nprec':'\\u2280','npreceq':'\\u2AAF\\u0338','nrarr':'\\u219B','nrArr':'\\u21CF','nrarrc':'\\u2933\\u0338','nrarrw':'\\u219D\\u0338','nrightarrow':'\\u219B','nRightarrow':'\\u21CF','nrtri':'\\u22EB','nrtrie':'\\u22ED','nsc':'\\u2281','nsccue':'\\u22E1','nsce':'\\u2AB0\\u0338','nscr':'\\uD835\\uDCC3','Nscr':'\\uD835\\uDCA9','nshortmid':'\\u2224','nshortparallel':'\\u2226','nsim':'\\u2241','nsime':'\\u2244','nsimeq':'\\u2244','nsmid':'\\u2224','nspar':'\\u2226','nsqsube':'\\u22E2','nsqsupe':'\\u22E3','nsub':'\\u2284','nsube':'\\u2288','nsubE':'\\u2AC5\\u0338','nsubset':'\\u2282\\u20D2','nsubseteq':'\\u2288','nsubseteqq':'\\u2AC5\\u0338','nsucc':'\\u2281','nsucceq':'\\u2AB0\\u0338','nsup':'\\u2285','nsupe':'\\u2289','nsupE':'\\u2AC6\\u0338','nsupset':'\\u2283\\u20D2','nsupseteq':'\\u2289','nsupseteqq':'\\u2AC6\\u0338','ntgl':'\\u2279','ntilde':'\\xF1','Ntilde':'\\xD1','ntlg':'\\u2278','ntriangleleft':'\\u22EA','ntrianglelefteq':'\\u22EC','ntriangleright':'\\u22EB','ntrianglerighteq':'\\u22ED','nu':'\\u03BD','Nu':'\\u039D','num':'#','numero':'\\u2116','numsp':'\\u2007','nvap':'\\u224D\\u20D2','nvdash':'\\u22AC','nvDash':'\\u22AD','nVdash':'\\u22AE','nVDash':'\\u22AF','nvge':'\\u2265\\u20D2','nvgt':'>\\u20D2','nvHarr':'\\u2904','nvinfin':'\\u29DE','nvlArr':'\\u2902','nvle':'\\u2264\\u20D2','nvlt':'<\\u20D2','nvltrie':'\\u22B4\\u20D2','nvrArr':'\\u2903','nvrtrie':'\\u22B5\\u20D2','nvsim':'\\u223C\\u20D2','nwarhk':'\\u2923','nwarr':'\\u2196','nwArr':'\\u21D6','nwarrow':'\\u2196','nwnear':'\\u2927','oacute':'\\xF3','Oacute':'\\xD3','oast':'\\u229B','ocir':'\\u229A','ocirc':'\\xF4','Ocirc':'\\xD4','ocy':'\\u043E','Ocy':'\\u041E','odash':'\\u229D','odblac':'\\u0151','Odblac':'\\u0150','odiv':'\\u2A38','odot':'\\u2299','odsold':'\\u29BC','oelig':'\\u0153','OElig':'\\u0152','ofcir':'\\u29BF','ofr':'\\uD835\\uDD2C','Ofr':'\\uD835\\uDD12','ogon':'\\u02DB','ograve':'\\xF2','Ograve':'\\xD2','ogt':'\\u29C1','ohbar':'\\u29B5','ohm':'\\u03A9','oint':'\\u222E','olarr':'\\u21BA','olcir':'\\u29BE','olcross':'\\u29BB','oline':'\\u203E','olt':'\\u29C0','omacr':'\\u014D','Omacr':'\\u014C','omega':'\\u03C9','Omega':'\\u03A9','omicron':'\\u03BF','Omicron':'\\u039F','omid':'\\u29B6','ominus':'\\u2296','oopf':'\\uD835\\uDD60','Oopf':'\\uD835\\uDD46','opar':'\\u29B7','OpenCurlyDoubleQuote':'\\u201C','OpenCurlyQuote':'\\u2018','operp':'\\u29B9','oplus':'\\u2295','or':'\\u2228','Or':'\\u2A54','orarr':'\\u21BB','ord':'\\u2A5D','order':'\\u2134','orderof':'\\u2134','ordf':'\\xAA','ordm':'\\xBA','origof':'\\u22B6','oror':'\\u2A56','orslope':'\\u2A57','orv':'\\u2A5B','oS':'\\u24C8','oscr':'\\u2134','Oscr':'\\uD835\\uDCAA','oslash':'\\xF8','Oslash':'\\xD8','osol':'\\u2298','otilde':'\\xF5','Otilde':'\\xD5','otimes':'\\u2297','Otimes':'\\u2A37','otimesas':'\\u2A36','ouml':'\\xF6','Ouml':'\\xD6','ovbar':'\\u233D','OverBar':'\\u203E','OverBrace':'\\u23DE','OverBracket':'\\u23B4','OverParenthesis':'\\u23DC','par':'\\u2225','para':'\\xB6','parallel':'\\u2225','parsim':'\\u2AF3','parsl':'\\u2AFD','part':'\\u2202','PartialD':'\\u2202','pcy':'\\u043F','Pcy':'\\u041F','percnt':'%','period':'.','permil':'\\u2030','perp':'\\u22A5','pertenk':'\\u2031','pfr':'\\uD835\\uDD2D','Pfr':'\\uD835\\uDD13','phi':'\\u03C6','Phi':'\\u03A6','phiv':'\\u03D5','phmmat':'\\u2133','phone':'\\u260E','pi':'\\u03C0','Pi':'\\u03A0','pitchfork':'\\u22D4','piv':'\\u03D6','planck':'\\u210F','planckh':'\\u210E','plankv':'\\u210F','plus':'+','plusacir':'\\u2A23','plusb':'\\u229E','pluscir':'\\u2A22','plusdo':'\\u2214','plusdu':'\\u2A25','pluse':'\\u2A72','PlusMinus':'\\xB1','plusmn':'\\xB1','plussim':'\\u2A26','plustwo':'\\u2A27','pm':'\\xB1','Poincareplane':'\\u210C','pointint':'\\u2A15','popf':'\\uD835\\uDD61','Popf':'\\u2119','pound':'\\xA3','pr':'\\u227A','Pr':'\\u2ABB','prap':'\\u2AB7','prcue':'\\u227C','pre':'\\u2AAF','prE':'\\u2AB3','prec':'\\u227A','precapprox':'\\u2AB7','preccurlyeq':'\\u227C','Precedes':'\\u227A','PrecedesEqual':'\\u2AAF','PrecedesSlantEqual':'\\u227C','PrecedesTilde':'\\u227E','preceq':'\\u2AAF','precnapprox':'\\u2AB9','precneqq':'\\u2AB5','precnsim':'\\u22E8','precsim':'\\u227E','prime':'\\u2032','Prime':'\\u2033','primes':'\\u2119','prnap':'\\u2AB9','prnE':'\\u2AB5','prnsim':'\\u22E8','prod':'\\u220F','Product':'\\u220F','profalar':'\\u232E','profline':'\\u2312','profsurf':'\\u2313','prop':'\\u221D','Proportion':'\\u2237','Proportional':'\\u221D','propto':'\\u221D','prsim':'\\u227E','prurel':'\\u22B0','pscr':'\\uD835\\uDCC5','Pscr':'\\uD835\\uDCAB','psi':'\\u03C8','Psi':'\\u03A8','puncsp':'\\u2008','qfr':'\\uD835\\uDD2E','Qfr':'\\uD835\\uDD14','qint':'\\u2A0C','qopf':'\\uD835\\uDD62','Qopf':'\\u211A','qprime':'\\u2057','qscr':'\\uD835\\uDCC6','Qscr':'\\uD835\\uDCAC','quaternions':'\\u210D','quatint':'\\u2A16','quest':'?','questeq':'\\u225F','quot':'\"','QUOT':'\"','rAarr':'\\u21DB','race':'\\u223D\\u0331','racute':'\\u0155','Racute':'\\u0154','radic':'\\u221A','raemptyv':'\\u29B3','rang':'\\u27E9','Rang':'\\u27EB','rangd':'\\u2992','range':'\\u29A5','rangle':'\\u27E9','raquo':'\\xBB','rarr':'\\u2192','rArr':'\\u21D2','Rarr':'\\u21A0','rarrap':'\\u2975','rarrb':'\\u21E5','rarrbfs':'\\u2920','rarrc':'\\u2933','rarrfs':'\\u291E','rarrhk':'\\u21AA','rarrlp':'\\u21AC','rarrpl':'\\u2945','rarrsim':'\\u2974','rarrtl':'\\u21A3','Rarrtl':'\\u2916','rarrw':'\\u219D','ratail':'\\u291A','rAtail':'\\u291C','ratio':'\\u2236','rationals':'\\u211A','rbarr':'\\u290D','rBarr':'\\u290F','RBarr':'\\u2910','rbbrk':'\\u2773','rbrace':'}','rbrack':']','rbrke':'\\u298C','rbrksld':'\\u298E','rbrkslu':'\\u2990','rcaron':'\\u0159','Rcaron':'\\u0158','rcedil':'\\u0157','Rcedil':'\\u0156','rceil':'\\u2309','rcub':'}','rcy':'\\u0440','Rcy':'\\u0420','rdca':'\\u2937','rdldhar':'\\u2969','rdquo':'\\u201D','rdquor':'\\u201D','rdsh':'\\u21B3','Re':'\\u211C','real':'\\u211C','realine':'\\u211B','realpart':'\\u211C','reals':'\\u211D','rect':'\\u25AD','reg':'\\xAE','REG':'\\xAE','ReverseElement':'\\u220B','ReverseEquilibrium':'\\u21CB','ReverseUpEquilibrium':'\\u296F','rfisht':'\\u297D','rfloor':'\\u230B','rfr':'\\uD835\\uDD2F','Rfr':'\\u211C','rHar':'\\u2964','rhard':'\\u21C1','rharu':'\\u21C0','rharul':'\\u296C','rho':'\\u03C1','Rho':'\\u03A1','rhov':'\\u03F1','RightAngleBracket':'\\u27E9','rightarrow':'\\u2192','Rightarrow':'\\u21D2','RightArrow':'\\u2192','RightArrowBar':'\\u21E5','RightArrowLeftArrow':'\\u21C4','rightarrowtail':'\\u21A3','RightCeiling':'\\u2309','RightDoubleBracket':'\\u27E7','RightDownTeeVector':'\\u295D','RightDownVector':'\\u21C2','RightDownVectorBar':'\\u2955','RightFloor':'\\u230B','rightharpoondown':'\\u21C1','rightharpoonup':'\\u21C0','rightleftarrows':'\\u21C4','rightleftharpoons':'\\u21CC','rightrightarrows':'\\u21C9','rightsquigarrow':'\\u219D','RightTee':'\\u22A2','RightTeeArrow':'\\u21A6','RightTeeVector':'\\u295B','rightthreetimes':'\\u22CC','RightTriangle':'\\u22B3','RightTriangleBar':'\\u29D0','RightTriangleEqual':'\\u22B5','RightUpDownVector':'\\u294F','RightUpTeeVector':'\\u295C','RightUpVector':'\\u21BE','RightUpVectorBar':'\\u2954','RightVector':'\\u21C0','RightVectorBar':'\\u2953','ring':'\\u02DA','risingdotseq':'\\u2253','rlarr':'\\u21C4','rlhar':'\\u21CC','rlm':'\\u200F','rmoust':'\\u23B1','rmoustache':'\\u23B1','rnmid':'\\u2AEE','roang':'\\u27ED','roarr':'\\u21FE','robrk':'\\u27E7','ropar':'\\u2986','ropf':'\\uD835\\uDD63','Ropf':'\\u211D','roplus':'\\u2A2E','rotimes':'\\u2A35','RoundImplies':'\\u2970','rpar':')','rpargt':'\\u2994','rppolint':'\\u2A12','rrarr':'\\u21C9','Rrightarrow':'\\u21DB','rsaquo':'\\u203A','rscr':'\\uD835\\uDCC7','Rscr':'\\u211B','rsh':'\\u21B1','Rsh':'\\u21B1','rsqb':']','rsquo':'\\u2019','rsquor':'\\u2019','rthree':'\\u22CC','rtimes':'\\u22CA','rtri':'\\u25B9','rtrie':'\\u22B5','rtrif':'\\u25B8','rtriltri':'\\u29CE','RuleDelayed':'\\u29F4','ruluhar':'\\u2968','rx':'\\u211E','sacute':'\\u015B','Sacute':'\\u015A','sbquo':'\\u201A','sc':'\\u227B','Sc':'\\u2ABC','scap':'\\u2AB8','scaron':'\\u0161','Scaron':'\\u0160','sccue':'\\u227D','sce':'\\u2AB0','scE':'\\u2AB4','scedil':'\\u015F','Scedil':'\\u015E','scirc':'\\u015D','Scirc':'\\u015C','scnap':'\\u2ABA','scnE':'\\u2AB6','scnsim':'\\u22E9','scpolint':'\\u2A13','scsim':'\\u227F','scy':'\\u0441','Scy':'\\u0421','sdot':'\\u22C5','sdotb':'\\u22A1','sdote':'\\u2A66','searhk':'\\u2925','searr':'\\u2198','seArr':'\\u21D8','searrow':'\\u2198','sect':'\\xA7','semi':';','seswar':'\\u2929','setminus':'\\u2216','setmn':'\\u2216','sext':'\\u2736','sfr':'\\uD835\\uDD30','Sfr':'\\uD835\\uDD16','sfrown':'\\u2322','sharp':'\\u266F','shchcy':'\\u0449','SHCHcy':'\\u0429','shcy':'\\u0448','SHcy':'\\u0428','ShortDownArrow':'\\u2193','ShortLeftArrow':'\\u2190','shortmid':'\\u2223','shortparallel':'\\u2225','ShortRightArrow':'\\u2192','ShortUpArrow':'\\u2191','shy':'\\xAD','sigma':'\\u03C3','Sigma':'\\u03A3','sigmaf':'\\u03C2','sigmav':'\\u03C2','sim':'\\u223C','simdot':'\\u2A6A','sime':'\\u2243','simeq':'\\u2243','simg':'\\u2A9E','simgE':'\\u2AA0','siml':'\\u2A9D','simlE':'\\u2A9F','simne':'\\u2246','simplus':'\\u2A24','simrarr':'\\u2972','slarr':'\\u2190','SmallCircle':'\\u2218','smallsetminus':'\\u2216','smashp':'\\u2A33','smeparsl':'\\u29E4','smid':'\\u2223','smile':'\\u2323','smt':'\\u2AAA','smte':'\\u2AAC','smtes':'\\u2AAC\\uFE00','softcy':'\\u044C','SOFTcy':'\\u042C','sol':'/','solb':'\\u29C4','solbar':'\\u233F','sopf':'\\uD835\\uDD64','Sopf':'\\uD835\\uDD4A','spades':'\\u2660','spadesuit':'\\u2660','spar':'\\u2225','sqcap':'\\u2293','sqcaps':'\\u2293\\uFE00','sqcup':'\\u2294','sqcups':'\\u2294\\uFE00','Sqrt':'\\u221A','sqsub':'\\u228F','sqsube':'\\u2291','sqsubset':'\\u228F','sqsubseteq':'\\u2291','sqsup':'\\u2290','sqsupe':'\\u2292','sqsupset':'\\u2290','sqsupseteq':'\\u2292','squ':'\\u25A1','square':'\\u25A1','Square':'\\u25A1','SquareIntersection':'\\u2293','SquareSubset':'\\u228F','SquareSubsetEqual':'\\u2291','SquareSuperset':'\\u2290','SquareSupersetEqual':'\\u2292','SquareUnion':'\\u2294','squarf':'\\u25AA','squf':'\\u25AA','srarr':'\\u2192','sscr':'\\uD835\\uDCC8','Sscr':'\\uD835\\uDCAE','ssetmn':'\\u2216','ssmile':'\\u2323','sstarf':'\\u22C6','star':'\\u2606','Star':'\\u22C6','starf':'\\u2605','straightepsilon':'\\u03F5','straightphi':'\\u03D5','strns':'\\xAF','sub':'\\u2282','Sub':'\\u22D0','subdot':'\\u2ABD','sube':'\\u2286','subE':'\\u2AC5','subedot':'\\u2AC3','submult':'\\u2AC1','subne':'\\u228A','subnE':'\\u2ACB','subplus':'\\u2ABF','subrarr':'\\u2979','subset':'\\u2282','Subset':'\\u22D0','subseteq':'\\u2286','subseteqq':'\\u2AC5','SubsetEqual':'\\u2286','subsetneq':'\\u228A','subsetneqq':'\\u2ACB','subsim':'\\u2AC7','subsub':'\\u2AD5','subsup':'\\u2AD3','succ':'\\u227B','succapprox':'\\u2AB8','succcurlyeq':'\\u227D','Succeeds':'\\u227B','SucceedsEqual':'\\u2AB0','SucceedsSlantEqual':'\\u227D','SucceedsTilde':'\\u227F','succeq':'\\u2AB0','succnapprox':'\\u2ABA','succneqq':'\\u2AB6','succnsim':'\\u22E9','succsim':'\\u227F','SuchThat':'\\u220B','sum':'\\u2211','Sum':'\\u2211','sung':'\\u266A','sup':'\\u2283','Sup':'\\u22D1','sup1':'\\xB9','sup2':'\\xB2','sup3':'\\xB3','supdot':'\\u2ABE','supdsub':'\\u2AD8','supe':'\\u2287','supE':'\\u2AC6','supedot':'\\u2AC4','Superset':'\\u2283','SupersetEqual':'\\u2287','suphsol':'\\u27C9','suphsub':'\\u2AD7','suplarr':'\\u297B','supmult':'\\u2AC2','supne':'\\u228B','supnE':'\\u2ACC','supplus':'\\u2AC0','supset':'\\u2283','Supset':'\\u22D1','supseteq':'\\u2287','supseteqq':'\\u2AC6','supsetneq':'\\u228B','supsetneqq':'\\u2ACC','supsim':'\\u2AC8','supsub':'\\u2AD4','supsup':'\\u2AD6','swarhk':'\\u2926','swarr':'\\u2199','swArr':'\\u21D9','swarrow':'\\u2199','swnwar':'\\u292A','szlig':'\\xDF','Tab':'\\t','target':'\\u2316','tau':'\\u03C4','Tau':'\\u03A4','tbrk':'\\u23B4','tcaron':'\\u0165','Tcaron':'\\u0164','tcedil':'\\u0163','Tcedil':'\\u0162','tcy':'\\u0442','Tcy':'\\u0422','tdot':'\\u20DB','telrec':'\\u2315','tfr':'\\uD835\\uDD31','Tfr':'\\uD835\\uDD17','there4':'\\u2234','therefore':'\\u2234','Therefore':'\\u2234','theta':'\\u03B8','Theta':'\\u0398','thetasym':'\\u03D1','thetav':'\\u03D1','thickapprox':'\\u2248','thicksim':'\\u223C','ThickSpace':'\\u205F\\u200A','thinsp':'\\u2009','ThinSpace':'\\u2009','thkap':'\\u2248','thksim':'\\u223C','thorn':'\\xFE','THORN':'\\xDE','tilde':'\\u02DC','Tilde':'\\u223C','TildeEqual':'\\u2243','TildeFullEqual':'\\u2245','TildeTilde':'\\u2248','times':'\\xD7','timesb':'\\u22A0','timesbar':'\\u2A31','timesd':'\\u2A30','tint':'\\u222D','toea':'\\u2928','top':'\\u22A4','topbot':'\\u2336','topcir':'\\u2AF1','topf':'\\uD835\\uDD65','Topf':'\\uD835\\uDD4B','topfork':'\\u2ADA','tosa':'\\u2929','tprime':'\\u2034','trade':'\\u2122','TRADE':'\\u2122','triangle':'\\u25B5','triangledown':'\\u25BF','triangleleft':'\\u25C3','trianglelefteq':'\\u22B4','triangleq':'\\u225C','triangleright':'\\u25B9','trianglerighteq':'\\u22B5','tridot':'\\u25EC','trie':'\\u225C','triminus':'\\u2A3A','TripleDot':'\\u20DB','triplus':'\\u2A39','trisb':'\\u29CD','tritime':'\\u2A3B','trpezium':'\\u23E2','tscr':'\\uD835\\uDCC9','Tscr':'\\uD835\\uDCAF','tscy':'\\u0446','TScy':'\\u0426','tshcy':'\\u045B','TSHcy':'\\u040B','tstrok':'\\u0167','Tstrok':'\\u0166','twixt':'\\u226C','twoheadleftarrow':'\\u219E','twoheadrightarrow':'\\u21A0','uacute':'\\xFA','Uacute':'\\xDA','uarr':'\\u2191','uArr':'\\u21D1','Uarr':'\\u219F','Uarrocir':'\\u2949','ubrcy':'\\u045E','Ubrcy':'\\u040E','ubreve':'\\u016D','Ubreve':'\\u016C','ucirc':'\\xFB','Ucirc':'\\xDB','ucy':'\\u0443','Ucy':'\\u0423','udarr':'\\u21C5','udblac':'\\u0171','Udblac':'\\u0170','udhar':'\\u296E','ufisht':'\\u297E','ufr':'\\uD835\\uDD32','Ufr':'\\uD835\\uDD18','ugrave':'\\xF9','Ugrave':'\\xD9','uHar':'\\u2963','uharl':'\\u21BF','uharr':'\\u21BE','uhblk':'\\u2580','ulcorn':'\\u231C','ulcorner':'\\u231C','ulcrop':'\\u230F','ultri':'\\u25F8','umacr':'\\u016B','Umacr':'\\u016A','uml':'\\xA8','UnderBar':'_','UnderBrace':'\\u23DF','UnderBracket':'\\u23B5','UnderParenthesis':'\\u23DD','Union':'\\u22C3','UnionPlus':'\\u228E','uogon':'\\u0173','Uogon':'\\u0172','uopf':'\\uD835\\uDD66','Uopf':'\\uD835\\uDD4C','uparrow':'\\u2191','Uparrow':'\\u21D1','UpArrow':'\\u2191','UpArrowBar':'\\u2912','UpArrowDownArrow':'\\u21C5','updownarrow':'\\u2195','Updownarrow':'\\u21D5','UpDownArrow':'\\u2195','UpEquilibrium':'\\u296E','upharpoonleft':'\\u21BF','upharpoonright':'\\u21BE','uplus':'\\u228E','UpperLeftArrow':'\\u2196','UpperRightArrow':'\\u2197','upsi':'\\u03C5','Upsi':'\\u03D2','upsih':'\\u03D2','upsilon':'\\u03C5','Upsilon':'\\u03A5','UpTee':'\\u22A5','UpTeeArrow':'\\u21A5','upuparrows':'\\u21C8','urcorn':'\\u231D','urcorner':'\\u231D','urcrop':'\\u230E','uring':'\\u016F','Uring':'\\u016E','urtri':'\\u25F9','uscr':'\\uD835\\uDCCA','Uscr':'\\uD835\\uDCB0','utdot':'\\u22F0','utilde':'\\u0169','Utilde':'\\u0168','utri':'\\u25B5','utrif':'\\u25B4','uuarr':'\\u21C8','uuml':'\\xFC','Uuml':'\\xDC','uwangle':'\\u29A7','vangrt':'\\u299C','varepsilon':'\\u03F5','varkappa':'\\u03F0','varnothing':'\\u2205','varphi':'\\u03D5','varpi':'\\u03D6','varpropto':'\\u221D','varr':'\\u2195','vArr':'\\u21D5','varrho':'\\u03F1','varsigma':'\\u03C2','varsubsetneq':'\\u228A\\uFE00','varsubsetneqq':'\\u2ACB\\uFE00','varsupsetneq':'\\u228B\\uFE00','varsupsetneqq':'\\u2ACC\\uFE00','vartheta':'\\u03D1','vartriangleleft':'\\u22B2','vartriangleright':'\\u22B3','vBar':'\\u2AE8','Vbar':'\\u2AEB','vBarv':'\\u2AE9','vcy':'\\u0432','Vcy':'\\u0412','vdash':'\\u22A2','vDash':'\\u22A8','Vdash':'\\u22A9','VDash':'\\u22AB','Vdashl':'\\u2AE6','vee':'\\u2228','Vee':'\\u22C1','veebar':'\\u22BB','veeeq':'\\u225A','vellip':'\\u22EE','verbar':'|','Verbar':'\\u2016','vert':'|','Vert':'\\u2016','VerticalBar':'\\u2223','VerticalLine':'|','VerticalSeparator':'\\u2758','VerticalTilde':'\\u2240','VeryThinSpace':'\\u200A','vfr':'\\uD835\\uDD33','Vfr':'\\uD835\\uDD19','vltri':'\\u22B2','vnsub':'\\u2282\\u20D2','vnsup':'\\u2283\\u20D2','vopf':'\\uD835\\uDD67','Vopf':'\\uD835\\uDD4D','vprop':'\\u221D','vrtri':'\\u22B3','vscr':'\\uD835\\uDCCB','Vscr':'\\uD835\\uDCB1','vsubne':'\\u228A\\uFE00','vsubnE':'\\u2ACB\\uFE00','vsupne':'\\u228B\\uFE00','vsupnE':'\\u2ACC\\uFE00','Vvdash':'\\u22AA','vzigzag':'\\u299A','wcirc':'\\u0175','Wcirc':'\\u0174','wedbar':'\\u2A5F','wedge':'\\u2227','Wedge':'\\u22C0','wedgeq':'\\u2259','weierp':'\\u2118','wfr':'\\uD835\\uDD34','Wfr':'\\uD835\\uDD1A','wopf':'\\uD835\\uDD68','Wopf':'\\uD835\\uDD4E','wp':'\\u2118','wr':'\\u2240','wreath':'\\u2240','wscr':'\\uD835\\uDCCC','Wscr':'\\uD835\\uDCB2','xcap':'\\u22C2','xcirc':'\\u25EF','xcup':'\\u22C3','xdtri':'\\u25BD','xfr':'\\uD835\\uDD35','Xfr':'\\uD835\\uDD1B','xharr':'\\u27F7','xhArr':'\\u27FA','xi':'\\u03BE','Xi':'\\u039E','xlarr':'\\u27F5','xlArr':'\\u27F8','xmap':'\\u27FC','xnis':'\\u22FB','xodot':'\\u2A00','xopf':'\\uD835\\uDD69','Xopf':'\\uD835\\uDD4F','xoplus':'\\u2A01','xotime':'\\u2A02','xrarr':'\\u27F6','xrArr':'\\u27F9','xscr':'\\uD835\\uDCCD','Xscr':'\\uD835\\uDCB3','xsqcup':'\\u2A06','xuplus':'\\u2A04','xutri':'\\u25B3','xvee':'\\u22C1','xwedge':'\\u22C0','yacute':'\\xFD','Yacute':'\\xDD','yacy':'\\u044F','YAcy':'\\u042F','ycirc':'\\u0177','Ycirc':'\\u0176','ycy':'\\u044B','Ycy':'\\u042B','yen':'\\xA5','yfr':'\\uD835\\uDD36','Yfr':'\\uD835\\uDD1C','yicy':'\\u0457','YIcy':'\\u0407','yopf':'\\uD835\\uDD6A','Yopf':'\\uD835\\uDD50','yscr':'\\uD835\\uDCCE','Yscr':'\\uD835\\uDCB4','yucy':'\\u044E','YUcy':'\\u042E','yuml':'\\xFF','Yuml':'\\u0178','zacute':'\\u017A','Zacute':'\\u0179','zcaron':'\\u017E','Zcaron':'\\u017D','zcy':'\\u0437','Zcy':'\\u0417','zdot':'\\u017C','Zdot':'\\u017B','zeetrf':'\\u2128','ZeroWidthSpace':'\\u200B','zeta':'\\u03B6','Zeta':'\\u0396','zfr':'\\uD835\\uDD37','Zfr':'\\u2128','zhcy':'\\u0436','ZHcy':'\\u0416','zigrarr':'\\u21DD','zopf':'\\uD835\\uDD6B','Zopf':'\\u2124','zscr':'\\uD835\\uDCCF','Zscr':'\\uD835\\uDCB5','zwj':'\\u200D','zwnj':'\\u200C'};\n\tvar decodeMapLegacy = {'aacute':'\\xE1','Aacute':'\\xC1','acirc':'\\xE2','Acirc':'\\xC2','acute':'\\xB4','aelig':'\\xE6','AElig':'\\xC6','agrave':'\\xE0','Agrave':'\\xC0','amp':'&','AMP':'&','aring':'\\xE5','Aring':'\\xC5','atilde':'\\xE3','Atilde':'\\xC3','auml':'\\xE4','Auml':'\\xC4','brvbar':'\\xA6','ccedil':'\\xE7','Ccedil':'\\xC7','cedil':'\\xB8','cent':'\\xA2','copy':'\\xA9','COPY':'\\xA9','curren':'\\xA4','deg':'\\xB0','divide':'\\xF7','eacute':'\\xE9','Eacute':'\\xC9','ecirc':'\\xEA','Ecirc':'\\xCA','egrave':'\\xE8','Egrave':'\\xC8','eth':'\\xF0','ETH':'\\xD0','euml':'\\xEB','Euml':'\\xCB','frac12':'\\xBD','frac14':'\\xBC','frac34':'\\xBE','gt':'>','GT':'>','iacute':'\\xED','Iacute':'\\xCD','icirc':'\\xEE','Icirc':'\\xCE','iexcl':'\\xA1','igrave':'\\xEC','Igrave':'\\xCC','iquest':'\\xBF','iuml':'\\xEF','Iuml':'\\xCF','laquo':'\\xAB','lt':'<','LT':'<','macr':'\\xAF','micro':'\\xB5','middot':'\\xB7','nbsp':'\\xA0','not':'\\xAC','ntilde':'\\xF1','Ntilde':'\\xD1','oacute':'\\xF3','Oacute':'\\xD3','ocirc':'\\xF4','Ocirc':'\\xD4','ograve':'\\xF2','Ograve':'\\xD2','ordf':'\\xAA','ordm':'\\xBA','oslash':'\\xF8','Oslash':'\\xD8','otilde':'\\xF5','Otilde':'\\xD5','ouml':'\\xF6','Ouml':'\\xD6','para':'\\xB6','plusmn':'\\xB1','pound':'\\xA3','quot':'\"','QUOT':'\"','raquo':'\\xBB','reg':'\\xAE','REG':'\\xAE','sect':'\\xA7','shy':'\\xAD','sup1':'\\xB9','sup2':'\\xB2','sup3':'\\xB3','szlig':'\\xDF','thorn':'\\xFE','THORN':'\\xDE','times':'\\xD7','uacute':'\\xFA','Uacute':'\\xDA','ucirc':'\\xFB','Ucirc':'\\xDB','ugrave':'\\xF9','Ugrave':'\\xD9','uml':'\\xA8','uuml':'\\xFC','Uuml':'\\xDC','yacute':'\\xFD','Yacute':'\\xDD','yen':'\\xA5','yuml':'\\xFF'};\n\tvar decodeMapNumeric = {'0':'\\uFFFD','128':'\\u20AC','130':'\\u201A','131':'\\u0192','132':'\\u201E','133':'\\u2026','134':'\\u2020','135':'\\u2021','136':'\\u02C6','137':'\\u2030','138':'\\u0160','139':'\\u2039','140':'\\u0152','142':'\\u017D','145':'\\u2018','146':'\\u2019','147':'\\u201C','148':'\\u201D','149':'\\u2022','150':'\\u2013','151':'\\u2014','152':'\\u02DC','153':'\\u2122','154':'\\u0161','155':'\\u203A','156':'\\u0153','158':'\\u017E','159':'\\u0178'};\n\tvar invalidReferenceCodePoints = [1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65000,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar stringFromCharCode = String.fromCharCode;\n\n\tvar object = {};\n\tvar hasOwnProperty = object.hasOwnProperty;\n\tvar has = function(object, propertyName) {\n\t\treturn hasOwnProperty.call(object, propertyName);\n\t};\n\n\tvar contains = function(array, value) {\n\t\tvar index = -1;\n\t\tvar length = array.length;\n\t\twhile (++index < length) {\n\t\t\tif (array[index] == value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n\n\tvar merge = function(options, defaults) {\n\t\tif (!options) {\n\t\t\treturn defaults;\n\t\t}\n\t\tvar result = {};\n\t\tvar key;\n\t\tfor (key in defaults) {\n\t\t\t// A `hasOwnProperty` check is not needed here, since only recognized\n\t\t\t// option names are used anyway. Any others are ignored.\n\t\t\tresult[key] = has(options, key) ? options[key] : defaults[key];\n\t\t}\n\t\treturn result;\n\t};\n\n\t// Modified version of `ucs2encode`; see https://mths.be/punycode.\n\tvar codePointToSymbol = function(codePoint, strict) {\n\t\tvar output = '';\n\t\tif ((codePoint >= 0xD800 && codePoint <= 0xDFFF) || codePoint > 0x10FFFF) {\n\t\t\t// See issue #4:\n\t\t\t// “Otherwise, if the number is in the range 0xD800 to 0xDFFF or is\n\t\t\t// greater than 0x10FFFF, then this is a parse error. Return a U+FFFD\n\t\t\t// REPLACEMENT CHARACTER.”\n\t\t\tif (strict) {\n\t\t\t\tparseError('character reference outside the permissible Unicode range');\n\t\t\t}\n\t\t\treturn '\\uFFFD';\n\t\t}\n\t\tif (has(decodeMapNumeric, codePoint)) {\n\t\t\tif (strict) {\n\t\t\t\tparseError('disallowed character reference');\n\t\t\t}\n\t\t\treturn decodeMapNumeric[codePoint];\n\t\t}\n\t\tif (strict && contains(invalidReferenceCodePoints, codePoint)) {\n\t\t\tparseError('disallowed character reference');\n\t\t}\n\t\tif (codePoint > 0xFFFF) {\n\t\t\tcodePoint -= 0x10000;\n\t\t\toutput += stringFromCharCode(codePoint >>> 10 & 0x3FF | 0xD800);\n\t\t\tcodePoint = 0xDC00 | codePoint & 0x3FF;\n\t\t}\n\t\toutput += stringFromCharCode(codePoint);\n\t\treturn output;\n\t};\n\n\tvar hexEscape = function(codePoint) {\n\t\treturn '&#x' + codePoint.toString(16).toUpperCase() + ';';\n\t};\n\n\tvar decEscape = function(codePoint) {\n\t\treturn '&#' + codePoint + ';';\n\t};\n\n\tvar parseError = function(message) {\n\t\tthrow Error('Parse error: ' + message);\n\t};\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar encode = function(string, options) {\n\t\toptions = merge(options, encode.options);\n\t\tvar strict = options.strict;\n\t\tif (strict && regexInvalidRawCodePoint.test(string)) {\n\t\t\tparseError('forbidden code point');\n\t\t}\n\t\tvar encodeEverything = options.encodeEverything;\n\t\tvar useNamedReferences = options.useNamedReferences;\n\t\tvar allowUnsafeSymbols = options.allowUnsafeSymbols;\n\t\tvar escapeCodePoint = options.decimal ? decEscape : hexEscape;\n\n\t\tvar escapeBmpSymbol = function(symbol) {\n\t\t\treturn escapeCodePoint(symbol.charCodeAt(0));\n\t\t};\n\n\t\tif (encodeEverything) {\n\t\t\t// Encode ASCII symbols.\n\t\t\tstring = string.replace(regexAsciiWhitelist, function(symbol) {\n\t\t\t\t// Use named references if requested & possible.\n\t\t\t\tif (useNamedReferences && has(encodeMap, symbol)) {\n\t\t\t\t\treturn '&' + encodeMap[symbol] + ';';\n\t\t\t\t}\n\t\t\t\treturn escapeBmpSymbol(symbol);\n\t\t\t});\n\t\t\t// Shorten a few escapes that represent two symbols, of which at least one\n\t\t\t// is within the ASCII range.\n\t\t\tif (useNamedReferences) {\n\t\t\t\tstring = string\n\t\t\t\t\t.replace(/>\\u20D2/g, '>⃒')\n\t\t\t\t\t.replace(/<\\u20D2/g, '<⃒')\n\t\t\t\t\t.replace(/fj/g, 'fj');\n\t\t\t}\n\t\t\t// Encode non-ASCII symbols.\n\t\t\tif (useNamedReferences) {\n\t\t\t\t// Encode non-ASCII symbols that can be replaced with a named reference.\n\t\t\t\tstring = string.replace(regexEncodeNonAscii, function(string) {\n\t\t\t\t\t// Note: there is no need to check `has(encodeMap, string)` here.\n\t\t\t\t\treturn '&' + encodeMap[string] + ';';\n\t\t\t\t});\n\t\t\t}\n\t\t\t// Note: any remaining non-ASCII symbols are handled outside of the `if`.\n\t\t} else if (useNamedReferences) {\n\t\t\t// Apply named character references.\n\t\t\t// Encode `<>\"'&` using named character references.\n\t\t\tif (!allowUnsafeSymbols) {\n\t\t\t\tstring = string.replace(regexEscape, function(string) {\n\t\t\t\t\treturn '&' + encodeMap[string] + ';'; // no need to check `has()` here\n\t\t\t\t});\n\t\t\t}\n\t\t\t// Shorten escapes that represent two symbols, of which at least one is\n\t\t\t// `<>\"'&`.\n\t\t\tstring = string\n\t\t\t\t.replace(/>\\u20D2/g, '>⃒')\n\t\t\t\t.replace(/<\\u20D2/g, '<⃒');\n\t\t\t// Encode non-ASCII symbols that can be replaced with a named reference.\n\t\t\tstring = string.replace(regexEncodeNonAscii, function(string) {\n\t\t\t\t// Note: there is no need to check `has(encodeMap, string)` here.\n\t\t\t\treturn '&' + encodeMap[string] + ';';\n\t\t\t});\n\t\t} else if (!allowUnsafeSymbols) {\n\t\t\t// Encode `<>\"'&` using hexadecimal escapes, now that they’re not handled\n\t\t\t// using named character references.\n\t\t\tstring = string.replace(regexEscape, escapeBmpSymbol);\n\t\t}\n\t\treturn string\n\t\t\t// Encode astral symbols.\n\t\t\t.replace(regexAstralSymbols, function($0) {\n\t\t\t\t// https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n\t\t\t\tvar high = $0.charCodeAt(0);\n\t\t\t\tvar low = $0.charCodeAt(1);\n\t\t\t\tvar codePoint = (high - 0xD800) * 0x400 + low - 0xDC00 + 0x10000;\n\t\t\t\treturn escapeCodePoint(codePoint);\n\t\t\t})\n\t\t\t// Encode any remaining BMP symbols that are not printable ASCII symbols\n\t\t\t// using a hexadecimal escape.\n\t\t\t.replace(regexBmpWhitelist, escapeBmpSymbol);\n\t};\n\t// Expose default options (so they can be overridden globally).\n\tencode.options = {\n\t\t'allowUnsafeSymbols': false,\n\t\t'encodeEverything': false,\n\t\t'strict': false,\n\t\t'useNamedReferences': false,\n\t\t'decimal' : false\n\t};\n\n\tvar decode = function(html, options) {\n\t\toptions = merge(options, decode.options);\n\t\tvar strict = options.strict;\n\t\tif (strict && regexInvalidEntity.test(html)) {\n\t\t\tparseError('malformed character reference');\n\t\t}\n\t\treturn html.replace(regexDecode, function($0, $1, $2, $3, $4, $5, $6, $7, $8) {\n\t\t\tvar codePoint;\n\t\t\tvar semicolon;\n\t\t\tvar decDigits;\n\t\t\tvar hexDigits;\n\t\t\tvar reference;\n\t\t\tvar next;\n\n\t\t\tif ($1) {\n\t\t\t\treference = $1;\n\t\t\t\t// Note: there is no need to check `has(decodeMap, reference)`.\n\t\t\t\treturn decodeMap[reference];\n\t\t\t}\n\n\t\t\tif ($2) {\n\t\t\t\t// Decode named character references without trailing `;`, e.g. `&`.\n\t\t\t\t// This is only a parse error if it gets converted to `&`, or if it is\n\t\t\t\t// followed by `=` in an attribute context.\n\t\t\t\treference = $2;\n\t\t\t\tnext = $3;\n\t\t\t\tif (next && options.isAttributeValue) {\n\t\t\t\t\tif (strict && next == '=') {\n\t\t\t\t\t\tparseError('`&` did not start a character reference');\n\t\t\t\t\t}\n\t\t\t\t\treturn $0;\n\t\t\t\t} else {\n\t\t\t\t\tif (strict) {\n\t\t\t\t\t\tparseError(\n\t\t\t\t\t\t\t'named character reference was not terminated by a semicolon'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\t// Note: there is no need to check `has(decodeMapLegacy, reference)`.\n\t\t\t\t\treturn decodeMapLegacy[reference] + (next || '');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($4) {\n\t\t\t\t// Decode decimal escapes, e.g. `𝌆`.\n\t\t\t\tdecDigits = $4;\n\t\t\t\tsemicolon = $5;\n\t\t\t\tif (strict && !semicolon) {\n\t\t\t\t\tparseError('character reference was not terminated by a semicolon');\n\t\t\t\t}\n\t\t\t\tcodePoint = parseInt(decDigits, 10);\n\t\t\t\treturn codePointToSymbol(codePoint, strict);\n\t\t\t}\n\n\t\t\tif ($6) {\n\t\t\t\t// Decode hexadecimal escapes, e.g. `𝌆`.\n\t\t\t\thexDigits = $6;\n\t\t\t\tsemicolon = $7;\n\t\t\t\tif (strict && !semicolon) {\n\t\t\t\t\tparseError('character reference was not terminated by a semicolon');\n\t\t\t\t}\n\t\t\t\tcodePoint = parseInt(hexDigits, 16);\n\t\t\t\treturn codePointToSymbol(codePoint, strict);\n\t\t\t}\n\n\t\t\t// If we’re still here, `if ($7)` is implied; it’s an ambiguous\n\t\t\t// ampersand for sure. https://mths.be/notes/ambiguous-ampersands\n\t\t\tif (strict) {\n\t\t\t\tparseError(\n\t\t\t\t\t'named character reference was not terminated by a semicolon'\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn $0;\n\t\t});\n\t};\n\t// Expose default options (so they can be overridden globally).\n\tdecode.options = {\n\t\t'isAttributeValue': false,\n\t\t'strict': false\n\t};\n\n\tvar escape = function(string) {\n\t\treturn string.replace(regexEscape, function($0) {\n\t\t\t// Note: there is no need to check `has(escapeMap, $0)` here.\n\t\t\treturn escapeMap[$0];\n\t\t});\n\t};\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar he = {\n\t\t'version': '1.2.0',\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'escape': escape,\n\t\t'unescape': decode\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn he;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js, io.js, or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = he;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in he) {\n\t\t\t\thas(he, key) && (freeExports[key] = he[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.he = he;\n\t}\n\n}(this));\n","'use strict';\n\n/**\n * Various utility functions used throughout Mocha's codebase.\n * @module utils\n */\n\n/**\n * Module dependencies.\n */\n\nconst {nanoid} = require('nanoid/non-secure');\nvar path = require('path');\nvar util = require('util');\nvar he = require('he');\n\nconst MOCHA_ID_PROP_NAME = '__mocha_id__';\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * @param {function} ctor - Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor - Constructor function to inherit prototype from.\n * @throws {TypeError} if either constructor is null, or if super constructor\n * lacks a prototype.\n */\nexports.inherits = util.inherits;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @private\n * @param {string} html\n * @return {string}\n */\nexports.escape = function (html) {\n return he.encode(String(html), {useNamedReferences: false});\n};\n\n/**\n * Test if the given obj is type of string.\n *\n * @private\n * @param {Object} obj\n * @return {boolean}\n */\nexports.isString = function (obj) {\n return typeof obj === 'string';\n};\n\n/**\n * Compute a slug from the given `str`.\n *\n * @private\n * @param {string} str\n * @return {string}\n */\nexports.slug = function (str) {\n return str\n .toLowerCase()\n .replace(/\\s+/g, '-')\n .replace(/[^-\\w]/g, '')\n .replace(/-{2,}/g, '-');\n};\n\n/**\n * Strip the function definition from `str`, and re-indent for pre whitespace.\n *\n * @param {string} str\n * @return {string}\n */\nexports.clean = function (str) {\n str = str\n .replace(/\\r\\n?|[\\n\\u2028\\u2029]/g, '\\n')\n .replace(/^\\uFEFF/, '')\n // (traditional)-> space/name parameters body (lambda)-> parameters body multi-statement/single keep body content\n .replace(\n /^function(?:\\s*|\\s+[^(]*)\\([^)]*\\)\\s*\\{((?:.|\\n)*?)\\s*\\}$|^\\([^)]*\\)\\s*=>\\s*(?:\\{((?:.|\\n)*?)\\s*\\}|((?:.|\\n)*))$/,\n '$1$2$3'\n );\n\n var spaces = str.match(/^\\n?( *)/)[1].length;\n var tabs = str.match(/^\\n?(\\t*)/)[1].length;\n var re = new RegExp(\n '^\\n?' + (tabs ? '\\t' : ' ') + '{' + (tabs || spaces) + '}',\n 'gm'\n );\n\n str = str.replace(re, '');\n\n return str.trim();\n};\n\n/**\n * If a value could have properties, and has none, this function is called,\n * which returns a string representation of the empty value.\n *\n * Functions w/ no properties return `'[Function]'`\n * Arrays w/ length === 0 return `'[]'`\n * Objects w/ no properties return `'{}'`\n * All else: return result of `value.toString()`\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} typeHint The type of the value\n * @returns {string}\n */\nfunction emptyRepresentation(value, typeHint) {\n switch (typeHint) {\n case 'function':\n return '[Function]';\n case 'object':\n return '{}';\n case 'array':\n return '[]';\n default:\n return value.toString();\n }\n}\n\n/**\n * Takes some variable and asks `Object.prototype.toString()` what it thinks it\n * is.\n *\n * @private\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString\n * @param {*} value The value to test.\n * @returns {string} Computed type\n * @example\n * canonicalType({}) // 'object'\n * canonicalType([]) // 'array'\n * canonicalType(1) // 'number'\n * canonicalType(false) // 'boolean'\n * canonicalType(Infinity) // 'number'\n * canonicalType(null) // 'null'\n * canonicalType(new Date()) // 'date'\n * canonicalType(/foo/) // 'regexp'\n * canonicalType('type') // 'string'\n * canonicalType(global) // 'global'\n * canonicalType(new String('foo') // 'object'\n * canonicalType(async function() {}) // 'asyncfunction'\n * canonicalType(await import(name)) // 'module'\n */\nvar canonicalType = (exports.canonicalType = function canonicalType(value) {\n if (value === undefined) {\n return 'undefined';\n } else if (value === null) {\n return 'null';\n } else if (Buffer.isBuffer(value)) {\n return 'buffer';\n }\n return Object.prototype.toString\n .call(value)\n .replace(/^\\[.+\\s(.+?)]$/, '$1')\n .toLowerCase();\n});\n\n/**\n *\n * Returns a general type or data structure of a variable\n * @private\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures\n * @param {*} value The value to test.\n * @returns {string} One of undefined, boolean, number, string, bigint, symbol, object\n * @example\n * type({}) // 'object'\n * type([]) // 'array'\n * type(1) // 'number'\n * type(false) // 'boolean'\n * type(Infinity) // 'number'\n * type(null) // 'null'\n * type(new Date()) // 'object'\n * type(/foo/) // 'object'\n * type('type') // 'string'\n * type(global) // 'object'\n * type(new String('foo') // 'string'\n */\nexports.type = function type(value) {\n // Null is special\n if (value === null) return 'null';\n const primitives = new Set([\n 'undefined',\n 'boolean',\n 'number',\n 'string',\n 'bigint',\n 'symbol'\n ]);\n const _type = typeof value;\n if (_type === 'function') return _type;\n if (primitives.has(_type)) return _type;\n if (value instanceof String) return 'string';\n if (value instanceof Error) return 'error';\n if (Array.isArray(value)) return 'array';\n\n return _type;\n};\n\n/**\n * Stringify `value`. Different behavior depending on type of value:\n *\n * - If `value` is undefined or null, return `'[undefined]'` or `'[null]'`, respectively.\n * - If `value` is not an object, function or array, return result of `value.toString()` wrapped in double-quotes.\n * - If `value` is an *empty* object, function, or array, return result of function\n * {@link emptyRepresentation}.\n * - If `value` has properties, call {@link exports.canonicalize} on it, then return result of\n * JSON.stringify().\n *\n * @private\n * @see exports.type\n * @param {*} value\n * @return {string}\n */\nexports.stringify = function (value) {\n var typeHint = canonicalType(value);\n\n if (!~['object', 'array', 'function'].indexOf(typeHint)) {\n if (typeHint === 'buffer') {\n var json = Buffer.prototype.toJSON.call(value);\n // Based on the toJSON result\n return jsonStringify(\n json.data && json.type ? json.data : json,\n 2\n ).replace(/,(\\n|$)/g, '$1');\n }\n\n // IE7/IE8 has a bizarre String constructor; needs to be coerced\n // into an array and back to obj.\n if (typeHint === 'string' && typeof value === 'object') {\n value = value.split('').reduce(function (acc, char, idx) {\n acc[idx] = char;\n return acc;\n }, {});\n typeHint = 'object';\n } else {\n return jsonStringify(value);\n }\n }\n\n for (var prop in value) {\n if (Object.prototype.hasOwnProperty.call(value, prop)) {\n return jsonStringify(\n exports.canonicalize(value, null, typeHint),\n 2\n ).replace(/,(\\n|$)/g, '$1');\n }\n }\n\n return emptyRepresentation(value, typeHint);\n};\n\n/**\n * like JSON.stringify but more sense.\n *\n * @private\n * @param {Object} object\n * @param {number=} spaces\n * @param {number=} depth\n * @returns {*}\n */\nfunction jsonStringify(object, spaces, depth) {\n if (typeof spaces === 'undefined') {\n // primitive types\n return _stringify(object);\n }\n\n depth = depth || 1;\n var space = spaces * depth;\n var str = Array.isArray(object) ? '[' : '{';\n var end = Array.isArray(object) ? ']' : '}';\n var length =\n typeof object.length === 'number'\n ? object.length\n : Object.keys(object).length;\n // `.repeat()` polyfill\n function repeat(s, n) {\n return new Array(n).join(s);\n }\n\n function _stringify(val) {\n switch (canonicalType(val)) {\n case 'null':\n case 'undefined':\n val = '[' + val + ']';\n break;\n case 'array':\n case 'object':\n val = jsonStringify(val, spaces, depth + 1);\n break;\n case 'boolean':\n case 'regexp':\n case 'symbol':\n case 'number':\n val =\n val === 0 && 1 / val === -Infinity // `-0`\n ? '-0'\n : val.toString();\n break;\n case 'bigint':\n val = val.toString() + 'n';\n break;\n case 'date':\n var sDate = isNaN(val.getTime()) ? val.toString() : val.toISOString();\n val = '[Date: ' + sDate + ']';\n break;\n case 'buffer':\n var json = val.toJSON();\n // Based on the toJSON result\n json = json.data && json.type ? json.data : json;\n val = '[Buffer: ' + jsonStringify(json, 2, depth + 1) + ']';\n break;\n default:\n val =\n val === '[Function]' || val === '[Circular]'\n ? val\n : JSON.stringify(val); // string\n }\n return val;\n }\n\n for (var i in object) {\n if (!Object.prototype.hasOwnProperty.call(object, i)) {\n continue; // not my business\n }\n --length;\n str +=\n '\\n ' +\n repeat(' ', space) +\n (Array.isArray(object) ? '' : '\"' + i + '\": ') + // key\n _stringify(object[i]) + // value\n (length ? ',' : ''); // comma\n }\n\n return (\n str +\n // [], {}\n (str.length !== 1 ? '\\n' + repeat(' ', --space) + end : end)\n );\n}\n\n/**\n * Return a new Thing that has the keys in sorted order. Recursive.\n *\n * If the Thing...\n * - has already been seen, return string `'[Circular]'`\n * - is `undefined`, return string `'[undefined]'`\n * - is `null`, return value `null`\n * - is some other primitive, return the value\n * - is not a primitive or an `Array`, `Object`, or `Function`, return the value of the Thing's `toString()` method\n * - is a non-empty `Array`, `Object`, or `Function`, return the result of calling this function again.\n * - is an empty `Array`, `Object`, or `Function`, return the result of calling `emptyRepresentation()`\n *\n * @private\n * @see {@link exports.stringify}\n * @param {*} value Thing to inspect. May or may not have properties.\n * @param {Array} [stack=[]] Stack of seen values\n * @param {string} [typeHint] Type hint\n * @return {(Object|Array|Function|string|undefined)}\n */\nexports.canonicalize = function canonicalize(value, stack, typeHint) {\n var canonicalizedObj;\n /* eslint-disable no-unused-vars */\n var prop;\n /* eslint-enable no-unused-vars */\n typeHint = typeHint || canonicalType(value);\n function withStack(value, fn) {\n stack.push(value);\n fn();\n stack.pop();\n }\n\n stack = stack || [];\n\n if (stack.indexOf(value) !== -1) {\n return '[Circular]';\n }\n\n switch (typeHint) {\n case 'undefined':\n case 'buffer':\n case 'null':\n canonicalizedObj = value;\n break;\n case 'array':\n withStack(value, function () {\n canonicalizedObj = value.map(function (item) {\n return exports.canonicalize(item, stack);\n });\n });\n break;\n case 'function':\n /* eslint-disable-next-line no-unused-vars, no-unreachable-loop */\n for (prop in value) {\n canonicalizedObj = {};\n break;\n }\n /* eslint-enable guard-for-in */\n if (!canonicalizedObj) {\n canonicalizedObj = emptyRepresentation(value, typeHint);\n break;\n }\n /* falls through */\n case 'object':\n canonicalizedObj = canonicalizedObj || {};\n withStack(value, function () {\n Object.keys(value)\n .sort()\n .forEach(function (key) {\n canonicalizedObj[key] = exports.canonicalize(value[key], stack);\n });\n });\n break;\n case 'date':\n case 'number':\n case 'regexp':\n case 'boolean':\n case 'symbol':\n canonicalizedObj = value;\n break;\n default:\n canonicalizedObj = value + '';\n }\n\n return canonicalizedObj;\n};\n\n/**\n * @summary\n * This Filter based on `mocha-clean` module.(see: `github.com/rstacruz/mocha-clean`)\n * @description\n * When invoking this function you get a filter function that get the Error.stack as an input,\n * and return a prettify output.\n * (i.e: strip Mocha and internal node functions from stack trace).\n * @returns {Function}\n */\nexports.stackTraceFilter = function () {\n // TODO: Replace with `process.browser`\n var is = typeof document === 'undefined' ? {node: true} : {browser: true};\n var slash = path.sep;\n var cwd;\n if (is.node) {\n cwd = exports.cwd() + slash;\n } else {\n cwd = (\n typeof location === 'undefined' ? window.location : location\n ).href.replace(/\\/[^/]*$/, '/');\n slash = '/';\n }\n\n function isMochaInternal(line) {\n return (\n ~line.indexOf('node_modules' + slash + 'mocha' + slash) ||\n ~line.indexOf(slash + 'mocha.js') ||\n ~line.indexOf(slash + 'mocha.min.js')\n );\n }\n\n function isNodeInternal(line) {\n return (\n ~line.indexOf('(timers.js:') ||\n ~line.indexOf('(events.js:') ||\n ~line.indexOf('(node.js:') ||\n ~line.indexOf('(module.js:') ||\n ~line.indexOf('GeneratorFunctionPrototype.next (native)') ||\n false\n );\n }\n\n return function (stack) {\n stack = stack.split('\\n');\n\n stack = stack.reduce(function (list, line) {\n if (isMochaInternal(line)) {\n return list;\n }\n\n if (is.node && isNodeInternal(line)) {\n return list;\n }\n\n // Clean up cwd(absolute)\n if (/:\\d+:\\d+\\)?$/.test(line)) {\n line = line.replace('(' + cwd, '(');\n }\n\n list.push(line);\n return list;\n }, []);\n\n return stack.join('\\n');\n };\n};\n\n/**\n * Crude, but effective.\n * @public\n * @param {*} value\n * @returns {boolean} Whether or not `value` is a Promise\n */\nexports.isPromise = function isPromise(value) {\n return (\n typeof value === 'object' &&\n value !== null &&\n typeof value.then === 'function'\n );\n};\n\n/**\n * Clamps a numeric value to an inclusive range.\n *\n * @param {number} value - Value to be clamped.\n * @param {number[]} range - Two element array specifying [min, max] range.\n * @returns {number} clamped value\n */\nexports.clamp = function clamp(value, range) {\n return Math.min(Math.max(value, range[0]), range[1]);\n};\n\n/**\n * It's a noop.\n * @public\n */\nexports.noop = function () {};\n\n/**\n * Creates a map-like object.\n *\n * @description\n * A \"map\" is an object with no prototype, for our purposes. In some cases\n * this would be more appropriate than a `Map`, especially if your environment\n * doesn't support it. Recommended for use in Mocha's public APIs.\n *\n * @public\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map#Custom_and_Null_objects|MDN:Map}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create#Custom_and_Null_objects|MDN:Object.create - Custom objects}\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Custom_and_Null_objects|MDN:Object.assign}\n * @param {...*} [obj] - Arguments to `Object.assign()`.\n * @returns {Object} An object with no prototype, having `...obj` properties\n */\nexports.createMap = function (obj) {\n return Object.assign.apply(\n null,\n [Object.create(null)].concat(Array.prototype.slice.call(arguments))\n );\n};\n\n/**\n * Creates a read-only map-like object.\n *\n * @description\n * This differs from {@link module:utils.createMap createMap} only in that\n * the argument must be non-empty, because the result is frozen.\n *\n * @see {@link module:utils.createMap createMap}\n * @param {...*} [obj] - Arguments to `Object.assign()`.\n * @returns {Object} A frozen object with no prototype, having `...obj` properties\n * @throws {TypeError} if argument is not a non-empty object.\n */\nexports.defineConstants = function (obj) {\n if (canonicalType(obj) !== 'object' || !Object.keys(obj).length) {\n throw new TypeError('Invalid argument; expected a non-empty object');\n }\n return Object.freeze(exports.createMap(obj));\n};\n\n/**\n * Returns current working directory\n *\n * Wrapper around `process.cwd()` for isolation\n * @private\n */\nexports.cwd = function cwd() {\n return process.cwd();\n};\n\n/**\n * Returns `true` if Mocha is running in a browser.\n * Checks for `process.browser`.\n * @returns {boolean}\n * @private\n */\nexports.isBrowser = function isBrowser() {\n return Boolean(process.browser);\n};\n\n/*\n * Casts `value` to an array; useful for optionally accepting array parameters\n *\n * It follows these rules, depending on `value`. If `value` is...\n * 1. `undefined`: return an empty Array\n * 2. `null`: return an array with a single `null` element\n * 3. Any other object: return the value of `Array.from()` _if_ the object is iterable\n * 4. otherwise: return an array with a single element, `value`\n * @param {*} value - Something to cast to an Array\n * @returns {Array<*>}\n */\nexports.castArray = function castArray(value) {\n if (value === undefined) {\n return [];\n }\n if (value === null) {\n return [null];\n }\n if (\n typeof value === 'object' &&\n (typeof value[Symbol.iterator] === 'function' || value.length !== undefined)\n ) {\n return Array.from(value);\n }\n return [value];\n};\n\nexports.constants = exports.defineConstants({\n MOCHA_ID_PROP_NAME\n});\n\n/**\n * Creates a new unique identifier\n * @returns {string} Unique identifier\n */\nexports.uniqueID = () => nanoid();\n\nexports.assignNewMochaID = obj => {\n const id = exports.uniqueID();\n Object.defineProperty(obj, MOCHA_ID_PROP_NAME, {\n get() {\n return id;\n }\n });\n return obj;\n};\n\n/**\n * Retrieves a Mocha ID from an object, if present.\n * @param {*} [obj] - Object\n * @returns {string|void}\n */\nexports.getMochaID = obj =>\n obj && typeof obj === 'object' ? obj[MOCHA_ID_PROP_NAME] : undefined;\n","'use strict';\n\nmodule.exports = {\n\tinfo: 'ℹ️',\n\tsuccess: '✅',\n\twarning: '⚠️',\n\terror: '❌️'\n};\n","'use strict';\n\n/**\n @module Pending\n*/\n\nmodule.exports = Pending;\n\n/**\n * Initialize a new `Pending` error with the given message.\n *\n * @param {string} message\n */\nfunction Pending(message) {\n this.message = message;\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","'use strict';\n\nconst {format} = require('util');\n\n/**\n * Contains error codes, factory functions to create throwable error objects,\n * and warning/deprecation functions.\n * @module\n */\n\n/**\n * process.emitWarning or a polyfill\n * @see https://nodejs.org/api/process.html#process_process_emitwarning_warning_options\n * @ignore\n */\nconst emitWarning = (msg, type) => {\n if (process.emitWarning) {\n process.emitWarning(msg, type);\n } else {\n /* istanbul ignore next */\n process.nextTick(function () {\n console.warn(type + ': ' + msg);\n });\n }\n};\n\n/**\n * Show a deprecation warning. Each distinct message is only displayed once.\n * Ignores empty messages.\n *\n * @param {string} [msg] - Warning to print\n * @private\n */\nconst deprecate = msg => {\n msg = String(msg);\n if (msg && !deprecate.cache[msg]) {\n deprecate.cache[msg] = true;\n emitWarning(msg, 'DeprecationWarning');\n }\n};\ndeprecate.cache = {};\n\n/**\n * Show a generic warning.\n * Ignores empty messages.\n *\n * @param {string} [msg] - Warning to print\n * @private\n */\nconst warn = msg => {\n if (msg) {\n emitWarning(msg);\n }\n};\n\n/**\n * When Mocha throws exceptions (or rejects `Promise`s), it attempts to assign a `code` property to the `Error` object, for easier handling. These are the potential values of `code`.\n * @public\n * @namespace\n * @memberof module:lib/errors\n */\nvar constants = {\n /**\n * An unrecoverable error.\n * @constant\n * @default\n */\n FATAL: 'ERR_MOCHA_FATAL',\n\n /**\n * The type of an argument to a function call is invalid\n * @constant\n * @default\n */\n INVALID_ARG_TYPE: 'ERR_MOCHA_INVALID_ARG_TYPE',\n\n /**\n * The value of an argument to a function call is invalid\n * @constant\n * @default\n */\n INVALID_ARG_VALUE: 'ERR_MOCHA_INVALID_ARG_VALUE',\n\n /**\n * Something was thrown, but it wasn't an `Error`\n * @constant\n * @default\n */\n INVALID_EXCEPTION: 'ERR_MOCHA_INVALID_EXCEPTION',\n\n /**\n * An interface (e.g., `Mocha.interfaces`) is unknown or invalid\n * @constant\n * @default\n */\n INVALID_INTERFACE: 'ERR_MOCHA_INVALID_INTERFACE',\n\n /**\n * A reporter (.e.g, `Mocha.reporters`) is unknown or invalid\n * @constant\n * @default\n */\n INVALID_REPORTER: 'ERR_MOCHA_INVALID_REPORTER',\n\n /**\n * `done()` was called twice in a `Test` or `Hook` callback\n * @constant\n * @default\n */\n MULTIPLE_DONE: 'ERR_MOCHA_MULTIPLE_DONE',\n\n /**\n * No files matched the pattern provided by the user\n * @constant\n * @default\n */\n NO_FILES_MATCH_PATTERN: 'ERR_MOCHA_NO_FILES_MATCH_PATTERN',\n\n /**\n * Known, but unsupported behavior of some kind\n * @constant\n * @default\n */\n UNSUPPORTED: 'ERR_MOCHA_UNSUPPORTED',\n\n /**\n * Invalid state transition occurring in `Mocha` instance\n * @constant\n * @default\n */\n INSTANCE_ALREADY_RUNNING: 'ERR_MOCHA_INSTANCE_ALREADY_RUNNING',\n\n /**\n * Invalid state transition occurring in `Mocha` instance\n * @constant\n * @default\n */\n INSTANCE_ALREADY_DISPOSED: 'ERR_MOCHA_INSTANCE_ALREADY_DISPOSED',\n\n /**\n * Use of `only()` w/ `--forbid-only` results in this error.\n * @constant\n * @default\n */\n FORBIDDEN_EXCLUSIVITY: 'ERR_MOCHA_FORBIDDEN_EXCLUSIVITY',\n\n /**\n * To be thrown when a user-defined plugin implementation (e.g., `mochaHooks`) is invalid\n * @constant\n * @default\n */\n INVALID_PLUGIN_IMPLEMENTATION: 'ERR_MOCHA_INVALID_PLUGIN_IMPLEMENTATION',\n\n /**\n * To be thrown when a builtin or third-party plugin definition (the _definition_ of `mochaHooks`) is invalid\n * @constant\n * @default\n */\n INVALID_PLUGIN_DEFINITION: 'ERR_MOCHA_INVALID_PLUGIN_DEFINITION',\n\n /**\n * When a runnable exceeds its allowed run time.\n * @constant\n * @default\n */\n TIMEOUT: 'ERR_MOCHA_TIMEOUT',\n\n /**\n * Input file is not able to be parsed\n * @constant\n * @default\n */\n UNPARSABLE_FILE: 'ERR_MOCHA_UNPARSABLE_FILE'\n};\n\n/**\n * A set containing all string values of all Mocha error constants, for use by {@link isMochaError}.\n * @private\n */\nconst MOCHA_ERRORS = new Set(Object.values(constants));\n\n/**\n * Creates an error object to be thrown when no files to be tested could be found using specified pattern.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} pattern - User-specified argument value.\n * @returns {Error} instance detailing the error condition\n */\nfunction createNoFilesMatchPatternError(message, pattern) {\n var err = new Error(message);\n err.code = constants.NO_FILES_MATCH_PATTERN;\n err.pattern = pattern;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when the reporter specified in the options was not found.\n *\n * @public\n * @param {string} message - Error message to be displayed.\n * @param {string} reporter - User-specified reporter value.\n * @returns {Error} instance detailing the error condition\n */\nfunction createInvalidReporterError(message, reporter) {\n var err = new TypeError(message);\n err.code = constants.INVALID_REPORTER;\n err.reporter = reporter;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when the interface specified in the options was not found.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} ui - User-specified interface value.\n * @returns {Error} instance detailing the error condition\n */\nfunction createInvalidInterfaceError(message, ui) {\n var err = new Error(message);\n err.code = constants.INVALID_INTERFACE;\n err.interface = ui;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when a behavior, option, or parameter is unsupported.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @returns {Error} instance detailing the error condition\n */\nfunction createUnsupportedError(message) {\n var err = new Error(message);\n err.code = constants.UNSUPPORTED;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when an argument is missing.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} argument - Argument name.\n * @param {string} expected - Expected argument datatype.\n * @returns {Error} instance detailing the error condition\n */\nfunction createMissingArgumentError(message, argument, expected) {\n return createInvalidArgumentTypeError(message, argument, expected);\n}\n\n/**\n * Creates an error object to be thrown when an argument did not use the supported type\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} argument - Argument name.\n * @param {string} expected - Expected argument datatype.\n * @returns {Error} instance detailing the error condition\n */\nfunction createInvalidArgumentTypeError(message, argument, expected) {\n var err = new TypeError(message);\n err.code = constants.INVALID_ARG_TYPE;\n err.argument = argument;\n err.expected = expected;\n err.actual = typeof argument;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when an argument did not use the supported value\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} argument - Argument name.\n * @param {string} value - Argument value.\n * @param {string} [reason] - Why value is invalid.\n * @returns {Error} instance detailing the error condition\n */\nfunction createInvalidArgumentValueError(message, argument, value, reason) {\n var err = new TypeError(message);\n err.code = constants.INVALID_ARG_VALUE;\n err.argument = argument;\n err.value = value;\n err.reason = typeof reason !== 'undefined' ? reason : 'is invalid';\n return err;\n}\n\n/**\n * Creates an error object to be thrown when an exception was caught, but the `Error` is falsy or undefined.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @returns {Error} instance detailing the error condition\n */\nfunction createInvalidExceptionError(message, value) {\n var err = new Error(message);\n err.code = constants.INVALID_EXCEPTION;\n err.valueType = typeof value;\n err.value = value;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when an unrecoverable error occurs.\n *\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @returns {Error} instance detailing the error condition\n */\nfunction createFatalError(message, value) {\n var err = new Error(message);\n err.code = constants.FATAL;\n err.valueType = typeof value;\n err.value = value;\n return err;\n}\n\n/**\n * Dynamically creates a plugin-type-specific error based on plugin type\n * @param {string} message - Error message\n * @param {\"reporter\"|\"ui\"} pluginType - Plugin type. Future: expand as needed\n * @param {string} [pluginId] - Name/path of plugin, if any\n * @throws When `pluginType` is not known\n * @public\n * @static\n * @returns {Error}\n */\nfunction createInvalidLegacyPluginError(message, pluginType, pluginId) {\n switch (pluginType) {\n case 'reporter':\n return createInvalidReporterError(message, pluginId);\n case 'ui':\n return createInvalidInterfaceError(message, pluginId);\n default:\n throw new Error('unknown pluginType \"' + pluginType + '\"');\n }\n}\n\n/**\n * **DEPRECATED**. Use {@link createInvalidLegacyPluginError} instead Dynamically creates a plugin-type-specific error based on plugin type\n * @deprecated\n * @param {string} message - Error message\n * @param {\"reporter\"|\"interface\"} pluginType - Plugin type. Future: expand as needed\n * @param {string} [pluginId] - Name/path of plugin, if any\n * @throws When `pluginType` is not known\n * @public\n * @static\n * @returns {Error}\n */\nfunction createInvalidPluginError(...args) {\n deprecate('Use createInvalidLegacyPluginError() instead');\n return createInvalidLegacyPluginError(...args);\n}\n\n/**\n * Creates an error object to be thrown when a mocha object's `run` method is executed while it is already disposed.\n * @param {string} message The error message to be displayed.\n * @param {boolean} cleanReferencesAfterRun the value of `cleanReferencesAfterRun`\n * @param {Mocha} instance the mocha instance that throw this error\n * @static\n */\nfunction createMochaInstanceAlreadyDisposedError(\n message,\n cleanReferencesAfterRun,\n instance\n) {\n var err = new Error(message);\n err.code = constants.INSTANCE_ALREADY_DISPOSED;\n err.cleanReferencesAfterRun = cleanReferencesAfterRun;\n err.instance = instance;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when a mocha object's `run` method is called while a test run is in progress.\n * @param {string} message The error message to be displayed.\n * @static\n * @public\n */\nfunction createMochaInstanceAlreadyRunningError(message, instance) {\n var err = new Error(message);\n err.code = constants.INSTANCE_ALREADY_RUNNING;\n err.instance = instance;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when done() is called multiple times in a test\n *\n * @public\n * @param {Runnable} runnable - Original runnable\n * @param {Error} [originalErr] - Original error, if any\n * @returns {Error} instance detailing the error condition\n * @static\n */\nfunction createMultipleDoneError(runnable, originalErr) {\n var title;\n try {\n title = format('<%s>', runnable.fullTitle());\n if (runnable.parent.root) {\n title += ' (of root suite)';\n }\n } catch (ignored) {\n title = format('<%s> (of unknown suite)', runnable.title);\n }\n var message = format(\n 'done() called multiple times in %s %s',\n runnable.type ? runnable.type : 'unknown runnable',\n title\n );\n if (runnable.file) {\n message += format(' of file %s', runnable.file);\n }\n if (originalErr) {\n message += format('; in addition, done() received error: %s', originalErr);\n }\n\n var err = new Error(message);\n err.code = constants.MULTIPLE_DONE;\n err.valueType = typeof originalErr;\n err.value = originalErr;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when `.only()` is used with\n * `--forbid-only`.\n * @static\n * @public\n * @param {Mocha} mocha - Mocha instance\n * @returns {Error} Error with code {@link constants.FORBIDDEN_EXCLUSIVITY}\n */\nfunction createForbiddenExclusivityError(mocha) {\n var err = new Error(\n mocha.isWorker\n ? '`.only` is not supported in parallel mode'\n : '`.only` forbidden by --forbid-only'\n );\n err.code = constants.FORBIDDEN_EXCLUSIVITY;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when a plugin definition is invalid\n * @static\n * @param {string} msg - Error message\n * @param {PluginDefinition} [pluginDef] - Problematic plugin definition\n * @public\n * @returns {Error} Error with code {@link constants.INVALID_PLUGIN_DEFINITION}\n */\nfunction createInvalidPluginDefinitionError(msg, pluginDef) {\n const err = new Error(msg);\n err.code = constants.INVALID_PLUGIN_DEFINITION;\n err.pluginDef = pluginDef;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when a plugin implementation (user code) is invalid\n * @static\n * @param {string} msg - Error message\n * @param {Object} [opts] - Plugin definition and user-supplied implementation\n * @param {PluginDefinition} [opts.pluginDef] - Plugin Definition\n * @param {*} [opts.pluginImpl] - Plugin Implementation (user-supplied)\n * @public\n * @returns {Error} Error with code {@link constants.INVALID_PLUGIN_DEFINITION}\n */\nfunction createInvalidPluginImplementationError(\n msg,\n {pluginDef, pluginImpl} = {}\n) {\n const err = new Error(msg);\n err.code = constants.INVALID_PLUGIN_IMPLEMENTATION;\n err.pluginDef = pluginDef;\n err.pluginImpl = pluginImpl;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when a runnable exceeds its allowed run time.\n * @static\n * @param {string} msg - Error message\n * @param {number} [timeout] - Timeout in ms\n * @param {string} [file] - File, if given\n * @returns {MochaTimeoutError}\n */\nfunction createTimeoutError(msg, timeout, file) {\n const err = new Error(msg);\n err.code = constants.TIMEOUT;\n err.timeout = timeout;\n err.file = file;\n return err;\n}\n\n/**\n * Creates an error object to be thrown when file is unparsable\n * @public\n * @static\n * @param {string} message - Error message to be displayed.\n * @param {string} filename - File name\n * @returns {Error} Error with code {@link constants.UNPARSABLE_FILE}\n */\nfunction createUnparsableFileError(message, filename) {\n var err = new Error(message);\n err.code = constants.UNPARSABLE_FILE;\n return err;\n}\n\n/**\n * Returns `true` if an error came out of Mocha.\n * _Can suffer from false negatives, but not false positives._\n * @static\n * @public\n * @param {*} err - Error, or anything\n * @returns {boolean}\n */\nconst isMochaError = err =>\n Boolean(err && typeof err === 'object' && MOCHA_ERRORS.has(err.code));\n\nmodule.exports = {\n constants,\n createFatalError,\n createForbiddenExclusivityError,\n createInvalidArgumentTypeError,\n createInvalidArgumentValueError,\n createInvalidExceptionError,\n createInvalidInterfaceError,\n createInvalidLegacyPluginError,\n createInvalidPluginDefinitionError,\n createInvalidPluginError,\n createInvalidPluginImplementationError,\n createInvalidReporterError,\n createMissingArgumentError,\n createMochaInstanceAlreadyDisposedError,\n createMochaInstanceAlreadyRunningError,\n createMultipleDoneError,\n createNoFilesMatchPatternError,\n createTimeoutError,\n createUnparsableFileError,\n createUnsupportedError,\n deprecate,\n isMochaError,\n warn\n};\n\n/**\n * The error thrown when a Runnable times out\n * @memberof module:lib/errors\n * @typedef {Error} MochaTimeoutError\n * @property {constants.TIMEOUT} code - Error code\n * @property {number?} timeout Timeout in ms\n * @property {string?} file Filepath, if given\n */\n","'use strict';\n\nvar EventEmitter = require('events').EventEmitter;\nvar Pending = require('./pending');\nvar debug = require('debug')('mocha:runnable');\nvar milliseconds = require('ms');\nvar utils = require('./utils');\nconst {\n createInvalidExceptionError,\n createMultipleDoneError,\n createTimeoutError\n} = require('./errors');\n\n/**\n * Save timer references to avoid Sinon interfering (see GH-237).\n * @private\n */\nvar Date = global.Date;\nvar setTimeout = global.setTimeout;\nvar clearTimeout = global.clearTimeout;\nvar toString = Object.prototype.toString;\n\nmodule.exports = Runnable;\n\n/**\n * Initialize a new `Runnable` with the given `title` and callback `fn`.\n *\n * @class\n * @extends external:EventEmitter\n * @public\n * @param {String} title\n * @param {Function} fn\n */\nfunction Runnable(title, fn) {\n this.title = title;\n this.fn = fn;\n this.body = (fn || '').toString();\n this.async = fn && fn.length;\n this.sync = !this.async;\n this._timeout = 2000;\n this._slow = 75;\n this._retries = -1;\n utils.assignNewMochaID(this);\n Object.defineProperty(this, 'id', {\n get() {\n return utils.getMochaID(this);\n }\n });\n this.reset();\n}\n\n/**\n * Inherit from `EventEmitter.prototype`.\n */\nutils.inherits(Runnable, EventEmitter);\n\n/**\n * Resets the state initially or for a next run.\n */\nRunnable.prototype.reset = function () {\n this.timedOut = false;\n this._currentRetry = 0;\n this.pending = false;\n delete this.state;\n delete this.err;\n};\n\n/**\n * Get current timeout value in msecs.\n *\n * @private\n * @returns {number} current timeout threshold value\n */\n/**\n * @summary\n * Set timeout threshold value (msecs).\n *\n * @description\n * A string argument can use shorthand (e.g., \"2s\") and will be converted.\n * The value will be clamped to range [0, 2^31-1].\n * If clamped value matches either range endpoint, timeouts will be disabled.\n *\n * @private\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout#Maximum_delay_value}\n * @param {number|string} ms - Timeout threshold value.\n * @returns {Runnable} this\n * @chainable\n */\nRunnable.prototype.timeout = function (ms) {\n if (!arguments.length) {\n return this._timeout;\n }\n if (typeof ms === 'string') {\n ms = milliseconds(ms);\n }\n\n // Clamp to range\n var INT_MAX = Math.pow(2, 31) - 1;\n var range = [0, INT_MAX];\n ms = utils.clamp(ms, range);\n\n // see #1652 for reasoning\n if (ms === range[0] || ms === range[1]) {\n this._timeout = 0;\n } else {\n this._timeout = ms;\n }\n debug('timeout %d', this._timeout);\n\n if (this.timer) {\n this.resetTimeout();\n }\n return this;\n};\n\n/**\n * Set or get slow `ms`.\n *\n * @private\n * @param {number|string} ms\n * @return {Runnable|number} ms or Runnable instance.\n */\nRunnable.prototype.slow = function (ms) {\n if (!arguments.length || typeof ms === 'undefined') {\n return this._slow;\n }\n if (typeof ms === 'string') {\n ms = milliseconds(ms);\n }\n debug('slow %d', ms);\n this._slow = ms;\n return this;\n};\n\n/**\n * Halt and mark as pending.\n *\n * @memberof Mocha.Runnable\n * @public\n */\nRunnable.prototype.skip = function () {\n this.pending = true;\n throw new Pending('sync skip; aborting execution');\n};\n\n/**\n * Check if this runnable or its parent suite is marked as pending.\n *\n * @private\n */\nRunnable.prototype.isPending = function () {\n return this.pending || (this.parent && this.parent.isPending());\n};\n\n/**\n * Return `true` if this Runnable has failed.\n * @return {boolean}\n * @private\n */\nRunnable.prototype.isFailed = function () {\n return !this.isPending() && this.state === constants.STATE_FAILED;\n};\n\n/**\n * Return `true` if this Runnable has passed.\n * @return {boolean}\n * @private\n */\nRunnable.prototype.isPassed = function () {\n return !this.isPending() && this.state === constants.STATE_PASSED;\n};\n\n/**\n * Set or get number of retries.\n *\n * @private\n */\nRunnable.prototype.retries = function (n) {\n if (!arguments.length) {\n return this._retries;\n }\n this._retries = n;\n};\n\n/**\n * Set or get current retry\n *\n * @private\n */\nRunnable.prototype.currentRetry = function (n) {\n if (!arguments.length) {\n return this._currentRetry;\n }\n this._currentRetry = n;\n};\n\n/**\n * Return the full title generated by recursively concatenating the parent's\n * full title.\n *\n * @memberof Mocha.Runnable\n * @public\n * @return {string}\n */\nRunnable.prototype.fullTitle = function () {\n return this.titlePath().join(' ');\n};\n\n/**\n * Return the title path generated by concatenating the parent's title path with the title.\n *\n * @memberof Mocha.Runnable\n * @public\n * @return {string}\n */\nRunnable.prototype.titlePath = function () {\n return this.parent.titlePath().concat([this.title]);\n};\n\n/**\n * Clear the timeout.\n *\n * @private\n */\nRunnable.prototype.clearTimeout = function () {\n clearTimeout(this.timer);\n};\n\n/**\n * Reset the timeout.\n *\n * @private\n */\nRunnable.prototype.resetTimeout = function () {\n var self = this;\n var ms = this.timeout();\n\n if (ms === 0) {\n return;\n }\n this.clearTimeout();\n this.timer = setTimeout(function () {\n if (self.timeout() === 0) {\n return;\n }\n self.callback(self._timeoutError(ms));\n self.timedOut = true;\n }, ms);\n};\n\n/**\n * Set or get a list of whitelisted globals for this test run.\n *\n * @private\n * @param {string[]} globals\n */\nRunnable.prototype.globals = function (globals) {\n if (!arguments.length) {\n return this._allowedGlobals;\n }\n this._allowedGlobals = globals;\n};\n\n/**\n * Run the test and invoke `fn(err)`.\n *\n * @param {Function} fn\n * @private\n */\nRunnable.prototype.run = function (fn) {\n var self = this;\n var start = new Date();\n var ctx = this.ctx;\n var finished;\n var errorWasHandled = false;\n\n if (this.isPending()) return fn();\n\n // Sometimes the ctx exists, but it is not runnable\n if (ctx && ctx.runnable) {\n ctx.runnable(this);\n }\n\n // called multiple times\n function multiple(err) {\n if (errorWasHandled) {\n return;\n }\n errorWasHandled = true;\n self.emit('error', createMultipleDoneError(self, err));\n }\n\n // finished\n function done(err) {\n var ms = self.timeout();\n if (self.timedOut) {\n return;\n }\n\n if (finished) {\n return multiple(err);\n }\n\n self.clearTimeout();\n self.duration = new Date() - start;\n finished = true;\n if (!err && self.duration > ms && ms > 0) {\n err = self._timeoutError(ms);\n }\n fn(err);\n }\n\n // for .resetTimeout() and Runner#uncaught()\n this.callback = done;\n\n if (this.fn && typeof this.fn.call !== 'function') {\n done(\n new TypeError(\n 'A runnable must be passed a function as its second argument.'\n )\n );\n return;\n }\n\n // explicit async with `done` argument\n if (this.async) {\n this.resetTimeout();\n\n // allows skip() to be used in an explicit async context\n this.skip = function asyncSkip() {\n this.pending = true;\n done();\n // halt execution, the uncaught handler will ignore the failure.\n throw new Pending('async skip; aborting execution');\n };\n\n try {\n callFnAsync(this.fn);\n } catch (err) {\n // handles async runnables which actually run synchronously\n errorWasHandled = true;\n if (err instanceof Pending) {\n return; // done() is already called in this.skip()\n } else if (this.allowUncaught) {\n throw err;\n }\n done(Runnable.toValueOrError(err));\n }\n return;\n }\n\n // sync or promise-returning\n try {\n callFn(this.fn);\n } catch (err) {\n errorWasHandled = true;\n if (err instanceof Pending) {\n return done();\n } else if (this.allowUncaught) {\n throw err;\n }\n done(Runnable.toValueOrError(err));\n }\n\n function callFn(fn) {\n var result = fn.call(ctx);\n if (result && typeof result.then === 'function') {\n self.resetTimeout();\n result.then(\n function () {\n done();\n // Return null so libraries like bluebird do not warn about\n // subsequently constructed Promises.\n return null;\n },\n function (reason) {\n done(reason || new Error('Promise rejected with no or falsy reason'));\n }\n );\n } else {\n if (self.asyncOnly) {\n return done(\n new Error(\n '--async-only option in use without declaring `done()` or returning a promise'\n )\n );\n }\n\n done();\n }\n }\n\n function callFnAsync(fn) {\n var result = fn.call(ctx, function (err) {\n if (err instanceof Error || toString.call(err) === '[object Error]') {\n return done(err);\n }\n if (err) {\n if (Object.prototype.toString.call(err) === '[object Object]') {\n return done(\n new Error('done() invoked with non-Error: ' + JSON.stringify(err))\n );\n }\n return done(new Error('done() invoked with non-Error: ' + err));\n }\n if (result && utils.isPromise(result)) {\n return done(\n new Error(\n 'Resolution method is overspecified. Specify a callback *or* return a Promise; not both.'\n )\n );\n }\n\n done();\n });\n }\n};\n\n/**\n * Instantiates a \"timeout\" error\n *\n * @param {number} ms - Timeout (in milliseconds)\n * @returns {Error} a \"timeout\" error\n * @private\n */\nRunnable.prototype._timeoutError = function (ms) {\n let msg = `Timeout of ${ms}ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves.`;\n if (this.file) {\n msg += ' (' + this.file + ')';\n }\n return createTimeoutError(msg, ms, this.file);\n};\n\nvar constants = utils.defineConstants(\n /**\n * {@link Runnable}-related constants.\n * @public\n * @memberof Runnable\n * @readonly\n * @static\n * @alias constants\n * @enum {string}\n */\n {\n /**\n * Value of `state` prop when a `Runnable` has failed\n */\n STATE_FAILED: 'failed',\n /**\n * Value of `state` prop when a `Runnable` has passed\n */\n STATE_PASSED: 'passed',\n /**\n * Value of `state` prop when a `Runnable` has been skipped by user\n */\n STATE_PENDING: 'pending'\n }\n);\n\n/**\n * Given `value`, return identity if truthy, otherwise create an \"invalid exception\" error and return that.\n * @param {*} [value] - Value to return, if present\n * @returns {*|Error} `value`, otherwise an `Error`\n * @private\n */\nRunnable.toValueOrError = function (value) {\n return (\n value ||\n createInvalidExceptionError(\n 'Runnable failed with falsy or undefined exception. Please throw an Error instead.',\n value\n )\n );\n};\n\nRunnable.constants = constants;\n","'use strict';\n\nvar Runnable = require('./runnable');\nconst {inherits, constants} = require('./utils');\nconst {MOCHA_ID_PROP_NAME} = constants;\n\n/**\n * Expose `Hook`.\n */\n\nmodule.exports = Hook;\n\n/**\n * Initialize a new `Hook` with the given `title` and callback `fn`\n *\n * @class\n * @extends Runnable\n * @param {String} title\n * @param {Function} fn\n */\nfunction Hook(title, fn) {\n Runnable.call(this, title, fn);\n this.type = 'hook';\n}\n\n/**\n * Inherit from `Runnable.prototype`.\n */\ninherits(Hook, Runnable);\n\n/**\n * Resets the state for a next run.\n */\nHook.prototype.reset = function () {\n Runnable.prototype.reset.call(this);\n delete this._error;\n};\n\n/**\n * Get or set the test `err`.\n *\n * @memberof Hook\n * @public\n * @param {Error} err\n * @return {Error}\n */\nHook.prototype.error = function (err) {\n if (!arguments.length) {\n err = this._error;\n this._error = null;\n return err;\n }\n\n this._error = err;\n};\n\n/**\n * Returns an object suitable for IPC.\n * Functions are represented by keys beginning with `$$`.\n * @private\n * @returns {Object}\n */\nHook.prototype.serialize = function serialize() {\n return {\n $$currentRetry: this.currentRetry(),\n $$fullTitle: this.fullTitle(),\n $$isPending: Boolean(this.isPending()),\n $$titlePath: this.titlePath(),\n ctx:\n this.ctx && this.ctx.currentTest\n ? {\n currentTest: {\n title: this.ctx.currentTest.title,\n [MOCHA_ID_PROP_NAME]: this.ctx.currentTest.id\n }\n }\n : {},\n duration: this.duration,\n file: this.file,\n parent: {\n $$fullTitle: this.parent.fullTitle(),\n [MOCHA_ID_PROP_NAME]: this.parent.id\n },\n state: this.state,\n title: this.title,\n type: this.type,\n [MOCHA_ID_PROP_NAME]: this.id\n };\n};\n","'use strict';\n\n/**\n * Module dependencies.\n * @private\n */\nconst {EventEmitter} = require('events');\nconst Hook = require('./hook');\nvar {\n assignNewMochaID,\n clamp,\n constants: utilsConstants,\n defineConstants,\n getMochaID,\n inherits,\n isString\n} = require('./utils');\nconst debug = require('debug')('mocha:suite');\nconst milliseconds = require('ms');\nconst errors = require('./errors');\n\nconst {MOCHA_ID_PROP_NAME} = utilsConstants;\n\n/**\n * Expose `Suite`.\n */\n\nexports = module.exports = Suite;\n\n/**\n * Create a new `Suite` with the given `title` and parent `Suite`.\n *\n * @public\n * @param {Suite} parent - Parent suite (required!)\n * @param {string} title - Title\n * @return {Suite}\n */\nSuite.create = function (parent, title) {\n var suite = new Suite(title, parent.ctx);\n suite.parent = parent;\n title = suite.fullTitle();\n parent.addSuite(suite);\n return suite;\n};\n\n/**\n * Constructs a new `Suite` instance with the given `title`, `ctx`, and `isRoot`.\n *\n * @public\n * @class\n * @extends EventEmitter\n * @see {@link https://nodejs.org/api/events.html#events_class_eventemitter|EventEmitter}\n * @param {string} title - Suite title.\n * @param {Context} parentContext - Parent context instance.\n * @param {boolean} [isRoot=false] - Whether this is the root suite.\n */\nfunction Suite(title, parentContext, isRoot) {\n if (!isString(title)) {\n throw errors.createInvalidArgumentTypeError(\n 'Suite argument \"title\" must be a string. Received type \"' +\n typeof title +\n '\"',\n 'title',\n 'string'\n );\n }\n this.title = title;\n function Context() {}\n Context.prototype = parentContext;\n this.ctx = new Context();\n this.suites = [];\n this.tests = [];\n this.root = isRoot === true;\n this.pending = false;\n this._retries = -1;\n this._beforeEach = [];\n this._beforeAll = [];\n this._afterEach = [];\n this._afterAll = [];\n this._timeout = 2000;\n this._slow = 75;\n this._bail = false;\n this._onlyTests = [];\n this._onlySuites = [];\n assignNewMochaID(this);\n\n Object.defineProperty(this, 'id', {\n get() {\n return getMochaID(this);\n }\n });\n\n this.reset();\n}\n\n/**\n * Inherit from `EventEmitter.prototype`.\n */\ninherits(Suite, EventEmitter);\n\n/**\n * Resets the state initially or for a next run.\n */\nSuite.prototype.reset = function () {\n this.delayed = false;\n function doReset(thingToReset) {\n thingToReset.reset();\n }\n this.suites.forEach(doReset);\n this.tests.forEach(doReset);\n this._beforeEach.forEach(doReset);\n this._afterEach.forEach(doReset);\n this._beforeAll.forEach(doReset);\n this._afterAll.forEach(doReset);\n};\n\n/**\n * Return a clone of this `Suite`.\n *\n * @private\n * @return {Suite}\n */\nSuite.prototype.clone = function () {\n var suite = new Suite(this.title);\n debug('clone');\n suite.ctx = this.ctx;\n suite.root = this.root;\n suite.timeout(this.timeout());\n suite.retries(this.retries());\n suite.slow(this.slow());\n suite.bail(this.bail());\n return suite;\n};\n\n/**\n * Set or get timeout `ms` or short-hand such as \"2s\".\n *\n * @private\n * @todo Do not attempt to set value if `ms` is undefined\n * @param {number|string} ms\n * @return {Suite|number} for chaining\n */\nSuite.prototype.timeout = function (ms) {\n if (!arguments.length) {\n return this._timeout;\n }\n if (typeof ms === 'string') {\n ms = milliseconds(ms);\n }\n\n // Clamp to range\n var INT_MAX = Math.pow(2, 31) - 1;\n var range = [0, INT_MAX];\n ms = clamp(ms, range);\n\n debug('timeout %d', ms);\n this._timeout = parseInt(ms, 10);\n return this;\n};\n\n/**\n * Set or get number of times to retry a failed test.\n *\n * @private\n * @param {number|string} n\n * @return {Suite|number} for chaining\n */\nSuite.prototype.retries = function (n) {\n if (!arguments.length) {\n return this._retries;\n }\n debug('retries %d', n);\n this._retries = parseInt(n, 10) || 0;\n return this;\n};\n\n/**\n * Set or get slow `ms` or short-hand such as \"2s\".\n *\n * @private\n * @param {number|string} ms\n * @return {Suite|number} for chaining\n */\nSuite.prototype.slow = function (ms) {\n if (!arguments.length) {\n return this._slow;\n }\n if (typeof ms === 'string') {\n ms = milliseconds(ms);\n }\n debug('slow %d', ms);\n this._slow = ms;\n return this;\n};\n\n/**\n * Set or get whether to bail after first error.\n *\n * @private\n * @param {boolean} bail\n * @return {Suite|number} for chaining\n */\nSuite.prototype.bail = function (bail) {\n if (!arguments.length) {\n return this._bail;\n }\n debug('bail %s', bail);\n this._bail = bail;\n return this;\n};\n\n/**\n * Check if this suite or its parent suite is marked as pending.\n *\n * @private\n */\nSuite.prototype.isPending = function () {\n return this.pending || (this.parent && this.parent.isPending());\n};\n\n/**\n * Generic hook-creator.\n * @private\n * @param {string} title - Title of hook\n * @param {Function} fn - Hook callback\n * @returns {Hook} A new hook\n */\nSuite.prototype._createHook = function (title, fn) {\n var hook = new Hook(title, fn);\n hook.parent = this;\n hook.timeout(this.timeout());\n hook.retries(this.retries());\n hook.slow(this.slow());\n hook.ctx = this.ctx;\n hook.file = this.file;\n return hook;\n};\n\n/**\n * Run `fn(test[, done])` before running tests.\n *\n * @private\n * @param {string} title\n * @param {Function} fn\n * @return {Suite} for chaining\n */\nSuite.prototype.beforeAll = function (title, fn) {\n if (this.isPending()) {\n return this;\n }\n if (typeof title === 'function') {\n fn = title;\n title = fn.name;\n }\n title = '\"before all\" hook' + (title ? ': ' + title : '');\n\n var hook = this._createHook(title, fn);\n this._beforeAll.push(hook);\n this.emit(constants.EVENT_SUITE_ADD_HOOK_BEFORE_ALL, hook);\n return this;\n};\n\n/**\n * Run `fn(test[, done])` after running tests.\n *\n * @private\n * @param {string} title\n * @param {Function} fn\n * @return {Suite} for chaining\n */\nSuite.prototype.afterAll = function (title, fn) {\n if (this.isPending()) {\n return this;\n }\n if (typeof title === 'function') {\n fn = title;\n title = fn.name;\n }\n title = '\"after all\" hook' + (title ? ': ' + title : '');\n\n var hook = this._createHook(title, fn);\n this._afterAll.push(hook);\n this.emit(constants.EVENT_SUITE_ADD_HOOK_AFTER_ALL, hook);\n return this;\n};\n\n/**\n * Run `fn(test[, done])` before each test case.\n *\n * @private\n * @param {string} title\n * @param {Function} fn\n * @return {Suite} for chaining\n */\nSuite.prototype.beforeEach = function (title, fn) {\n if (this.isPending()) {\n return this;\n }\n if (typeof title === 'function') {\n fn = title;\n title = fn.name;\n }\n title = '\"before each\" hook' + (title ? ': ' + title : '');\n\n var hook = this._createHook(title, fn);\n this._beforeEach.push(hook);\n this.emit(constants.EVENT_SUITE_ADD_HOOK_BEFORE_EACH, hook);\n return this;\n};\n\n/**\n * Run `fn(test[, done])` after each test case.\n *\n * @private\n * @param {string} title\n * @param {Function} fn\n * @return {Suite} for chaining\n */\nSuite.prototype.afterEach = function (title, fn) {\n if (this.isPending()) {\n return this;\n }\n if (typeof title === 'function') {\n fn = title;\n title = fn.name;\n }\n title = '\"after each\" hook' + (title ? ': ' + title : '');\n\n var hook = this._createHook(title, fn);\n this._afterEach.push(hook);\n this.emit(constants.EVENT_SUITE_ADD_HOOK_AFTER_EACH, hook);\n return this;\n};\n\n/**\n * Add a test `suite`.\n *\n * @private\n * @param {Suite} suite\n * @return {Suite} for chaining\n */\nSuite.prototype.addSuite = function (suite) {\n suite.parent = this;\n suite.root = false;\n suite.timeout(this.timeout());\n suite.retries(this.retries());\n suite.slow(this.slow());\n suite.bail(this.bail());\n this.suites.push(suite);\n this.emit(constants.EVENT_SUITE_ADD_SUITE, suite);\n return this;\n};\n\n/**\n * Add a `test` to this suite.\n *\n * @private\n * @param {Test} test\n * @return {Suite} for chaining\n */\nSuite.prototype.addTest = function (test) {\n test.parent = this;\n test.timeout(this.timeout());\n test.retries(this.retries());\n test.slow(this.slow());\n test.ctx = this.ctx;\n this.tests.push(test);\n this.emit(constants.EVENT_SUITE_ADD_TEST, test);\n return this;\n};\n\n/**\n * Return the full title generated by recursively concatenating the parent's\n * full title.\n *\n * @memberof Suite\n * @public\n * @return {string}\n */\nSuite.prototype.fullTitle = function () {\n return this.titlePath().join(' ');\n};\n\n/**\n * Return the title path generated by recursively concatenating the parent's\n * title path.\n *\n * @memberof Suite\n * @public\n * @return {string}\n */\nSuite.prototype.titlePath = function () {\n var result = [];\n if (this.parent) {\n result = result.concat(this.parent.titlePath());\n }\n if (!this.root) {\n result.push(this.title);\n }\n return result;\n};\n\n/**\n * Return the total number of tests.\n *\n * @memberof Suite\n * @public\n * @return {number}\n */\nSuite.prototype.total = function () {\n return (\n this.suites.reduce(function (sum, suite) {\n return sum + suite.total();\n }, 0) + this.tests.length\n );\n};\n\n/**\n * Iterates through each suite recursively to find all tests. Applies a\n * function in the format `fn(test)`.\n *\n * @private\n * @param {Function} fn\n * @return {Suite}\n */\nSuite.prototype.eachTest = function (fn) {\n this.tests.forEach(fn);\n this.suites.forEach(function (suite) {\n suite.eachTest(fn);\n });\n return this;\n};\n\n/**\n * This will run the root suite if we happen to be running in delayed mode.\n * @private\n */\nSuite.prototype.run = function run() {\n if (this.root) {\n this.emit(constants.EVENT_ROOT_SUITE_RUN);\n }\n};\n\n/**\n * Determines whether a suite has an `only` test or suite as a descendant.\n *\n * @private\n * @returns {Boolean}\n */\nSuite.prototype.hasOnly = function hasOnly() {\n return (\n this._onlyTests.length > 0 ||\n this._onlySuites.length > 0 ||\n this.suites.some(function (suite) {\n return suite.hasOnly();\n })\n );\n};\n\n/**\n * Filter suites based on `isOnly` logic.\n *\n * @private\n * @returns {Boolean}\n */\nSuite.prototype.filterOnly = function filterOnly() {\n if (this._onlyTests.length) {\n // If the suite contains `only` tests, run those and ignore any nested suites.\n this.tests = this._onlyTests;\n this.suites = [];\n } else {\n // Otherwise, do not run any of the tests in this suite.\n this.tests = [];\n this._onlySuites.forEach(function (onlySuite) {\n // If there are other `only` tests/suites nested in the current `only` suite, then filter that `only` suite.\n // Otherwise, all of the tests on this `only` suite should be run, so don't filter it.\n if (onlySuite.hasOnly()) {\n onlySuite.filterOnly();\n }\n });\n // Run the `only` suites, as well as any other suites that have `only` tests/suites as descendants.\n var onlySuites = this._onlySuites;\n this.suites = this.suites.filter(function (childSuite) {\n return onlySuites.indexOf(childSuite) !== -1 || childSuite.filterOnly();\n });\n }\n // Keep the suite only if there is something to run\n return this.tests.length > 0 || this.suites.length > 0;\n};\n\n/**\n * Adds a suite to the list of subsuites marked `only`.\n *\n * @private\n * @param {Suite} suite\n */\nSuite.prototype.appendOnlySuite = function (suite) {\n this._onlySuites.push(suite);\n};\n\n/**\n * Marks a suite to be `only`.\n *\n * @private\n */\nSuite.prototype.markOnly = function () {\n this.parent && this.parent.appendOnlySuite(this);\n};\n\n/**\n * Adds a test to the list of tests marked `only`.\n *\n * @private\n * @param {Test} test\n */\nSuite.prototype.appendOnlyTest = function (test) {\n this._onlyTests.push(test);\n};\n\n/**\n * Returns the array of hooks by hook name; see `HOOK_TYPE_*` constants.\n * @private\n */\nSuite.prototype.getHooks = function getHooks(name) {\n return this['_' + name];\n};\n\n/**\n * cleans all references from this suite and all child suites.\n */\nSuite.prototype.dispose = function () {\n this.suites.forEach(function (suite) {\n suite.dispose();\n });\n this.cleanReferences();\n};\n\n/**\n * Cleans up the references to all the deferred functions\n * (before/after/beforeEach/afterEach) and tests of a Suite.\n * These must be deleted otherwise a memory leak can happen,\n * as those functions may reference variables from closures,\n * thus those variables can never be garbage collected as long\n * as the deferred functions exist.\n *\n * @private\n */\nSuite.prototype.cleanReferences = function cleanReferences() {\n function cleanArrReferences(arr) {\n for (var i = 0; i < arr.length; i++) {\n delete arr[i].fn;\n }\n }\n\n if (Array.isArray(this._beforeAll)) {\n cleanArrReferences(this._beforeAll);\n }\n\n if (Array.isArray(this._beforeEach)) {\n cleanArrReferences(this._beforeEach);\n }\n\n if (Array.isArray(this._afterAll)) {\n cleanArrReferences(this._afterAll);\n }\n\n if (Array.isArray(this._afterEach)) {\n cleanArrReferences(this._afterEach);\n }\n\n for (var i = 0; i < this.tests.length; i++) {\n delete this.tests[i].fn;\n }\n};\n\n/**\n * Returns an object suitable for IPC.\n * Functions are represented by keys beginning with `$$`.\n * @private\n * @returns {Object}\n */\nSuite.prototype.serialize = function serialize() {\n return {\n _bail: this._bail,\n $$fullTitle: this.fullTitle(),\n $$isPending: Boolean(this.isPending()),\n root: this.root,\n title: this.title,\n [MOCHA_ID_PROP_NAME]: this.id,\n parent: this.parent ? {[MOCHA_ID_PROP_NAME]: this.parent.id} : null\n };\n};\n\nvar constants = defineConstants(\n /**\n * {@link Suite}-related constants.\n * @public\n * @memberof Suite\n * @alias constants\n * @readonly\n * @static\n * @enum {string}\n */\n {\n /**\n * Event emitted after a test file has been loaded. Not emitted in browser.\n */\n EVENT_FILE_POST_REQUIRE: 'post-require',\n /**\n * Event emitted before a test file has been loaded. In browser, this is emitted once an interface has been selected.\n */\n EVENT_FILE_PRE_REQUIRE: 'pre-require',\n /**\n * Event emitted immediately after a test file has been loaded. Not emitted in browser.\n */\n EVENT_FILE_REQUIRE: 'require',\n /**\n * Event emitted when `global.run()` is called (use with `delay` option).\n */\n EVENT_ROOT_SUITE_RUN: 'run',\n\n /**\n * Namespace for collection of a `Suite`'s \"after all\" hooks.\n */\n HOOK_TYPE_AFTER_ALL: 'afterAll',\n /**\n * Namespace for collection of a `Suite`'s \"after each\" hooks.\n */\n HOOK_TYPE_AFTER_EACH: 'afterEach',\n /**\n * Namespace for collection of a `Suite`'s \"before all\" hooks.\n */\n HOOK_TYPE_BEFORE_ALL: 'beforeAll',\n /**\n * Namespace for collection of a `Suite`'s \"before each\" hooks.\n */\n HOOK_TYPE_BEFORE_EACH: 'beforeEach',\n\n /**\n * Emitted after a child `Suite` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_SUITE: 'suite',\n /**\n * Emitted after an \"after all\" `Hook` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_HOOK_AFTER_ALL: 'afterAll',\n /**\n * Emitted after an \"after each\" `Hook` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_HOOK_AFTER_EACH: 'afterEach',\n /**\n * Emitted after an \"before all\" `Hook` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_HOOK_BEFORE_ALL: 'beforeAll',\n /**\n * Emitted after an \"before each\" `Hook` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_HOOK_BEFORE_EACH: 'beforeEach',\n /**\n * Emitted after a `Test` has been added to a `Suite`.\n */\n EVENT_SUITE_ADD_TEST: 'test'\n }\n);\n\nSuite.constants = constants;\n","'use strict';\n\n/**\n * Module dependencies.\n * @private\n */\nvar EventEmitter = require('events').EventEmitter;\nvar Pending = require('./pending');\nvar utils = require('./utils');\nvar debug = require('debug')('mocha:runner');\nvar Runnable = require('./runnable');\nvar Suite = require('./suite');\nvar HOOK_TYPE_BEFORE_EACH = Suite.constants.HOOK_TYPE_BEFORE_EACH;\nvar HOOK_TYPE_AFTER_EACH = Suite.constants.HOOK_TYPE_AFTER_EACH;\nvar HOOK_TYPE_AFTER_ALL = Suite.constants.HOOK_TYPE_AFTER_ALL;\nvar HOOK_TYPE_BEFORE_ALL = Suite.constants.HOOK_TYPE_BEFORE_ALL;\nvar EVENT_ROOT_SUITE_RUN = Suite.constants.EVENT_ROOT_SUITE_RUN;\nvar STATE_FAILED = Runnable.constants.STATE_FAILED;\nvar STATE_PASSED = Runnable.constants.STATE_PASSED;\nvar STATE_PENDING = Runnable.constants.STATE_PENDING;\nvar stackFilter = utils.stackTraceFilter();\nvar stringify = utils.stringify;\n\nconst {\n createInvalidExceptionError,\n createUnsupportedError,\n createFatalError,\n isMochaError,\n constants: errorConstants\n} = require('./errors');\n\n/**\n * Non-enumerable globals.\n * @private\n * @readonly\n */\nvar globals = [\n 'setTimeout',\n 'clearTimeout',\n 'setInterval',\n 'clearInterval',\n 'XMLHttpRequest',\n 'Date',\n 'setImmediate',\n 'clearImmediate'\n];\n\nvar constants = utils.defineConstants(\n /**\n * {@link Runner}-related constants.\n * @public\n * @memberof Runner\n * @readonly\n * @alias constants\n * @static\n * @enum {string}\n */\n {\n /**\n * Emitted when {@link Hook} execution begins\n */\n EVENT_HOOK_BEGIN: 'hook',\n /**\n * Emitted when {@link Hook} execution ends\n */\n EVENT_HOOK_END: 'hook end',\n /**\n * Emitted when Root {@link Suite} execution begins (all files have been parsed and hooks/tests are ready for execution)\n */\n EVENT_RUN_BEGIN: 'start',\n /**\n * Emitted when Root {@link Suite} execution has been delayed via `delay` option\n */\n EVENT_DELAY_BEGIN: 'waiting',\n /**\n * Emitted when delayed Root {@link Suite} execution is triggered by user via `global.run()`\n */\n EVENT_DELAY_END: 'ready',\n /**\n * Emitted when Root {@link Suite} execution ends\n */\n EVENT_RUN_END: 'end',\n /**\n * Emitted when {@link Suite} execution begins\n */\n EVENT_SUITE_BEGIN: 'suite',\n /**\n * Emitted when {@link Suite} execution ends\n */\n EVENT_SUITE_END: 'suite end',\n /**\n * Emitted when {@link Test} execution begins\n */\n EVENT_TEST_BEGIN: 'test',\n /**\n * Emitted when {@link Test} execution ends\n */\n EVENT_TEST_END: 'test end',\n /**\n * Emitted when {@link Test} execution fails\n */\n EVENT_TEST_FAIL: 'fail',\n /**\n * Emitted when {@link Test} execution succeeds\n */\n EVENT_TEST_PASS: 'pass',\n /**\n * Emitted when {@link Test} becomes pending\n */\n EVENT_TEST_PENDING: 'pending',\n /**\n * Emitted when {@link Test} execution has failed, but will retry\n */\n EVENT_TEST_RETRY: 'retry',\n /**\n * Initial state of Runner\n */\n STATE_IDLE: 'idle',\n /**\n * State set to this value when the Runner has started running\n */\n STATE_RUNNING: 'running',\n /**\n * State set to this value when the Runner has stopped\n */\n STATE_STOPPED: 'stopped'\n }\n);\n\nclass Runner extends EventEmitter {\n /**\n * Initialize a `Runner` at the Root {@link Suite}, which represents a hierarchy of {@link Suite|Suites} and {@link Test|Tests}.\n *\n * @extends external:EventEmitter\n * @public\n * @class\n * @param {Suite} suite - Root suite\n * @param {Object} [opts] - Settings object\n * @param {boolean} [opts.cleanReferencesAfterRun] - Whether to clean references to test fns and hooks when a suite is done.\n * @param {boolean} [opts.delay] - Whether to delay execution of root suite until ready.\n * @param {boolean} [opts.dryRun] - Whether to report tests without running them.\n * @param {boolean} [opts.failZero] - Whether to fail test run if zero tests encountered.\n */\n constructor(suite, opts = {}) {\n super();\n\n var self = this;\n this._globals = [];\n this._abort = false;\n this.suite = suite;\n this._opts = opts;\n this.state = constants.STATE_IDLE;\n this.total = suite.total();\n this.failures = 0;\n /**\n * @type {Map>>}\n */\n this._eventListeners = new Map();\n this.on(constants.EVENT_TEST_END, function (test) {\n if (test.type === 'test' && test.retriedTest() && test.parent) {\n var idx =\n test.parent.tests && test.parent.tests.indexOf(test.retriedTest());\n if (idx > -1) test.parent.tests[idx] = test;\n }\n self.checkGlobals(test);\n });\n this.on(constants.EVENT_HOOK_END, function (hook) {\n self.checkGlobals(hook);\n });\n this._defaultGrep = /.*/;\n this.grep(this._defaultGrep);\n this.globals(this.globalProps());\n\n this.uncaught = this._uncaught.bind(this);\n this.unhandled = (reason, promise) => {\n if (isMochaError(reason)) {\n debug(\n 'trapped unhandled rejection coming out of Mocha; forwarding to uncaught handler:',\n reason\n );\n this.uncaught(reason);\n } else {\n debug(\n 'trapped unhandled rejection from (probably) user code; re-emitting on process'\n );\n this._removeEventListener(\n process,\n 'unhandledRejection',\n this.unhandled\n );\n try {\n process.emit('unhandledRejection', reason, promise);\n } finally {\n this._addEventListener(process, 'unhandledRejection', this.unhandled);\n }\n }\n };\n }\n}\n\n/**\n * Wrapper for setImmediate, process.nextTick, or browser polyfill.\n *\n * @param {Function} fn\n * @private\n */\nRunner.immediately = global.setImmediate || process.nextTick;\n\n/**\n * Replacement for `target.on(eventName, listener)` that does bookkeeping to remove them when this runner instance is disposed.\n * @param {EventEmitter} target - The `EventEmitter`\n * @param {string} eventName - The event name\n * @param {string} fn - Listener function\n * @private\n */\nRunner.prototype._addEventListener = function (target, eventName, listener) {\n debug(\n '_addEventListener(): adding for event %s; %d current listeners',\n eventName,\n target.listenerCount(eventName)\n );\n /* istanbul ignore next */\n if (\n this._eventListeners.has(target) &&\n this._eventListeners.get(target).has(eventName) &&\n this._eventListeners.get(target).get(eventName).has(listener)\n ) {\n debug(\n 'warning: tried to attach duplicate event listener for %s',\n eventName\n );\n return;\n }\n target.on(eventName, listener);\n const targetListeners = this._eventListeners.has(target)\n ? this._eventListeners.get(target)\n : new Map();\n const targetEventListeners = targetListeners.has(eventName)\n ? targetListeners.get(eventName)\n : new Set();\n targetEventListeners.add(listener);\n targetListeners.set(eventName, targetEventListeners);\n this._eventListeners.set(target, targetListeners);\n};\n\n/**\n * Replacement for `target.removeListener(eventName, listener)` that also updates the bookkeeping.\n * @param {EventEmitter} target - The `EventEmitter`\n * @param {string} eventName - The event name\n * @param {function} listener - Listener function\n * @private\n */\nRunner.prototype._removeEventListener = function (target, eventName, listener) {\n target.removeListener(eventName, listener);\n\n if (this._eventListeners.has(target)) {\n const targetListeners = this._eventListeners.get(target);\n if (targetListeners.has(eventName)) {\n const targetEventListeners = targetListeners.get(eventName);\n targetEventListeners.delete(listener);\n if (!targetEventListeners.size) {\n targetListeners.delete(eventName);\n }\n }\n if (!targetListeners.size) {\n this._eventListeners.delete(target);\n }\n } else {\n debug('trying to remove listener for untracked object %s', target);\n }\n};\n\n/**\n * Removes all event handlers set during a run on this instance.\n * Remark: this does _not_ clean/dispose the tests or suites themselves.\n */\nRunner.prototype.dispose = function () {\n this.removeAllListeners();\n this._eventListeners.forEach((targetListeners, target) => {\n targetListeners.forEach((targetEventListeners, eventName) => {\n targetEventListeners.forEach(listener => {\n target.removeListener(eventName, listener);\n });\n });\n });\n this._eventListeners.clear();\n};\n\n/**\n * Run tests with full titles matching `re`. Updates runner.total\n * with number of tests matched.\n *\n * @public\n * @memberof Runner\n * @param {RegExp} re\n * @param {boolean} invert\n * @return {Runner} Runner instance.\n */\nRunner.prototype.grep = function (re, invert) {\n debug('grep(): setting to %s', re);\n this._grep = re;\n this._invert = invert;\n this.total = this.grepTotal(this.suite);\n return this;\n};\n\n/**\n * Returns the number of tests matching the grep search for the\n * given suite.\n *\n * @memberof Runner\n * @public\n * @param {Suite} suite\n * @return {number}\n */\nRunner.prototype.grepTotal = function (suite) {\n var self = this;\n var total = 0;\n\n suite.eachTest(function (test) {\n var match = self._grep.test(test.fullTitle());\n if (self._invert) {\n match = !match;\n }\n if (match) {\n total++;\n }\n });\n\n return total;\n};\n\n/**\n * Return a list of global properties.\n *\n * @return {Array}\n * @private\n */\nRunner.prototype.globalProps = function () {\n var props = Object.keys(global);\n\n // non-enumerables\n for (var i = 0; i < globals.length; ++i) {\n if (~props.indexOf(globals[i])) {\n continue;\n }\n props.push(globals[i]);\n }\n\n return props;\n};\n\n/**\n * Allow the given `arr` of globals.\n *\n * @public\n * @memberof Runner\n * @param {Array} arr\n * @return {Runner} Runner instance.\n */\nRunner.prototype.globals = function (arr) {\n if (!arguments.length) {\n return this._globals;\n }\n debug('globals(): setting to %O', arr);\n this._globals = this._globals.concat(arr);\n return this;\n};\n\n/**\n * Check for global variable leaks.\n *\n * @private\n */\nRunner.prototype.checkGlobals = function (test) {\n if (!this.checkLeaks) {\n return;\n }\n var ok = this._globals;\n\n var globals = this.globalProps();\n var leaks;\n\n if (test) {\n ok = ok.concat(test._allowedGlobals || []);\n }\n\n if (this.prevGlobalsLength === globals.length) {\n return;\n }\n this.prevGlobalsLength = globals.length;\n\n leaks = filterLeaks(ok, globals);\n this._globals = this._globals.concat(leaks);\n\n if (leaks.length) {\n var msg = `global leak(s) detected: ${leaks.map(e => `'${e}'`).join(', ')}`;\n this.fail(test, new Error(msg));\n }\n};\n\n/**\n * Fail the given `test`.\n *\n * If `test` is a hook, failures work in the following pattern:\n * - If bail, run corresponding `after each` and `after` hooks,\n * then exit\n * - Failed `before` hook skips all tests in a suite and subsuites,\n * but jumps to corresponding `after` hook\n * - Failed `before each` hook skips remaining tests in a\n * suite and jumps to corresponding `after each` hook,\n * which is run only once\n * - Failed `after` hook does not alter execution order\n * - Failed `after each` hook skips remaining tests in a\n * suite and subsuites, but executes other `after each`\n * hooks\n *\n * @private\n * @param {Runnable} test\n * @param {Error} err\n * @param {boolean} [force=false] - Whether to fail a pending test.\n */\nRunner.prototype.fail = function (test, err, force) {\n force = force === true;\n if (test.isPending() && !force) {\n return;\n }\n if (this.state === constants.STATE_STOPPED) {\n if (err.code === errorConstants.MULTIPLE_DONE) {\n throw err;\n }\n throw createFatalError(\n 'Test failed after root suite execution completed!',\n err\n );\n }\n\n ++this.failures;\n debug('total number of failures: %d', this.failures);\n test.state = STATE_FAILED;\n\n if (!isError(err)) {\n err = thrown2Error(err);\n }\n\n try {\n err.stack =\n this.fullStackTrace || !err.stack ? err.stack : stackFilter(err.stack);\n } catch (ignore) {\n // some environments do not take kindly to monkeying with the stack\n }\n\n this.emit(constants.EVENT_TEST_FAIL, test, err);\n};\n\n/**\n * Run hook `name` callbacks and then invoke `fn()`.\n *\n * @private\n * @param {string} name\n * @param {Function} fn\n */\n\nRunner.prototype.hook = function (name, fn) {\n if (this._opts.dryRun) return fn();\n\n var suite = this.suite;\n var hooks = suite.getHooks(name);\n var self = this;\n\n function next(i) {\n var hook = hooks[i];\n if (!hook) {\n return fn();\n }\n self.currentRunnable = hook;\n\n if (name === HOOK_TYPE_BEFORE_ALL) {\n hook.ctx.currentTest = hook.parent.tests[0];\n } else if (name === HOOK_TYPE_AFTER_ALL) {\n hook.ctx.currentTest = hook.parent.tests[hook.parent.tests.length - 1];\n } else {\n hook.ctx.currentTest = self.test;\n }\n\n setHookTitle(hook);\n\n hook.allowUncaught = self.allowUncaught;\n\n self.emit(constants.EVENT_HOOK_BEGIN, hook);\n\n if (!hook.listeners('error').length) {\n self._addEventListener(hook, 'error', function (err) {\n self.fail(hook, err);\n });\n }\n\n hook.run(function cbHookRun(err) {\n var testError = hook.error();\n if (testError) {\n self.fail(self.test, testError);\n }\n // conditional skip\n if (hook.pending) {\n if (name === HOOK_TYPE_AFTER_EACH) {\n // TODO define and implement use case\n if (self.test) {\n self.test.pending = true;\n }\n } else if (name === HOOK_TYPE_BEFORE_EACH) {\n if (self.test) {\n self.test.pending = true;\n }\n self.emit(constants.EVENT_HOOK_END, hook);\n hook.pending = false; // activates hook for next test\n return fn(new Error('abort hookDown'));\n } else if (name === HOOK_TYPE_BEFORE_ALL) {\n suite.tests.forEach(function (test) {\n test.pending = true;\n });\n suite.suites.forEach(function (suite) {\n suite.pending = true;\n });\n hooks = [];\n } else {\n hook.pending = false;\n var errForbid = createUnsupportedError('`this.skip` forbidden');\n self.fail(hook, errForbid);\n return fn(errForbid);\n }\n } else if (err) {\n self.fail(hook, err);\n // stop executing hooks, notify callee of hook err\n return fn(err);\n }\n self.emit(constants.EVENT_HOOK_END, hook);\n delete hook.ctx.currentTest;\n setHookTitle(hook);\n next(++i);\n });\n\n function setHookTitle(hook) {\n hook.originalTitle = hook.originalTitle || hook.title;\n if (hook.ctx && hook.ctx.currentTest) {\n hook.title = `${hook.originalTitle} for \"${hook.ctx.currentTest.title}\"`;\n } else {\n var parentTitle;\n if (hook.parent.title) {\n parentTitle = hook.parent.title;\n } else {\n parentTitle = hook.parent.root ? '{root}' : '';\n }\n hook.title = `${hook.originalTitle} in \"${parentTitle}\"`;\n }\n }\n }\n\n Runner.immediately(function () {\n next(0);\n });\n};\n\n/**\n * Run hook `name` for the given array of `suites`\n * in order, and callback `fn(err, errSuite)`.\n *\n * @private\n * @param {string} name\n * @param {Array} suites\n * @param {Function} fn\n */\nRunner.prototype.hooks = function (name, suites, fn) {\n var self = this;\n var orig = this.suite;\n\n function next(suite) {\n self.suite = suite;\n\n if (!suite) {\n self.suite = orig;\n return fn();\n }\n\n self.hook(name, function (err) {\n if (err) {\n var errSuite = self.suite;\n self.suite = orig;\n return fn(err, errSuite);\n }\n\n next(suites.pop());\n });\n }\n\n next(suites.pop());\n};\n\n/**\n * Run 'afterEach' hooks from bottom up.\n *\n * @param {String} name\n * @param {Function} fn\n * @private\n */\nRunner.prototype.hookUp = function (name, fn) {\n var suites = [this.suite].concat(this.parents()).reverse();\n this.hooks(name, suites, fn);\n};\n\n/**\n * Run 'beforeEach' hooks from top level down.\n *\n * @param {String} name\n * @param {Function} fn\n * @private\n */\nRunner.prototype.hookDown = function (name, fn) {\n var suites = [this.suite].concat(this.parents());\n this.hooks(name, suites, fn);\n};\n\n/**\n * Return an array of parent Suites from\n * closest to furthest.\n *\n * @return {Array}\n * @private\n */\nRunner.prototype.parents = function () {\n var suite = this.suite;\n var suites = [];\n while (suite.parent) {\n suite = suite.parent;\n suites.push(suite);\n }\n return suites;\n};\n\n/**\n * Run the current test and callback `fn(err)`.\n *\n * @param {Function} fn\n * @private\n */\nRunner.prototype.runTest = function (fn) {\n if (this._opts.dryRun) return Runner.immediately(fn);\n\n var self = this;\n var test = this.test;\n\n if (!test) {\n return;\n }\n\n if (this.asyncOnly) {\n test.asyncOnly = true;\n }\n this._addEventListener(test, 'error', function (err) {\n self.fail(test, err);\n });\n if (this.allowUncaught) {\n test.allowUncaught = true;\n return test.run(fn);\n }\n try {\n test.run(fn);\n } catch (err) {\n fn(err);\n }\n};\n\n/**\n * Run tests in the given `suite` and invoke the callback `fn()` when complete.\n *\n * @private\n * @param {Suite} suite\n * @param {Function} fn\n */\nRunner.prototype.runTests = function (suite, fn) {\n var self = this;\n var tests = suite.tests.slice();\n var test;\n\n function hookErr(_, errSuite, after) {\n // before/after Each hook for errSuite failed:\n var orig = self.suite;\n\n // for failed 'after each' hook start from errSuite parent,\n // otherwise start from errSuite itself\n self.suite = after ? errSuite.parent : errSuite;\n\n if (self.suite) {\n self.hookUp(HOOK_TYPE_AFTER_EACH, function (err2, errSuite2) {\n self.suite = orig;\n // some hooks may fail even now\n if (err2) {\n return hookErr(err2, errSuite2, true);\n }\n // report error suite\n fn(errSuite);\n });\n } else {\n // there is no need calling other 'after each' hooks\n self.suite = orig;\n fn(errSuite);\n }\n }\n\n function next(err, errSuite) {\n // if we bail after first err\n if (self.failures && suite._bail) {\n tests = [];\n }\n\n if (self._abort) {\n return fn();\n }\n\n if (err) {\n return hookErr(err, errSuite, true);\n }\n\n // next test\n test = tests.shift();\n\n // all done\n if (!test) {\n return fn();\n }\n\n // grep\n var match = self._grep.test(test.fullTitle());\n if (self._invert) {\n match = !match;\n }\n if (!match) {\n // Run immediately only if we have defined a grep. When we\n // define a grep — It can cause maximum callstack error if\n // the grep is doing a large recursive loop by neglecting\n // all tests. The run immediately function also comes with\n // a performance cost. So we don't want to run immediately\n // if we run the whole test suite, because running the whole\n // test suite don't do any immediate recursive loops. Thus,\n // allowing a JS runtime to breathe.\n if (self._grep !== self._defaultGrep) {\n Runner.immediately(next);\n } else {\n next();\n }\n return;\n }\n\n // static skip, no hooks are executed\n if (test.isPending()) {\n if (self.forbidPending) {\n self.fail(test, new Error('Pending test forbidden'), true);\n } else {\n test.state = STATE_PENDING;\n self.emit(constants.EVENT_TEST_PENDING, test);\n }\n self.emit(constants.EVENT_TEST_END, test);\n return next();\n }\n\n // execute test and hook(s)\n self.emit(constants.EVENT_TEST_BEGIN, (self.test = test));\n self.hookDown(HOOK_TYPE_BEFORE_EACH, function (err, errSuite) {\n // conditional skip within beforeEach\n if (test.isPending()) {\n if (self.forbidPending) {\n self.fail(test, new Error('Pending test forbidden'), true);\n } else {\n test.state = STATE_PENDING;\n self.emit(constants.EVENT_TEST_PENDING, test);\n }\n self.emit(constants.EVENT_TEST_END, test);\n // skip inner afterEach hooks below errSuite level\n var origSuite = self.suite;\n self.suite = errSuite || self.suite;\n return self.hookUp(HOOK_TYPE_AFTER_EACH, function (e, eSuite) {\n self.suite = origSuite;\n next(e, eSuite);\n });\n }\n if (err) {\n return hookErr(err, errSuite, false);\n }\n self.currentRunnable = self.test;\n self.runTest(function (err) {\n test = self.test;\n // conditional skip within it\n if (test.pending) {\n if (self.forbidPending) {\n self.fail(test, new Error('Pending test forbidden'), true);\n } else {\n test.state = STATE_PENDING;\n self.emit(constants.EVENT_TEST_PENDING, test);\n }\n self.emit(constants.EVENT_TEST_END, test);\n return self.hookUp(HOOK_TYPE_AFTER_EACH, next);\n } else if (err) {\n var retry = test.currentRetry();\n if (retry < test.retries()) {\n var clonedTest = test.clone();\n clonedTest.currentRetry(retry + 1);\n tests.unshift(clonedTest);\n\n self.emit(constants.EVENT_TEST_RETRY, test, err);\n\n // Early return + hook trigger so that it doesn't\n // increment the count wrong\n return self.hookUp(HOOK_TYPE_AFTER_EACH, next);\n } else {\n self.fail(test, err);\n }\n self.emit(constants.EVENT_TEST_END, test);\n return self.hookUp(HOOK_TYPE_AFTER_EACH, next);\n }\n\n test.state = STATE_PASSED;\n self.emit(constants.EVENT_TEST_PASS, test);\n self.emit(constants.EVENT_TEST_END, test);\n self.hookUp(HOOK_TYPE_AFTER_EACH, next);\n });\n });\n }\n\n this.next = next;\n this.hookErr = hookErr;\n next();\n};\n\n/**\n * Run the given `suite` and invoke the callback `fn()` when complete.\n *\n * @private\n * @param {Suite} suite\n * @param {Function} fn\n */\nRunner.prototype.runSuite = function (suite, fn) {\n var i = 0;\n var self = this;\n var total = this.grepTotal(suite);\n\n debug('runSuite(): running %s', suite.fullTitle());\n\n if (!total || (self.failures && suite._bail)) {\n debug('runSuite(): bailing');\n return fn();\n }\n\n this.emit(constants.EVENT_SUITE_BEGIN, (this.suite = suite));\n\n function next(errSuite) {\n if (errSuite) {\n // current suite failed on a hook from errSuite\n if (errSuite === suite) {\n // if errSuite is current suite\n // continue to the next sibling suite\n return done();\n }\n // errSuite is among the parents of current suite\n // stop execution of errSuite and all sub-suites\n return done(errSuite);\n }\n\n if (self._abort) {\n return done();\n }\n\n var curr = suite.suites[i++];\n if (!curr) {\n return done();\n }\n\n // Avoid grep neglecting large number of tests causing a\n // huge recursive loop and thus a maximum call stack error.\n // See comment in `this.runTests()` for more information.\n if (self._grep !== self._defaultGrep) {\n Runner.immediately(function () {\n self.runSuite(curr, next);\n });\n } else {\n self.runSuite(curr, next);\n }\n }\n\n function done(errSuite) {\n self.suite = suite;\n self.nextSuite = next;\n\n // remove reference to test\n delete self.test;\n\n self.hook(HOOK_TYPE_AFTER_ALL, function () {\n self.emit(constants.EVENT_SUITE_END, suite);\n fn(errSuite);\n });\n }\n\n this.nextSuite = next;\n\n this.hook(HOOK_TYPE_BEFORE_ALL, function (err) {\n if (err) {\n return done();\n }\n self.runTests(suite, next);\n });\n};\n\n/**\n * Handle uncaught exceptions within runner.\n *\n * This function is bound to the instance as `Runner#uncaught` at instantiation\n * time. It's intended to be listening on the `Process.uncaughtException` event.\n * In order to not leak EE listeners, we need to ensure no more than a single\n * `uncaughtException` listener exists per `Runner`. The only way to do\n * this--because this function needs the context (and we don't have lambdas)--is\n * to use `Function.prototype.bind`. We need strict equality to unregister and\n * _only_ unregister the _one_ listener we set from the\n * `Process.uncaughtException` event; would be poor form to just remove\n * everything. See {@link Runner#run} for where the event listener is registered\n * and unregistered.\n * @param {Error} err - Some uncaught error\n * @private\n */\nRunner.prototype._uncaught = function (err) {\n // this is defensive to prevent future developers from mis-calling this function.\n // it's more likely that it'd be called with the incorrect context--say, the global\n // `process` object--than it would to be called with a context that is not a \"subclass\"\n // of `Runner`.\n if (!(this instanceof Runner)) {\n throw createFatalError(\n 'Runner#uncaught() called with invalid context',\n this\n );\n }\n if (err instanceof Pending) {\n debug('uncaught(): caught a Pending');\n return;\n }\n // browser does not exit script when throwing in global.onerror()\n if (this.allowUncaught && !utils.isBrowser()) {\n debug('uncaught(): bubbling exception due to --allow-uncaught');\n throw err;\n }\n\n if (this.state === constants.STATE_STOPPED) {\n debug('uncaught(): throwing after run has completed!');\n throw err;\n }\n\n if (err) {\n debug('uncaught(): got truthy exception %O', err);\n } else {\n debug('uncaught(): undefined/falsy exception');\n err = createInvalidExceptionError(\n 'Caught falsy/undefined exception which would otherwise be uncaught. No stack trace found; try a debugger',\n err\n );\n }\n\n if (!isError(err)) {\n err = thrown2Error(err);\n debug('uncaught(): converted \"error\" %o to Error', err);\n }\n err.uncaught = true;\n\n var runnable = this.currentRunnable;\n\n if (!runnable) {\n runnable = new Runnable('Uncaught error outside test suite');\n debug('uncaught(): no current Runnable; created a phony one');\n runnable.parent = this.suite;\n\n if (this.state === constants.STATE_RUNNING) {\n debug('uncaught(): failing gracefully');\n this.fail(runnable, err);\n } else {\n // Can't recover from this failure\n debug('uncaught(): test run has not yet started; unrecoverable');\n this.emit(constants.EVENT_RUN_BEGIN);\n this.fail(runnable, err);\n this.emit(constants.EVENT_RUN_END);\n }\n\n return;\n }\n\n runnable.clearTimeout();\n\n if (runnable.isFailed()) {\n debug('uncaught(): Runnable has already failed');\n // Ignore error if already failed\n return;\n } else if (runnable.isPending()) {\n debug('uncaught(): pending Runnable wound up failing!');\n // report 'pending test' retrospectively as failed\n this.fail(runnable, err, true);\n return;\n }\n\n // we cannot recover gracefully if a Runnable has already passed\n // then fails asynchronously\n if (runnable.isPassed()) {\n debug('uncaught(): Runnable has already passed; bailing gracefully');\n this.fail(runnable, err);\n this.abort();\n } else {\n debug('uncaught(): forcing Runnable to complete with Error');\n return runnable.callback(err);\n }\n};\n\n/**\n * Run the root suite and invoke `fn(failures)`\n * on completion.\n *\n * @public\n * @memberof Runner\n * @param {Function} fn - Callback when finished\n * @param {Object} [opts] - For subclasses\n * @param {string[]} opts.files - Files to run\n * @param {Options} opts.options - command-line options\n * @returns {Runner} Runner instance.\n */\nRunner.prototype.run = function (fn, opts = {}) {\n var rootSuite = this.suite;\n var options = opts.options || {};\n\n debug('run(): got options: %O', options);\n fn = fn || function () {};\n\n const end = () => {\n if (!this.total && this._opts.failZero) this.failures = 1;\n\n debug('run(): root suite completed; emitting %s', constants.EVENT_RUN_END);\n this.emit(constants.EVENT_RUN_END);\n };\n\n const begin = () => {\n debug('run(): emitting %s', constants.EVENT_RUN_BEGIN);\n this.emit(constants.EVENT_RUN_BEGIN);\n debug('run(): emitted %s', constants.EVENT_RUN_BEGIN);\n\n this.runSuite(rootSuite, end);\n };\n\n const prepare = () => {\n debug('run(): starting');\n // If there is an `only` filter\n if (rootSuite.hasOnly()) {\n rootSuite.filterOnly();\n debug('run(): filtered exclusive Runnables');\n }\n this.state = constants.STATE_RUNNING;\n if (this._opts.delay) {\n this.emit(constants.EVENT_DELAY_END);\n debug('run(): \"delay\" ended');\n }\n\n return begin();\n };\n\n // references cleanup to avoid memory leaks\n if (this._opts.cleanReferencesAfterRun) {\n this.on(constants.EVENT_SUITE_END, suite => {\n suite.cleanReferences();\n });\n }\n\n // callback\n this.on(constants.EVENT_RUN_END, function () {\n this.state = constants.STATE_STOPPED;\n debug('run(): emitted %s', constants.EVENT_RUN_END);\n fn(this.failures);\n });\n\n this._removeEventListener(process, 'uncaughtException', this.uncaught);\n this._removeEventListener(process, 'unhandledRejection', this.unhandled);\n this._addEventListener(process, 'uncaughtException', this.uncaught);\n this._addEventListener(process, 'unhandledRejection', this.unhandled);\n\n if (this._opts.delay) {\n // for reporters, I guess.\n // might be nice to debounce some dots while we wait.\n this.emit(constants.EVENT_DELAY_BEGIN, rootSuite);\n rootSuite.once(EVENT_ROOT_SUITE_RUN, prepare);\n debug('run(): waiting for green light due to --delay');\n } else {\n Runner.immediately(prepare);\n }\n\n return this;\n};\n\n/**\n * Toggle partial object linking behavior; used for building object references from\n * unique ID's. Does nothing in serial mode, because the object references already exist.\n * Subclasses can implement this (e.g., `ParallelBufferedRunner`)\n * @abstract\n * @param {boolean} [value] - If `true`, enable partial object linking, otherwise disable\n * @returns {Runner}\n * @chainable\n * @public\n * @example\n * // this reporter needs proper object references when run in parallel mode\n * class MyReporter() {\n * constructor(runner) {\n * this.runner.linkPartialObjects(true)\n * .on(EVENT_SUITE_BEGIN, suite => {\n // this Suite may be the same object...\n * })\n * .on(EVENT_TEST_BEGIN, test => {\n * // ...as the `test.parent` property\n * });\n * }\n * }\n */\nRunner.prototype.linkPartialObjects = function (value) {\n return this;\n};\n\n/*\n * Like {@link Runner#run}, but does not accept a callback and returns a `Promise` instead of a `Runner`.\n * This function cannot reject; an `unhandledRejection` event will bubble up to the `process` object instead.\n * @public\n * @memberof Runner\n * @param {Object} [opts] - Options for {@link Runner#run}\n * @returns {Promise} Failure count\n */\nRunner.prototype.runAsync = async function runAsync(opts = {}) {\n return new Promise(resolve => {\n this.run(resolve, opts);\n });\n};\n\n/**\n * Cleanly abort execution.\n *\n * @memberof Runner\n * @public\n * @return {Runner} Runner instance.\n */\nRunner.prototype.abort = function () {\n debug('abort(): aborting');\n this._abort = true;\n\n return this;\n};\n\n/**\n * Returns `true` if Mocha is running in parallel mode. For reporters.\n *\n * Subclasses should return an appropriate value.\n * @public\n * @returns {false}\n */\nRunner.prototype.isParallelMode = function isParallelMode() {\n return false;\n};\n\n/**\n * Configures an alternate reporter for worker processes to use. Subclasses\n * using worker processes should implement this.\n * @public\n * @param {string} path - Absolute path to alternate reporter for worker processes to use\n * @returns {Runner}\n * @throws When in serial mode\n * @chainable\n * @abstract\n */\nRunner.prototype.workerReporter = function () {\n throw createUnsupportedError('workerReporter() not supported in serial mode');\n};\n\n/**\n * Filter leaks with the given globals flagged as `ok`.\n *\n * @private\n * @param {Array} ok\n * @param {Array} globals\n * @return {Array}\n */\nfunction filterLeaks(ok, globals) {\n return globals.filter(function (key) {\n // Firefox and Chrome exposes iframes as index inside the window object\n if (/^\\d+/.test(key)) {\n return false;\n }\n\n // in firefox\n // if runner runs in an iframe, this iframe's window.getInterface method\n // not init at first it is assigned in some seconds\n if (global.navigator && /^getInterface/.test(key)) {\n return false;\n }\n\n // an iframe could be approached by window[iframeIndex]\n // in ie6,7,8 and opera, iframeIndex is enumerable, this could cause leak\n if (global.navigator && /^\\d+/.test(key)) {\n return false;\n }\n\n // Opera and IE expose global variables for HTML element IDs (issue #243)\n if (/^mocha-/.test(key)) {\n return false;\n }\n\n var matched = ok.filter(function (ok) {\n if (~ok.indexOf('*')) {\n return key.indexOf(ok.split('*')[0]) === 0;\n }\n return key === ok;\n });\n return !matched.length && (!global.navigator || key !== 'onerror');\n });\n}\n\n/**\n * Check if argument is an instance of Error object or a duck-typed equivalent.\n *\n * @private\n * @param {Object} err - object to check\n * @param {string} err.message - error message\n * @returns {boolean}\n */\nfunction isError(err) {\n return err instanceof Error || (err && typeof err.message === 'string');\n}\n\n/**\n *\n * Converts thrown non-extensible type into proper Error.\n *\n * @private\n * @param {*} thrown - Non-extensible type thrown by code\n * @return {Error}\n */\nfunction thrown2Error(err) {\n return new Error(\n `the ${utils.canonicalType(err)} ${stringify(\n err\n )} was thrown, throw an Error :)`\n );\n}\n\nRunner.constants = constants;\n\n/**\n * Node.js' `EventEmitter`\n * @external EventEmitter\n * @see {@link https://nodejs.org/api/events.html#events_class_eventemitter}\n */\n\nmodule.exports = Runner;\n","'use strict';\n/**\n * @module Base\n */\n/**\n * Module dependencies.\n */\n\nvar diff = require('diff');\nvar milliseconds = require('ms');\nvar utils = require('../utils');\nvar supportsColor = require('supports-color');\nvar symbols = require('log-symbols');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\n\nconst isBrowser = utils.isBrowser();\n\nfunction getBrowserWindowSize() {\n if ('innerHeight' in global) {\n return [global.innerHeight, global.innerWidth];\n }\n // In a Web Worker, the DOM Window is not available.\n return [640, 480];\n}\n\n/**\n * Expose `Base`.\n */\n\nexports = module.exports = Base;\n\n/**\n * Check if both stdio streams are associated with a tty.\n */\n\nvar isatty = isBrowser || (process.stdout.isTTY && process.stderr.isTTY);\n\n/**\n * Save log references to avoid tests interfering (see GH-3604).\n */\nvar consoleLog = console.log;\n\n/**\n * Enable coloring by default, except in the browser interface.\n */\n\nexports.useColors =\n !isBrowser &&\n (supportsColor.stdout || process.env.MOCHA_COLORS !== undefined);\n\n/**\n * Inline diffs instead of +/-\n */\n\nexports.inlineDiffs = false;\n\n/**\n * Truncate diffs longer than this value to avoid slow performance\n */\nexports.maxDiffSize = 8192;\n\n/**\n * Default color map.\n */\n\nexports.colors = {\n pass: 90,\n fail: 31,\n 'bright pass': 92,\n 'bright fail': 91,\n 'bright yellow': 93,\n pending: 36,\n suite: 0,\n 'error title': 0,\n 'error message': 31,\n 'error stack': 90,\n checkmark: 32,\n fast: 90,\n medium: 33,\n slow: 31,\n green: 32,\n light: 90,\n 'diff gutter': 90,\n 'diff added': 32,\n 'diff removed': 31,\n 'diff added inline': '30;42',\n 'diff removed inline': '30;41'\n};\n\n/**\n * Default symbol map.\n */\n\nexports.symbols = {\n ok: symbols.success,\n err: symbols.error,\n dot: '.',\n comma: ',',\n bang: '!'\n};\n\n/**\n * Color `str` with the given `type`,\n * allowing colors to be disabled,\n * as well as user-defined color\n * schemes.\n *\n * @private\n * @param {string} type\n * @param {string} str\n * @return {string}\n */\nvar color = (exports.color = function (type, str) {\n if (!exports.useColors) {\n return String(str);\n }\n return '\\u001b[' + exports.colors[type] + 'm' + str + '\\u001b[0m';\n});\n\n/**\n * Expose term window size, with some defaults for when stderr is not a tty.\n */\n\nexports.window = {\n width: 75\n};\n\nif (isatty) {\n if (isBrowser) {\n exports.window.width = getBrowserWindowSize()[1];\n } else {\n exports.window.width = process.stdout.getWindowSize(1)[0];\n }\n}\n\n/**\n * Expose some basic cursor interactions that are common among reporters.\n */\n\nexports.cursor = {\n hide: function () {\n isatty && process.stdout.write('\\u001b[?25l');\n },\n\n show: function () {\n isatty && process.stdout.write('\\u001b[?25h');\n },\n\n deleteLine: function () {\n isatty && process.stdout.write('\\u001b[2K');\n },\n\n beginningOfLine: function () {\n isatty && process.stdout.write('\\u001b[0G');\n },\n\n CR: function () {\n if (isatty) {\n exports.cursor.deleteLine();\n exports.cursor.beginningOfLine();\n } else {\n process.stdout.write('\\r');\n }\n }\n};\n\nvar showDiff = (exports.showDiff = function (err) {\n return (\n err &&\n err.showDiff !== false &&\n sameType(err.actual, err.expected) &&\n err.expected !== undefined\n );\n});\n\nfunction stringifyDiffObjs(err) {\n if (!utils.isString(err.actual) || !utils.isString(err.expected)) {\n err.actual = utils.stringify(err.actual);\n err.expected = utils.stringify(err.expected);\n }\n}\n\n/**\n * Returns a diff between 2 strings with coloured ANSI output.\n *\n * @description\n * The diff will be either inline or unified dependent on the value\n * of `Base.inlineDiff`.\n *\n * @param {string} actual\n * @param {string} expected\n * @return {string} Diff\n */\n\nvar generateDiff = (exports.generateDiff = function (actual, expected) {\n try {\n var maxLen = exports.maxDiffSize;\n var skipped = 0;\n if (maxLen > 0) {\n skipped = Math.max(actual.length - maxLen, expected.length - maxLen);\n actual = actual.slice(0, maxLen);\n expected = expected.slice(0, maxLen);\n }\n let result = exports.inlineDiffs\n ? inlineDiff(actual, expected)\n : unifiedDiff(actual, expected);\n if (skipped > 0) {\n result = `${result}\\n [mocha] output truncated to ${maxLen} characters, see \"maxDiffSize\" reporter-option\\n`;\n }\n return result;\n } catch (err) {\n var msg =\n '\\n ' +\n color('diff added', '+ expected') +\n ' ' +\n color('diff removed', '- actual: failed to generate Mocha diff') +\n '\\n';\n return msg;\n }\n});\n\n/**\n * Outputs the given `failures` as a list.\n *\n * @public\n * @memberof Mocha.reporters.Base\n * @variation 1\n * @param {Object[]} failures - Each is Test instance with corresponding\n * Error property\n */\nexports.list = function (failures) {\n var multipleErr, multipleTest;\n Base.consoleLog();\n failures.forEach(function (test, i) {\n // format\n var fmt =\n color('error title', ' %s) %s:\\n') +\n color('error message', ' %s') +\n color('error stack', '\\n%s\\n');\n\n // msg\n var msg;\n var err;\n if (test.err && test.err.multiple) {\n if (multipleTest !== test) {\n multipleTest = test;\n multipleErr = [test.err].concat(test.err.multiple);\n }\n err = multipleErr.shift();\n } else {\n err = test.err;\n }\n var message;\n if (typeof err.inspect === 'function') {\n message = err.inspect() + '';\n } else if (err.message && typeof err.message.toString === 'function') {\n message = err.message + '';\n } else {\n message = '';\n }\n var stack = err.stack || message;\n var index = message ? stack.indexOf(message) : -1;\n\n if (index === -1) {\n msg = message;\n } else {\n index += message.length;\n msg = stack.slice(0, index);\n // remove msg from stack\n stack = stack.slice(index + 1);\n }\n\n // uncaught\n if (err.uncaught) {\n msg = 'Uncaught ' + msg;\n }\n // explicitly show diff\n if (!exports.hideDiff && showDiff(err)) {\n stringifyDiffObjs(err);\n fmt =\n color('error title', ' %s) %s:\\n%s') + color('error stack', '\\n%s\\n');\n var match = message.match(/^([^:]+): expected/);\n msg = '\\n ' + color('error message', match ? match[1] : msg);\n\n msg += generateDiff(err.actual, err.expected);\n }\n\n // indent stack trace\n stack = stack.replace(/^/gm, ' ');\n\n // indented test title\n var testTitle = '';\n test.titlePath().forEach(function (str, index) {\n if (index !== 0) {\n testTitle += '\\n ';\n }\n for (var i = 0; i < index; i++) {\n testTitle += ' ';\n }\n testTitle += str;\n });\n\n Base.consoleLog(fmt, i + 1, testTitle, msg, stack);\n });\n};\n\n/**\n * Constructs a new `Base` reporter instance.\n *\n * @description\n * All other reporters generally inherit from this reporter.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Base(runner, options) {\n var failures = (this.failures = []);\n\n if (!runner) {\n throw new TypeError('Missing runner argument');\n }\n this.options = options || {};\n this.runner = runner;\n this.stats = runner.stats; // assigned so Reporters keep a closer reference\n\n var maxDiffSizeOpt =\n this.options.reporterOption && this.options.reporterOption.maxDiffSize;\n if (maxDiffSizeOpt !== undefined && !isNaN(Number(maxDiffSizeOpt))) {\n exports.maxDiffSize = Number(maxDiffSizeOpt);\n }\n\n runner.on(EVENT_TEST_PASS, function (test) {\n if (test.duration > test.slow()) {\n test.speed = 'slow';\n } else if (test.duration > test.slow() / 2) {\n test.speed = 'medium';\n } else {\n test.speed = 'fast';\n }\n });\n\n runner.on(EVENT_TEST_FAIL, function (test, err) {\n if (showDiff(err)) {\n stringifyDiffObjs(err);\n }\n // more than one error per test\n if (test.err && err instanceof Error) {\n test.err.multiple = (test.err.multiple || []).concat(err);\n } else {\n test.err = err;\n }\n failures.push(test);\n });\n}\n\n/**\n * Outputs common epilogue used by many of the bundled reporters.\n *\n * @public\n * @memberof Mocha.reporters\n */\nBase.prototype.epilogue = function () {\n var stats = this.stats;\n var fmt;\n\n Base.consoleLog();\n\n // passes\n fmt =\n color('bright pass', ' ') +\n color('green', ' %d passing') +\n color('light', ' (%s)');\n\n Base.consoleLog(fmt, stats.passes || 0, milliseconds(stats.duration));\n\n // pending\n if (stats.pending) {\n fmt = color('pending', ' ') + color('pending', ' %d pending');\n\n Base.consoleLog(fmt, stats.pending);\n }\n\n // failures\n if (stats.failures) {\n fmt = color('fail', ' %d failing');\n\n Base.consoleLog(fmt, stats.failures);\n\n Base.list(this.failures);\n Base.consoleLog();\n }\n\n Base.consoleLog();\n};\n\n/**\n * Pads the given `str` to `len`.\n *\n * @private\n * @param {string} str\n * @param {string} len\n * @return {string}\n */\nfunction pad(str, len) {\n str = String(str);\n return Array(len - str.length + 1).join(' ') + str;\n}\n\n/**\n * Returns inline diff between 2 strings with coloured ANSI output.\n *\n * @private\n * @param {String} actual\n * @param {String} expected\n * @return {string} Diff\n */\nfunction inlineDiff(actual, expected) {\n var msg = errorDiff(actual, expected);\n\n // linenos\n var lines = msg.split('\\n');\n if (lines.length > 4) {\n var width = String(lines.length).length;\n msg = lines\n .map(function (str, i) {\n return pad(++i, width) + ' |' + ' ' + str;\n })\n .join('\\n');\n }\n\n // legend\n msg =\n '\\n' +\n color('diff removed inline', 'actual') +\n ' ' +\n color('diff added inline', 'expected') +\n '\\n\\n' +\n msg +\n '\\n';\n\n // indent\n msg = msg.replace(/^/gm, ' ');\n return msg;\n}\n\n/**\n * Returns unified diff between two strings with coloured ANSI output.\n *\n * @private\n * @param {String} actual\n * @param {String} expected\n * @return {string} The diff.\n */\nfunction unifiedDiff(actual, expected) {\n var indent = ' ';\n function cleanUp(line) {\n if (line[0] === '+') {\n return indent + colorLines('diff added', line);\n }\n if (line[0] === '-') {\n return indent + colorLines('diff removed', line);\n }\n if (line.match(/@@/)) {\n return '--';\n }\n if (line.match(/\\\\ No newline/)) {\n return null;\n }\n return indent + line;\n }\n function notBlank(line) {\n return typeof line !== 'undefined' && line !== null;\n }\n var msg = diff.createPatch('string', actual, expected);\n var lines = msg.split('\\n').splice(5);\n return (\n '\\n ' +\n colorLines('diff added', '+ expected') +\n ' ' +\n colorLines('diff removed', '- actual') +\n '\\n\\n' +\n lines.map(cleanUp).filter(notBlank).join('\\n')\n );\n}\n\n/**\n * Returns character diff for `err`.\n *\n * @private\n * @param {String} actual\n * @param {String} expected\n * @return {string} the diff\n */\nfunction errorDiff(actual, expected) {\n return diff\n .diffWordsWithSpace(actual, expected)\n .map(function (str) {\n if (str.added) {\n return colorLines('diff added inline', str.value);\n }\n if (str.removed) {\n return colorLines('diff removed inline', str.value);\n }\n return str.value;\n })\n .join('');\n}\n\n/**\n * Colors lines for `str`, using the color `name`.\n *\n * @private\n * @param {string} name\n * @param {string} str\n * @return {string}\n */\nfunction colorLines(name, str) {\n return str\n .split('\\n')\n .map(function (str) {\n return color(name, str);\n })\n .join('\\n');\n}\n\n/**\n * Object#toString reference.\n */\nvar objToString = Object.prototype.toString;\n\n/**\n * Checks that a / b have the same type.\n *\n * @private\n * @param {Object} a\n * @param {Object} b\n * @return {boolean}\n */\nfunction sameType(a, b) {\n return objToString.call(a) === objToString.call(b);\n}\n\nBase.consoleLog = consoleLog;\n\nBase.abstract = true;\n","'use strict';\n/**\n * @module Dot\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar inherits = require('../utils').inherits;\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\n\n/**\n * Expose `Dot`.\n */\n\nexports = module.exports = Dot;\n\n/**\n * Constructs a new `Dot` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Dot(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var width = (Base.window.width * 0.75) | 0;\n var n = -1;\n\n runner.on(EVENT_RUN_BEGIN, function () {\n process.stdout.write('\\n');\n });\n\n runner.on(EVENT_TEST_PENDING, function () {\n if (++n % width === 0) {\n process.stdout.write('\\n ');\n }\n process.stdout.write(Base.color('pending', Base.symbols.comma));\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n if (++n % width === 0) {\n process.stdout.write('\\n ');\n }\n if (test.speed === 'slow') {\n process.stdout.write(Base.color('bright yellow', Base.symbols.dot));\n } else {\n process.stdout.write(Base.color(test.speed, Base.symbols.dot));\n }\n });\n\n runner.on(EVENT_TEST_FAIL, function () {\n if (++n % width === 0) {\n process.stdout.write('\\n ');\n }\n process.stdout.write(Base.color('fail', Base.symbols.bang));\n });\n\n runner.once(EVENT_RUN_END, function () {\n process.stdout.write('\\n');\n self.epilogue();\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(Dot, Base);\n\nDot.description = 'dot matrix representation';\n","'use strict';\n/**\n * @module Doc\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar utils = require('../utils');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;\nvar EVENT_SUITE_END = constants.EVENT_SUITE_END;\n\n/**\n * Expose `Doc`.\n */\n\nexports = module.exports = Doc;\n\n/**\n * Constructs a new `Doc` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Doc(runner, options) {\n Base.call(this, runner, options);\n\n var indents = 2;\n\n function indent() {\n return Array(indents).join(' ');\n }\n\n runner.on(EVENT_SUITE_BEGIN, function (suite) {\n if (suite.root) {\n return;\n }\n ++indents;\n Base.consoleLog('%s
', indent());\n ++indents;\n Base.consoleLog('%s

%s

', indent(), utils.escape(suite.title));\n Base.consoleLog('%s
', indent());\n });\n\n runner.on(EVENT_SUITE_END, function (suite) {\n if (suite.root) {\n return;\n }\n Base.consoleLog('%s
', indent());\n --indents;\n Base.consoleLog('%s
', indent());\n --indents;\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n Base.consoleLog('%s
%s
', indent(), utils.escape(test.title));\n Base.consoleLog('%s
%s
', indent(), utils.escape(test.file));\n var code = utils.escape(utils.clean(test.body));\n Base.consoleLog('%s
%s
', indent(), code);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test, err) {\n Base.consoleLog(\n '%s
%s
',\n indent(),\n utils.escape(test.title)\n );\n Base.consoleLog(\n '%s
%s
',\n indent(),\n utils.escape(test.file)\n );\n var code = utils.escape(utils.clean(test.body));\n Base.consoleLog(\n '%s
%s
',\n indent(),\n code\n );\n Base.consoleLog(\n '%s
%s
',\n indent(),\n utils.escape(err)\n );\n });\n}\n\nDoc.description = 'HTML documentation';\n","'use strict';\n/**\n * @module TAP\n */\n/**\n * Module dependencies.\n */\n\nvar util = require('util');\nvar Base = require('./base');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar EVENT_TEST_END = constants.EVENT_TEST_END;\nvar inherits = require('../utils').inherits;\nvar sprintf = util.format;\n\n/**\n * Expose `TAP`.\n */\n\nexports = module.exports = TAP;\n\n/**\n * Constructs a new `TAP` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction TAP(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var n = 1;\n\n var tapVersion = '12';\n if (options && options.reporterOptions) {\n if (options.reporterOptions.tapVersion) {\n tapVersion = options.reporterOptions.tapVersion.toString();\n }\n }\n\n this._producer = createProducer(tapVersion);\n\n runner.once(EVENT_RUN_BEGIN, function () {\n self._producer.writeVersion();\n });\n\n runner.on(EVENT_TEST_END, function () {\n ++n;\n });\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n self._producer.writePending(n, test);\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n self._producer.writePass(n, test);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test, err) {\n self._producer.writeFail(n, test, err);\n });\n\n runner.once(EVENT_RUN_END, function () {\n self._producer.writeEpilogue(runner.stats);\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(TAP, Base);\n\n/**\n * Returns a TAP-safe title of `test`.\n *\n * @private\n * @param {Test} test - Test instance.\n * @return {String} title with any hash character removed\n */\nfunction title(test) {\n return test.fullTitle().replace(/#/g, '');\n}\n\n/**\n * Writes newline-terminated formatted string to reporter output stream.\n *\n * @private\n * @param {string} format - `printf`-like format string\n * @param {...*} [varArgs] - Format string arguments\n */\nfunction println(format, varArgs) {\n var vargs = Array.from(arguments);\n vargs[0] += '\\n';\n process.stdout.write(sprintf.apply(null, vargs));\n}\n\n/**\n * Returns a `tapVersion`-appropriate TAP producer instance, if possible.\n *\n * @private\n * @param {string} tapVersion - Version of TAP specification to produce.\n * @returns {TAPProducer} specification-appropriate instance\n * @throws {Error} if specification version has no associated producer.\n */\nfunction createProducer(tapVersion) {\n var producers = {\n 12: new TAP12Producer(),\n 13: new TAP13Producer()\n };\n var producer = producers[tapVersion];\n\n if (!producer) {\n throw new Error(\n 'invalid or unsupported TAP version: ' + JSON.stringify(tapVersion)\n );\n }\n\n return producer;\n}\n\n/**\n * @summary\n * Constructs a new TAPProducer.\n *\n * @description\n * Only to be used as an abstract base class.\n *\n * @private\n * @constructor\n */\nfunction TAPProducer() {}\n\n/**\n * Writes the TAP version to reporter output stream.\n *\n * @abstract\n */\nTAPProducer.prototype.writeVersion = function () {};\n\n/**\n * Writes the plan to reporter output stream.\n *\n * @abstract\n * @param {number} ntests - Number of tests that are planned to run.\n */\nTAPProducer.prototype.writePlan = function (ntests) {\n println('%d..%d', 1, ntests);\n};\n\n/**\n * Writes that test passed to reporter output stream.\n *\n * @abstract\n * @param {number} n - Index of test that passed.\n * @param {Test} test - Instance containing test information.\n */\nTAPProducer.prototype.writePass = function (n, test) {\n println('ok %d %s', n, title(test));\n};\n\n/**\n * Writes that test was skipped to reporter output stream.\n *\n * @abstract\n * @param {number} n - Index of test that was skipped.\n * @param {Test} test - Instance containing test information.\n */\nTAPProducer.prototype.writePending = function (n, test) {\n println('ok %d %s # SKIP -', n, title(test));\n};\n\n/**\n * Writes that test failed to reporter output stream.\n *\n * @abstract\n * @param {number} n - Index of test that failed.\n * @param {Test} test - Instance containing test information.\n * @param {Error} err - Reason the test failed.\n */\nTAPProducer.prototype.writeFail = function (n, test, err) {\n println('not ok %d %s', n, title(test));\n};\n\n/**\n * Writes the summary epilogue to reporter output stream.\n *\n * @abstract\n * @param {Object} stats - Object containing run statistics.\n */\nTAPProducer.prototype.writeEpilogue = function (stats) {\n // :TBD: Why is this not counting pending tests?\n println('# tests ' + (stats.passes + stats.failures));\n println('# pass ' + stats.passes);\n // :TBD: Why are we not showing pending results?\n println('# fail ' + stats.failures);\n this.writePlan(stats.passes + stats.failures + stats.pending);\n};\n\n/**\n * @summary\n * Constructs a new TAP12Producer.\n *\n * @description\n * Produces output conforming to the TAP12 specification.\n *\n * @private\n * @constructor\n * @extends TAPProducer\n * @see {@link https://testanything.org/tap-specification.html|Specification}\n */\nfunction TAP12Producer() {\n /**\n * Writes that test failed to reporter output stream, with error formatting.\n * @override\n */\n this.writeFail = function (n, test, err) {\n TAPProducer.prototype.writeFail.call(this, n, test, err);\n if (err.message) {\n println(err.message.replace(/^/gm, ' '));\n }\n if (err.stack) {\n println(err.stack.replace(/^/gm, ' '));\n }\n };\n}\n\n/**\n * Inherit from `TAPProducer.prototype`.\n */\ninherits(TAP12Producer, TAPProducer);\n\n/**\n * @summary\n * Constructs a new TAP13Producer.\n *\n * @description\n * Produces output conforming to the TAP13 specification.\n *\n * @private\n * @constructor\n * @extends TAPProducer\n * @see {@link https://testanything.org/tap-version-13-specification.html|Specification}\n */\nfunction TAP13Producer() {\n /**\n * Writes the TAP version to reporter output stream.\n * @override\n */\n this.writeVersion = function () {\n println('TAP version 13');\n };\n\n /**\n * Writes that test failed to reporter output stream, with error formatting.\n * @override\n */\n this.writeFail = function (n, test, err) {\n TAPProducer.prototype.writeFail.call(this, n, test, err);\n var emitYamlBlock = err.message != null || err.stack != null;\n if (emitYamlBlock) {\n println(indent(1) + '---');\n if (err.message) {\n println(indent(2) + 'message: |-');\n println(err.message.replace(/^/gm, indent(3)));\n }\n if (err.stack) {\n println(indent(2) + 'stack: |-');\n println(err.stack.replace(/^/gm, indent(3)));\n }\n println(indent(1) + '...');\n }\n };\n\n function indent(level) {\n return Array(level + 1).join(' ');\n }\n}\n\n/**\n * Inherit from `TAPProducer.prototype`.\n */\ninherits(TAP13Producer, TAPProducer);\n\nTAP.description = 'TAP-compatible output';\n","'use strict';\n/**\n * @module JSON\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar fs = require('fs');\nvar path = require('path');\nconst createUnsupportedError = require('../errors').createUnsupportedError;\nconst utils = require('../utils');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_TEST_END = constants.EVENT_TEST_END;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\n\n/**\n * Expose `JSON`.\n */\n\nexports = module.exports = JSONReporter;\n\n/**\n * Constructs a new `JSON` reporter instance.\n *\n * @public\n * @class JSON\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction JSONReporter(runner, options = {}) {\n Base.call(this, runner, options);\n\n var self = this;\n var tests = [];\n var pending = [];\n var failures = [];\n var passes = [];\n var output;\n\n if (options.reporterOption && options.reporterOption.output) {\n if (utils.isBrowser()) {\n throw createUnsupportedError('file output not supported in browser');\n }\n output = options.reporterOption.output;\n }\n\n runner.on(EVENT_TEST_END, function (test) {\n tests.push(test);\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n passes.push(test);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test) {\n failures.push(test);\n });\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n pending.push(test);\n });\n\n runner.once(EVENT_RUN_END, function () {\n var obj = {\n stats: self.stats,\n tests: tests.map(clean),\n pending: pending.map(clean),\n failures: failures.map(clean),\n passes: passes.map(clean)\n };\n\n runner.testResults = obj;\n\n var json = JSON.stringify(obj, null, 2);\n if (output) {\n try {\n fs.mkdirSync(path.dirname(output), {recursive: true});\n fs.writeFileSync(output, json);\n } catch (err) {\n console.error(\n `${Base.symbols.err} [mocha] writing output to \"${output}\" failed: ${err.message}\\n`\n );\n process.stdout.write(json);\n }\n } else {\n process.stdout.write(json);\n }\n });\n}\n\n/**\n * Return a plain-object representation of `test`\n * free of cyclic properties etc.\n *\n * @private\n * @param {Object} test\n * @return {Object}\n */\nfunction clean(test) {\n var err = test.err || {};\n if (err instanceof Error) {\n err = errorJSON(err);\n }\n\n return {\n title: test.title,\n fullTitle: test.fullTitle(),\n file: test.file,\n duration: test.duration,\n currentRetry: test.currentRetry(),\n speed: test.speed,\n err: cleanCycles(err)\n };\n}\n\n/**\n * Replaces any circular references inside `obj` with '[object Object]'\n *\n * @private\n * @param {Object} obj\n * @return {Object}\n */\nfunction cleanCycles(obj) {\n var cache = [];\n return JSON.parse(\n JSON.stringify(obj, function (key, value) {\n if (typeof value === 'object' && value !== null) {\n if (cache.indexOf(value) !== -1) {\n // Instead of going in a circle, we'll print [object Object]\n return '' + value;\n }\n cache.push(value);\n }\n\n return value;\n })\n );\n}\n\n/**\n * Transform an Error object into a JSON object.\n *\n * @private\n * @param {Error} err\n * @return {Object}\n */\nfunction errorJSON(err) {\n var res = {};\n Object.getOwnPropertyNames(err).forEach(function (key) {\n res[key] = err[key];\n }, err);\n return res;\n}\n\nJSONReporter.description = 'single JSON object';\n","'use strict';\n\n/**\n @module browser/Progress\n*/\n\n/**\n * Expose `Progress`.\n */\n\nmodule.exports = Progress;\n\n/**\n * Initialize a new `Progress` indicator.\n */\nfunction Progress() {\n this.percent = 0;\n this.size(0);\n this.fontSize(11);\n this.font('helvetica, arial, sans-serif');\n}\n\n/**\n * Set progress size to `size`.\n *\n * @public\n * @param {number} size\n * @return {Progress} Progress instance.\n */\nProgress.prototype.size = function (size) {\n this._size = size;\n return this;\n};\n\n/**\n * Set text to `text`.\n *\n * @public\n * @param {string} text\n * @return {Progress} Progress instance.\n */\nProgress.prototype.text = function (text) {\n this._text = text;\n return this;\n};\n\n/**\n * Set font size to `size`.\n *\n * @public\n * @param {number} size\n * @return {Progress} Progress instance.\n */\nProgress.prototype.fontSize = function (size) {\n this._fontSize = size;\n return this;\n};\n\n/**\n * Set font to `family`.\n *\n * @param {string} family\n * @return {Progress} Progress instance.\n */\nProgress.prototype.font = function (family) {\n this._font = family;\n return this;\n};\n\n/**\n * Update percentage to `n`.\n *\n * @param {number} n\n * @return {Progress} Progress instance.\n */\nProgress.prototype.update = function (n) {\n this.percent = n;\n return this;\n};\n\n/**\n * Draw on `ctx`.\n *\n * @param {CanvasRenderingContext2d} ctx\n * @return {Progress} Progress instance.\n */\nProgress.prototype.draw = function (ctx) {\n try {\n var percent = Math.min(this.percent, 100);\n var size = this._size;\n var half = size / 2;\n var x = half;\n var y = half;\n var rad = half - 1;\n var fontSize = this._fontSize;\n\n ctx.font = fontSize + 'px ' + this._font;\n\n var angle = Math.PI * 2 * (percent / 100);\n ctx.clearRect(0, 0, size, size);\n\n // outer circle\n ctx.strokeStyle = '#9f9f9f';\n ctx.beginPath();\n ctx.arc(x, y, rad, 0, angle, false);\n ctx.stroke();\n\n // inner circle\n ctx.strokeStyle = '#eee';\n ctx.beginPath();\n ctx.arc(x, y, rad - 1, 0, angle, true);\n ctx.stroke();\n\n // text\n var text = this._text || (percent | 0) + '%';\n var w = ctx.measureText(text).width;\n\n ctx.fillText(text, x - w / 2 + 1, y + fontSize / 2 - 1);\n } catch (ignore) {\n // don't fail if we can't render progress\n }\n return this;\n};\n","'use strict';\n\n/* eslint-env browser */\n/**\n * @module HTML\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar utils = require('../utils');\nvar Progress = require('../browser/progress');\nvar escapeRe = require('escape-string-regexp');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;\nvar EVENT_SUITE_END = constants.EVENT_SUITE_END;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar escape = utils.escape;\n\n/**\n * Save timer references to avoid Sinon interfering (see GH-237).\n */\n\nvar Date = global.Date;\n\n/**\n * Expose `HTML`.\n */\n\nexports = module.exports = HTML;\n\n/**\n * Stats template.\n */\n\nvar statsTemplate =\n '';\n\nvar playIcon = '‣';\n\n/**\n * Constructs a new `HTML` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction HTML(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var stats = this.stats;\n var stat = fragment(statsTemplate);\n var items = stat.getElementsByTagName('li');\n var passes = items[1].getElementsByTagName('em')[0];\n var passesLink = items[1].getElementsByTagName('a')[0];\n var failures = items[2].getElementsByTagName('em')[0];\n var failuresLink = items[2].getElementsByTagName('a')[0];\n var duration = items[3].getElementsByTagName('em')[0];\n var canvas = stat.getElementsByTagName('canvas')[0];\n var report = fragment('
    ');\n var stack = [report];\n var progress;\n var ctx;\n var root = document.getElementById('mocha');\n\n if (canvas.getContext) {\n var ratio = window.devicePixelRatio || 1;\n canvas.style.width = canvas.width;\n canvas.style.height = canvas.height;\n canvas.width *= ratio;\n canvas.height *= ratio;\n ctx = canvas.getContext('2d');\n ctx.scale(ratio, ratio);\n progress = new Progress();\n }\n\n if (!root) {\n return error('#mocha div missing, add it to your document');\n }\n\n // pass toggle\n on(passesLink, 'click', function (evt) {\n evt.preventDefault();\n unhide();\n var name = /pass/.test(report.className) ? '' : ' pass';\n report.className = report.className.replace(/fail|pass/g, '') + name;\n if (report.className.trim()) {\n hideSuitesWithout('test pass');\n }\n });\n\n // failure toggle\n on(failuresLink, 'click', function (evt) {\n evt.preventDefault();\n unhide();\n var name = /fail/.test(report.className) ? '' : ' fail';\n report.className = report.className.replace(/fail|pass/g, '') + name;\n if (report.className.trim()) {\n hideSuitesWithout('test fail');\n }\n });\n\n root.appendChild(stat);\n root.appendChild(report);\n\n if (progress) {\n progress.size(40);\n }\n\n runner.on(EVENT_SUITE_BEGIN, function (suite) {\n if (suite.root) {\n return;\n }\n\n // suite\n var url = self.suiteURL(suite);\n var el = fragment(\n '
  • %s

  • ',\n url,\n escape(suite.title)\n );\n\n // container\n stack[0].appendChild(el);\n stack.unshift(document.createElement('ul'));\n el.appendChild(stack[0]);\n });\n\n runner.on(EVENT_SUITE_END, function (suite) {\n if (suite.root) {\n updateStats();\n return;\n }\n stack.shift();\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n var url = self.testURL(test);\n var markup =\n '
  • %e%ems ' +\n '' +\n playIcon +\n '

  • ';\n var el = fragment(markup, test.speed, test.title, test.duration, url);\n self.addCodeToggle(el, test.body);\n appendToStack(el);\n updateStats();\n });\n\n runner.on(EVENT_TEST_FAIL, function (test) {\n var el = fragment(\n '
  • %e ' +\n playIcon +\n '

  • ',\n test.title,\n self.testURL(test)\n );\n var stackString; // Note: Includes leading newline\n var message = test.err.toString();\n\n // <=IE7 stringifies to [Object Error]. Since it can be overloaded, we\n // check for the result of the stringifying.\n if (message === '[object Error]') {\n message = test.err.message;\n }\n\n if (test.err.stack) {\n var indexOfMessage = test.err.stack.indexOf(test.err.message);\n if (indexOfMessage === -1) {\n stackString = test.err.stack;\n } else {\n stackString = test.err.stack.slice(\n test.err.message.length + indexOfMessage\n );\n }\n } else if (test.err.sourceURL && test.err.line !== undefined) {\n // Safari doesn't give you a stack. Let's at least provide a source line.\n stackString = '\\n(' + test.err.sourceURL + ':' + test.err.line + ')';\n }\n\n stackString = stackString || '';\n\n if (test.err.htmlMessage && stackString) {\n el.appendChild(\n fragment(\n '
    %s\\n
    %e
    ',\n test.err.htmlMessage,\n stackString\n )\n );\n } else if (test.err.htmlMessage) {\n el.appendChild(\n fragment('
    %s
    ', test.err.htmlMessage)\n );\n } else {\n el.appendChild(\n fragment('
    %e%e
    ', message, stackString)\n );\n }\n\n self.addCodeToggle(el, test.body);\n appendToStack(el);\n updateStats();\n });\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n var el = fragment(\n '
  • %e

  • ',\n test.title\n );\n appendToStack(el);\n updateStats();\n });\n\n function appendToStack(el) {\n // Don't call .appendChild if #mocha-report was already .shift()'ed off the stack.\n if (stack[0]) {\n stack[0].appendChild(el);\n }\n }\n\n function updateStats() {\n // TODO: add to stats\n var percent = ((stats.tests / runner.total) * 100) | 0;\n if (progress) {\n progress.update(percent).draw(ctx);\n }\n\n // update stats\n var ms = new Date() - stats.start;\n text(passes, stats.passes);\n text(failures, stats.failures);\n text(duration, (ms / 1000).toFixed(2));\n }\n}\n\n/**\n * Makes a URL, preserving querystring (\"search\") parameters.\n *\n * @param {string} s\n * @return {string} A new URL.\n */\nfunction makeUrl(s) {\n var search = window.location.search;\n\n // Remove previous grep query parameter if present\n if (search) {\n search = search.replace(/[?&]grep=[^&\\s]*/g, '').replace(/^&/, '?');\n }\n\n return (\n window.location.pathname +\n (search ? search + '&' : '?') +\n 'grep=' +\n encodeURIComponent(escapeRe(s))\n );\n}\n\n/**\n * Provide suite URL.\n *\n * @param {Object} [suite]\n */\nHTML.prototype.suiteURL = function (suite) {\n return makeUrl(suite.fullTitle());\n};\n\n/**\n * Provide test URL.\n *\n * @param {Object} [test]\n */\nHTML.prototype.testURL = function (test) {\n return makeUrl(test.fullTitle());\n};\n\n/**\n * Adds code toggle functionality for the provided test's list element.\n *\n * @param {HTMLLIElement} el\n * @param {string} contents\n */\nHTML.prototype.addCodeToggle = function (el, contents) {\n var h2 = el.getElementsByTagName('h2')[0];\n\n on(h2, 'click', function () {\n pre.style.display = pre.style.display === 'none' ? 'block' : 'none';\n });\n\n var pre = fragment('
    %e
    ', utils.clean(contents));\n el.appendChild(pre);\n pre.style.display = 'none';\n};\n\n/**\n * Display error `msg`.\n *\n * @param {string} msg\n */\nfunction error(msg) {\n document.body.appendChild(fragment('
    %s
    ', msg));\n}\n\n/**\n * Return a DOM fragment from `html`.\n *\n * @param {string} html\n */\nfunction fragment(html) {\n var args = arguments;\n var div = document.createElement('div');\n var i = 1;\n\n div.innerHTML = html.replace(/%([se])/g, function (_, type) {\n switch (type) {\n case 's':\n return String(args[i++]);\n case 'e':\n return escape(args[i++]);\n // no default\n }\n });\n\n return div.firstChild;\n}\n\n/**\n * Check for suites that do not have elements\n * with `classname`, and hide them.\n *\n * @param {text} classname\n */\nfunction hideSuitesWithout(classname) {\n var suites = document.getElementsByClassName('suite');\n for (var i = 0; i < suites.length; i++) {\n var els = suites[i].getElementsByClassName(classname);\n if (!els.length) {\n suites[i].className += ' hidden';\n }\n }\n}\n\n/**\n * Unhide .hidden suites.\n */\nfunction unhide() {\n var els = document.getElementsByClassName('suite hidden');\n while (els.length > 0) {\n els[0].className = els[0].className.replace('suite hidden', 'suite');\n }\n}\n\n/**\n * Set an element's text contents.\n *\n * @param {HTMLElement} el\n * @param {string} contents\n */\nfunction text(el, contents) {\n if (el.textContent) {\n el.textContent = contents;\n } else {\n el.innerText = contents;\n }\n}\n\n/**\n * Listen on `event` with callback `fn`.\n */\nfunction on(el, event, fn) {\n if (el.addEventListener) {\n el.addEventListener(event, fn, false);\n } else {\n el.attachEvent('on' + event, fn);\n }\n}\n\nHTML.browserOnly = true;\n","'use strict';\n/**\n * @module List\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar inherits = require('../utils').inherits;\nvar constants = require('../runner').constants;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_BEGIN = constants.EVENT_TEST_BEGIN;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar color = Base.color;\nvar cursor = Base.cursor;\n\n/**\n * Expose `List`.\n */\n\nexports = module.exports = List;\n\n/**\n * Constructs a new `List` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction List(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var n = 0;\n\n runner.on(EVENT_RUN_BEGIN, function () {\n Base.consoleLog();\n });\n\n runner.on(EVENT_TEST_BEGIN, function (test) {\n process.stdout.write(color('pass', ' ' + test.fullTitle() + ': '));\n });\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n var fmt = color('checkmark', ' -') + color('pending', ' %s');\n Base.consoleLog(fmt, test.fullTitle());\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n var fmt =\n color('checkmark', ' ' + Base.symbols.ok) +\n color('pass', ' %s: ') +\n color(test.speed, '%dms');\n cursor.CR();\n Base.consoleLog(fmt, test.fullTitle(), test.duration);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test) {\n cursor.CR();\n Base.consoleLog(color('fail', ' %d) %s'), ++n, test.fullTitle());\n });\n\n runner.once(EVENT_RUN_END, self.epilogue.bind(self));\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(List, Base);\n\nList.description = 'like \"spec\" reporter but flat';\n","'use strict';\n/**\n * @module Min\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar inherits = require('../utils').inherits;\nvar constants = require('../runner').constants;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\n\n/**\n * Expose `Min`.\n */\n\nexports = module.exports = Min;\n\n/**\n * Constructs a new `Min` reporter instance.\n *\n * @description\n * This minimal test reporter is best used with '--watch'.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Min(runner, options) {\n Base.call(this, runner, options);\n\n runner.on(EVENT_RUN_BEGIN, function () {\n // clear screen\n process.stdout.write('\\u001b[2J');\n // set cursor position\n process.stdout.write('\\u001b[1;3H');\n });\n\n runner.once(EVENT_RUN_END, this.epilogue.bind(this));\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(Min, Base);\n\nMin.description = 'essentially just a summary';\n","'use strict';\n/**\n * @module Spec\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar constants = require('../runner').constants;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;\nvar EVENT_SUITE_END = constants.EVENT_SUITE_END;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar inherits = require('../utils').inherits;\nvar color = Base.color;\n\n/**\n * Expose `Spec`.\n */\n\nexports = module.exports = Spec;\n\n/**\n * Constructs a new `Spec` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Spec(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var indents = 0;\n var n = 0;\n\n function indent() {\n return Array(indents).join(' ');\n }\n\n runner.on(EVENT_RUN_BEGIN, function () {\n Base.consoleLog();\n });\n\n runner.on(EVENT_SUITE_BEGIN, function (suite) {\n ++indents;\n Base.consoleLog(color('suite', '%s%s'), indent(), suite.title);\n });\n\n runner.on(EVENT_SUITE_END, function () {\n --indents;\n if (indents === 1) {\n Base.consoleLog();\n }\n });\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n var fmt = indent() + color('pending', ' - %s');\n Base.consoleLog(fmt, test.title);\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n var fmt;\n if (test.speed === 'fast') {\n fmt =\n indent() +\n color('checkmark', ' ' + Base.symbols.ok) +\n color('pass', ' %s');\n Base.consoleLog(fmt, test.title);\n } else {\n fmt =\n indent() +\n color('checkmark', ' ' + Base.symbols.ok) +\n color('pass', ' %s') +\n color(test.speed, ' (%dms)');\n Base.consoleLog(fmt, test.title, test.duration);\n }\n });\n\n runner.on(EVENT_TEST_FAIL, function (test) {\n Base.consoleLog(indent() + color('fail', ' %d) %s'), ++n, test.title);\n });\n\n runner.once(EVENT_RUN_END, self.epilogue.bind(self));\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(Spec, Base);\n\nSpec.description = 'hierarchical & verbose [default]';\n","'use strict';\n/**\n * @module Nyan\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar constants = require('../runner').constants;\nvar inherits = require('../utils').inherits;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\n\n/**\n * Expose `Dot`.\n */\n\nexports = module.exports = NyanCat;\n\n/**\n * Constructs a new `Nyan` reporter instance.\n *\n * @public\n * @class Nyan\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction NyanCat(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var width = (Base.window.width * 0.75) | 0;\n var nyanCatWidth = (this.nyanCatWidth = 11);\n\n this.colorIndex = 0;\n this.numberOfLines = 4;\n this.rainbowColors = self.generateColors();\n this.scoreboardWidth = 5;\n this.tick = 0;\n this.trajectories = [[], [], [], []];\n this.trajectoryWidthMax = width - nyanCatWidth;\n\n runner.on(EVENT_RUN_BEGIN, function () {\n Base.cursor.hide();\n self.draw();\n });\n\n runner.on(EVENT_TEST_PENDING, function () {\n self.draw();\n });\n\n runner.on(EVENT_TEST_PASS, function () {\n self.draw();\n });\n\n runner.on(EVENT_TEST_FAIL, function () {\n self.draw();\n });\n\n runner.once(EVENT_RUN_END, function () {\n Base.cursor.show();\n for (var i = 0; i < self.numberOfLines; i++) {\n write('\\n');\n }\n self.epilogue();\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(NyanCat, Base);\n\n/**\n * Draw the nyan cat\n *\n * @private\n */\n\nNyanCat.prototype.draw = function () {\n this.appendRainbow();\n this.drawScoreboard();\n this.drawRainbow();\n this.drawNyanCat();\n this.tick = !this.tick;\n};\n\n/**\n * Draw the \"scoreboard\" showing the number\n * of passes, failures and pending tests.\n *\n * @private\n */\n\nNyanCat.prototype.drawScoreboard = function () {\n var stats = this.stats;\n\n function draw(type, n) {\n write(' ');\n write(Base.color(type, n));\n write('\\n');\n }\n\n draw('green', stats.passes);\n draw('fail', stats.failures);\n draw('pending', stats.pending);\n write('\\n');\n\n this.cursorUp(this.numberOfLines);\n};\n\n/**\n * Append the rainbow.\n *\n * @private\n */\n\nNyanCat.prototype.appendRainbow = function () {\n var segment = this.tick ? '_' : '-';\n var rainbowified = this.rainbowify(segment);\n\n for (var index = 0; index < this.numberOfLines; index++) {\n var trajectory = this.trajectories[index];\n if (trajectory.length >= this.trajectoryWidthMax) {\n trajectory.shift();\n }\n trajectory.push(rainbowified);\n }\n};\n\n/**\n * Draw the rainbow.\n *\n * @private\n */\n\nNyanCat.prototype.drawRainbow = function () {\n var self = this;\n\n this.trajectories.forEach(function (line) {\n write('\\u001b[' + self.scoreboardWidth + 'C');\n write(line.join(''));\n write('\\n');\n });\n\n this.cursorUp(this.numberOfLines);\n};\n\n/**\n * Draw the nyan cat\n *\n * @private\n */\nNyanCat.prototype.drawNyanCat = function () {\n var self = this;\n var startWidth = this.scoreboardWidth + this.trajectories[0].length;\n var dist = '\\u001b[' + startWidth + 'C';\n var padding = '';\n\n write(dist);\n write('_,------,');\n write('\\n');\n\n write(dist);\n padding = self.tick ? ' ' : ' ';\n write('_|' + padding + '/\\\\_/\\\\ ');\n write('\\n');\n\n write(dist);\n padding = self.tick ? '_' : '__';\n var tail = self.tick ? '~' : '^';\n write(tail + '|' + padding + this.face() + ' ');\n write('\\n');\n\n write(dist);\n padding = self.tick ? ' ' : ' ';\n write(padding + '\"\" \"\" ');\n write('\\n');\n\n this.cursorUp(this.numberOfLines);\n};\n\n/**\n * Draw nyan cat face.\n *\n * @private\n * @return {string}\n */\n\nNyanCat.prototype.face = function () {\n var stats = this.stats;\n if (stats.failures) {\n return '( x .x)';\n } else if (stats.pending) {\n return '( o .o)';\n } else if (stats.passes) {\n return '( ^ .^)';\n }\n return '( - .-)';\n};\n\n/**\n * Move cursor up `n`.\n *\n * @private\n * @param {number} n\n */\n\nNyanCat.prototype.cursorUp = function (n) {\n write('\\u001b[' + n + 'A');\n};\n\n/**\n * Move cursor down `n`.\n *\n * @private\n * @param {number} n\n */\n\nNyanCat.prototype.cursorDown = function (n) {\n write('\\u001b[' + n + 'B');\n};\n\n/**\n * Generate rainbow colors.\n *\n * @private\n * @return {Array}\n */\nNyanCat.prototype.generateColors = function () {\n var colors = [];\n\n for (var i = 0; i < 6 * 7; i++) {\n var pi3 = Math.floor(Math.PI / 3);\n var n = i * (1.0 / 6);\n var r = Math.floor(3 * Math.sin(n) + 3);\n var g = Math.floor(3 * Math.sin(n + 2 * pi3) + 3);\n var b = Math.floor(3 * Math.sin(n + 4 * pi3) + 3);\n colors.push(36 * r + 6 * g + b + 16);\n }\n\n return colors;\n};\n\n/**\n * Apply rainbow to the given `str`.\n *\n * @private\n * @param {string} str\n * @return {string}\n */\nNyanCat.prototype.rainbowify = function (str) {\n if (!Base.useColors) {\n return str;\n }\n var color = this.rainbowColors[this.colorIndex % this.rainbowColors.length];\n this.colorIndex += 1;\n return '\\u001b[38;5;' + color + 'm' + str + '\\u001b[0m';\n};\n\n/**\n * Stdout helper.\n *\n * @param {string} string A message to write to stdout.\n */\nfunction write(string) {\n process.stdout.write(string);\n}\n\nNyanCat.description = '\"nyan cat\"';\n","'use strict';\n/**\n * @module XUnit\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar utils = require('../utils');\nvar fs = require('fs');\nvar path = require('path');\nvar errors = require('../errors');\nvar createUnsupportedError = errors.createUnsupportedError;\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar STATE_FAILED = require('../runnable').constants.STATE_FAILED;\nvar inherits = utils.inherits;\nvar escape = utils.escape;\n\n/**\n * Save timer references to avoid Sinon interfering (see GH-237).\n */\nvar Date = global.Date;\n\n/**\n * Expose `XUnit`.\n */\n\nexports = module.exports = XUnit;\n\n/**\n * Constructs a new `XUnit` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction XUnit(runner, options) {\n Base.call(this, runner, options);\n\n var stats = this.stats;\n var tests = [];\n var self = this;\n\n // the name of the test suite, as it will appear in the resulting XML file\n var suiteName;\n\n // the default name of the test suite if none is provided\n var DEFAULT_SUITE_NAME = 'Mocha Tests';\n\n if (options && options.reporterOptions) {\n if (options.reporterOptions.output) {\n if (!fs.createWriteStream) {\n throw createUnsupportedError('file output not supported in browser');\n }\n\n fs.mkdirSync(path.dirname(options.reporterOptions.output), {\n recursive: true\n });\n self.fileStream = fs.createWriteStream(options.reporterOptions.output);\n }\n\n // get the suite name from the reporter options (if provided)\n suiteName = options.reporterOptions.suiteName;\n }\n\n // fall back to the default suite name\n suiteName = suiteName || DEFAULT_SUITE_NAME;\n\n runner.on(EVENT_TEST_PENDING, function (test) {\n tests.push(test);\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n tests.push(test);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test) {\n tests.push(test);\n });\n\n runner.once(EVENT_RUN_END, function () {\n self.write(\n tag(\n 'testsuite',\n {\n name: suiteName,\n tests: stats.tests,\n failures: 0,\n errors: stats.failures,\n skipped: stats.tests - stats.failures - stats.passes,\n timestamp: new Date().toUTCString(),\n time: stats.duration / 1000 || 0\n },\n false\n )\n );\n\n tests.forEach(function (t) {\n self.test(t);\n });\n\n self.write('');\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(XUnit, Base);\n\n/**\n * Override done to close the stream (if it's a file).\n *\n * @param failures\n * @param {Function} fn\n */\nXUnit.prototype.done = function (failures, fn) {\n if (this.fileStream) {\n this.fileStream.end(function () {\n fn(failures);\n });\n } else {\n fn(failures);\n }\n};\n\n/**\n * Write out the given line.\n *\n * @param {string} line\n */\nXUnit.prototype.write = function (line) {\n if (this.fileStream) {\n this.fileStream.write(line + '\\n');\n } else if (typeof process === 'object' && process.stdout) {\n process.stdout.write(line + '\\n');\n } else {\n Base.consoleLog(line);\n }\n};\n\n/**\n * Output tag for the given `test.`\n *\n * @param {Test} test\n */\nXUnit.prototype.test = function (test) {\n Base.useColors = false;\n\n var attrs = {\n classname: test.parent.fullTitle(),\n name: test.title,\n time: test.duration / 1000 || 0\n };\n\n if (test.state === STATE_FAILED) {\n var err = test.err;\n var diff =\n !Base.hideDiff && Base.showDiff(err)\n ? '\\n' + Base.generateDiff(err.actual, err.expected)\n : '';\n this.write(\n tag(\n 'testcase',\n attrs,\n false,\n tag(\n 'failure',\n {},\n false,\n escape(err.message) + escape(diff) + '\\n' + escape(err.stack)\n )\n )\n );\n } else if (test.isPending()) {\n this.write(tag('testcase', attrs, false, tag('skipped', {}, true)));\n } else {\n this.write(tag('testcase', attrs, true));\n }\n};\n\n/**\n * HTML tag helper.\n *\n * @param name\n * @param attrs\n * @param close\n * @param content\n * @return {string}\n */\nfunction tag(name, attrs, close, content) {\n var end = close ? '/>' : '>';\n var pairs = [];\n var tag;\n\n for (var key in attrs) {\n if (Object.prototype.hasOwnProperty.call(attrs, key)) {\n pairs.push(key + '=\"' + escape(attrs[key]) + '\"');\n }\n }\n\n tag = '<' + name + (pairs.length ? ' ' + pairs.join(' ') : '') + end;\n if (content) {\n tag += content + '' + '\\n';\n buf += title(suite.title) + '\\n';\n });\n\n runner.on(EVENT_SUITE_END, function () {\n --level;\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n var code = utils.clean(test.body);\n buf += test.title + '.\\n';\n buf += '\\n```js\\n';\n buf += code + '\\n';\n buf += '```\\n\\n';\n });\n\n runner.once(EVENT_RUN_END, function () {\n process.stdout.write('# TOC\\n');\n process.stdout.write(generateTOC(runner.suite));\n process.stdout.write(buf);\n });\n}\n\nMarkdown.description = 'GitHub Flavored Markdown';\n","'use strict';\n/**\n * @module Progress\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar constants = require('../runner').constants;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_TEST_END = constants.EVENT_TEST_END;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar inherits = require('../utils').inherits;\nvar color = Base.color;\nvar cursor = Base.cursor;\n\n/**\n * Expose `Progress`.\n */\n\nexports = module.exports = Progress;\n\n/**\n * General progress bar color.\n */\n\nBase.colors.progress = 90;\n\n/**\n * Constructs a new `Progress` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Progress(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var width = (Base.window.width * 0.5) | 0;\n var total = runner.total;\n var complete = 0;\n var lastN = -1;\n\n // default chars\n options = options || {};\n var reporterOptions = options.reporterOptions || {};\n\n options.open = reporterOptions.open || '[';\n options.complete = reporterOptions.complete || '▬';\n options.incomplete = reporterOptions.incomplete || Base.symbols.dot;\n options.close = reporterOptions.close || ']';\n options.verbose = reporterOptions.verbose || false;\n\n // tests started\n runner.on(EVENT_RUN_BEGIN, function () {\n process.stdout.write('\\n');\n cursor.hide();\n });\n\n // tests complete\n runner.on(EVENT_TEST_END, function () {\n complete++;\n\n var percent = complete / total;\n var n = (width * percent) | 0;\n var i = width - n;\n\n if (n === lastN && !options.verbose) {\n // Don't re-render the line if it hasn't changed\n return;\n }\n lastN = n;\n\n cursor.CR();\n process.stdout.write('\\u001b[J');\n process.stdout.write(color('progress', ' ' + options.open));\n process.stdout.write(Array(n).join(options.complete));\n process.stdout.write(Array(i).join(options.incomplete));\n process.stdout.write(color('progress', options.close));\n if (options.verbose) {\n process.stdout.write(color('progress', ' ' + complete + ' of ' + total));\n }\n });\n\n // tests are complete, output some stats\n // and the failures if any\n runner.once(EVENT_RUN_END, function () {\n cursor.show();\n process.stdout.write('\\n');\n self.epilogue();\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(Progress, Base);\n\nProgress.description = 'a progress bar';\n","'use strict';\n/**\n * @module Landing\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar inherits = require('../utils').inherits;\nvar constants = require('../runner').constants;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_END = constants.EVENT_TEST_END;\nvar STATE_FAILED = require('../runnable').constants.STATE_FAILED;\n\nvar cursor = Base.cursor;\nvar color = Base.color;\n\n/**\n * Expose `Landing`.\n */\n\nexports = module.exports = Landing;\n\n/**\n * Airplane color.\n */\n\nBase.colors.plane = 0;\n\n/**\n * Airplane crash color.\n */\n\nBase.colors['plane crash'] = 31;\n\n/**\n * Runway color.\n */\n\nBase.colors.runway = 90;\n\n/**\n * Constructs a new `Landing` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction Landing(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var width = (Base.window.width * 0.75) | 0;\n var stream = process.stdout;\n\n var plane = color('plane', '✈');\n var crashed = -1;\n var n = 0;\n var total = 0;\n\n function runway() {\n var buf = Array(width).join('-');\n return ' ' + color('runway', buf);\n }\n\n runner.on(EVENT_RUN_BEGIN, function () {\n stream.write('\\n\\n\\n ');\n cursor.hide();\n });\n\n runner.on(EVENT_TEST_END, function (test) {\n // check if the plane crashed\n var col = crashed === -1 ? ((width * ++n) / ++total) | 0 : crashed;\n // show the crash\n if (test.state === STATE_FAILED) {\n plane = color('plane crash', '✈');\n crashed = col;\n }\n\n // render landing strip\n stream.write('\\u001b[' + (width + 1) + 'D\\u001b[2A');\n stream.write(runway());\n stream.write('\\n ');\n stream.write(color('runway', Array(col).join('⋅')));\n stream.write(plane);\n stream.write(color('runway', Array(width - col).join('⋅') + '\\n'));\n stream.write(runway());\n stream.write('\\u001b[0m');\n });\n\n runner.once(EVENT_RUN_END, function () {\n cursor.show();\n process.stdout.write('\\n');\n self.epilogue();\n });\n\n // if cursor is hidden when we ctrl-C, then it will remain hidden unless...\n process.once('SIGINT', function () {\n cursor.show();\n process.nextTick(function () {\n process.kill(process.pid, 'SIGINT');\n });\n });\n}\n\n/**\n * Inherit from `Base.prototype`.\n */\ninherits(Landing, Base);\n\nLanding.description = 'Unicode landing strip';\n","'use strict';\n/**\n * @module JSONStream\n */\n/**\n * Module dependencies.\n */\n\nvar Base = require('./base');\nvar constants = require('../runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\n\n/**\n * Expose `JSONStream`.\n */\n\nexports = module.exports = JSONStream;\n\n/**\n * Constructs a new `JSONStream` reporter instance.\n *\n * @public\n * @class\n * @memberof Mocha.reporters\n * @extends Mocha.reporters.Base\n * @param {Runner} runner - Instance triggers reporter actions.\n * @param {Object} [options] - runner options\n */\nfunction JSONStream(runner, options) {\n Base.call(this, runner, options);\n\n var self = this;\n var total = runner.total;\n\n runner.once(EVENT_RUN_BEGIN, function () {\n writeEvent(['start', {total: total}]);\n });\n\n runner.on(EVENT_TEST_PASS, function (test) {\n writeEvent(['pass', clean(test)]);\n });\n\n runner.on(EVENT_TEST_FAIL, function (test, err) {\n test = clean(test);\n test.err = err.message;\n test.stack = err.stack || null;\n writeEvent(['fail', test]);\n });\n\n runner.once(EVENT_RUN_END, function () {\n writeEvent(['end', self.stats]);\n });\n}\n\n/**\n * Mocha event to be written to the output stream.\n * @typedef {Array} JSONStream~MochaEvent\n */\n\n/**\n * Writes Mocha event to reporter output stream.\n *\n * @private\n * @param {JSONStream~MochaEvent} event - Mocha event to be output.\n */\nfunction writeEvent(event) {\n process.stdout.write(JSON.stringify(event) + '\\n');\n}\n\n/**\n * Returns an object literal representation of `test`\n * free of cyclic properties, etc.\n *\n * @private\n * @param {Test} test - Instance used as data source.\n * @return {Object} object containing pared-down test instance data\n */\nfunction clean(test) {\n return {\n title: test.title,\n fullTitle: test.fullTitle(),\n file: test.file,\n duration: test.duration,\n currentRetry: test.currentRetry(),\n speed: test.speed\n };\n}\n\nJSONStream.description = 'newline delimited JSON events';\n","'use strict';\n\n// Alias exports to a their normalized format Mocha#reporter to prevent a need\n// for dynamic (try/catch) requires, which Browserify doesn't handle.\nexports.Base = exports.base = require('./base');\nexports.Dot = exports.dot = require('./dot');\nexports.Doc = exports.doc = require('./doc');\nexports.TAP = exports.tap = require('./tap');\nexports.JSON = exports.json = require('./json');\nexports.HTML = exports.html = require('./html');\nexports.List = exports.list = require('./list');\nexports.Min = exports.min = require('./min');\nexports.Spec = exports.spec = require('./spec');\nexports.Nyan = exports.nyan = require('./nyan');\nexports.XUnit = exports.xunit = require('./xunit');\nexports.Markdown = exports.markdown = require('./markdown');\nexports.Progress = exports.progress = require('./progress');\nexports.Landing = exports.landing = require('./landing');\nexports.JSONStream = exports['json-stream'] = require('./json-stream');\n","'use strict';\n\n/**\n * Provides a factory function for a {@link StatsCollector} object.\n * @module\n */\n\nvar constants = require('./runner').constants;\nvar EVENT_TEST_PASS = constants.EVENT_TEST_PASS;\nvar EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL;\nvar EVENT_SUITE_BEGIN = constants.EVENT_SUITE_BEGIN;\nvar EVENT_RUN_BEGIN = constants.EVENT_RUN_BEGIN;\nvar EVENT_TEST_PENDING = constants.EVENT_TEST_PENDING;\nvar EVENT_RUN_END = constants.EVENT_RUN_END;\nvar EVENT_TEST_END = constants.EVENT_TEST_END;\n\n/**\n * Test statistics collector.\n *\n * @public\n * @typedef {Object} StatsCollector\n * @property {number} suites - integer count of suites run.\n * @property {number} tests - integer count of tests run.\n * @property {number} passes - integer count of passing tests.\n * @property {number} pending - integer count of pending tests.\n * @property {number} failures - integer count of failed tests.\n * @property {Date} start - time when testing began.\n * @property {Date} end - time when testing concluded.\n * @property {number} duration - number of msecs that testing took.\n */\n\nvar Date = global.Date;\n\n/**\n * Provides stats such as test duration, number of tests passed / failed etc., by listening for events emitted by `runner`.\n *\n * @private\n * @param {Runner} runner - Runner instance\n * @throws {TypeError} If falsy `runner`\n */\nfunction createStatsCollector(runner) {\n /**\n * @type StatsCollector\n */\n var stats = {\n suites: 0,\n tests: 0,\n passes: 0,\n pending: 0,\n failures: 0\n };\n\n if (!runner) {\n throw new TypeError('Missing runner argument');\n }\n\n runner.stats = stats;\n\n runner.once(EVENT_RUN_BEGIN, function () {\n stats.start = new Date();\n });\n runner.on(EVENT_SUITE_BEGIN, function (suite) {\n suite.root || stats.suites++;\n });\n runner.on(EVENT_TEST_PASS, function () {\n stats.passes++;\n });\n runner.on(EVENT_TEST_FAIL, function () {\n stats.failures++;\n });\n runner.on(EVENT_TEST_PENDING, function () {\n stats.pending++;\n });\n runner.on(EVENT_TEST_END, function () {\n stats.tests++;\n });\n runner.once(EVENT_RUN_END, function () {\n stats.end = new Date();\n stats.duration = stats.end - stats.start;\n });\n}\n\nmodule.exports = createStatsCollector;\n","'use strict';\nvar Runnable = require('./runnable');\nvar utils = require('./utils');\nvar errors = require('./errors');\nvar createInvalidArgumentTypeError = errors.createInvalidArgumentTypeError;\nvar isString = utils.isString;\n\nconst {MOCHA_ID_PROP_NAME} = utils.constants;\n\nmodule.exports = Test;\n\n/**\n * Initialize a new `Test` with the given `title` and callback `fn`.\n *\n * @public\n * @class\n * @extends Runnable\n * @param {String} title - Test title (required)\n * @param {Function} [fn] - Test callback. If omitted, the Test is considered \"pending\"\n */\nfunction Test(title, fn) {\n if (!isString(title)) {\n throw createInvalidArgumentTypeError(\n 'Test argument \"title\" should be a string. Received type \"' +\n typeof title +\n '\"',\n 'title',\n 'string'\n );\n }\n this.type = 'test';\n Runnable.call(this, title, fn);\n this.reset();\n}\n\n/**\n * Inherit from `Runnable.prototype`.\n */\nutils.inherits(Test, Runnable);\n\n/**\n * Resets the state initially or for a next run.\n */\nTest.prototype.reset = function () {\n Runnable.prototype.reset.call(this);\n this.pending = !this.fn;\n delete this.state;\n};\n\n/**\n * Set or get retried test\n *\n * @private\n */\nTest.prototype.retriedTest = function (n) {\n if (!arguments.length) {\n return this._retriedTest;\n }\n this._retriedTest = n;\n};\n\n/**\n * Add test to the list of tests marked `only`.\n *\n * @private\n */\nTest.prototype.markOnly = function () {\n this.parent.appendOnlyTest(this);\n};\n\nTest.prototype.clone = function () {\n var test = new Test(this.title, this.fn);\n test.timeout(this.timeout());\n test.slow(this.slow());\n test.retries(this.retries());\n test.currentRetry(this.currentRetry());\n test.retriedTest(this.retriedTest() || this);\n test.globals(this.globals());\n test.parent = this.parent;\n test.file = this.file;\n test.ctx = this.ctx;\n return test;\n};\n\n/**\n * Returns an minimal object suitable for transmission over IPC.\n * Functions are represented by keys beginning with `$$`.\n * @private\n * @returns {Object}\n */\nTest.prototype.serialize = function serialize() {\n return {\n $$currentRetry: this._currentRetry,\n $$fullTitle: this.fullTitle(),\n $$isPending: Boolean(this.pending),\n $$retriedTest: this._retriedTest || null,\n $$slow: this._slow,\n $$titlePath: this.titlePath(),\n body: this.body,\n duration: this.duration,\n err: this.err,\n parent: {\n $$fullTitle: this.parent.fullTitle(),\n [MOCHA_ID_PROP_NAME]: this.parent.id\n },\n speed: this.speed,\n state: this.state,\n title: this.title,\n type: this.type,\n file: this.file,\n [MOCHA_ID_PROP_NAME]: this.id\n };\n};\n","'use strict';\n\n/**\n @module interfaces/common\n*/\n\nvar Suite = require('../suite');\nvar errors = require('../errors');\nvar createMissingArgumentError = errors.createMissingArgumentError;\nvar createUnsupportedError = errors.createUnsupportedError;\nvar createForbiddenExclusivityError = errors.createForbiddenExclusivityError;\n\n/**\n * Functions common to more than one interface.\n *\n * @private\n * @param {Suite[]} suites\n * @param {Context} context\n * @param {Mocha} mocha\n * @return {Object} An object containing common functions.\n */\nmodule.exports = function (suites, context, mocha) {\n /**\n * Check if the suite should be tested.\n *\n * @private\n * @param {Suite} suite - suite to check\n * @returns {boolean}\n */\n function shouldBeTested(suite) {\n return (\n !mocha.options.grep ||\n (mocha.options.grep &&\n mocha.options.grep.test(suite.fullTitle()) &&\n !mocha.options.invert)\n );\n }\n\n return {\n /**\n * This is only present if flag --delay is passed into Mocha. It triggers\n * root suite execution.\n *\n * @param {Suite} suite The root suite.\n * @return {Function} A function which runs the root suite\n */\n runWithSuite: function runWithSuite(suite) {\n return function run() {\n suite.run();\n };\n },\n\n /**\n * Execute before running tests.\n *\n * @param {string} name\n * @param {Function} fn\n */\n before: function (name, fn) {\n suites[0].beforeAll(name, fn);\n },\n\n /**\n * Execute after running tests.\n *\n * @param {string} name\n * @param {Function} fn\n */\n after: function (name, fn) {\n suites[0].afterAll(name, fn);\n },\n\n /**\n * Execute before each test case.\n *\n * @param {string} name\n * @param {Function} fn\n */\n beforeEach: function (name, fn) {\n suites[0].beforeEach(name, fn);\n },\n\n /**\n * Execute after each test case.\n *\n * @param {string} name\n * @param {Function} fn\n */\n afterEach: function (name, fn) {\n suites[0].afterEach(name, fn);\n },\n\n suite: {\n /**\n * Create an exclusive Suite; convenience function\n * See docstring for create() below.\n *\n * @param {Object} opts\n * @returns {Suite}\n */\n only: function only(opts) {\n if (mocha.options.forbidOnly) {\n throw createForbiddenExclusivityError(mocha);\n }\n opts.isOnly = true;\n return this.create(opts);\n },\n\n /**\n * Create a Suite, but skip it; convenience function\n * See docstring for create() below.\n *\n * @param {Object} opts\n * @returns {Suite}\n */\n skip: function skip(opts) {\n opts.pending = true;\n return this.create(opts);\n },\n\n /**\n * Creates a suite.\n *\n * @param {Object} opts Options\n * @param {string} opts.title Title of Suite\n * @param {Function} [opts.fn] Suite Function (not always applicable)\n * @param {boolean} [opts.pending] Is Suite pending?\n * @param {string} [opts.file] Filepath where this Suite resides\n * @param {boolean} [opts.isOnly] Is Suite exclusive?\n * @returns {Suite}\n */\n create: function create(opts) {\n var suite = Suite.create(suites[0], opts.title);\n suite.pending = Boolean(opts.pending);\n suite.file = opts.file;\n suites.unshift(suite);\n if (opts.isOnly) {\n suite.markOnly();\n }\n if (\n suite.pending &&\n mocha.options.forbidPending &&\n shouldBeTested(suite)\n ) {\n throw createUnsupportedError('Pending test forbidden');\n }\n if (typeof opts.fn === 'function') {\n opts.fn.call(suite);\n suites.shift();\n } else if (typeof opts.fn === 'undefined' && !suite.pending) {\n throw createMissingArgumentError(\n 'Suite \"' +\n suite.fullTitle() +\n '\" was defined but no callback was supplied. ' +\n 'Supply a callback or explicitly skip the suite.',\n 'callback',\n 'function'\n );\n } else if (!opts.fn && suite.pending) {\n suites.shift();\n }\n\n return suite;\n }\n },\n\n test: {\n /**\n * Exclusive test-case.\n *\n * @param {Object} mocha\n * @param {Function} test\n * @returns {*}\n */\n only: function (mocha, test) {\n if (mocha.options.forbidOnly) {\n throw createForbiddenExclusivityError(mocha);\n }\n test.markOnly();\n return test;\n },\n\n /**\n * Pending test case.\n *\n * @param {string} title\n */\n skip: function (title) {\n context.test(title);\n }\n }\n };\n};\n","'use strict';\n\nvar Test = require('../test');\nvar EVENT_FILE_PRE_REQUIRE =\n require('../suite').constants.EVENT_FILE_PRE_REQUIRE;\n\n/**\n * BDD-style interface:\n *\n * describe('Array', function() {\n * describe('#indexOf()', function() {\n * it('should return -1 when not present', function() {\n * // ...\n * });\n *\n * it('should return the index when present', function() {\n * // ...\n * });\n * });\n * });\n *\n * @param {Suite} suite Root suite.\n */\nmodule.exports = function bddInterface(suite) {\n var suites = [suite];\n\n suite.on(EVENT_FILE_PRE_REQUIRE, function (context, file, mocha) {\n var common = require('./common')(suites, context, mocha);\n\n context.before = common.before;\n context.after = common.after;\n context.beforeEach = common.beforeEach;\n context.afterEach = common.afterEach;\n context.run = mocha.options.delay && common.runWithSuite(suite);\n /**\n * Describe a \"suite\" with the given `title`\n * and callback `fn` containing nested suites\n * and/or tests.\n */\n\n context.describe = context.context = function (title, fn) {\n return common.suite.create({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Pending describe.\n */\n\n context.xdescribe =\n context.xcontext =\n context.describe.skip =\n function (title, fn) {\n return common.suite.skip({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Exclusive suite.\n */\n\n context.describe.only = function (title, fn) {\n return common.suite.only({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Describe a specification or test-case\n * with the given `title` and callback `fn`\n * acting as a thunk.\n */\n\n context.it = context.specify = function (title, fn) {\n var suite = suites[0];\n if (suite.isPending()) {\n fn = null;\n }\n var test = new Test(title, fn);\n test.file = file;\n suite.addTest(test);\n return test;\n };\n\n /**\n * Exclusive test-case.\n */\n\n context.it.only = function (title, fn) {\n return common.test.only(mocha, context.it(title, fn));\n };\n\n /**\n * Pending test case.\n */\n\n context.xit =\n context.xspecify =\n context.it.skip =\n function (title) {\n return context.it(title);\n };\n });\n};\n\nmodule.exports.description = 'BDD or RSpec style [default]';\n","'use strict';\n\nvar Test = require('../test');\nvar EVENT_FILE_PRE_REQUIRE =\n require('../suite').constants.EVENT_FILE_PRE_REQUIRE;\n\n/**\n * TDD-style interface:\n *\n * suite('Array', function() {\n * suite('#indexOf()', function() {\n * suiteSetup(function() {\n *\n * });\n *\n * test('should return -1 when not present', function() {\n *\n * });\n *\n * test('should return the index when present', function() {\n *\n * });\n *\n * suiteTeardown(function() {\n *\n * });\n * });\n * });\n *\n * @param {Suite} suite Root suite.\n */\nmodule.exports = function (suite) {\n var suites = [suite];\n\n suite.on(EVENT_FILE_PRE_REQUIRE, function (context, file, mocha) {\n var common = require('./common')(suites, context, mocha);\n\n context.setup = common.beforeEach;\n context.teardown = common.afterEach;\n context.suiteSetup = common.before;\n context.suiteTeardown = common.after;\n context.run = mocha.options.delay && common.runWithSuite(suite);\n\n /**\n * Describe a \"suite\" with the given `title` and callback `fn` containing\n * nested suites and/or tests.\n */\n context.suite = function (title, fn) {\n return common.suite.create({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Pending suite.\n */\n context.suite.skip = function (title, fn) {\n return common.suite.skip({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Exclusive test-case.\n */\n context.suite.only = function (title, fn) {\n return common.suite.only({\n title: title,\n file: file,\n fn: fn\n });\n };\n\n /**\n * Describe a specification or test-case with the given `title` and\n * callback `fn` acting as a thunk.\n */\n context.test = function (title, fn) {\n var suite = suites[0];\n if (suite.isPending()) {\n fn = null;\n }\n var test = new Test(title, fn);\n test.file = file;\n suite.addTest(test);\n return test;\n };\n\n /**\n * Exclusive test-case.\n */\n\n context.test.only = function (title, fn) {\n return common.test.only(mocha, context.test(title, fn));\n };\n\n context.test.skip = common.test.skip;\n });\n};\n\nmodule.exports.description =\n 'traditional \"suite\"/\"test\" instead of BDD\\'s \"describe\"/\"it\"';\n","'use strict';\n\nvar Test = require('../test');\nvar EVENT_FILE_PRE_REQUIRE =\n require('../suite').constants.EVENT_FILE_PRE_REQUIRE;\n\n/**\n * QUnit-style interface:\n *\n * suite('Array');\n *\n * test('#length', function() {\n * var arr = [1,2,3];\n * ok(arr.length == 3);\n * });\n *\n * test('#indexOf()', function() {\n * var arr = [1,2,3];\n * ok(arr.indexOf(1) == 0);\n * ok(arr.indexOf(2) == 1);\n * ok(arr.indexOf(3) == 2);\n * });\n *\n * suite('String');\n *\n * test('#length', function() {\n * ok('foo'.length == 3);\n * });\n *\n * @param {Suite} suite Root suite.\n */\nmodule.exports = function qUnitInterface(suite) {\n var suites = [suite];\n\n suite.on(EVENT_FILE_PRE_REQUIRE, function (context, file, mocha) {\n var common = require('./common')(suites, context, mocha);\n\n context.before = common.before;\n context.after = common.after;\n context.beforeEach = common.beforeEach;\n context.afterEach = common.afterEach;\n context.run = mocha.options.delay && common.runWithSuite(suite);\n /**\n * Describe a \"suite\" with the given `title`.\n */\n\n context.suite = function (title) {\n if (suites.length > 1) {\n suites.shift();\n }\n return common.suite.create({\n title: title,\n file: file,\n fn: false\n });\n };\n\n /**\n * Exclusive Suite.\n */\n\n context.suite.only = function (title) {\n if (suites.length > 1) {\n suites.shift();\n }\n return common.suite.only({\n title: title,\n file: file,\n fn: false\n });\n };\n\n /**\n * Describe a specification or test-case\n * with the given `title` and callback `fn`\n * acting as a thunk.\n */\n\n context.test = function (title, fn) {\n var test = new Test(title, fn);\n test.file = file;\n suites[0].addTest(test);\n return test;\n };\n\n /**\n * Exclusive test-case.\n */\n\n context.test.only = function (title, fn) {\n return common.test.only(mocha, context.test(title, fn));\n };\n\n context.test.skip = common.test.skip;\n });\n};\n\nmodule.exports.description = 'QUnit style';\n","'use strict';\nvar Suite = require('../suite');\nvar Test = require('../test');\n\n/**\n * Exports-style (as Node.js module) interface:\n *\n * exports.Array = {\n * '#indexOf()': {\n * 'should return -1 when the value is not present': function() {\n *\n * },\n *\n * 'should return the correct index when the value is present': function() {\n *\n * }\n * }\n * };\n *\n * @param {Suite} suite Root suite.\n */\nmodule.exports = function (suite) {\n var suites = [suite];\n\n suite.on(Suite.constants.EVENT_FILE_REQUIRE, visit);\n\n function visit(obj, file) {\n var suite;\n for (var key in obj) {\n if (typeof obj[key] === 'function') {\n var fn = obj[key];\n switch (key) {\n case 'before':\n suites[0].beforeAll(fn);\n break;\n case 'after':\n suites[0].afterAll(fn);\n break;\n case 'beforeEach':\n suites[0].beforeEach(fn);\n break;\n case 'afterEach':\n suites[0].afterEach(fn);\n break;\n default:\n var test = new Test(key, fn);\n test.file = file;\n suites[0].addTest(test);\n }\n } else {\n suite = Suite.create(suites[0], key);\n suites.unshift(suite);\n visit(obj[key], file);\n suites.shift();\n }\n }\n }\n};\n\nmodule.exports.description = 'Node.js module (\"exports\") style';\n","'use strict';\n\nexports.bdd = require('./bdd');\nexports.tdd = require('./tdd');\nexports.qunit = require('./qunit');\nexports.exports = require('./exports');\n","'use strict';\n/**\n * @module Context\n */\n/**\n * Expose `Context`.\n */\n\nmodule.exports = Context;\n\n/**\n * Initialize a new `Context`.\n *\n * @private\n */\nfunction Context() {}\n\n/**\n * Set or get the context `Runnable` to `runnable`.\n *\n * @private\n * @param {Runnable} runnable\n * @return {Context} context\n */\nContext.prototype.runnable = function (runnable) {\n if (!arguments.length) {\n return this._runnable;\n }\n this.test = this._runnable = runnable;\n return this;\n};\n\n/**\n * Set or get test timeout `ms`.\n *\n * @private\n * @param {number} ms\n * @return {Context} self\n */\nContext.prototype.timeout = function (ms) {\n if (!arguments.length) {\n return this.runnable().timeout();\n }\n this.runnable().timeout(ms);\n return this;\n};\n\n/**\n * Set or get test slowness threshold `ms`.\n *\n * @private\n * @param {number} ms\n * @return {Context} self\n */\nContext.prototype.slow = function (ms) {\n if (!arguments.length) {\n return this.runnable().slow();\n }\n this.runnable().slow(ms);\n return this;\n};\n\n/**\n * Mark a test as skipped.\n *\n * @private\n * @throws Pending\n */\nContext.prototype.skip = function () {\n this.runnable().skip();\n};\n\n/**\n * Set or get a number of allowed retries on failed tests\n *\n * @private\n * @param {number} n\n * @return {Context} self\n */\nContext.prototype.retries = function (n) {\n if (!arguments.length) {\n return this.runnable().retries();\n }\n this.runnable().retries(n);\n return this;\n};\n","'use strict';\n\n/*!\n * mocha\n * Copyright(c) 2011 TJ Holowaychuk \n * MIT Licensed\n */\n\nvar escapeRe = require('escape-string-regexp');\nvar path = require('path');\nvar builtinReporters = require('./reporters');\nvar utils = require('./utils');\nvar mocharc = require('./mocharc.json');\nvar Suite = require('./suite');\nvar esmUtils = require('./nodejs/esm-utils');\nvar createStatsCollector = require('./stats-collector');\nconst {\n createInvalidReporterError,\n createInvalidInterfaceError,\n createMochaInstanceAlreadyDisposedError,\n createMochaInstanceAlreadyRunningError,\n createUnsupportedError\n} = require('./errors');\nconst {EVENT_FILE_PRE_REQUIRE, EVENT_FILE_POST_REQUIRE, EVENT_FILE_REQUIRE} =\n Suite.constants;\nvar debug = require('debug')('mocha:mocha');\n\nexports = module.exports = Mocha;\n\n/**\n * A Mocha instance is a finite state machine.\n * These are the states it can be in.\n * @private\n */\nvar mochaStates = utils.defineConstants({\n /**\n * Initial state of the mocha instance\n * @private\n */\n INIT: 'init',\n /**\n * Mocha instance is running tests\n * @private\n */\n RUNNING: 'running',\n /**\n * Mocha instance is done running tests and references to test functions and hooks are cleaned.\n * You can reset this state by unloading the test files.\n * @private\n */\n REFERENCES_CLEANED: 'referencesCleaned',\n /**\n * Mocha instance is disposed and can no longer be used.\n * @private\n */\n DISPOSED: 'disposed'\n});\n\n/**\n * To require local UIs and reporters when running in node.\n */\n\nif (!utils.isBrowser() && typeof module.paths !== 'undefined') {\n var cwd = utils.cwd();\n module.paths.push(cwd, path.join(cwd, 'node_modules'));\n}\n\n/**\n * Expose internals.\n * @private\n */\n\nexports.utils = utils;\nexports.interfaces = require('./interfaces');\n/**\n * @public\n * @memberof Mocha\n */\nexports.reporters = builtinReporters;\nexports.Runnable = require('./runnable');\nexports.Context = require('./context');\n/**\n *\n * @memberof Mocha\n */\nexports.Runner = require('./runner');\nexports.Suite = Suite;\nexports.Hook = require('./hook');\nexports.Test = require('./test');\n\nlet currentContext;\nexports.afterEach = function (...args) {\n return (currentContext.afterEach || currentContext.teardown).apply(\n this,\n args\n );\n};\nexports.after = function (...args) {\n return (currentContext.after || currentContext.suiteTeardown).apply(\n this,\n args\n );\n};\nexports.beforeEach = function (...args) {\n return (currentContext.beforeEach || currentContext.setup).apply(this, args);\n};\nexports.before = function (...args) {\n return (currentContext.before || currentContext.suiteSetup).apply(this, args);\n};\nexports.describe = function (...args) {\n return (currentContext.describe || currentContext.suite).apply(this, args);\n};\nexports.describe.only = function (...args) {\n return (currentContext.describe || currentContext.suite).only.apply(\n this,\n args\n );\n};\nexports.describe.skip = function (...args) {\n return (currentContext.describe || currentContext.suite).skip.apply(\n this,\n args\n );\n};\nexports.it = function (...args) {\n return (currentContext.it || currentContext.test).apply(this, args);\n};\nexports.it.only = function (...args) {\n return (currentContext.it || currentContext.test).only.apply(this, args);\n};\nexports.it.skip = function (...args) {\n return (currentContext.it || currentContext.test).skip.apply(this, args);\n};\nexports.xdescribe = exports.describe.skip;\nexports.xit = exports.it.skip;\nexports.setup = exports.beforeEach;\nexports.suiteSetup = exports.before;\nexports.suiteTeardown = exports.after;\nexports.suite = exports.describe;\nexports.teardown = exports.afterEach;\nexports.test = exports.it;\nexports.run = function (...args) {\n return currentContext.run.apply(this, args);\n};\n\n/**\n * Constructs a new Mocha instance with `options`.\n *\n * @public\n * @class Mocha\n * @param {Object} [options] - Settings object.\n * @param {boolean} [options.allowUncaught] - Propagate uncaught errors?\n * @param {boolean} [options.asyncOnly] - Force `done` callback or promise?\n * @param {boolean} [options.bail] - Bail after first test failure?\n * @param {boolean} [options.checkLeaks] - Check for global variable leaks?\n * @param {boolean} [options.color] - Color TTY output from reporter?\n * @param {boolean} [options.delay] - Delay root suite execution?\n * @param {boolean} [options.diff] - Show diff on failure?\n * @param {boolean} [options.dryRun] - Report tests without running them?\n * @param {boolean} [options.failZero] - Fail test run if zero tests?\n * @param {string} [options.fgrep] - Test filter given string.\n * @param {boolean} [options.forbidOnly] - Tests marked `only` fail the suite?\n * @param {boolean} [options.forbidPending] - Pending tests fail the suite?\n * @param {boolean} [options.fullTrace] - Full stacktrace upon failure?\n * @param {string[]} [options.global] - Variables expected in global scope.\n * @param {RegExp|string} [options.grep] - Test filter given regular expression.\n * @param {boolean} [options.inlineDiffs] - Display inline diffs?\n * @param {boolean} [options.invert] - Invert test filter matches?\n * @param {boolean} [options.noHighlighting] - Disable syntax highlighting?\n * @param {string|constructor} [options.reporter] - Reporter name or constructor.\n * @param {Object} [options.reporterOption] - Reporter settings object.\n * @param {number} [options.retries] - Number of times to retry failed tests.\n * @param {number} [options.slow] - Slow threshold value.\n * @param {number|string} [options.timeout] - Timeout threshold value.\n * @param {string} [options.ui] - Interface name.\n * @param {boolean} [options.parallel] - Run jobs in parallel.\n * @param {number} [options.jobs] - Max number of worker processes for parallel runs.\n * @param {MochaRootHookObject} [options.rootHooks] - Hooks to bootstrap the root suite with.\n * @param {string[]} [options.require] - Pathname of `rootHooks` plugin for parallel runs.\n * @param {boolean} [options.isWorker] - Should be `true` if `Mocha` process is running in a worker process.\n */\nfunction Mocha(options = {}) {\n options = {...mocharc, ...options};\n this.files = [];\n this.options = options;\n // root suite\n this.suite = new exports.Suite('', new exports.Context(), true);\n this._cleanReferencesAfterRun = true;\n this._state = mochaStates.INIT;\n\n this.grep(options.grep)\n .fgrep(options.fgrep)\n .ui(options.ui)\n .reporter(\n options.reporter,\n options.reporterOption || options.reporterOptions // for backwards compatibility\n )\n .slow(options.slow)\n .global(options.global);\n\n // this guard exists because Suite#timeout does not consider `undefined` to be valid input\n if (typeof options.timeout !== 'undefined') {\n this.timeout(options.timeout === false ? 0 : options.timeout);\n }\n\n if ('retries' in options) {\n this.retries(options.retries);\n }\n\n [\n 'allowUncaught',\n 'asyncOnly',\n 'bail',\n 'checkLeaks',\n 'color',\n 'delay',\n 'diff',\n 'dryRun',\n 'failZero',\n 'forbidOnly',\n 'forbidPending',\n 'fullTrace',\n 'inlineDiffs',\n 'invert'\n ].forEach(function (opt) {\n if (options[opt]) {\n this[opt]();\n }\n }, this);\n\n if (options.rootHooks) {\n this.rootHooks(options.rootHooks);\n }\n\n /**\n * The class which we'll instantiate in {@link Mocha#run}. Defaults to\n * {@link Runner} in serial mode; changes in parallel mode.\n * @memberof Mocha\n * @private\n */\n this._runnerClass = exports.Runner;\n\n /**\n * Whether or not to call {@link Mocha#loadFiles} implicitly when calling\n * {@link Mocha#run}. If this is `true`, then it's up to the consumer to call\n * {@link Mocha#loadFiles} _or_ {@link Mocha#loadFilesAsync}.\n * @private\n * @memberof Mocha\n */\n this._lazyLoadFiles = false;\n\n /**\n * It's useful for a Mocha instance to know if it's running in a worker process.\n * We could derive this via other means, but it's helpful to have a flag to refer to.\n * @memberof Mocha\n * @private\n */\n this.isWorker = Boolean(options.isWorker);\n\n this.globalSetup(options.globalSetup)\n .globalTeardown(options.globalTeardown)\n .enableGlobalSetup(options.enableGlobalSetup)\n .enableGlobalTeardown(options.enableGlobalTeardown);\n\n if (\n options.parallel &&\n (typeof options.jobs === 'undefined' || options.jobs > 1)\n ) {\n debug('attempting to enable parallel mode');\n this.parallelMode(true);\n }\n}\n\n/**\n * Enables or disables bailing on the first failure.\n *\n * @public\n * @see [CLI option](../#-bail-b)\n * @param {boolean} [bail=true] - Whether to bail on first error.\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.bail = function (bail) {\n this.suite.bail(bail !== false);\n return this;\n};\n\n/**\n * @summary\n * Adds `file` to be loaded for execution.\n *\n * @description\n * Useful for generic setup code that must be included within test suite.\n *\n * @public\n * @see [CLI option](../#-file-filedirectoryglob)\n * @param {string} file - Pathname of file to be loaded.\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.addFile = function (file) {\n this.files.push(file);\n return this;\n};\n\n/**\n * Sets reporter to `reporter`, defaults to \"spec\".\n *\n * @public\n * @see [CLI option](../#-reporter-name-r-name)\n * @see [Reporters](../#reporters)\n * @param {String|Function} reporterName - Reporter name or constructor.\n * @param {Object} [reporterOptions] - Options used to configure the reporter.\n * @returns {Mocha} this\n * @chainable\n * @throws {Error} if requested reporter cannot be loaded\n * @example\n *\n * // Use XUnit reporter and direct its output to file\n * mocha.reporter('xunit', { output: '/path/to/testspec.xunit.xml' });\n */\nMocha.prototype.reporter = function (reporterName, reporterOptions) {\n if (typeof reporterName === 'function') {\n this._reporter = reporterName;\n } else {\n reporterName = reporterName || 'spec';\n var reporter;\n // Try to load a built-in reporter.\n if (builtinReporters[reporterName]) {\n reporter = builtinReporters[reporterName];\n }\n // Try to load reporters from process.cwd() and node_modules\n if (!reporter) {\n let foundReporter;\n try {\n foundReporter = require.resolve(reporterName);\n reporter = require(foundReporter);\n } catch (err) {\n if (foundReporter) {\n throw createInvalidReporterError(err.message, foundReporter);\n }\n // Try to load reporters from a cwd-relative path\n try {\n reporter = require(path.resolve(reporterName));\n } catch (e) {\n throw createInvalidReporterError(e.message, reporterName);\n }\n }\n }\n this._reporter = reporter;\n }\n this.options.reporterOption = reporterOptions;\n // alias option name is used in built-in reporters xunit/tap/progress\n this.options.reporterOptions = reporterOptions;\n return this;\n};\n\n/**\n * Sets test UI `name`, defaults to \"bdd\".\n *\n * @public\n * @see [CLI option](../#-ui-name-u-name)\n * @see [Interface DSLs](../#interfaces)\n * @param {string|Function} [ui=bdd] - Interface name or class.\n * @returns {Mocha} this\n * @chainable\n * @throws {Error} if requested interface cannot be loaded\n */\nMocha.prototype.ui = function (ui) {\n var bindInterface;\n if (typeof ui === 'function') {\n bindInterface = ui;\n } else {\n ui = ui || 'bdd';\n bindInterface = exports.interfaces[ui];\n if (!bindInterface) {\n try {\n bindInterface = require(ui);\n } catch (err) {\n throw createInvalidInterfaceError(`invalid interface '${ui}'`, ui);\n }\n }\n }\n bindInterface(this.suite);\n\n this.suite.on(EVENT_FILE_PRE_REQUIRE, function (context) {\n currentContext = context;\n });\n\n return this;\n};\n\n/**\n * Loads `files` prior to execution. Does not support ES Modules.\n *\n * @description\n * The implementation relies on Node's `require` to execute\n * the test interface functions and will be subject to its cache.\n * Supports only CommonJS modules. To load ES modules, use Mocha#loadFilesAsync.\n *\n * @private\n * @see {@link Mocha#addFile}\n * @see {@link Mocha#run}\n * @see {@link Mocha#unloadFiles}\n * @see {@link Mocha#loadFilesAsync}\n * @param {Function} [fn] - Callback invoked upon completion.\n */\nMocha.prototype.loadFiles = function (fn) {\n var self = this;\n var suite = this.suite;\n this.files.forEach(function (file) {\n file = path.resolve(file);\n suite.emit(EVENT_FILE_PRE_REQUIRE, global, file, self);\n suite.emit(EVENT_FILE_REQUIRE, require(file), file, self);\n suite.emit(EVENT_FILE_POST_REQUIRE, global, file, self);\n });\n fn && fn();\n};\n\n/**\n * Loads `files` prior to execution. Supports Node ES Modules.\n *\n * @description\n * The implementation relies on Node's `require` and `import` to execute\n * the test interface functions and will be subject to its cache.\n * Supports both CJS and ESM modules.\n *\n * @public\n * @see {@link Mocha#addFile}\n * @see {@link Mocha#run}\n * @see {@link Mocha#unloadFiles}\n * @returns {Promise}\n * @example\n *\n * // loads ESM (and CJS) test files asynchronously, then runs root suite\n * mocha.loadFilesAsync()\n * .then(() => mocha.run(failures => process.exitCode = failures ? 1 : 0))\n * .catch(() => process.exitCode = 1);\n */\nMocha.prototype.loadFilesAsync = function () {\n var self = this;\n var suite = this.suite;\n this.lazyLoadFiles(true);\n\n return esmUtils.loadFilesAsync(\n this.files,\n function (file) {\n suite.emit(EVENT_FILE_PRE_REQUIRE, global, file, self);\n },\n function (file, resultModule) {\n suite.emit(EVENT_FILE_REQUIRE, resultModule, file, self);\n suite.emit(EVENT_FILE_POST_REQUIRE, global, file, self);\n }\n );\n};\n\n/**\n * Removes a previously loaded file from Node's `require` cache.\n *\n * @private\n * @static\n * @see {@link Mocha#unloadFiles}\n * @param {string} file - Pathname of file to be unloaded.\n */\nMocha.unloadFile = function (file) {\n if (utils.isBrowser()) {\n throw createUnsupportedError(\n 'unloadFile() is only supported in a Node.js environment'\n );\n }\n return require('./nodejs/file-unloader').unloadFile(file);\n};\n\n/**\n * Unloads `files` from Node's `require` cache.\n *\n * @description\n * This allows required files to be \"freshly\" reloaded, providing the ability\n * to reuse a Mocha instance programmatically.\n * Note: does not clear ESM module files from the cache\n *\n * Intended for consumers — not used internally\n *\n * @public\n * @see {@link Mocha#run}\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.unloadFiles = function () {\n if (this._state === mochaStates.DISPOSED) {\n throw createMochaInstanceAlreadyDisposedError(\n 'Mocha instance is already disposed, it cannot be used again.',\n this._cleanReferencesAfterRun,\n this\n );\n }\n\n this.files.forEach(function (file) {\n Mocha.unloadFile(file);\n });\n this._state = mochaStates.INIT;\n return this;\n};\n\n/**\n * Sets `grep` filter after escaping RegExp special characters.\n *\n * @public\n * @see {@link Mocha#grep}\n * @param {string} str - Value to be converted to a regexp.\n * @returns {Mocha} this\n * @chainable\n * @example\n *\n * // Select tests whose full title begins with `\"foo\"` followed by a period\n * mocha.fgrep('foo.');\n */\nMocha.prototype.fgrep = function (str) {\n if (!str) {\n return this;\n }\n return this.grep(new RegExp(escapeRe(str)));\n};\n\n/**\n * @summary\n * Sets `grep` filter used to select specific tests for execution.\n *\n * @description\n * If `re` is a regexp-like string, it will be converted to regexp.\n * The regexp is tested against the full title of each test (i.e., the\n * name of the test preceded by titles of each its ancestral suites).\n * As such, using an exact-match fixed pattern against the\n * test name itself will not yield any matches.\n *
    \n * Previous filter value will be overwritten on each call!\n *\n * @public\n * @see [CLI option](../#-grep-regexp-g-regexp)\n * @see {@link Mocha#fgrep}\n * @see {@link Mocha#invert}\n * @param {RegExp|String} re - Regular expression used to select tests.\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Select tests whose full title contains `\"match\"`, ignoring case\n * mocha.grep(/match/i);\n * @example\n *\n * // Same as above but with regexp-like string argument\n * mocha.grep('/match/i');\n * @example\n *\n * // ## Anti-example\n * // Given embedded test `it('only-this-test')`...\n * mocha.grep('/^only-this-test$/'); // NO! Use `.only()` to do this!\n */\nMocha.prototype.grep = function (re) {\n if (utils.isString(re)) {\n // extract args if it's regex-like, i.e: [string, pattern, flag]\n var arg = re.match(/^\\/(.*)\\/([gimy]{0,4})$|.*/);\n this.options.grep = new RegExp(arg[1] || arg[0], arg[2]);\n } else {\n this.options.grep = re;\n }\n return this;\n};\n\n/**\n * Inverts `grep` matches.\n *\n * @public\n * @see {@link Mocha#grep}\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Select tests whose full title does *not* contain `\"match\"`, ignoring case\n * mocha.grep(/match/i).invert();\n */\nMocha.prototype.invert = function () {\n this.options.invert = true;\n return this;\n};\n\n/**\n * Enables or disables checking for global variables leaked while running tests.\n *\n * @public\n * @see [CLI option](../#-check-leaks)\n * @param {boolean} [checkLeaks=true] - Whether to check for global variable leaks.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.checkLeaks = function (checkLeaks) {\n this.options.checkLeaks = checkLeaks !== false;\n return this;\n};\n\n/**\n * Enables or disables whether or not to dispose after each test run.\n * Disable this to ensure you can run the test suite multiple times.\n * If disabled, be sure to dispose mocha when you're done to prevent memory leaks.\n * @public\n * @see {@link Mocha#dispose}\n * @param {boolean} cleanReferencesAfterRun\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.cleanReferencesAfterRun = function (cleanReferencesAfterRun) {\n this._cleanReferencesAfterRun = cleanReferencesAfterRun !== false;\n return this;\n};\n\n/**\n * Manually dispose this mocha instance. Mark this instance as `disposed` and unable to run more tests.\n * It also removes function references to tests functions and hooks, so variables trapped in closures can be cleaned by the garbage collector.\n * @public\n */\nMocha.prototype.dispose = function () {\n if (this._state === mochaStates.RUNNING) {\n throw createMochaInstanceAlreadyRunningError(\n 'Cannot dispose while the mocha instance is still running tests.'\n );\n }\n this.unloadFiles();\n this._previousRunner && this._previousRunner.dispose();\n this.suite.dispose();\n this._state = mochaStates.DISPOSED;\n};\n\n/**\n * Displays full stack trace upon test failure.\n *\n * @public\n * @see [CLI option](../#-full-trace)\n * @param {boolean} [fullTrace=true] - Whether to print full stacktrace upon failure.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.fullTrace = function (fullTrace) {\n this.options.fullTrace = fullTrace !== false;\n return this;\n};\n\n/**\n * Specifies whitelist of variable names to be expected in global scope.\n *\n * @public\n * @see [CLI option](../#-global-variable-name)\n * @see {@link Mocha#checkLeaks}\n * @param {String[]|String} global - Accepted global variable name(s).\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Specify variables to be expected in global scope\n * mocha.global(['jQuery', 'MyLib']);\n */\nMocha.prototype.global = function (global) {\n this.options.global = (this.options.global || [])\n .concat(global)\n .filter(Boolean)\n .filter(function (elt, idx, arr) {\n return arr.indexOf(elt) === idx;\n });\n return this;\n};\n// for backwards compatibility, 'globals' is an alias of 'global'\nMocha.prototype.globals = Mocha.prototype.global;\n\n/**\n * Enables or disables TTY color output by screen-oriented reporters.\n *\n * @public\n * @see [CLI option](../#-color-c-colors)\n * @param {boolean} [color=true] - Whether to enable color output.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.color = function (color) {\n this.options.color = color !== false;\n return this;\n};\n\n/**\n * Enables or disables reporter to use inline diffs (rather than +/-)\n * in test failure output.\n *\n * @public\n * @see [CLI option](../#-inline-diffs)\n * @param {boolean} [inlineDiffs=true] - Whether to use inline diffs.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.inlineDiffs = function (inlineDiffs) {\n this.options.inlineDiffs = inlineDiffs !== false;\n return this;\n};\n\n/**\n * Enables or disables reporter to include diff in test failure output.\n *\n * @public\n * @see [CLI option](../#-diff)\n * @param {boolean} [diff=true] - Whether to show diff on failure.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.diff = function (diff) {\n this.options.diff = diff !== false;\n return this;\n};\n\n/**\n * @summary\n * Sets timeout threshold value.\n *\n * @description\n * A string argument can use shorthand (such as \"2s\") and will be converted.\n * If the value is `0`, timeouts will be disabled.\n *\n * @public\n * @see [CLI option](../#-timeout-ms-t-ms)\n * @see [Timeouts](../#timeouts)\n * @param {number|string} msecs - Timeout threshold value.\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Sets timeout to one second\n * mocha.timeout(1000);\n * @example\n *\n * // Same as above but using string argument\n * mocha.timeout('1s');\n */\nMocha.prototype.timeout = function (msecs) {\n this.suite.timeout(msecs);\n return this;\n};\n\n/**\n * Sets the number of times to retry failed tests.\n *\n * @public\n * @see [CLI option](../#-retries-n)\n * @see [Retry Tests](../#retry-tests)\n * @param {number} retry - Number of times to retry failed tests.\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Allow any failed test to retry one more time\n * mocha.retries(1);\n */\nMocha.prototype.retries = function (retry) {\n this.suite.retries(retry);\n return this;\n};\n\n/**\n * Sets slowness threshold value.\n *\n * @public\n * @see [CLI option](../#-slow-ms-s-ms)\n * @param {number} msecs - Slowness threshold value.\n * @return {Mocha} this\n * @chainable\n * @example\n *\n * // Sets \"slow\" threshold to half a second\n * mocha.slow(500);\n * @example\n *\n * // Same as above but using string argument\n * mocha.slow('0.5s');\n */\nMocha.prototype.slow = function (msecs) {\n this.suite.slow(msecs);\n return this;\n};\n\n/**\n * Forces all tests to either accept a `done` callback or return a promise.\n *\n * @public\n * @see [CLI option](../#-async-only-a)\n * @param {boolean} [asyncOnly=true] - Whether to force `done` callback or promise.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.asyncOnly = function (asyncOnly) {\n this.options.asyncOnly = asyncOnly !== false;\n return this;\n};\n\n/**\n * Disables syntax highlighting (in browser).\n *\n * @public\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.noHighlighting = function () {\n this.options.noHighlighting = true;\n return this;\n};\n\n/**\n * Enables or disables uncaught errors to propagate.\n *\n * @public\n * @see [CLI option](../#-allow-uncaught)\n * @param {boolean} [allowUncaught=true] - Whether to propagate uncaught errors.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.allowUncaught = function (allowUncaught) {\n this.options.allowUncaught = allowUncaught !== false;\n return this;\n};\n\n/**\n * @summary\n * Delays root suite execution.\n *\n * @description\n * Used to perform async operations before any suites are run.\n *\n * @public\n * @see [delayed root suite](../#delayed-root-suite)\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.delay = function delay() {\n this.options.delay = true;\n return this;\n};\n\n/**\n * Enables or disables running tests in dry-run mode.\n *\n * @public\n * @see [CLI option](../#-dry-run)\n * @param {boolean} [dryRun=true] - Whether to activate dry-run mode.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.dryRun = function (dryRun) {\n this.options.dryRun = dryRun !== false;\n return this;\n};\n\n/**\n * Fails test run if no tests encountered with exit-code 1.\n *\n * @public\n * @see [CLI option](../#-fail-zero)\n * @param {boolean} [failZero=true] - Whether to fail test run.\n * @return {Mocha} this\n * @chainable\n */\nMocha.prototype.failZero = function (failZero) {\n this.options.failZero = failZero !== false;\n return this;\n};\n\n/**\n * Causes tests marked `only` to fail the suite.\n *\n * @public\n * @see [CLI option](../#-forbid-only)\n * @param {boolean} [forbidOnly=true] - Whether tests marked `only` fail the suite.\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.forbidOnly = function (forbidOnly) {\n this.options.forbidOnly = forbidOnly !== false;\n return this;\n};\n\n/**\n * Causes pending tests and tests marked `skip` to fail the suite.\n *\n * @public\n * @see [CLI option](../#-forbid-pending)\n * @param {boolean} [forbidPending=true] - Whether pending tests fail the suite.\n * @returns {Mocha} this\n * @chainable\n */\nMocha.prototype.forbidPending = function (forbidPending) {\n this.options.forbidPending = forbidPending !== false;\n return this;\n};\n\n/**\n * Throws an error if mocha is in the wrong state to be able to transition to a \"running\" state.\n * @private\n */\nMocha.prototype._guardRunningStateTransition = function () {\n if (this._state === mochaStates.RUNNING) {\n throw createMochaInstanceAlreadyRunningError(\n 'Mocha instance is currently running tests, cannot start a next test run until this one is done',\n this\n );\n }\n if (\n this._state === mochaStates.DISPOSED ||\n this._state === mochaStates.REFERENCES_CLEANED\n ) {\n throw createMochaInstanceAlreadyDisposedError(\n 'Mocha instance is already disposed, cannot start a new test run. Please create a new mocha instance. Be sure to set disable `cleanReferencesAfterRun` when you want to reuse the same mocha instance for multiple test runs.',\n this._cleanReferencesAfterRun,\n this\n );\n }\n};\n\n/**\n * Mocha version as specified by \"package.json\".\n *\n * @name Mocha#version\n * @type string\n * @readonly\n */\nObject.defineProperty(Mocha.prototype, 'version', {\n value: require('../package.json').version,\n configurable: false,\n enumerable: true,\n writable: false\n});\n\n/**\n * Callback to be invoked when test execution is complete.\n *\n * @private\n * @callback DoneCB\n * @param {number} failures - Number of failures that occurred.\n */\n\n/**\n * Runs root suite and invokes `fn()` when complete.\n *\n * @description\n * To run tests multiple times (or to run tests in files that are\n * already in the `require` cache), make sure to clear them from\n * the cache first!\n *\n * @public\n * @see {@link Mocha#unloadFiles}\n * @see {@link Runner#run}\n * @param {DoneCB} [fn] - Callback invoked when test execution completed.\n * @returns {Runner} runner instance\n * @example\n *\n * // exit with non-zero status if there were test failures\n * mocha.run(failures => process.exitCode = failures ? 1 : 0);\n */\nMocha.prototype.run = function (fn) {\n this._guardRunningStateTransition();\n this._state = mochaStates.RUNNING;\n if (this._previousRunner) {\n this._previousRunner.dispose();\n this.suite.reset();\n }\n if (this.files.length && !this._lazyLoadFiles) {\n this.loadFiles();\n }\n var suite = this.suite;\n var options = this.options;\n options.files = this.files;\n const runner = new this._runnerClass(suite, {\n cleanReferencesAfterRun: this._cleanReferencesAfterRun,\n delay: options.delay,\n dryRun: options.dryRun,\n failZero: options.failZero\n });\n createStatsCollector(runner);\n var reporter = new this._reporter(runner, options);\n runner.checkLeaks = options.checkLeaks === true;\n runner.fullStackTrace = options.fullTrace;\n runner.asyncOnly = options.asyncOnly;\n runner.allowUncaught = options.allowUncaught;\n runner.forbidOnly = options.forbidOnly;\n runner.forbidPending = options.forbidPending;\n if (options.grep) {\n runner.grep(options.grep, options.invert);\n }\n if (options.global) {\n runner.globals(options.global);\n }\n if (options.color !== undefined) {\n exports.reporters.Base.useColors = options.color;\n }\n exports.reporters.Base.inlineDiffs = options.inlineDiffs;\n exports.reporters.Base.hideDiff = !options.diff;\n\n const done = failures => {\n this._previousRunner = runner;\n this._state = this._cleanReferencesAfterRun\n ? mochaStates.REFERENCES_CLEANED\n : mochaStates.INIT;\n fn = fn || utils.noop;\n if (typeof reporter.done === 'function') {\n reporter.done(failures, fn);\n } else {\n fn(failures);\n }\n };\n\n const runAsync = async runner => {\n const context =\n this.options.enableGlobalSetup && this.hasGlobalSetupFixtures()\n ? await this.runGlobalSetup(runner)\n : {};\n const failureCount = await runner.runAsync({\n files: this.files,\n options\n });\n if (this.options.enableGlobalTeardown && this.hasGlobalTeardownFixtures()) {\n await this.runGlobalTeardown(runner, {context});\n }\n return failureCount;\n };\n\n // no \"catch\" here is intentional. errors coming out of\n // Runner#run are considered uncaught/unhandled and caught\n // by the `process` event listeners.\n // also: returning anything other than `runner` would be a breaking\n // change\n runAsync(runner).then(done);\n\n return runner;\n};\n\n/**\n * Assigns hooks to the root suite\n * @param {MochaRootHookObject} [hooks] - Hooks to assign to root suite\n * @chainable\n */\nMocha.prototype.rootHooks = function rootHooks({\n beforeAll = [],\n beforeEach = [],\n afterAll = [],\n afterEach = []\n} = {}) {\n beforeAll = utils.castArray(beforeAll);\n beforeEach = utils.castArray(beforeEach);\n afterAll = utils.castArray(afterAll);\n afterEach = utils.castArray(afterEach);\n beforeAll.forEach(hook => {\n this.suite.beforeAll(hook);\n });\n beforeEach.forEach(hook => {\n this.suite.beforeEach(hook);\n });\n afterAll.forEach(hook => {\n this.suite.afterAll(hook);\n });\n afterEach.forEach(hook => {\n this.suite.afterEach(hook);\n });\n return this;\n};\n\n/**\n * Toggles parallel mode.\n *\n * Must be run before calling {@link Mocha#run}. Changes the `Runner` class to\n * use; also enables lazy file loading if not already done so.\n *\n * Warning: when passed `false` and lazy loading has been enabled _via any means_ (including calling `parallelMode(true)`), this method will _not_ disable lazy loading. Lazy loading is a prerequisite for parallel\n * mode, but parallel mode is _not_ a prerequisite for lazy loading!\n * @param {boolean} [enable] - If `true`, enable; otherwise disable.\n * @throws If run in browser\n * @throws If Mocha not in `INIT` state\n * @returns {Mocha}\n * @chainable\n * @public\n */\nMocha.prototype.parallelMode = function parallelMode(enable = true) {\n if (utils.isBrowser()) {\n throw createUnsupportedError('parallel mode is only supported in Node.js');\n }\n const parallel = Boolean(enable);\n if (\n parallel === this.options.parallel &&\n this._lazyLoadFiles &&\n this._runnerClass !== exports.Runner\n ) {\n return this;\n }\n if (this._state !== mochaStates.INIT) {\n throw createUnsupportedError(\n 'cannot change parallel mode after having called run()'\n );\n }\n this.options.parallel = parallel;\n\n // swap Runner class\n this._runnerClass = parallel\n ? require('./nodejs/parallel-buffered-runner')\n : exports.Runner;\n\n // lazyLoadFiles may have been set `true` otherwise (for ESM loading),\n // so keep `true` if so.\n return this.lazyLoadFiles(this._lazyLoadFiles || parallel);\n};\n\n/**\n * Disables implicit call to {@link Mocha#loadFiles} in {@link Mocha#run}. This\n * setting is used by watch mode, parallel mode, and for loading ESM files.\n * @todo This should throw if we've already loaded files; such behavior\n * necessitates adding a new state.\n * @param {boolean} [enable] - If `true`, disable eager loading of files in\n * {@link Mocha#run}\n * @chainable\n * @public\n */\nMocha.prototype.lazyLoadFiles = function lazyLoadFiles(enable) {\n this._lazyLoadFiles = enable === true;\n debug('set lazy load to %s', enable);\n return this;\n};\n\n/**\n * Configures one or more global setup fixtures.\n *\n * If given no parameters, _unsets_ any previously-set fixtures.\n * @chainable\n * @public\n * @param {MochaGlobalFixture|MochaGlobalFixture[]} [setupFns] - Global setup fixture(s)\n * @returns {Mocha}\n */\nMocha.prototype.globalSetup = function globalSetup(setupFns = []) {\n setupFns = utils.castArray(setupFns);\n this.options.globalSetup = setupFns;\n debug('configured %d global setup functions', setupFns.length);\n return this;\n};\n\n/**\n * Configures one or more global teardown fixtures.\n *\n * If given no parameters, _unsets_ any previously-set fixtures.\n * @chainable\n * @public\n * @param {MochaGlobalFixture|MochaGlobalFixture[]} [teardownFns] - Global teardown fixture(s)\n * @returns {Mocha}\n */\nMocha.prototype.globalTeardown = function globalTeardown(teardownFns = []) {\n teardownFns = utils.castArray(teardownFns);\n this.options.globalTeardown = teardownFns;\n debug('configured %d global teardown functions', teardownFns.length);\n return this;\n};\n\n/**\n * Run any global setup fixtures sequentially, if any.\n *\n * This is _automatically called_ by {@link Mocha#run} _unless_ the `runGlobalSetup` option is `false`; see {@link Mocha#enableGlobalSetup}.\n *\n * The context object this function resolves with should be consumed by {@link Mocha#runGlobalTeardown}.\n * @param {object} [context] - Context object if already have one\n * @public\n * @returns {Promise} Context object\n */\nMocha.prototype.runGlobalSetup = async function runGlobalSetup(context = {}) {\n const {globalSetup} = this.options;\n if (globalSetup && globalSetup.length) {\n debug('run(): global setup starting');\n await this._runGlobalFixtures(globalSetup, context);\n debug('run(): global setup complete');\n }\n return context;\n};\n\n/**\n * Run any global teardown fixtures sequentially, if any.\n *\n * This is _automatically called_ by {@link Mocha#run} _unless_ the `runGlobalTeardown` option is `false`; see {@link Mocha#enableGlobalTeardown}.\n *\n * Should be called with context object returned by {@link Mocha#runGlobalSetup}, if applicable.\n * @param {object} [context] - Context object if already have one\n * @public\n * @returns {Promise} Context object\n */\nMocha.prototype.runGlobalTeardown = async function runGlobalTeardown(\n context = {}\n) {\n const {globalTeardown} = this.options;\n if (globalTeardown && globalTeardown.length) {\n debug('run(): global teardown starting');\n await this._runGlobalFixtures(globalTeardown, context);\n }\n debug('run(): global teardown complete');\n return context;\n};\n\n/**\n * Run global fixtures sequentially with context `context`\n * @private\n * @param {MochaGlobalFixture[]} [fixtureFns] - Fixtures to run\n * @param {object} [context] - context object\n * @returns {Promise} context object\n */\nMocha.prototype._runGlobalFixtures = async function _runGlobalFixtures(\n fixtureFns = [],\n context = {}\n) {\n for await (const fixtureFn of fixtureFns) {\n await fixtureFn.call(context);\n }\n return context;\n};\n\n/**\n * Toggle execution of any global setup fixture(s)\n *\n * @chainable\n * @public\n * @param {boolean } [enabled=true] - If `false`, do not run global setup fixture\n * @returns {Mocha}\n */\nMocha.prototype.enableGlobalSetup = function enableGlobalSetup(enabled = true) {\n this.options.enableGlobalSetup = Boolean(enabled);\n return this;\n};\n\n/**\n * Toggle execution of any global teardown fixture(s)\n *\n * @chainable\n * @public\n * @param {boolean } [enabled=true] - If `false`, do not run global teardown fixture\n * @returns {Mocha}\n */\nMocha.prototype.enableGlobalTeardown = function enableGlobalTeardown(\n enabled = true\n) {\n this.options.enableGlobalTeardown = Boolean(enabled);\n return this;\n};\n\n/**\n * Returns `true` if one or more global setup fixtures have been supplied.\n * @public\n * @returns {boolean}\n */\nMocha.prototype.hasGlobalSetupFixtures = function hasGlobalSetupFixtures() {\n return Boolean(this.options.globalSetup.length);\n};\n\n/**\n * Returns `true` if one or more global teardown fixtures have been supplied.\n * @public\n * @returns {boolean}\n */\nMocha.prototype.hasGlobalTeardownFixtures =\n function hasGlobalTeardownFixtures() {\n return Boolean(this.options.globalTeardown.length);\n };\n\n/**\n * An alternative way to define root hooks that works with parallel runs.\n * @typedef {Object} MochaRootHookObject\n * @property {Function|Function[]} [beforeAll] - \"Before all\" hook(s)\n * @property {Function|Function[]} [beforeEach] - \"Before each\" hook(s)\n * @property {Function|Function[]} [afterAll] - \"After all\" hook(s)\n * @property {Function|Function[]} [afterEach] - \"After each\" hook(s)\n */\n\n/**\n * An function that returns a {@link MochaRootHookObject}, either sync or async.\n @callback MochaRootHookFunction\n * @returns {MochaRootHookObject|Promise}\n */\n\n/**\n * A function that's invoked _once_ which is either sync or async.\n * Can be a \"teardown\" or \"setup\". These will all share the same context.\n * @callback MochaGlobalFixture\n * @returns {void|Promise}\n */\n\n/**\n * An object making up all necessary parts of a plugin loader and aggregator\n * @typedef {Object} PluginDefinition\n * @property {string} exportName - Named export to use\n * @property {string} [optionName] - Option name for Mocha constructor (use `exportName` if omitted)\n * @property {PluginValidator} [validate] - Validator function\n * @property {PluginFinalizer} [finalize] - Finalizer/aggregator function\n */\n\n/**\n * A (sync) function to assert a user-supplied plugin implementation is valid.\n *\n * Defined in a {@link PluginDefinition}.\n\n * @callback PluginValidator\n * @param {*} value - Value to check\n * @this {PluginDefinition}\n * @returns {void}\n */\n\n/**\n * A function to finalize plugins impls of a particular ilk\n * @callback PluginFinalizer\n * @param {Array<*>} impls - User-supplied implementations\n * @returns {Promise<*>|*}\n */\n","'use strict';\n\n/* eslint no-unused-vars: off */\n/* eslint-env commonjs */\n\n/**\n * Shim process.stdout.\n */\n\nprocess.stdout = require('browser-stdout')({label: false});\n\nvar parseQuery = require('./lib/browser/parse-query');\nvar highlightTags = require('./lib/browser/highlight-tags');\nvar Mocha = require('./lib/mocha');\n\n/**\n * Create a Mocha instance.\n *\n * @return {undefined}\n */\n\nvar mocha = new Mocha({reporter: 'html'});\n\n/**\n * Save timer references to avoid Sinon interfering (see GH-237).\n */\n\nvar Date = global.Date;\nvar setTimeout = global.setTimeout;\nvar setInterval = global.setInterval;\nvar clearTimeout = global.clearTimeout;\nvar clearInterval = global.clearInterval;\n\nvar uncaughtExceptionHandlers = [];\n\nvar originalOnerrorHandler = global.onerror;\n\n/**\n * Remove uncaughtException listener.\n * Revert to original onerror handler if previously defined.\n */\n\nprocess.removeListener = function (e, fn) {\n if (e === 'uncaughtException') {\n if (originalOnerrorHandler) {\n global.onerror = originalOnerrorHandler;\n } else {\n global.onerror = function () {};\n }\n var i = uncaughtExceptionHandlers.indexOf(fn);\n if (i !== -1) {\n uncaughtExceptionHandlers.splice(i, 1);\n }\n }\n};\n\n/**\n * Implements listenerCount for 'uncaughtException'.\n */\n\nprocess.listenerCount = function (name) {\n if (name === 'uncaughtException') {\n return uncaughtExceptionHandlers.length;\n }\n return 0;\n};\n\n/**\n * Implements uncaughtException listener.\n */\n\nprocess.on = function (e, fn) {\n if (e === 'uncaughtException') {\n global.onerror = function (err, url, line) {\n fn(new Error(err + ' (' + url + ':' + line + ')'));\n return !mocha.options.allowUncaught;\n };\n uncaughtExceptionHandlers.push(fn);\n }\n};\n\nprocess.listeners = function (e) {\n if (e === 'uncaughtException') {\n return uncaughtExceptionHandlers;\n }\n return [];\n};\n\n// The BDD UI is registered by default, but no UI will be functional in the\n// browser without an explicit call to the overridden `mocha.ui` (see below).\n// Ensure that this default UI does not expose its methods to the global scope.\nmocha.suite.removeAllListeners('pre-require');\n\nvar immediateQueue = [];\nvar immediateTimeout;\n\nfunction timeslice() {\n var immediateStart = new Date().getTime();\n while (immediateQueue.length && new Date().getTime() - immediateStart < 100) {\n immediateQueue.shift()();\n }\n if (immediateQueue.length) {\n immediateTimeout = setTimeout(timeslice, 0);\n } else {\n immediateTimeout = null;\n }\n}\n\n/**\n * High-performance override of Runner.immediately.\n */\n\nMocha.Runner.immediately = function (callback) {\n immediateQueue.push(callback);\n if (!immediateTimeout) {\n immediateTimeout = setTimeout(timeslice, 0);\n }\n};\n\n/**\n * Function to allow assertion libraries to throw errors directly into mocha.\n * This is useful when running tests in a browser because window.onerror will\n * only receive the 'message' attribute of the Error.\n */\nmocha.throwError = function (err) {\n uncaughtExceptionHandlers.forEach(function (fn) {\n fn(err);\n });\n throw err;\n};\n\n/**\n * Override ui to ensure that the ui functions are initialized.\n * Normally this would happen in Mocha.prototype.loadFiles.\n */\n\nmocha.ui = function (ui) {\n Mocha.prototype.ui.call(this, ui);\n this.suite.emit('pre-require', global, null, this);\n return this;\n};\n\n/**\n * Setup mocha with the given setting options.\n */\n\nmocha.setup = function (opts) {\n if (typeof opts === 'string') {\n opts = {ui: opts};\n }\n if (opts.delay === true) {\n this.delay();\n }\n var self = this;\n Object.keys(opts)\n .filter(function (opt) {\n return opt !== 'delay';\n })\n .forEach(function (opt) {\n if (Object.prototype.hasOwnProperty.call(opts, opt)) {\n self[opt](opts[opt]);\n }\n });\n return this;\n};\n\n/**\n * Run mocha, returning the Runner.\n */\n\nmocha.run = function (fn) {\n var options = mocha.options;\n mocha.globals('location');\n\n var query = parseQuery(global.location.search || '');\n if (query.grep) {\n mocha.grep(query.grep);\n }\n if (query.fgrep) {\n mocha.fgrep(query.fgrep);\n }\n if (query.invert) {\n mocha.invert();\n }\n\n return Mocha.prototype.run.call(mocha, function (err) {\n // The DOM Document is not available in Web Workers.\n var document = global.document;\n if (\n document &&\n document.getElementById('mocha') &&\n options.noHighlighting !== true\n ) {\n highlightTags('code');\n }\n if (fn) {\n fn(err);\n }\n });\n};\n\n/**\n * Expose the process shim.\n * https://github.com/mochajs/mocha/pull/916\n */\n\nMocha.process = process;\n\n/**\n * Expose mocha.\n */\nglobal.Mocha = Mocha;\nglobal.mocha = mocha;\n\n// for bundlers: enable `import {describe, it} from 'mocha'`\n// `bdd` interface only\n// prettier-ignore\n[ \n 'describe', 'context', 'it', 'specify',\n 'xdescribe', 'xcontext', 'xit', 'xspecify',\n 'before', 'beforeEach', 'afterEach', 'after'\n].forEach(function(key) {\n mocha[key] = global[key];\n});\n\nmodule.exports = mocha;\n"],"names":["global","defaultSetTimout","defaultClearTimeout","cachedSetTimeout","cachedClearTimeout","runTimeout","runClearTimeout","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","nextTick","Item","title","platform","browser","env","argv","version","versions","release","config","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","binding","cwd","chdir","umask","performance","performanceNow","hrtime","startTime","uptime","require$$0","inherits","require$$1","process.nextTick","parseQuery","highlightTags","_base","_interopRequireDefault","_params","json","_line","array","parse","_parse","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","merge_1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","s","m","h","d","w","y","ms","fmtLong","fmtShort","plural","toString","base64.fromByteArray","ieee754.read","ieee754.write","base64.toByteArray","this","he","Buffer.isBuffer","process.browser","Pending","common","constants","createUnsupportedError","createMissingArgumentError","createInvalidArgumentTypeError","createInvalidExceptionError","createFatalError","createMultipleDoneError","createForbiddenExclusivityError","createTimeoutError","isMochaError","errors","EventEmitter","debug","utils","Date","setTimeout","clearTimeout","Runnable","MOCHA_ID_PROP_NAME","Suite","progress","require$$14","Test","EVENT_FILE_PRE_REQUIRE","bddModule","bdd","tddModule","tdd","qunitModule","qunit","exportsModule","exports","require$$15","require","require$$16"],"mappings":";;;;;;;;;;;AAAA,iBAAe,CAAC,OAAOA,QAAM,KAAK,WAAW,GAAGA,QAAM;EACtD,YAAY,OAAO,IAAI,KAAK,WAAW,GAAG,IAAI;EAC9C,YAAY,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG,EAAE;;ECFvD;;;EAGA,SAASC,kBAAgB,GAAG;EACxB,IAAA,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;EACtD,CAAA;EACD,SAASC,qBAAmB,IAAI;EAC5B,IAAA,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;EACxD,CAAA;EACD,IAAIC,kBAAgB,GAAGF,kBAAgB,CAAC;EACxC,IAAIG,oBAAkB,GAAGF,qBAAmB,CAAC;EAC7C,IAAI,OAAOF,QAAM,CAAC,UAAU,KAAK,UAAU,EAAE;MACzCG,kBAAgB,GAAG,UAAU,CAAC;EACjC,CAAA;EACD,IAAI,OAAOH,QAAM,CAAC,YAAY,KAAK,UAAU,EAAE;MAC3CI,oBAAkB,GAAG,YAAY,CAAC;EACrC,CAAA;;EAED,SAASC,YAAU,CAAC,GAAG,EAAE;MACrB,IAAIF,kBAAgB,KAAK,UAAU,EAAE;;EAEjC,QAAA,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;EAC7B,KAAA;;MA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AU;EAC1C,EAAA,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO;EAC7C,CAAA,CAAC,OAAO,CAAC,SAAS,GAAG,EAAE;IACtB,KAAK,CAAC,GAAG,CAAC,GAAGA,cAAM,CAAC,GAAG,CAAC,CAAC;EAC1B,CAAA,CAAC,CAAC;;AAEH,MAAA,YAAc,GAAG;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/prepend-http/index.js b/node_modules/prepend-http/index.js deleted file mode 100644 index 82b3a6b2..00000000 --- a/node_modules/prepend-http/index.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; -module.exports = (url, opts) => { - if (typeof url !== 'string') { - throw new TypeError(`Expected \`url\` to be of type \`string\`, got \`${typeof url}\``); - } - - url = url.trim(); - opts = Object.assign({https: false}, opts); - - if (/^\.*\/|^(?!localhost)\w+:/.test(url)) { - return url; - } - - return url.replace(/^(?!(?:\w+:)?\/\/)/, opts.https ? 'https://' : 'http://'); -}; diff --git a/node_modules/prepend-http/license b/node_modules/prepend-http/license deleted file mode 100644 index e7af2f77..00000000 --- a/node_modules/prepend-http/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/prepend-http/package.json b/node_modules/prepend-http/package.json deleted file mode 100644 index cbfac022..00000000 --- a/node_modules/prepend-http/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "prepend-http", - "version": "2.0.0", - "description": "Prepend `http://` to humanized URLs like todomvc.com and localhost", - "license": "MIT", - "repository": "sindresorhus/prepend-http", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "prepend", - "protocol", - "scheme", - "url", - "uri", - "http", - "https", - "humanized" - ], - "devDependencies": { - "ava": "*", - "xo": "*" - } -} diff --git a/node_modules/prepend-http/readme.md b/node_modules/prepend-http/readme.md deleted file mode 100644 index 55d640df..00000000 --- a/node_modules/prepend-http/readme.md +++ /dev/null @@ -1,56 +0,0 @@ -# prepend-http [![Build Status](https://travis-ci.org/sindresorhus/prepend-http.svg?branch=master)](https://travis-ci.org/sindresorhus/prepend-http) - -> Prepend `http://` to humanized URLs like `todomvc.com` and `localhost` - - -## Install - -``` -$ npm install prepend-http -``` - - -## Usage - -```js -const prependHttp = require('prepend-http'); - -prependHttp('todomvc.com'); -//=> 'http://todomvc.com' - -prependHttp('localhost'); -//=> 'http://localhost' - -prependHttp('http://todomvc.com'); -//=> 'http://todomvc.com' - -prependHttp('todomvc.com', {https: true}); -//=> 'https://todomvc.com' -``` - - -## API - -### prependHttp(url, [options]) - -#### url - -Type: `string` - -URL to prepend `http://` on. - -#### options - -Type: `Object` - -##### https - -Type: `boolean`
    -Default: `false` - -Prepend `https://` instead of `http://`. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js deleted file mode 100644 index 3eecf114..00000000 --- a/node_modules/process-nextick-args/index.js +++ /dev/null @@ -1,45 +0,0 @@ -'use strict'; - -if (typeof process === 'undefined' || - !process.version || - process.version.indexOf('v0.') === 0 || - process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { - module.exports = { nextTick: nextTick }; -} else { - module.exports = process -} - -function nextTick(fn, arg1, arg2, arg3) { - if (typeof fn !== 'function') { - throw new TypeError('"callback" argument must be a function'); - } - var len = arguments.length; - var args, i; - switch (len) { - case 0: - case 1: - return process.nextTick(fn); - case 2: - return process.nextTick(function afterTickOne() { - fn.call(null, arg1); - }); - case 3: - return process.nextTick(function afterTickTwo() { - fn.call(null, arg1, arg2); - }); - case 4: - return process.nextTick(function afterTickThree() { - fn.call(null, arg1, arg2, arg3); - }); - default: - args = new Array(len - 1); - i = 0; - while (i < args.length) { - args[i++] = arguments[i]; - } - return process.nextTick(function afterTick() { - fn.apply(null, args); - }); - } -} - diff --git a/node_modules/process-nextick-args/license.md b/node_modules/process-nextick-args/license.md deleted file mode 100644 index c67e3532..00000000 --- a/node_modules/process-nextick-args/license.md +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2015 Calvin Metcalf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.** diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json deleted file mode 100644 index 6070b723..00000000 --- a/node_modules/process-nextick-args/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "process-nextick-args", - "version": "2.0.1", - "description": "process.nextTick but always with args", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/calvinmetcalf/process-nextick-args.git" - }, - "author": "", - "license": "MIT", - "bugs": { - "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" - }, - "homepage": "https://github.com/calvinmetcalf/process-nextick-args", - "devDependencies": { - "tap": "~0.2.6" - } -} diff --git a/node_modules/process-nextick-args/readme.md b/node_modules/process-nextick-args/readme.md deleted file mode 100644 index ecb432c9..00000000 --- a/node_modules/process-nextick-args/readme.md +++ /dev/null @@ -1,18 +0,0 @@ -process-nextick-args -===== - -[![Build Status](https://travis-ci.org/calvinmetcalf/process-nextick-args.svg?branch=master)](https://travis-ci.org/calvinmetcalf/process-nextick-args) - -```bash -npm install --save process-nextick-args -``` - -Always be able to pass arguments to process.nextTick, no matter the platform - -```js -var pna = require('process-nextick-args'); - -pna.nextTick(function (a, b, c) { - console.log(a, b, c); -}, 'step', 3, 'profit'); -``` diff --git a/node_modules/pseudomap/LICENSE b/node_modules/pseudomap/LICENSE deleted file mode 100644 index 19129e31..00000000 --- a/node_modules/pseudomap/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/pseudomap/README.md b/node_modules/pseudomap/README.md deleted file mode 100644 index 778bf01d..00000000 --- a/node_modules/pseudomap/README.md +++ /dev/null @@ -1,60 +0,0 @@ -# pseudomap - -A thing that is a lot like ES6 `Map`, but without iterators, for use -in environments where `for..of` syntax and `Map` are not available. - -If you need iterators, or just in general a more faithful polyfill to -ES6 Maps, check out [es6-map](http://npm.im/es6-map). - -If you are in an environment where `Map` is supported, then that will -be returned instead, unless `process.env.TEST_PSEUDOMAP` is set. - -You can use any value as keys, and any value as data. Setting again -with the identical key will overwrite the previous value. - -Internally, data is stored on an `Object.create(null)` style object. -The key is coerced to a string to generate the key on the internal -data-bag object. The original key used is stored along with the data. - -In the event of a stringified-key collision, a new key is generated by -appending an increasing number to the stringified-key until finding -either the intended key or an empty spot. - -Note that because object traversal order of plain objects is not -guaranteed to be identical to insertion order, the insertion order -guarantee of `Map.prototype.forEach` is not guaranteed in this -implementation. However, in all versions of Node.js and V8 where this -module works, `forEach` does traverse data in insertion order. - -## API - -Most of the [Map -API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map), -with the following exceptions: - -1. A `Map` object is not an iterator. -2. `values`, `keys`, and `entries` methods are not implemented, - because they return iterators. -3. The argument to the constructor can be an Array of `[key, value]` - pairs, or a `Map` or `PseudoMap` object. But, since iterators - aren't used, passing any plain-old iterator won't initialize the - map properly. - -## USAGE - -Use just like a regular ES6 Map. - -```javascript -var PseudoMap = require('pseudomap') - -// optionally provide a pseudomap, or an array of [key,value] pairs -// as the argument to initialize the map with -var myMap = new PseudoMap() - -myMap.set(1, 'number 1') -myMap.set('1', 'string 1') -var akey = {} -var bkey = {} -myMap.set(akey, { some: 'data' }) -myMap.set(bkey, { some: 'other data' }) -``` diff --git a/node_modules/pseudomap/map.js b/node_modules/pseudomap/map.js deleted file mode 100644 index 7db15994..00000000 --- a/node_modules/pseudomap/map.js +++ /dev/null @@ -1,9 +0,0 @@ -if (process.env.npm_package_name === 'pseudomap' && - process.env.npm_lifecycle_script === 'test') - process.env.TEST_PSEUDOMAP = 'true' - -if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) { - module.exports = Map -} else { - module.exports = require('./pseudomap') -} diff --git a/node_modules/pseudomap/package.json b/node_modules/pseudomap/package.json deleted file mode 100644 index 4b02ab7c..00000000 --- a/node_modules/pseudomap/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "pseudomap", - "version": "1.0.2", - "description": "A thing that is a lot like ES6 `Map`, but without iterators, for use in environments where `for..of` syntax and `Map` are not available.", - "main": "map.js", - "directories": { - "test": "test" - }, - "devDependencies": { - "tap": "^2.3.1" - }, - "scripts": { - "test": "tap test/*.js" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/pseudomap.git" - }, - "author": "Isaac Z. Schlueter (http://blog.izs.me/)", - "license": "ISC", - "bugs": { - "url": "https://github.com/isaacs/pseudomap/issues" - }, - "homepage": "https://github.com/isaacs/pseudomap#readme" -} diff --git a/node_modules/pseudomap/pseudomap.js b/node_modules/pseudomap/pseudomap.js deleted file mode 100644 index 25a21d82..00000000 --- a/node_modules/pseudomap/pseudomap.js +++ /dev/null @@ -1,113 +0,0 @@ -var hasOwnProperty = Object.prototype.hasOwnProperty - -module.exports = PseudoMap - -function PseudoMap (set) { - if (!(this instanceof PseudoMap)) // whyyyyyyy - throw new TypeError("Constructor PseudoMap requires 'new'") - - this.clear() - - if (set) { - if ((set instanceof PseudoMap) || - (typeof Map === 'function' && set instanceof Map)) - set.forEach(function (value, key) { - this.set(key, value) - }, this) - else if (Array.isArray(set)) - set.forEach(function (kv) { - this.set(kv[0], kv[1]) - }, this) - else - throw new TypeError('invalid argument') - } -} - -PseudoMap.prototype.forEach = function (fn, thisp) { - thisp = thisp || this - Object.keys(this._data).forEach(function (k) { - if (k !== 'size') - fn.call(thisp, this._data[k].value, this._data[k].key) - }, this) -} - -PseudoMap.prototype.has = function (k) { - return !!find(this._data, k) -} - -PseudoMap.prototype.get = function (k) { - var res = find(this._data, k) - return res && res.value -} - -PseudoMap.prototype.set = function (k, v) { - set(this._data, k, v) -} - -PseudoMap.prototype.delete = function (k) { - var res = find(this._data, k) - if (res) { - delete this._data[res._index] - this._data.size-- - } -} - -PseudoMap.prototype.clear = function () { - var data = Object.create(null) - data.size = 0 - - Object.defineProperty(this, '_data', { - value: data, - enumerable: false, - configurable: true, - writable: false - }) -} - -Object.defineProperty(PseudoMap.prototype, 'size', { - get: function () { - return this._data.size - }, - set: function (n) {}, - enumerable: true, - configurable: true -}) - -PseudoMap.prototype.values = -PseudoMap.prototype.keys = -PseudoMap.prototype.entries = function () { - throw new Error('iterators are not implemented in this version') -} - -// Either identical, or both NaN -function same (a, b) { - return a === b || a !== a && b !== b -} - -function Entry (k, v, i) { - this.key = k - this.value = v - this._index = i -} - -function find (data, k) { - for (var i = 0, s = '_' + k, key = s; - hasOwnProperty.call(data, key); - key = s + i++) { - if (same(data[key].key, k)) - return data[key] - } -} - -function set (data, k, v) { - for (var i = 0, s = '_' + k, key = s; - hasOwnProperty.call(data, key); - key = s + i++) { - if (same(data[key].key, k)) { - data[key].value = v - return - } - } - data.size++ - data[key] = new Entry(k, v, key) -} diff --git a/node_modules/pseudomap/test/basic.js b/node_modules/pseudomap/test/basic.js deleted file mode 100644 index 4378e454..00000000 --- a/node_modules/pseudomap/test/basic.js +++ /dev/null @@ -1,86 +0,0 @@ -var t = require('tap') - -process.env.TEST_PSEUDOMAP = 'true' - -var PM = require('../') -runTests(PM) - -// if possible, verify that Map also behaves the same way -if (typeof Map === 'function') - runTests(Map) - - -function runTests (Map) { - t.throws(Map) - - var m = new Map() - - t.equal(m.size, 0) - - m.set(1, '1 string') - t.equal(m.get(1), '1 string') - t.equal(m.size, 1) - m.size = 1000 - t.equal(m.size, 1) - m.size = 0 - t.equal(m.size, 1) - - m = new Map([[1, 'number 1'], ['1', 'string 1']]) - t.equal(m.get(1), 'number 1') - t.equal(m.get('1'), 'string 1') - t.equal(m.size, 2) - - m = new Map(m) - t.equal(m.get(1), 'number 1') - t.equal(m.get('1'), 'string 1') - t.equal(m.size, 2) - - var akey = {} - var bkey = {} - m.set(akey, { some: 'data' }) - m.set(bkey, { some: 'other data' }) - t.same(m.get(akey), { some: 'data' }) - t.same(m.get(bkey), { some: 'other data' }) - t.equal(m.size, 4) - - var x = /x/ - var y = /x/ - m.set(x, 'x regex') - m.set(y, 'y regex') - t.equal(m.get(x), 'x regex') - m.set(x, 'x again') - t.equal(m.get(x), 'x again') - t.equal(m.size, 6) - - m.set(NaN, 'not a number') - t.equal(m.get(NaN), 'not a number') - m.set(NaN, 'it is a ' + typeof NaN) - t.equal(m.get(NaN), 'it is a number') - m.set('NaN', 'stringie nan') - t.equal(m.get(NaN), 'it is a number') - t.equal(m.get('NaN'), 'stringie nan') - t.equal(m.size, 8) - - m.delete(NaN) - t.equal(m.get(NaN), undefined) - t.equal(m.size, 7) - - var expect = [ - { value: 'number 1', key: 1 }, - { value: 'string 1', key: '1' }, - { value: { some: 'data' }, key: {} }, - { value: { some: 'other data' }, key: {} }, - { value: 'x again', key: /x/ }, - { value: 'y regex', key: /x/ }, - { value: 'stringie nan', key: 'NaN' } - ] - var actual = [] - - m.forEach(function (value, key) { - actual.push({ value: value, key: key }) - }) - t.same(actual, expect) - - m.clear() - t.equal(m.size, 0) -} diff --git a/node_modules/semver/LICENSE b/node_modules/semver/LICENSE deleted file mode 100644 index 0c44ae71..00000000 --- a/node_modules/semver/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) Isaac Z. Schlueter ("Author") -All rights reserved. - -The BSD License - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/semver/README.md b/node_modules/semver/README.md deleted file mode 100644 index b5e35ff0..00000000 --- a/node_modules/semver/README.md +++ /dev/null @@ -1,303 +0,0 @@ -semver(1) -- The semantic versioner for npm -=========================================== - -## Usage - - $ npm install semver - - semver.valid('1.2.3') // '1.2.3' - semver.valid('a.b.c') // null - semver.clean(' =v1.2.3 ') // '1.2.3' - semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true - semver.gt('1.2.3', '9.8.7') // false - semver.lt('1.2.3', '9.8.7') // true - -As a command-line utility: - - $ semver -h - - Usage: semver [ [...]] [-r | -i | --preid | -l | -rv] - Test if version(s) satisfy the supplied range(s), and sort them. - - Multiple versions or ranges may be supplied, unless increment - option is specified. In that case, only a single version may - be used, and it is incremented by the specified level - - Program exits successfully if any valid version satisfies - all supplied ranges, and prints all satisfying versions. - - If no versions are valid, or ranges are not satisfied, - then exits failure. - - Versions are printed in ascending order, so supplying - multiple versions to the utility will just sort them. - -## Versions - -A "version" is described by the `v2.0.0` specification found at -. - -A leading `"="` or `"v"` character is stripped off and ignored. - -## Ranges - -A `version range` is a set of `comparators` which specify versions -that satisfy the range. - -A `comparator` is composed of an `operator` and a `version`. The set -of primitive `operators` is: - -* `<` Less than -* `<=` Less than or equal to -* `>` Greater than -* `>=` Greater than or equal to -* `=` Equal. If no operator is specified, then equality is assumed, - so this operator is optional, but MAY be included. - -For example, the comparator `>=1.2.7` would match the versions -`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` -or `1.1.0`. - -Comparators can be joined by whitespace to form a `comparator set`, -which is satisfied by the **intersection** of all of the comparators -it includes. - -A range is composed of one or more comparator sets, joined by `||`. A -version matches a range if and only if every comparator in at least -one of the `||`-separated comparator sets is satisfied by the version. - -For example, the range `>=1.2.7 <1.3.0` would match the versions -`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, -or `1.1.0`. - -The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, -`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. - -### Prerelease Tags - -If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then -it will only be allowed to satisfy comparator sets if at least one -comparator with the same `[major, minor, patch]` tuple also has a -prerelease tag. - -For example, the range `>1.2.3-alpha.3` would be allowed to match the -version `1.2.3-alpha.7`, but it would *not* be satisfied by -`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater -than" `1.2.3-alpha.3` according to the SemVer sort rules. The version -range only accepts prerelease tags on the `1.2.3` version. The -version `3.4.5` *would* satisfy the range, because it does not have a -prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. - -The purpose for this behavior is twofold. First, prerelease versions -frequently are updated very quickly, and contain many breaking changes -that are (by the author's design) not yet fit for public consumption. -Therefore, by default, they are excluded from range matching -semantics. - -Second, a user who has opted into using a prerelease version has -clearly indicated the intent to use *that specific* set of -alpha/beta/rc versions. By including a prerelease tag in the range, -the user is indicating that they are aware of the risk. However, it -is still not appropriate to assume that they have opted into taking a -similar risk on the *next* set of prerelease versions. - -#### Prerelease Identifiers - -The method `.inc` takes an additional `identifier` string argument that -will append the value of the string as a prerelease identifier: - -```javascript -> semver.inc('1.2.3', 'pre', 'beta') -'1.2.4-beta.0' -``` - -command-line example: - -```shell -$ semver 1.2.3 -i prerelease --preid beta -1.2.4-beta.0 -``` - -Which then can be used to increment further: - -```shell -$ semver 1.2.4-beta.0 -i prerelease -1.2.4-beta.1 -``` - -### Advanced Range Syntax - -Advanced range syntax desugars to primitive comparators in -deterministic ways. - -Advanced ranges may be combined in the same way as primitive -comparators using white space or `||`. - -#### Hyphen Ranges `X.Y.Z - A.B.C` - -Specifies an inclusive set. - -* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` - -If a partial version is provided as the first version in the inclusive -range, then the missing pieces are replaced with zeroes. - -* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` - -If a partial version is provided as the second version in the -inclusive range, then all versions that start with the supplied parts -of the tuple are accepted, but nothing that would be greater than the -provided tuple parts. - -* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0` -* `1.2.3 - 2` := `>=1.2.3 <3.0.0` - -#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` - -Any of `X`, `x`, or `*` may be used to "stand in" for one of the -numeric values in the `[major, minor, patch]` tuple. - -* `*` := `>=0.0.0` (Any version satisfies) -* `1.x` := `>=1.0.0 <2.0.0` (Matching major version) -* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions) - -A partial version range is treated as an X-Range, so the special -character is in fact optional. - -* `""` (empty string) := `*` := `>=0.0.0` -* `1` := `1.x.x` := `>=1.0.0 <2.0.0` -* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0` - -#### Tilde Ranges `~1.2.3` `~1.2` `~1` - -Allows patch-level changes if a minor version is specified on the -comparator. Allows minor-level changes if not. - -* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0` -* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`) -* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`) -* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0` -* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`) -* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`) -* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. - -#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` - -Allows changes that do not modify the left-most non-zero digit in the -`[major, minor, patch]` tuple. In other words, this allows patch and -minor updates for versions `1.0.0` and above, patch updates for -versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. - -Many authors treat a `0.x` version as if the `x` were the major -"breaking-change" indicator. - -Caret ranges are ideal when an author may make breaking changes -between `0.2.4` and `0.3.0` releases, which is a common practice. -However, it presumes that there will *not* be breaking changes between -`0.2.4` and `0.2.5`. It allows for changes that are presumed to be -additive (but non-breaking), according to commonly observed practices. - -* `^1.2.3` := `>=1.2.3 <2.0.0` -* `^0.2.3` := `>=0.2.3 <0.3.0` -* `^0.0.3` := `>=0.0.3 <0.0.4` -* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in - the `1.2.3` version will be allowed, if they are greater than or - equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but - `1.2.4-beta.2` would not, because it is a prerelease of a - different `[major, minor, patch]` tuple. -* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the - `0.0.3` version *only* will be allowed, if they are greater than or - equal to `beta`. So, `0.0.3-pr.2` would be allowed. - -When parsing caret ranges, a missing `patch` value desugars to the -number `0`, but will allow flexibility within that value, even if the -major and minor versions are both `0`. - -* `^1.2.x` := `>=1.2.0 <2.0.0` -* `^0.0.x` := `>=0.0.0 <0.1.0` -* `^0.0` := `>=0.0.0 <0.1.0` - -A missing `minor` and `patch` values will desugar to zero, but also -allow flexibility within those values, even if the major version is -zero. - -* `^1.x` := `>=1.0.0 <2.0.0` -* `^0.x` := `>=0.0.0 <1.0.0` - -## Functions - -All methods and classes take a final `loose` boolean argument that, if -true, will be more forgiving about not-quite-valid semver strings. -The resulting output will always be 100% strict, of course. - -Strict-mode Comparators and Ranges will be strict about the SemVer -strings that they parse. - -* `valid(v)`: Return the parsed version, or null if it's not valid. -* `inc(v, release)`: Return the version incremented by the release - type (`major`, `premajor`, `minor`, `preminor`, `patch`, - `prepatch`, or `prerelease`), or null if it's not valid - * `premajor` in one call will bump the version up to the next major - version and down to a prerelease of that major version. - `preminor`, and `prepatch` work the same way. - * If called from a non-prerelease version, the `prerelease` will work the - same as `prepatch`. It increments the patch version, then makes a - prerelease. If the input version is already a prerelease it simply - increments it. -* `major(v)`: Return the major version number. -* `minor(v)`: Return the minor version number. -* `patch(v)`: Return the patch version number. - -### Comparison - -* `gt(v1, v2)`: `v1 > v2` -* `gte(v1, v2)`: `v1 >= v2` -* `lt(v1, v2)`: `v1 < v2` -* `lte(v1, v2)`: `v1 <= v2` -* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, - even if they're not the exact same string. You already know how to - compare strings. -* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. -* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call - the corresponding function above. `"==="` and `"!=="` do simple - string comparison, but are included for completeness. Throws if an - invalid comparison string is provided. -* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if - `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. -* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions - in descending order when passed to `Array.sort()`. -* `diff(v1, v2)`: Returns difference between two versions by the release type - (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), - or null if the versions are the same. - - -### Ranges - -* `validRange(range)`: Return the valid range or null if it's not valid -* `satisfies(version, range)`: Return true if the version satisfies the - range. -* `maxSatisfying(versions, range)`: Return the highest version in the list - that satisfies the range, or `null` if none of them do. -* `gtr(version, range)`: Return `true` if version is greater than all the - versions possible in the range. -* `ltr(version, range)`: Return `true` if version is less than all the - versions possible in the range. -* `outside(version, range, hilo)`: Return true if the version is outside - the bounds of the range in either the high or low direction. The - `hilo` argument must be either the string `'>'` or `'<'`. (This is - the function called by `gtr` and `ltr`.) - -Note that, since ranges may be non-contiguous, a version might not be -greater than a range, less than a range, *or* satisfy a range! For -example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` -until `2.0.0`, so the version `1.2.10` would not be greater than the -range (because `2.0.1` satisfies, which is higher), nor less than the -range (since `1.2.8` satisfies, which is lower), and it also does not -satisfy the range. - -If you want to know if a version satisfies or does not satisfy a -range, use the `satisfies(version, range)` function. diff --git a/node_modules/semver/bin/semver b/node_modules/semver/bin/semver deleted file mode 100755 index c5f2e857..00000000 --- a/node_modules/semver/bin/semver +++ /dev/null @@ -1,133 +0,0 @@ -#!/usr/bin/env node -// Standalone semver comparison program. -// Exits successfully and prints matching version(s) if -// any supplied version is valid and passes all tests. - -var argv = process.argv.slice(2) - , versions = [] - , range = [] - , gt = [] - , lt = [] - , eq = [] - , inc = null - , version = require("../package.json").version - , loose = false - , identifier = undefined - , semver = require("../semver") - , reverse = false - -main() - -function main () { - if (!argv.length) return help() - while (argv.length) { - var a = argv.shift() - var i = a.indexOf('=') - if (i !== -1) { - a = a.slice(0, i) - argv.unshift(a.slice(i + 1)) - } - switch (a) { - case "-rv": case "-rev": case "--rev": case "--reverse": - reverse = true - break - case "-l": case "--loose": - loose = true - break - case "-v": case "--version": - versions.push(argv.shift()) - break - case "-i": case "--inc": case "--increment": - switch (argv[0]) { - case "major": case "minor": case "patch": case "prerelease": - case "premajor": case "preminor": case "prepatch": - inc = argv.shift() - break - default: - inc = "patch" - break - } - break - case "--preid": - identifier = argv.shift() - break - case "-r": case "--range": - range.push(argv.shift()) - break - case "-h": case "--help": case "-?": - return help() - default: - versions.push(a) - break - } - } - - versions = versions.filter(function (v) { - return semver.valid(v, loose) - }) - if (!versions.length) return fail() - if (inc && (versions.length !== 1 || range.length)) - return failInc() - - for (var i = 0, l = range.length; i < l ; i ++) { - versions = versions.filter(function (v) { - return semver.satisfies(v, range[i], loose) - }) - if (!versions.length) return fail() - } - return success(versions) -} - -function failInc () { - console.error("--inc can only be used on a single version with no range") - fail() -} - -function fail () { process.exit(1) } - -function success () { - var compare = reverse ? "rcompare" : "compare" - versions.sort(function (a, b) { - return semver[compare](a, b, loose) - }).map(function (v) { - return semver.clean(v, loose) - }).map(function (v) { - return inc ? semver.inc(v, inc, loose, identifier) : v - }).forEach(function (v,i,_) { console.log(v) }) -} - -function help () { - console.log(["SemVer " + version - ,"" - ,"A JavaScript implementation of the http://semver.org/ specification" - ,"Copyright Isaac Z. Schlueter" - ,"" - ,"Usage: semver [options] [ [...]]" - ,"Prints valid versions sorted by SemVer precedence" - ,"" - ,"Options:" - ,"-r --range " - ," Print versions that match the specified range." - ,"" - ,"-i --increment []" - ," Increment a version by the specified level. Level can" - ," be one of: major, minor, patch, premajor, preminor," - ," prepatch, or prerelease. Default level is 'patch'." - ," Only one version may be specified." - ,"" - ,"--preid " - ," Identifier to be used to prefix premajor, preminor," - ," prepatch or prerelease version increments." - ,"" - ,"-l --loose" - ," Interpret versions and ranges loosely" - ,"" - ,"Program exits successfully if any valid version satisfies" - ,"all supplied ranges, and prints all satisfying versions." - ,"" - ,"If no satisfying versions are found, then exits failure." - ,"" - ,"Versions are printed in ascending order, so supplying" - ,"multiple versions to the utility will just sort them." - ].join("\n")) -} diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json deleted file mode 100644 index 549b233f..00000000 --- a/node_modules/semver/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "semver", - "version": "4.3.2", - "description": "The semantic version parser used by npm.", - "main": "semver.js", - "browser": "semver.browser.js", - "min": "semver.min.js", - "scripts": { - "test": "tap test/*.js", - "prepublish": "make" - }, - "devDependencies": { - "tap": "0.x >=0.0.4", - "uglify-js": "~2.3.6" - }, - "license": "BSD", - "repository": "git://github.com/npm/node-semver.git", - "bin": { - "semver": "./bin/semver" - } -} diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js deleted file mode 100644 index d265b568..00000000 --- a/node_modules/semver/semver.js +++ /dev/null @@ -1,1191 +0,0 @@ -// export the class if we are in a Node-like system. -if (typeof module === 'object' && module.exports === exports) - exports = module.exports = SemVer; - -// The debug function is excluded entirely from the minified version. -/* nomin */ var debug; -/* nomin */ if (typeof process === 'object' && - /* nomin */ process.env && - /* nomin */ process.env.NODE_DEBUG && - /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG)) - /* nomin */ debug = function() { - /* nomin */ var args = Array.prototype.slice.call(arguments, 0); - /* nomin */ args.unshift('SEMVER'); - /* nomin */ console.log.apply(console, args); - /* nomin */ }; -/* nomin */ else - /* nomin */ debug = function() {}; - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -exports.SEMVER_SPEC_VERSION = '2.0.0'; - -var MAX_LENGTH = 256; -var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; - -// The actual regexps go on exports.re -var re = exports.re = []; -var src = exports.src = []; -var R = 0; - -// The following Regular Expressions can be used for tokenizing, -// validating, and parsing SemVer version strings. - -// ## Numeric Identifier -// A single `0`, or a non-zero digit followed by zero or more digits. - -var NUMERICIDENTIFIER = R++; -src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'; -var NUMERICIDENTIFIERLOOSE = R++; -src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'; - - -// ## Non-numeric Identifier -// Zero or more digits, followed by a letter or hyphen, and then zero or -// more letters, digits, or hyphens. - -var NONNUMERICIDENTIFIER = R++; -src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'; - - -// ## Main Version -// Three dot-separated numeric identifiers. - -var MAINVERSION = R++; -src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')\\.' + - '(' + src[NUMERICIDENTIFIER] + ')'; - -var MAINVERSIONLOOSE = R++; -src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + - '(' + src[NUMERICIDENTIFIERLOOSE] + ')'; - -// ## Pre-release Version Identifier -// A numeric identifier, or a non-numeric identifier. - -var PRERELEASEIDENTIFIER = R++; -src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + - '|' + src[NONNUMERICIDENTIFIER] + ')'; - -var PRERELEASEIDENTIFIERLOOSE = R++; -src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + - '|' + src[NONNUMERICIDENTIFIER] + ')'; - - -// ## Pre-release Version -// Hyphen, followed by one or more dot-separated pre-release version -// identifiers. - -var PRERELEASE = R++; -src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + - '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))'; - -var PRERELEASELOOSE = R++; -src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + - '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))'; - -// ## Build Metadata Identifier -// Any combination of digits, letters, or hyphens. - -var BUILDIDENTIFIER = R++; -src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'; - -// ## Build Metadata -// Plus sign, followed by one or more period-separated build metadata -// identifiers. - -var BUILD = R++; -src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + - '(?:\\.' + src[BUILDIDENTIFIER] + ')*))'; - - -// ## Full Version String -// A main version, followed optionally by a pre-release version and -// build metadata. - -// Note that the only major, minor, patch, and pre-release sections of -// the version string are capturing groups. The build metadata is not a -// capturing group, because it should not ever be used in version -// comparison. - -var FULL = R++; -var FULLPLAIN = 'v?' + src[MAINVERSION] + - src[PRERELEASE] + '?' + - src[BUILD] + '?'; - -src[FULL] = '^' + FULLPLAIN + '$'; - -// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. -// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty -// common in the npm registry. -var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + - src[PRERELEASELOOSE] + '?' + - src[BUILD] + '?'; - -var LOOSE = R++; -src[LOOSE] = '^' + LOOSEPLAIN + '$'; - -var GTLT = R++; -src[GTLT] = '((?:<|>)?=?)'; - -// Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" -// Only the first item is strictly required. -var XRANGEIDENTIFIERLOOSE = R++; -src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'; -var XRANGEIDENTIFIER = R++; -src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'; - -var XRANGEPLAIN = R++; -src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + - '(?:' + src[PRERELEASE] + ')?' + - src[BUILD] + '?' + - ')?)?'; - -var XRANGEPLAINLOOSE = R++; -src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + - '(?:' + src[PRERELEASELOOSE] + ')?' + - src[BUILD] + '?' + - ')?)?'; - -var XRANGE = R++; -src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'; -var XRANGELOOSE = R++; -src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'; - -// Tilde ranges. -// Meaning is "reasonably at or greater than" -var LONETILDE = R++; -src[LONETILDE] = '(?:~>?)'; - -var TILDETRIM = R++; -src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'; -re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g'); -var tildeTrimReplace = '$1~'; - -var TILDE = R++; -src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'; -var TILDELOOSE = R++; -src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'; - -// Caret ranges. -// Meaning is "at least and backwards compatible with" -var LONECARET = R++; -src[LONECARET] = '(?:\\^)'; - -var CARETTRIM = R++; -src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'; -re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g'); -var caretTrimReplace = '$1^'; - -var CARET = R++; -src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'; -var CARETLOOSE = R++; -src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'; - -// A simple gt/lt/eq thing, or just "" to indicate "any version" -var COMPARATORLOOSE = R++; -src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'; -var COMPARATOR = R++; -src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'; - - -// An expression to strip any whitespace between the gtlt and the thing -// it modifies, so that `> 1.2.3` ==> `>1.2.3` -var COMPARATORTRIM = R++; -src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + - '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')'; - -// this one has to use the /g flag -re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g'); -var comparatorTrimReplace = '$1$2$3'; - - -// Something like `1.2.3 - 1.2.4` -// Note that these all use the loose form, because they'll be -// checked against either the strict or loose comparator form -// later. -var HYPHENRANGE = R++; -src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAIN] + ')' + - '\\s*$'; - -var HYPHENRANGELOOSE = R++; -src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s+-\\s+' + - '(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s*$'; - -// Star ranges basically just allow anything at all. -var STAR = R++; -src[STAR] = '(<|>)?=?\\s*\\*'; - -// Compile to actual regexp objects. -// All are flag-free, unless they were created above with a flag. -for (var i = 0; i < R; i++) { - debug(i, src[i]); - if (!re[i]) - re[i] = new RegExp(src[i]); -} - -exports.parse = parse; -function parse(version, loose) { - if (version.length > MAX_LENGTH) - return null; - - var r = loose ? re[LOOSE] : re[FULL]; - if (!r.test(version)) - return null; - - try { - return new SemVer(version, loose); - } catch (er) { - return null; - } -} - -exports.valid = valid; -function valid(version, loose) { - var v = parse(version, loose); - return v ? v.version : null; -} - - -exports.clean = clean; -function clean(version, loose) { - var s = parse(version.trim().replace(/^[=v]+/, ''), loose); - return s ? s.version : null; -} - -exports.SemVer = SemVer; - -function SemVer(version, loose) { - if (version instanceof SemVer) { - if (version.loose === loose) - return version; - else - version = version.version; - } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version); - } - - if (version.length > MAX_LENGTH) - throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') - - if (!(this instanceof SemVer)) - return new SemVer(version, loose); - - debug('SemVer', version, loose); - this.loose = loose; - var m = version.trim().match(loose ? re[LOOSE] : re[FULL]); - - if (!m) - throw new TypeError('Invalid Version: ' + version); - - this.raw = version; - - // these are actually numbers - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) - throw new TypeError('Invalid major version') - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) - throw new TypeError('Invalid minor version') - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) - throw new TypeError('Invalid patch version') - - // numberify any prerelease numeric ids - if (!m[4]) - this.prerelease = []; - else - this.prerelease = m[4].split('.').map(function(id) { - return (/^[0-9]+$/.test(id)) ? +id : id; - }); - - this.build = m[5] ? m[5].split('.') : []; - this.format(); -} - -SemVer.prototype.format = function() { - this.version = this.major + '.' + this.minor + '.' + this.patch; - if (this.prerelease.length) - this.version += '-' + this.prerelease.join('.'); - return this.version; -}; - -SemVer.prototype.inspect = function() { - return ''; -}; - -SemVer.prototype.toString = function() { - return this.version; -}; - -SemVer.prototype.compare = function(other) { - debug('SemVer.compare', this.version, this.loose, other); - if (!(other instanceof SemVer)) - other = new SemVer(other, this.loose); - - return this.compareMain(other) || this.comparePre(other); -}; - -SemVer.prototype.compareMain = function(other) { - if (!(other instanceof SemVer)) - other = new SemVer(other, this.loose); - - return compareIdentifiers(this.major, other.major) || - compareIdentifiers(this.minor, other.minor) || - compareIdentifiers(this.patch, other.patch); -}; - -SemVer.prototype.comparePre = function(other) { - if (!(other instanceof SemVer)) - other = new SemVer(other, this.loose); - - // NOT having a prerelease is > having one - if (this.prerelease.length && !other.prerelease.length) - return -1; - else if (!this.prerelease.length && other.prerelease.length) - return 1; - else if (!this.prerelease.length && !other.prerelease.length) - return 0; - - var i = 0; - do { - var a = this.prerelease[i]; - var b = other.prerelease[i]; - debug('prerelease compare', i, a, b); - if (a === undefined && b === undefined) - return 0; - else if (b === undefined) - return 1; - else if (a === undefined) - return -1; - else if (a === b) - continue; - else - return compareIdentifiers(a, b); - } while (++i); -}; - -// preminor will bump the version up to the next minor release, and immediately -// down to pre-release. premajor and prepatch work the same way. -SemVer.prototype.inc = function(release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier); - break; - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier); - break; - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0; - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - // If the input is a non-prerelease version, this acts the same as - // prepatch. - case 'prerelease': - if (this.prerelease.length === 0) - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) - this.major++; - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) - this.minor++; - this.patch = 0; - this.prerelease = []; - break; - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) - this.patch++; - this.prerelease = []; - break; - // This probably shouldn't be used publicly. - // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. - case 'pre': - if (this.prerelease.length === 0) - this.prerelease = [0]; - else { - var i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) // didn't increment anything - this.prerelease.push(0); - } - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) - this.prerelease = [identifier, 0]; - } else - this.prerelease = [identifier, 0]; - } - break; - - default: - throw new Error('invalid increment argument: ' + release); - } - this.format(); - return this; -}; - -exports.inc = inc; -function inc(version, release, loose, identifier) { - if (typeof(loose) === 'string') { - identifier = loose; - loose = undefined; - } - - try { - return new SemVer(version, loose).inc(release, identifier).version; - } catch (er) { - return null; - } -} - -exports.diff = diff; -function diff(version1, version2) { - if (eq(version1, version2)) { - return null; - } else { - var v1 = parse(version1); - var v2 = parse(version2); - if (v1.prerelease.length || v2.prerelease.length) { - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return 'pre'+key; - } - } - } - return 'prerelease'; - } - for (var key in v1) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (v1[key] !== v2[key]) { - return key; - } - } - } - } -} - -exports.compareIdentifiers = compareIdentifiers; - -var numeric = /^[0-9]+$/; -function compareIdentifiers(a, b) { - var anum = numeric.test(a); - var bnum = numeric.test(b); - - if (anum && bnum) { - a = +a; - b = +b; - } - - return (anum && !bnum) ? -1 : - (bnum && !anum) ? 1 : - a < b ? -1 : - a > b ? 1 : - 0; -} - -exports.rcompareIdentifiers = rcompareIdentifiers; -function rcompareIdentifiers(a, b) { - return compareIdentifiers(b, a); -} - -exports.major = major; -function major(a, loose) { - return new SemVer(a, loose).major; -} - -exports.minor = minor; -function minor(a, loose) { - return new SemVer(a, loose).minor; -} - -exports.patch = patch; -function patch(a, loose) { - return new SemVer(a, loose).patch; -} - -exports.compare = compare; -function compare(a, b, loose) { - return new SemVer(a, loose).compare(b); -} - -exports.compareLoose = compareLoose; -function compareLoose(a, b) { - return compare(a, b, true); -} - -exports.rcompare = rcompare; -function rcompare(a, b, loose) { - return compare(b, a, loose); -} - -exports.sort = sort; -function sort(list, loose) { - return list.sort(function(a, b) { - return exports.compare(a, b, loose); - }); -} - -exports.rsort = rsort; -function rsort(list, loose) { - return list.sort(function(a, b) { - return exports.rcompare(a, b, loose); - }); -} - -exports.gt = gt; -function gt(a, b, loose) { - return compare(a, b, loose) > 0; -} - -exports.lt = lt; -function lt(a, b, loose) { - return compare(a, b, loose) < 0; -} - -exports.eq = eq; -function eq(a, b, loose) { - return compare(a, b, loose) === 0; -} - -exports.neq = neq; -function neq(a, b, loose) { - return compare(a, b, loose) !== 0; -} - -exports.gte = gte; -function gte(a, b, loose) { - return compare(a, b, loose) >= 0; -} - -exports.lte = lte; -function lte(a, b, loose) { - return compare(a, b, loose) <= 0; -} - -exports.cmp = cmp; -function cmp(a, op, b, loose) { - var ret; - switch (op) { - case '===': - if (typeof a === 'object') a = a.version; - if (typeof b === 'object') b = b.version; - ret = a === b; - break; - case '!==': - if (typeof a === 'object') a = a.version; - if (typeof b === 'object') b = b.version; - ret = a !== b; - break; - case '': case '=': case '==': ret = eq(a, b, loose); break; - case '!=': ret = neq(a, b, loose); break; - case '>': ret = gt(a, b, loose); break; - case '>=': ret = gte(a, b, loose); break; - case '<': ret = lt(a, b, loose); break; - case '<=': ret = lte(a, b, loose); break; - default: throw new TypeError('Invalid operator: ' + op); - } - return ret; -} - -exports.Comparator = Comparator; -function Comparator(comp, loose) { - if (comp instanceof Comparator) { - if (comp.loose === loose) - return comp; - else - comp = comp.value; - } - - if (!(this instanceof Comparator)) - return new Comparator(comp, loose); - - debug('comparator', comp, loose); - this.loose = loose; - this.parse(comp); - - if (this.semver === ANY) - this.value = ''; - else - this.value = this.operator + this.semver.version; - - debug('comp', this); -} - -var ANY = {}; -Comparator.prototype.parse = function(comp) { - var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; - var m = comp.match(r); - - if (!m) - throw new TypeError('Invalid comparator: ' + comp); - - this.operator = m[1]; - if (this.operator === '=') - this.operator = ''; - - // if it literally is just '>' or '' then allow anything. - if (!m[2]) - this.semver = ANY; - else - this.semver = new SemVer(m[2], this.loose); -}; - -Comparator.prototype.inspect = function() { - return ''; -}; - -Comparator.prototype.toString = function() { - return this.value; -}; - -Comparator.prototype.test = function(version) { - debug('Comparator.test', version, this.loose); - - if (this.semver === ANY) - return true; - - if (typeof version === 'string') - version = new SemVer(version, this.loose); - - return cmp(version, this.operator, this.semver, this.loose); -}; - - -exports.Range = Range; -function Range(range, loose) { - if ((range instanceof Range) && range.loose === loose) - return range; - - if (!(this instanceof Range)) - return new Range(range, loose); - - this.loose = loose; - - // First, split based on boolean or || - this.raw = range; - this.set = range.split(/\s*\|\|\s*/).map(function(range) { - return this.parseRange(range.trim()); - }, this).filter(function(c) { - // throw out any that are not relevant for whatever reason - return c.length; - }); - - if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range); - } - - this.format(); -} - -Range.prototype.inspect = function() { - return ''; -}; - -Range.prototype.format = function() { - this.range = this.set.map(function(comps) { - return comps.join(' ').trim(); - }).join('||').trim(); - return this.range; -}; - -Range.prototype.toString = function() { - return this.range; -}; - -Range.prototype.parseRange = function(range) { - var loose = this.loose; - range = range.trim(); - debug('range', range, loose); - // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]; - range = range.replace(hr, hyphenReplace); - debug('hyphen replace', range); - // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace); - debug('comparator trim', range, re[COMPARATORTRIM]); - - // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[TILDETRIM], tildeTrimReplace); - - // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[CARETTRIM], caretTrimReplace); - - // normalize spaces - range = range.split(/\s+/).join(' '); - - // At this point, the range is completely trimmed and - // ready to be split into comparators. - - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; - var set = range.split(' ').map(function(comp) { - return parseComparator(comp, loose); - }).join(' ').split(/\s+/); - if (this.loose) { - // in loose mode, throw out any that are not valid comparators - set = set.filter(function(comp) { - return !!comp.match(compRe); - }); - } - set = set.map(function(comp) { - return new Comparator(comp, loose); - }); - - return set; -}; - -// Mostly just for testing and legacy API reasons -exports.toComparators = toComparators; -function toComparators(range, loose) { - return new Range(range, loose).set.map(function(comp) { - return comp.map(function(c) { - return c.value; - }).join(' ').trim().split(' '); - }); -} - -// comprised of xranges, tildes, stars, and gtlt's at this point. -// already replaced the hyphen ranges -// turn into a set of JUST comparators. -function parseComparator(comp, loose) { - debug('comp', comp); - comp = replaceCarets(comp, loose); - debug('caret', comp); - comp = replaceTildes(comp, loose); - debug('tildes', comp); - comp = replaceXRanges(comp, loose); - debug('xrange', comp); - comp = replaceStars(comp, loose); - debug('stars', comp); - return comp; -} - -function isX(id) { - return !id || id.toLowerCase() === 'x' || id === '*'; -} - -// ~, ~> --> * (any, kinda silly) -// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 -// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 -// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 -// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 -// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 -function replaceTildes(comp, loose) { - return comp.trim().split(/\s+/).map(function(comp) { - return replaceTilde(comp, loose); - }).join(' '); -} - -function replaceTilde(comp, loose) { - var r = loose ? re[TILDELOOSE] : re[TILDE]; - return comp.replace(r, function(_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr); - var ret; - - if (isX(M)) - ret = ''; - else if (isX(m)) - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - else if (isX(p)) - // ~1.2 == >=1.2.0- <1.3.0- - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - else if (pr) { - debug('replaceTilde pr', pr); - if (pr.charAt(0) !== '-') - pr = '-' + pr; - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - // ~1.2.3 == >=1.2.3 <1.3.0 - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0'; - - debug('tilde return', ret); - return ret; - }); -} - -// ^ --> * (any, kinda silly) -// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 -// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 -// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 -// ^1.2.3 --> >=1.2.3 <2.0.0 -// ^1.2.0 --> >=1.2.0 <2.0.0 -function replaceCarets(comp, loose) { - return comp.trim().split(/\s+/).map(function(comp) { - return replaceCaret(comp, loose); - }).join(' '); -} - -function replaceCaret(comp, loose) { - debug('caret', comp, loose); - var r = loose ? re[CARETLOOSE] : re[CARET]; - return comp.replace(r, function(_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr); - var ret; - - if (isX(M)) - ret = ''; - else if (isX(m)) - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - else if (isX(p)) { - if (M === '0') - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - else - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'; - } else if (pr) { - debug('replaceCaret pr', pr); - if (pr.charAt(0) !== '-') - pr = '-' + pr; - if (M === '0') { - if (m === '0') - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + m + '.' + (+p + 1); - else - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - ret = '>=' + M + '.' + m + '.' + p + pr + - ' <' + (+M + 1) + '.0.0'; - } else { - debug('no pr'); - if (M === '0') { - if (m === '0') - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + m + '.' + (+p + 1); - else - ret = '>=' + M + '.' + m + '.' + p + - ' <' + M + '.' + (+m + 1) + '.0'; - } else - ret = '>=' + M + '.' + m + '.' + p + - ' <' + (+M + 1) + '.0.0'; - } - - debug('caret return', ret); - return ret; - }); -} - -function replaceXRanges(comp, loose) { - debug('replaceXRanges', comp, loose); - return comp.split(/\s+/).map(function(comp) { - return replaceXRange(comp, loose); - }).join(' '); -} - -function replaceXRange(comp, loose) { - comp = comp.trim(); - var r = loose ? re[XRANGELOOSE] : re[XRANGE]; - return comp.replace(r, function(ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr); - var xM = isX(M); - var xm = xM || isX(m); - var xp = xm || isX(p); - var anyX = xp; - - if (gtlt === '=' && anyX) - gtlt = ''; - - if (xM) { - if (gtlt === '>' || gtlt === '<') { - // nothing is allowed - ret = '<0.0.0'; - } else { - // nothing is forbidden - ret = '*'; - } - } else if (gtlt && anyX) { - // replace X with 0 - if (xm) - m = 0; - if (xp) - p = 0; - - if (gtlt === '>') { - // >1 => >=2.0.0 - // >1.2 => >=1.3.0 - // >1.2.3 => >= 1.2.4 - gtlt = '>='; - if (xm) { - M = +M + 1; - m = 0; - p = 0; - } else if (xp) { - m = +m + 1; - p = 0; - } - } else if (gtlt === '<=') { - // <=0.7.x is actually <0.8.0, since any 0.7.x should - // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' - if (xm) - M = +M + 1 - else - m = +m + 1 - } - - ret = gtlt + M + '.' + m + '.' + p; - } else if (xm) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; - } else if (xp) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; - } - - debug('xRange return', ret); - - return ret; - }); -} - -// Because * is AND-ed with everything else in the comparator, -// and '' means "any version", just remove the *s entirely. -function replaceStars(comp, loose) { - debug('replaceStars', comp, loose); - // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[STAR], ''); -} - -// This function is passed to string.replace(re[HYPHENRANGE]) -// M, m, patch, prerelease, build -// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 -// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do -// 1.2 - 3.4 => >=1.2.0 <3.5.0 -function hyphenReplace($0, - from, fM, fm, fp, fpr, fb, - to, tM, tm, tp, tpr, tb) { - - if (isX(fM)) - from = ''; - else if (isX(fm)) - from = '>=' + fM + '.0.0'; - else if (isX(fp)) - from = '>=' + fM + '.' + fm + '.0'; - else - from = '>=' + from; - - if (isX(tM)) - to = ''; - else if (isX(tm)) - to = '<' + (+tM + 1) + '.0.0'; - else if (isX(tp)) - to = '<' + tM + '.' + (+tm + 1) + '.0'; - else if (tpr) - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr; - else - to = '<=' + to; - - return (from + ' ' + to).trim(); -} - - -// if ANY of the sets match ALL of its comparators, then pass -Range.prototype.test = function(version) { - if (!version) - return false; - - if (typeof version === 'string') - version = new SemVer(version, this.loose); - - for (var i = 0; i < this.set.length; i++) { - if (testSet(this.set[i], version)) - return true; - } - return false; -}; - -function testSet(set, version) { - for (var i = 0; i < set.length; i++) { - if (!set[i].test(version)) - return false; - } - - if (version.prerelease.length) { - // Find the set of versions that are allowed to have prereleases - // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 - // That should allow `1.2.3-pr.2` to pass. - // However, `1.2.4-alpha.notready` should NOT be allowed, - // even though it's within the range set by the comparators. - for (var i = 0; i < set.length; i++) { - debug(set[i].semver); - if (set[i].semver === ANY) - return true; - - if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver; - if (allowed.major === version.major && - allowed.minor === version.minor && - allowed.patch === version.patch) - return true; - } - } - - // Version has a -pre, but it's not one of the ones we like. - return false; - } - - return true; -} - -exports.satisfies = satisfies; -function satisfies(version, range, loose) { - try { - range = new Range(range, loose); - } catch (er) { - return false; - } - return range.test(version); -} - -exports.maxSatisfying = maxSatisfying; -function maxSatisfying(versions, range, loose) { - return versions.filter(function(version) { - return satisfies(version, range, loose); - }).sort(function(a, b) { - return rcompare(a, b, loose); - })[0] || null; -} - -exports.validRange = validRange; -function validRange(range, loose) { - try { - // Return '*' instead of '' so that truthiness works. - // This will throw if it's invalid anyway - return new Range(range, loose).range || '*'; - } catch (er) { - return null; - } -} - -// Determine if version is less than all the versions possible in the range -exports.ltr = ltr; -function ltr(version, range, loose) { - return outside(version, range, '<', loose); -} - -// Determine if version is greater than all the versions possible in the range. -exports.gtr = gtr; -function gtr(version, range, loose) { - return outside(version, range, '>', loose); -} - -exports.outside = outside; -function outside(version, range, hilo, loose) { - version = new SemVer(version, loose); - range = new Range(range, loose); - - var gtfn, ltefn, ltfn, comp, ecomp; - switch (hilo) { - case '>': - gtfn = gt; - ltefn = lte; - ltfn = lt; - comp = '>'; - ecomp = '>='; - break; - case '<': - gtfn = lt; - ltefn = gte; - ltfn = gt; - comp = '<'; - ecomp = '<='; - break; - default: - throw new TypeError('Must provide a hilo val of "<" or ">"'); - } - - // If it satisifes the range it is not outside - if (satisfies(version, range, loose)) { - return false; - } - - // From now on, variable terms are as if we're in "gtr" mode. - // but note that everything is flipped for the "ltr" function. - - for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i]; - - var high = null; - var low = null; - - comparators.forEach(function(comparator) { - high = high || comparator; - low = low || comparator; - if (gtfn(comparator.semver, high.semver, loose)) { - high = comparator; - } else if (ltfn(comparator.semver, low.semver, loose)) { - low = comparator; - } - }); - - // If the edge version comparator has a operator then our version - // isn't outside it - if (high.operator === comp || high.operator === ecomp) { - return false; - } - - // If the lowest version comparator has an operator and our version - // is less than it then it isn't higher than the range - if ((!low.operator || low.operator === comp) && - ltefn(version, low.semver)) { - return false; - } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false; - } - } - return true; -} - -// Use the define() function if we're in AMD land -if (typeof define === 'function' && define.amd) - define(exports); diff --git a/node_modules/stream-buffers/.codeclimate.yml b/node_modules/stream-buffers/.codeclimate.yml deleted file mode 100644 index c768eae5..00000000 --- a/node_modules/stream-buffers/.codeclimate.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -engines: - eslint: - enabled: true - fixme: - enabled: true -ratings: - paths: - - "**.js" -exclude_paths: -- node_modules/**/* -- test/**/* diff --git a/node_modules/stream-buffers/.eslintignore b/node_modules/stream-buffers/.eslintignore deleted file mode 100644 index 4b4d8631..00000000 --- a/node_modules/stream-buffers/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -coverage/ \ No newline at end of file diff --git a/node_modules/stream-buffers/.eslintrc b/node_modules/stream-buffers/.eslintrc deleted file mode 100644 index 0d46c252..00000000 --- a/node_modules/stream-buffers/.eslintrc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "rules": { - "indent": [ - 2, - 2 - ], - "quotes": [ - 2, - "single" - ], - "linebreak-style": [ - 2, - "unix" - ], - "semi": [ - 2, - "always" - ] - }, - "env": { - "node": true, - "mocha": true - }, - "extends": "eslint:recommended" -} diff --git a/node_modules/stream-buffers/.mailmap b/node_modules/stream-buffers/.mailmap deleted file mode 100644 index 29a80a4e..00000000 --- a/node_modules/stream-buffers/.mailmap +++ /dev/null @@ -1,3 +0,0 @@ -Sam Day -Sam Day -Sam Day diff --git a/node_modules/stream-buffers/.travis.yml b/node_modules/stream-buffers/.travis.yml deleted file mode 100644 index 4f3a7561..00000000 --- a/node_modules/stream-buffers/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: node_js -sudo: false -cache: - directories: - - node_modules -matrix: - include: - - node_js: '0.10' - - node_js: '0.12' - - node_js: '4.2' - - node_js: '5.0' - - node_js: '6.0' - - node_js: '8.4' - env: npm_config_coverage=1 -addons: - code_climate: - repo_token: - secure: "qoQoeJZrjiE7RmcGIZNmR2tO3/oP1NqlxhYkj1TYbMVOYmK4zsOdeVjhllkETZaGejKcw1uXEQx7caSmpZQ6lw5V5JXmyyTzo8xfAbanP9Wf4WXw5uSOaBDYR/DR2B9VfkHT7spPVwdoX09sgb+oTIy4IgBUivucm6IGmiw7PuY=" -after_success: | - if [ -n "$npm_config_coverage" ]; then - npm install -g codeclimate-test-reporter - codeclimate-test-reporter < coverage/lcov.info - fi -deploy: - provider: npm - email: me@samcday.com.au - api_key: - secure: GiLpIWPU/TFJ5JVSHbu1eLN3Bx/mpuVtSh0FIwXP0mlBNzKq/y2pTrdzAx+Lp9s8lTvJl8kBE2hdaQMMpHHK7OoAaqykU2DCKPMSD2/mBxjzq3XjP/f3t7/sIpMv8ZZ/kUFmzyHcZv+zAIlFx39IQl5C9o1L2LYkG3EDaiiMzi8= - on: - tags: true - all_branches: true - node_js: 8.4 diff --git a/node_modules/stream-buffers/README.md b/node_modules/stream-buffers/README.md deleted file mode 100644 index 08c65c88..00000000 --- a/node_modules/stream-buffers/README.md +++ /dev/null @@ -1,167 +0,0 @@ -# Node Stream Buffers - -[![Build Status][badge-travis-img]][badge-travis-url] -[![Dependency Information][badge-david-img]][badge-david-url] -[![Code Climate][badge-climate-img]][badge-climate-url] -[![Code Coverage][badge-coverage-img]][badge-coverage-url] -[![npm][badge-npm-img]][badge-npm-url] - -Simple Readable and Writable Streams that use a [Buffer][node-buffer-docs] to store received data, or for data to send out. Useful for test code, debugging, and a wide range of other utilities. - -``` -npm install stream-buffers --save -``` - -## Usage - -To use the stream buffers in your module, simply import it and away you go. - -```js -var streamBuffers = require('stream-buffers'); -``` - -### WritableStreamBuffer - -`WritableStreamBuffer` implements the standard [`stream.Writable`](https://nodejs.org/api/stream.html#stream_class_stream_writable) interface. All writes to this stream will accumulate in an internal [`Buffer`](https://nodejs.org/api/buffer.html). If the internal buffer overflows it will be resized automatically. The initial size of the Buffer and the amount in which it grows can be configured in the constructor. - -```js -var myWritableStreamBuffer = new streamBuffers.WritableStreamBuffer({ - initialSize: (100 * 1024), // start at 100 kilobytes. - incrementAmount: (10 * 1024) // grow by 10 kilobytes each time buffer overflows. -}); -``` - -The default initial size and increment amount are stored in the following constants: - -```js -streamBuffers.DEFAULT_INITIAL_SIZE // (8 * 1024) -streamBuffers.DEFAULT_INCREMENT_AMOUNT // (8 * 1024) -``` - -Writing is standard Stream stuff: - -```js -myWritableStreamBuffer.write(myBuffer); -// - or - -myWritableStreamBuffer.write('\u00bd + \u00bc = \u00be', 'utf8'); -``` - -You can query the size of the data being held in the Buffer, and also how big the Buffer's max capacity currently is: - -```js -myWritableStreamBuffer.write('ASDF'); -streamBuffers.size(); // 4. -streamBuffers.maxSize(); // Whatever was configured as initial size. In our example: (100 * 1024). -``` - -Retrieving the contents of the Buffer is simple. - -```js -// Gets all held data as a Buffer. -myWritableStreamBuffer.getContents(); - -// Gets all held data as a utf8 string. -myWritableStreamBuffer.getContentsAsString('utf8'); - -// Gets first 5 bytes as a Buffer. -myWritableStreamBuffer.getContents(5); - -// Gets first 5 bytes as a utf8 string. -myWritableStreamBuffer.getContentsAsString('utf8', 5); -``` - -**Care should be taken when getting encoded strings from WritableStream, as it doesn't really care about the contents (multi-byte characters will not be respected).** - -Destroying or ending the WritableStream will not delete the contents of Buffer, but will disallow any further writes. - -```js -myWritableStreamBuffer.write('ASDF'); -myWritableStreamBuffer.end(); -myWritableStreamBuffer.getContentsAsString(); // -> 'ASDF' -``` - -### ReadableStreamBuffer - -`ReadableStreamBuffer` implements the standard [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), but can have data inserted into it. This data will then be pumped out in chunks as readable events. The data to be sent out is held in a Buffer, which can grow in much the same way as a `WritableStreamBuffer` does, if data is being put in Buffer faster than it is being pumped out. - -The frequency in which chunks are pumped out, and the size of the chunks themselves can be configured in the constructor. The initial size and increment amount of internal Buffer can be configured too. In the following example 2kb chunks will be output every 10 milliseconds: - -```js -var myReadableStreamBuffer = new streamBuffers.ReadableStreamBuffer({ - frequency: 10, // in milliseconds. - chunkSize: 2048 // in bytes. -}); -``` - -Default frequency and chunk size: - -```js -streamBuffers.DEFAULT_CHUNK_SIZE // (1024) -streamBuffers.DEFAULT_FREQUENCY // (1) -``` - -Putting data in Buffer to be pumped out is easy: - -```js -myReadableStreamBuffer.put(aBuffer); -myReadableStreamBuffer.put('A String', 'utf8'); -``` - -Chunks are pumped out via standard `stream.Readable` semantics. This means you can use the old streams1 way: - -```js -myReadableStreamBuffer.on('data', function(data) { - // streams1.x style data - assert.isTrue(data instanceof Buffer); -}); -``` - -Or the streams2+ way: - -```js -myReadableStreamBuffer.on('readable', function(data) { - var chunk; - while((chunk = myReadableStreamBuffer.read()) !== null) { - assert.isTrue(chunk instanceof Buffer); - } -}); -``` - -Because `ReadableStreamBuffer` is simply an implementation of [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), it implements pause / resume / setEncoding / etc. - -Once you're done putting data into a `ReadableStreamBuffer`, you can call `stop()` on it. - -```js -myReadableStreamBuffer.put('the last data this stream will ever see'); -myReadableStreamBuffer.stop(); -``` - -Once the `ReadableStreamBuffer` is done pumping out the data in its internal buffer, it will emit the usual [`end`](https://nodejs.org/api/stream.html#stream_event_end) event. You cannot write any more data to the stream once you've called `stop()` on it. - -## Disclaimer - -Not supposed to be a speed demon, it's more for tests/debugging or weird edge cases. It works with an internal buffer that it copies contents to/from/around. - -## Contributors - -Thanks to the following people for taking some time to contribute to this project. - - * Igor Dralyuk - * Simon Koudijs - -## License - -node-stream-buffer is free and unencumbered public domain software. For more information, see the accompanying UNLICENSE file. - -[badge-travis-img]: http://img.shields.io/travis/samcday/node-stream-buffer.svg?style=flat-square -[badge-travis-url]: https://travis-ci.org/samcday/node-stream-buffer -[badge-david-img]: https://img.shields.io/david/samcday/node-stream-buffer.svg?style=flat-square -[badge-david-url]: https://david-dm.org/samcday/node-stream-buffer -[badge-climate-img]: http://img.shields.io/codeclimate/github/samcday/node-stream-buffer.svg?style=flat-square -[badge-climate-url]: https://codeclimate.com/github/samcday/node-stream-buffer -[badge-coverage-img]: http://img.shields.io/codeclimate/coverage/github/samcday/node-stream-buffer.svg?style=flat-square -[badge-coverage-url]: https://codeclimate.com/github/samcday/node-stream-buffer -[badge-npm-img]: https://img.shields.io/npm/dm/stream-buffers.svg?style=flat-square -[badge-npm-url]: https://www.npmjs.org/package/stream-buffers - -[node-buffer-docs]: http://nodejs.org/api/buffer.html diff --git a/node_modules/stream-buffers/UNLICENSE b/node_modules/stream-buffers/UNLICENSE deleted file mode 100644 index 00d2e135..00000000 --- a/node_modules/stream-buffers/UNLICENSE +++ /dev/null @@ -1,24 +0,0 @@ -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - -For more information, please refer to \ No newline at end of file diff --git a/node_modules/stream-buffers/lib/constants.js b/node_modules/stream-buffers/lib/constants.js deleted file mode 100644 index fee71377..00000000 --- a/node_modules/stream-buffers/lib/constants.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = { - DEFAULT_INITIAL_SIZE: (8 * 1024), - DEFAULT_INCREMENT_AMOUNT: (8 * 1024), - DEFAULT_FREQUENCY: 1, - DEFAULT_CHUNK_SIZE: 1024 -}; diff --git a/node_modules/stream-buffers/lib/readable_streambuffer.js b/node_modules/stream-buffers/lib/readable_streambuffer.js deleted file mode 100644 index 79f63a93..00000000 --- a/node_modules/stream-buffers/lib/readable_streambuffer.js +++ /dev/null @@ -1,114 +0,0 @@ -'use strict'; - -var stream = require('stream'); -var constants = require('./constants'); -var util = require('util'); - -var ReadableStreamBuffer = module.exports = function(opts) { - var that = this; - opts = opts || {}; - - stream.Readable.call(this, opts); - - this.stopped = false; - - var frequency = opts.hasOwnProperty('frequency') ? opts.frequency : constants.DEFAULT_FREQUENCY; - var chunkSize = opts.chunkSize || constants.DEFAULT_CHUNK_SIZE; - var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE; - var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT; - - var size = 0; - var buffer = new Buffer(initialSize); - var allowPush = false; - - var sendData = function() { - var amount = Math.min(chunkSize, size); - var sendMore = false; - - if (amount > 0) { - var chunk = null; - chunk = new Buffer(amount); - buffer.copy(chunk, 0, 0, amount); - - sendMore = that.push(chunk) !== false; - allowPush = sendMore; - - buffer.copy(buffer, 0, amount, size); - size -= amount; - } - - if(size === 0 && that.stopped) { - that.push(null); - } - - if (sendMore) { - sendData.timeout = setTimeout(sendData, frequency); - } - else { - sendData.timeout = null; - } - }; - - this.stop = function() { - if (this.stopped) { - throw new Error('stop() called on already stopped ReadableStreamBuffer'); - } - this.stopped = true; - - if (size === 0) { - this.push(null); - } - }; - - this.size = function() { - return size; - }; - - this.maxSize = function() { - return buffer.length; - }; - - var increaseBufferIfNecessary = function(incomingDataSize) { - if((buffer.length - size) < incomingDataSize) { - var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount); - - var newBuffer = new Buffer(buffer.length + (incrementAmount * factor)); - buffer.copy(newBuffer, 0, 0, size); - buffer = newBuffer; - } - }; - - var kickSendDataTask = function () { - if (!sendData.timeout && allowPush) { - sendData.timeout = setTimeout(sendData, frequency); - } - } - - this.put = function(data, encoding) { - if (that.stopped) { - throw new Error('Tried to write data to a stopped ReadableStreamBuffer'); - } - - if(Buffer.isBuffer(data)) { - increaseBufferIfNecessary(data.length); - data.copy(buffer, size, 0); - size += data.length; - } - else { - data = data + ''; - var dataSizeInBytes = Buffer.byteLength(data); - increaseBufferIfNecessary(dataSizeInBytes); - buffer.write(data, size, encoding || 'utf8'); - size += dataSizeInBytes; - } - - kickSendDataTask(); - }; - - this._read = function() { - allowPush = true; - kickSendDataTask(); - }; -}; - -util.inherits(ReadableStreamBuffer, stream.Readable); diff --git a/node_modules/stream-buffers/lib/streambuffer.js b/node_modules/stream-buffers/lib/streambuffer.js deleted file mode 100644 index c325afa6..00000000 --- a/node_modules/stream-buffers/lib/streambuffer.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = require('./constants'); -module.exports.ReadableStreamBuffer = require('./readable_streambuffer'); -module.exports.WritableStreamBuffer = require('./writable_streambuffer'); diff --git a/node_modules/stream-buffers/lib/writable_streambuffer.js b/node_modules/stream-buffers/lib/writable_streambuffer.js deleted file mode 100644 index dd0cc0ee..00000000 --- a/node_modules/stream-buffers/lib/writable_streambuffer.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -var util = require('util'); -var stream = require('stream'); -var constants = require('./constants'); - -var WritableStreamBuffer = module.exports = function(opts) { - opts = opts || {}; - opts.decodeStrings = true; - - stream.Writable.call(this, opts); - - var initialSize = opts.initialSize || constants.DEFAULT_INITIAL_SIZE; - var incrementAmount = opts.incrementAmount || constants.DEFAULT_INCREMENT_AMOUNT; - - var buffer = new Buffer(initialSize); - var size = 0; - - this.size = function() { - return size; - }; - - this.maxSize = function() { - return buffer.length; - }; - - this.getContents = function(length) { - if(!size) return false; - - var data = new Buffer(Math.min(length || size, size)); - buffer.copy(data, 0, 0, data.length); - - if(data.length < size) - buffer.copy(buffer, 0, data.length); - - size -= data.length; - - return data; - }; - - this.getContentsAsString = function(encoding, length) { - if(!size) return false; - - var data = buffer.toString(encoding || 'utf8', 0, Math.min(length || size, size)); - var dataLength = Buffer.byteLength(data); - - if(dataLength < size) - buffer.copy(buffer, 0, dataLength); - - size -= dataLength; - return data; - }; - - var increaseBufferIfNecessary = function(incomingDataSize) { - if((buffer.length - size) < incomingDataSize) { - var factor = Math.ceil((incomingDataSize - (buffer.length - size)) / incrementAmount); - - var newBuffer = new Buffer(buffer.length + (incrementAmount * factor)); - buffer.copy(newBuffer, 0, 0, size); - buffer = newBuffer; - } - }; - - this._write = function(chunk, encoding, callback) { - increaseBufferIfNecessary(chunk.length); - chunk.copy(buffer, size, 0); - size += chunk.length; - callback(); - }; -}; - -util.inherits(WritableStreamBuffer, stream.Writable); diff --git a/node_modules/stream-buffers/package.json b/node_modules/stream-buffers/package.json deleted file mode 100644 index 9cdf30ac..00000000 --- a/node_modules/stream-buffers/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "stream-buffers", - "version": "3.0.2", - "description": "Buffer-backed Streams for reading and writing.", - "keywords": [ - "memory streams", - "streams", - "buffer streams" - ], - "author": "Sam Day ", - "main": "./lib/streambuffer.js", - "engines": { - "node": ">= 0.10.0" - }, - "dependencies": {}, - "devDependencies": { - "chai": "^3.4.1", - "eslint": "^1.9.0", - "istanbul": "^0.4.0", - "mocha": "^2.3.4" - }, - "license": "Unlicense", - "repository": { - "type": "git", - "url": "https://github.com/samcday/node-stream-buffer.git" - }, - "scripts": { - "test": "istanbul test _mocha", - "lint": "eslint ." - } -} diff --git a/node_modules/stream-shift/.travis.yml b/node_modules/stream-shift/.travis.yml deleted file mode 100644 index ecd4193f..00000000 --- a/node_modules/stream-shift/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: node_js -node_js: - - "0.10" - - "0.12" - - "4" - - "6" diff --git a/node_modules/stream-shift/LICENSE b/node_modules/stream-shift/LICENSE deleted file mode 100644 index bae9da7b..00000000 --- a/node_modules/stream-shift/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Mathias Buus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/stream-shift/README.md b/node_modules/stream-shift/README.md deleted file mode 100644 index d9cc2d94..00000000 --- a/node_modules/stream-shift/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# stream-shift - -Returns the next buffer/object in a stream's readable queue - -``` -npm install stream-shift -``` - -[![build status](http://img.shields.io/travis/mafintosh/stream-shift.svg?style=flat)](http://travis-ci.org/mafintosh/stream-shift) - -## Usage - -``` js -var shift = require('stream-shift') - -console.log(shift(someStream)) // first item in its buffer -``` - -## Credit - -Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6 - -## License - -MIT diff --git a/node_modules/stream-shift/index.js b/node_modules/stream-shift/index.js deleted file mode 100644 index 33cc4d74..00000000 --- a/node_modules/stream-shift/index.js +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = shift - -function shift (stream) { - var rs = stream._readableState - if (!rs) return null - return (rs.objectMode || typeof stream._duplexState === 'number') ? stream.read() : stream.read(getStateLength(rs)) -} - -function getStateLength (state) { - if (state.buffer.length) { - // Since node 6.3.0 state.buffer is a BufferList not an array - if (state.buffer.head) { - return state.buffer.head.data.length - } - - return state.buffer[0].length - } - - return state.length -} diff --git a/node_modules/stream-shift/package.json b/node_modules/stream-shift/package.json deleted file mode 100644 index fe7347a0..00000000 --- a/node_modules/stream-shift/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "stream-shift", - "version": "1.0.1", - "description": "Returns the next buffer/object in a stream's readable queue", - "main": "index.js", - "dependencies": {}, - "devDependencies": { - "standard": "^7.1.2", - "tape": "^4.6.0", - "through2": "^2.0.1" - }, - "scripts": { - "test": "standard && tape test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/mafintosh/stream-shift.git" - }, - "author": "Mathias Buus (@mafintosh)", - "license": "MIT", - "bugs": { - "url": "https://github.com/mafintosh/stream-shift/issues" - }, - "homepage": "https://github.com/mafintosh/stream-shift" -} diff --git a/node_modules/stream-shift/test.js b/node_modules/stream-shift/test.js deleted file mode 100644 index c0222c37..00000000 --- a/node_modules/stream-shift/test.js +++ /dev/null @@ -1,48 +0,0 @@ -var tape = require('tape') -var through = require('through2') -var stream = require('stream') -var shift = require('./') - -tape('shifts next', function (t) { - var passthrough = through() - - passthrough.write('hello') - passthrough.write('world') - - t.same(shift(passthrough), Buffer('hello')) - t.same(shift(passthrough), Buffer('world')) - t.end() -}) - -tape('shifts next with core', function (t) { - var passthrough = stream.PassThrough() - - passthrough.write('hello') - passthrough.write('world') - - t.same(shift(passthrough), Buffer('hello')) - t.same(shift(passthrough), Buffer('world')) - t.end() -}) - -tape('shifts next with object mode', function (t) { - var passthrough = through({objectMode: true}) - - passthrough.write({hello: 1}) - passthrough.write({world: 1}) - - t.same(shift(passthrough), {hello: 1}) - t.same(shift(passthrough), {world: 1}) - t.end() -}) - -tape('shifts next with object mode with core', function (t) { - var passthrough = stream.PassThrough({objectMode: true}) - - passthrough.write({hello: 1}) - passthrough.write({world: 1}) - - t.same(shift(passthrough), {hello: 1}) - t.same(shift(passthrough), {world: 1}) - t.end() -}) diff --git a/node_modules/through/.travis.yml b/node_modules/through/.travis.yml deleted file mode 100644 index c693a939..00000000 --- a/node_modules/through/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: node_js -node_js: - - 0.6 - - 0.8 - - "0.10" diff --git a/node_modules/through/LICENSE.APACHE2 b/node_modules/through/LICENSE.APACHE2 deleted file mode 100644 index 6366c047..00000000 --- a/node_modules/through/LICENSE.APACHE2 +++ /dev/null @@ -1,15 +0,0 @@ -Apache License, Version 2.0 - -Copyright (c) 2011 Dominic Tarr - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/node_modules/through/LICENSE.MIT b/node_modules/through/LICENSE.MIT deleted file mode 100644 index 6eafbd73..00000000 --- a/node_modules/through/LICENSE.MIT +++ /dev/null @@ -1,24 +0,0 @@ -The MIT License - -Copyright (c) 2011 Dominic Tarr - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/through/index.js b/node_modules/through/index.js deleted file mode 100644 index ca5fc590..00000000 --- a/node_modules/through/index.js +++ /dev/null @@ -1,108 +0,0 @@ -var Stream = require('stream') - -// through -// -// a stream that does nothing but re-emit the input. -// useful for aggregating a series of changing but not ending streams into one stream) - -exports = module.exports = through -through.through = through - -//create a readable writable stream. - -function through (write, end, opts) { - write = write || function (data) { this.queue(data) } - end = end || function () { this.queue(null) } - - var ended = false, destroyed = false, buffer = [], _ended = false - var stream = new Stream() - stream.readable = stream.writable = true - stream.paused = false - -// stream.autoPause = !(opts && opts.autoPause === false) - stream.autoDestroy = !(opts && opts.autoDestroy === false) - - stream.write = function (data) { - write.call(this, data) - return !stream.paused - } - - function drain() { - while(buffer.length && !stream.paused) { - var data = buffer.shift() - if(null === data) - return stream.emit('end') - else - stream.emit('data', data) - } - } - - stream.queue = stream.push = function (data) { -// console.error(ended) - if(_ended) return stream - if(data === null) _ended = true - buffer.push(data) - drain() - return stream - } - - //this will be registered as the first 'end' listener - //must call destroy next tick, to make sure we're after any - //stream piped from here. - //this is only a problem if end is not emitted synchronously. - //a nicer way to do this is to make sure this is the last listener for 'end' - - stream.on('end', function () { - stream.readable = false - if(!stream.writable && stream.autoDestroy) - process.nextTick(function () { - stream.destroy() - }) - }) - - function _end () { - stream.writable = false - end.call(stream) - if(!stream.readable && stream.autoDestroy) - stream.destroy() - } - - stream.end = function (data) { - if(ended) return - ended = true - if(arguments.length) stream.write(data) - _end() // will emit or queue - return stream - } - - stream.destroy = function () { - if(destroyed) return - destroyed = true - ended = true - buffer.length = 0 - stream.writable = stream.readable = false - stream.emit('close') - return stream - } - - stream.pause = function () { - if(stream.paused) return - stream.paused = true - return stream - } - - stream.resume = function () { - if(stream.paused) { - stream.paused = false - stream.emit('resume') - } - drain() - //may have become paused again, - //as drain emits 'data'. - if(!stream.paused) - stream.emit('drain') - return stream - } - return stream -} - diff --git a/node_modules/through/package.json b/node_modules/through/package.json deleted file mode 100644 index 98621899..00000000 --- a/node_modules/through/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "through", - "version": "2.3.8", - "description": "simplified stream construction", - "main": "index.js", - "scripts": { - "test": "set -e; for t in test/*.js; do node $t; done" - }, - "devDependencies": { - "stream-spec": "~0.3.5", - "tape": "~2.3.2", - "from": "~0.1.3" - }, - "keywords": [ - "stream", - "streams", - "user-streams", - "pipe" - ], - "author": "Dominic Tarr (dominictarr.com)", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/dominictarr/through.git" - }, - "homepage": "https://github.com/dominictarr/through", - "testling": { - "browsers": [ - "ie/8..latest", - "ff/15..latest", - "chrome/20..latest", - "safari/5.1..latest" - ], - "files": "test/*.js" - } -} diff --git a/node_modules/through/readme.markdown b/node_modules/through/readme.markdown deleted file mode 100644 index cb34c813..00000000 --- a/node_modules/through/readme.markdown +++ /dev/null @@ -1,64 +0,0 @@ -#through - -[![build status](https://secure.travis-ci.org/dominictarr/through.png)](http://travis-ci.org/dominictarr/through) -[![testling badge](https://ci.testling.com/dominictarr/through.png)](https://ci.testling.com/dominictarr/through) - -Easy way to create a `Stream` that is both `readable` and `writable`. - -* Pass in optional `write` and `end` methods. -* `through` takes care of pause/resume logic if you use `this.queue(data)` instead of `this.emit('data', data)`. -* Use `this.pause()` and `this.resume()` to manage flow. -* Check `this.paused` to see current flow state. (`write` always returns `!this.paused`). - -This function is the basis for most of the synchronous streams in -[event-stream](http://github.com/dominictarr/event-stream). - -``` js -var through = require('through') - -through(function write(data) { - this.queue(data) //data *must* not be null - }, - function end () { //optional - this.queue(null) - }) -``` - -Or, can also be used _without_ buffering on pause, use `this.emit('data', data)`, -and this.emit('end') - -``` js -var through = require('through') - -through(function write(data) { - this.emit('data', data) - //this.pause() - }, - function end () { //optional - this.emit('end') - }) -``` - -## Extended Options - -You will probably not need these 99% of the time. - -### autoDestroy=false - -By default, `through` emits close when the writable -and readable side of the stream has ended. -If that is not desired, set `autoDestroy=false`. - -``` js -var through = require('through') - -//like this -var ts = through(write, end, {autoDestroy: false}) -//or like this -var ts = through(write, end) -ts.autoDestroy = false -``` - -## License - -MIT / Apache2 diff --git a/node_modules/through/test/async.js b/node_modules/through/test/async.js deleted file mode 100644 index 46bdbaeb..00000000 --- a/node_modules/through/test/async.js +++ /dev/null @@ -1,28 +0,0 @@ -var from = require('from') -var through = require('../') - -var tape = require('tape') - -tape('simple async example', function (t) { - - var n = 0, expected = [1,2,3,4,5], actual = [] - from(expected) - .pipe(through(function(data) { - this.pause() - n ++ - setTimeout(function(){ - console.log('pushing data', data) - this.push(data) - this.resume() - }.bind(this), 300) - })).pipe(through(function(data) { - console.log('pushing data second time', data); - this.push(data) - })).on('data', function (d) { - actual.push(d) - }).on('end', function() { - t.deepEqual(actual, expected) - t.end() - }) - -}) diff --git a/node_modules/through/test/auto-destroy.js b/node_modules/through/test/auto-destroy.js deleted file mode 100644 index 9a8fd000..00000000 --- a/node_modules/through/test/auto-destroy.js +++ /dev/null @@ -1,30 +0,0 @@ -var test = require('tape') -var through = require('../') - -// must emit end before close. - -test('end before close', function (assert) { - var ts = through() - ts.autoDestroy = false - var ended = false, closed = false - - ts.on('end', function () { - assert.ok(!closed) - ended = true - }) - ts.on('close', function () { - assert.ok(ended) - closed = true - }) - - ts.write(1) - ts.write(2) - ts.write(3) - ts.end() - assert.ok(ended) - assert.notOk(closed) - ts.destroy() - assert.ok(closed) - assert.end() -}) - diff --git a/node_modules/through/test/buffering.js b/node_modules/through/test/buffering.js deleted file mode 100644 index b0084bfc..00000000 --- a/node_modules/through/test/buffering.js +++ /dev/null @@ -1,71 +0,0 @@ -var test = require('tape') -var through = require('../') - -// must emit end before close. - -test('buffering', function(assert) { - var ts = through(function (data) { - this.queue(data) - }, function () { - this.queue(null) - }) - - var ended = false, actual = [] - - ts.on('data', actual.push.bind(actual)) - ts.on('end', function () { - ended = true - }) - - ts.write(1) - ts.write(2) - ts.write(3) - assert.deepEqual(actual, [1, 2, 3]) - ts.pause() - ts.write(4) - ts.write(5) - ts.write(6) - assert.deepEqual(actual, [1, 2, 3]) - ts.resume() - assert.deepEqual(actual, [1, 2, 3, 4, 5, 6]) - ts.pause() - ts.end() - assert.ok(!ended) - ts.resume() - assert.ok(ended) - assert.end() -}) - -test('buffering has data in queue, when ends', function (assert) { - - /* - * If stream ends while paused with data in the queue, - * stream should still emit end after all data is written - * on resume. - */ - - var ts = through(function (data) { - this.queue(data) - }, function () { - this.queue(null) - }) - - var ended = false, actual = [] - - ts.on('data', actual.push.bind(actual)) - ts.on('end', function () { - ended = true - }) - - ts.pause() - ts.write(1) - ts.write(2) - ts.write(3) - ts.end() - assert.deepEqual(actual, [], 'no data written yet, still paused') - assert.ok(!ended, 'end not emitted yet, still paused') - ts.resume() - assert.deepEqual(actual, [1, 2, 3], 'resumed, all data should be delivered') - assert.ok(ended, 'end should be emitted once all data was delivered') - assert.end(); -}) diff --git a/node_modules/through/test/end.js b/node_modules/through/test/end.js deleted file mode 100644 index fa113f58..00000000 --- a/node_modules/through/test/end.js +++ /dev/null @@ -1,45 +0,0 @@ -var test = require('tape') -var through = require('../') - -// must emit end before close. - -test('end before close', function (assert) { - var ts = through() - var ended = false, closed = false - - ts.on('end', function () { - assert.ok(!closed) - ended = true - }) - ts.on('close', function () { - assert.ok(ended) - closed = true - }) - - ts.write(1) - ts.write(2) - ts.write(3) - ts.end() - assert.ok(ended) - assert.ok(closed) - assert.end() -}) - -test('end only once', function (t) { - - var ts = through() - var ended = false, closed = false - - ts.on('end', function () { - t.equal(ended, false) - ended = true - }) - - ts.queue(null) - ts.queue(null) - ts.queue(null) - - ts.resume() - - t.end() -}) diff --git a/node_modules/through/test/index.js b/node_modules/through/test/index.js deleted file mode 100644 index 96da82f9..00000000 --- a/node_modules/through/test/index.js +++ /dev/null @@ -1,133 +0,0 @@ - -var test = require('tape') -var spec = require('stream-spec') -var through = require('../') - -/* - I'm using these two functions, and not streams and pipe - so there is less to break. if this test fails it must be - the implementation of _through_ -*/ - -function write(array, stream) { - array = array.slice() - function next() { - while(array.length) - if(stream.write(array.shift()) === false) - return stream.once('drain', next) - - stream.end() - } - - next() -} - -function read(stream, callback) { - var actual = [] - stream.on('data', function (data) { - actual.push(data) - }) - stream.once('end', function () { - callback(null, actual) - }) - stream.once('error', function (err) { - callback(err) - }) -} - -test('simple defaults', function(assert) { - - var l = 1000 - , expected = [] - - while(l--) expected.push(l * Math.random()) - - var t = through() - var s = spec(t).through().pausable() - - read(t, function (err, actual) { - assert.ifError(err) - assert.deepEqual(actual, expected) - assert.end() - }) - - t.on('close', s.validate) - - write(expected, t) -}); - -test('simple functions', function(assert) { - - var l = 1000 - , expected = [] - - while(l--) expected.push(l * Math.random()) - - var t = through(function (data) { - this.emit('data', data*2) - }) - var s = spec(t).through().pausable() - - - read(t, function (err, actual) { - assert.ifError(err) - assert.deepEqual(actual, expected.map(function (data) { - return data*2 - })) - assert.end() - }) - - t.on('close', s.validate) - - write(expected, t) -}) - -test('pauses', function(assert) { - - var l = 1000 - , expected = [] - - while(l--) expected.push(l) //Math.random()) - - var t = through() - - var s = spec(t) - .through() - .pausable() - - t.on('data', function () { - if(Math.random() > 0.1) return - t.pause() - process.nextTick(function () { - t.resume() - }) - }) - - read(t, function (err, actual) { - assert.ifError(err) - assert.deepEqual(actual, expected) - }) - - t.on('close', function () { - s.validate() - assert.end() - }) - - write(expected, t) -}) - -test('does not soft-end on `undefined`', function(assert) { - var stream = through() - , count = 0 - - stream.on('data', function (data) { - count++ - }) - - stream.write(undefined) - stream.write(undefined) - - assert.equal(count, 2) - - assert.end() -}) diff --git a/node_modules/typedarray/.travis.yml b/node_modules/typedarray/.travis.yml deleted file mode 100644 index cc4dba29..00000000 --- a/node_modules/typedarray/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - "0.8" - - "0.10" diff --git a/node_modules/typedarray/LICENSE b/node_modules/typedarray/LICENSE deleted file mode 100644 index 11adfaec..00000000 --- a/node_modules/typedarray/LICENSE +++ /dev/null @@ -1,35 +0,0 @@ -/* - Copyright (c) 2010, Linden Research, Inc. - Copyright (c) 2012, Joshua Bell - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. - $/LicenseInfo$ - */ - -// Original can be found at: -// https://bitbucket.org/lindenlab/llsd -// Modifications by Joshua Bell inexorabletash@gmail.com -// https://github.com/inexorabletash/polyfill - -// ES3/ES5 implementation of the Krhonos Typed Array Specification -// Ref: http://www.khronos.org/registry/typedarray/specs/latest/ -// Date: 2011-02-01 -// -// Variations: -// * Allows typed_array.get/set() as alias for subscripts (typed_array[]) diff --git a/node_modules/typedarray/example/tarray.js b/node_modules/typedarray/example/tarray.js deleted file mode 100644 index 8423d7c9..00000000 --- a/node_modules/typedarray/example/tarray.js +++ /dev/null @@ -1,4 +0,0 @@ -var Uint8Array = require('../').Uint8Array; -var ua = new Uint8Array(5); -ua[1] = 256 + 55; -console.log(ua[1]); diff --git a/node_modules/typedarray/index.js b/node_modules/typedarray/index.js deleted file mode 100644 index 5e540841..00000000 --- a/node_modules/typedarray/index.js +++ /dev/null @@ -1,630 +0,0 @@ -var undefined = (void 0); // Paranoia - -// Beyond this value, index getters/setters (i.e. array[0], array[1]) are so slow to -// create, and consume so much memory, that the browser appears frozen. -var MAX_ARRAY_LENGTH = 1e5; - -// Approximations of internal ECMAScript conversion functions -var ECMAScript = (function() { - // Stash a copy in case other scripts modify these - var opts = Object.prototype.toString, - ophop = Object.prototype.hasOwnProperty; - - return { - // Class returns internal [[Class]] property, used to avoid cross-frame instanceof issues: - Class: function(v) { return opts.call(v).replace(/^\[object *|\]$/g, ''); }, - HasProperty: function(o, p) { return p in o; }, - HasOwnProperty: function(o, p) { return ophop.call(o, p); }, - IsCallable: function(o) { return typeof o === 'function'; }, - ToInt32: function(v) { return v >> 0; }, - ToUint32: function(v) { return v >>> 0; } - }; -}()); - -// Snapshot intrinsics -var LN2 = Math.LN2, - abs = Math.abs, - floor = Math.floor, - log = Math.log, - min = Math.min, - pow = Math.pow, - round = Math.round; - -// ES5: lock down object properties -function configureProperties(obj) { - if (getOwnPropNames && defineProp) { - var props = getOwnPropNames(obj), i; - for (i = 0; i < props.length; i += 1) { - defineProp(obj, props[i], { - value: obj[props[i]], - writable: false, - enumerable: false, - configurable: false - }); - } - } -} - -// emulate ES5 getter/setter API using legacy APIs -// http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx -// (second clause tests for Object.defineProperty() in IE<9 that only supports extending DOM prototypes, but -// note that IE<9 does not support __defineGetter__ or __defineSetter__ so it just renders the method harmless) -var defineProp -if (Object.defineProperty && (function() { - try { - Object.defineProperty({}, 'x', {}); - return true; - } catch (e) { - return false; - } - })()) { - defineProp = Object.defineProperty; -} else { - defineProp = function(o, p, desc) { - if (!o === Object(o)) throw new TypeError("Object.defineProperty called on non-object"); - if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) { Object.prototype.__defineGetter__.call(o, p, desc.get); } - if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) { Object.prototype.__defineSetter__.call(o, p, desc.set); } - if (ECMAScript.HasProperty(desc, 'value')) { o[p] = desc.value; } - return o; - }; -} - -var getOwnPropNames = Object.getOwnPropertyNames || function (o) { - if (o !== Object(o)) throw new TypeError("Object.getOwnPropertyNames called on non-object"); - var props = [], p; - for (p in o) { - if (ECMAScript.HasOwnProperty(o, p)) { - props.push(p); - } - } - return props; -}; - -// ES5: Make obj[index] an alias for obj._getter(index)/obj._setter(index, value) -// for index in 0 ... obj.length -function makeArrayAccessors(obj) { - if (!defineProp) { return; } - - if (obj.length > MAX_ARRAY_LENGTH) throw new RangeError("Array too large for polyfill"); - - function makeArrayAccessor(index) { - defineProp(obj, index, { - 'get': function() { return obj._getter(index); }, - 'set': function(v) { obj._setter(index, v); }, - enumerable: true, - configurable: false - }); - } - - var i; - for (i = 0; i < obj.length; i += 1) { - makeArrayAccessor(i); - } -} - -// Internal conversion functions: -// pack() - take a number (interpreted as Type), output a byte array -// unpack() - take a byte array, output a Type-like number - -function as_signed(value, bits) { var s = 32 - bits; return (value << s) >> s; } -function as_unsigned(value, bits) { var s = 32 - bits; return (value << s) >>> s; } - -function packI8(n) { return [n & 0xff]; } -function unpackI8(bytes) { return as_signed(bytes[0], 8); } - -function packU8(n) { return [n & 0xff]; } -function unpackU8(bytes) { return as_unsigned(bytes[0], 8); } - -function packU8Clamped(n) { n = round(Number(n)); return [n < 0 ? 0 : n > 0xff ? 0xff : n & 0xff]; } - -function packI16(n) { return [(n >> 8) & 0xff, n & 0xff]; } -function unpackI16(bytes) { return as_signed(bytes[0] << 8 | bytes[1], 16); } - -function packU16(n) { return [(n >> 8) & 0xff, n & 0xff]; } -function unpackU16(bytes) { return as_unsigned(bytes[0] << 8 | bytes[1], 16); } - -function packI32(n) { return [(n >> 24) & 0xff, (n >> 16) & 0xff, (n >> 8) & 0xff, n & 0xff]; } -function unpackI32(bytes) { return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); } - -function packU32(n) { return [(n >> 24) & 0xff, (n >> 16) & 0xff, (n >> 8) & 0xff, n & 0xff]; } -function unpackU32(bytes) { return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); } - -function packIEEE754(v, ebits, fbits) { - - var bias = (1 << (ebits - 1)) - 1, - s, e, f, ln, - i, bits, str, bytes; - - function roundToEven(n) { - var w = floor(n), f = n - w; - if (f < 0.5) - return w; - if (f > 0.5) - return w + 1; - return w % 2 ? w + 1 : w; - } - - // Compute sign, exponent, fraction - if (v !== v) { - // NaN - // http://dev.w3.org/2006/webapi/WebIDL/#es-type-mapping - e = (1 << ebits) - 1; f = pow(2, fbits - 1); s = 0; - } else if (v === Infinity || v === -Infinity) { - e = (1 << ebits) - 1; f = 0; s = (v < 0) ? 1 : 0; - } else if (v === 0) { - e = 0; f = 0; s = (1 / v === -Infinity) ? 1 : 0; - } else { - s = v < 0; - v = abs(v); - - if (v >= pow(2, 1 - bias)) { - e = min(floor(log(v) / LN2), 1023); - f = roundToEven(v / pow(2, e) * pow(2, fbits)); - if (f / pow(2, fbits) >= 2) { - e = e + 1; - f = 1; - } - if (e > bias) { - // Overflow - e = (1 << ebits) - 1; - f = 0; - } else { - // Normalized - e = e + bias; - f = f - pow(2, fbits); - } - } else { - // Denormalized - e = 0; - f = roundToEven(v / pow(2, 1 - bias - fbits)); - } - } - - // Pack sign, exponent, fraction - bits = []; - for (i = fbits; i; i -= 1) { bits.push(f % 2 ? 1 : 0); f = floor(f / 2); } - for (i = ebits; i; i -= 1) { bits.push(e % 2 ? 1 : 0); e = floor(e / 2); } - bits.push(s ? 1 : 0); - bits.reverse(); - str = bits.join(''); - - // Bits to bytes - bytes = []; - while (str.length) { - bytes.push(parseInt(str.substring(0, 8), 2)); - str = str.substring(8); - } - return bytes; -} - -function unpackIEEE754(bytes, ebits, fbits) { - - // Bytes to bits - var bits = [], i, j, b, str, - bias, s, e, f; - - for (i = bytes.length; i; i -= 1) { - b = bytes[i - 1]; - for (j = 8; j; j -= 1) { - bits.push(b % 2 ? 1 : 0); b = b >> 1; - } - } - bits.reverse(); - str = bits.join(''); - - // Unpack sign, exponent, fraction - bias = (1 << (ebits - 1)) - 1; - s = parseInt(str.substring(0, 1), 2) ? -1 : 1; - e = parseInt(str.substring(1, 1 + ebits), 2); - f = parseInt(str.substring(1 + ebits), 2); - - // Produce number - if (e === (1 << ebits) - 1) { - return f !== 0 ? NaN : s * Infinity; - } else if (e > 0) { - // Normalized - return s * pow(2, e - bias) * (1 + f / pow(2, fbits)); - } else if (f !== 0) { - // Denormalized - return s * pow(2, -(bias - 1)) * (f / pow(2, fbits)); - } else { - return s < 0 ? -0 : 0; - } -} - -function unpackF64(b) { return unpackIEEE754(b, 11, 52); } -function packF64(v) { return packIEEE754(v, 11, 52); } -function unpackF32(b) { return unpackIEEE754(b, 8, 23); } -function packF32(v) { return packIEEE754(v, 8, 23); } - - -// -// 3 The ArrayBuffer Type -// - -(function() { - - /** @constructor */ - var ArrayBuffer = function ArrayBuffer(length) { - length = ECMAScript.ToInt32(length); - if (length < 0) throw new RangeError('ArrayBuffer size is not a small enough positive integer'); - - this.byteLength = length; - this._bytes = []; - this._bytes.length = length; - - var i; - for (i = 0; i < this.byteLength; i += 1) { - this._bytes[i] = 0; - } - - configureProperties(this); - }; - - exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer; - - // - // 4 The ArrayBufferView Type - // - - // NOTE: this constructor is not exported - /** @constructor */ - var ArrayBufferView = function ArrayBufferView() { - //this.buffer = null; - //this.byteOffset = 0; - //this.byteLength = 0; - }; - - // - // 5 The Typed Array View Types - // - - function makeConstructor(bytesPerElement, pack, unpack) { - // Each TypedArray type requires a distinct constructor instance with - // identical logic, which this produces. - - var ctor; - ctor = function(buffer, byteOffset, length) { - var array, sequence, i, s; - - if (!arguments.length || typeof arguments[0] === 'number') { - // Constructor(unsigned long length) - this.length = ECMAScript.ToInt32(arguments[0]); - if (length < 0) throw new RangeError('ArrayBufferView size is not a small enough positive integer'); - - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer(this.byteLength); - this.byteOffset = 0; - } else if (typeof arguments[0] === 'object' && arguments[0].constructor === ctor) { - // Constructor(TypedArray array) - array = arguments[0]; - - this.length = array.length; - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer(this.byteLength); - this.byteOffset = 0; - - for (i = 0; i < this.length; i += 1) { - this._setter(i, array._getter(i)); - } - } else if (typeof arguments[0] === 'object' && - !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) { - // Constructor(sequence array) - sequence = arguments[0]; - - this.length = ECMAScript.ToUint32(sequence.length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer(this.byteLength); - this.byteOffset = 0; - - for (i = 0; i < this.length; i += 1) { - s = sequence[i]; - this._setter(i, Number(s)); - } - } else if (typeof arguments[0] === 'object' && - (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) { - // Constructor(ArrayBuffer buffer, - // optional unsigned long byteOffset, optional unsigned long length) - this.buffer = buffer; - - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - - if (this.byteOffset % this.BYTES_PER_ELEMENT) { - // The given byteOffset must be a multiple of the element - // size of the specific type, otherwise an exception is raised. - throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size."); - } - - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - - if (this.byteLength % this.BYTES_PER_ELEMENT) { - throw new RangeError("length of buffer minus byteOffset not a multiple of the element size"); - } - this.length = this.byteLength / this.BYTES_PER_ELEMENT; - } else { - this.length = ECMAScript.ToUint32(length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - } - - if ((this.byteOffset + this.byteLength) > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - - this.constructor = ctor; - - configureProperties(this); - makeArrayAccessors(this); - }; - - ctor.prototype = new ArrayBufferView(); - ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement; - ctor.prototype._pack = pack; - ctor.prototype._unpack = unpack; - ctor.BYTES_PER_ELEMENT = bytesPerElement; - - // getter type (unsigned long index); - ctor.prototype._getter = function(index) { - if (arguments.length < 1) throw new SyntaxError("Not enough arguments"); - - index = ECMAScript.ToUint32(index); - if (index >= this.length) { - return undefined; - } - - var bytes = [], i, o; - for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; - i < this.BYTES_PER_ELEMENT; - i += 1, o += 1) { - bytes.push(this.buffer._bytes[o]); - } - return this._unpack(bytes); - }; - - // NONSTANDARD: convenience alias for getter: type get(unsigned long index); - ctor.prototype.get = ctor.prototype._getter; - - // setter void (unsigned long index, type value); - ctor.prototype._setter = function(index, value) { - if (arguments.length < 2) throw new SyntaxError("Not enough arguments"); - - index = ECMAScript.ToUint32(index); - if (index >= this.length) { - return undefined; - } - - var bytes = this._pack(value), i, o; - for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; - i < this.BYTES_PER_ELEMENT; - i += 1, o += 1) { - this.buffer._bytes[o] = bytes[i]; - } - }; - - // void set(TypedArray array, optional unsigned long offset); - // void set(sequence array, optional unsigned long offset); - ctor.prototype.set = function(index, value) { - if (arguments.length < 1) throw new SyntaxError("Not enough arguments"); - var array, sequence, offset, len, - i, s, d, - byteOffset, byteLength, tmp; - - if (typeof arguments[0] === 'object' && arguments[0].constructor === this.constructor) { - // void set(TypedArray array, optional unsigned long offset); - array = arguments[0]; - offset = ECMAScript.ToUint32(arguments[1]); - - if (offset + array.length > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - - byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT; - byteLength = array.length * this.BYTES_PER_ELEMENT; - - if (array.buffer === this.buffer) { - tmp = []; - for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) { - tmp[i] = array.buffer._bytes[s]; - } - for (i = 0, d = byteOffset; i < byteLength; i += 1, d += 1) { - this.buffer._bytes[d] = tmp[i]; - } - } else { - for (i = 0, s = array.byteOffset, d = byteOffset; - i < byteLength; i += 1, s += 1, d += 1) { - this.buffer._bytes[d] = array.buffer._bytes[s]; - } - } - } else if (typeof arguments[0] === 'object' && typeof arguments[0].length !== 'undefined') { - // void set(sequence array, optional unsigned long offset); - sequence = arguments[0]; - len = ECMAScript.ToUint32(sequence.length); - offset = ECMAScript.ToUint32(arguments[1]); - - if (offset + len > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - - for (i = 0; i < len; i += 1) { - s = sequence[i]; - this._setter(offset + i, Number(s)); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - }; - - // TypedArray subarray(long begin, optional long end); - ctor.prototype.subarray = function(start, end) { - function clamp(v, min, max) { return v < min ? min : v > max ? max : v; } - - start = ECMAScript.ToInt32(start); - end = ECMAScript.ToInt32(end); - - if (arguments.length < 1) { start = 0; } - if (arguments.length < 2) { end = this.length; } - - if (start < 0) { start = this.length + start; } - if (end < 0) { end = this.length + end; } - - start = clamp(start, 0, this.length); - end = clamp(end, 0, this.length); - - var len = end - start; - if (len < 0) { - len = 0; - } - - return new this.constructor( - this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len); - }; - - return ctor; - } - - var Int8Array = makeConstructor(1, packI8, unpackI8); - var Uint8Array = makeConstructor(1, packU8, unpackU8); - var Uint8ClampedArray = makeConstructor(1, packU8Clamped, unpackU8); - var Int16Array = makeConstructor(2, packI16, unpackI16); - var Uint16Array = makeConstructor(2, packU16, unpackU16); - var Int32Array = makeConstructor(4, packI32, unpackI32); - var Uint32Array = makeConstructor(4, packU32, unpackU32); - var Float32Array = makeConstructor(4, packF32, unpackF32); - var Float64Array = makeConstructor(8, packF64, unpackF64); - - exports.Int8Array = exports.Int8Array || Int8Array; - exports.Uint8Array = exports.Uint8Array || Uint8Array; - exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray; - exports.Int16Array = exports.Int16Array || Int16Array; - exports.Uint16Array = exports.Uint16Array || Uint16Array; - exports.Int32Array = exports.Int32Array || Int32Array; - exports.Uint32Array = exports.Uint32Array || Uint32Array; - exports.Float32Array = exports.Float32Array || Float32Array; - exports.Float64Array = exports.Float64Array || Float64Array; -}()); - -// -// 6 The DataView View Type -// - -(function() { - function r(array, index) { - return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index]; - } - - var IS_BIG_ENDIAN = (function() { - var u16array = new(exports.Uint16Array)([0x1234]), - u8array = new(exports.Uint8Array)(u16array.buffer); - return r(u8array, 0) === 0x12; - }()); - - // Constructor(ArrayBuffer buffer, - // optional unsigned long byteOffset, - // optional unsigned long byteLength) - /** @constructor */ - var DataView = function DataView(buffer, byteOffset, byteLength) { - if (arguments.length === 0) { - buffer = new exports.ArrayBuffer(0); - } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) { - throw new TypeError("TypeError"); - } - - this.buffer = buffer || new exports.ArrayBuffer(0); - - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - } else { - this.byteLength = ECMAScript.ToUint32(byteLength); - } - - if ((this.byteOffset + this.byteLength) > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - - configureProperties(this); - }; - - function makeGetter(arrayType) { - return function(byteOffset, littleEndian) { - - byteOffset = ECMAScript.ToUint32(byteOffset); - - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - byteOffset += this.byteOffset; - - var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), - bytes = [], i; - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(uint8Array, i)); - } - - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - - return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0); - }; - } - - DataView.prototype.getUint8 = makeGetter(exports.Uint8Array); - DataView.prototype.getInt8 = makeGetter(exports.Int8Array); - DataView.prototype.getUint16 = makeGetter(exports.Uint16Array); - DataView.prototype.getInt16 = makeGetter(exports.Int16Array); - DataView.prototype.getUint32 = makeGetter(exports.Uint32Array); - DataView.prototype.getInt32 = makeGetter(exports.Int32Array); - DataView.prototype.getFloat32 = makeGetter(exports.Float32Array); - DataView.prototype.getFloat64 = makeGetter(exports.Float64Array); - - function makeSetter(arrayType) { - return function(byteOffset, value, littleEndian) { - - byteOffset = ECMAScript.ToUint32(byteOffset); - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - - // Get bytes - var typeArray = new arrayType([value]), - byteArray = new exports.Uint8Array(typeArray.buffer), - bytes = [], i, byteView; - - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(byteArray, i)); - } - - // Flip if necessary - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - - // Write them - byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT); - byteView.set(bytes); - }; - } - - DataView.prototype.setUint8 = makeSetter(exports.Uint8Array); - DataView.prototype.setInt8 = makeSetter(exports.Int8Array); - DataView.prototype.setUint16 = makeSetter(exports.Uint16Array); - DataView.prototype.setInt16 = makeSetter(exports.Int16Array); - DataView.prototype.setUint32 = makeSetter(exports.Uint32Array); - DataView.prototype.setInt32 = makeSetter(exports.Int32Array); - DataView.prototype.setFloat32 = makeSetter(exports.Float32Array); - DataView.prototype.setFloat64 = makeSetter(exports.Float64Array); - - exports.DataView = exports.DataView || DataView; - -}()); diff --git a/node_modules/typedarray/package.json b/node_modules/typedarray/package.json deleted file mode 100644 index a7854a0f..00000000 --- a/node_modules/typedarray/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "typedarray", - "version": "0.0.6", - "description": "TypedArray polyfill for old browsers", - "main": "index.js", - "devDependencies": { - "tape": "~2.3.2" - }, - "scripts": { - "test": "tape test/*.js test/server/*.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/substack/typedarray.git" - }, - "homepage": "https://github.com/substack/typedarray", - "keywords": [ - "ArrayBuffer", - "DataView", - "Float32Array", - "Float64Array", - "Int8Array", - "Int16Array", - "Int32Array", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "typed", - "array", - "polyfill" - ], - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/6..latest", - "firefox/16..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/node_modules/typedarray/readme.markdown b/node_modules/typedarray/readme.markdown deleted file mode 100644 index d18f6f71..00000000 --- a/node_modules/typedarray/readme.markdown +++ /dev/null @@ -1,61 +0,0 @@ -# typedarray - -TypedArray polyfill ripped from [this -module](https://raw.github.com/inexorabletash/polyfill). - -[![build status](https://secure.travis-ci.org/substack/typedarray.png)](http://travis-ci.org/substack/typedarray) - -[![testling badge](https://ci.testling.com/substack/typedarray.png)](https://ci.testling.com/substack/typedarray) - -# example - -``` js -var Uint8Array = require('typedarray').Uint8Array; -var ua = new Uint8Array(5); -ua[1] = 256 + 55; -console.log(ua[1]); -``` - -output: - -``` -55 -``` - -# methods - -``` js -var TA = require('typedarray') -``` - -The `TA` object has the following constructors: - -* TA.ArrayBuffer -* TA.DataView -* TA.Float32Array -* TA.Float64Array -* TA.Int8Array -* TA.Int16Array -* TA.Int32Array -* TA.Uint8Array -* TA.Uint8ClampedArray -* TA.Uint16Array -* TA.Uint32Array - -# install - -With [npm](https://npmjs.org) do: - -``` -npm install typedarray -``` - -To use this module in the browser, compile with -[browserify](http://browserify.org) -or download a UMD build from browserify CDN: - -http://wzrd.in/standalone/typedarray@latest - -# license - -MIT diff --git a/node_modules/typedarray/test/server/undef_globals.js b/node_modules/typedarray/test/server/undef_globals.js deleted file mode 100644 index 425950f9..00000000 --- a/node_modules/typedarray/test/server/undef_globals.js +++ /dev/null @@ -1,19 +0,0 @@ -var test = require('tape'); -var vm = require('vm'); -var fs = require('fs'); -var src = fs.readFileSync(__dirname + '/../../index.js', 'utf8'); - -test('u8a without globals', function (t) { - var c = { - module: { exports: {} }, - }; - c.exports = c.module.exports; - vm.runInNewContext(src, c); - var TA = c.module.exports; - var ua = new(TA.Uint8Array)(5); - - t.equal(ua.length, 5); - ua[1] = 256 + 55; - t.equal(ua[1], 55); - t.end(); -}); diff --git a/node_modules/typedarray/test/tarray.js b/node_modules/typedarray/test/tarray.js deleted file mode 100644 index df596a34..00000000 --- a/node_modules/typedarray/test/tarray.js +++ /dev/null @@ -1,10 +0,0 @@ -var TA = require('../'); -var test = require('tape'); - -test('tiny u8a test', function (t) { - var ua = new(TA.Uint8Array)(5); - t.equal(ua.length, 5); - ua[1] = 256 + 55; - t.equal(ua[1], 55); - t.end(); -}); diff --git a/node_modules/ultron/LICENSE b/node_modules/ultron/LICENSE deleted file mode 100644 index 6dc9316a..00000000 --- a/node_modules/ultron/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/ultron/README.md b/node_modules/ultron/README.md deleted file mode 100644 index c9d8b07a..00000000 --- a/node_modules/ultron/README.md +++ /dev/null @@ -1,113 +0,0 @@ -# Ultron - -[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)](http://unshift.io)[![Version npm](http://img.shields.io/npm/v/ultron.svg?style=flat-square)](http://browsenpm.org/package/ultron)[![Build Status](http://img.shields.io/travis/unshiftio/ultron/master.svg?style=flat-square)](https://travis-ci.org/unshiftio/ultron)[![Dependencies](https://img.shields.io/david/unshiftio/ultron.svg?style=flat-square)](https://david-dm.org/unshiftio/ultron)[![Coverage Status](http://img.shields.io/coveralls/unshiftio/ultron/master.svg?style=flat-square)](https://coveralls.io/r/unshiftio/ultron?branch=master)[![IRC channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=flat-square)](http://webchat.freenode.net/?channels=unshift) - -Ultron is a high-intelligence robot. It gathers intelligence so it can start -improving upon his rudimentary design. It will learn your event emitting -patterns and find ways to exterminate them. Allowing you to remove only the -event emitters that **you** assigned and not the ones that your users or -developers assigned. This can prevent race conditions, memory leaks and even file -descriptor leaks from ever happening as you won't remove clean up processes. - -## Installation - -The module is designed to be used in browsers using browserify and in Node.js. -You can install the module through the public npm registry by running the -following command in CLI: - -``` -npm install --save ultron -``` - -## Usage - -In all examples we assume that you've required the library as following: - -```js -'use strict'; - -var Ultron = require('ultron'); -``` - -Now that we've required the library we can construct our first `Ultron` instance. -The constructor requires one argument which should be the `EventEmitter` -instance that we need to operate upon. This can be the `EventEmitter` module -that ships with Node.js or `EventEmitter3` or anything else as long as it -follow the same API and internal structure as these 2. So with that in mind we -can create the instance: - -```js -// -// For the sake of this example we're going to construct an empty EventEmitter -// -var EventEmitter = require('events').EventEmitter; // or require('eventmitter3'); -var events = new EventEmitter(); - -var ultron = new Ultron(events); -``` - -You can now use the following API's from the Ultron instance: - -### Ultron.on - -Register a new event listener for the given event. It follows the exact same API -as `EventEmitter.on` but it will return itself instead of returning the -EventEmitter instance. If you are using EventEmitter3 it also supports the -context param: - -```js -ultron.on('event-name', handler, { custom: 'function context' }); -``` - -Just like you would expect, it can also be chained together. - -```js -ultron -.on('event-name', handler) -.on('another event', handler); -``` - -### Ultron.once - -Exactly the same as the [Ultron.on](#ultronon) but it only allows the execution -once. - -Just like you would expect, it can also be chained together. - -```js -ultron -.once('event-name', handler, { custom: 'this value' }) -.once('another event', handler); -``` - -### Ultron.remove - -This is where all the magic happens and the safe removal starts. This function -accepts different argument styles: - -- No arguments, assume that all events need to be removed so it will work as - `removeAllListeners()` API. -- 1 argument, when it's a string it will be split on ` ` and `,` to create a - list of events that need to be cleared. -- Multiple arguments, we assume that they are all names of events that need to - be cleared. - -```js -ultron.remove('foo, bar baz'); // Removes foo, bar and baz. -ultron.remove('foo', 'bar', 'baz'); // Removes foo, bar and baz. -ultron.remove(); // Removes everything. -``` - -If you just want to remove a single event listener using a function reference -you can still use the EventEmitter's `removeListener(event, fn)` API: - -```js -function foo() {} - -ultron.on('foo', foo); -events.removeListener('foo', foo); -``` - -## License - -MIT diff --git a/node_modules/ultron/index.js b/node_modules/ultron/index.js deleted file mode 100644 index f78071ec..00000000 --- a/node_modules/ultron/index.js +++ /dev/null @@ -1,136 +0,0 @@ -'use strict'; - -var has = Object.prototype.hasOwnProperty; - -/** - * An auto incrementing id which we can use to create "unique" Ultron instances - * so we can track the event emitters that are added through the Ultron - * interface. - * - * @type {Number} - * @private - */ -var id = 0; - -/** - * Ultron is high-intelligence robot. It gathers intelligence so it can start improving - * upon his rudimentary design. It will learn from your EventEmitting patterns - * and exterminate them. - * - * @constructor - * @param {EventEmitter} ee EventEmitter instance we need to wrap. - * @api public - */ -function Ultron(ee) { - if (!(this instanceof Ultron)) return new Ultron(ee); - - this.id = id++; - this.ee = ee; -} - -/** - * Register a new EventListener for the given event. - * - * @param {String} event Name of the event. - * @param {Functon} fn Callback function. - * @param {Mixed} context The context of the function. - * @returns {Ultron} - * @api public - */ -Ultron.prototype.on = function on(event, fn, context) { - fn.__ultron = this.id; - this.ee.on(event, fn, context); - - return this; -}; -/** - * Add an EventListener that's only called once. - * - * @param {String} event Name of the event. - * @param {Function} fn Callback function. - * @param {Mixed} context The context of the function. - * @returns {Ultron} - * @api public - */ -Ultron.prototype.once = function once(event, fn, context) { - fn.__ultron = this.id; - this.ee.once(event, fn, context); - - return this; -}; - -/** - * Remove the listeners we assigned for the given event. - * - * @returns {Ultron} - * @api public - */ -Ultron.prototype.remove = function remove() { - var args = arguments - , ee = this.ee - , event; - - // - // When no event names are provided we assume that we need to clear all the - // events that were assigned through us. - // - if (args.length === 1 && 'string' === typeof args[0]) { - args = args[0].split(/[, ]+/); - } else if (!args.length) { - if (ee.eventNames) { - args = ee.eventNames(); - } else if (ee._events) { - args = []; - - for (event in ee._events) { - if (has.call(ee._events, event)) args.push(event); - } - - if (Object.getOwnPropertySymbols) { - args = args.concat(Object.getOwnPropertySymbols(ee._events)); - } - } - } - - for (var i = 0; i < args.length; i++) { - var listeners = ee.listeners(args[i]); - - for (var j = 0; j < listeners.length; j++) { - event = listeners[j]; - - // - // Once listeners have a `listener` property that stores the real listener - // in the EventEmitter that ships with Node.js. - // - if (event.listener) { - if (event.listener.__ultron !== this.id) continue; - } else if (event.__ultron !== this.id) { - continue; - } - - ee.removeListener(args[i], event); - } - } - - return this; -}; - -/** - * Destroy the Ultron instance, remove all listeners and release all references. - * - * @returns {Boolean} - * @api public - */ -Ultron.prototype.destroy = function destroy() { - if (!this.ee) return false; - - this.remove(); - this.ee = null; - - return true; -}; - -// -// Expose the module. -// -module.exports = Ultron; diff --git a/node_modules/ultron/package.json b/node_modules/ultron/package.json deleted file mode 100644 index b3fd2f66..00000000 --- a/node_modules/ultron/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "ultron", - "version": "1.1.1", - "description": "Ultron is high-intelligence robot. It gathers intel so it can start improving upon his rudimentary design", - "main": "index.js", - "scripts": { - "100%": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100", - "test": "mocha test.js", - "watch": "mocha --watch test.js", - "coverage": "istanbul cover _mocha -- test.js", - "test-travis": "istanbul cover _mocha --report lcovonly -- test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/unshiftio/ultron" - }, - "keywords": [ - "Ultron", - "robot", - "gather", - "intelligence", - "event", - "events", - "eventemitter", - "emitter", - "cleanup" - ], - "author": "Arnout Kazemier", - "license": "MIT", - "devDependencies": { - "assume": "~1.5.0", - "eventemitter3": "2.0.x", - "istanbul": "0.4.x", - "mocha": "~4.0.0", - "pre-commit": "~1.2.0" - }, - "bugs": { - "url": "https://github.com/unshiftio/ultron/issues" - }, - "homepage": "https://github.com/unshiftio/ultron" -} diff --git a/node_modules/uuid/CHANGELOG.md b/node_modules/uuid/CHANGELOG.md new file mode 100644 index 00000000..7519d19d --- /dev/null +++ b/node_modules/uuid/CHANGELOG.md @@ -0,0 +1,229 @@ +# Changelog + +All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +### [8.3.2](https://github.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08) + +### Bug Fixes + +- lazy load getRandomValues ([#537](https://github.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://github.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#536](https://github.com/uuidjs/uuid/issues/536) + +### [8.3.1](https://github.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04) + +### Bug Fixes + +- support expo>=39.0.0 ([#515](https://github.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://github.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#375](https://github.com/uuidjs/uuid/issues/375) + +## [8.3.0](https://github.com/uuidjs/uuid/compare/v8.2.0...v8.3.0) (2020-07-27) + +### Features + +- add parse/stringify/validate/version/NIL APIs ([#479](https://github.com/uuidjs/uuid/issues/479)) ([0e6c10b](https://github.com/uuidjs/uuid/commit/0e6c10ba1bf9517796ff23c052fc0468eedfd5f4)), closes [#475](https://github.com/uuidjs/uuid/issues/475) [#478](https://github.com/uuidjs/uuid/issues/478) [#480](https://github.com/uuidjs/uuid/issues/480) [#481](https://github.com/uuidjs/uuid/issues/481) [#180](https://github.com/uuidjs/uuid/issues/180) + +## [8.2.0](https://github.com/uuidjs/uuid/compare/v8.1.0...v8.2.0) (2020-06-23) + +### Features + +- improve performance of v1 string representation ([#453](https://github.com/uuidjs/uuid/issues/453)) ([0ee0b67](https://github.com/uuidjs/uuid/commit/0ee0b67c37846529c66089880414d29f3ae132d5)) +- remove deprecated v4 string parameter ([#454](https://github.com/uuidjs/uuid/issues/454)) ([88ce3ca](https://github.com/uuidjs/uuid/commit/88ce3ca0ba046f60856de62c7ce03f7ba98ba46c)), closes [#437](https://github.com/uuidjs/uuid/issues/437) +- support jspm ([#473](https://github.com/uuidjs/uuid/issues/473)) ([e9f2587](https://github.com/uuidjs/uuid/commit/e9f2587a92575cac31bc1d4ae944e17c09756659)) + +### Bug Fixes + +- prepare package exports for webpack 5 ([#468](https://github.com/uuidjs/uuid/issues/468)) ([8d6e6a5](https://github.com/uuidjs/uuid/commit/8d6e6a5f8965ca9575eb4d92e99a43435f4a58a8)) + +## [8.1.0](https://github.com/uuidjs/uuid/compare/v8.0.0...v8.1.0) (2020-05-20) + +### Features + +- improve v4 performance by reusing random number array ([#435](https://github.com/uuidjs/uuid/issues/435)) ([bf4af0d](https://github.com/uuidjs/uuid/commit/bf4af0d711b4d2ed03d1f74fd12ad0baa87dc79d)) +- optimize V8 performance of bytesToUuid ([#434](https://github.com/uuidjs/uuid/issues/434)) ([e156415](https://github.com/uuidjs/uuid/commit/e156415448ec1af2351fa0b6660cfb22581971f2)) + +### Bug Fixes + +- export package.json required by react-native and bundlers ([#449](https://github.com/uuidjs/uuid/issues/449)) ([be1c8fe](https://github.com/uuidjs/uuid/commit/be1c8fe9a3206c358e0059b52fafd7213aa48a52)), closes [ai/nanoevents#44](https://github.com/ai/nanoevents/issues/44#issuecomment-602010343) [#444](https://github.com/uuidjs/uuid/issues/444) + +## [8.0.0](https://github.com/uuidjs/uuid/compare/v7.0.3...v8.0.0) (2020-04-29) + +### ⚠ BREAKING CHANGES + +- For native ECMAScript Module (ESM) usage in Node.js only named exports are exposed, there is no more default export. + + ```diff + -import uuid from 'uuid'; + -console.log(uuid.v4()); // -> 'cd6c3b08-0adc-4f4b-a6ef-36087a1c9869' + +import { v4 as uuidv4 } from 'uuid'; + +uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' + ``` + +- Deep requiring specific algorithms of this library like `require('uuid/v4')`, which has been deprecated in `uuid@7`, is no longer supported. + + Instead use the named exports that this module exports. + + For ECMAScript Modules (ESM): + + ```diff + -import uuidv4 from 'uuid/v4'; + +import { v4 as uuidv4 } from 'uuid'; + uuidv4(); + ``` + + For CommonJS: + + ```diff + -const uuidv4 = require('uuid/v4'); + +const { v4: uuidv4 } = require('uuid'); + uuidv4(); + ``` + +### Features + +- native Node.js ES Modules (wrapper approach) ([#423](https://github.com/uuidjs/uuid/issues/423)) ([2d9f590](https://github.com/uuidjs/uuid/commit/2d9f590ad9701d692625c07ed62f0a0f91227991)), closes [#245](https://github.com/uuidjs/uuid/issues/245) [#419](https://github.com/uuidjs/uuid/issues/419) [#342](https://github.com/uuidjs/uuid/issues/342) +- remove deep requires ([#426](https://github.com/uuidjs/uuid/issues/426)) ([daf72b8](https://github.com/uuidjs/uuid/commit/daf72b84ceb20272a81bb5fbddb05dd95922cbba)) + +### Bug Fixes + +- add CommonJS syntax example to README quickstart section ([#417](https://github.com/uuidjs/uuid/issues/417)) ([e0ec840](https://github.com/uuidjs/uuid/commit/e0ec8402c7ad44b7ef0453036c612f5db513fda0)) + +### [7.0.3](https://github.com/uuidjs/uuid/compare/v7.0.2...v7.0.3) (2020-03-31) + +### Bug Fixes + +- make deep require deprecation warning work in browsers ([#409](https://github.com/uuidjs/uuid/issues/409)) ([4b71107](https://github.com/uuidjs/uuid/commit/4b71107d8c0d2ef56861ede6403fc9dc35a1e6bf)), closes [#408](https://github.com/uuidjs/uuid/issues/408) + +### [7.0.2](https://github.com/uuidjs/uuid/compare/v7.0.1...v7.0.2) (2020-03-04) + +### Bug Fixes + +- make access to msCrypto consistent ([#393](https://github.com/uuidjs/uuid/issues/393)) ([8bf2a20](https://github.com/uuidjs/uuid/commit/8bf2a20f3565df743da7215eebdbada9d2df118c)) +- simplify link in deprecation warning ([#391](https://github.com/uuidjs/uuid/issues/391)) ([bb2c8e4](https://github.com/uuidjs/uuid/commit/bb2c8e4e9f4c5f9c1eaaf3ea59710c633cd90cb7)) +- update links to match content in readme ([#386](https://github.com/uuidjs/uuid/issues/386)) ([44f2f86](https://github.com/uuidjs/uuid/commit/44f2f86e9d2bbf14ee5f0f00f72a3db1292666d4)) + +### [7.0.1](https://github.com/uuidjs/uuid/compare/v7.0.0...v7.0.1) (2020-02-25) + +### Bug Fixes + +- clean up esm builds for node and browser ([#383](https://github.com/uuidjs/uuid/issues/383)) ([59e6a49](https://github.com/uuidjs/uuid/commit/59e6a49e7ce7b3e8fb0f3ee52b9daae72af467dc)) +- provide browser versions independent from module system ([#380](https://github.com/uuidjs/uuid/issues/380)) ([4344a22](https://github.com/uuidjs/uuid/commit/4344a22e7aed33be8627eeaaf05360f256a21753)), closes [#378](https://github.com/uuidjs/uuid/issues/378) + +## [7.0.0](https://github.com/uuidjs/uuid/compare/v3.4.0...v7.0.0) (2020-02-24) + +### ⚠ BREAKING CHANGES + +- The default export, which used to be the v4() method but which was already discouraged in v3.x of this library, has been removed. +- Explicitly note that deep imports of the different uuid version functions are deprecated and no longer encouraged and that ECMAScript module named imports should be used instead. Emit a deprecation warning for people who deep-require the different algorithm variants. +- Remove builtin support for insecure random number generators in the browser. Users who want that will have to supply their own random number generator function. +- Remove support for generating v3 and v5 UUIDs in Node.js<4.x +- Convert code base to ECMAScript Modules (ESM) and release CommonJS build for node and ESM build for browser bundlers. + +### Features + +- add UMD build to npm package ([#357](https://github.com/uuidjs/uuid/issues/357)) ([4e75adf](https://github.com/uuidjs/uuid/commit/4e75adf435196f28e3fbbe0185d654b5ded7ca2c)), closes [#345](https://github.com/uuidjs/uuid/issues/345) +- add various es module and CommonJS examples ([b238510](https://github.com/uuidjs/uuid/commit/b238510bf352463521f74bab175a3af9b7a42555)) +- ensure that docs are up-to-date in CI ([ee5e77d](https://github.com/uuidjs/uuid/commit/ee5e77db547474f5a8f23d6c857a6d399209986b)) +- hybrid CommonJS & ECMAScript modules build ([a3f078f](https://github.com/uuidjs/uuid/commit/a3f078faa0baff69ab41aed08e041f8f9c8993d0)) +- remove insecure fallback random number generator ([3a5842b](https://github.com/uuidjs/uuid/commit/3a5842b141a6e5de0ae338f391661e6b84b167c9)), closes [#173](https://github.com/uuidjs/uuid/issues/173) +- remove support for pre Node.js v4 Buffer API ([#356](https://github.com/uuidjs/uuid/issues/356)) ([b59b5c5](https://github.com/uuidjs/uuid/commit/b59b5c5ecad271c5453f1a156f011671f6d35627)) +- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([c37a518](https://github.com/uuidjs/uuid/commit/c37a518e367ac4b6d0aa62dba1bc6ce9e85020f7)), closes [#338](https://github.com/uuidjs/uuid/issues/338) + +### Bug Fixes + +- add deep-require proxies for local testing and adjust tests ([#365](https://github.com/uuidjs/uuid/issues/365)) ([7fedc79](https://github.com/uuidjs/uuid/commit/7fedc79ac8fda4bfd1c566c7f05ef4ac13b2db48)) +- add note about removal of default export ([#372](https://github.com/uuidjs/uuid/issues/372)) ([12749b7](https://github.com/uuidjs/uuid/commit/12749b700eb49db8a9759fd306d8be05dbfbd58c)), closes [#370](https://github.com/uuidjs/uuid/issues/370) +- deprecated deep requiring of the different algorithm versions ([#361](https://github.com/uuidjs/uuid/issues/361)) ([c0bdf15](https://github.com/uuidjs/uuid/commit/c0bdf15e417639b1aeb0b247b2fb11f7a0a26b23)) + +## [3.4.0](https://github.com/uuidjs/uuid/compare/v3.3.3...v3.4.0) (2020-01-16) + +### Features + +- rename repository to github:uuidjs/uuid ([#351](https://github.com/uuidjs/uuid/issues/351)) ([e2d7314](https://github.com/uuidjs/uuid/commit/e2d7314)), closes [#338](https://github.com/uuidjs/uuid/issues/338) + +## [3.3.3](https://github.com/uuidjs/uuid/compare/v3.3.2...v3.3.3) (2019-08-19) + +### Bug Fixes + +- no longer run ci tests on node v4 +- upgrade dependencies + +## [3.3.2](https://github.com/uuidjs/uuid/compare/v3.3.1...v3.3.2) (2018-06-28) + +### Bug Fixes + +- typo ([305d877](https://github.com/uuidjs/uuid/commit/305d877)) + +## [3.3.1](https://github.com/uuidjs/uuid/compare/v3.3.0...v3.3.1) (2018-06-28) + +### Bug Fixes + +- fix [#284](https://github.com/uuidjs/uuid/issues/284) by setting function name in try-catch ([f2a60f2](https://github.com/uuidjs/uuid/commit/f2a60f2)) + +# [3.3.0](https://github.com/uuidjs/uuid/compare/v3.2.1...v3.3.0) (2018-06-22) + +### Bug Fixes + +- assignment to readonly property to allow running in strict mode ([#270](https://github.com/uuidjs/uuid/issues/270)) ([d062fdc](https://github.com/uuidjs/uuid/commit/d062fdc)) +- fix [#229](https://github.com/uuidjs/uuid/issues/229) ([c9684d4](https://github.com/uuidjs/uuid/commit/c9684d4)) +- Get correct version of IE11 crypto ([#274](https://github.com/uuidjs/uuid/issues/274)) ([153d331](https://github.com/uuidjs/uuid/commit/153d331)) +- mem issue when generating uuid ([#267](https://github.com/uuidjs/uuid/issues/267)) ([c47702c](https://github.com/uuidjs/uuid/commit/c47702c)) + +### Features + +- enforce Conventional Commit style commit messages ([#282](https://github.com/uuidjs/uuid/issues/282)) ([cc9a182](https://github.com/uuidjs/uuid/commit/cc9a182)) + +## [3.2.1](https://github.com/uuidjs/uuid/compare/v3.2.0...v3.2.1) (2018-01-16) + +### Bug Fixes + +- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) + +# [3.2.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.2.0) (2018-01-16) + +### Bug Fixes + +- remove mistakenly added typescript dependency, rollback version (standard-version will auto-increment) ([09fa824](https://github.com/uuidjs/uuid/commit/09fa824)) +- use msCrypto if available. Fixes [#241](https://github.com/uuidjs/uuid/issues/241) ([#247](https://github.com/uuidjs/uuid/issues/247)) ([1fef18b](https://github.com/uuidjs/uuid/commit/1fef18b)) + +### Features + +- Add v3 Support ([#217](https://github.com/uuidjs/uuid/issues/217)) ([d94f726](https://github.com/uuidjs/uuid/commit/d94f726)) + +# [3.1.0](https://github.com/uuidjs/uuid/compare/v3.1.0...v3.0.1) (2017-06-17) + +### Bug Fixes + +- (fix) Add .npmignore file to exclude test/ and other non-essential files from packing. (#183) +- Fix typo (#178) +- Simple typo fix (#165) + +### Features + +- v5 support in CLI (#197) +- V5 support (#188) + +# 3.0.1 (2016-11-28) + +- split uuid versions into separate files + +# 3.0.0 (2016-11-17) + +- remove .parse and .unparse + +# 2.0.0 + +- Removed uuid.BufferClass + +# 1.4.0 + +- Improved module context detection +- Removed public RNG functions + +# 1.3.2 + +- Improve tests and handling of v1() options (Issue #24) +- Expose RNG option to allow for perf testing with different generators + +# 1.3.0 + +- Support for version 1 ids, thanks to [@ctavan](https://github.com/ctavan)! +- Support for node.js crypto API +- De-emphasizing performance in favor of a) cryptographic quality PRNGs where available and b) more manageable code diff --git a/node_modules/uuid/CONTRIBUTING.md b/node_modules/uuid/CONTRIBUTING.md new file mode 100644 index 00000000..4a4503d0 --- /dev/null +++ b/node_modules/uuid/CONTRIBUTING.md @@ -0,0 +1,18 @@ +# Contributing + +Please feel free to file GitHub Issues or propose Pull Requests. We're always happy to discuss improvements to this library! + +## Testing + +```shell +npm test +``` + +## Releasing + +Releases are supposed to be done from master, version bumping is automated through [`standard-version`](https://github.com/conventional-changelog/standard-version): + +```shell +npm run release -- --dry-run # verify output manually +npm run release # follow the instructions from the output of this command +``` diff --git a/node_modules/uuid/dist/bin/uuid b/node_modules/uuid/dist/bin/uuid new file mode 100755 index 00000000..f38d2ee1 --- /dev/null +++ b/node_modules/uuid/dist/bin/uuid @@ -0,0 +1,2 @@ +#!/usr/bin/env node +require('../uuid-bin'); diff --git a/node_modules/uuid/dist/esm-browser/index.js b/node_modules/uuid/dist/esm-browser/index.js new file mode 100644 index 00000000..1db6f6d2 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/index.js @@ -0,0 +1,9 @@ +export { default as v1 } from './v1.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as NIL } from './nil.js'; +export { default as version } from './version.js'; +export { default as validate } from './validate.js'; +export { default as stringify } from './stringify.js'; +export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/md5.js b/node_modules/uuid/dist/esm-browser/md5.js new file mode 100644 index 00000000..8b5d46a7 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/md5.js @@ -0,0 +1,215 @@ +/* + * Browser-compatible JavaScript MD5 + * + * Modification of JavaScript MD5 + * https://github.com/blueimp/JavaScript-MD5 + * + * Copyright 2011, Sebastian Tschan + * https://blueimp.net + * + * Licensed under the MIT license: + * https://opensource.org/licenses/MIT + * + * Based on + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for more info. + */ +function md5(bytes) { + if (typeof bytes === 'string') { + var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = new Uint8Array(msg.length); + + for (var i = 0; i < msg.length; ++i) { + bytes[i] = msg.charCodeAt(i); + } + } + + return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); +} +/* + * Convert an array of little-endian words to an array of bytes + */ + + +function md5ToHexEncodedArray(input) { + var output = []; + var length32 = input.length * 32; + var hexTab = '0123456789abcdef'; + + for (var i = 0; i < length32; i += 8) { + var x = input[i >> 5] >>> i % 32 & 0xff; + var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); + output.push(hex); + } + + return output; +} +/** + * Calculate output length with padding and bit length + */ + + +function getOutputLength(inputLength8) { + return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; +} +/* + * Calculate the MD5 of an array of little-endian words, and a bit length. + */ + + +function wordsToMd5(x, len) { + /* append padding */ + x[len >> 5] |= 0x80 << len % 32; + x[getOutputLength(len) - 1] = len; + var a = 1732584193; + var b = -271733879; + var c = -1732584194; + var d = 271733878; + + for (var i = 0; i < x.length; i += 16) { + var olda = a; + var oldb = b; + var oldc = c; + var oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + + return [a, b, c, d]; +} +/* + * Convert an array bytes to an array of little-endian words + * Characters >255 have their high-byte silently ignored. + */ + + +function bytesToWords(input) { + if (input.length === 0) { + return []; + } + + var length8 = input.length * 8; + var output = new Uint32Array(getOutputLength(length8)); + + for (var i = 0; i < length8; i += 8) { + output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; + } + + return output; +} +/* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + + +function safeAdd(x, y) { + var lsw = (x & 0xffff) + (y & 0xffff); + var msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return msw << 16 | lsw & 0xffff; +} +/* + * Bitwise rotate a 32-bit number to the left. + */ + + +function bitRotateLeft(num, cnt) { + return num << cnt | num >>> 32 - cnt; +} +/* + * These functions implement the four basic operations the algorithm uses. + */ + + +function md5cmn(q, a, b, x, s, t) { + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); +} + +function md5ff(a, b, c, d, x, s, t) { + return md5cmn(b & c | ~b & d, a, b, x, s, t); +} + +function md5gg(a, b, c, d, x, s, t) { + return md5cmn(b & d | c & ~d, a, b, x, s, t); +} + +function md5hh(a, b, c, d, x, s, t) { + return md5cmn(b ^ c ^ d, a, b, x, s, t); +} + +function md5ii(a, b, c, d, x, s, t) { + return md5cmn(c ^ (b | ~d), a, b, x, s, t); +} + +export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/nil.js b/node_modules/uuid/dist/esm-browser/nil.js new file mode 100644 index 00000000..b36324c2 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/nil.js @@ -0,0 +1 @@ +export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/parse.js b/node_modules/uuid/dist/esm-browser/parse.js new file mode 100644 index 00000000..7c5b1d5a --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/parse.js @@ -0,0 +1,35 @@ +import validate from './validate.js'; + +function parse(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + var v; + var arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/regex.js b/node_modules/uuid/dist/esm-browser/regex.js new file mode 100644 index 00000000..3da8673a --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/regex.js @@ -0,0 +1 @@ +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/rng.js b/node_modules/uuid/dist/esm-browser/rng.js new file mode 100644 index 00000000..8abbf2ea --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/rng.js @@ -0,0 +1,19 @@ +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +var getRandomValues; +var rnds8 = new Uint8Array(16); +export default function rng() { + // lazy load so that environments that need to polyfill have a chance to do so + if (!getRandomValues) { + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); + + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + } + + return getRandomValues(rnds8); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/sha1.js b/node_modules/uuid/dist/esm-browser/sha1.js new file mode 100644 index 00000000..940548ba --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/sha1.js @@ -0,0 +1,96 @@ +// Adapted from Chris Veness' SHA1 code at +// http://www.movable-type.co.uk/scripts/sha1.html +function f(s, x, y, z) { + switch (s) { + case 0: + return x & y ^ ~x & z; + + case 1: + return x ^ y ^ z; + + case 2: + return x & y ^ x & z ^ y & z; + + case 3: + return x ^ y ^ z; + } +} + +function ROTL(x, n) { + return x << n | x >>> 32 - n; +} + +function sha1(bytes) { + var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + + if (typeof bytes === 'string') { + var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = []; + + for (var i = 0; i < msg.length; ++i) { + bytes.push(msg.charCodeAt(i)); + } + } else if (!Array.isArray(bytes)) { + // Convert Array-like to Array + bytes = Array.prototype.slice.call(bytes); + } + + bytes.push(0x80); + var l = bytes.length / 4 + 2; + var N = Math.ceil(l / 16); + var M = new Array(N); + + for (var _i = 0; _i < N; ++_i) { + var arr = new Uint32Array(16); + + for (var j = 0; j < 16; ++j) { + arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; + } + + M[_i] = arr; + } + + M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; + + for (var _i2 = 0; _i2 < N; ++_i2) { + var W = new Uint32Array(80); + + for (var t = 0; t < 16; ++t) { + W[t] = M[_i2][t]; + } + + for (var _t = 16; _t < 80; ++_t) { + W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); + } + + var a = H[0]; + var b = H[1]; + var c = H[2]; + var d = H[3]; + var e = H[4]; + + for (var _t2 = 0; _t2 < 80; ++_t2) { + var s = Math.floor(_t2 / 20); + var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + + H[0] = H[0] + a >>> 0; + H[1] = H[1] + b >>> 0; + H[2] = H[2] + c >>> 0; + H[3] = H[3] + d >>> 0; + H[4] = H[4] + e >>> 0; + } + + return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; +} + +export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/stringify.js b/node_modules/uuid/dist/esm-browser/stringify.js new file mode 100644 index 00000000..31021115 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/stringify.js @@ -0,0 +1,30 @@ +import validate from './validate.js'; +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +var byteToHex = []; + +for (var i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr) { + var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v1.js b/node_modules/uuid/dist/esm-browser/v1.js new file mode 100644 index 00000000..1a22591e --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v1.js @@ -0,0 +1,95 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +var _nodeId; + +var _clockseq; // Previous uuid creation time + + +var _lastMSecs = 0; +var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + var i = buf && offset || 0; + var b = buf || new Array(16); + options = options || {}; + var node = options.node || _nodeId; + var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + var seedBytes = options.random || (options.rng || rng)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (var n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || stringify(b); +} + +export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v3.js b/node_modules/uuid/dist/esm-browser/v3.js new file mode 100644 index 00000000..c9ab9a4c --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v3.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import md5 from './md5.js'; +var v3 = v35('v3', 0x30, md5); +export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v35.js b/node_modules/uuid/dist/esm-browser/v35.js new file mode 100644 index 00000000..31dd8a1c --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v35.js @@ -0,0 +1,64 @@ +import stringify from './stringify.js'; +import parse from './parse.js'; + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + var bytes = []; + + for (var i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function (name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = parse(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + var bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (var i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return stringify(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v4.js b/node_modules/uuid/dist/esm-browser/v4.js new file mode 100644 index 00000000..404810a4 --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v4.js @@ -0,0 +1,24 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; + +function v4(options, buf, offset) { + options = options || {}; + var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (var i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return stringify(rnds); +} + +export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v5.js b/node_modules/uuid/dist/esm-browser/v5.js new file mode 100644 index 00000000..c08d96ba --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/v5.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import sha1 from './sha1.js'; +var v5 = v35('v5', 0x50, sha1); +export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/validate.js b/node_modules/uuid/dist/esm-browser/validate.js new file mode 100644 index 00000000..f1cdc7af --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/validate.js @@ -0,0 +1,7 @@ +import REGEX from './regex.js'; + +function validate(uuid) { + return typeof uuid === 'string' && REGEX.test(uuid); +} + +export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/version.js b/node_modules/uuid/dist/esm-browser/version.js new file mode 100644 index 00000000..77530e9c --- /dev/null +++ b/node_modules/uuid/dist/esm-browser/version.js @@ -0,0 +1,11 @@ +import validate from './validate.js'; + +function version(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/index.js b/node_modules/uuid/dist/esm-node/index.js new file mode 100644 index 00000000..1db6f6d2 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/index.js @@ -0,0 +1,9 @@ +export { default as v1 } from './v1.js'; +export { default as v3 } from './v3.js'; +export { default as v4 } from './v4.js'; +export { default as v5 } from './v5.js'; +export { default as NIL } from './nil.js'; +export { default as version } from './version.js'; +export { default as validate } from './validate.js'; +export { default as stringify } from './stringify.js'; +export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/md5.js b/node_modules/uuid/dist/esm-node/md5.js new file mode 100644 index 00000000..4d68b040 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/md5.js @@ -0,0 +1,13 @@ +import crypto from 'crypto'; + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return crypto.createHash('md5').update(bytes).digest(); +} + +export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/nil.js b/node_modules/uuid/dist/esm-node/nil.js new file mode 100644 index 00000000..b36324c2 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/nil.js @@ -0,0 +1 @@ +export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/parse.js b/node_modules/uuid/dist/esm-node/parse.js new file mode 100644 index 00000000..6421c5d5 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/parse.js @@ -0,0 +1,35 @@ +import validate from './validate.js'; + +function parse(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/regex.js b/node_modules/uuid/dist/esm-node/regex.js new file mode 100644 index 00000000..3da8673a --- /dev/null +++ b/node_modules/uuid/dist/esm-node/regex.js @@ -0,0 +1 @@ +export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/rng.js b/node_modules/uuid/dist/esm-node/rng.js new file mode 100644 index 00000000..80062449 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/rng.js @@ -0,0 +1,12 @@ +import crypto from 'crypto'; +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; +export default function rng() { + if (poolPtr > rnds8Pool.length - 16) { + crypto.randomFillSync(rnds8Pool); + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/sha1.js b/node_modules/uuid/dist/esm-node/sha1.js new file mode 100644 index 00000000..e23850b4 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/sha1.js @@ -0,0 +1,13 @@ +import crypto from 'crypto'; + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return crypto.createHash('sha1').update(bytes).digest(); +} + +export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/stringify.js b/node_modules/uuid/dist/esm-node/stringify.js new file mode 100644 index 00000000..f9bca120 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/stringify.js @@ -0,0 +1,29 @@ +import validate from './validate.js'; +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ + +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!validate(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v1.js b/node_modules/uuid/dist/esm-node/v1.js new file mode 100644 index 00000000..ebf81acb --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v1.js @@ -0,0 +1,95 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html + +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || rng)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || stringify(b); +} + +export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v3.js b/node_modules/uuid/dist/esm-node/v3.js new file mode 100644 index 00000000..09063b86 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v3.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import md5 from './md5.js'; +const v3 = v35('v3', 0x30, md5); +export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v35.js b/node_modules/uuid/dist/esm-node/v35.js new file mode 100644 index 00000000..22f6a196 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v35.js @@ -0,0 +1,64 @@ +import stringify from './stringify.js'; +import parse from './parse.js'; + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +export default function (name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = parse(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return stringify(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v4.js b/node_modules/uuid/dist/esm-node/v4.js new file mode 100644 index 00000000..efad926f --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v4.js @@ -0,0 +1,24 @@ +import rng from './rng.js'; +import stringify from './stringify.js'; + +function v4(options, buf, offset) { + options = options || {}; + const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return stringify(rnds); +} + +export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v5.js b/node_modules/uuid/dist/esm-node/v5.js new file mode 100644 index 00000000..e87fe317 --- /dev/null +++ b/node_modules/uuid/dist/esm-node/v5.js @@ -0,0 +1,4 @@ +import v35 from './v35.js'; +import sha1 from './sha1.js'; +const v5 = v35('v5', 0x50, sha1); +export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/validate.js b/node_modules/uuid/dist/esm-node/validate.js new file mode 100644 index 00000000..f1cdc7af --- /dev/null +++ b/node_modules/uuid/dist/esm-node/validate.js @@ -0,0 +1,7 @@ +import REGEX from './regex.js'; + +function validate(uuid) { + return typeof uuid === 'string' && REGEX.test(uuid); +} + +export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/version.js b/node_modules/uuid/dist/esm-node/version.js new file mode 100644 index 00000000..77530e9c --- /dev/null +++ b/node_modules/uuid/dist/esm-node/version.js @@ -0,0 +1,11 @@ +import validate from './validate.js'; + +function version(uuid) { + if (!validate(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/index.js b/node_modules/uuid/dist/index.js new file mode 100644 index 00000000..bf13b103 --- /dev/null +++ b/node_modules/uuid/dist/index.js @@ -0,0 +1,79 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "v1", { + enumerable: true, + get: function () { + return _v.default; + } +}); +Object.defineProperty(exports, "v3", { + enumerable: true, + get: function () { + return _v2.default; + } +}); +Object.defineProperty(exports, "v4", { + enumerable: true, + get: function () { + return _v3.default; + } +}); +Object.defineProperty(exports, "v5", { + enumerable: true, + get: function () { + return _v4.default; + } +}); +Object.defineProperty(exports, "NIL", { + enumerable: true, + get: function () { + return _nil.default; + } +}); +Object.defineProperty(exports, "version", { + enumerable: true, + get: function () { + return _version.default; + } +}); +Object.defineProperty(exports, "validate", { + enumerable: true, + get: function () { + return _validate.default; + } +}); +Object.defineProperty(exports, "stringify", { + enumerable: true, + get: function () { + return _stringify.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function () { + return _parse.default; + } +}); + +var _v = _interopRequireDefault(require("./v1.js")); + +var _v2 = _interopRequireDefault(require("./v3.js")); + +var _v3 = _interopRequireDefault(require("./v4.js")); + +var _v4 = _interopRequireDefault(require("./v5.js")); + +var _nil = _interopRequireDefault(require("./nil.js")); + +var _version = _interopRequireDefault(require("./version.js")); + +var _validate = _interopRequireDefault(require("./validate.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +var _parse = _interopRequireDefault(require("./parse.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/uuid/dist/md5-browser.js b/node_modules/uuid/dist/md5-browser.js new file mode 100644 index 00000000..7a4582ac --- /dev/null +++ b/node_modules/uuid/dist/md5-browser.js @@ -0,0 +1,223 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +/* + * Browser-compatible JavaScript MD5 + * + * Modification of JavaScript MD5 + * https://github.com/blueimp/JavaScript-MD5 + * + * Copyright 2011, Sebastian Tschan + * https://blueimp.net + * + * Licensed under the MIT license: + * https://opensource.org/licenses/MIT + * + * Based on + * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message + * Digest Algorithm, as defined in RFC 1321. + * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 + * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet + * Distributed under the BSD License + * See http://pajhome.org.uk/crypt/md5 for more info. + */ +function md5(bytes) { + if (typeof bytes === 'string') { + const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = new Uint8Array(msg.length); + + for (let i = 0; i < msg.length; ++i) { + bytes[i] = msg.charCodeAt(i); + } + } + + return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); +} +/* + * Convert an array of little-endian words to an array of bytes + */ + + +function md5ToHexEncodedArray(input) { + const output = []; + const length32 = input.length * 32; + const hexTab = '0123456789abcdef'; + + for (let i = 0; i < length32; i += 8) { + const x = input[i >> 5] >>> i % 32 & 0xff; + const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); + output.push(hex); + } + + return output; +} +/** + * Calculate output length with padding and bit length + */ + + +function getOutputLength(inputLength8) { + return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; +} +/* + * Calculate the MD5 of an array of little-endian words, and a bit length. + */ + + +function wordsToMd5(x, len) { + /* append padding */ + x[len >> 5] |= 0x80 << len % 32; + x[getOutputLength(len) - 1] = len; + let a = 1732584193; + let b = -271733879; + let c = -1732584194; + let d = 271733878; + + for (let i = 0; i < x.length; i += 16) { + const olda = a; + const oldb = b; + const oldc = c; + const oldd = d; + a = md5ff(a, b, c, d, x[i], 7, -680876936); + d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); + c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); + b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); + a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); + d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); + c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); + b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); + a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); + d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); + c = md5ff(c, d, a, b, x[i + 10], 17, -42063); + b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); + a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); + d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); + c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); + b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); + a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); + d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); + c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); + b = md5gg(b, c, d, a, x[i], 20, -373897302); + a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); + d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); + c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); + b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); + a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); + d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); + c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); + b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); + a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); + d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); + c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); + b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); + a = md5hh(a, b, c, d, x[i + 5], 4, -378558); + d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); + c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); + b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); + a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); + d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); + c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); + b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); + a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); + d = md5hh(d, a, b, c, x[i], 11, -358537222); + c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); + b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); + a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); + d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); + c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); + b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); + a = md5ii(a, b, c, d, x[i], 6, -198630844); + d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); + c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); + b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); + a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); + d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); + c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); + b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); + a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); + d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); + c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); + b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); + a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); + d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); + c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); + b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); + a = safeAdd(a, olda); + b = safeAdd(b, oldb); + c = safeAdd(c, oldc); + d = safeAdd(d, oldd); + } + + return [a, b, c, d]; +} +/* + * Convert an array bytes to an array of little-endian words + * Characters >255 have their high-byte silently ignored. + */ + + +function bytesToWords(input) { + if (input.length === 0) { + return []; + } + + const length8 = input.length * 8; + const output = new Uint32Array(getOutputLength(length8)); + + for (let i = 0; i < length8; i += 8) { + output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; + } + + return output; +} +/* + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + + +function safeAdd(x, y) { + const lsw = (x & 0xffff) + (y & 0xffff); + const msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return msw << 16 | lsw & 0xffff; +} +/* + * Bitwise rotate a 32-bit number to the left. + */ + + +function bitRotateLeft(num, cnt) { + return num << cnt | num >>> 32 - cnt; +} +/* + * These functions implement the four basic operations the algorithm uses. + */ + + +function md5cmn(q, a, b, x, s, t) { + return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); +} + +function md5ff(a, b, c, d, x, s, t) { + return md5cmn(b & c | ~b & d, a, b, x, s, t); +} + +function md5gg(a, b, c, d, x, s, t) { + return md5cmn(b & d | c & ~d, a, b, x, s, t); +} + +function md5hh(a, b, c, d, x, s, t) { + return md5cmn(b ^ c ^ d, a, b, x, s, t); +} + +function md5ii(a, b, c, d, x, s, t) { + return md5cmn(c ^ (b | ~d), a, b, x, s, t); +} + +var _default = md5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/md5.js b/node_modules/uuid/dist/md5.js new file mode 100644 index 00000000..824d4816 --- /dev/null +++ b/node_modules/uuid/dist/md5.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/nil.js b/node_modules/uuid/dist/nil.js new file mode 100644 index 00000000..7ade577b --- /dev/null +++ b/node_modules/uuid/dist/nil.js @@ -0,0 +1,8 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = '00000000-0000-0000-0000-000000000000'; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/parse.js b/node_modules/uuid/dist/parse.js new file mode 100644 index 00000000..4c69fc39 --- /dev/null +++ b/node_modules/uuid/dist/parse.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function parse(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + let v; + const arr = new Uint8Array(16); // Parse ########-....-....-....-............ + + arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; + arr[1] = v >>> 16 & 0xff; + arr[2] = v >>> 8 & 0xff; + arr[3] = v & 0xff; // Parse ........-####-....-....-............ + + arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; + arr[5] = v & 0xff; // Parse ........-....-####-....-............ + + arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; + arr[7] = v & 0xff; // Parse ........-....-....-####-............ + + arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; + arr[9] = v & 0xff; // Parse ........-....-....-....-############ + // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) + + arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; + arr[11] = v / 0x100000000 & 0xff; + arr[12] = v >>> 24 & 0xff; + arr[13] = v >>> 16 & 0xff; + arr[14] = v >>> 8 & 0xff; + arr[15] = v & 0xff; + return arr; +} + +var _default = parse; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/regex.js b/node_modules/uuid/dist/regex.js new file mode 100644 index 00000000..1ef91d64 --- /dev/null +++ b/node_modules/uuid/dist/regex.js @@ -0,0 +1,8 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/rng-browser.js b/node_modules/uuid/dist/rng-browser.js new file mode 100644 index 00000000..91faeae6 --- /dev/null +++ b/node_modules/uuid/dist/rng-browser.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; +// Unique ID creation requires a high quality random # generator. In the browser we therefore +// require the crypto API and do not support built-in fallback to lower quality random number +// generators (like Math.random()). +let getRandomValues; +const rnds8 = new Uint8Array(16); + +function rng() { + // lazy load so that environments that need to polyfill have a chance to do so + if (!getRandomValues) { + // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, + // find the complete implementation of crypto (msCrypto) on IE11. + getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); + + if (!getRandomValues) { + throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); + } + } + + return getRandomValues(rnds8); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/rng.js b/node_modules/uuid/dist/rng.js new file mode 100644 index 00000000..3507f937 --- /dev/null +++ b/node_modules/uuid/dist/rng.js @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = rng; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate + +let poolPtr = rnds8Pool.length; + +function rng() { + if (poolPtr > rnds8Pool.length - 16) { + _crypto.default.randomFillSync(rnds8Pool); + + poolPtr = 0; + } + + return rnds8Pool.slice(poolPtr, poolPtr += 16); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1-browser.js b/node_modules/uuid/dist/sha1-browser.js new file mode 100644 index 00000000..24cbcedc --- /dev/null +++ b/node_modules/uuid/dist/sha1-browser.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +// Adapted from Chris Veness' SHA1 code at +// http://www.movable-type.co.uk/scripts/sha1.html +function f(s, x, y, z) { + switch (s) { + case 0: + return x & y ^ ~x & z; + + case 1: + return x ^ y ^ z; + + case 2: + return x & y ^ x & z ^ y & z; + + case 3: + return x ^ y ^ z; + } +} + +function ROTL(x, n) { + return x << n | x >>> 32 - n; +} + +function sha1(bytes) { + const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; + const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; + + if (typeof bytes === 'string') { + const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape + + bytes = []; + + for (let i = 0; i < msg.length; ++i) { + bytes.push(msg.charCodeAt(i)); + } + } else if (!Array.isArray(bytes)) { + // Convert Array-like to Array + bytes = Array.prototype.slice.call(bytes); + } + + bytes.push(0x80); + const l = bytes.length / 4 + 2; + const N = Math.ceil(l / 16); + const M = new Array(N); + + for (let i = 0; i < N; ++i) { + const arr = new Uint32Array(16); + + for (let j = 0; j < 16; ++j) { + arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3]; + } + + M[i] = arr; + } + + M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); + M[N - 1][14] = Math.floor(M[N - 1][14]); + M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; + + for (let i = 0; i < N; ++i) { + const W = new Uint32Array(80); + + for (let t = 0; t < 16; ++t) { + W[t] = M[i][t]; + } + + for (let t = 16; t < 80; ++t) { + W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); + } + + let a = H[0]; + let b = H[1]; + let c = H[2]; + let d = H[3]; + let e = H[4]; + + for (let t = 0; t < 80; ++t) { + const s = Math.floor(t / 20); + const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0; + e = d; + d = c; + c = ROTL(b, 30) >>> 0; + b = a; + a = T; + } + + H[0] = H[0] + a >>> 0; + H[1] = H[1] + b >>> 0; + H[2] = H[2] + c >>> 0; + H[3] = H[3] + d >>> 0; + H[4] = H[4] + e >>> 0; + } + + return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; +} + +var _default = sha1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1.js b/node_modules/uuid/dist/sha1.js new file mode 100644 index 00000000..03bdd63c --- /dev/null +++ b/node_modules/uuid/dist/sha1.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _crypto = _interopRequireDefault(require("crypto")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/stringify.js b/node_modules/uuid/dist/stringify.js new file mode 100644 index 00000000..b8e75194 --- /dev/null +++ b/node_modules/uuid/dist/stringify.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function stringify(arr, offset = 0) { + // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one + // of the following: + // - One or more input array values don't map to a hex octet (leading to + // "undefined" in the uuid) + // - Invalid input values for the RFC `version` or `variant` fields + + if (!(0, _validate.default)(uuid)) { + throw TypeError('Stringified UUID is invalid'); + } + + return uuid; +} + +var _default = stringify; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuid.min.js b/node_modules/uuid/dist/umd/uuid.min.js new file mode 100644 index 00000000..639ca2f2 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuid.min.js @@ -0,0 +1 @@ +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<>5]|=(255&r[t/8])<>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidNIL.min.js b/node_modules/uuid/dist/umd/uuidNIL.min.js new file mode 100644 index 00000000..30b28a7e --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidNIL.min.js @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidParse.min.js b/node_modules/uuid/dist/umd/uuidParse.min.js new file mode 100644 index 00000000..d48ea6af --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidParse.min.js @@ -0,0 +1 @@ +!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidStringify.min.js b/node_modules/uuid/dist/umd/uuidStringify.min.js new file mode 100644 index 00000000..fd39adc3 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidStringify.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidValidate.min.js b/node_modules/uuid/dist/umd/uuidValidate.min.js new file mode 100644 index 00000000..378e5b90 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidValidate.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){return"string"==typeof t&&e.test(t)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidVersion.min.js b/node_modules/uuid/dist/umd/uuidVersion.min.js new file mode 100644 index 00000000..274bb090 --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidVersion.min.js @@ -0,0 +1 @@ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv1.min.js b/node_modules/uuid/dist/umd/uuidv1.min.js new file mode 100644 index 00000000..2622889a --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv1.min.js @@ -0,0 +1 @@ +!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv3.min.js b/node_modules/uuid/dist/umd/uuidv3.min.js new file mode 100644 index 00000000..8d37b62d --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv3.min.js @@ -0,0 +1 @@ +!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<>5]|=(255&n[t/8])<1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv5.min.js b/node_modules/uuid/dist/umd/uuidv5.min.js new file mode 100644 index 00000000..ba6fc63d --- /dev/null +++ b/node_modules/uuid/dist/umd/uuidv5.min.js @@ -0,0 +1 @@ +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).uuidv5=e()}(this,(function(){"use strict";var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function e(e){return"string"==typeof e&&r.test(e)}for(var t=[],n=0;n<256;++n)t.push((n+256).toString(16).substr(1));function a(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function o(r,e){return r<>>32-e}return function(r,n,a){function o(r,o,i,f){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+r.length);if(s.set(o),s.set(r,o.length),(s=a(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){f=f||0;for(var u=0;u<16;++u)i[f+u]=s[u];return i}return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!e(a))throw TypeError("Stringified UUID is invalid");return a}(s)}try{o.name=r}catch(r){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=[];for(var i=0;i>>0;A=U,U=w,w=o(b,30)>>>0,b=g,g=C}t[0]=t[0]+g>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+w>>>0,t[3]=t[3]+U>>>0,t[4]=t[4]+A>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))})); \ No newline at end of file diff --git a/node_modules/uuid/dist/uuid-bin.js b/node_modules/uuid/dist/uuid-bin.js new file mode 100644 index 00000000..50a7a9f1 --- /dev/null +++ b/node_modules/uuid/dist/uuid-bin.js @@ -0,0 +1,85 @@ +"use strict"; + +var _assert = _interopRequireDefault(require("assert")); + +var _v = _interopRequireDefault(require("./v1.js")); + +var _v2 = _interopRequireDefault(require("./v3.js")); + +var _v3 = _interopRequireDefault(require("./v4.js")); + +var _v4 = _interopRequireDefault(require("./v5.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function usage() { + console.log('Usage:'); + console.log(' uuid'); + console.log(' uuid v1'); + console.log(' uuid v3 '); + console.log(' uuid v4'); + console.log(' uuid v5 '); + console.log(' uuid --help'); + console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122'); +} + +const args = process.argv.slice(2); + +if (args.indexOf('--help') >= 0) { + usage(); + process.exit(0); +} + +const version = args.shift() || 'v4'; + +switch (version) { + case 'v1': + console.log((0, _v.default)()); + break; + + case 'v3': + { + const name = args.shift(); + let namespace = args.shift(); + (0, _assert.default)(name != null, 'v3 name not specified'); + (0, _assert.default)(namespace != null, 'v3 namespace not specified'); + + if (namespace === 'URL') { + namespace = _v2.default.URL; + } + + if (namespace === 'DNS') { + namespace = _v2.default.DNS; + } + + console.log((0, _v2.default)(name, namespace)); + break; + } + + case 'v4': + console.log((0, _v3.default)()); + break; + + case 'v5': + { + const name = args.shift(); + let namespace = args.shift(); + (0, _assert.default)(name != null, 'v5 name not specified'); + (0, _assert.default)(namespace != null, 'v5 namespace not specified'); + + if (namespace === 'URL') { + namespace = _v4.default.URL; + } + + if (namespace === 'DNS') { + namespace = _v4.default.DNS; + } + + console.log((0, _v4.default)(name, namespace)); + break; + } + + default: + usage(); + process.exit(1); +} \ No newline at end of file diff --git a/node_modules/uuid/dist/v1.js b/node_modules/uuid/dist/v1.js new file mode 100644 index 00000000..abb9b3d1 --- /dev/null +++ b/node_modules/uuid/dist/v1.js @@ -0,0 +1,107 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(require("./rng.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || new Array(16); + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _stringify.default)(b); +} + +var _default = v1; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v3.js b/node_modules/uuid/dist/v3.js new file mode 100644 index 00000000..6b47ff51 --- /dev/null +++ b/node_modules/uuid/dist/v3.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(require("./v35.js")); + +var _md = _interopRequireDefault(require("./md5.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v35.js b/node_modules/uuid/dist/v35.js new file mode 100644 index 00000000..f784c633 --- /dev/null +++ b/node_modules/uuid/dist/v35.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = _default; +exports.URL = exports.DNS = void 0; + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +var _parse = _interopRequireDefault(require("./parse.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + if (typeof value === 'string') { + value = stringToBytes(value); + } + + if (typeof namespace === 'string') { + namespace = (0, _parse.default)(namespace); + } + + if (namespace.length !== 16) { + throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); + } // Compute hash of namespace and value, Per 4.3 + // Future: Use spread syntax when supported on all platforms, e.g. `bytes = + // hashfunc([...namespace, ... value])` + + + let bytes = new Uint8Array(16 + value.length); + bytes.set(namespace); + bytes.set(value, namespace.length); + bytes = hashfunc(bytes); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = bytes[i]; + } + + return buf; + } + + return (0, _stringify.default)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} \ No newline at end of file diff --git a/node_modules/uuid/dist/v4.js b/node_modules/uuid/dist/v4.js new file mode 100644 index 00000000..838ce0b2 --- /dev/null +++ b/node_modules/uuid/dist/v4.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _rng = _interopRequireDefault(require("./rng.js")); + +var _stringify = _interopRequireDefault(require("./stringify.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + options = options || {}; + + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + offset = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[offset + i] = rnds[i]; + } + + return buf; + } + + return (0, _stringify.default)(rnds); +} + +var _default = v4; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v5.js b/node_modules/uuid/dist/v5.js new file mode 100644 index 00000000..99d615e0 --- /dev/null +++ b/node_modules/uuid/dist/v5.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _v = _interopRequireDefault(require("./v35.js")); + +var _sha = _interopRequireDefault(require("./sha1.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/validate.js b/node_modules/uuid/dist/validate.js new file mode 100644 index 00000000..fd052157 --- /dev/null +++ b/node_modules/uuid/dist/validate.js @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _regex = _interopRequireDefault(require("./regex.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function validate(uuid) { + return typeof uuid === 'string' && _regex.default.test(uuid); +} + +var _default = validate; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/version.js b/node_modules/uuid/dist/version.js new file mode 100644 index 00000000..b72949cd --- /dev/null +++ b/node_modules/uuid/dist/version.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _validate = _interopRequireDefault(require("./validate.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function version(uuid) { + if (!(0, _validate.default)(uuid)) { + throw TypeError('Invalid UUID'); + } + + return parseInt(uuid.substr(14, 1), 16); +} + +var _default = version; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/wrapper.mjs b/node_modules/uuid/wrapper.mjs new file mode 100644 index 00000000..c31e9cef --- /dev/null +++ b/node_modules/uuid/wrapper.mjs @@ -0,0 +1,10 @@ +import uuid from './dist/index.js'; +export const v1 = uuid.v1; +export const v3 = uuid.v3; +export const v4 = uuid.v4; +export const v5 = uuid.v5; +export const NIL = uuid.NIL; +export const version = uuid.version; +export const validate = uuid.validate; +export const stringify = uuid.stringify; +export const parse = uuid.parse; diff --git a/node_modules/ws/README.md b/node_modules/ws/README.md deleted file mode 100644 index 20a61149..00000000 --- a/node_modules/ws/README.md +++ /dev/null @@ -1,495 +0,0 @@ -# ws: a Node.js WebSocket library - -[![Version npm](https://img.shields.io/npm/v/ws.svg?logo=npm)](https://www.npmjs.com/package/ws) -[![CI](https://img.shields.io/github/workflow/status/websockets/ws/CI/master?label=CI&logo=github)](https://github.com/websockets/ws/actions?query=workflow%3ACI+branch%3Amaster) -[![Coverage Status](https://img.shields.io/coveralls/websockets/ws/master.svg?logo=coveralls)](https://coveralls.io/github/websockets/ws) - -ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and -server implementation. - -Passes the quite extensive Autobahn test suite: [server][server-report], -[client][client-report]. - -**Note**: This module does not work in the browser. The client in the docs is a -reference to a back end with the role of a client in the WebSocket -communication. Browser clients must use the native -[`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket) -object. To make the same code work seamlessly on Node.js and the browser, you -can use one of the many wrappers available on npm, like -[isomorphic-ws](https://github.com/heineiuo/isomorphic-ws). - -## Table of Contents - -- [Protocol support](#protocol-support) -- [Installing](#installing) - - [Opt-in for performance](#opt-in-for-performance) -- [API docs](#api-docs) -- [WebSocket compression](#websocket-compression) -- [Usage examples](#usage-examples) - - [Sending and receiving text data](#sending-and-receiving-text-data) - - [Sending binary data](#sending-binary-data) - - [Simple server](#simple-server) - - [External HTTP/S server](#external-https-server) - - [Multiple servers sharing a single HTTP/S server](#multiple-servers-sharing-a-single-https-server) - - [Client authentication](#client-authentication) - - [Server broadcast](#server-broadcast) - - [echo.websocket.org demo](#echowebsocketorg-demo) - - [Use the Node.js streams API](#use-the-nodejs-streams-api) - - [Other examples](#other-examples) -- [FAQ](#faq) - - [How to get the IP address of the client?](#how-to-get-the-ip-address-of-the-client) - - [How to detect and close broken connections?](#how-to-detect-and-close-broken-connections) - - [How to connect via a proxy?](#how-to-connect-via-a-proxy) -- [Changelog](#changelog) -- [License](#license) - -## Protocol support - -- **HyBi drafts 07-12** (Use the option `protocolVersion: 8`) -- **HyBi drafts 13-17** (Current default, alternatively option - `protocolVersion: 13`) - -## Installing - -``` -npm install ws -``` - -### Opt-in for performance - -There are 2 optional modules that can be installed along side with the ws -module. These modules are binary addons which improve certain operations. -Prebuilt binaries are available for the most popular platforms so you don't -necessarily need to have a C++ compiler installed on your machine. - -- `npm install --save-optional bufferutil`: Allows to efficiently perform - operations such as masking and unmasking the data payload of the WebSocket - frames. -- `npm install --save-optional utf-8-validate`: Allows to efficiently check if a - message contains valid UTF-8. - -## API docs - -See [`/doc/ws.md`](./doc/ws.md) for Node.js-like documentation of ws classes and -utility functions. - -## WebSocket compression - -ws supports the [permessage-deflate extension][permessage-deflate] which enables -the client and server to negotiate a compression algorithm and its parameters, -and then selectively apply it to the data payloads of each WebSocket message. - -The extension is disabled by default on the server and enabled by default on the -client. It adds a significant overhead in terms of performance and memory -consumption so we suggest to enable it only if it is really needed. - -Note that Node.js has a variety of issues with high-performance compression, -where increased concurrency, especially on Linux, can lead to [catastrophic -memory fragmentation][node-zlib-bug] and slow performance. If you intend to use -permessage-deflate in production, it is worthwhile to set up a test -representative of your workload and ensure Node.js/zlib will handle it with -acceptable performance and memory usage. - -Tuning of permessage-deflate can be done via the options defined below. You can -also use `zlibDeflateOptions` and `zlibInflateOptions`, which is passed directly -into the creation of [raw deflate/inflate streams][node-zlib-deflaterawdocs]. - -See [the docs][ws-server-options] for more options. - -```js -const WebSocket = require('ws'); - -const wss = new WebSocket.Server({ - port: 8080, - perMessageDeflate: { - zlibDeflateOptions: { - // See zlib defaults. - chunkSize: 1024, - memLevel: 7, - level: 3 - }, - zlibInflateOptions: { - chunkSize: 10 * 1024 - }, - // Other options settable: - clientNoContextTakeover: true, // Defaults to negotiated value. - serverNoContextTakeover: true, // Defaults to negotiated value. - serverMaxWindowBits: 10, // Defaults to negotiated value. - // Below options specified as default values. - concurrencyLimit: 10, // Limits zlib concurrency for perf. - threshold: 1024 // Size (in bytes) below which messages - // should not be compressed. - } -}); -``` - -The client will only use the extension if it is supported and enabled on the -server. To always disable the extension on the client set the -`perMessageDeflate` option to `false`. - -```js -const WebSocket = require('ws'); - -const ws = new WebSocket('ws://www.host.com/path', { - perMessageDeflate: false -}); -``` - -## Usage examples - -### Sending and receiving text data - -```js -const WebSocket = require('ws'); - -const ws = new WebSocket('ws://www.host.com/path'); - -ws.on('open', function open() { - ws.send('something'); -}); - -ws.on('message', function incoming(data) { - console.log(data); -}); -``` - -### Sending binary data - -```js -const WebSocket = require('ws'); - -const ws = new WebSocket('ws://www.host.com/path'); - -ws.on('open', function open() { - const array = new Float32Array(5); - - for (var i = 0; i < array.length; ++i) { - array[i] = i / 2; - } - - ws.send(array); -}); -``` - -### Simple server - -```js -const WebSocket = require('ws'); - -const wss = new WebSocket.Server({ port: 8080 }); - -wss.on('connection', function connection(ws) { - ws.on('message', function incoming(message) { - console.log('received: %s', message); - }); - - ws.send('something'); -}); -``` - -### External HTTP/S server - -```js -const fs = require('fs'); -const https = require('https'); -const WebSocket = require('ws'); - -const server = https.createServer({ - cert: fs.readFileSync('/path/to/cert.pem'), - key: fs.readFileSync('/path/to/key.pem') -}); -const wss = new WebSocket.Server({ server }); - -wss.on('connection', function connection(ws) { - ws.on('message', function incoming(message) { - console.log('received: %s', message); - }); - - ws.send('something'); -}); - -server.listen(8080); -``` - -### Multiple servers sharing a single HTTP/S server - -```js -const http = require('http'); -const WebSocket = require('ws'); -const url = require('url'); - -const server = http.createServer(); -const wss1 = new WebSocket.Server({ noServer: true }); -const wss2 = new WebSocket.Server({ noServer: true }); - -wss1.on('connection', function connection(ws) { - // ... -}); - -wss2.on('connection', function connection(ws) { - // ... -}); - -server.on('upgrade', function upgrade(request, socket, head) { - const pathname = url.parse(request.url).pathname; - - if (pathname === '/foo') { - wss1.handleUpgrade(request, socket, head, function done(ws) { - wss1.emit('connection', ws, request); - }); - } else if (pathname === '/bar') { - wss2.handleUpgrade(request, socket, head, function done(ws) { - wss2.emit('connection', ws, request); - }); - } else { - socket.destroy(); - } -}); - -server.listen(8080); -``` - -### Client authentication - -```js -const http = require('http'); -const WebSocket = require('ws'); - -const server = http.createServer(); -const wss = new WebSocket.Server({ noServer: true }); - -wss.on('connection', function connection(ws, request, client) { - ws.on('message', function message(msg) { - console.log(`Received message ${msg} from user ${client}`); - }); -}); - -server.on('upgrade', function upgrade(request, socket, head) { - // This function is not defined on purpose. Implement it with your own logic. - authenticate(request, (err, client) => { - if (err || !client) { - socket.write('HTTP/1.1 401 Unauthorized\r\n\r\n'); - socket.destroy(); - return; - } - - wss.handleUpgrade(request, socket, head, function done(ws) { - wss.emit('connection', ws, request, client); - }); - }); -}); - -server.listen(8080); -``` - -Also see the provided [example][session-parse-example] using `express-session`. - -### Server broadcast - -A client WebSocket broadcasting to all connected WebSocket clients, including -itself. - -```js -const WebSocket = require('ws'); - -const wss = new WebSocket.Server({ port: 8080 }); - -wss.on('connection', function connection(ws) { - ws.on('message', function incoming(data) { - wss.clients.forEach(function each(client) { - if (client.readyState === WebSocket.OPEN) { - client.send(data); - } - }); - }); -}); -``` - -A client WebSocket broadcasting to every other connected WebSocket clients, -excluding itself. - -```js -const WebSocket = require('ws'); - -const wss = new WebSocket.Server({ port: 8080 }); - -wss.on('connection', function connection(ws) { - ws.on('message', function incoming(data) { - wss.clients.forEach(function each(client) { - if (client !== ws && client.readyState === WebSocket.OPEN) { - client.send(data); - } - }); - }); -}); -``` - -### echo.websocket.org demo - -```js -const WebSocket = require('ws'); - -const ws = new WebSocket('wss://echo.websocket.org/', { - origin: 'https://websocket.org' -}); - -ws.on('open', function open() { - console.log('connected'); - ws.send(Date.now()); -}); - -ws.on('close', function close() { - console.log('disconnected'); -}); - -ws.on('message', function incoming(data) { - console.log(`Roundtrip time: ${Date.now() - data} ms`); - - setTimeout(function timeout() { - ws.send(Date.now()); - }, 500); -}); -``` - -### Use the Node.js streams API - -```js -const WebSocket = require('ws'); - -const ws = new WebSocket('wss://echo.websocket.org/', { - origin: 'https://websocket.org' -}); - -const duplex = WebSocket.createWebSocketStream(ws, { encoding: 'utf8' }); - -duplex.pipe(process.stdout); -process.stdin.pipe(duplex); -``` - -### Other examples - -For a full example with a browser client communicating with a ws server, see the -examples folder. - -Otherwise, see the test cases. - -## FAQ - -### How to get the IP address of the client? - -The remote IP address can be obtained from the raw socket. - -```js -const WebSocket = require('ws'); - -const wss = new WebSocket.Server({ port: 8080 }); - -wss.on('connection', function connection(ws, req) { - const ip = req.socket.remoteAddress; -}); -``` - -When the server runs behind a proxy like NGINX, the de-facto standard is to use -the `X-Forwarded-For` header. - -```js -wss.on('connection', function connection(ws, req) { - const ip = req.headers['x-forwarded-for'].split(',')[0].trim(); -}); -``` - -### How to detect and close broken connections? - -Sometimes the link between the server and the client can be interrupted in a way -that keeps both the server and the client unaware of the broken state of the -connection (e.g. when pulling the cord). - -In these cases ping messages can be used as a means to verify that the remote -endpoint is still responsive. - -```js -const WebSocket = require('ws'); - -function noop() {} - -function heartbeat() { - this.isAlive = true; -} - -const wss = new WebSocket.Server({ port: 8080 }); - -wss.on('connection', function connection(ws) { - ws.isAlive = true; - ws.on('pong', heartbeat); -}); - -const interval = setInterval(function ping() { - wss.clients.forEach(function each(ws) { - if (ws.isAlive === false) return ws.terminate(); - - ws.isAlive = false; - ws.ping(noop); - }); -}, 30000); - -wss.on('close', function close() { - clearInterval(interval); -}); -``` - -Pong messages are automatically sent in response to ping messages as required by -the spec. - -Just like the server example above your clients might as well lose connection -without knowing it. You might want to add a ping listener on your clients to -prevent that. A simple implementation would be: - -```js -const WebSocket = require('ws'); - -function heartbeat() { - clearTimeout(this.pingTimeout); - - // Use `WebSocket#terminate()`, which immediately destroys the connection, - // instead of `WebSocket#close()`, which waits for the close timer. - // Delay should be equal to the interval at which your server - // sends out pings plus a conservative assumption of the latency. - this.pingTimeout = setTimeout(() => { - this.terminate(); - }, 30000 + 1000); -} - -const client = new WebSocket('wss://echo.websocket.org/'); - -client.on('open', heartbeat); -client.on('ping', heartbeat); -client.on('close', function clear() { - clearTimeout(this.pingTimeout); -}); -``` - -### How to connect via a proxy? - -Use a custom `http.Agent` implementation like [https-proxy-agent][] or -[socks-proxy-agent][]. - -## Changelog - -We're using the GitHub [releases][changelog] for changelog entries. - -## License - -[MIT](LICENSE) - -[changelog]: https://github.com/websockets/ws/releases -[client-report]: http://websockets.github.io/ws/autobahn/clients/ -[https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent -[node-zlib-bug]: https://github.com/nodejs/node/issues/8871 -[node-zlib-deflaterawdocs]: - https://nodejs.org/api/zlib.html#zlib_zlib_createdeflateraw_options -[permessage-deflate]: https://tools.ietf.org/html/rfc7692 -[server-report]: http://websockets.github.io/ws/autobahn/servers/ -[session-parse-example]: ./examples/express-session-parse -[socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent -[ws-server-options]: - https://github.com/websockets/ws/blob/master/doc/ws.md#new-websocketserveroptions-callback diff --git a/node_modules/ws/index.js b/node_modules/ws/index.js deleted file mode 100644 index 722c7867..00000000 --- a/node_modules/ws/index.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -const WebSocket = require('./lib/websocket'); - -WebSocket.createWebSocketStream = require('./lib/stream'); -WebSocket.Server = require('./lib/websocket-server'); -WebSocket.Receiver = require('./lib/receiver'); -WebSocket.Sender = require('./lib/sender'); - -module.exports = WebSocket; diff --git a/node_modules/ws/package.json b/node_modules/ws/package.json deleted file mode 100644 index 832203f6..00000000 --- a/node_modules/ws/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "ws", - "version": "7.5.9", - "description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", - "keywords": [ - "HyBi", - "Push", - "RFC-6455", - "WebSocket", - "WebSockets", - "real-time" - ], - "homepage": "https://github.com/websockets/ws", - "bugs": "https://github.com/websockets/ws/issues", - "repository": "websockets/ws", - "author": "Einar Otto Stangvik (http://2x.io)", - "license": "MIT", - "main": "index.js", - "browser": "browser.js", - "engines": { - "node": ">=8.3.0" - }, - "files": [ - "browser.js", - "index.js", - "lib/*.js" - ], - "scripts": { - "test": "nyc --reporter=lcov --reporter=text mocha --throw-deprecation test/*.test.js", - "integration": "mocha --throw-deprecation test/*.integration.js", - "lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,yaml,yml}\"" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - }, - "devDependencies": { - "benchmark": "^2.1.4", - "bufferutil": "^4.0.1", - "eslint": "^7.2.0", - "eslint-config-prettier": "^8.1.0", - "eslint-plugin-prettier": "^4.0.0", - "mocha": "^7.0.0", - "nyc": "^15.0.0", - "prettier": "^2.0.5", - "utf-8-validate": "^5.0.2" - } -} diff --git a/node_modules/xtend/.jshintrc b/node_modules/xtend/.jshintrc deleted file mode 100644 index 77887b5f..00000000 --- a/node_modules/xtend/.jshintrc +++ /dev/null @@ -1,30 +0,0 @@ -{ - "maxdepth": 4, - "maxstatements": 200, - "maxcomplexity": 12, - "maxlen": 80, - "maxparams": 5, - - "curly": true, - "eqeqeq": true, - "immed": true, - "latedef": false, - "noarg": true, - "noempty": true, - "nonew": true, - "undef": true, - "unused": "vars", - "trailing": true, - - "quotmark": true, - "expr": true, - "asi": true, - - "browser": false, - "esnext": true, - "devel": false, - "node": false, - "nonstandard": false, - - "predef": ["require", "module", "__dirname", "__filename"] -} diff --git a/node_modules/xtend/README.md b/node_modules/xtend/README.md deleted file mode 100644 index 4a2703cf..00000000 --- a/node_modules/xtend/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# xtend - -[![browser support][3]][4] - -[![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) - -Extend like a boss - -xtend is a basic utility library which allows you to extend an object by appending all of the properties from each object in a list. When there are identical properties, the right-most property takes precedence. - -## Examples - -```js -var extend = require("xtend") - -// extend returns a new object. Does not mutate arguments -var combination = extend({ - a: "a", - b: "c" -}, { - b: "b" -}) -// { a: "a", b: "b" } -``` - -## Stability status: Locked - -## MIT Licensed - - - [3]: http://ci.testling.com/Raynos/xtend.png - [4]: http://ci.testling.com/Raynos/xtend diff --git a/node_modules/xtend/immutable.js b/node_modules/xtend/immutable.js deleted file mode 100644 index 94889c9d..00000000 --- a/node_modules/xtend/immutable.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = extend - -var hasOwnProperty = Object.prototype.hasOwnProperty; - -function extend() { - var target = {} - - for (var i = 0; i < arguments.length; i++) { - var source = arguments[i] - - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - target[key] = source[key] - } - } - } - - return target -} diff --git a/node_modules/xtend/mutable.js b/node_modules/xtend/mutable.js deleted file mode 100644 index 72debede..00000000 --- a/node_modules/xtend/mutable.js +++ /dev/null @@ -1,17 +0,0 @@ -module.exports = extend - -var hasOwnProperty = Object.prototype.hasOwnProperty; - -function extend(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] - - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - target[key] = source[key] - } - } - } - - return target -} diff --git a/node_modules/xtend/package.json b/node_modules/xtend/package.json deleted file mode 100644 index f7a39d10..00000000 --- a/node_modules/xtend/package.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "name": "xtend", - "version": "4.0.2", - "description": "extend like a boss", - "keywords": [ - "extend", - "merge", - "options", - "opts", - "object", - "array" - ], - "author": "Raynos ", - "repository": "git://github.com/Raynos/xtend.git", - "main": "immutable", - "scripts": { - "test": "node test" - }, - "dependencies": {}, - "devDependencies": { - "tape": "~1.1.0" - }, - "homepage": "https://github.com/Raynos/xtend", - "contributors": [ - { - "name": "Jake Verbaten" - }, - { - "name": "Matt Esch" - } - ], - "bugs": { - "url": "https://github.com/Raynos/xtend/issues", - "email": "raynos2@gmail.com" - }, - "license": "MIT", - "testling": { - "files": "test.js", - "browsers": [ - "ie/7..latest", - "firefox/16..latest", - "firefox/nightly", - "chrome/22..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest" - ] - }, - "engines": { - "node": ">=0.4" - } -} diff --git a/node_modules/xtend/test.js b/node_modules/xtend/test.js deleted file mode 100644 index b895b42b..00000000 --- a/node_modules/xtend/test.js +++ /dev/null @@ -1,103 +0,0 @@ -var test = require("tape") -var extend = require("./") -var mutableExtend = require("./mutable") - -test("merge", function(assert) { - var a = { a: "foo" } - var b = { b: "bar" } - - assert.deepEqual(extend(a, b), { a: "foo", b: "bar" }) - assert.end() -}) - -test("replace", function(assert) { - var a = { a: "foo" } - var b = { a: "bar" } - - assert.deepEqual(extend(a, b), { a: "bar" }) - assert.end() -}) - -test("undefined", function(assert) { - var a = { a: undefined } - var b = { b: "foo" } - - assert.deepEqual(extend(a, b), { a: undefined, b: "foo" }) - assert.deepEqual(extend(b, a), { a: undefined, b: "foo" }) - assert.end() -}) - -test("handle 0", function(assert) { - var a = { a: "default" } - var b = { a: 0 } - - assert.deepEqual(extend(a, b), { a: 0 }) - assert.deepEqual(extend(b, a), { a: "default" }) - assert.end() -}) - -test("is immutable", function (assert) { - var record = {} - - extend(record, { foo: "bar" }) - assert.equal(record.foo, undefined) - assert.end() -}) - -test("null as argument", function (assert) { - var a = { foo: "bar" } - var b = null - var c = void 0 - - assert.deepEqual(extend(b, a, c), { foo: "bar" }) - assert.end() -}) - -test("mutable", function (assert) { - var a = { foo: "bar" } - - mutableExtend(a, { bar: "baz" }) - - assert.equal(a.bar, "baz") - assert.end() -}) - -test("null prototype", function(assert) { - var a = { a: "foo" } - var b = Object.create(null) - b.b = "bar"; - - assert.deepEqual(extend(a, b), { a: "foo", b: "bar" }) - assert.end() -}) - -test("null prototype mutable", function (assert) { - var a = { foo: "bar" } - var b = Object.create(null) - b.bar = "baz"; - - mutableExtend(a, b) - - assert.equal(a.bar, "baz") - assert.end() -}) - -test("prototype pollution", function (assert) { - var a = {} - var maliciousPayload = '{"__proto__":{"oops":"It works!"}}' - - assert.strictEqual(a.oops, undefined) - extend({}, maliciousPayload) - assert.strictEqual(a.oops, undefined) - assert.end() -}) - -test("prototype pollution mutable", function (assert) { - var a = {} - var maliciousPayload = '{"__proto__":{"oops":"It works!"}}' - - assert.strictEqual(a.oops, undefined) - mutableExtend({}, maliciousPayload) - assert.strictEqual(a.oops, undefined) - assert.end() -}) diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..ae34aef7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1975 @@ +{ + "name": "logsene-cloudwatch-lambda", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "logsene-cloudwatch-lambda", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@sematext/logagent": "^3.2.0", + "mocha": "^10.0.0" + }, + "devDependencies": { + "mocha": "^10.0.0" + } + }, + "node_modules/@sematext/logagent": { + "version": "3.2.0", + "license": "Apache-2.0", + "dependencies": { + "@azure/event-hubs": "^5.2.0", + "alasql": "^1.7.2", + "aws-sdk": "^2.689.0", + "cassandra-driver": "^3.5.0", + "chalk": "^2.4.1", + "clickhouse": "^1.2.88888888", + "clone": "^2.1.2", + "co": "^4.6.0", + "commander": "^2.19.0", + "device-detector-js": "^2.2.1", + "docker-events": "0.0.2", + "docker-loghose": "^1.6.5", + "dockerode": "^3.3.4", + "elasticsearch": "^15.2.0", + "eventemitter3": "^3.1.0", + "fast-safe-stringify": "^2.0.6", + "flat": "^4.1.0", + "flatstr": "^1.0.8", + "get-value": "^3.0.1", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "http-aws-es": "^6.0.0", + "influx-line-protocol-parser": "^0.2.0", + "js-yaml": "^3.14.0", + "json-influx": "^0.3.0", + "kubernetes-client": "^8.3.7", + "logsene-js": "^1.1.74", + "lru-cache": "^5.1.1", + "maxmind": "^3.1.2", + "maxmind-geolite-mirror": "^1.1.3", + "md5": "^2.2.1", + "merge": "^2.1.1", + "minimatch": "^3.0.4", + "mkpath": "^1.0.0", + "moment": "^2.29.1", + "moment-timezone": "^0.5.31", + "mqtt": "^4.2.8", + "mysql": "^2.16.0", + "pg": "^7.18.2", + "prettyjson": "^1.2.1", + "public-ip": "^4.0.2", + "query-string": "^6.12.1", + "request": "^2.88.2", + "requestretry": "^7.0.0", + "rotating-file-stream": "^1.3.9", + "set-value": "^4.0.1", + "split2": "^3.0.0", + "stackman": "^3.0.2", + "stream-throttle": "^0.1.3", + "string-template": "^1.0.0", + "syslogd": "^1.1.2", + "tail-forever": "^0.3.16", + "tedious": "^3.0.1", + "throng": "^4.0.0", + "through2": "^4.0.2", + "try-call": "0.0.2", + "unset-value": "^1.0.0" + }, + "bin": { + "logagent": "bin/logagent.js", + "logagent-setup": "bin/logagent-setup.sh", + "logagent-uninstall": "bin/logagent-uninstall.sh", + "logagent-windows": "bin/logagent-windows.js" + }, + "optionalDependencies": { + "aedes": "^0.42.1", + "date-fns": "^2.9.0", + "websocket-stream": "^5.1.1" + } + }, + "node_modules/@sematext/logagent/node_modules/throng": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "lodash.defaults": "^4.0.1" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/adler-32": { + "version": "1.2.0", + "license": "Apache-2.0", + "dependencies": { + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" + }, + "bin": { + "adler32": "bin/adler32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/alasql": { + "version": "1.7.3", + "license": "MIT", + "dependencies": { + "dom-storage": "^2.1.0", + "es6-promise": "^4.2.6", + "lodash": "4.17.21", + "request": "2.88.2", + "xlsx": "0.17.0", + "yargs": "16.2.0" + }, + "bin": { + "alaserver": "bin/alaserver.js", + "alasql": "bin/alasql-cli.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/async-cache": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^4.0.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.11.0", + "license": "MIT" + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browser-stdout": { + "version": "1.3.1", + "dev": true, + "license": "ISC" + }, + "node_modules/caseless": { + "version": "0.12.0", + "license": "Apache-2.0" + }, + "node_modules/cfb": { + "version": "1.2.2", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.3.0", + "crc-32": "~1.2.0" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/co": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/codepage": { + "version": "1.14.0", + "license": "Apache-2.0", + "dependencies": { + "commander": "~2.14.1", + "exit-on-epipe": "~1.0.1" + }, + "bin": { + "codepage": "bin/codepage.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/codepage/node_modules/commander": { + "version": "2.14.1", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/colors": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "2.9.0", + "license": "MIT", + "dependencies": { + "graceful-readlink": ">= 1.0.0" + }, + "engines": { + "node": ">= 0.6.x" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "dev": true, + "license": "MIT" + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/diff": { + "version": "5.0.0", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/dom-storage": { + "version": "2.1.0", + "license": "(MIT or Apache-2.0)", + "engines": { + "node": "*" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/error-callsites": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eventemitter3": { + "version": "3.1.2", + "license": "MIT" + }, + "node_modules/exit-on-epipe": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "license": "MIT" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "5.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat": { + "version": "4.1.1", + "license": "BSD-3-Clause", + "dependencies": { + "is-buffer": "~2.0.3" + }, + "bin": { + "flat": "cli.js" + } + }, + "node_modules/flatstr": { + "version": "1.0.12", + "license": "MIT" + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/frac": { + "version": "1.1.2", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "dev": true, + "license": "ISC" + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "license": "ISC" + }, + "node_modules/graceful-readlink": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/har-validator": { + "version": "5.1.5", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/inflight": { + "version": "1.0.4", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/is-buffer": { + "version": "2.0.5", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/isstream": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbn": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/jschardet": { + "version": "3.0.0", + "license": "LGPL-2.1+", + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "license": "ISC" + }, + "node_modules/jsprim": { + "version": "1.4.2", + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/limiter": { + "version": "1.1.0" + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.defaults": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/maxmind": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "tiny-lru": "6.0.1" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/maxmind-geolite-mirror": { + "version": "1.1.8", + "license": "MIT", + "bin": { + "maxmind-geolite-mirror": "bin/maxmind-geolite-mirror" + }, + "engines": { + "node": ">= v12.0.0" + }, + "optionalDependencies": { + "tar-stream": "^2.1.0" + } + }, + "node_modules/merge": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "license": "MIT" + }, + "node_modules/mkpath": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/mocha": { + "version": "10.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "@ungap/promise-all-settled": "1.1.2", + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "bin": { + "_mocha": "bin/_mocha", + "mocha": "bin/mocha.js" + }, + "engines": { + "node": ">= 14.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/glob": { + "version": "7.2.0", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/mocha/node_modules/minimatch": { + "version": "5.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mocha/node_modules/supports-color": { + "version": "8.1.1", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/moment": { + "version": "2.29.4", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/once": { + "version": "1.4.0", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prettyjson": { + "version": "1.2.5", + "license": "MIT", + "dependencies": { + "colors": "1.4.0", + "minimist": "^1.2.0" + }, + "bin": { + "prettyjson": "bin/prettyjson" + } + }, + "node_modules/printj": { + "version": "1.1.2", + "license": "Apache-2.0", + "bin": { + "printj": "bin/printj.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/punycode": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/readable-stream": { + "version": "3.6.0", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request": { + "version": "2.88.2", + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/split2": { + "version": "3.2.2", + "license": "ISC", + "dependencies": { + "readable-stream": "^3.0.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/ssf": { + "version": "0.11.2", + "license": "Apache-2.0", + "dependencies": { + "frac": "~1.1.2" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/sshpk": { + "version": "1.17.0", + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackman": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "after-all-results": "^2.0.0", + "async-cache": "^1.1.0", + "debug": "^2.2.0", + "error-callsites": "^1.0.1", + "load-source-map": "^1.0.0", + "path-is-absolute": "^1.0.1" + } + }, + "node_modules/stream-throttle": { + "version": "0.1.3", + "license": "BSD-3-Clause", + "dependencies": { + "commander": "^2.2.0", + "limiter": "^1.0.5" + }, + "bin": { + "throttleproxy": "bin/throttleproxy.js" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/syslogd": { + "version": "1.1.2", + "license": "ISC", + "dependencies": { + "debug": "^2.1.0" + } + }, + "node_modules/tail-forever": { + "version": "0.3.16", + "dependencies": { + "iconv-lite": "*", + "jschardet": "*", + "uclogs-async": "*", + "underscore": "*" + } + }, + "node_modules/through2": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "readable-stream": "3" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/try-call": { + "version": "0.0.2", + "license": "BSD" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "license": "Unlicense" + }, + "node_modules/uclogs-async": { + "version": "0.1.0" + }, + "node_modules/underscore": { + "version": "1.13.4", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/websocket-stream": { + "optional": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.1", + "dev": true, + "license": "ISC" + }, + "node_modules/xlsx": { + "version": "0.17.0", + "license": "Apache-2.0", + "dependencies": { + "adler-32": "~1.2.0", + "cfb": "^1.1.4", + "codepage": "~1.14.0", + "commander": "~2.17.1", + "crc-32": "~1.2.0", + "exit-on-epipe": "~1.0.1", + "fflate": "^0.3.8", + "ssf": "~0.11.2", + "wmf": "~1.0.1", + "word": "~0.3.0" + }, + "bin": { + "xlsx": "bin/xlsx.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/xlsx/node_modules/commander": { + "version": "2.17.1", + "license": "MIT" + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "license": "ISC" + }, + "node_modules/yargs": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "20.2.9", + "license": "ISC", + "engines": { + "node": ">=10" + } + } + }, + "dependencies": { + "@sematext/logagent": { + "version": "3.2.0", + "requires": { + "@azure/event-hubs": "^5.2.0", + "aedes": "^0.42.1", + "alasql": "^1.7.2", + "aws-sdk": "^2.689.0", + "cassandra-driver": "^3.5.0", + "chalk": "^2.4.1", + "clickhouse": "^1.2.88888888", + "clone": "^2.1.2", + "co": "^4.6.0", + "commander": "^2.19.0", + "date-fns": "^2.9.0", + "device-detector-js": "^2.2.1", + "docker-events": "0.0.2", + "docker-loghose": "^1.6.5", + "dockerode": "^3.3.4", + "elasticsearch": "^15.2.0", + "eventemitter3": "^3.1.0", + "fast-safe-stringify": "^2.0.6", + "flat": "^4.1.0", + "flatstr": "^1.0.8", + "get-value": "^3.0.1", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "http-aws-es": "^6.0.0", + "influx-line-protocol-parser": "^0.2.0", + "js-yaml": "^3.14.0", + "json-influx": "^0.3.0", + "kubernetes-client": "^8.3.7", + "logsene-js": "^1.1.74", + "lru-cache": "^5.1.1", + "maxmind": "^3.1.2", + "maxmind-geolite-mirror": "^1.1.3", + "md5": "^2.2.1", + "merge": "^2.1.1", + "minimatch": "^3.0.4", + "mkpath": "^1.0.0", + "moment": "^2.29.1", + "moment-timezone": "^0.5.31", + "mqtt": "^4.2.8", + "mysql": "^2.16.0", + "pg": "^7.18.2", + "prettyjson": "^1.2.1", + "public-ip": "^4.0.2", + "query-string": "^6.12.1", + "request": "^2.88.2", + "requestretry": "^7.0.0", + "rotating-file-stream": "^1.3.9", + "set-value": "^4.0.1", + "split2": "^3.0.0", + "stackman": "^3.0.2", + "stream-throttle": "^0.1.3", + "string-template": "^1.0.0", + "syslogd": "^1.1.2", + "tail-forever": "^0.3.16", + "tedious": "^3.0.1", + "throng": "^4.0.0", + "through2": "^4.0.2", + "try-call": "0.0.2", + "unset-value": "^1.0.0", + "websocket-stream": "^5.1.1" + }, + "dependencies": { + "throng": { + "version": "4.0.0", + "requires": { + "lodash.defaults": "^4.0.1" + } + } + } + }, + "adler-32": { + "version": "1.2.0", + "requires": { + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" + } + }, + "alasql": { + "version": "1.7.3", + "requires": { + "dom-storage": "^2.1.0", + "es6-promise": "^4.2.6", + "lodash": "4.17.21", + "request": "2.88.2", + "xlsx": "0.17.0", + "yargs": "16.2.0" + } + }, + "ansi-regex": { + "version": "5.0.1" + }, + "ansi-styles": { + "version": "3.2.1", + "requires": { + "color-convert": "^1.9.0" + } + }, + "argparse": { + "version": "1.0.10", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "asn1": { + "version": "0.2.6", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0" + }, + "async-cache": { + "version": "1.1.0", + "requires": { + "lru-cache": "^4.0.0" + } + }, + "asynckit": { + "version": "0.4.0" + }, + "aws-sign2": { + "version": "0.7.0" + }, + "aws4": { + "version": "1.11.0" + }, + "balanced-match": { + "version": "1.0.2", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "browser-stdout": { + "version": "1.3.1", + "dev": true + }, + "caseless": { + "version": "0.12.0" + }, + "cfb": { + "version": "1.2.2", + "requires": { + "adler-32": "~1.3.0", + "crc-32": "~1.2.0" + } + }, + "chalk": { + "version": "2.4.2", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "cliui": { + "version": "7.0.4", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "co": { + "version": "4.6.0" + }, + "codepage": { + "version": "1.14.0", + "requires": { + "commander": "~2.14.1", + "exit-on-epipe": "~1.0.1" + }, + "dependencies": { + "commander": { + "version": "2.14.1" + } + } + }, + "color-convert": { + "version": "1.9.3", + "requires": { + "color-name": "1.1.3" + } + }, + "colors": { + "version": "1.4.0" + }, + "combined-stream": { + "version": "1.0.8", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.9.0", + "requires": { + "graceful-readlink": ">= 1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "dev": true + }, + "core-util-is": { + "version": "1.0.2" + }, + "crc-32": { + "version": "1.2.2" + }, + "dashdash": { + "version": "1.14.1", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "delayed-stream": { + "version": "1.0.0" + }, + "diff": { + "version": "5.0.0", + "dev": true + }, + "dom-storage": { + "version": "2.1.0" + }, + "ecc-jsbn": { + "version": "0.1.2", + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "error-callsites": { + "version": "1.0.1" + }, + "es6-promise": { + "version": "4.2.8" + }, + "escape-string-regexp": { + "version": "1.0.5" + }, + "esprima": { + "version": "4.0.1" + }, + "eventemitter3": { + "version": "3.1.2" + }, + "exit-on-epipe": { + "version": "1.0.1" + }, + "extend": { + "version": "3.0.2" + }, + "extsprintf": { + "version": "1.3.0" + }, + "fast-safe-stringify": { + "version": "2.1.1" + }, + "find-up": { + "version": "5.0.0", + "dev": true, + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "flat": { + "version": "4.1.1", + "requires": { + "is-buffer": "~2.0.3" + } + }, + "flatstr": { + "version": "1.0.12" + }, + "forever-agent": { + "version": "0.6.1" + }, + "form-data": { + "version": "2.5.1", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "frac": { + "version": "1.1.2" + }, + "fs.realpath": { + "version": "1.0.0", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5" + }, + "graceful-fs": { + "version": "4.2.10" + }, + "graceful-readlink": { + "version": "1.0.1" + }, + "har-validator": { + "version": "5.1.5", + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "http-signature": { + "version": "1.2.0", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "iconv-lite": { + "version": "0.6.3", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "inflight": { + "version": "1.0.4", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4" + }, + "is-buffer": { + "version": "2.0.5" + }, + "is-fullwidth-code-point": { + "version": "3.0.0" + }, + "is-typedarray": { + "version": "1.0.0" + }, + "isstream": { + "version": "0.1.2" + }, + "js-yaml": { + "version": "3.14.1", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1" + }, + "jschardet": { + "version": "3.0.0" + }, + "json-schema": { + "version": "0.4.0" + }, + "json-stringify-safe": { + "version": "5.0.1" + }, + "jsprim": { + "version": "1.4.2", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, + "limiter": { + "version": "1.1.0" + }, + "lodash": { + "version": "4.17.21" + }, + "lodash.defaults": { + "version": "4.2.0" + }, + "lru-cache": { + "version": "5.1.1", + "requires": { + "yallist": "^3.0.2" + } + }, + "maxmind": { + "version": "3.1.2", + "requires": { + "tiny-lru": "6.0.1" + } + }, + "maxmind-geolite-mirror": { + "version": "1.1.8", + "requires": { + "tar-stream": "^2.1.0" + } + }, + "merge": { + "version": "2.1.1" + }, + "mime-db": { + "version": "1.52.0" + }, + "mime-types": { + "version": "2.1.35", + "requires": { + "mime-db": "1.52.0" + } + }, + "minimist": { + "version": "1.2.6" + }, + "mkpath": { + "version": "1.0.0" + }, + "mocha": { + "version": "10.0.0", + "dev": true, + "requires": { + "@ungap/promise-all-settled": "1.1.2", + "ansi-colors": "4.1.1", + "browser-stdout": "1.3.1", + "chokidar": "3.5.3", + "debug": "4.3.4", + "diff": "5.0.0", + "escape-string-regexp": "4.0.0", + "find-up": "5.0.0", + "glob": "7.2.0", + "he": "1.2.0", + "js-yaml": "4.1.0", + "log-symbols": "4.1.0", + "minimatch": "5.0.1", + "ms": "2.1.3", + "nanoid": "3.3.3", + "serialize-javascript": "6.0.0", + "strip-json-comments": "3.1.1", + "supports-color": "8.1.1", + "workerpool": "6.2.1", + "yargs": "16.2.0", + "yargs-parser": "20.2.4", + "yargs-unparser": "2.0.0" + }, + "dependencies": { + "glob": { + "version": "7.2.0", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "minimatch": { + "version": "5.0.1", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "supports-color": { + "version": "8.1.1", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "moment": { + "version": "2.29.4" + }, + "ms": { + "version": "2.0.0" + }, + "oauth-sign": { + "version": "0.9.0" + }, + "once": { + "version": "1.4.0", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "path-exists": { + "version": "4.0.0", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1" + }, + "prettyjson": { + "version": "1.2.5", + "requires": { + "colors": "1.4.0", + "minimist": "^1.2.0" + } + }, + "printj": { + "version": "1.1.2" + }, + "punycode": { + "version": "2.1.1" + }, + "qs": { + "version": "6.11.0", + "requires": { + "side-channel": "^1.0.4" + } + }, + "readable-stream": { + "version": "3.6.0", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "request": { + "version": "2.88.2", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "require-directory": { + "version": "2.1.1" + }, + "split2": { + "version": "3.2.2", + "requires": { + "readable-stream": "^3.0.0" + } + }, + "sprintf-js": { + "version": "1.0.3" + }, + "ssf": { + "version": "0.11.2", + "requires": { + "frac": "~1.1.2" + } + }, + "sshpk": { + "version": "1.17.0", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stackman": { + "version": "3.0.2", + "requires": { + "after-all-results": "^2.0.0", + "async-cache": "^1.1.0", + "debug": "^2.2.0", + "error-callsites": "^1.0.1", + "load-source-map": "^1.0.0", + "path-is-absolute": "^1.0.1" + } + }, + "stream-throttle": { + "version": "0.1.3", + "requires": { + "commander": "^2.2.0", + "limiter": "^1.0.5" + } + }, + "string_decoder": { + "version": "1.3.0", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-width": { + "version": "4.2.3", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-json-comments": { + "version": "3.1.1", + "dev": true + }, + "supports-color": { + "version": "5.5.0", + "requires": { + "has-flag": "^3.0.0" + } + }, + "syslogd": { + "version": "1.1.2", + "requires": { + "debug": "^2.1.0" + } + }, + "tail-forever": { + "version": "0.3.16", + "requires": { + "iconv-lite": "*", + "jschardet": "*", + "uclogs-async": "*", + "underscore": "*" + } + }, + "through2": { + "version": "4.0.2", + "requires": { + "readable-stream": "3" + } + }, + "tough-cookie": { + "version": "2.5.0", + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "try-call": { + "version": "0.0.2" + }, + "tunnel-agent": { + "version": "0.6.0", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5" + }, + "uclogs-async": { + "version": "0.1.0" + }, + "underscore": { + "version": "1.13.4" + }, + "util-deprecate": { + "version": "1.0.2" + }, + "uuid": { + "version": "8.3.2" + }, + "verror": { + "version": "1.10.0", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "websocket-stream": { + "optional": true + }, + "wrap-ansi": { + "version": "7.0.0", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.1", + "dev": true + }, + "xlsx": { + "version": "0.17.0", + "requires": { + "adler-32": "~1.2.0", + "cfb": "^1.1.4", + "codepage": "~1.14.0", + "commander": "~2.17.1", + "crc-32": "~1.2.0", + "exit-on-epipe": "~1.0.1", + "fflate": "^0.3.8", + "ssf": "~0.11.2", + "wmf": "~1.0.1", + "word": "~0.3.0" + }, + "dependencies": { + "commander": { + "version": "2.17.1" + } + } + }, + "y18n": { + "version": "5.0.8" + }, + "yallist": { + "version": "3.1.1" + }, + "yargs": { + "version": "16.2.0", + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + } + }, + "yargs-parser": { + "version": "20.2.9" + } + } +} From 0ac7b2f93cf63d3f82294e6ac7404fb4f9871cf0 Mon Sep 17 00:00:00 2001 From: Pablo Beltran Date: Wed, 21 Sep 2022 18:32:10 +0200 Subject: [PATCH 2/3] Added date-fns as a dependency --- node_modules/.package-lock.json | 12 ++++++++++++ package-lock.json | 18 ++++++++++++++++++ package.json | 3 ++- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json index f5b1a17e..9e7849f7 100644 --- a/node_modules/.package-lock.json +++ b/node_modules/.package-lock.json @@ -325,6 +325,18 @@ "node": ">=0.10" } }, + "node_modules/date-fns": { + "version": "2.29.3", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", + "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/debug": { "version": "2.6.9", "license": "MIT", diff --git a/package-lock.json b/package-lock.json index ae34aef7..f68d619c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "ISC", "dependencies": { "@sematext/logagent": "^3.2.0", + "date-fns": "^2.9.0", "mocha": "^10.0.0" }, "devDependencies": { @@ -337,6 +338,18 @@ "node": ">=0.10" } }, + "node_modules/date-fns": { + "version": "2.29.3", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", + "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==", + "engines": { + "node": ">=0.11" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + } + }, "node_modules/debug": { "version": "2.6.9", "license": "MIT", @@ -1430,6 +1443,11 @@ "assert-plus": "^1.0.0" } }, + "date-fns": { + "version": "2.29.3", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.29.3.tgz", + "integrity": "sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==" + }, "debug": { "version": "2.6.9", "requires": { diff --git a/package.json b/package.json index 3d37ae2b..bf2d1bb0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "author": "Sematext", "dependencies": { "@sematext/logagent": "^3.2.0", - "mocha": "^10.0.0" + "mocha": "^10.0.0", + "date-fns": "^2.9.0" }, "scripts": { "start": "node server.js", From 2a49f2df21c735284735f6cdea8eb98f4c650992 Mon Sep 17 00:00:00 2001 From: Pablo Beltran Date: Wed, 21 Sep 2022 18:35:05 +0200 Subject: [PATCH 3/3] Add all modules --- node_modules/date-fns/CHANGELOG.md | 2561 ++ node_modules/date-fns/LICENSE.md | 21 + node_modules/date-fns/README.md | 69 + .../date-fns/_lib/addLeadingZeros/index.js | 19 + node_modules/date-fns/_lib/assign/index.js | 23 + .../date-fns/_lib/cloneObject/index.js | 16 + .../date-fns/_lib/defaultLocale/index.js | 14 + .../date-fns/_lib/defaultOptions/index.js | 16 + .../date-fns/_lib/format/formatters/index.js | 884 + .../_lib/format/lightFormatters/index.js | 95 + .../_lib/format/longFormatters/index.js | 105 + .../getTimezoneOffsetInMilliseconds/index.js | 25 + .../date-fns/_lib/getUTCDayOfYear/index.js | 27 + .../date-fns/_lib/getUTCISOWeek/index.js | 30 + .../date-fns/_lib/getUTCISOWeekYear/index.js | 38 + .../date-fns/_lib/getUTCWeek/index.js | 30 + .../date-fns/_lib/getUTCWeekYear/index.js | 51 + .../date-fns/_lib/isSameUTCWeek/index.js | 21 + .../date-fns/_lib/protectedTokens/index.js | 30 + .../date-fns/_lib/requiredArgs/index.js | 14 + .../date-fns/_lib/roundingMethods/index.js | 20 + node_modules/date-fns/_lib/setUTCDay/index.js | 39 + .../date-fns/_lib/setUTCISODay/index.js | 34 + .../date-fns/_lib/setUTCISOWeek/index.js | 27 + .../date-fns/_lib/setUTCWeek/index.js | 27 + .../date-fns/_lib/startOfUTCISOWeek/index.js | 25 + .../_lib/startOfUTCISOWeekYear/index.js | 26 + .../date-fns/_lib/startOfUTCWeek/index.js | 37 + .../date-fns/_lib/startOfUTCWeekYear/index.js | 34 + node_modules/date-fns/_lib/test/index.js | 40 + node_modules/date-fns/_lib/toInteger/index.js | 22 + node_modules/date-fns/add/index.d.ts | 4 + node_modules/date-fns/add/index.js | 84 + node_modules/date-fns/add/index.js.flow | 52 + node_modules/date-fns/add/package.json | 5 + .../date-fns/addBusinessDays/index.d.ts | 4 + .../date-fns/addBusinessDays/index.js | 73 + .../date-fns/addBusinessDays/index.js.flow | 52 + .../date-fns/addBusinessDays/package.json | 5 + node_modules/date-fns/addDays/index.d.ts | 4 + node_modules/date-fns/addDays/index.js | 52 + node_modules/date-fns/addDays/index.js.flow | 52 + node_modules/date-fns/addDays/package.json | 5 + node_modules/date-fns/addHours/index.d.ts | 4 + node_modules/date-fns/addHours/index.js | 42 + node_modules/date-fns/addHours/index.js.flow | 52 + node_modules/date-fns/addHours/package.json | 5 + .../date-fns/addISOWeekYears/index.d.ts | 4 + .../date-fns/addISOWeekYears/index.js | 44 + .../date-fns/addISOWeekYears/index.js.flow | 52 + .../date-fns/addISOWeekYears/package.json | 5 + .../date-fns/addMilliseconds/index.d.ts | 4 + .../date-fns/addMilliseconds/index.js | 41 + .../date-fns/addMilliseconds/index.js.flow | 52 + .../date-fns/addMilliseconds/package.json | 5 + node_modules/date-fns/addMinutes/index.d.ts | 4 + node_modules/date-fns/addMinutes/index.js | 42 + .../date-fns/addMinutes/index.js.flow | 52 + node_modules/date-fns/addMinutes/package.json | 5 + node_modules/date-fns/addMonths/index.d.ts | 4 + node_modules/date-fns/addMonths/index.js | 78 + node_modules/date-fns/addMonths/index.js.flow | 52 + node_modules/date-fns/addMonths/package.json | 5 + node_modules/date-fns/addQuarters/index.d.ts | 4 + node_modules/date-fns/addQuarters/index.js | 41 + .../date-fns/addQuarters/index.js.flow | 52 + .../date-fns/addQuarters/package.json | 5 + node_modules/date-fns/addSeconds/index.d.ts | 4 + node_modules/date-fns/addSeconds/index.js | 40 + .../date-fns/addSeconds/index.js.flow | 52 + node_modules/date-fns/addSeconds/package.json | 5 + node_modules/date-fns/addWeeks/index.d.ts | 4 + node_modules/date-fns/addWeeks/index.js | 41 + node_modules/date-fns/addWeeks/index.js.flow | 52 + node_modules/date-fns/addWeeks/package.json | 5 + node_modules/date-fns/addYears/index.d.ts | 4 + node_modules/date-fns/addYears/index.js | 40 + node_modules/date-fns/addYears/index.js.flow | 52 + node_modules/date-fns/addYears/package.json | 5 + .../areIntervalsOverlapping/index.d.ts | 4 + .../date-fns/areIntervalsOverlapping/index.js | 87 + .../areIntervalsOverlapping/index.js.flow | 58 + .../areIntervalsOverlapping/package.json | 5 + node_modules/date-fns/clamp/index.d.ts | 4 + node_modules/date-fns/clamp/index.js | 49 + node_modules/date-fns/clamp/index.js.flow | 52 + node_modules/date-fns/clamp/package.json | 5 + .../date-fns/closestIndexTo/index.d.ts | 4 + node_modules/date-fns/closestIndexTo/index.js | 74 + .../date-fns/closestIndexTo/index.js.flow | 55 + .../date-fns/closestIndexTo/package.json | 5 + node_modules/date-fns/closestTo/index.d.ts | 4 + node_modules/date-fns/closestTo/index.js | 72 + node_modules/date-fns/closestTo/index.js.flow | 55 + node_modules/date-fns/closestTo/package.json | 5 + node_modules/date-fns/compareAsc/index.d.ts | 4 + node_modules/date-fns/compareAsc/index.js | 61 + .../date-fns/compareAsc/index.js.flow | 55 + node_modules/date-fns/compareAsc/package.json | 5 + node_modules/date-fns/compareDesc/index.d.ts | 4 + node_modules/date-fns/compareDesc/index.js | 61 + .../date-fns/compareDesc/index.js.flow | 55 + .../date-fns/compareDesc/package.json | 5 + node_modules/date-fns/constants/index.d.ts | 20 + node_modules/date-fns/constants/index.js | 208 + node_modules/date-fns/constants/index.js.flow | 14 + node_modules/date-fns/daysToWeeks/index.d.ts | 4 + node_modules/date-fns/daysToWeeks/index.js | 43 + .../date-fns/daysToWeeks/index.js.flow | 52 + .../date-fns/daysToWeeks/package.json | 5 + .../differenceInBusinessDays/index.d.ts | 4 + .../differenceInBusinessDays/index.js | 95 + .../differenceInBusinessDays/index.js.flow | 55 + .../differenceInBusinessDays/package.json | 5 + .../differenceInCalendarDays/index.d.ts | 4 + .../differenceInCalendarDays/index.js | 60 + .../differenceInCalendarDays/index.js.flow | 55 + .../differenceInCalendarDays/package.json | 5 + .../index.d.ts | 4 + .../differenceInCalendarISOWeekYears/index.js | 42 + .../index.js.flow | 55 + .../package.json | 5 + .../differenceInCalendarISOWeeks/index.d.ts | 4 + .../differenceInCalendarISOWeeks/index.js | 53 + .../index.js.flow | 55 + .../differenceInCalendarISOWeeks/package.json | 5 + .../differenceInCalendarMonths/index.d.ts | 4 + .../differenceInCalendarMonths/index.js | 44 + .../differenceInCalendarMonths/index.js.flow | 55 + .../differenceInCalendarMonths/package.json | 5 + .../differenceInCalendarQuarters/index.d.ts | 4 + .../differenceInCalendarQuarters/index.js | 46 + .../index.js.flow | 55 + .../differenceInCalendarQuarters/package.json | 5 + .../differenceInCalendarWeeks/index.d.ts | 4 + .../differenceInCalendarWeeks/index.js | 65 + .../differenceInCalendarWeeks/index.js.flow | 59 + .../differenceInCalendarWeeks/package.json | 5 + .../differenceInCalendarYears/index.d.ts | 4 + .../differenceInCalendarYears/index.js | 42 + .../differenceInCalendarYears/index.js.flow | 55 + .../differenceInCalendarYears/package.json | 5 + .../date-fns/differenceInDays/index.d.ts | 4 + .../date-fns/differenceInDays/index.js | 97 + .../date-fns/differenceInDays/index.js.flow | 55 + .../date-fns/differenceInDays/package.json | 5 + .../date-fns/differenceInHours/index.d.ts | 4 + .../date-fns/differenceInHours/index.js | 49 + .../date-fns/differenceInHours/index.js.flow | 58 + .../date-fns/differenceInHours/package.json | 5 + .../differenceInISOWeekYears/index.d.ts | 4 + .../differenceInISOWeekYears/index.js | 59 + .../differenceInISOWeekYears/index.js.flow | 55 + .../differenceInISOWeekYears/package.json | 5 + .../differenceInMilliseconds/index.d.ts | 4 + .../differenceInMilliseconds/index.js | 41 + .../differenceInMilliseconds/index.js.flow | 55 + .../differenceInMilliseconds/package.json | 5 + .../date-fns/differenceInMinutes/index.d.ts | 4 + .../date-fns/differenceInMinutes/index.js | 57 + .../differenceInMinutes/index.js.flow | 58 + .../date-fns/differenceInMinutes/package.json | 5 + .../date-fns/differenceInMonths/index.d.ts | 4 + .../date-fns/differenceInMonths/index.js | 71 + .../date-fns/differenceInMonths/index.js.flow | 55 + .../date-fns/differenceInMonths/package.json | 5 + .../date-fns/differenceInQuarters/index.d.ts | 4 + .../date-fns/differenceInQuarters/index.js | 42 + .../differenceInQuarters/index.js.flow | 58 + .../differenceInQuarters/package.json | 5 + .../date-fns/differenceInSeconds/index.d.ts | 4 + .../date-fns/differenceInSeconds/index.js | 46 + .../differenceInSeconds/index.js.flow | 58 + .../date-fns/differenceInSeconds/package.json | 5 + .../date-fns/differenceInWeeks/index.d.ts | 4 + .../date-fns/differenceInWeeks/index.js | 63 + .../date-fns/differenceInWeeks/index.js.flow | 58 + .../date-fns/differenceInWeeks/package.json | 5 + .../date-fns/differenceInYears/index.d.ts | 4 + .../date-fns/differenceInYears/index.js | 54 + .../date-fns/differenceInYears/index.js.flow | 55 + .../date-fns/differenceInYears/package.json | 5 + node_modules/date-fns/docs/.eslintrc.js | 5 + node_modules/date-fns/docs/Day.js | 15 + node_modules/date-fns/docs/Duration.js | 19 + node_modules/date-fns/docs/Interval.js | 16 + node_modules/date-fns/docs/Locale.js | 88 + node_modules/date-fns/docs/constants.md | 47 + node_modules/date-fns/docs/esm.md | 24 + node_modules/date-fns/docs/fp.md | 70 + node_modules/date-fns/docs/gettingStarted.md | 87 + node_modules/date-fns/docs/i18n.md | 92 + .../date-fns/docs/i18nContributionGuide.md | 921 + node_modules/date-fns/docs/index.js | 147 + node_modules/date-fns/docs/logo.svg | 26 + node_modules/date-fns/docs/logotype.svg | 1 + node_modules/date-fns/docs/release.md | 19 + node_modules/date-fns/docs/timeZones.md | 63 + node_modules/date-fns/docs/unicodeTokens.md | 54 + node_modules/date-fns/docs/upgradeGuide.md | 118 + node_modules/date-fns/docs/webpack.md | 48 + .../date-fns/eachDayOfInterval/index.d.ts | 4 + .../date-fns/eachDayOfInterval/index.js | 73 + .../date-fns/eachDayOfInterval/index.js.flow | 57 + .../date-fns/eachDayOfInterval/package.json | 5 + .../date-fns/eachHourOfInterval/index.d.ts | 4 + .../date-fns/eachHourOfInterval/index.js | 74 + .../date-fns/eachHourOfInterval/index.js.flow | 57 + .../date-fns/eachHourOfInterval/package.json | 5 + .../date-fns/eachMinuteOfInterval/index.d.ts | 4 + .../date-fns/eachMinuteOfInterval/index.js | 74 + .../eachMinuteOfInterval/index.js.flow | 57 + .../eachMinuteOfInterval/package.json | 5 + .../date-fns/eachMonthOfInterval/index.d.ts | 4 + .../date-fns/eachMonthOfInterval/index.js | 68 + .../eachMonthOfInterval/index.js.flow | 52 + .../date-fns/eachMonthOfInterval/package.json | 5 + .../date-fns/eachQuarterOfInterval/index.d.ts | 4 + .../date-fns/eachQuarterOfInterval/index.js | 69 + .../eachQuarterOfInterval/index.js.flow | 52 + .../eachQuarterOfInterval/package.json | 5 + .../date-fns/eachWeekOfInterval/index.d.ts | 4 + .../date-fns/eachWeekOfInterval/index.js | 83 + .../date-fns/eachWeekOfInterval/index.js.flow | 58 + .../date-fns/eachWeekOfInterval/package.json | 5 + .../date-fns/eachWeekendOfInterval/index.d.ts | 4 + .../date-fns/eachWeekendOfInterval/index.js | 63 + .../eachWeekendOfInterval/index.js.flow | 52 + .../eachWeekendOfInterval/package.json | 5 + .../date-fns/eachWeekendOfMonth/index.d.ts | 4 + .../date-fns/eachWeekendOfMonth/index.js | 56 + .../date-fns/eachWeekendOfMonth/index.js.flow | 52 + .../date-fns/eachWeekendOfMonth/package.json | 5 + .../date-fns/eachWeekendOfYear/index.d.ts | 4 + .../date-fns/eachWeekendOfYear/index.js | 52 + .../date-fns/eachWeekendOfYear/index.js.flow | 52 + .../date-fns/eachWeekendOfYear/package.json | 5 + .../date-fns/eachYearOfInterval/index.d.ts | 4 + .../date-fns/eachYearOfInterval/index.js | 65 + .../date-fns/eachYearOfInterval/index.js.flow | 52 + .../date-fns/eachYearOfInterval/package.json | 5 + node_modules/date-fns/endOfDay/index.d.ts | 4 + node_modules/date-fns/endOfDay/index.js | 39 + node_modules/date-fns/endOfDay/index.js.flow | 52 + node_modules/date-fns/endOfDay/package.json | 5 + node_modules/date-fns/endOfDecade/index.d.ts | 4 + node_modules/date-fns/endOfDecade/index.js | 44 + .../date-fns/endOfDecade/index.js.flow | 57 + .../date-fns/endOfDecade/package.json | 5 + node_modules/date-fns/endOfHour/index.d.ts | 4 + node_modules/date-fns/endOfHour/index.js | 39 + node_modules/date-fns/endOfHour/index.js.flow | 52 + node_modules/date-fns/endOfHour/package.json | 5 + node_modules/date-fns/endOfISOWeek/index.d.ts | 4 + node_modules/date-fns/endOfISOWeek/index.js | 41 + .../date-fns/endOfISOWeek/index.js.flow | 52 + .../date-fns/endOfISOWeek/package.json | 5 + .../date-fns/endOfISOWeekYear/index.d.ts | 4 + .../date-fns/endOfISOWeekYear/index.js | 48 + .../date-fns/endOfISOWeekYear/index.js.flow | 52 + .../date-fns/endOfISOWeekYear/package.json | 5 + node_modules/date-fns/endOfMinute/index.d.ts | 4 + node_modules/date-fns/endOfMinute/index.js | 39 + .../date-fns/endOfMinute/index.js.flow | 52 + .../date-fns/endOfMinute/package.json | 5 + node_modules/date-fns/endOfMonth/index.d.ts | 4 + node_modules/date-fns/endOfMonth/index.js | 41 + .../date-fns/endOfMonth/index.js.flow | 52 + node_modules/date-fns/endOfMonth/package.json | 5 + node_modules/date-fns/endOfQuarter/index.d.ts | 4 + node_modules/date-fns/endOfQuarter/index.js | 42 + .../date-fns/endOfQuarter/index.js.flow | 52 + .../date-fns/endOfQuarter/package.json | 5 + node_modules/date-fns/endOfSecond/index.d.ts | 4 + node_modules/date-fns/endOfSecond/index.js | 39 + .../date-fns/endOfSecond/index.js.flow | 52 + .../date-fns/endOfSecond/package.json | 5 + node_modules/date-fns/endOfToday/index.d.ts | 4 + node_modules/date-fns/endOfToday/index.js | 35 + .../date-fns/endOfToday/index.js.flow | 52 + node_modules/date-fns/endOfToday/package.json | 5 + .../date-fns/endOfTomorrow/index.d.ts | 4 + node_modules/date-fns/endOfTomorrow/index.js | 38 + .../date-fns/endOfTomorrow/index.js.flow | 52 + .../date-fns/endOfTomorrow/package.json | 5 + node_modules/date-fns/endOfWeek/index.d.ts | 4 + node_modules/date-fns/endOfWeek/index.js | 64 + node_modules/date-fns/endOfWeek/index.js.flow | 58 + node_modules/date-fns/endOfWeek/package.json | 5 + node_modules/date-fns/endOfYear/index.d.ts | 4 + node_modules/date-fns/endOfYear/index.js | 41 + node_modules/date-fns/endOfYear/index.js.flow | 52 + node_modules/date-fns/endOfYear/package.json | 5 + .../date-fns/endOfYesterday/index.d.ts | 4 + node_modules/date-fns/endOfYesterday/index.js | 38 + .../date-fns/endOfYesterday/index.js.flow | 52 + .../date-fns/endOfYesterday/package.json | 5 + .../esm/_lib/addLeadingZeros/index.js | 10 + .../date-fns/esm/_lib/assign/index.js | 14 + .../date-fns/esm/_lib/cloneObject/index.js | 4 + .../date-fns/esm/_lib/defaultLocale/index.js | 2 + .../date-fns/esm/_lib/defaultOptions/index.js | 7 + .../esm/_lib/format/formatters/index.js | 866 + .../esm/_lib/format/lightFormatters/index.js | 84 + .../esm/_lib/format/longFormatters/index.js | 96 + .../getTimezoneOffsetInMilliseconds/index.js | 16 + .../esm/_lib/getUTCDayOfYear/index.js | 13 + .../date-fns/esm/_lib/getUTCISOWeek/index.js | 14 + .../esm/_lib/getUTCISOWeekYear/index.js | 24 + .../date-fns/esm/_lib/getUTCWeek/index.js | 14 + .../date-fns/esm/_lib/getUTCWeekYear/index.js | 35 + .../date-fns/esm/_lib/isSameUTCWeek/index.js | 8 + .../esm/_lib/protectedTokens/index.js | 19 + .../date-fns/esm/_lib/requiredArgs/index.js | 5 + .../esm/_lib/roundingMethods/index.js | 13 + .../date-fns/esm/_lib/setUTCDay/index.js | 24 + .../date-fns/esm/_lib/setUTCISODay/index.js | 20 + .../date-fns/esm/_lib/setUTCISOWeek/index.js | 12 + .../date-fns/esm/_lib/setUTCWeek/index.js | 12 + .../esm/_lib/startOfUTCISOWeek/index.js | 12 + .../esm/_lib/startOfUTCISOWeekYear/index.js | 12 + .../date-fns/esm/_lib/startOfUTCWeek/index.js | 22 + .../esm/_lib/startOfUTCWeekYear/index.js | 18 + node_modules/date-fns/esm/_lib/test/index.js | 25 + .../date-fns/esm/_lib/toInteger/index.js | 13 + node_modules/date-fns/esm/add/index.d.ts | 4 + node_modules/date-fns/esm/add/index.js | 69 + node_modules/date-fns/esm/add/index.js.flow | 52 + node_modules/date-fns/esm/add/package.json | 4 + .../date-fns/esm/addBusinessDays/index.d.ts | 4 + .../date-fns/esm/addBusinessDays/index.js | 57 + .../esm/addBusinessDays/index.js.flow | 52 + .../date-fns/esm/addBusinessDays/package.json | 4 + node_modules/date-fns/esm/addDays/index.d.ts | 4 + node_modules/date-fns/esm/addDays/index.js | 39 + .../date-fns/esm/addDays/index.js.flow | 52 + .../date-fns/esm/addDays/package.json | 4 + node_modules/date-fns/esm/addHours/index.d.ts | 4 + node_modules/date-fns/esm/addHours/index.js | 28 + .../date-fns/esm/addHours/index.js.flow | 52 + .../date-fns/esm/addHours/package.json | 4 + .../date-fns/esm/addISOWeekYears/index.d.ts | 4 + .../date-fns/esm/addISOWeekYears/index.js | 30 + .../esm/addISOWeekYears/index.js.flow | 52 + .../date-fns/esm/addISOWeekYears/package.json | 4 + .../date-fns/esm/addMilliseconds/index.d.ts | 4 + .../date-fns/esm/addMilliseconds/index.js | 28 + .../esm/addMilliseconds/index.js.flow | 52 + .../date-fns/esm/addMilliseconds/package.json | 4 + .../date-fns/esm/addMinutes/index.d.ts | 4 + node_modules/date-fns/esm/addMinutes/index.js | 28 + .../date-fns/esm/addMinutes/index.js.flow | 52 + .../date-fns/esm/addMinutes/package.json | 4 + .../date-fns/esm/addMonths/index.d.ts | 4 + node_modules/date-fns/esm/addMonths/index.js | 65 + .../date-fns/esm/addMonths/index.js.flow | 52 + .../date-fns/esm/addMonths/package.json | 4 + .../date-fns/esm/addQuarters/index.d.ts | 4 + .../date-fns/esm/addQuarters/index.js | 28 + .../date-fns/esm/addQuarters/index.js.flow | 52 + .../date-fns/esm/addQuarters/package.json | 4 + .../date-fns/esm/addSeconds/index.d.ts | 4 + node_modules/date-fns/esm/addSeconds/index.js | 27 + .../date-fns/esm/addSeconds/index.js.flow | 52 + .../date-fns/esm/addSeconds/package.json | 4 + node_modules/date-fns/esm/addWeeks/index.d.ts | 4 + node_modules/date-fns/esm/addWeeks/index.js | 28 + .../date-fns/esm/addWeeks/index.js.flow | 52 + .../date-fns/esm/addWeeks/package.json | 4 + node_modules/date-fns/esm/addYears/index.d.ts | 4 + node_modules/date-fns/esm/addYears/index.js | 27 + .../date-fns/esm/addYears/index.js.flow | 52 + .../date-fns/esm/addYears/package.json | 4 + .../esm/areIntervalsOverlapping/index.d.ts | 4 + .../esm/areIntervalsOverlapping/index.js | 75 + .../esm/areIntervalsOverlapping/index.js.flow | 58 + .../esm/areIntervalsOverlapping/package.json | 4 + node_modules/date-fns/esm/clamp/index.d.ts | 4 + node_modules/date-fns/esm/clamp/index.js | 36 + node_modules/date-fns/esm/clamp/index.js.flow | 52 + node_modules/date-fns/esm/clamp/package.json | 4 + .../date-fns/esm/closestIndexTo/index.d.ts | 4 + .../date-fns/esm/closestIndexTo/index.js | 62 + .../date-fns/esm/closestIndexTo/index.js.flow | 55 + .../date-fns/esm/closestIndexTo/package.json | 4 + .../date-fns/esm/closestTo/index.d.ts | 4 + node_modules/date-fns/esm/closestTo/index.js | 60 + .../date-fns/esm/closestTo/index.js.flow | 55 + .../date-fns/esm/closestTo/package.json | 4 + .../date-fns/esm/compareAsc/index.d.ts | 4 + node_modules/date-fns/esm/compareAsc/index.js | 49 + .../date-fns/esm/compareAsc/index.js.flow | 55 + .../date-fns/esm/compareAsc/package.json | 4 + .../date-fns/esm/compareDesc/index.d.ts | 4 + .../date-fns/esm/compareDesc/index.js | 49 + .../date-fns/esm/compareDesc/index.js.flow | 55 + .../date-fns/esm/compareDesc/package.json | 4 + .../date-fns/esm/constants/index.d.ts | 20 + node_modules/date-fns/esm/constants/index.js | 183 + .../date-fns/esm/constants/index.js.flow | 14 + .../date-fns/esm/daysToWeeks/index.d.ts | 4 + .../date-fns/esm/daysToWeeks/index.js | 31 + .../date-fns/esm/daysToWeeks/index.js.flow | 52 + .../date-fns/esm/daysToWeeks/package.json | 4 + .../esm/differenceInBusinessDays/index.d.ts | 4 + .../esm/differenceInBusinessDays/index.js | 77 + .../differenceInBusinessDays/index.js.flow | 55 + .../esm/differenceInBusinessDays/package.json | 4 + .../esm/differenceInCalendarDays/index.d.ts | 4 + .../esm/differenceInCalendarDays/index.js | 46 + .../differenceInCalendarDays/index.js.flow | 55 + .../esm/differenceInCalendarDays/package.json | 4 + .../index.d.ts | 4 + .../differenceInCalendarISOWeekYears/index.js | 30 + .../index.js.flow | 55 + .../package.json | 4 + .../differenceInCalendarISOWeeks/index.d.ts | 4 + .../esm/differenceInCalendarISOWeeks/index.js | 39 + .../index.js.flow | 55 + .../differenceInCalendarISOWeeks/package.json | 4 + .../esm/differenceInCalendarMonths/index.d.ts | 4 + .../esm/differenceInCalendarMonths/index.js | 32 + .../differenceInCalendarMonths/index.js.flow | 55 + .../differenceInCalendarMonths/package.json | 4 + .../differenceInCalendarQuarters/index.d.ts | 4 + .../esm/differenceInCalendarQuarters/index.js | 33 + .../index.js.flow | 55 + .../differenceInCalendarQuarters/package.json | 4 + .../esm/differenceInCalendarWeeks/index.d.ts | 4 + .../esm/differenceInCalendarWeeks/index.js | 51 + .../differenceInCalendarWeeks/index.js.flow | 59 + .../differenceInCalendarWeeks/package.json | 4 + .../esm/differenceInCalendarYears/index.d.ts | 4 + .../esm/differenceInCalendarYears/index.js | 30 + .../differenceInCalendarYears/index.js.flow | 55 + .../differenceInCalendarYears/package.json | 4 + .../date-fns/esm/differenceInDays/index.d.ts | 4 + .../date-fns/esm/differenceInDays/index.js | 83 + .../esm/differenceInDays/index.js.flow | 55 + .../esm/differenceInDays/package.json | 4 + .../date-fns/esm/differenceInHours/index.d.ts | 4 + .../date-fns/esm/differenceInHours/index.js | 33 + .../esm/differenceInHours/index.js.flow | 58 + .../esm/differenceInHours/package.json | 4 + .../esm/differenceInISOWeekYears/index.d.ts | 4 + .../esm/differenceInISOWeekYears/index.js | 44 + .../differenceInISOWeekYears/index.js.flow | 55 + .../esm/differenceInISOWeekYears/package.json | 4 + .../esm/differenceInMilliseconds/index.d.ts | 4 + .../esm/differenceInMilliseconds/index.js | 29 + .../differenceInMilliseconds/index.js.flow | 55 + .../esm/differenceInMilliseconds/package.json | 4 + .../esm/differenceInMinutes/index.d.ts | 4 + .../date-fns/esm/differenceInMinutes/index.js | 41 + .../esm/differenceInMinutes/index.js.flow | 58 + .../esm/differenceInMinutes/package.json | 4 + .../esm/differenceInMonths/index.d.ts | 4 + .../date-fns/esm/differenceInMonths/index.js | 56 + .../esm/differenceInMonths/index.js.flow | 55 + .../esm/differenceInMonths/package.json | 4 + .../esm/differenceInQuarters/index.d.ts | 4 + .../esm/differenceInQuarters/index.js | 29 + .../esm/differenceInQuarters/index.js.flow | 58 + .../esm/differenceInQuarters/package.json | 4 + .../esm/differenceInSeconds/index.d.ts | 4 + .../date-fns/esm/differenceInSeconds/index.js | 33 + .../esm/differenceInSeconds/index.js.flow | 58 + .../esm/differenceInSeconds/package.json | 4 + .../date-fns/esm/differenceInWeeks/index.d.ts | 4 + .../date-fns/esm/differenceInWeeks/index.js | 50 + .../esm/differenceInWeeks/index.js.flow | 58 + .../esm/differenceInWeeks/package.json | 4 + .../date-fns/esm/differenceInYears/index.d.ts | 4 + .../date-fns/esm/differenceInYears/index.js | 40 + .../esm/differenceInYears/index.js.flow | 55 + .../esm/differenceInYears/package.json | 4 + .../date-fns/esm/eachDayOfInterval/index.d.ts | 4 + .../date-fns/esm/eachDayOfInterval/index.js | 61 + .../esm/eachDayOfInterval/index.js.flow | 57 + .../esm/eachDayOfInterval/package.json | 4 + .../esm/eachHourOfInterval/index.d.ts | 4 + .../date-fns/esm/eachHourOfInterval/index.js | 61 + .../esm/eachHourOfInterval/index.js.flow | 57 + .../esm/eachHourOfInterval/package.json | 4 + .../esm/eachMinuteOfInterval/index.d.ts | 4 + .../esm/eachMinuteOfInterval/index.js | 60 + .../esm/eachMinuteOfInterval/index.js.flow | 57 + .../esm/eachMinuteOfInterval/package.json | 4 + .../esm/eachMonthOfInterval/index.d.ts | 4 + .../date-fns/esm/eachMonthOfInterval/index.js | 56 + .../esm/eachMonthOfInterval/index.js.flow | 52 + .../esm/eachMonthOfInterval/package.json | 4 + .../esm/eachQuarterOfInterval/index.d.ts | 4 + .../esm/eachQuarterOfInterval/index.js | 55 + .../esm/eachQuarterOfInterval/index.js.flow | 52 + .../esm/eachQuarterOfInterval/package.json | 4 + .../esm/eachWeekOfInterval/index.d.ts | 4 + .../date-fns/esm/eachWeekOfInterval/index.js | 69 + .../esm/eachWeekOfInterval/index.js.flow | 58 + .../esm/eachWeekOfInterval/package.json | 4 + .../esm/eachWeekendOfInterval/index.d.ts | 4 + .../esm/eachWeekendOfInterval/index.js | 49 + .../esm/eachWeekendOfInterval/index.js.flow | 52 + .../esm/eachWeekendOfInterval/package.json | 4 + .../esm/eachWeekendOfMonth/index.d.ts | 4 + .../date-fns/esm/eachWeekendOfMonth/index.js | 42 + .../esm/eachWeekendOfMonth/index.js.flow | 52 + .../esm/eachWeekendOfMonth/package.json | 4 + .../date-fns/esm/eachWeekendOfYear/index.d.ts | 4 + .../date-fns/esm/eachWeekendOfYear/index.js | 38 + .../esm/eachWeekendOfYear/index.js.flow | 52 + .../esm/eachWeekendOfYear/package.json | 4 + .../esm/eachYearOfInterval/index.d.ts | 4 + .../date-fns/esm/eachYearOfInterval/index.js | 53 + .../esm/eachYearOfInterval/index.js.flow | 52 + .../esm/eachYearOfInterval/package.json | 4 + node_modules/date-fns/esm/endOfDay/index.d.ts | 4 + node_modules/date-fns/esm/endOfDay/index.js | 27 + .../date-fns/esm/endOfDay/index.js.flow | 52 + .../date-fns/esm/endOfDay/package.json | 4 + .../date-fns/esm/endOfDecade/index.d.ts | 4 + .../date-fns/esm/endOfDecade/index.js | 32 + .../date-fns/esm/endOfDecade/index.js.flow | 57 + .../date-fns/esm/endOfDecade/package.json | 4 + .../date-fns/esm/endOfHour/index.d.ts | 4 + node_modules/date-fns/esm/endOfHour/index.js | 27 + .../date-fns/esm/endOfHour/index.js.flow | 52 + .../date-fns/esm/endOfHour/package.json | 4 + .../date-fns/esm/endOfISOWeek/index.d.ts | 4 + .../date-fns/esm/endOfISOWeek/index.js | 29 + .../date-fns/esm/endOfISOWeek/index.js.flow | 52 + .../date-fns/esm/endOfISOWeek/package.json | 4 + .../date-fns/esm/endOfISOWeekYear/index.d.ts | 4 + .../date-fns/esm/endOfISOWeekYear/index.js | 35 + .../esm/endOfISOWeekYear/index.js.flow | 52 + .../esm/endOfISOWeekYear/package.json | 4 + .../date-fns/esm/endOfMinute/index.d.ts | 4 + .../date-fns/esm/endOfMinute/index.js | 27 + .../date-fns/esm/endOfMinute/index.js.flow | 52 + .../date-fns/esm/endOfMinute/package.json | 4 + .../date-fns/esm/endOfMonth/index.d.ts | 4 + node_modules/date-fns/esm/endOfMonth/index.js | 29 + .../date-fns/esm/endOfMonth/index.js.flow | 52 + .../date-fns/esm/endOfMonth/package.json | 4 + .../date-fns/esm/endOfQuarter/index.d.ts | 4 + .../date-fns/esm/endOfQuarter/index.js | 30 + .../date-fns/esm/endOfQuarter/index.js.flow | 52 + .../date-fns/esm/endOfQuarter/package.json | 4 + .../date-fns/esm/endOfSecond/index.d.ts | 4 + .../date-fns/esm/endOfSecond/index.js | 27 + .../date-fns/esm/endOfSecond/index.js.flow | 52 + .../date-fns/esm/endOfSecond/package.json | 4 + .../date-fns/esm/endOfToday/index.d.ts | 4 + node_modules/date-fns/esm/endOfToday/index.js | 24 + .../date-fns/esm/endOfToday/index.js.flow | 52 + .../date-fns/esm/endOfToday/package.json | 4 + .../date-fns/esm/endOfTomorrow/index.d.ts | 4 + .../date-fns/esm/endOfTomorrow/index.js | 29 + .../date-fns/esm/endOfTomorrow/index.js.flow | 52 + .../date-fns/esm/endOfTomorrow/package.json | 4 + .../date-fns/esm/endOfWeek/index.d.ts | 4 + node_modules/date-fns/esm/endOfWeek/index.js | 50 + .../date-fns/esm/endOfWeek/index.js.flow | 58 + .../date-fns/esm/endOfWeek/package.json | 4 + .../date-fns/esm/endOfYear/index.d.ts | 4 + node_modules/date-fns/esm/endOfYear/index.js | 29 + .../date-fns/esm/endOfYear/index.js.flow | 52 + .../date-fns/esm/endOfYear/package.json | 4 + .../date-fns/esm/endOfYesterday/index.d.ts | 4 + .../date-fns/esm/endOfYesterday/index.js | 29 + .../date-fns/esm/endOfYesterday/index.js.flow | 52 + .../date-fns/esm/endOfYesterday/package.json | 4 + node_modules/date-fns/esm/format/index.d.ts | 4 + node_modules/date-fns/esm/format/index.js | 418 + .../date-fns/esm/format/index.js.flow | 62 + node_modules/date-fns/esm/format/package.json | 4 + .../date-fns/esm/formatDistance/index.d.ts | 4 + .../date-fns/esm/formatDistance/index.js | 190 + .../date-fns/esm/formatDistance/index.js.flow | 60 + .../date-fns/esm/formatDistance/package.json | 4 + .../esm/formatDistanceStrict/index.d.ts | 4 + .../esm/formatDistanceStrict/index.js | 189 + .../esm/formatDistanceStrict/index.js.flow | 61 + .../esm/formatDistanceStrict/package.json | 4 + .../esm/formatDistanceToNow/index.d.ts | 4 + .../date-fns/esm/formatDistanceToNow/index.js | 93 + .../esm/formatDistanceToNow/index.js.flow | 59 + .../esm/formatDistanceToNow/package.json | 4 + .../esm/formatDistanceToNowStrict/index.d.ts | 4 + .../esm/formatDistanceToNowStrict/index.js | 81 + .../formatDistanceToNowStrict/index.js.flow | 60 + .../formatDistanceToNowStrict/package.json | 4 + .../date-fns/esm/formatDuration/index.d.ts | 4 + .../date-fns/esm/formatDuration/index.js | 97 + .../date-fns/esm/formatDuration/index.js.flow | 60 + .../date-fns/esm/formatDuration/package.json | 4 + .../date-fns/esm/formatISO/index.d.ts | 4 + node_modules/date-fns/esm/formatISO/index.js | 105 + .../date-fns/esm/formatISO/index.js.flow | 58 + .../date-fns/esm/formatISO/package.json | 4 + .../date-fns/esm/formatISO9075/index.d.ts | 4 + .../date-fns/esm/formatISO9075/index.js | 91 + .../date-fns/esm/formatISO9075/index.js.flow | 58 + .../date-fns/esm/formatISO9075/package.json | 4 + .../date-fns/esm/formatISODuration/index.d.ts | 4 + .../date-fns/esm/formatISODuration/index.js | 47 + .../esm/formatISODuration/index.js.flow | 52 + .../esm/formatISODuration/package.json | 4 + .../date-fns/esm/formatRFC3339/index.d.ts | 4 + .../date-fns/esm/formatRFC3339/index.js | 85 + .../date-fns/esm/formatRFC3339/index.js.flow | 57 + .../date-fns/esm/formatRFC3339/package.json | 4 + .../date-fns/esm/formatRFC7231/index.d.ts | 4 + .../date-fns/esm/formatRFC7231/index.js | 46 + .../date-fns/esm/formatRFC7231/index.js.flow | 52 + .../date-fns/esm/formatRFC7231/package.json | 4 + .../date-fns/esm/formatRelative/index.d.ts | 4 + .../date-fns/esm/formatRelative/index.js | 103 + .../date-fns/esm/formatRelative/index.js.flow | 59 + .../date-fns/esm/formatRelative/package.json | 4 + .../date-fns/esm/fp/_lib/convertToFP/index.js | 15 + node_modules/date-fns/esm/fp/add/index.d.ts | 4 + node_modules/date-fns/esm/fp/add/index.js | 4 + .../date-fns/esm/fp/add/index.js.flow | 58 + node_modules/date-fns/esm/fp/add/package.json | 4 + .../esm/fp/addBusinessDays/index.d.ts | 4 + .../date-fns/esm/fp/addBusinessDays/index.js | 4 + .../esm/fp/addBusinessDays/index.js.flow | 58 + .../esm/fp/addBusinessDays/package.json | 4 + .../date-fns/esm/fp/addDays/index.d.ts | 4 + node_modules/date-fns/esm/fp/addDays/index.js | 4 + .../date-fns/esm/fp/addDays/index.js.flow | 58 + .../date-fns/esm/fp/addDays/package.json | 4 + .../date-fns/esm/fp/addHours/index.d.ts | 4 + .../date-fns/esm/fp/addHours/index.js | 4 + .../date-fns/esm/fp/addHours/index.js.flow | 58 + .../date-fns/esm/fp/addHours/package.json | 4 + .../esm/fp/addISOWeekYears/index.d.ts | 4 + .../date-fns/esm/fp/addISOWeekYears/index.js | 4 + .../esm/fp/addISOWeekYears/index.js.flow | 58 + .../esm/fp/addISOWeekYears/package.json | 4 + .../esm/fp/addMilliseconds/index.d.ts | 4 + .../date-fns/esm/fp/addMilliseconds/index.js | 4 + .../esm/fp/addMilliseconds/index.js.flow | 58 + .../esm/fp/addMilliseconds/package.json | 4 + .../date-fns/esm/fp/addMinutes/index.d.ts | 4 + .../date-fns/esm/fp/addMinutes/index.js | 4 + .../date-fns/esm/fp/addMinutes/index.js.flow | 58 + .../date-fns/esm/fp/addMinutes/package.json | 4 + .../date-fns/esm/fp/addMonths/index.d.ts | 4 + .../date-fns/esm/fp/addMonths/index.js | 4 + .../date-fns/esm/fp/addMonths/index.js.flow | 58 + .../date-fns/esm/fp/addMonths/package.json | 4 + .../date-fns/esm/fp/addQuarters/index.d.ts | 4 + .../date-fns/esm/fp/addQuarters/index.js | 4 + .../date-fns/esm/fp/addQuarters/index.js.flow | 58 + .../date-fns/esm/fp/addQuarters/package.json | 4 + .../date-fns/esm/fp/addSeconds/index.d.ts | 4 + .../date-fns/esm/fp/addSeconds/index.js | 4 + .../date-fns/esm/fp/addSeconds/index.js.flow | 58 + .../date-fns/esm/fp/addSeconds/package.json | 4 + .../date-fns/esm/fp/addWeeks/index.d.ts | 4 + .../date-fns/esm/fp/addWeeks/index.js | 4 + .../date-fns/esm/fp/addWeeks/index.js.flow | 58 + .../date-fns/esm/fp/addWeeks/package.json | 4 + .../date-fns/esm/fp/addYears/index.d.ts | 4 + .../date-fns/esm/fp/addYears/index.js | 4 + .../date-fns/esm/fp/addYears/index.js.flow | 58 + .../date-fns/esm/fp/addYears/package.json | 4 + .../esm/fp/areIntervalsOverlapping/index.d.ts | 4 + .../esm/fp/areIntervalsOverlapping/index.js | 4 + .../fp/areIntervalsOverlapping/index.js.flow | 58 + .../fp/areIntervalsOverlapping/package.json | 4 + .../index.d.ts | 4 + .../index.js | 4 + .../index.js.flow | 74 + .../package.json | 4 + node_modules/date-fns/esm/fp/clamp/index.d.ts | 4 + node_modules/date-fns/esm/fp/clamp/index.js | 4 + .../date-fns/esm/fp/clamp/index.js.flow | 58 + .../date-fns/esm/fp/clamp/package.json | 4 + .../date-fns/esm/fp/closestIndexTo/index.d.ts | 4 + .../date-fns/esm/fp/closestIndexTo/index.js | 4 + .../esm/fp/closestIndexTo/index.js.flow | 58 + .../esm/fp/closestIndexTo/package.json | 4 + .../date-fns/esm/fp/closestTo/index.d.ts | 4 + .../date-fns/esm/fp/closestTo/index.js | 4 + .../date-fns/esm/fp/closestTo/index.js.flow | 58 + .../date-fns/esm/fp/closestTo/package.json | 4 + .../date-fns/esm/fp/compareAsc/index.d.ts | 4 + .../date-fns/esm/fp/compareAsc/index.js | 4 + .../date-fns/esm/fp/compareAsc/index.js.flow | 58 + .../date-fns/esm/fp/compareAsc/package.json | 4 + .../date-fns/esm/fp/compareDesc/index.d.ts | 4 + .../date-fns/esm/fp/compareDesc/index.js | 4 + .../date-fns/esm/fp/compareDesc/index.js.flow | 58 + .../date-fns/esm/fp/compareDesc/package.json | 4 + .../date-fns/esm/fp/daysToWeeks/index.d.ts | 4 + .../date-fns/esm/fp/daysToWeeks/index.js | 4 + .../date-fns/esm/fp/daysToWeeks/index.js.flow | 54 + .../date-fns/esm/fp/daysToWeeks/package.json | 4 + .../fp/differenceInBusinessDays/index.d.ts | 4 + .../esm/fp/differenceInBusinessDays/index.js | 4 + .../fp/differenceInBusinessDays/index.js.flow | 58 + .../fp/differenceInBusinessDays/package.json | 4 + .../fp/differenceInCalendarDays/index.d.ts | 4 + .../esm/fp/differenceInCalendarDays/index.js | 4 + .../fp/differenceInCalendarDays/index.js.flow | 58 + .../fp/differenceInCalendarDays/package.json | 4 + .../index.d.ts | 4 + .../differenceInCalendarISOWeekYears/index.js | 4 + .../index.js.flow | 58 + .../package.json | 4 + .../differenceInCalendarISOWeeks/index.d.ts | 4 + .../fp/differenceInCalendarISOWeeks/index.js | 4 + .../index.js.flow | 58 + .../differenceInCalendarISOWeeks/package.json | 4 + .../fp/differenceInCalendarMonths/index.d.ts | 4 + .../fp/differenceInCalendarMonths/index.js | 4 + .../differenceInCalendarMonths/index.js.flow | 58 + .../differenceInCalendarMonths/package.json | 4 + .../differenceInCalendarQuarters/index.d.ts | 4 + .../fp/differenceInCalendarQuarters/index.js | 4 + .../index.js.flow | 58 + .../differenceInCalendarQuarters/package.json | 4 + .../fp/differenceInCalendarWeeks/index.d.ts | 4 + .../esm/fp/differenceInCalendarWeeks/index.js | 4 + .../differenceInCalendarWeeks/index.js.flow | 58 + .../fp/differenceInCalendarWeeks/package.json | 4 + .../index.d.ts | 4 + .../index.js | 4 + .../index.js.flow | 75 + .../package.json | 4 + .../fp/differenceInCalendarYears/index.d.ts | 4 + .../esm/fp/differenceInCalendarYears/index.js | 4 + .../differenceInCalendarYears/index.js.flow | 58 + .../fp/differenceInCalendarYears/package.json | 4 + .../esm/fp/differenceInDays/index.d.ts | 4 + .../date-fns/esm/fp/differenceInDays/index.js | 4 + .../esm/fp/differenceInDays/index.js.flow | 58 + .../esm/fp/differenceInDays/package.json | 4 + .../esm/fp/differenceInHours/index.d.ts | 4 + .../esm/fp/differenceInHours/index.js | 4 + .../esm/fp/differenceInHours/index.js.flow | 58 + .../esm/fp/differenceInHours/package.json | 4 + .../differenceInHoursWithOptions/index.d.ts | 4 + .../fp/differenceInHoursWithOptions/index.js | 4 + .../index.js.flow | 74 + .../differenceInHoursWithOptions/package.json | 4 + .../fp/differenceInISOWeekYears/index.d.ts | 4 + .../esm/fp/differenceInISOWeekYears/index.js | 4 + .../fp/differenceInISOWeekYears/index.js.flow | 58 + .../fp/differenceInISOWeekYears/package.json | 4 + .../fp/differenceInMilliseconds/index.d.ts | 4 + .../esm/fp/differenceInMilliseconds/index.js | 4 + .../fp/differenceInMilliseconds/index.js.flow | 58 + .../fp/differenceInMilliseconds/package.json | 4 + .../esm/fp/differenceInMinutes/index.d.ts | 4 + .../esm/fp/differenceInMinutes/index.js | 4 + .../esm/fp/differenceInMinutes/index.js.flow | 58 + .../esm/fp/differenceInMinutes/package.json | 4 + .../differenceInMinutesWithOptions/index.d.ts | 4 + .../differenceInMinutesWithOptions/index.js | 4 + .../index.js.flow | 74 + .../package.json | 4 + .../esm/fp/differenceInMonths/index.d.ts | 4 + .../esm/fp/differenceInMonths/index.js | 4 + .../esm/fp/differenceInMonths/index.js.flow | 58 + .../esm/fp/differenceInMonths/package.json | 4 + .../esm/fp/differenceInQuarters/index.d.ts | 4 + .../esm/fp/differenceInQuarters/index.js | 4 + .../esm/fp/differenceInQuarters/index.js.flow | 58 + .../esm/fp/differenceInQuarters/package.json | 4 + .../index.d.ts | 4 + .../differenceInQuartersWithOptions/index.js | 4 + .../index.js.flow | 74 + .../package.json | 4 + .../esm/fp/differenceInSeconds/index.d.ts | 4 + .../esm/fp/differenceInSeconds/index.js | 4 + .../esm/fp/differenceInSeconds/index.js.flow | 58 + .../esm/fp/differenceInSeconds/package.json | 4 + .../differenceInSecondsWithOptions/index.d.ts | 4 + .../differenceInSecondsWithOptions/index.js | 4 + .../index.js.flow | 74 + .../package.json | 4 + .../esm/fp/differenceInWeeks/index.d.ts | 4 + .../esm/fp/differenceInWeeks/index.js | 4 + .../esm/fp/differenceInWeeks/index.js.flow | 58 + .../esm/fp/differenceInWeeks/package.json | 4 + .../differenceInWeeksWithOptions/index.d.ts | 4 + .../fp/differenceInWeeksWithOptions/index.js | 4 + .../index.js.flow | 74 + .../differenceInWeeksWithOptions/package.json | 4 + .../esm/fp/differenceInYears/index.d.ts | 4 + .../esm/fp/differenceInYears/index.js | 4 + .../esm/fp/differenceInYears/index.js.flow | 58 + .../esm/fp/differenceInYears/package.json | 4 + .../esm/fp/eachDayOfInterval/index.d.ts | 4 + .../esm/fp/eachDayOfInterval/index.js | 4 + .../esm/fp/eachDayOfInterval/index.js.flow | 54 + .../esm/fp/eachDayOfInterval/package.json | 4 + .../eachDayOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachDayOfIntervalWithOptions/index.js | 4 + .../index.js.flow | 64 + .../eachDayOfIntervalWithOptions/package.json | 4 + .../esm/fp/eachHourOfInterval/index.d.ts | 4 + .../esm/fp/eachHourOfInterval/index.js | 4 + .../esm/fp/eachHourOfInterval/index.js.flow | 54 + .../esm/fp/eachHourOfInterval/package.json | 4 + .../eachHourOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachHourOfIntervalWithOptions/index.js | 4 + .../index.js.flow | 64 + .../package.json | 4 + .../esm/fp/eachMinuteOfInterval/index.d.ts | 4 + .../esm/fp/eachMinuteOfInterval/index.js | 4 + .../esm/fp/eachMinuteOfInterval/index.js.flow | 54 + .../esm/fp/eachMinuteOfInterval/package.json | 4 + .../index.d.ts | 4 + .../eachMinuteOfIntervalWithOptions/index.js | 4 + .../index.js.flow | 64 + .../package.json | 4 + .../esm/fp/eachMonthOfInterval/index.d.ts | 4 + .../esm/fp/eachMonthOfInterval/index.js | 4 + .../esm/fp/eachMonthOfInterval/index.js.flow | 54 + .../esm/fp/eachMonthOfInterval/package.json | 4 + .../esm/fp/eachQuarterOfInterval/index.d.ts | 4 + .../esm/fp/eachQuarterOfInterval/index.js | 4 + .../fp/eachQuarterOfInterval/index.js.flow | 54 + .../esm/fp/eachQuarterOfInterval/package.json | 4 + .../esm/fp/eachWeekOfInterval/index.d.ts | 4 + .../esm/fp/eachWeekOfInterval/index.js | 4 + .../esm/fp/eachWeekOfInterval/index.js.flow | 54 + .../esm/fp/eachWeekOfInterval/package.json | 4 + .../eachWeekOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachWeekOfIntervalWithOptions/index.js | 4 + .../index.js.flow | 65 + .../package.json | 4 + .../esm/fp/eachWeekendOfInterval/index.d.ts | 4 + .../esm/fp/eachWeekendOfInterval/index.js | 4 + .../fp/eachWeekendOfInterval/index.js.flow | 54 + .../esm/fp/eachWeekendOfInterval/package.json | 4 + .../esm/fp/eachWeekendOfMonth/index.d.ts | 4 + .../esm/fp/eachWeekendOfMonth/index.js | 4 + .../esm/fp/eachWeekendOfMonth/index.js.flow | 54 + .../esm/fp/eachWeekendOfMonth/package.json | 4 + .../esm/fp/eachWeekendOfYear/index.d.ts | 4 + .../esm/fp/eachWeekendOfYear/index.js | 4 + .../esm/fp/eachWeekendOfYear/index.js.flow | 54 + .../esm/fp/eachWeekendOfYear/package.json | 4 + .../esm/fp/eachYearOfInterval/index.d.ts | 4 + .../esm/fp/eachYearOfInterval/index.js | 4 + .../esm/fp/eachYearOfInterval/index.js.flow | 54 + .../esm/fp/eachYearOfInterval/package.json | 4 + .../date-fns/esm/fp/endOfDay/index.d.ts | 4 + .../date-fns/esm/fp/endOfDay/index.js | 4 + .../date-fns/esm/fp/endOfDay/index.js.flow | 54 + .../date-fns/esm/fp/endOfDay/package.json | 4 + .../date-fns/esm/fp/endOfDecade/index.d.ts | 4 + .../date-fns/esm/fp/endOfDecade/index.js | 4 + .../date-fns/esm/fp/endOfDecade/index.js.flow | 54 + .../date-fns/esm/fp/endOfDecade/package.json | 4 + .../esm/fp/endOfDecadeWithOptions/index.d.ts | 4 + .../esm/fp/endOfDecadeWithOptions/index.js | 4 + .../fp/endOfDecadeWithOptions/index.js.flow | 64 + .../fp/endOfDecadeWithOptions/package.json | 4 + .../date-fns/esm/fp/endOfHour/index.d.ts | 4 + .../date-fns/esm/fp/endOfHour/index.js | 4 + .../date-fns/esm/fp/endOfHour/index.js.flow | 54 + .../date-fns/esm/fp/endOfHour/package.json | 4 + .../date-fns/esm/fp/endOfISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/endOfISOWeek/index.js | 4 + .../esm/fp/endOfISOWeek/index.js.flow | 54 + .../date-fns/esm/fp/endOfISOWeek/package.json | 4 + .../esm/fp/endOfISOWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/endOfISOWeekYear/index.js | 4 + .../esm/fp/endOfISOWeekYear/index.js.flow | 54 + .../esm/fp/endOfISOWeekYear/package.json | 4 + .../date-fns/esm/fp/endOfMinute/index.d.ts | 4 + .../date-fns/esm/fp/endOfMinute/index.js | 4 + .../date-fns/esm/fp/endOfMinute/index.js.flow | 54 + .../date-fns/esm/fp/endOfMinute/package.json | 4 + .../date-fns/esm/fp/endOfMonth/index.d.ts | 4 + .../date-fns/esm/fp/endOfMonth/index.js | 4 + .../date-fns/esm/fp/endOfMonth/index.js.flow | 54 + .../date-fns/esm/fp/endOfMonth/package.json | 4 + .../date-fns/esm/fp/endOfQuarter/index.d.ts | 4 + .../date-fns/esm/fp/endOfQuarter/index.js | 4 + .../esm/fp/endOfQuarter/index.js.flow | 54 + .../date-fns/esm/fp/endOfQuarter/package.json | 4 + .../date-fns/esm/fp/endOfSecond/index.d.ts | 4 + .../date-fns/esm/fp/endOfSecond/index.js | 4 + .../date-fns/esm/fp/endOfSecond/index.js.flow | 54 + .../date-fns/esm/fp/endOfSecond/package.json | 4 + .../date-fns/esm/fp/endOfWeek/index.d.ts | 4 + .../date-fns/esm/fp/endOfWeek/index.js | 4 + .../date-fns/esm/fp/endOfWeek/index.js.flow | 54 + .../date-fns/esm/fp/endOfWeek/package.json | 4 + .../esm/fp/endOfWeekWithOptions/index.d.ts | 4 + .../esm/fp/endOfWeekWithOptions/index.js | 4 + .../esm/fp/endOfWeekWithOptions/index.js.flow | 65 + .../esm/fp/endOfWeekWithOptions/package.json | 4 + .../date-fns/esm/fp/endOfYear/index.d.ts | 4 + .../date-fns/esm/fp/endOfYear/index.js | 4 + .../date-fns/esm/fp/endOfYear/index.js.flow | 54 + .../date-fns/esm/fp/endOfYear/package.json | 4 + .../date-fns/esm/fp/format/index.d.ts | 4 + node_modules/date-fns/esm/fp/format/index.js | 4 + .../date-fns/esm/fp/format/index.js.flow | 58 + .../date-fns/esm/fp/format/package.json | 4 + .../date-fns/esm/fp/formatDistance/index.d.ts | 4 + .../date-fns/esm/fp/formatDistance/index.js | 4 + .../esm/fp/formatDistance/index.js.flow | 58 + .../esm/fp/formatDistance/package.json | 4 + .../esm/fp/formatDistanceStrict/index.d.ts | 4 + .../esm/fp/formatDistanceStrict/index.js | 4 + .../esm/fp/formatDistanceStrict/index.js.flow | 58 + .../esm/fp/formatDistanceStrict/package.json | 4 + .../index.d.ts | 4 + .../formatDistanceStrictWithOptions/index.js | 4 + .../index.js.flow | 77 + .../package.json | 4 + .../fp/formatDistanceWithOptions/index.d.ts | 4 + .../esm/fp/formatDistanceWithOptions/index.js | 4 + .../formatDistanceWithOptions/index.js.flow | 76 + .../fp/formatDistanceWithOptions/package.json | 4 + .../date-fns/esm/fp/formatDuration/index.d.ts | 4 + .../date-fns/esm/fp/formatDuration/index.js | 4 + .../esm/fp/formatDuration/index.js.flow | 54 + .../esm/fp/formatDuration/package.json | 4 + .../fp/formatDurationWithOptions/index.d.ts | 4 + .../esm/fp/formatDurationWithOptions/index.js | 4 + .../formatDurationWithOptions/index.js.flow | 67 + .../fp/formatDurationWithOptions/package.json | 4 + .../date-fns/esm/fp/formatISO/index.d.ts | 4 + .../date-fns/esm/fp/formatISO/index.js | 4 + .../date-fns/esm/fp/formatISO/index.js.flow | 54 + .../date-fns/esm/fp/formatISO/package.json | 4 + .../date-fns/esm/fp/formatISO9075/index.d.ts | 4 + .../date-fns/esm/fp/formatISO9075/index.js | 4 + .../esm/fp/formatISO9075/index.js.flow | 54 + .../esm/fp/formatISO9075/package.json | 4 + .../fp/formatISO9075WithOptions/index.d.ts | 4 + .../esm/fp/formatISO9075WithOptions/index.js | 4 + .../fp/formatISO9075WithOptions/index.js.flow | 65 + .../fp/formatISO9075WithOptions/package.json | 4 + .../esm/fp/formatISODuration/index.d.ts | 4 + .../esm/fp/formatISODuration/index.js | 4 + .../esm/fp/formatISODuration/index.js.flow | 54 + .../esm/fp/formatISODuration/package.json | 4 + .../esm/fp/formatISOWithOptions/index.d.ts | 4 + .../esm/fp/formatISOWithOptions/index.js | 4 + .../esm/fp/formatISOWithOptions/index.js.flow | 65 + .../esm/fp/formatISOWithOptions/package.json | 4 + .../date-fns/esm/fp/formatRFC3339/index.d.ts | 4 + .../date-fns/esm/fp/formatRFC3339/index.js | 4 + .../esm/fp/formatRFC3339/index.js.flow | 54 + .../esm/fp/formatRFC3339/package.json | 4 + .../fp/formatRFC3339WithOptions/index.d.ts | 4 + .../esm/fp/formatRFC3339WithOptions/index.js | 4 + .../fp/formatRFC3339WithOptions/index.js.flow | 64 + .../fp/formatRFC3339WithOptions/package.json | 4 + .../date-fns/esm/fp/formatRFC7231/index.d.ts | 4 + .../date-fns/esm/fp/formatRFC7231/index.js | 4 + .../esm/fp/formatRFC7231/index.js.flow | 54 + .../esm/fp/formatRFC7231/package.json | 4 + .../date-fns/esm/fp/formatRelative/index.d.ts | 4 + .../date-fns/esm/fp/formatRelative/index.js | 4 + .../esm/fp/formatRelative/index.js.flow | 58 + .../esm/fp/formatRelative/package.json | 4 + .../fp/formatRelativeWithOptions/index.d.ts | 4 + .../esm/fp/formatRelativeWithOptions/index.js | 4 + .../formatRelativeWithOptions/index.js.flow | 75 + .../fp/formatRelativeWithOptions/package.json | 4 + .../esm/fp/formatWithOptions/index.d.ts | 4 + .../esm/fp/formatWithOptions/index.js | 4 + .../esm/fp/formatWithOptions/index.js.flow | 78 + .../esm/fp/formatWithOptions/package.json | 4 + .../date-fns/esm/fp/fromUnixTime/index.d.ts | 4 + .../date-fns/esm/fp/fromUnixTime/index.js | 4 + .../esm/fp/fromUnixTime/index.js.flow | 54 + .../date-fns/esm/fp/fromUnixTime/package.json | 4 + .../date-fns/esm/fp/getDate/index.d.ts | 4 + node_modules/date-fns/esm/fp/getDate/index.js | 4 + .../date-fns/esm/fp/getDate/index.js.flow | 54 + .../date-fns/esm/fp/getDate/package.json | 4 + .../date-fns/esm/fp/getDay/index.d.ts | 4 + node_modules/date-fns/esm/fp/getDay/index.js | 4 + .../date-fns/esm/fp/getDay/index.js.flow | 54 + .../date-fns/esm/fp/getDay/package.json | 4 + .../date-fns/esm/fp/getDayOfYear/index.d.ts | 4 + .../date-fns/esm/fp/getDayOfYear/index.js | 4 + .../esm/fp/getDayOfYear/index.js.flow | 54 + .../date-fns/esm/fp/getDayOfYear/package.json | 4 + .../date-fns/esm/fp/getDaysInMonth/index.d.ts | 4 + .../date-fns/esm/fp/getDaysInMonth/index.js | 4 + .../esm/fp/getDaysInMonth/index.js.flow | 54 + .../esm/fp/getDaysInMonth/package.json | 4 + .../date-fns/esm/fp/getDaysInYear/index.d.ts | 4 + .../date-fns/esm/fp/getDaysInYear/index.js | 4 + .../esm/fp/getDaysInYear/index.js.flow | 54 + .../esm/fp/getDaysInYear/package.json | 4 + .../date-fns/esm/fp/getDecade/index.d.ts | 4 + .../date-fns/esm/fp/getDecade/index.js | 4 + .../date-fns/esm/fp/getDecade/index.js.flow | 54 + .../date-fns/esm/fp/getDecade/package.json | 4 + .../date-fns/esm/fp/getHours/index.d.ts | 4 + .../date-fns/esm/fp/getHours/index.js | 4 + .../date-fns/esm/fp/getHours/index.js.flow | 54 + .../date-fns/esm/fp/getHours/package.json | 4 + .../date-fns/esm/fp/getISODay/index.d.ts | 4 + .../date-fns/esm/fp/getISODay/index.js | 4 + .../date-fns/esm/fp/getISODay/index.js.flow | 54 + .../date-fns/esm/fp/getISODay/package.json | 4 + .../date-fns/esm/fp/getISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/getISOWeek/index.js | 4 + .../date-fns/esm/fp/getISOWeek/index.js.flow | 54 + .../date-fns/esm/fp/getISOWeek/package.json | 4 + .../date-fns/esm/fp/getISOWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/getISOWeekYear/index.js | 4 + .../esm/fp/getISOWeekYear/index.js.flow | 54 + .../esm/fp/getISOWeekYear/package.json | 4 + .../esm/fp/getISOWeeksInYear/index.d.ts | 4 + .../esm/fp/getISOWeeksInYear/index.js | 4 + .../esm/fp/getISOWeeksInYear/index.js.flow | 54 + .../esm/fp/getISOWeeksInYear/package.json | 4 + .../esm/fp/getMilliseconds/index.d.ts | 4 + .../date-fns/esm/fp/getMilliseconds/index.js | 4 + .../esm/fp/getMilliseconds/index.js.flow | 54 + .../esm/fp/getMilliseconds/package.json | 4 + .../date-fns/esm/fp/getMinutes/index.d.ts | 4 + .../date-fns/esm/fp/getMinutes/index.js | 4 + .../date-fns/esm/fp/getMinutes/index.js.flow | 54 + .../date-fns/esm/fp/getMinutes/package.json | 4 + .../date-fns/esm/fp/getMonth/index.d.ts | 4 + .../date-fns/esm/fp/getMonth/index.js | 4 + .../date-fns/esm/fp/getMonth/index.js.flow | 54 + .../date-fns/esm/fp/getMonth/package.json | 4 + .../getOverlappingDaysInIntervals/index.d.ts | 4 + .../fp/getOverlappingDaysInIntervals/index.js | 4 + .../index.js.flow | 58 + .../package.json | 4 + .../date-fns/esm/fp/getQuarter/index.d.ts | 4 + .../date-fns/esm/fp/getQuarter/index.js | 4 + .../date-fns/esm/fp/getQuarter/index.js.flow | 54 + .../date-fns/esm/fp/getQuarter/package.json | 4 + .../date-fns/esm/fp/getSeconds/index.d.ts | 4 + .../date-fns/esm/fp/getSeconds/index.js | 4 + .../date-fns/esm/fp/getSeconds/index.js.flow | 54 + .../date-fns/esm/fp/getSeconds/package.json | 4 + .../date-fns/esm/fp/getTime/index.d.ts | 4 + node_modules/date-fns/esm/fp/getTime/index.js | 4 + .../date-fns/esm/fp/getTime/index.js.flow | 54 + .../date-fns/esm/fp/getTime/package.json | 4 + .../date-fns/esm/fp/getUnixTime/index.d.ts | 4 + .../date-fns/esm/fp/getUnixTime/index.js | 4 + .../date-fns/esm/fp/getUnixTime/index.js.flow | 54 + .../date-fns/esm/fp/getUnixTime/package.json | 4 + .../date-fns/esm/fp/getWeek/index.d.ts | 4 + node_modules/date-fns/esm/fp/getWeek/index.js | 4 + .../date-fns/esm/fp/getWeek/index.js.flow | 54 + .../date-fns/esm/fp/getWeek/package.json | 4 + .../date-fns/esm/fp/getWeekOfMonth/index.d.ts | 4 + .../date-fns/esm/fp/getWeekOfMonth/index.js | 4 + .../esm/fp/getWeekOfMonth/index.js.flow | 54 + .../esm/fp/getWeekOfMonth/package.json | 4 + .../fp/getWeekOfMonthWithOptions/index.d.ts | 4 + .../esm/fp/getWeekOfMonthWithOptions/index.js | 4 + .../getWeekOfMonthWithOptions/index.js.flow | 65 + .../fp/getWeekOfMonthWithOptions/package.json | 4 + .../esm/fp/getWeekWithOptions/index.d.ts | 4 + .../esm/fp/getWeekWithOptions/index.js | 4 + .../esm/fp/getWeekWithOptions/index.js.flow | 66 + .../esm/fp/getWeekWithOptions/package.json | 4 + .../date-fns/esm/fp/getWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/getWeekYear/index.js | 4 + .../date-fns/esm/fp/getWeekYear/index.js.flow | 54 + .../date-fns/esm/fp/getWeekYear/package.json | 4 + .../esm/fp/getWeekYearWithOptions/index.d.ts | 4 + .../esm/fp/getWeekYearWithOptions/index.js | 4 + .../fp/getWeekYearWithOptions/index.js.flow | 66 + .../fp/getWeekYearWithOptions/package.json | 4 + .../esm/fp/getWeeksInMonth/index.d.ts | 4 + .../date-fns/esm/fp/getWeeksInMonth/index.js | 4 + .../esm/fp/getWeeksInMonth/index.js.flow | 54 + .../esm/fp/getWeeksInMonth/package.json | 4 + .../fp/getWeeksInMonthWithOptions/index.d.ts | 4 + .../fp/getWeeksInMonthWithOptions/index.js | 4 + .../getWeeksInMonthWithOptions/index.js.flow | 65 + .../getWeeksInMonthWithOptions/package.json | 4 + .../date-fns/esm/fp/getYear/index.d.ts | 4 + node_modules/date-fns/esm/fp/getYear/index.js | 4 + .../date-fns/esm/fp/getYear/index.js.flow | 54 + .../date-fns/esm/fp/getYear/package.json | 4 + .../esm/fp/hoursToMilliseconds/index.d.ts | 4 + .../esm/fp/hoursToMilliseconds/index.js | 4 + .../esm/fp/hoursToMilliseconds/index.js.flow | 54 + .../esm/fp/hoursToMilliseconds/package.json | 4 + .../date-fns/esm/fp/hoursToMinutes/index.d.ts | 4 + .../date-fns/esm/fp/hoursToMinutes/index.js | 4 + .../esm/fp/hoursToMinutes/index.js.flow | 54 + .../esm/fp/hoursToMinutes/package.json | 4 + .../date-fns/esm/fp/hoursToSeconds/index.d.ts | 4 + .../date-fns/esm/fp/hoursToSeconds/index.js | 4 + .../esm/fp/hoursToSeconds/index.js.flow | 54 + .../esm/fp/hoursToSeconds/package.json | 4 + node_modules/date-fns/esm/fp/index.js | 256 + node_modules/date-fns/esm/fp/index.js.flow | 694 + .../esm/fp/intervalToDuration/index.d.ts | 4 + .../esm/fp/intervalToDuration/index.js | 4 + .../esm/fp/intervalToDuration/index.js.flow | 54 + .../esm/fp/intervalToDuration/package.json | 4 + .../date-fns/esm/fp/intlFormat/index.d.ts | 4 + .../date-fns/esm/fp/intlFormat/index.js | 4 + .../date-fns/esm/fp/intlFormat/index.js.flow | 88 + .../date-fns/esm/fp/intlFormat/package.json | 4 + .../esm/fp/intlFormatDistance/index.d.ts | 4 + .../esm/fp/intlFormatDistance/index.js | 4 + .../esm/fp/intlFormatDistance/index.js.flow | 58 + .../esm/fp/intlFormatDistance/package.json | 4 + .../intlFormatDistanceWithOptions/index.d.ts | 4 + .../fp/intlFormatDistanceWithOptions/index.js | 4 + .../index.js.flow | 78 + .../package.json | 4 + .../date-fns/esm/fp/isAfter/index.d.ts | 4 + node_modules/date-fns/esm/fp/isAfter/index.js | 4 + .../date-fns/esm/fp/isAfter/index.js.flow | 58 + .../date-fns/esm/fp/isAfter/package.json | 4 + .../date-fns/esm/fp/isBefore/index.d.ts | 4 + .../date-fns/esm/fp/isBefore/index.js | 4 + .../date-fns/esm/fp/isBefore/index.js.flow | 58 + .../date-fns/esm/fp/isBefore/package.json | 4 + .../date-fns/esm/fp/isDate/index.d.ts | 4 + node_modules/date-fns/esm/fp/isDate/index.js | 4 + .../date-fns/esm/fp/isDate/index.js.flow | 54 + .../date-fns/esm/fp/isDate/package.json | 4 + .../date-fns/esm/fp/isEqual/index.d.ts | 4 + node_modules/date-fns/esm/fp/isEqual/index.js | 4 + .../date-fns/esm/fp/isEqual/index.js.flow | 58 + .../date-fns/esm/fp/isEqual/package.json | 4 + .../date-fns/esm/fp/isExists/index.d.ts | 4 + .../date-fns/esm/fp/isExists/index.js | 4 + .../date-fns/esm/fp/isExists/index.js.flow | 67 + .../date-fns/esm/fp/isExists/package.json | 4 + .../esm/fp/isFirstDayOfMonth/index.d.ts | 4 + .../esm/fp/isFirstDayOfMonth/index.js | 4 + .../esm/fp/isFirstDayOfMonth/index.js.flow | 54 + .../esm/fp/isFirstDayOfMonth/package.json | 4 + .../date-fns/esm/fp/isFriday/index.d.ts | 4 + .../date-fns/esm/fp/isFriday/index.js | 4 + .../date-fns/esm/fp/isFriday/index.js.flow | 54 + .../date-fns/esm/fp/isFriday/package.json | 4 + .../esm/fp/isLastDayOfMonth/index.d.ts | 4 + .../date-fns/esm/fp/isLastDayOfMonth/index.js | 4 + .../esm/fp/isLastDayOfMonth/index.js.flow | 54 + .../esm/fp/isLastDayOfMonth/package.json | 4 + .../date-fns/esm/fp/isLeapYear/index.d.ts | 4 + .../date-fns/esm/fp/isLeapYear/index.js | 4 + .../date-fns/esm/fp/isLeapYear/index.js.flow | 54 + .../date-fns/esm/fp/isLeapYear/package.json | 4 + .../date-fns/esm/fp/isMatch/index.d.ts | 4 + node_modules/date-fns/esm/fp/isMatch/index.js | 4 + .../date-fns/esm/fp/isMatch/index.js.flow | 58 + .../date-fns/esm/fp/isMatch/package.json | 4 + .../esm/fp/isMatchWithOptions/index.d.ts | 4 + .../esm/fp/isMatchWithOptions/index.js | 4 + .../esm/fp/isMatchWithOptions/index.js.flow | 78 + .../esm/fp/isMatchWithOptions/package.json | 4 + .../date-fns/esm/fp/isMonday/index.d.ts | 4 + .../date-fns/esm/fp/isMonday/index.js | 4 + .../date-fns/esm/fp/isMonday/index.js.flow | 54 + .../date-fns/esm/fp/isMonday/package.json | 4 + .../date-fns/esm/fp/isSameDay/index.d.ts | 4 + .../date-fns/esm/fp/isSameDay/index.js | 4 + .../date-fns/esm/fp/isSameDay/index.js.flow | 58 + .../date-fns/esm/fp/isSameDay/package.json | 4 + .../date-fns/esm/fp/isSameHour/index.d.ts | 4 + .../date-fns/esm/fp/isSameHour/index.js | 4 + .../date-fns/esm/fp/isSameHour/index.js.flow | 58 + .../date-fns/esm/fp/isSameHour/package.json | 4 + .../date-fns/esm/fp/isSameISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/isSameISOWeek/index.js | 4 + .../esm/fp/isSameISOWeek/index.js.flow | 58 + .../esm/fp/isSameISOWeek/package.json | 4 + .../esm/fp/isSameISOWeekYear/index.d.ts | 4 + .../esm/fp/isSameISOWeekYear/index.js | 4 + .../esm/fp/isSameISOWeekYear/index.js.flow | 58 + .../esm/fp/isSameISOWeekYear/package.json | 4 + .../date-fns/esm/fp/isSameMinute/index.d.ts | 4 + .../date-fns/esm/fp/isSameMinute/index.js | 4 + .../esm/fp/isSameMinute/index.js.flow | 58 + .../date-fns/esm/fp/isSameMinute/package.json | 4 + .../date-fns/esm/fp/isSameMonth/index.d.ts | 4 + .../date-fns/esm/fp/isSameMonth/index.js | 4 + .../date-fns/esm/fp/isSameMonth/index.js.flow | 58 + .../date-fns/esm/fp/isSameMonth/package.json | 4 + .../date-fns/esm/fp/isSameQuarter/index.d.ts | 4 + .../date-fns/esm/fp/isSameQuarter/index.js | 4 + .../esm/fp/isSameQuarter/index.js.flow | 58 + .../esm/fp/isSameQuarter/package.json | 4 + .../date-fns/esm/fp/isSameSecond/index.d.ts | 4 + .../date-fns/esm/fp/isSameSecond/index.js | 4 + .../esm/fp/isSameSecond/index.js.flow | 58 + .../date-fns/esm/fp/isSameSecond/package.json | 4 + .../date-fns/esm/fp/isSameWeek/index.d.ts | 4 + .../date-fns/esm/fp/isSameWeek/index.js | 4 + .../date-fns/esm/fp/isSameWeek/index.js.flow | 58 + .../date-fns/esm/fp/isSameWeek/package.json | 4 + .../esm/fp/isSameWeekWithOptions/index.d.ts | 4 + .../esm/fp/isSameWeekWithOptions/index.js | 4 + .../fp/isSameWeekWithOptions/index.js.flow | 75 + .../esm/fp/isSameWeekWithOptions/package.json | 4 + .../date-fns/esm/fp/isSameYear/index.d.ts | 4 + .../date-fns/esm/fp/isSameYear/index.js | 4 + .../date-fns/esm/fp/isSameYear/index.js.flow | 58 + .../date-fns/esm/fp/isSameYear/package.json | 4 + .../date-fns/esm/fp/isSaturday/index.d.ts | 4 + .../date-fns/esm/fp/isSaturday/index.js | 4 + .../date-fns/esm/fp/isSaturday/index.js.flow | 54 + .../date-fns/esm/fp/isSaturday/package.json | 4 + .../date-fns/esm/fp/isSunday/index.d.ts | 4 + .../date-fns/esm/fp/isSunday/index.js | 4 + .../date-fns/esm/fp/isSunday/index.js.flow | 54 + .../date-fns/esm/fp/isSunday/package.json | 4 + .../date-fns/esm/fp/isThursday/index.d.ts | 4 + .../date-fns/esm/fp/isThursday/index.js | 4 + .../date-fns/esm/fp/isThursday/index.js.flow | 54 + .../date-fns/esm/fp/isThursday/package.json | 4 + .../date-fns/esm/fp/isTuesday/index.d.ts | 4 + .../date-fns/esm/fp/isTuesday/index.js | 4 + .../date-fns/esm/fp/isTuesday/index.js.flow | 54 + .../date-fns/esm/fp/isTuesday/package.json | 4 + .../date-fns/esm/fp/isValid/index.d.ts | 4 + node_modules/date-fns/esm/fp/isValid/index.js | 4 + .../date-fns/esm/fp/isValid/index.js.flow | 54 + .../date-fns/esm/fp/isValid/package.json | 4 + .../date-fns/esm/fp/isWednesday/index.d.ts | 4 + .../date-fns/esm/fp/isWednesday/index.js | 4 + .../date-fns/esm/fp/isWednesday/index.js.flow | 54 + .../date-fns/esm/fp/isWednesday/package.json | 4 + .../date-fns/esm/fp/isWeekend/index.d.ts | 4 + .../date-fns/esm/fp/isWeekend/index.js | 4 + .../date-fns/esm/fp/isWeekend/index.js.flow | 54 + .../date-fns/esm/fp/isWeekend/package.json | 4 + .../esm/fp/isWithinInterval/index.d.ts | 4 + .../date-fns/esm/fp/isWithinInterval/index.js | 4 + .../esm/fp/isWithinInterval/index.js.flow | 58 + .../esm/fp/isWithinInterval/package.json | 4 + .../esm/fp/lastDayOfDecade/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfDecade/index.js | 4 + .../esm/fp/lastDayOfDecade/index.js.flow | 54 + .../esm/fp/lastDayOfDecade/package.json | 4 + .../esm/fp/lastDayOfISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfISOWeek/index.js | 4 + .../esm/fp/lastDayOfISOWeek/index.js.flow | 54 + .../esm/fp/lastDayOfISOWeek/package.json | 4 + .../esm/fp/lastDayOfISOWeekYear/index.d.ts | 4 + .../esm/fp/lastDayOfISOWeekYear/index.js | 4 + .../esm/fp/lastDayOfISOWeekYear/index.js.flow | 54 + .../esm/fp/lastDayOfISOWeekYear/package.json | 4 + .../date-fns/esm/fp/lastDayOfMonth/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfMonth/index.js | 4 + .../esm/fp/lastDayOfMonth/index.js.flow | 54 + .../esm/fp/lastDayOfMonth/package.json | 4 + .../esm/fp/lastDayOfQuarter/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfQuarter/index.js | 4 + .../esm/fp/lastDayOfQuarter/index.js.flow | 54 + .../esm/fp/lastDayOfQuarter/package.json | 4 + .../fp/lastDayOfQuarterWithOptions/index.d.ts | 4 + .../fp/lastDayOfQuarterWithOptions/index.js | 4 + .../lastDayOfQuarterWithOptions/index.js.flow | 64 + .../lastDayOfQuarterWithOptions/package.json | 4 + .../date-fns/esm/fp/lastDayOfWeek/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfWeek/index.js | 4 + .../esm/fp/lastDayOfWeek/index.js.flow | 54 + .../esm/fp/lastDayOfWeek/package.json | 4 + .../fp/lastDayOfWeekWithOptions/index.d.ts | 4 + .../esm/fp/lastDayOfWeekWithOptions/index.js | 4 + .../fp/lastDayOfWeekWithOptions/index.js.flow | 65 + .../fp/lastDayOfWeekWithOptions/package.json | 4 + .../date-fns/esm/fp/lastDayOfYear/index.d.ts | 4 + .../date-fns/esm/fp/lastDayOfYear/index.js | 4 + .../esm/fp/lastDayOfYear/index.js.flow | 54 + .../esm/fp/lastDayOfYear/package.json | 4 + .../date-fns/esm/fp/lightFormat/index.d.ts | 4 + .../date-fns/esm/fp/lightFormat/index.js | 4 + .../date-fns/esm/fp/lightFormat/index.js.flow | 58 + .../date-fns/esm/fp/lightFormat/package.json | 4 + node_modules/date-fns/esm/fp/max/index.d.ts | 4 + node_modules/date-fns/esm/fp/max/index.js | 4 + .../date-fns/esm/fp/max/index.js.flow | 54 + node_modules/date-fns/esm/fp/max/package.json | 4 + .../date-fns/esm/fp/milliseconds/index.d.ts | 4 + .../date-fns/esm/fp/milliseconds/index.js | 4 + .../esm/fp/milliseconds/index.js.flow | 54 + .../date-fns/esm/fp/milliseconds/package.json | 4 + .../esm/fp/millisecondsToHours/index.d.ts | 4 + .../esm/fp/millisecondsToHours/index.js | 4 + .../esm/fp/millisecondsToHours/index.js.flow | 54 + .../esm/fp/millisecondsToHours/package.json | 4 + .../esm/fp/millisecondsToMinutes/index.d.ts | 4 + .../esm/fp/millisecondsToMinutes/index.js | 4 + .../fp/millisecondsToMinutes/index.js.flow | 54 + .../esm/fp/millisecondsToMinutes/package.json | 4 + .../esm/fp/millisecondsToSeconds/index.d.ts | 4 + .../esm/fp/millisecondsToSeconds/index.js | 4 + .../fp/millisecondsToSeconds/index.js.flow | 54 + .../esm/fp/millisecondsToSeconds/package.json | 4 + node_modules/date-fns/esm/fp/min/index.d.ts | 4 + node_modules/date-fns/esm/fp/min/index.js | 4 + .../date-fns/esm/fp/min/index.js.flow | 54 + node_modules/date-fns/esm/fp/min/package.json | 4 + .../date-fns/esm/fp/minutesToHours/index.d.ts | 4 + .../date-fns/esm/fp/minutesToHours/index.js | 4 + .../esm/fp/minutesToHours/index.js.flow | 54 + .../esm/fp/minutesToHours/package.json | 4 + .../esm/fp/minutesToMilliseconds/index.d.ts | 4 + .../esm/fp/minutesToMilliseconds/index.js | 4 + .../fp/minutesToMilliseconds/index.js.flow | 54 + .../esm/fp/minutesToMilliseconds/package.json | 4 + .../esm/fp/minutesToSeconds/index.d.ts | 4 + .../date-fns/esm/fp/minutesToSeconds/index.js | 4 + .../esm/fp/minutesToSeconds/index.js.flow | 54 + .../esm/fp/minutesToSeconds/package.json | 4 + .../esm/fp/monthsToQuarters/index.d.ts | 4 + .../date-fns/esm/fp/monthsToQuarters/index.js | 4 + .../esm/fp/monthsToQuarters/index.js.flow | 54 + .../esm/fp/monthsToQuarters/package.json | 4 + .../date-fns/esm/fp/monthsToYears/index.d.ts | 4 + .../date-fns/esm/fp/monthsToYears/index.js | 4 + .../esm/fp/monthsToYears/index.js.flow | 54 + .../esm/fp/monthsToYears/package.json | 4 + .../date-fns/esm/fp/nextDay/index.d.ts | 4 + node_modules/date-fns/esm/fp/nextDay/index.js | 4 + .../date-fns/esm/fp/nextDay/index.js.flow | 58 + .../date-fns/esm/fp/nextDay/package.json | 4 + .../date-fns/esm/fp/nextFriday/index.d.ts | 4 + .../date-fns/esm/fp/nextFriday/index.js | 4 + .../date-fns/esm/fp/nextFriday/index.js.flow | 54 + .../date-fns/esm/fp/nextFriday/package.json | 4 + .../date-fns/esm/fp/nextMonday/index.d.ts | 4 + .../date-fns/esm/fp/nextMonday/index.js | 4 + .../date-fns/esm/fp/nextMonday/index.js.flow | 54 + .../date-fns/esm/fp/nextMonday/package.json | 4 + .../date-fns/esm/fp/nextSaturday/index.d.ts | 4 + .../date-fns/esm/fp/nextSaturday/index.js | 4 + .../esm/fp/nextSaturday/index.js.flow | 54 + .../date-fns/esm/fp/nextSaturday/package.json | 4 + .../date-fns/esm/fp/nextSunday/index.d.ts | 4 + .../date-fns/esm/fp/nextSunday/index.js | 4 + .../date-fns/esm/fp/nextSunday/index.js.flow | 54 + .../date-fns/esm/fp/nextSunday/package.json | 4 + .../date-fns/esm/fp/nextThursday/index.d.ts | 4 + .../date-fns/esm/fp/nextThursday/index.js | 4 + .../esm/fp/nextThursday/index.js.flow | 54 + .../date-fns/esm/fp/nextThursday/package.json | 4 + .../date-fns/esm/fp/nextTuesday/index.d.ts | 4 + .../date-fns/esm/fp/nextTuesday/index.js | 4 + .../date-fns/esm/fp/nextTuesday/index.js.flow | 54 + .../date-fns/esm/fp/nextTuesday/package.json | 4 + .../date-fns/esm/fp/nextWednesday/index.d.ts | 4 + .../date-fns/esm/fp/nextWednesday/index.js | 4 + .../esm/fp/nextWednesday/index.js.flow | 54 + .../esm/fp/nextWednesday/package.json | 4 + node_modules/date-fns/esm/fp/package.json | 4 + node_modules/date-fns/esm/fp/parse/index.d.ts | 4 + node_modules/date-fns/esm/fp/parse/index.js | 4 + .../date-fns/esm/fp/parse/index.js.flow | 67 + .../date-fns/esm/fp/parse/package.json | 4 + .../date-fns/esm/fp/parseISO/index.d.ts | 4 + .../date-fns/esm/fp/parseISO/index.js | 4 + .../date-fns/esm/fp/parseISO/index.js.flow | 54 + .../date-fns/esm/fp/parseISO/package.json | 4 + .../esm/fp/parseISOWithOptions/index.d.ts | 4 + .../esm/fp/parseISOWithOptions/index.js | 4 + .../esm/fp/parseISOWithOptions/index.js.flow | 64 + .../esm/fp/parseISOWithOptions/package.json | 4 + .../date-fns/esm/fp/parseJSON/index.d.ts | 4 + .../date-fns/esm/fp/parseJSON/index.js | 4 + .../date-fns/esm/fp/parseJSON/index.js.flow | 54 + .../date-fns/esm/fp/parseJSON/package.json | 4 + .../esm/fp/parseWithOptions/index.d.ts | 4 + .../date-fns/esm/fp/parseWithOptions/index.js | 4 + .../esm/fp/parseWithOptions/index.js.flow | 94 + .../esm/fp/parseWithOptions/package.json | 4 + .../date-fns/esm/fp/previousDay/index.d.ts | 4 + .../date-fns/esm/fp/previousDay/index.js | 4 + .../date-fns/esm/fp/previousDay/index.js.flow | 58 + .../date-fns/esm/fp/previousDay/package.json | 4 + .../date-fns/esm/fp/previousFriday/index.d.ts | 4 + .../date-fns/esm/fp/previousFriday/index.js | 4 + .../esm/fp/previousFriday/index.js.flow | 54 + .../esm/fp/previousFriday/package.json | 4 + .../date-fns/esm/fp/previousMonday/index.d.ts | 4 + .../date-fns/esm/fp/previousMonday/index.js | 4 + .../esm/fp/previousMonday/index.js.flow | 54 + .../esm/fp/previousMonday/package.json | 4 + .../esm/fp/previousSaturday/index.d.ts | 4 + .../date-fns/esm/fp/previousSaturday/index.js | 4 + .../esm/fp/previousSaturday/index.js.flow | 54 + .../esm/fp/previousSaturday/package.json | 4 + .../date-fns/esm/fp/previousSunday/index.d.ts | 4 + .../date-fns/esm/fp/previousSunday/index.js | 4 + .../esm/fp/previousSunday/index.js.flow | 54 + .../esm/fp/previousSunday/package.json | 4 + .../esm/fp/previousThursday/index.d.ts | 4 + .../date-fns/esm/fp/previousThursday/index.js | 4 + .../esm/fp/previousThursday/index.js.flow | 54 + .../esm/fp/previousThursday/package.json | 4 + .../esm/fp/previousTuesday/index.d.ts | 4 + .../date-fns/esm/fp/previousTuesday/index.js | 4 + .../esm/fp/previousTuesday/index.js.flow | 54 + .../esm/fp/previousTuesday/package.json | 4 + .../esm/fp/previousWednesday/index.d.ts | 4 + .../esm/fp/previousWednesday/index.js | 4 + .../esm/fp/previousWednesday/index.js.flow | 54 + .../esm/fp/previousWednesday/package.json | 4 + .../esm/fp/quartersToMonths/index.d.ts | 4 + .../date-fns/esm/fp/quartersToMonths/index.js | 4 + .../esm/fp/quartersToMonths/index.js.flow | 54 + .../esm/fp/quartersToMonths/package.json | 4 + .../esm/fp/quartersToYears/index.d.ts | 4 + .../date-fns/esm/fp/quartersToYears/index.js | 4 + .../esm/fp/quartersToYears/index.js.flow | 54 + .../esm/fp/quartersToYears/package.json | 4 + .../esm/fp/roundToNearestMinutes/index.d.ts | 4 + .../esm/fp/roundToNearestMinutes/index.js | 4 + .../fp/roundToNearestMinutes/index.js.flow | 54 + .../esm/fp/roundToNearestMinutes/package.json | 4 + .../index.d.ts | 4 + .../roundToNearestMinutesWithOptions/index.js | 4 + .../index.js.flow | 65 + .../package.json | 4 + .../date-fns/esm/fp/secondsToHours/index.d.ts | 4 + .../date-fns/esm/fp/secondsToHours/index.js | 4 + .../esm/fp/secondsToHours/index.js.flow | 54 + .../esm/fp/secondsToHours/package.json | 4 + .../esm/fp/secondsToMilliseconds/index.d.ts | 4 + .../esm/fp/secondsToMilliseconds/index.js | 4 + .../fp/secondsToMilliseconds/index.js.flow | 54 + .../esm/fp/secondsToMilliseconds/package.json | 4 + .../esm/fp/secondsToMinutes/index.d.ts | 4 + .../date-fns/esm/fp/secondsToMinutes/index.js | 4 + .../esm/fp/secondsToMinutes/index.js.flow | 54 + .../esm/fp/secondsToMinutes/package.json | 4 + node_modules/date-fns/esm/fp/set/index.d.ts | 4 + node_modules/date-fns/esm/fp/set/index.js | 4 + .../date-fns/esm/fp/set/index.js.flow | 70 + node_modules/date-fns/esm/fp/set/package.json | 4 + .../date-fns/esm/fp/setDate/index.d.ts | 4 + node_modules/date-fns/esm/fp/setDate/index.js | 4 + .../date-fns/esm/fp/setDate/index.js.flow | 58 + .../date-fns/esm/fp/setDate/package.json | 4 + .../date-fns/esm/fp/setDay/index.d.ts | 4 + node_modules/date-fns/esm/fp/setDay/index.js | 4 + .../date-fns/esm/fp/setDay/index.js.flow | 58 + .../date-fns/esm/fp/setDay/package.json | 4 + .../date-fns/esm/fp/setDayOfYear/index.d.ts | 4 + .../date-fns/esm/fp/setDayOfYear/index.js | 4 + .../esm/fp/setDayOfYear/index.js.flow | 58 + .../date-fns/esm/fp/setDayOfYear/package.json | 4 + .../esm/fp/setDayWithOptions/index.d.ts | 4 + .../esm/fp/setDayWithOptions/index.js | 4 + .../esm/fp/setDayWithOptions/index.js.flow | 75 + .../esm/fp/setDayWithOptions/package.json | 4 + .../date-fns/esm/fp/setHours/index.d.ts | 4 + .../date-fns/esm/fp/setHours/index.js | 4 + .../date-fns/esm/fp/setHours/index.js.flow | 58 + .../date-fns/esm/fp/setHours/package.json | 4 + .../date-fns/esm/fp/setISODay/index.d.ts | 4 + .../date-fns/esm/fp/setISODay/index.js | 4 + .../date-fns/esm/fp/setISODay/index.js.flow | 58 + .../date-fns/esm/fp/setISODay/package.json | 4 + .../date-fns/esm/fp/setISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/setISOWeek/index.js | 4 + .../date-fns/esm/fp/setISOWeek/index.js.flow | 58 + .../date-fns/esm/fp/setISOWeek/package.json | 4 + .../date-fns/esm/fp/setISOWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/setISOWeekYear/index.js | 4 + .../esm/fp/setISOWeekYear/index.js.flow | 58 + .../esm/fp/setISOWeekYear/package.json | 4 + .../esm/fp/setMilliseconds/index.d.ts | 4 + .../date-fns/esm/fp/setMilliseconds/index.js | 4 + .../esm/fp/setMilliseconds/index.js.flow | 58 + .../esm/fp/setMilliseconds/package.json | 4 + .../date-fns/esm/fp/setMinutes/index.d.ts | 4 + .../date-fns/esm/fp/setMinutes/index.js | 4 + .../date-fns/esm/fp/setMinutes/index.js.flow | 58 + .../date-fns/esm/fp/setMinutes/package.json | 4 + .../date-fns/esm/fp/setMonth/index.d.ts | 4 + .../date-fns/esm/fp/setMonth/index.js | 4 + .../date-fns/esm/fp/setMonth/index.js.flow | 58 + .../date-fns/esm/fp/setMonth/package.json | 4 + .../date-fns/esm/fp/setQuarter/index.d.ts | 4 + .../date-fns/esm/fp/setQuarter/index.js | 4 + .../date-fns/esm/fp/setQuarter/index.js.flow | 58 + .../date-fns/esm/fp/setQuarter/package.json | 4 + .../date-fns/esm/fp/setSeconds/index.d.ts | 4 + .../date-fns/esm/fp/setSeconds/index.js | 4 + .../date-fns/esm/fp/setSeconds/index.js.flow | 58 + .../date-fns/esm/fp/setSeconds/package.json | 4 + .../date-fns/esm/fp/setWeek/index.d.ts | 4 + node_modules/date-fns/esm/fp/setWeek/index.js | 4 + .../date-fns/esm/fp/setWeek/index.js.flow | 58 + .../date-fns/esm/fp/setWeek/package.json | 4 + .../esm/fp/setWeekWithOptions/index.d.ts | 4 + .../esm/fp/setWeekWithOptions/index.js | 4 + .../esm/fp/setWeekWithOptions/index.js.flow | 76 + .../esm/fp/setWeekWithOptions/package.json | 4 + .../date-fns/esm/fp/setWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/setWeekYear/index.js | 4 + .../date-fns/esm/fp/setWeekYear/index.js.flow | 58 + .../date-fns/esm/fp/setWeekYear/package.json | 4 + .../esm/fp/setWeekYearWithOptions/index.d.ts | 4 + .../esm/fp/setWeekYearWithOptions/index.js | 4 + .../fp/setWeekYearWithOptions/index.js.flow | 76 + .../fp/setWeekYearWithOptions/package.json | 4 + .../date-fns/esm/fp/setYear/index.d.ts | 4 + node_modules/date-fns/esm/fp/setYear/index.js | 4 + .../date-fns/esm/fp/setYear/index.js.flow | 58 + .../date-fns/esm/fp/setYear/package.json | 4 + .../date-fns/esm/fp/startOfDay/index.d.ts | 4 + .../date-fns/esm/fp/startOfDay/index.js | 4 + .../date-fns/esm/fp/startOfDay/index.js.flow | 54 + .../date-fns/esm/fp/startOfDay/package.json | 4 + .../date-fns/esm/fp/startOfDecade/index.d.ts | 4 + .../date-fns/esm/fp/startOfDecade/index.js | 4 + .../esm/fp/startOfDecade/index.js.flow | 54 + .../esm/fp/startOfDecade/package.json | 4 + .../date-fns/esm/fp/startOfHour/index.d.ts | 4 + .../date-fns/esm/fp/startOfHour/index.js | 4 + .../date-fns/esm/fp/startOfHour/index.js.flow | 54 + .../date-fns/esm/fp/startOfHour/package.json | 4 + .../date-fns/esm/fp/startOfISOWeek/index.d.ts | 4 + .../date-fns/esm/fp/startOfISOWeek/index.js | 4 + .../esm/fp/startOfISOWeek/index.js.flow | 54 + .../esm/fp/startOfISOWeek/package.json | 4 + .../esm/fp/startOfISOWeekYear/index.d.ts | 4 + .../esm/fp/startOfISOWeekYear/index.js | 4 + .../esm/fp/startOfISOWeekYear/index.js.flow | 54 + .../esm/fp/startOfISOWeekYear/package.json | 4 + .../date-fns/esm/fp/startOfMinute/index.d.ts | 4 + .../date-fns/esm/fp/startOfMinute/index.js | 4 + .../esm/fp/startOfMinute/index.js.flow | 54 + .../esm/fp/startOfMinute/package.json | 4 + .../date-fns/esm/fp/startOfMonth/index.d.ts | 4 + .../date-fns/esm/fp/startOfMonth/index.js | 4 + .../esm/fp/startOfMonth/index.js.flow | 54 + .../date-fns/esm/fp/startOfMonth/package.json | 4 + .../date-fns/esm/fp/startOfQuarter/index.d.ts | 4 + .../date-fns/esm/fp/startOfQuarter/index.js | 4 + .../esm/fp/startOfQuarter/index.js.flow | 54 + .../esm/fp/startOfQuarter/package.json | 4 + .../date-fns/esm/fp/startOfSecond/index.d.ts | 4 + .../date-fns/esm/fp/startOfSecond/index.js | 4 + .../esm/fp/startOfSecond/index.js.flow | 54 + .../esm/fp/startOfSecond/package.json | 4 + .../date-fns/esm/fp/startOfWeek/index.d.ts | 4 + .../date-fns/esm/fp/startOfWeek/index.js | 4 + .../date-fns/esm/fp/startOfWeek/index.js.flow | 54 + .../date-fns/esm/fp/startOfWeek/package.json | 4 + .../esm/fp/startOfWeekWithOptions/index.d.ts | 4 + .../esm/fp/startOfWeekWithOptions/index.js | 4 + .../fp/startOfWeekWithOptions/index.js.flow | 65 + .../fp/startOfWeekWithOptions/package.json | 4 + .../esm/fp/startOfWeekYear/index.d.ts | 4 + .../date-fns/esm/fp/startOfWeekYear/index.js | 4 + .../esm/fp/startOfWeekYear/index.js.flow | 54 + .../esm/fp/startOfWeekYear/package.json | 4 + .../fp/startOfWeekYearWithOptions/index.d.ts | 4 + .../fp/startOfWeekYearWithOptions/index.js | 4 + .../startOfWeekYearWithOptions/index.js.flow | 66 + .../startOfWeekYearWithOptions/package.json | 4 + .../date-fns/esm/fp/startOfYear/index.d.ts | 4 + .../date-fns/esm/fp/startOfYear/index.js | 4 + .../date-fns/esm/fp/startOfYear/index.js.flow | 54 + .../date-fns/esm/fp/startOfYear/package.json | 4 + node_modules/date-fns/esm/fp/sub/index.d.ts | 4 + node_modules/date-fns/esm/fp/sub/index.js | 4 + .../date-fns/esm/fp/sub/index.js.flow | 58 + node_modules/date-fns/esm/fp/sub/package.json | 4 + .../esm/fp/subBusinessDays/index.d.ts | 4 + .../date-fns/esm/fp/subBusinessDays/index.js | 4 + .../esm/fp/subBusinessDays/index.js.flow | 58 + .../esm/fp/subBusinessDays/package.json | 4 + .../date-fns/esm/fp/subDays/index.d.ts | 4 + node_modules/date-fns/esm/fp/subDays/index.js | 4 + .../date-fns/esm/fp/subDays/index.js.flow | 58 + .../date-fns/esm/fp/subDays/package.json | 4 + .../date-fns/esm/fp/subHours/index.d.ts | 4 + .../date-fns/esm/fp/subHours/index.js | 4 + .../date-fns/esm/fp/subHours/index.js.flow | 58 + .../date-fns/esm/fp/subHours/package.json | 4 + .../esm/fp/subISOWeekYears/index.d.ts | 4 + .../date-fns/esm/fp/subISOWeekYears/index.js | 4 + .../esm/fp/subISOWeekYears/index.js.flow | 58 + .../esm/fp/subISOWeekYears/package.json | 4 + .../esm/fp/subMilliseconds/index.d.ts | 4 + .../date-fns/esm/fp/subMilliseconds/index.js | 4 + .../esm/fp/subMilliseconds/index.js.flow | 58 + .../esm/fp/subMilliseconds/package.json | 4 + .../date-fns/esm/fp/subMinutes/index.d.ts | 4 + .../date-fns/esm/fp/subMinutes/index.js | 4 + .../date-fns/esm/fp/subMinutes/index.js.flow | 58 + .../date-fns/esm/fp/subMinutes/package.json | 4 + .../date-fns/esm/fp/subMonths/index.d.ts | 4 + .../date-fns/esm/fp/subMonths/index.js | 4 + .../date-fns/esm/fp/subMonths/index.js.flow | 58 + .../date-fns/esm/fp/subMonths/package.json | 4 + .../date-fns/esm/fp/subQuarters/index.d.ts | 4 + .../date-fns/esm/fp/subQuarters/index.js | 4 + .../date-fns/esm/fp/subQuarters/index.js.flow | 58 + .../date-fns/esm/fp/subQuarters/package.json | 4 + .../date-fns/esm/fp/subSeconds/index.d.ts | 4 + .../date-fns/esm/fp/subSeconds/index.js | 4 + .../date-fns/esm/fp/subSeconds/index.js.flow | 58 + .../date-fns/esm/fp/subSeconds/package.json | 4 + .../date-fns/esm/fp/subWeeks/index.d.ts | 4 + .../date-fns/esm/fp/subWeeks/index.js | 4 + .../date-fns/esm/fp/subWeeks/index.js.flow | 58 + .../date-fns/esm/fp/subWeeks/package.json | 4 + .../date-fns/esm/fp/subYears/index.d.ts | 4 + .../date-fns/esm/fp/subYears/index.js | 4 + .../date-fns/esm/fp/subYears/index.js.flow | 58 + .../date-fns/esm/fp/subYears/package.json | 4 + .../date-fns/esm/fp/toDate/index.d.ts | 4 + node_modules/date-fns/esm/fp/toDate/index.js | 4 + .../date-fns/esm/fp/toDate/index.js.flow | 54 + .../date-fns/esm/fp/toDate/package.json | 4 + .../date-fns/esm/fp/weeksToDays/index.d.ts | 4 + .../date-fns/esm/fp/weeksToDays/index.js | 4 + .../date-fns/esm/fp/weeksToDays/index.js.flow | 54 + .../date-fns/esm/fp/weeksToDays/package.json | 4 + .../date-fns/esm/fp/yearsToMonths/index.d.ts | 4 + .../date-fns/esm/fp/yearsToMonths/index.js | 4 + .../esm/fp/yearsToMonths/index.js.flow | 54 + .../esm/fp/yearsToMonths/package.json | 4 + .../esm/fp/yearsToQuarters/index.d.ts | 4 + .../date-fns/esm/fp/yearsToQuarters/index.js | 4 + .../esm/fp/yearsToQuarters/index.js.flow | 54 + .../esm/fp/yearsToQuarters/package.json | 4 + .../date-fns/esm/fromUnixTime/index.d.ts | 4 + .../date-fns/esm/fromUnixTime/index.js | 26 + .../date-fns/esm/fromUnixTime/index.js.flow | 52 + .../date-fns/esm/fromUnixTime/package.json | 4 + node_modules/date-fns/esm/getDate/index.d.ts | 4 + node_modules/date-fns/esm/getDate/index.js | 26 + .../date-fns/esm/getDate/index.js.flow | 52 + .../date-fns/esm/getDate/package.json | 4 + node_modules/date-fns/esm/getDay/index.d.ts | 4 + node_modules/date-fns/esm/getDay/index.js | 26 + .../date-fns/esm/getDay/index.js.flow | 52 + node_modules/date-fns/esm/getDay/package.json | 4 + .../date-fns/esm/getDayOfYear/index.d.ts | 4 + .../date-fns/esm/getDayOfYear/index.js | 29 + .../date-fns/esm/getDayOfYear/index.js.flow | 52 + .../date-fns/esm/getDayOfYear/package.json | 4 + .../date-fns/esm/getDaysInMonth/index.d.ts | 4 + .../date-fns/esm/getDaysInMonth/index.js | 30 + .../date-fns/esm/getDaysInMonth/index.js.flow | 52 + .../date-fns/esm/getDaysInMonth/package.json | 4 + .../date-fns/esm/getDaysInYear/index.d.ts | 4 + .../date-fns/esm/getDaysInYear/index.js | 31 + .../date-fns/esm/getDaysInYear/index.js.flow | 52 + .../date-fns/esm/getDaysInYear/package.json | 4 + .../date-fns/esm/getDecade/index.d.ts | 4 + node_modules/date-fns/esm/getDecade/index.js | 27 + .../date-fns/esm/getDecade/index.js.flow | 52 + .../date-fns/esm/getDecade/package.json | 4 + .../date-fns/esm/getDefaultOptions/index.d.ts | 4 + .../date-fns/esm/getDefaultOptions/index.js | 30 + .../esm/getDefaultOptions/index.js.flow | 52 + .../esm/getDefaultOptions/package.json | 4 + node_modules/date-fns/esm/getHours/index.d.ts | 4 + node_modules/date-fns/esm/getHours/index.js | 26 + .../date-fns/esm/getHours/index.js.flow | 52 + .../date-fns/esm/getHours/package.json | 4 + .../date-fns/esm/getISODay/index.d.ts | 4 + node_modules/date-fns/esm/getISODay/index.js | 34 + .../date-fns/esm/getISODay/index.js.flow | 52 + .../date-fns/esm/getISODay/package.json | 4 + .../date-fns/esm/getISOWeek/index.d.ts | 4 + node_modules/date-fns/esm/getISOWeek/index.js | 34 + .../date-fns/esm/getISOWeek/index.js.flow | 52 + .../date-fns/esm/getISOWeek/package.json | 4 + .../date-fns/esm/getISOWeekYear/index.d.ts | 4 + .../date-fns/esm/getISOWeekYear/index.js | 45 + .../date-fns/esm/getISOWeekYear/index.js.flow | 52 + .../date-fns/esm/getISOWeekYear/package.json | 4 + .../date-fns/esm/getISOWeeksInYear/index.d.ts | 4 + .../date-fns/esm/getISOWeeksInYear/index.js | 34 + .../esm/getISOWeeksInYear/index.js.flow | 52 + .../esm/getISOWeeksInYear/package.json | 4 + .../date-fns/esm/getMilliseconds/index.d.ts | 4 + .../date-fns/esm/getMilliseconds/index.js | 26 + .../esm/getMilliseconds/index.js.flow | 52 + .../date-fns/esm/getMilliseconds/package.json | 4 + .../date-fns/esm/getMinutes/index.d.ts | 4 + node_modules/date-fns/esm/getMinutes/index.js | 26 + .../date-fns/esm/getMinutes/index.js.flow | 52 + .../date-fns/esm/getMinutes/package.json | 4 + node_modules/date-fns/esm/getMonth/index.d.ts | 4 + node_modules/date-fns/esm/getMonth/index.js | 26 + .../date-fns/esm/getMonth/index.js.flow | 52 + .../date-fns/esm/getMonth/package.json | 4 + .../getOverlappingDaysInIntervals/index.d.ts | 4 + .../getOverlappingDaysInIntervals/index.js | 59 + .../index.js.flow | 55 + .../package.json | 4 + .../date-fns/esm/getQuarter/index.d.ts | 4 + node_modules/date-fns/esm/getQuarter/index.js | 26 + .../date-fns/esm/getQuarter/index.js.flow | 52 + .../date-fns/esm/getQuarter/package.json | 4 + .../date-fns/esm/getSeconds/index.d.ts | 4 + node_modules/date-fns/esm/getSeconds/index.js | 26 + .../date-fns/esm/getSeconds/index.js.flow | 52 + .../date-fns/esm/getSeconds/package.json | 4 + node_modules/date-fns/esm/getTime/index.d.ts | 4 + node_modules/date-fns/esm/getTime/index.js | 26 + .../date-fns/esm/getTime/index.js.flow | 52 + .../date-fns/esm/getTime/package.json | 4 + .../date-fns/esm/getUnixTime/index.d.ts | 4 + .../date-fns/esm/getUnixTime/index.js | 24 + .../date-fns/esm/getUnixTime/index.js.flow | 52 + .../date-fns/esm/getUnixTime/package.json | 4 + node_modules/date-fns/esm/getWeek/index.d.ts | 4 + node_modules/date-fns/esm/getWeek/index.js | 53 + .../date-fns/esm/getWeek/index.js.flow | 59 + .../date-fns/esm/getWeek/package.json | 4 + .../date-fns/esm/getWeekOfMonth/index.d.ts | 4 + .../date-fns/esm/getWeekOfMonth/index.js | 47 + .../date-fns/esm/getWeekOfMonth/index.js.flow | 58 + .../date-fns/esm/getWeekOfMonth/package.json | 4 + .../date-fns/esm/getWeekYear/index.d.ts | 4 + .../date-fns/esm/getWeekYear/index.js | 75 + .../date-fns/esm/getWeekYear/index.js.flow | 59 + .../date-fns/esm/getWeekYear/package.json | 4 + .../date-fns/esm/getWeeksInMonth/index.d.ts | 4 + .../date-fns/esm/getWeeksInMonth/index.js | 36 + .../esm/getWeeksInMonth/index.js.flow | 58 + .../date-fns/esm/getWeeksInMonth/package.json | 4 + node_modules/date-fns/esm/getYear/index.d.ts | 4 + node_modules/date-fns/esm/getYear/index.js | 24 + .../date-fns/esm/getYear/index.js.flow | 52 + .../date-fns/esm/getYear/package.json | 4 + .../esm/hoursToMilliseconds/index.d.ts | 4 + .../date-fns/esm/hoursToMilliseconds/index.js | 25 + .../esm/hoursToMilliseconds/index.js.flow | 52 + .../esm/hoursToMilliseconds/package.json | 4 + .../date-fns/esm/hoursToMinutes/index.d.ts | 4 + .../date-fns/esm/hoursToMinutes/index.js | 25 + .../date-fns/esm/hoursToMinutes/index.js.flow | 52 + .../date-fns/esm/hoursToMinutes/package.json | 4 + .../date-fns/esm/hoursToSeconds/index.d.ts | 4 + .../date-fns/esm/hoursToSeconds/index.js | 25 + .../date-fns/esm/hoursToSeconds/index.js.flow | 52 + .../date-fns/esm/hoursToSeconds/package.json | 4 + node_modules/date-fns/esm/index.js | 241 + node_modules/date-fns/esm/index.js.flow | 926 + .../esm/intervalToDuration/index.d.ts | 4 + .../date-fns/esm/intervalToDuration/index.js | 65 + .../esm/intervalToDuration/index.js.flow | 52 + .../esm/intervalToDuration/package.json | 4 + .../date-fns/esm/intlFormat/index.d.ts | 4 + node_modules/date-fns/esm/intlFormat/index.js | 90 + .../date-fns/esm/intlFormat/index.js.flow | 72 + .../date-fns/esm/intlFormat/package.json | 4 + .../esm/intlFormatDistance/index.d.ts | 4 + .../date-fns/esm/intlFormatDistance/index.js | 184 + .../esm/intlFormatDistance/index.js.flow | 62 + .../esm/intlFormatDistance/package.json | 4 + node_modules/date-fns/esm/isAfter/index.d.ts | 4 + node_modules/date-fns/esm/isAfter/index.js | 27 + .../date-fns/esm/isAfter/index.js.flow | 55 + .../date-fns/esm/isAfter/package.json | 4 + node_modules/date-fns/esm/isBefore/index.d.ts | 4 + node_modules/date-fns/esm/isBefore/index.js | 27 + .../date-fns/esm/isBefore/index.js.flow | 55 + .../date-fns/esm/isBefore/package.json | 4 + node_modules/date-fns/esm/isDate/index.d.ts | 4 + node_modules/date-fns/esm/isDate/index.js | 40 + .../date-fns/esm/isDate/index.js.flow | 52 + node_modules/date-fns/esm/isDate/package.json | 4 + node_modules/date-fns/esm/isEqual/index.d.ts | 4 + node_modules/date-fns/esm/isEqual/index.js | 30 + .../date-fns/esm/isEqual/index.js.flow | 55 + .../date-fns/esm/isEqual/package.json | 4 + node_modules/date-fns/esm/isExists/index.d.ts | 4 + node_modules/date-fns/esm/isExists/index.js | 32 + .../date-fns/esm/isExists/index.js.flow | 52 + .../date-fns/esm/isExists/package.json | 4 + .../date-fns/esm/isFirstDayOfMonth/index.d.ts | 4 + .../date-fns/esm/isFirstDayOfMonth/index.js | 24 + .../esm/isFirstDayOfMonth/index.js.flow | 52 + .../esm/isFirstDayOfMonth/package.json | 4 + node_modules/date-fns/esm/isFriday/index.d.ts | 4 + node_modules/date-fns/esm/isFriday/index.js | 24 + .../date-fns/esm/isFriday/index.js.flow | 52 + .../date-fns/esm/isFriday/package.json | 4 + node_modules/date-fns/esm/isFuture/index.d.ts | 4 + node_modules/date-fns/esm/isFuture/index.js | 28 + .../date-fns/esm/isFuture/index.js.flow | 52 + .../date-fns/esm/isFuture/package.json | 4 + .../date-fns/esm/isLastDayOfMonth/index.d.ts | 4 + .../date-fns/esm/isLastDayOfMonth/index.js | 27 + .../esm/isLastDayOfMonth/index.js.flow | 52 + .../esm/isLastDayOfMonth/package.json | 4 + .../date-fns/esm/isLeapYear/index.d.ts | 4 + node_modules/date-fns/esm/isLeapYear/index.js | 26 + .../date-fns/esm/isLeapYear/index.js.flow | 52 + .../date-fns/esm/isLeapYear/package.json | 4 + node_modules/date-fns/esm/isMatch/index.d.ts | 4 + node_modules/date-fns/esm/isMatch/index.js | 300 + .../date-fns/esm/isMatch/index.js.flow | 62 + .../date-fns/esm/isMatch/package.json | 4 + node_modules/date-fns/esm/isMonday/index.d.ts | 4 + node_modules/date-fns/esm/isMonday/index.js | 24 + .../date-fns/esm/isMonday/index.js.flow | 52 + .../date-fns/esm/isMonday/package.json | 4 + node_modules/date-fns/esm/isPast/index.d.ts | 4 + node_modules/date-fns/esm/isPast/index.js | 28 + .../date-fns/esm/isPast/index.js.flow | 52 + node_modules/date-fns/esm/isPast/package.json | 4 + .../date-fns/esm/isSameDay/index.d.ts | 4 + node_modules/date-fns/esm/isSameDay/index.js | 37 + .../date-fns/esm/isSameDay/index.js.flow | 55 + .../date-fns/esm/isSameDay/package.json | 4 + .../date-fns/esm/isSameHour/index.d.ts | 4 + node_modules/date-fns/esm/isSameHour/index.js | 32 + .../date-fns/esm/isSameHour/index.js.flow | 55 + .../date-fns/esm/isSameHour/package.json | 4 + .../date-fns/esm/isSameISOWeek/index.d.ts | 4 + .../date-fns/esm/isSameISOWeek/index.js | 34 + .../date-fns/esm/isSameISOWeek/index.js.flow | 55 + .../date-fns/esm/isSameISOWeek/package.json | 4 + .../date-fns/esm/isSameISOWeekYear/index.d.ts | 4 + .../date-fns/esm/isSameISOWeekYear/index.js | 29 + .../esm/isSameISOWeekYear/index.js.flow | 55 + .../esm/isSameISOWeekYear/package.json | 4 + .../date-fns/esm/isSameMinute/index.d.ts | 4 + .../date-fns/esm/isSameMinute/index.js | 38 + .../date-fns/esm/isSameMinute/index.js.flow | 55 + .../date-fns/esm/isSameMinute/package.json | 4 + .../date-fns/esm/isSameMonth/index.d.ts | 4 + .../date-fns/esm/isSameMonth/index.js | 32 + .../date-fns/esm/isSameMonth/index.js.flow | 55 + .../date-fns/esm/isSameMonth/package.json | 4 + .../date-fns/esm/isSameQuarter/index.d.ts | 4 + .../date-fns/esm/isSameQuarter/index.js | 32 + .../date-fns/esm/isSameQuarter/index.js.flow | 55 + .../date-fns/esm/isSameQuarter/package.json | 4 + .../date-fns/esm/isSameSecond/index.d.ts | 4 + .../date-fns/esm/isSameSecond/index.js | 46 + .../date-fns/esm/isSameSecond/index.js.flow | 55 + .../date-fns/esm/isSameSecond/package.json | 4 + .../date-fns/esm/isSameWeek/index.d.ts | 4 + node_modules/date-fns/esm/isSameWeek/index.js | 44 + .../date-fns/esm/isSameWeek/index.js.flow | 59 + .../date-fns/esm/isSameWeek/package.json | 4 + .../date-fns/esm/isSameYear/index.d.ts | 4 + node_modules/date-fns/esm/isSameYear/index.js | 27 + .../date-fns/esm/isSameYear/index.js.flow | 55 + .../date-fns/esm/isSameYear/package.json | 4 + .../date-fns/esm/isSaturday/index.d.ts | 4 + node_modules/date-fns/esm/isSaturday/index.js | 24 + .../date-fns/esm/isSaturday/index.js.flow | 52 + .../date-fns/esm/isSaturday/package.json | 4 + node_modules/date-fns/esm/isSunday/index.d.ts | 4 + node_modules/date-fns/esm/isSunday/index.js | 24 + .../date-fns/esm/isSunday/index.js.flow | 52 + .../date-fns/esm/isSunday/package.json | 4 + .../date-fns/esm/isThisHour/index.d.ts | 4 + node_modules/date-fns/esm/isThisHour/index.js | 29 + .../date-fns/esm/isThisHour/index.js.flow | 52 + .../date-fns/esm/isThisHour/package.json | 4 + .../date-fns/esm/isThisISOWeek/index.d.ts | 4 + .../date-fns/esm/isThisISOWeek/index.js | 30 + .../date-fns/esm/isThisISOWeek/index.js.flow | 52 + .../date-fns/esm/isThisISOWeek/package.json | 4 + .../date-fns/esm/isThisMinute/index.d.ts | 4 + .../date-fns/esm/isThisMinute/index.js | 29 + .../date-fns/esm/isThisMinute/index.js.flow | 52 + .../date-fns/esm/isThisMinute/package.json | 4 + .../date-fns/esm/isThisMonth/index.d.ts | 4 + .../date-fns/esm/isThisMonth/index.js | 28 + .../date-fns/esm/isThisMonth/index.js.flow | 52 + .../date-fns/esm/isThisMonth/package.json | 4 + .../date-fns/esm/isThisQuarter/index.d.ts | 4 + .../date-fns/esm/isThisQuarter/index.js | 28 + .../date-fns/esm/isThisQuarter/index.js.flow | 52 + .../date-fns/esm/isThisQuarter/package.json | 4 + .../date-fns/esm/isThisSecond/index.d.ts | 4 + .../date-fns/esm/isThisSecond/index.js | 29 + .../date-fns/esm/isThisSecond/index.js.flow | 52 + .../date-fns/esm/isThisSecond/package.json | 4 + .../date-fns/esm/isThisWeek/index.d.ts | 4 + node_modules/date-fns/esm/isThisWeek/index.js | 38 + .../date-fns/esm/isThisWeek/index.js.flow | 58 + .../date-fns/esm/isThisWeek/package.json | 4 + .../date-fns/esm/isThisYear/index.d.ts | 4 + node_modules/date-fns/esm/isThisYear/index.js | 28 + .../date-fns/esm/isThisYear/index.js.flow | 52 + .../date-fns/esm/isThisYear/package.json | 4 + .../date-fns/esm/isThursday/index.d.ts | 4 + node_modules/date-fns/esm/isThursday/index.js | 24 + .../date-fns/esm/isThursday/index.js.flow | 52 + .../date-fns/esm/isThursday/package.json | 4 + node_modules/date-fns/esm/isToday/index.d.ts | 4 + node_modules/date-fns/esm/isToday/index.js | 28 + .../date-fns/esm/isToday/index.js.flow | 52 + .../date-fns/esm/isToday/package.json | 4 + .../date-fns/esm/isTomorrow/index.d.ts | 4 + node_modules/date-fns/esm/isTomorrow/index.js | 29 + .../date-fns/esm/isTomorrow/index.js.flow | 52 + .../date-fns/esm/isTomorrow/package.json | 4 + .../date-fns/esm/isTuesday/index.d.ts | 4 + node_modules/date-fns/esm/isTuesday/index.js | 24 + .../date-fns/esm/isTuesday/index.js.flow | 52 + .../date-fns/esm/isTuesday/package.json | 4 + node_modules/date-fns/esm/isValid/index.d.ts | 4 + node_modules/date-fns/esm/isValid/index.js | 45 + .../date-fns/esm/isValid/index.js.flow | 52 + .../date-fns/esm/isValid/package.json | 4 + .../date-fns/esm/isWednesday/index.d.ts | 4 + .../date-fns/esm/isWednesday/index.js | 24 + .../date-fns/esm/isWednesday/index.js.flow | 52 + .../date-fns/esm/isWednesday/package.json | 4 + .../date-fns/esm/isWeekend/index.d.ts | 4 + node_modules/date-fns/esm/isWeekend/index.js | 26 + .../date-fns/esm/isWeekend/index.js.flow | 52 + .../date-fns/esm/isWeekend/package.json | 4 + .../date-fns/esm/isWithinInterval/index.d.ts | 4 + .../date-fns/esm/isWithinInterval/index.js | 54 + .../esm/isWithinInterval/index.js.flow | 52 + .../esm/isWithinInterval/package.json | 4 + .../date-fns/esm/isYesterday/index.d.ts | 4 + .../date-fns/esm/isYesterday/index.js | 29 + .../date-fns/esm/isYesterday/index.js.flow | 52 + .../date-fns/esm/isYesterday/package.json | 4 + .../date-fns/esm/lastDayOfDecade/index.d.ts | 4 + .../date-fns/esm/lastDayOfDecade/index.js | 29 + .../esm/lastDayOfDecade/index.js.flow | 52 + .../date-fns/esm/lastDayOfDecade/package.json | 4 + .../date-fns/esm/lastDayOfISOWeek/index.d.ts | 4 + .../date-fns/esm/lastDayOfISOWeek/index.js | 29 + .../esm/lastDayOfISOWeek/index.js.flow | 52 + .../esm/lastDayOfISOWeek/package.json | 4 + .../esm/lastDayOfISOWeekYear/index.d.ts | 4 + .../esm/lastDayOfISOWeekYear/index.js | 35 + .../esm/lastDayOfISOWeekYear/index.js.flow | 52 + .../esm/lastDayOfISOWeekYear/package.json | 4 + .../date-fns/esm/lastDayOfMonth/index.d.ts | 4 + .../date-fns/esm/lastDayOfMonth/index.js | 29 + .../date-fns/esm/lastDayOfMonth/index.js.flow | 52 + .../date-fns/esm/lastDayOfMonth/package.json | 4 + .../date-fns/esm/lastDayOfQuarter/index.d.ts | 4 + .../date-fns/esm/lastDayOfQuarter/index.js | 33 + .../esm/lastDayOfQuarter/index.js.flow | 57 + .../esm/lastDayOfQuarter/package.json | 4 + .../date-fns/esm/lastDayOfWeek/index.d.ts | 4 + .../date-fns/esm/lastDayOfWeek/index.js | 50 + .../date-fns/esm/lastDayOfWeek/index.js.flow | 58 + .../date-fns/esm/lastDayOfWeek/package.json | 4 + .../date-fns/esm/lastDayOfYear/index.d.ts | 4 + .../date-fns/esm/lastDayOfYear/index.js | 29 + .../date-fns/esm/lastDayOfYear/index.js.flow | 52 + .../date-fns/esm/lastDayOfYear/package.json | 4 + .../date-fns/esm/lightFormat/index.d.ts | 4 + .../date-fns/esm/lightFormat/index.js | 127 + .../date-fns/esm/lightFormat/index.js.flow | 52 + .../date-fns/esm/lightFormat/package.json | 4 + .../locale/_lib/buildFormatLongFn/index.js | 9 + .../esm/locale/_lib/buildLocalizeFn/index.js | 22 + .../esm/locale/_lib/buildMatchFn/index.js | 48 + .../locale/_lib/buildMatchPatternFn/index.js | 17 + .../locale/af/_lib/formatDistance/index.js | 88 + .../esm/locale/af/_lib/formatLong/index.js | 34 + .../locale/af/_lib/formatRelative/index.js | 14 + .../esm/locale/af/_lib/localize/index.js | 134 + .../esm/locale/af/_lib/match/index.js | 97 + .../date-fns/esm/locale/af/index.d.ts | 4 + node_modules/date-fns/esm/locale/af/index.js | 29 + .../date-fns/esm/locale/af/index.js.flow | 35 + .../date-fns/esm/locale/af/package.json | 4 + .../locale/ar-DZ/_lib/formatDistance/index.js | 123 + .../esm/locale/ar-DZ/_lib/formatLong/index.js | 34 + .../locale/ar-DZ/_lib/formatRelative/index.js | 14 + .../esm/locale/ar-DZ/_lib/localize/index.js | 120 + .../esm/locale/ar-DZ/_lib/match/index.js | 99 + .../date-fns/esm/locale/ar-DZ/index.d.ts | 4 + .../date-fns/esm/locale/ar-DZ/index.js | 30 + .../date-fns/esm/locale/ar-DZ/index.js.flow | 35 + .../date-fns/esm/locale/ar-DZ/package.json | 4 + .../locale/ar-EG/_lib/formatDistance/index.js | 122 + .../esm/locale/ar-EG/_lib/formatLong/index.js | 34 + .../locale/ar-EG/_lib/formatRelative/index.js | 14 + .../esm/locale/ar-EG/_lib/localize/index.js | 120 + .../esm/locale/ar-EG/_lib/match/index.js | 101 + .../date-fns/esm/locale/ar-EG/index.d.ts | 4 + .../date-fns/esm/locale/ar-EG/index.js | 29 + .../date-fns/esm/locale/ar-EG/index.js.flow | 35 + .../date-fns/esm/locale/ar-EG/package.json | 4 + .../locale/ar-MA/_lib/formatDistance/index.js | 123 + .../esm/locale/ar-MA/_lib/formatLong/index.js | 34 + .../locale/ar-MA/_lib/formatRelative/index.js | 14 + .../esm/locale/ar-MA/_lib/localize/index.js | 120 + .../esm/locale/ar-MA/_lib/match/index.js | 99 + .../date-fns/esm/locale/ar-MA/index.d.ts | 4 + .../date-fns/esm/locale/ar-MA/index.js | 28 + .../date-fns/esm/locale/ar-MA/index.js.flow | 35 + .../date-fns/esm/locale/ar-MA/package.json | 4 + .../locale/ar-SA/_lib/formatDistance/index.js | 122 + .../esm/locale/ar-SA/_lib/formatLong/index.js | 34 + .../locale/ar-SA/_lib/formatRelative/index.js | 14 + .../esm/locale/ar-SA/_lib/localize/index.js | 120 + .../esm/locale/ar-SA/_lib/match/index.js | 99 + .../date-fns/esm/locale/ar-SA/index.d.ts | 4 + .../date-fns/esm/locale/ar-SA/index.js | 29 + .../date-fns/esm/locale/ar-SA/index.js.flow | 35 + .../date-fns/esm/locale/ar-SA/package.json | 4 + .../locale/ar-TN/_lib/formatDistance/index.js | 122 + .../esm/locale/ar-TN/_lib/formatLong/index.js | 34 + .../locale/ar-TN/_lib/formatRelative/index.js | 14 + .../esm/locale/ar-TN/_lib/localize/index.js | 120 + .../esm/locale/ar-TN/_lib/match/index.js | 99 + .../date-fns/esm/locale/ar-TN/index.d.ts | 4 + .../date-fns/esm/locale/ar-TN/index.js | 29 + .../date-fns/esm/locale/ar-TN/index.js.flow | 35 + .../date-fns/esm/locale/ar-TN/package.json | 4 + .../locale/ar/_lib/formatDistance/index.js | 122 + .../esm/locale/ar/_lib/formatLong/index.js | 34 + .../locale/ar/_lib/formatRelative/index.js | 14 + .../esm/locale/ar/_lib/localize/index.js | 120 + .../esm/locale/ar/_lib/match/index.js | 99 + .../date-fns/esm/locale/ar/index.d.ts | 4 + node_modules/date-fns/esm/locale/ar/index.js | 30 + .../date-fns/esm/locale/ar/index.js.flow | 35 + .../date-fns/esm/locale/ar/package.json | 4 + .../locale/az/_lib/formatDistance/index.js | 88 + .../esm/locale/az/_lib/formatLong/index.js | 34 + .../locale/az/_lib/formatRelative/index.js | 14 + .../esm/locale/az/_lib/localize/index.js | 163 + .../esm/locale/az/_lib/match/index.js | 101 + .../date-fns/esm/locale/az/index.d.ts | 4 + node_modules/date-fns/esm/locale/az/index.js | 26 + .../date-fns/esm/locale/az/index.js.flow | 35 + .../date-fns/esm/locale/az/package.json | 4 + .../be-tarask/_lib/formatDistance/index.js | 247 + .../locale/be-tarask/_lib/formatLong/index.js | 31 + .../be-tarask/_lib/formatRelative/index.js | 85 + .../locale/be-tarask/_lib/localize/index.js | 151 + .../esm/locale/be-tarask/_lib/match/index.js | 99 + .../date-fns/esm/locale/be-tarask/index.d.ts | 4 + .../date-fns/esm/locale/be-tarask/index.js | 29 + .../esm/locale/be-tarask/index.js.flow | 35 + .../esm/locale/be-tarask/package.json | 4 + .../locale/be/_lib/formatDistance/index.js | 247 + .../esm/locale/be/_lib/formatLong/index.js | 31 + .../locale/be/_lib/formatRelative/index.js | 85 + .../esm/locale/be/_lib/localize/index.js | 151 + .../esm/locale/be/_lib/match/index.js | 99 + .../date-fns/esm/locale/be/index.d.ts | 4 + node_modules/date-fns/esm/locale/be/index.js | 30 + .../date-fns/esm/locale/be/index.js.flow | 35 + .../date-fns/esm/locale/be/package.json | 4 + .../locale/bg/_lib/formatDistance/index.js | 88 + .../esm/locale/bg/_lib/formatLong/index.js | 31 + .../locale/bg/_lib/formatRelative/index.js | 93 + .../esm/locale/bg/_lib/localize/index.js | 105 + .../esm/locale/bg/_lib/match/index.js | 95 + .../date-fns/esm/locale/bg/index.d.ts | 4 + node_modules/date-fns/esm/locale/bg/index.js | 30 + .../date-fns/esm/locale/bg/index.js.flow | 35 + .../date-fns/esm/locale/bg/package.json | 4 + .../locale/bn/_lib/formatDistance/index.js | 89 + .../esm/locale/bn/_lib/formatLong/index.js | 34 + .../locale/bn/_lib/formatRelative/index.js | 14 + .../esm/locale/bn/_lib/localize/index.js | 202 + .../esm/locale/bn/_lib/match/index.js | 102 + .../date-fns/esm/locale/bn/index.d.ts | 4 + node_modules/date-fns/esm/locale/bn/index.js | 30 + .../date-fns/esm/locale/bn/index.js.flow | 35 + .../date-fns/esm/locale/bn/package.json | 4 + .../locale/bs/_lib/formatDistance/index.js | 175 + .../esm/locale/bs/_lib/formatLong/index.js | 34 + .../locale/bs/_lib/formatRelative/index.js | 48 + .../esm/locale/bs/_lib/localize/index.js | 128 + .../esm/locale/bs/_lib/match/index.js | 97 + .../date-fns/esm/locale/bs/index.d.ts | 4 + node_modules/date-fns/esm/locale/bs/index.js | 29 + .../date-fns/esm/locale/bs/index.js.flow | 35 + .../date-fns/esm/locale/bs/package.json | 4 + .../locale/ca/_lib/formatDistance/index.js | 103 + .../esm/locale/ca/_lib/formatLong/index.js | 34 + .../locale/ca/_lib/formatRelative/index.js | 26 + .../esm/locale/ca/_lib/localize/index.js | 185 + .../esm/locale/ca/_lib/match/index.js | 103 + .../date-fns/esm/locale/ca/index.d.ts | 4 + node_modules/date-fns/esm/locale/ca/index.js | 30 + .../date-fns/esm/locale/ca/index.js.flow | 35 + .../date-fns/esm/locale/ca/package.json | 4 + .../locale/cs/_lib/formatDistance/index.js | 297 + .../esm/locale/cs/_lib/formatLong/index.js | 34 + .../locale/cs/_lib/formatRelative/index.js | 24 + .../esm/locale/cs/_lib/localize/index.js | 128 + .../esm/locale/cs/_lib/match/index.js | 97 + .../date-fns/esm/locale/cs/index.d.ts | 4 + node_modules/date-fns/esm/locale/cs/index.js | 31 + .../date-fns/esm/locale/cs/index.js.flow | 35 + .../date-fns/esm/locale/cs/package.json | 4 + .../locale/cy/_lib/formatDistance/index.js | 101 + .../esm/locale/cy/_lib/formatLong/index.js | 34 + .../locale/cy/_lib/formatRelative/index.js | 14 + .../esm/locale/cy/_lib/localize/index.js | 166 + .../esm/locale/cy/_lib/match/index.js | 100 + .../date-fns/esm/locale/cy/index.d.ts | 4 + node_modules/date-fns/esm/locale/cy/index.js | 29 + .../date-fns/esm/locale/cy/index.js.flow | 35 + .../date-fns/esm/locale/cy/package.json | 4 + .../locale/da/_lib/formatDistance/index.js | 88 + .../esm/locale/da/_lib/formatLong/index.js | 34 + .../locale/da/_lib/formatRelative/index.js | 14 + .../esm/locale/da/_lib/localize/index.js | 124 + .../esm/locale/da/_lib/match/index.js | 98 + .../date-fns/esm/locale/da/index.d.ts | 4 + node_modules/date-fns/esm/locale/da/index.js | 32 + .../date-fns/esm/locale/da/index.js.flow | 35 + .../date-fns/esm/locale/da/package.json | 4 + .../esm/locale/de-AT/_lib/localize/index.js | 133 + .../date-fns/esm/locale/de-AT/index.d.ts | 4 + .../date-fns/esm/locale/de-AT/index.js | 30 + .../date-fns/esm/locale/de-AT/index.js.flow | 35 + .../date-fns/esm/locale/de-AT/package.json | 4 + .../locale/de/_lib/formatDistance/index.js | 181 + .../esm/locale/de/_lib/formatLong/index.js | 39 + .../locale/de/_lib/formatRelative/index.js | 14 + .../esm/locale/de/_lib/localize/index.js | 133 + .../esm/locale/de/_lib/match/index.js | 100 + .../date-fns/esm/locale/de/index.d.ts | 4 + node_modules/date-fns/esm/locale/de/index.js | 33 + .../date-fns/esm/locale/de/index.js.flow | 35 + .../date-fns/esm/locale/de/package.json | 4 + .../locale/el/_lib/formatDistance/index.js | 88 + .../esm/locale/el/_lib/formatLong/index.js | 34 + .../locale/el/_lib/formatRelative/index.js | 25 + .../esm/locale/el/_lib/localize/index.js | 105 + .../esm/locale/el/_lib/match/index.js | 98 + .../date-fns/esm/locale/el/index.d.ts | 4 + node_modules/date-fns/esm/locale/el/index.js | 30 + .../date-fns/esm/locale/el/index.js.flow | 35 + .../date-fns/esm/locale/el/package.json | 4 + .../esm/locale/en-AU/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-AU/index.d.ts | 4 + .../date-fns/esm/locale/en-AU/index.js | 29 + .../date-fns/esm/locale/en-AU/index.js.flow | 35 + .../date-fns/esm/locale/en-AU/package.json | 4 + .../locale/en-CA/_lib/formatDistance/index.js | 88 + .../esm/locale/en-CA/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-CA/index.d.ts | 4 + .../date-fns/esm/locale/en-CA/index.js | 30 + .../date-fns/esm/locale/en-CA/index.js.flow | 35 + .../date-fns/esm/locale/en-CA/package.json | 4 + .../esm/locale/en-GB/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-GB/index.d.ts | 4 + .../date-fns/esm/locale/en-GB/index.js | 29 + .../date-fns/esm/locale/en-GB/index.js.flow | 35 + .../date-fns/esm/locale/en-GB/package.json | 4 + .../date-fns/esm/locale/en-IE/index.d.ts | 4 + .../date-fns/esm/locale/en-IE/index.js | 29 + .../date-fns/esm/locale/en-IE/index.js.flow | 35 + .../date-fns/esm/locale/en-IE/package.json | 4 + .../esm/locale/en-IN/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-IN/index.d.ts | 4 + .../date-fns/esm/locale/en-IN/index.js | 29 + .../date-fns/esm/locale/en-IN/index.js.flow | 35 + .../date-fns/esm/locale/en-IN/package.json | 4 + .../esm/locale/en-NZ/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-NZ/index.d.ts | 4 + .../date-fns/esm/locale/en-NZ/index.js | 29 + .../date-fns/esm/locale/en-NZ/index.js.flow | 35 + .../date-fns/esm/locale/en-NZ/package.json | 4 + .../locale/en-US/_lib/formatDistance/index.js | 88 + .../esm/locale/en-US/_lib/formatLong/index.js | 34 + .../locale/en-US/_lib/formatRelative/index.js | 14 + .../esm/locale/en-US/_lib/localize/index.js | 146 + .../esm/locale/en-US/_lib/match/index.js | 98 + .../date-fns/esm/locale/en-US/index.d.ts | 4 + .../date-fns/esm/locale/en-US/index.js | 30 + .../date-fns/esm/locale/en-US/index.js.flow | 35 + .../date-fns/esm/locale/en-US/package.json | 4 + .../esm/locale/en-ZA/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/en-ZA/index.d.ts | 4 + .../date-fns/esm/locale/en-ZA/index.js | 29 + .../date-fns/esm/locale/en-ZA/index.js.flow | 35 + .../date-fns/esm/locale/en-ZA/package.json | 4 + .../locale/eo/_lib/formatDistance/index.js | 88 + .../esm/locale/eo/_lib/formatLong/index.js | 31 + .../locale/eo/_lib/formatRelative/index.js | 14 + .../esm/locale/eo/_lib/localize/index.js | 87 + .../esm/locale/eo/_lib/match/index.js | 99 + .../date-fns/esm/locale/eo/index.d.ts | 4 + node_modules/date-fns/esm/locale/eo/index.js | 29 + .../date-fns/esm/locale/eo/index.js.flow | 35 + .../date-fns/esm/locale/eo/package.json | 4 + .../locale/es/_lib/formatDistance/index.js | 88 + .../esm/locale/es/_lib/formatLong/index.js | 34 + .../locale/es/_lib/formatRelative/index.js | 26 + .../esm/locale/es/_lib/localize/index.js | 121 + .../esm/locale/es/_lib/match/index.js | 99 + .../date-fns/esm/locale/es/index.d.ts | 4 + node_modules/date-fns/esm/locale/es/index.js | 33 + .../date-fns/esm/locale/es/index.js.flow | 35 + .../date-fns/esm/locale/es/package.json | 4 + .../locale/et/_lib/formatDistance/index.js | 181 + .../esm/locale/et/_lib/formatLong/index.js | 34 + .../locale/et/_lib/formatRelative/index.js | 14 + .../esm/locale/et/_lib/localize/index.js | 125 + .../esm/locale/et/_lib/match/index.js | 96 + .../date-fns/esm/locale/et/index.d.ts | 4 + node_modules/date-fns/esm/locale/et/index.js | 29 + .../date-fns/esm/locale/et/index.js.flow | 35 + .../date-fns/esm/locale/et/package.json | 4 + .../locale/eu/_lib/formatDistance/index.js | 88 + .../esm/locale/eu/_lib/formatLong/index.js | 34 + .../locale/eu/_lib/formatRelative/index.js | 26 + .../esm/locale/eu/_lib/localize/index.js | 121 + .../esm/locale/eu/_lib/match/index.js | 112 + .../date-fns/esm/locale/eu/index.d.ts | 4 + node_modules/date-fns/esm/locale/eu/index.js | 29 + .../date-fns/esm/locale/eu/index.js.flow | 35 + .../date-fns/esm/locale/eu/package.json | 4 + .../locale/fa-IR/_lib/formatDistance/index.js | 88 + .../esm/locale/fa-IR/_lib/formatLong/index.js | 34 + .../locale/fa-IR/_lib/formatRelative/index.js | 14 + .../esm/locale/fa-IR/_lib/localize/index.js | 124 + .../esm/locale/fa-IR/_lib/match/index.js | 99 + .../date-fns/esm/locale/fa-IR/index.d.ts | 4 + .../date-fns/esm/locale/fa-IR/index.js | 29 + .../date-fns/esm/locale/fa-IR/index.js.flow | 35 + .../date-fns/esm/locale/fa-IR/package.json | 4 + .../locale/fi/_lib/formatDistance/index.js | 129 + .../esm/locale/fi/_lib/formatLong/index.js | 34 + .../locale/fi/_lib/formatRelative/index.js | 14 + .../esm/locale/fi/_lib/localize/index.js | 102 + .../esm/locale/fi/_lib/match/index.js | 98 + .../date-fns/esm/locale/fi/index.d.ts | 4 + node_modules/date-fns/esm/locale/fi/index.js | 31 + .../date-fns/esm/locale/fi/index.js.flow | 35 + .../date-fns/esm/locale/fi/package.json | 4 + .../esm/locale/fr-CA/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/fr-CA/index.d.ts | 4 + .../date-fns/esm/locale/fr-CA/index.js | 34 + .../date-fns/esm/locale/fr-CA/index.js.flow | 35 + .../date-fns/esm/locale/fr-CA/package.json | 4 + .../esm/locale/fr-CH/_lib/formatLong/index.js | 34 + .../locale/fr-CH/_lib/formatRelative/index.js | 14 + .../date-fns/esm/locale/fr-CH/index.d.ts | 4 + .../date-fns/esm/locale/fr-CH/index.js | 34 + .../date-fns/esm/locale/fr-CH/index.js.flow | 35 + .../date-fns/esm/locale/fr-CH/package.json | 4 + .../locale/fr/_lib/formatDistance/index.js | 88 + .../esm/locale/fr/_lib/formatLong/index.js | 34 + .../locale/fr/_lib/formatRelative/index.js | 14 + .../esm/locale/fr/_lib/localize/index.js | 98 + .../esm/locale/fr/_lib/match/index.js | 98 + .../date-fns/esm/locale/fr/index.d.ts | 4 + node_modules/date-fns/esm/locale/fr/index.js | 30 + .../date-fns/esm/locale/fr/index.js.flow | 35 + .../date-fns/esm/locale/fr/package.json | 4 + .../locale/fy/_lib/formatDistance/index.js | 88 + .../esm/locale/fy/_lib/formatLong/index.js | 34 + .../locale/fy/_lib/formatRelative/index.js | 14 + .../esm/locale/fy/_lib/localize/index.js | 87 + .../esm/locale/fy/_lib/match/index.js | 97 + .../date-fns/esm/locale/fy/index.d.ts | 4 + node_modules/date-fns/esm/locale/fy/index.js | 29 + .../date-fns/esm/locale/fy/index.js.flow | 35 + .../date-fns/esm/locale/fy/package.json | 4 + .../locale/gd/_lib/formatDistance/index.js | 98 + .../esm/locale/gd/_lib/formatLong/index.js | 34 + .../locale/gd/_lib/formatRelative/index.js | 15 + .../esm/locale/gd/_lib/localize/index.js | 141 + .../esm/locale/gd/_lib/match/index.js | 98 + .../date-fns/esm/locale/gd/index.d.ts | 4 + node_modules/date-fns/esm/locale/gd/index.js | 29 + .../date-fns/esm/locale/gd/index.js.flow | 35 + .../date-fns/esm/locale/gd/package.json | 4 + .../locale/gl/_lib/formatDistance/index.js | 88 + .../esm/locale/gl/_lib/formatLong/index.js | 34 + .../locale/gl/_lib/formatRelative/index.js | 26 + .../esm/locale/gl/_lib/localize/index.js | 121 + .../esm/locale/gl/_lib/match/index.js | 99 + .../date-fns/esm/locale/gl/index.d.ts | 4 + node_modules/date-fns/esm/locale/gl/index.js | 30 + .../date-fns/esm/locale/gl/index.js.flow | 35 + .../date-fns/esm/locale/gl/package.json | 4 + .../locale/gu/_lib/formatDistance/index.js | 91 + .../esm/locale/gu/_lib/formatLong/index.js | 47 + .../locale/gu/_lib/formatRelative/index.js | 20 + .../esm/locale/gu/_lib/localize/index.js | 148 + .../esm/locale/gu/_lib/match/index.js | 99 + .../date-fns/esm/locale/gu/index.d.ts | 4 + node_modules/date-fns/esm/locale/gu/index.js | 29 + .../date-fns/esm/locale/gu/index.js.flow | 35 + .../date-fns/esm/locale/gu/package.json | 4 + .../locale/he/_lib/formatDistance/index.js | 114 + .../esm/locale/he/_lib/formatLong/index.js | 34 + .../locale/he/_lib/formatRelative/index.js | 14 + .../esm/locale/he/_lib/localize/index.js | 128 + .../esm/locale/he/_lib/match/index.js | 100 + .../date-fns/esm/locale/he/index.d.ts | 4 + node_modules/date-fns/esm/locale/he/index.js | 29 + .../date-fns/esm/locale/he/index.js.flow | 35 + .../date-fns/esm/locale/he/package.json | 4 + .../locale/hi/_lib/formatDistance/index.js | 96 + .../esm/locale/hi/_lib/formatLong/index.js | 46 + .../locale/hi/_lib/formatRelative/index.js | 14 + .../esm/locale/hi/_lib/localize/index.js | 167 + .../esm/locale/hi/_lib/match/index.js | 99 + .../date-fns/esm/locale/hi/index.d.ts | 4 + node_modules/date-fns/esm/locale/hi/index.js | 29 + .../date-fns/esm/locale/hi/index.js.flow | 35 + .../date-fns/esm/locale/hi/package.json | 4 + .../locale/hr/_lib/formatDistance/index.js | 175 + .../esm/locale/hr/_lib/formatLong/index.js | 34 + .../locale/hr/_lib/formatRelative/index.js | 48 + .../esm/locale/hr/_lib/localize/index.js | 128 + .../esm/locale/hr/_lib/match/index.js | 98 + .../date-fns/esm/locale/hr/index.d.ts | 4 + node_modules/date-fns/esm/locale/hr/index.js | 31 + .../date-fns/esm/locale/hr/index.js.flow | 35 + .../date-fns/esm/locale/hr/package.json | 4 + .../locale/ht/_lib/formatDistance/index.js | 88 + .../esm/locale/ht/_lib/formatLong/index.js | 34 + .../locale/ht/_lib/formatRelative/index.js | 14 + .../esm/locale/ht/_lib/localize/index.js | 89 + .../esm/locale/ht/_lib/match/index.js | 98 + .../date-fns/esm/locale/ht/index.d.ts | 4 + node_modules/date-fns/esm/locale/ht/index.js | 30 + .../date-fns/esm/locale/ht/index.js.flow | 35 + .../date-fns/esm/locale/ht/package.json | 4 + .../locale/hu/_lib/formatDistance/index.js | 77 + .../esm/locale/hu/_lib/formatLong/index.js | 34 + .../locale/hu/_lib/formatRelative/index.js | 30 + .../esm/locale/hu/_lib/localize/index.js | 94 + .../esm/locale/hu/_lib/match/index.js | 99 + .../date-fns/esm/locale/hu/index.d.ts | 4 + node_modules/date-fns/esm/locale/hu/index.js | 31 + .../date-fns/esm/locale/hu/index.js.flow | 35 + .../date-fns/esm/locale/hu/package.json | 4 + .../locale/hy/_lib/formatDistance/index.js | 88 + .../esm/locale/hy/_lib/formatLong/index.js | 34 + .../locale/hy/_lib/formatRelative/index.js | 14 + .../esm/locale/hy/_lib/localize/index.js | 135 + .../esm/locale/hy/_lib/match/index.js | 100 + .../date-fns/esm/locale/hy/index.d.ts | 4 + node_modules/date-fns/esm/locale/hy/index.js | 29 + .../date-fns/esm/locale/hy/index.js.flow | 35 + .../date-fns/esm/locale/hy/package.json | 4 + .../locale/id/_lib/formatDistance/index.js | 88 + .../esm/locale/id/_lib/formatLong/index.js | 34 + .../locale/id/_lib/formatRelative/index.js | 14 + .../esm/locale/id/_lib/localize/index.js | 128 + .../esm/locale/id/_lib/match/index.js | 98 + .../date-fns/esm/locale/id/index.d.ts | 4 + node_modules/date-fns/esm/locale/id/index.js | 32 + .../date-fns/esm/locale/id/index.js.flow | 35 + .../date-fns/esm/locale/id/package.json | 4 + node_modules/date-fns/esm/locale/index.js | 94 + .../date-fns/esm/locale/index.js.flow | 129 + .../locale/is/_lib/formatDistance/index.js | 88 + .../esm/locale/is/_lib/formatLong/index.js | 34 + .../locale/is/_lib/formatRelative/index.js | 14 + .../esm/locale/is/_lib/localize/index.js | 121 + .../esm/locale/is/_lib/match/index.js | 98 + .../date-fns/esm/locale/is/index.d.ts | 4 + node_modules/date-fns/esm/locale/is/index.js | 30 + .../date-fns/esm/locale/is/index.js.flow | 35 + .../date-fns/esm/locale/is/package.json | 4 + .../esm/locale/it-CH/_lib/formatLong/index.js | 34 + .../date-fns/esm/locale/it-CH/index.d.ts | 4 + .../date-fns/esm/locale/it-CH/index.js | 29 + .../date-fns/esm/locale/it-CH/index.js.flow | 35 + .../date-fns/esm/locale/it-CH/package.json | 4 + .../locale/it/_lib/formatDistance/index.js | 88 + .../esm/locale/it/_lib/formatLong/index.js | 34 + .../locale/it/_lib/formatRelative/index.js | 63 + .../esm/locale/it/_lib/localize/index.js | 121 + .../esm/locale/it/_lib/match/index.js | 98 + .../date-fns/esm/locale/it/index.d.ts | 4 + node_modules/date-fns/esm/locale/it/index.js | 31 + .../date-fns/esm/locale/it/index.js.flow | 35 + .../date-fns/esm/locale/it/package.json | 4 + .../ja-Hira/_lib/formatDistance/index.js | 101 + .../locale/ja-Hira/_lib/formatLong/index.js | 34 + .../ja-Hira/_lib/formatRelative/index.js | 14 + .../esm/locale/ja-Hira/_lib/localize/index.js | 150 + .../esm/locale/ja-Hira/_lib/match/index.js | 96 + .../date-fns/esm/locale/ja-Hira/index.d.ts | 4 + .../date-fns/esm/locale/ja-Hira/index.js | 29 + .../date-fns/esm/locale/ja-Hira/index.js.flow | 35 + .../date-fns/esm/locale/ja-Hira/package.json | 4 + .../locale/ja/_lib/formatDistance/index.js | 101 + .../esm/locale/ja/_lib/formatLong/index.js | 34 + .../locale/ja/_lib/formatRelative/index.js | 14 + .../esm/locale/ja/_lib/localize/index.js | 150 + .../esm/locale/ja/_lib/match/index.js | 96 + .../date-fns/esm/locale/ja/index.d.ts | 4 + node_modules/date-fns/esm/locale/ja/index.js | 33 + .../date-fns/esm/locale/ja/index.js.flow | 35 + .../date-fns/esm/locale/ja/package.json | 4 + .../locale/ka/_lib/formatDistance/index.js | 101 + .../esm/locale/ka/_lib/formatLong/index.js | 34 + .../locale/ka/_lib/formatRelative/index.js | 14 + .../esm/locale/ka/_lib/localize/index.js | 130 + .../esm/locale/ka/_lib/match/index.js | 92 + .../date-fns/esm/locale/ka/index.d.ts | 4 + node_modules/date-fns/esm/locale/ka/index.js | 30 + .../date-fns/esm/locale/ka/index.js.flow | 35 + .../date-fns/esm/locale/ka/package.json | 4 + .../locale/kk/_lib/formatDistance/index.js | 227 + .../esm/locale/kk/_lib/formatLong/index.js | 31 + .../locale/kk/_lib/formatRelative/index.js | 54 + .../esm/locale/kk/_lib/localize/index.js | 133 + .../esm/locale/kk/_lib/match/index.js | 100 + .../date-fns/esm/locale/kk/index.d.ts | 4 + node_modules/date-fns/esm/locale/kk/index.js | 29 + .../date-fns/esm/locale/kk/index.js.flow | 35 + .../date-fns/esm/locale/kk/package.json | 4 + .../locale/km/_lib/formatDistance/index.js | 39 + .../esm/locale/km/_lib/formatLong/index.js | 34 + .../locale/km/_lib/formatRelative/index.js | 14 + .../esm/locale/km/_lib/localize/index.js | 121 + .../esm/locale/km/_lib/match/index.js | 98 + .../date-fns/esm/locale/km/index.d.ts | 4 + node_modules/date-fns/esm/locale/km/index.js | 29 + .../date-fns/esm/locale/km/index.js.flow | 35 + .../date-fns/esm/locale/km/package.json | 4 + .../locale/kn/_lib/formatDistance/index.js | 197 + .../esm/locale/kn/_lib/formatLong/index.js | 47 + .../locale/kn/_lib/formatRelative/index.js | 14 + .../esm/locale/kn/_lib/localize/index.js | 129 + .../esm/locale/kn/_lib/match/index.js | 98 + .../date-fns/esm/locale/kn/index.d.ts | 4 + node_modules/date-fns/esm/locale/kn/index.js | 29 + .../date-fns/esm/locale/kn/index.js.flow | 35 + .../date-fns/esm/locale/kn/package.json | 4 + .../locale/ko/_lib/formatDistance/index.js | 88 + .../esm/locale/ko/_lib/formatLong/index.js | 34 + .../locale/ko/_lib/formatRelative/index.js | 14 + .../esm/locale/ko/_lib/localize/index.js | 133 + .../esm/locale/ko/_lib/match/index.js | 95 + .../date-fns/esm/locale/ko/index.d.ts | 4 + node_modules/date-fns/esm/locale/ko/index.js | 31 + .../date-fns/esm/locale/ko/index.js.flow | 35 + .../date-fns/esm/locale/ko/package.json | 4 + .../locale/lb/_lib/formatDistance/index.js | 206 + .../esm/locale/lb/_lib/formatLong/index.js | 39 + .../locale/lb/_lib/formatRelative/index.js | 31 + .../esm/locale/lb/_lib/localize/index.js | 121 + .../esm/locale/lb/_lib/match/index.js | 100 + .../date-fns/esm/locale/lb/index.d.ts | 4 + node_modules/date-fns/esm/locale/lb/index.js | 29 + .../date-fns/esm/locale/lb/index.js.flow | 35 + .../date-fns/esm/locale/lb/package.json | 4 + .../locale/lt/_lib/formatDistance/index.js | 153 + .../esm/locale/lt/_lib/formatLong/index.js | 34 + .../locale/lt/_lib/formatRelative/index.js | 14 + .../esm/locale/lt/_lib/localize/index.js | 143 + .../esm/locale/lt/_lib/match/index.js | 111 + .../date-fns/esm/locale/lt/index.d.ts | 4 + node_modules/date-fns/esm/locale/lt/index.js | 30 + .../date-fns/esm/locale/lt/index.js.flow | 35 + .../date-fns/esm/locale/lt/package.json | 4 + .../locale/lv/_lib/formatDistance/index.js | 106 + .../esm/locale/lv/_lib/formatLong/index.js | 34 + .../locale/lv/_lib/formatRelative/index.js | 36 + .../esm/locale/lv/_lib/localize/index.js | 143 + .../esm/locale/lv/_lib/match/index.js | 101 + .../date-fns/esm/locale/lv/index.d.ts | 4 + node_modules/date-fns/esm/locale/lv/index.js | 29 + .../date-fns/esm/locale/lv/index.js.flow | 35 + .../date-fns/esm/locale/lv/package.json | 4 + .../locale/mk/_lib/formatDistance/index.js | 88 + .../esm/locale/mk/_lib/formatLong/index.js | 31 + .../locale/mk/_lib/formatRelative/index.js | 90 + .../esm/locale/mk/_lib/localize/index.js | 82 + .../esm/locale/mk/_lib/match/index.js | 95 + .../date-fns/esm/locale/mk/index.d.ts | 4 + node_modules/date-fns/esm/locale/mk/index.js | 30 + .../date-fns/esm/locale/mk/index.js.flow | 35 + .../date-fns/esm/locale/mk/package.json | 4 + .../locale/mn/_lib/formatDistance/index.js | 136 + .../esm/locale/mn/_lib/formatLong/index.js | 34 + .../locale/mn/_lib/formatRelative/index.js | 14 + .../esm/locale/mn/_lib/localize/index.js | 105 + .../esm/locale/mn/_lib/match/index.js | 98 + .../date-fns/esm/locale/mn/index.d.ts | 4 + node_modules/date-fns/esm/locale/mn/index.js | 29 + .../date-fns/esm/locale/mn/index.js.flow | 35 + .../date-fns/esm/locale/mn/package.json | 4 + .../locale/ms/_lib/formatDistance/index.js | 88 + .../esm/locale/ms/_lib/formatLong/index.js | 34 + .../locale/ms/_lib/formatRelative/index.js | 14 + .../esm/locale/ms/_lib/localize/index.js | 127 + .../esm/locale/ms/_lib/match/index.js | 98 + .../date-fns/esm/locale/ms/index.d.ts | 4 + node_modules/date-fns/esm/locale/ms/index.js | 29 + .../date-fns/esm/locale/ms/index.js.flow | 35 + .../date-fns/esm/locale/ms/package.json | 4 + .../locale/mt/_lib/formatDistance/index.js | 94 + .../esm/locale/mt/_lib/formatLong/index.js | 34 + .../locale/mt/_lib/formatRelative/index.js | 14 + .../esm/locale/mt/_lib/localize/index.js | 121 + .../esm/locale/mt/_lib/match/index.js | 98 + .../date-fns/esm/locale/mt/index.d.ts | 4 + node_modules/date-fns/esm/locale/mt/index.js | 30 + .../date-fns/esm/locale/mt/index.js.flow | 35 + .../date-fns/esm/locale/mt/package.json | 4 + .../locale/nb/_lib/formatDistance/index.js | 88 + .../esm/locale/nb/_lib/formatLong/index.js | 34 + .../locale/nb/_lib/formatRelative/index.js | 14 + .../esm/locale/nb/_lib/localize/index.js | 87 + .../esm/locale/nb/_lib/match/index.js | 97 + .../date-fns/esm/locale/nb/index.d.ts | 4 + node_modules/date-fns/esm/locale/nb/index.js | 31 + .../date-fns/esm/locale/nb/index.js.flow | 35 + .../date-fns/esm/locale/nb/package.json | 4 + .../locale/nl-BE/_lib/formatDistance/index.js | 88 + .../esm/locale/nl-BE/_lib/formatLong/index.js | 34 + .../locale/nl-BE/_lib/formatRelative/index.js | 14 + .../esm/locale/nl-BE/_lib/localize/index.js | 87 + .../esm/locale/nl-BE/_lib/match/index.js | 97 + .../date-fns/esm/locale/nl-BE/index.d.ts | 4 + .../date-fns/esm/locale/nl-BE/index.js | 32 + .../date-fns/esm/locale/nl-BE/index.js.flow | 35 + .../date-fns/esm/locale/nl-BE/package.json | 4 + .../locale/nl/_lib/formatDistance/index.js | 88 + .../esm/locale/nl/_lib/formatLong/index.js | 34 + .../locale/nl/_lib/formatRelative/index.js | 14 + .../esm/locale/nl/_lib/localize/index.js | 87 + .../esm/locale/nl/_lib/match/index.js | 97 + .../date-fns/esm/locale/nl/index.d.ts | 4 + node_modules/date-fns/esm/locale/nl/index.js | 34 + .../date-fns/esm/locale/nl/index.js.flow | 35 + .../date-fns/esm/locale/nl/package.json | 4 + .../locale/nn/_lib/formatDistance/index.js | 93 + .../esm/locale/nn/_lib/formatLong/index.js | 34 + .../locale/nn/_lib/formatRelative/index.js | 14 + .../esm/locale/nn/_lib/localize/index.js | 87 + .../esm/locale/nn/_lib/match/index.js | 97 + .../date-fns/esm/locale/nn/index.d.ts | 4 + node_modules/date-fns/esm/locale/nn/index.js | 29 + .../date-fns/esm/locale/nn/index.js.flow | 35 + .../date-fns/esm/locale/nn/package.json | 4 + .../locale/oc/_lib/formatDistance/index.js | 88 + .../esm/locale/oc/_lib/formatLong/index.js | 34 + .../locale/oc/_lib/formatRelative/index.js | 14 + .../esm/locale/oc/_lib/localize/index.js | 142 + .../esm/locale/oc/_lib/match/index.js | 98 + .../date-fns/esm/locale/oc/index.d.ts | 4 + node_modules/date-fns/esm/locale/oc/index.js | 29 + .../date-fns/esm/locale/oc/index.js.flow | 35 + .../date-fns/esm/locale/oc/package.json | 4 + node_modules/date-fns/esm/locale/package.json | 4 + .../locale/pl/_lib/formatDistance/index.js | 152 + .../esm/locale/pl/_lib/formatLong/index.js | 34 + .../locale/pl/_lib/formatRelative/index.js | 62 + .../esm/locale/pl/_lib/localize/index.js | 135 + .../esm/locale/pl/_lib/match/index.js | 110 + .../date-fns/esm/locale/pl/index.d.ts | 4 + node_modules/date-fns/esm/locale/pl/index.js | 32 + .../date-fns/esm/locale/pl/index.js.flow | 35 + .../date-fns/esm/locale/pl/package.json | 4 + .../locale/pt-BR/_lib/formatDistance/index.js | 88 + .../esm/locale/pt-BR/_lib/formatLong/index.js | 34 + .../locale/pt-BR/_lib/formatRelative/index.js | 24 + .../esm/locale/pt-BR/_lib/localize/index.js | 126 + .../esm/locale/pt-BR/_lib/match/index.js | 100 + .../date-fns/esm/locale/pt-BR/index.d.ts | 4 + .../date-fns/esm/locale/pt-BR/index.js | 30 + .../date-fns/esm/locale/pt-BR/index.js.flow | 35 + .../date-fns/esm/locale/pt-BR/package.json | 4 + .../locale/pt/_lib/formatDistance/index.js | 88 + .../esm/locale/pt/_lib/formatLong/index.js | 34 + .../locale/pt/_lib/formatRelative/index.js | 24 + .../esm/locale/pt/_lib/localize/index.js | 121 + .../esm/locale/pt/_lib/match/index.js | 99 + .../date-fns/esm/locale/pt/index.d.ts | 4 + node_modules/date-fns/esm/locale/pt/index.js | 30 + .../date-fns/esm/locale/pt/index.js.flow | 35 + .../date-fns/esm/locale/pt/package.json | 4 + .../locale/ro/_lib/formatDistance/index.js | 88 + .../esm/locale/ro/_lib/formatLong/index.js | 34 + .../locale/ro/_lib/formatRelative/index.js | 14 + .../esm/locale/ro/_lib/localize/index.js | 120 + .../esm/locale/ro/_lib/match/index.js | 99 + .../date-fns/esm/locale/ro/index.d.ts | 4 + node_modules/date-fns/esm/locale/ro/index.js | 31 + .../date-fns/esm/locale/ro/index.js.flow | 35 + .../date-fns/esm/locale/ro/package.json | 4 + .../locale/ru/_lib/formatDistance/index.js | 228 + .../esm/locale/ru/_lib/formatLong/index.js | 31 + .../locale/ru/_lib/formatRelative/index.js | 89 + .../esm/locale/ru/_lib/localize/index.js | 139 + .../esm/locale/ru/_lib/match/index.js | 99 + .../date-fns/esm/locale/ru/index.d.ts | 4 + node_modules/date-fns/esm/locale/ru/index.js | 30 + .../date-fns/esm/locale/ru/index.js.flow | 35 + .../date-fns/esm/locale/ru/package.json | 4 + .../locale/sk/_lib/formatDistance/index.js | 204 + .../esm/locale/sk/_lib/formatLong/index.js | 37 + .../locale/sk/_lib/formatRelative/index.js | 92 + .../esm/locale/sk/_lib/localize/index.js | 133 + .../esm/locale/sk/_lib/match/index.js | 99 + .../date-fns/esm/locale/sk/index.d.ts | 4 + node_modules/date-fns/esm/locale/sk/index.js | 29 + .../date-fns/esm/locale/sk/index.js.flow | 35 + .../date-fns/esm/locale/sk/package.json | 4 + .../locale/sl/_lib/formatDistance/index.js | 331 + .../esm/locale/sl/_lib/formatLong/index.js | 34 + .../locale/sl/_lib/formatRelative/index.js | 52 + .../esm/locale/sl/_lib/localize/index.js | 121 + .../esm/locale/sl/_lib/match/index.js | 108 + .../date-fns/esm/locale/sl/index.d.ts | 4 + node_modules/date-fns/esm/locale/sl/index.js | 30 + .../date-fns/esm/locale/sl/index.js.flow | 35 + .../date-fns/esm/locale/sl/package.json | 4 + .../locale/sq/_lib/formatDistance/index.js | 88 + .../esm/locale/sq/_lib/formatLong/index.js | 34 + .../locale/sq/_lib/formatRelative/index.js | 14 + .../esm/locale/sq/_lib/localize/index.js | 128 + .../esm/locale/sq/_lib/match/index.js | 98 + .../date-fns/esm/locale/sq/index.d.ts | 4 + node_modules/date-fns/esm/locale/sq/index.js | 29 + .../date-fns/esm/locale/sq/index.js.flow | 35 + .../date-fns/esm/locale/sq/package.json | 4 + .../sr-Latn/_lib/formatDistance/index.js | 175 + .../locale/sr-Latn/_lib/formatLong/index.js | 34 + .../sr-Latn/_lib/formatRelative/index.js | 48 + .../esm/locale/sr-Latn/_lib/localize/index.js | 128 + .../esm/locale/sr-Latn/_lib/match/index.js | 97 + .../date-fns/esm/locale/sr-Latn/index.d.ts | 4 + .../date-fns/esm/locale/sr-Latn/index.js | 29 + .../date-fns/esm/locale/sr-Latn/index.js.flow | 35 + .../date-fns/esm/locale/sr-Latn/package.json | 4 + .../locale/sr/_lib/formatDistance/index.js | 175 + .../esm/locale/sr/_lib/formatLong/index.js | 34 + .../locale/sr/_lib/formatRelative/index.js | 52 + .../esm/locale/sr/_lib/localize/index.js | 128 + .../esm/locale/sr/_lib/match/index.js | 97 + .../date-fns/esm/locale/sr/index.d.ts | 4 + node_modules/date-fns/esm/locale/sr/index.js | 29 + .../date-fns/esm/locale/sr/index.js.flow | 35 + .../date-fns/esm/locale/sr/package.json | 4 + .../locale/sv/_lib/formatDistance/index.js | 93 + .../esm/locale/sv/_lib/formatLong/index.js | 34 + .../locale/sv/_lib/formatRelative/index.js | 14 + .../esm/locale/sv/_lib/localize/index.js | 132 + .../esm/locale/sv/_lib/match/index.js | 96 + .../date-fns/esm/locale/sv/index.d.ts | 4 + node_modules/date-fns/esm/locale/sv/index.js | 31 + .../date-fns/esm/locale/sv/index.js.flow | 35 + .../date-fns/esm/locale/sv/package.json | 4 + .../locale/ta/_lib/formatDistance/index.js | 205 + .../esm/locale/ta/_lib/formatLong/index.js | 37 + .../locale/ta/_lib/formatRelative/index.js | 14 + .../esm/locale/ta/_lib/localize/index.js | 154 + .../esm/locale/ta/_lib/match/index.js | 99 + .../date-fns/esm/locale/ta/index.d.ts | 4 + node_modules/date-fns/esm/locale/ta/index.js | 29 + .../date-fns/esm/locale/ta/index.js.flow | 35 + .../date-fns/esm/locale/ta/package.json | 4 + .../locale/te/_lib/formatDistance/index.js | 189 + .../esm/locale/te/_lib/formatLong/index.js | 38 + .../locale/te/_lib/formatRelative/index.js | 20 + .../esm/locale/te/_lib/localize/index.js | 128 + .../esm/locale/te/_lib/match/index.js | 98 + .../date-fns/esm/locale/te/index.d.ts | 4 + node_modules/date-fns/esm/locale/te/index.js | 29 + .../date-fns/esm/locale/te/index.js.flow | 35 + .../date-fns/esm/locale/te/package.json | 4 + .../locale/th/_lib/formatDistance/index.js | 92 + .../esm/locale/th/_lib/formatLong/index.js | 34 + .../locale/th/_lib/formatRelative/index.js | 14 + .../esm/locale/th/_lib/localize/index.js | 120 + .../esm/locale/th/_lib/match/index.js | 97 + .../date-fns/esm/locale/th/index.d.ts | 4 + node_modules/date-fns/esm/locale/th/index.js | 31 + .../date-fns/esm/locale/th/index.js.flow | 35 + .../date-fns/esm/locale/th/package.json | 4 + .../locale/tr/_lib/formatDistance/index.js | 88 + .../esm/locale/tr/_lib/formatLong/index.js | 34 + .../locale/tr/_lib/formatRelative/index.js | 14 + .../esm/locale/tr/_lib/localize/index.js | 121 + .../esm/locale/tr/_lib/match/index.js | 101 + .../date-fns/esm/locale/tr/index.d.ts | 4 + node_modules/date-fns/esm/locale/tr/index.js | 35 + .../date-fns/esm/locale/tr/index.js.flow | 35 + .../date-fns/esm/locale/tr/package.json | 4 + node_modules/date-fns/esm/locale/types.js | 1 + .../locale/ug/_lib/formatDistance/index.js | 88 + .../esm/locale/ug/_lib/formatLong/index.js | 34 + .../locale/ug/_lib/formatRelative/index.js | 14 + .../esm/locale/ug/_lib/localize/index.js | 124 + .../esm/locale/ug/_lib/match/index.js | 98 + .../date-fns/esm/locale/ug/index.d.ts | 4 + node_modules/date-fns/esm/locale/ug/index.js | 29 + .../date-fns/esm/locale/ug/index.js.flow | 35 + .../date-fns/esm/locale/ug/package.json | 4 + .../locale/uk/_lib/formatDistance/index.js | 231 + .../esm/locale/uk/_lib/formatLong/index.js | 34 + .../locale/uk/_lib/formatRelative/index.js | 85 + .../esm/locale/uk/_lib/localize/index.js | 144 + .../esm/locale/uk/_lib/match/index.js | 99 + .../date-fns/esm/locale/uk/index.d.ts | 4 + node_modules/date-fns/esm/locale/uk/index.js | 30 + .../date-fns/esm/locale/uk/index.js.flow | 35 + .../date-fns/esm/locale/uk/package.json | 4 + .../uz-Cyrl/_lib/formatDistance/index.js | 88 + .../locale/uz-Cyrl/_lib/formatLong/index.js | 31 + .../uz-Cyrl/_lib/formatRelative/index.js | 14 + .../esm/locale/uz-Cyrl/_lib/localize/index.js | 80 + .../esm/locale/uz-Cyrl/_lib/match/index.js | 97 + .../date-fns/esm/locale/uz-Cyrl/index.d.ts | 4 + .../date-fns/esm/locale/uz-Cyrl/index.js | 29 + .../date-fns/esm/locale/uz-Cyrl/index.js.flow | 35 + .../date-fns/esm/locale/uz-Cyrl/package.json | 4 + .../locale/uz/_lib/formatDistance/index.js | 88 + .../esm/locale/uz/_lib/formatLong/index.js | 31 + .../locale/uz/_lib/formatRelative/index.js | 14 + .../esm/locale/uz/_lib/localize/index.js | 124 + .../esm/locale/uz/_lib/match/index.js | 98 + .../date-fns/esm/locale/uz/index.d.ts | 4 + node_modules/date-fns/esm/locale/uz/index.js | 29 + .../date-fns/esm/locale/uz/index.js.flow | 35 + .../date-fns/esm/locale/uz/package.json | 4 + .../locale/vi/_lib/formatDistance/index.js | 88 + .../esm/locale/vi/_lib/formatLong/index.js | 40 + .../locale/vi/_lib/formatRelative/index.js | 14 + .../esm/locale/vi/_lib/localize/index.js | 211 + .../esm/locale/vi/_lib/match/index.js | 106 + .../date-fns/esm/locale/vi/index.d.ts | 4 + node_modules/date-fns/esm/locale/vi/index.js | 32 + .../date-fns/esm/locale/vi/index.js.flow | 35 + .../date-fns/esm/locale/vi/package.json | 4 + .../locale/zh-CN/_lib/formatDistance/index.js | 88 + .../esm/locale/zh-CN/_lib/formatLong/index.js | 34 + .../locale/zh-CN/_lib/formatRelative/index.js | 36 + .../esm/locale/zh-CN/_lib/localize/index.js | 137 + .../esm/locale/zh-CN/_lib/match/index.js | 96 + .../date-fns/esm/locale/zh-CN/index.d.ts | 4 + .../date-fns/esm/locale/zh-CN/index.js | 33 + .../date-fns/esm/locale/zh-CN/index.js.flow | 35 + .../date-fns/esm/locale/zh-CN/package.json | 4 + .../locale/zh-HK/_lib/formatDistance/index.js | 88 + .../esm/locale/zh-HK/_lib/formatLong/index.js | 34 + .../locale/zh-HK/_lib/formatRelative/index.js | 14 + .../esm/locale/zh-HK/_lib/localize/index.js | 137 + .../esm/locale/zh-HK/_lib/match/index.js | 96 + .../date-fns/esm/locale/zh-HK/index.d.ts | 4 + .../date-fns/esm/locale/zh-HK/index.js | 29 + .../date-fns/esm/locale/zh-HK/index.js.flow | 35 + .../date-fns/esm/locale/zh-HK/package.json | 4 + .../locale/zh-TW/_lib/formatDistance/index.js | 88 + .../esm/locale/zh-TW/_lib/formatLong/index.js | 34 + .../locale/zh-TW/_lib/formatRelative/index.js | 14 + .../esm/locale/zh-TW/_lib/localize/index.js | 137 + .../esm/locale/zh-TW/_lib/match/index.js | 96 + .../date-fns/esm/locale/zh-TW/index.d.ts | 4 + .../date-fns/esm/locale/zh-TW/index.js | 31 + .../date-fns/esm/locale/zh-TW/index.js.flow | 35 + .../date-fns/esm/locale/zh-TW/package.json | 4 + node_modules/date-fns/esm/max/index.d.ts | 4 + node_modules/date-fns/esm/max/index.js | 50 + node_modules/date-fns/esm/max/index.js.flow | 52 + node_modules/date-fns/esm/max/package.json | 4 + .../date-fns/esm/milliseconds/index.d.ts | 4 + .../date-fns/esm/milliseconds/index.js | 54 + .../date-fns/esm/milliseconds/index.js.flow | 52 + .../date-fns/esm/milliseconds/package.json | 4 + .../esm/millisecondsToHours/index.d.ts | 4 + .../date-fns/esm/millisecondsToHours/index.js | 31 + .../esm/millisecondsToHours/index.js.flow | 52 + .../esm/millisecondsToHours/package.json | 4 + .../esm/millisecondsToMinutes/index.d.ts | 4 + .../esm/millisecondsToMinutes/index.js | 31 + .../esm/millisecondsToMinutes/index.js.flow | 52 + .../esm/millisecondsToMinutes/package.json | 4 + .../esm/millisecondsToSeconds/index.d.ts | 4 + .../esm/millisecondsToSeconds/index.js | 31 + .../esm/millisecondsToSeconds/index.js.flow | 52 + .../esm/millisecondsToSeconds/package.json | 4 + node_modules/date-fns/esm/min/index.d.ts | 4 + node_modules/date-fns/esm/min/index.js | 50 + node_modules/date-fns/esm/min/index.js.flow | 52 + node_modules/date-fns/esm/min/package.json | 4 + .../date-fns/esm/minutesToHours/index.d.ts | 4 + .../date-fns/esm/minutesToHours/index.js | 31 + .../date-fns/esm/minutesToHours/index.js.flow | 52 + .../date-fns/esm/minutesToHours/package.json | 4 + .../esm/minutesToMilliseconds/index.d.ts | 4 + .../esm/minutesToMilliseconds/index.js | 25 + .../esm/minutesToMilliseconds/index.js.flow | 52 + .../esm/minutesToMilliseconds/package.json | 4 + .../date-fns/esm/minutesToSeconds/index.d.ts | 4 + .../date-fns/esm/minutesToSeconds/index.js | 25 + .../esm/minutesToSeconds/index.js.flow | 52 + .../esm/minutesToSeconds/package.json | 4 + .../date-fns/esm/monthsToQuarters/index.d.ts | 4 + .../date-fns/esm/monthsToQuarters/index.js | 31 + .../esm/monthsToQuarters/index.js.flow | 52 + .../esm/monthsToQuarters/package.json | 4 + .../date-fns/esm/monthsToYears/index.d.ts | 4 + .../date-fns/esm/monthsToYears/index.js | 30 + .../date-fns/esm/monthsToYears/index.js.flow | 52 + .../date-fns/esm/monthsToYears/package.json | 4 + node_modules/date-fns/esm/nextDay/index.d.ts | 4 + node_modules/date-fns/esm/nextDay/index.js | 33 + .../date-fns/esm/nextDay/index.js.flow | 52 + .../date-fns/esm/nextDay/package.json | 4 + .../date-fns/esm/nextFriday/index.d.ts | 4 + node_modules/date-fns/esm/nextFriday/index.js | 24 + .../date-fns/esm/nextFriday/index.js.flow | 52 + .../date-fns/esm/nextFriday/package.json | 4 + .../date-fns/esm/nextMonday/index.d.ts | 4 + node_modules/date-fns/esm/nextMonday/index.js | 24 + .../date-fns/esm/nextMonday/index.js.flow | 52 + .../date-fns/esm/nextMonday/package.json | 4 + .../date-fns/esm/nextSaturday/index.d.ts | 4 + .../date-fns/esm/nextSaturday/index.js | 24 + .../date-fns/esm/nextSaturday/index.js.flow | 52 + .../date-fns/esm/nextSaturday/package.json | 4 + .../date-fns/esm/nextSunday/index.d.ts | 4 + node_modules/date-fns/esm/nextSunday/index.js | 24 + .../date-fns/esm/nextSunday/index.js.flow | 52 + .../date-fns/esm/nextSunday/package.json | 4 + .../date-fns/esm/nextThursday/index.d.ts | 4 + .../date-fns/esm/nextThursday/index.js | 24 + .../date-fns/esm/nextThursday/index.js.flow | 52 + .../date-fns/esm/nextThursday/package.json | 4 + .../date-fns/esm/nextTuesday/index.d.ts | 4 + .../date-fns/esm/nextTuesday/index.js | 24 + .../date-fns/esm/nextTuesday/index.js.flow | 52 + .../date-fns/esm/nextTuesday/package.json | 4 + .../date-fns/esm/nextWednesday/index.d.ts | 4 + .../date-fns/esm/nextWednesday/index.js | 24 + .../date-fns/esm/nextWednesday/index.js.flow | 52 + .../date-fns/esm/nextWednesday/package.json | 4 + .../date-fns/esm/parse/_lib/Parser.js | 35 + .../date-fns/esm/parse/_lib/Setter.js | 117 + .../date-fns/esm/parse/_lib/constants.js | 46 + .../parse/_lib/parsers/AMPMMidnightParser.js | 94 + .../esm/parse/_lib/parsers/AMPMParser.js | 94 + .../esm/parse/_lib/parsers/DateParser.js | 95 + .../esm/parse/_lib/parsers/DayOfYearParser.js | 92 + .../esm/parse/_lib/parsers/DayParser.js | 120 + .../esm/parse/_lib/parsers/DayPeriodParser.js | 95 + .../esm/parse/_lib/parsers/EraParser.js | 92 + .../parse/_lib/parsers/ExtendedYearParser.js | 69 + .../_lib/parsers/FractionOfSecondParser.js | 68 + .../esm/parse/_lib/parsers/Hour0To11Parser.js | 88 + .../esm/parse/_lib/parsers/Hour0to23Parser.js | 81 + .../esm/parse/_lib/parsers/Hour1To24Parser.js | 82 + .../esm/parse/_lib/parsers/Hour1to12Parser.js | 90 + .../esm/parse/_lib/parsers/ISODayParser.js | 139 + .../parse/_lib/parsers/ISOTimezoneParser.js | 85 + .../_lib/parsers/ISOTimezoneWithZParser.js | 85 + .../esm/parse/_lib/parsers/ISOWeekParser.js | 83 + .../parse/_lib/parsers/ISOWeekYearParser.js | 72 + .../esm/parse/_lib/parsers/LocalDayParser.js | 136 + .../esm/parse/_lib/parsers/LocalWeekParser.js | 83 + .../parse/_lib/parsers/LocalWeekYearParser.js | 101 + .../esm/parse/_lib/parsers/MinuteParser.js | 81 + .../esm/parse/_lib/parsers/MonthParser.js | 120 + .../esm/parse/_lib/parsers/QuarterParser.js | 113 + .../esm/parse/_lib/parsers/SecondParser.js | 81 + .../_lib/parsers/StandAloneLocalDayParser.js | 136 + .../_lib/parsers/StandAloneMonthParser.js | 120 + .../_lib/parsers/StandAloneQuarterParser.js | 113 + .../parsers/TimestampMillisecondsParser.js | 65 + .../_lib/parsers/TimestampSecondsParser.js | 65 + .../esm/parse/_lib/parsers/YearParser.js | 106 + .../date-fns/esm/parse/_lib/parsers/index.js | 108 + node_modules/date-fns/esm/parse/_lib/types.js | 1 + node_modules/date-fns/esm/parse/_lib/utils.js | 130 + node_modules/date-fns/esm/parse/index.d.ts | 4 + node_modules/date-fns/esm/parse/index.js | 536 + node_modules/date-fns/esm/parse/index.js.flow | 63 + node_modules/date-fns/esm/parse/package.json | 4 + node_modules/date-fns/esm/parseISO/index.d.ts | 4 + node_modules/date-fns/esm/parseISO/index.js | 266 + .../date-fns/esm/parseISO/index.js.flow | 57 + .../date-fns/esm/parseISO/package.json | 4 + .../date-fns/esm/parseJSON/index.d.ts | 4 + node_modules/date-fns/esm/parseJSON/index.js | 53 + .../date-fns/esm/parseJSON/index.js.flow | 52 + .../date-fns/esm/parseJSON/package.json | 4 + .../date-fns/esm/previousDay/index.d.ts | 4 + .../date-fns/esm/previousDay/index.js | 33 + .../date-fns/esm/previousDay/index.js.flow | 52 + .../date-fns/esm/previousDay/package.json | 4 + .../date-fns/esm/previousFriday/index.d.ts | 4 + .../date-fns/esm/previousFriday/index.js | 24 + .../date-fns/esm/previousFriday/index.js.flow | 52 + .../date-fns/esm/previousFriday/package.json | 4 + .../date-fns/esm/previousMonday/index.d.ts | 4 + .../date-fns/esm/previousMonday/index.js | 24 + .../date-fns/esm/previousMonday/index.js.flow | 52 + .../date-fns/esm/previousMonday/package.json | 4 + .../date-fns/esm/previousSaturday/index.d.ts | 4 + .../date-fns/esm/previousSaturday/index.js | 24 + .../esm/previousSaturday/index.js.flow | 52 + .../esm/previousSaturday/package.json | 4 + .../date-fns/esm/previousSunday/index.d.ts | 4 + .../date-fns/esm/previousSunday/index.js | 24 + .../date-fns/esm/previousSunday/index.js.flow | 52 + .../date-fns/esm/previousSunday/package.json | 4 + .../date-fns/esm/previousThursday/index.d.ts | 4 + .../date-fns/esm/previousThursday/index.js | 24 + .../esm/previousThursday/index.js.flow | 52 + .../esm/previousThursday/package.json | 4 + .../date-fns/esm/previousTuesday/index.d.ts | 4 + .../date-fns/esm/previousTuesday/index.js | 24 + .../esm/previousTuesday/index.js.flow | 52 + .../date-fns/esm/previousTuesday/package.json | 4 + .../date-fns/esm/previousWednesday/index.d.ts | 4 + .../date-fns/esm/previousWednesday/index.js | 24 + .../esm/previousWednesday/index.js.flow | 52 + .../esm/previousWednesday/package.json | 4 + .../date-fns/esm/quartersToMonths/index.d.ts | 4 + .../date-fns/esm/quartersToMonths/index.js | 25 + .../esm/quartersToMonths/index.js.flow | 52 + .../esm/quartersToMonths/package.json | 4 + .../date-fns/esm/quartersToYears/index.d.ts | 4 + .../date-fns/esm/quartersToYears/index.js | 31 + .../esm/quartersToYears/index.js.flow | 52 + .../date-fns/esm/quartersToYears/package.json | 4 + .../esm/roundToNearestMinutes/index.d.ts | 4 + .../esm/roundToNearestMinutes/index.js | 55 + .../esm/roundToNearestMinutes/index.js.flow | 58 + .../esm/roundToNearestMinutes/package.json | 4 + .../date-fns/esm/secondsToHours/index.d.ts | 4 + .../date-fns/esm/secondsToHours/index.js | 31 + .../date-fns/esm/secondsToHours/index.js.flow | 52 + .../date-fns/esm/secondsToHours/package.json | 4 + .../esm/secondsToMilliseconds/index.d.ts | 4 + .../esm/secondsToMilliseconds/index.js | 25 + .../esm/secondsToMilliseconds/index.js.flow | 52 + .../esm/secondsToMilliseconds/package.json | 4 + .../date-fns/esm/secondsToMinutes/index.d.ts | 4 + .../date-fns/esm/secondsToMinutes/index.js | 31 + .../esm/secondsToMinutes/index.js.flow | 52 + .../esm/secondsToMinutes/package.json | 4 + node_modules/date-fns/esm/set/index.d.ts | 4 + node_modules/date-fns/esm/set/index.js | 88 + node_modules/date-fns/esm/set/index.js.flow | 63 + node_modules/date-fns/esm/set/package.json | 4 + node_modules/date-fns/esm/setDate/index.d.ts | 4 + node_modules/date-fns/esm/setDate/index.js | 29 + .../date-fns/esm/setDate/index.js.flow | 52 + .../date-fns/esm/setDate/package.json | 4 + node_modules/date-fns/esm/setDay/index.d.ts | 4 + node_modules/date-fns/esm/setDay/index.js | 53 + .../date-fns/esm/setDay/index.js.flow | 59 + node_modules/date-fns/esm/setDay/package.json | 4 + .../date-fns/esm/setDayOfYear/index.d.ts | 4 + .../date-fns/esm/setDayOfYear/index.js | 30 + .../date-fns/esm/setDayOfYear/index.js.flow | 52 + .../date-fns/esm/setDayOfYear/package.json | 4 + .../date-fns/esm/setDefaultOptions/index.d.ts | 4 + .../date-fns/esm/setDefaultOptions/index.js | 77 + .../esm/setDefaultOptions/index.js.flow | 56 + .../esm/setDefaultOptions/package.json | 4 + node_modules/date-fns/esm/setHours/index.d.ts | 4 + node_modules/date-fns/esm/setHours/index.js | 29 + .../date-fns/esm/setHours/index.js.flow | 52 + .../date-fns/esm/setHours/package.json | 4 + .../date-fns/esm/setISODay/index.d.ts | 4 + node_modules/date-fns/esm/setISODay/index.js | 34 + .../date-fns/esm/setISODay/index.js.flow | 52 + .../date-fns/esm/setISODay/package.json | 4 + .../date-fns/esm/setISOWeek/index.d.ts | 4 + node_modules/date-fns/esm/setISOWeek/index.js | 33 + .../date-fns/esm/setISOWeek/index.js.flow | 52 + .../date-fns/esm/setISOWeek/package.json | 4 + .../date-fns/esm/setISOWeekYear/index.d.ts | 4 + .../date-fns/esm/setISOWeekYear/index.js | 39 + .../date-fns/esm/setISOWeekYear/index.js.flow | 52 + .../date-fns/esm/setISOWeekYear/package.json | 4 + .../date-fns/esm/setMilliseconds/index.d.ts | 4 + .../date-fns/esm/setMilliseconds/index.js | 29 + .../esm/setMilliseconds/index.js.flow | 52 + .../date-fns/esm/setMilliseconds/package.json | 4 + .../date-fns/esm/setMinutes/index.d.ts | 4 + node_modules/date-fns/esm/setMinutes/index.js | 29 + .../date-fns/esm/setMinutes/index.js.flow | 52 + .../date-fns/esm/setMinutes/package.json | 4 + node_modules/date-fns/esm/setMonth/index.d.ts | 4 + node_modules/date-fns/esm/setMonth/index.js | 38 + .../date-fns/esm/setMonth/index.js.flow | 52 + .../date-fns/esm/setMonth/package.json | 4 + .../date-fns/esm/setQuarter/index.d.ts | 4 + node_modules/date-fns/esm/setQuarter/index.js | 31 + .../date-fns/esm/setQuarter/index.js.flow | 52 + .../date-fns/esm/setQuarter/package.json | 4 + .../date-fns/esm/setSeconds/index.d.ts | 4 + node_modules/date-fns/esm/setSeconds/index.js | 29 + .../date-fns/esm/setSeconds/index.js.flow | 52 + .../date-fns/esm/setSeconds/package.json | 4 + node_modules/date-fns/esm/setWeek/index.d.ts | 4 + node_modules/date-fns/esm/setWeek/index.js | 53 + .../date-fns/esm/setWeek/index.js.flow | 60 + .../date-fns/esm/setWeek/package.json | 4 + .../date-fns/esm/setWeekYear/index.d.ts | 4 + .../date-fns/esm/setWeekYear/index.js | 64 + .../date-fns/esm/setWeekYear/index.js.flow | 60 + .../date-fns/esm/setWeekYear/package.json | 4 + node_modules/date-fns/esm/setYear/index.d.ts | 4 + node_modules/date-fns/esm/setYear/index.js | 34 + .../date-fns/esm/setYear/index.js.flow | 52 + .../date-fns/esm/setYear/package.json | 4 + .../date-fns/esm/startOfDay/index.d.ts | 4 + node_modules/date-fns/esm/startOfDay/index.js | 27 + .../date-fns/esm/startOfDay/index.js.flow | 52 + .../date-fns/esm/startOfDay/package.json | 4 + .../date-fns/esm/startOfDecade/index.d.ts | 4 + .../date-fns/esm/startOfDecade/index.js | 29 + .../date-fns/esm/startOfDecade/index.js.flow | 52 + .../date-fns/esm/startOfDecade/package.json | 4 + .../date-fns/esm/startOfHour/index.d.ts | 4 + .../date-fns/esm/startOfHour/index.js | 27 + .../date-fns/esm/startOfHour/index.js.flow | 52 + .../date-fns/esm/startOfHour/package.json | 4 + .../date-fns/esm/startOfISOWeek/index.d.ts | 4 + .../date-fns/esm/startOfISOWeek/index.js | 29 + .../date-fns/esm/startOfISOWeek/index.js.flow | 52 + .../date-fns/esm/startOfISOWeek/package.json | 4 + .../esm/startOfISOWeekYear/index.d.ts | 4 + .../date-fns/esm/startOfISOWeekYear/index.js | 34 + .../esm/startOfISOWeekYear/index.js.flow | 52 + .../esm/startOfISOWeekYear/package.json | 4 + .../date-fns/esm/startOfMinute/index.d.ts | 4 + .../date-fns/esm/startOfMinute/index.js | 27 + .../date-fns/esm/startOfMinute/index.js.flow | 52 + .../date-fns/esm/startOfMinute/package.json | 4 + .../date-fns/esm/startOfMonth/index.d.ts | 4 + .../date-fns/esm/startOfMonth/index.js | 28 + .../date-fns/esm/startOfMonth/index.js.flow | 52 + .../date-fns/esm/startOfMonth/package.json | 4 + .../date-fns/esm/startOfQuarter/index.d.ts | 4 + .../date-fns/esm/startOfQuarter/index.js | 30 + .../date-fns/esm/startOfQuarter/index.js.flow | 52 + .../date-fns/esm/startOfQuarter/package.json | 4 + .../date-fns/esm/startOfSecond/index.d.ts | 4 + .../date-fns/esm/startOfSecond/index.js | 27 + .../date-fns/esm/startOfSecond/index.js.flow | 52 + .../date-fns/esm/startOfSecond/package.json | 4 + .../date-fns/esm/startOfToday/index.d.ts | 4 + .../date-fns/esm/startOfToday/index.js | 24 + .../date-fns/esm/startOfToday/index.js.flow | 52 + .../date-fns/esm/startOfToday/package.json | 4 + .../date-fns/esm/startOfTomorrow/index.d.ts | 4 + .../date-fns/esm/startOfTomorrow/index.js | 29 + .../esm/startOfTomorrow/index.js.flow | 52 + .../date-fns/esm/startOfTomorrow/package.json | 4 + .../date-fns/esm/startOfWeek/index.d.ts | 4 + .../date-fns/esm/startOfWeek/index.js | 50 + .../date-fns/esm/startOfWeek/index.js.flow | 58 + .../date-fns/esm/startOfWeek/package.json | 4 + .../date-fns/esm/startOfWeekYear/index.d.ts | 4 + .../date-fns/esm/startOfWeekYear/index.js | 58 + .../esm/startOfWeekYear/index.js.flow | 59 + .../date-fns/esm/startOfWeekYear/package.json | 4 + .../date-fns/esm/startOfYear/index.d.ts | 4 + .../date-fns/esm/startOfYear/index.js | 29 + .../date-fns/esm/startOfYear/index.js.flow | 52 + .../date-fns/esm/startOfYear/package.json | 4 + .../date-fns/esm/startOfYesterday/index.d.ts | 4 + .../date-fns/esm/startOfYesterday/index.js | 29 + .../esm/startOfYesterday/index.js.flow | 52 + .../esm/startOfYesterday/package.json | 4 + node_modules/date-fns/esm/sub/index.d.ts | 4 + node_modules/date-fns/esm/sub/index.js | 67 + node_modules/date-fns/esm/sub/index.js.flow | 52 + node_modules/date-fns/esm/sub/package.json | 4 + .../date-fns/esm/subBusinessDays/index.d.ts | 4 + .../date-fns/esm/subBusinessDays/index.js | 27 + .../esm/subBusinessDays/index.js.flow | 52 + .../date-fns/esm/subBusinessDays/package.json | 4 + node_modules/date-fns/esm/subDays/index.d.ts | 4 + node_modules/date-fns/esm/subDays/index.js | 27 + .../date-fns/esm/subDays/index.js.flow | 52 + .../date-fns/esm/subDays/package.json | 4 + node_modules/date-fns/esm/subHours/index.d.ts | 4 + node_modules/date-fns/esm/subHours/index.js | 27 + .../date-fns/esm/subHours/index.js.flow | 52 + .../date-fns/esm/subHours/package.json | 4 + .../date-fns/esm/subISOWeekYears/index.d.ts | 4 + .../date-fns/esm/subISOWeekYears/index.js | 29 + .../esm/subISOWeekYears/index.js.flow | 52 + .../date-fns/esm/subISOWeekYears/package.json | 4 + .../date-fns/esm/subMilliseconds/index.d.ts | 4 + .../date-fns/esm/subMilliseconds/index.js | 27 + .../esm/subMilliseconds/index.js.flow | 52 + .../date-fns/esm/subMilliseconds/package.json | 4 + .../date-fns/esm/subMinutes/index.d.ts | 4 + node_modules/date-fns/esm/subMinutes/index.js | 27 + .../date-fns/esm/subMinutes/index.js.flow | 52 + .../date-fns/esm/subMinutes/package.json | 4 + .../date-fns/esm/subMonths/index.d.ts | 4 + node_modules/date-fns/esm/subMonths/index.js | 27 + .../date-fns/esm/subMonths/index.js.flow | 52 + .../date-fns/esm/subMonths/package.json | 4 + .../date-fns/esm/subQuarters/index.d.ts | 4 + .../date-fns/esm/subQuarters/index.js | 27 + .../date-fns/esm/subQuarters/index.js.flow | 52 + .../date-fns/esm/subQuarters/package.json | 4 + .../date-fns/esm/subSeconds/index.d.ts | 4 + node_modules/date-fns/esm/subSeconds/index.js | 27 + .../date-fns/esm/subSeconds/index.js.flow | 52 + .../date-fns/esm/subSeconds/package.json | 4 + node_modules/date-fns/esm/subWeeks/index.d.ts | 4 + node_modules/date-fns/esm/subWeeks/index.js | 27 + .../date-fns/esm/subWeeks/index.js.flow | 52 + .../date-fns/esm/subWeeks/package.json | 4 + node_modules/date-fns/esm/subYears/index.d.ts | 4 + node_modules/date-fns/esm/subYears/index.js | 27 + .../date-fns/esm/subYears/index.js.flow | 52 + .../date-fns/esm/subYears/package.json | 4 + node_modules/date-fns/esm/toDate/index.d.ts | 4 + node_modules/date-fns/esm/toDate/index.js | 54 + .../date-fns/esm/toDate/index.js.flow | 52 + node_modules/date-fns/esm/toDate/package.json | 4 + node_modules/date-fns/esm/types.js | 1 + .../date-fns/esm/weeksToDays/index.d.ts | 4 + .../date-fns/esm/weeksToDays/index.js | 25 + .../date-fns/esm/weeksToDays/index.js.flow | 52 + .../date-fns/esm/weeksToDays/package.json | 4 + .../date-fns/esm/yearsToMonths/index.d.ts | 4 + .../date-fns/esm/yearsToMonths/index.js | 25 + .../date-fns/esm/yearsToMonths/index.js.flow | 52 + .../date-fns/esm/yearsToMonths/package.json | 4 + .../date-fns/esm/yearsToQuarters/index.d.ts | 4 + .../date-fns/esm/yearsToQuarters/index.js | 25 + .../esm/yearsToQuarters/index.js.flow | 52 + .../date-fns/esm/yearsToQuarters/package.json | 4 + node_modules/date-fns/format/index.d.ts | 4 + node_modules/date-fns/format/index.js | 440 + node_modules/date-fns/format/index.js.flow | 62 + node_modules/date-fns/format/package.json | 5 + .../date-fns/formatDistance/index.d.ts | 4 + node_modules/date-fns/formatDistance/index.js | 211 + .../date-fns/formatDistance/index.js.flow | 60 + .../date-fns/formatDistance/package.json | 5 + .../date-fns/formatDistanceStrict/index.d.ts | 4 + .../date-fns/formatDistanceStrict/index.js | 208 + .../formatDistanceStrict/index.js.flow | 61 + .../formatDistanceStrict/package.json | 5 + .../date-fns/formatDistanceToNow/index.d.ts | 4 + .../date-fns/formatDistanceToNow/index.js | 105 + .../formatDistanceToNow/index.js.flow | 59 + .../date-fns/formatDistanceToNow/package.json | 5 + .../formatDistanceToNowStrict/index.d.ts | 4 + .../formatDistanceToNowStrict/index.js | 93 + .../formatDistanceToNowStrict/index.js.flow | 60 + .../formatDistanceToNowStrict/package.json | 5 + .../date-fns/formatDuration/index.d.ts | 4 + node_modules/date-fns/formatDuration/index.js | 110 + .../date-fns/formatDuration/index.js.flow | 60 + .../date-fns/formatDuration/package.json | 5 + node_modules/date-fns/formatISO/index.d.ts | 4 + node_modules/date-fns/formatISO/index.js | 118 + node_modules/date-fns/formatISO/index.js.flow | 58 + node_modules/date-fns/formatISO/package.json | 5 + .../date-fns/formatISO9075/index.d.ts | 4 + node_modules/date-fns/formatISO9075/index.js | 104 + .../date-fns/formatISO9075/index.js.flow | 58 + .../date-fns/formatISO9075/package.json | 5 + .../date-fns/formatISODuration/index.d.ts | 4 + .../date-fns/formatISODuration/index.js | 58 + .../date-fns/formatISODuration/index.js.flow | 52 + .../date-fns/formatISODuration/package.json | 5 + .../date-fns/formatRFC3339/index.d.ts | 4 + node_modules/date-fns/formatRFC3339/index.js | 99 + .../date-fns/formatRFC3339/index.js.flow | 57 + .../date-fns/formatRFC3339/package.json | 5 + .../date-fns/formatRFC7231/index.d.ts | 4 + node_modules/date-fns/formatRFC7231/index.js | 60 + .../date-fns/formatRFC7231/index.js.flow | 52 + .../date-fns/formatRFC7231/package.json | 5 + .../date-fns/formatRelative/index.d.ts | 4 + node_modules/date-fns/formatRelative/index.js | 122 + .../date-fns/formatRelative/index.js.flow | 59 + .../date-fns/formatRelative/package.json | 5 + .../date-fns/fp/_lib/convertToFP/index.js | 24 + node_modules/date-fns/fp/add/index.d.ts | 4 + node_modules/date-fns/fp/add/index.js | 18 + node_modules/date-fns/fp/add/index.js.flow | 58 + node_modules/date-fns/fp/add/package.json | 5 + .../date-fns/fp/addBusinessDays/index.d.ts | 4 + .../date-fns/fp/addBusinessDays/index.js | 18 + .../date-fns/fp/addBusinessDays/index.js.flow | 58 + .../date-fns/fp/addBusinessDays/package.json | 5 + node_modules/date-fns/fp/addDays/index.d.ts | 4 + node_modules/date-fns/fp/addDays/index.js | 18 + .../date-fns/fp/addDays/index.js.flow | 58 + node_modules/date-fns/fp/addDays/package.json | 5 + node_modules/date-fns/fp/addHours/index.d.ts | 4 + node_modules/date-fns/fp/addHours/index.js | 18 + .../date-fns/fp/addHours/index.js.flow | 58 + .../date-fns/fp/addHours/package.json | 5 + .../date-fns/fp/addISOWeekYears/index.d.ts | 4 + .../date-fns/fp/addISOWeekYears/index.js | 18 + .../date-fns/fp/addISOWeekYears/index.js.flow | 58 + .../date-fns/fp/addISOWeekYears/package.json | 5 + .../date-fns/fp/addMilliseconds/index.d.ts | 4 + .../date-fns/fp/addMilliseconds/index.js | 18 + .../date-fns/fp/addMilliseconds/index.js.flow | 58 + .../date-fns/fp/addMilliseconds/package.json | 5 + .../date-fns/fp/addMinutes/index.d.ts | 4 + node_modules/date-fns/fp/addMinutes/index.js | 18 + .../date-fns/fp/addMinutes/index.js.flow | 58 + .../date-fns/fp/addMinutes/package.json | 5 + node_modules/date-fns/fp/addMonths/index.d.ts | 4 + node_modules/date-fns/fp/addMonths/index.js | 18 + .../date-fns/fp/addMonths/index.js.flow | 58 + .../date-fns/fp/addMonths/package.json | 5 + .../date-fns/fp/addQuarters/index.d.ts | 4 + node_modules/date-fns/fp/addQuarters/index.js | 18 + .../date-fns/fp/addQuarters/index.js.flow | 58 + .../date-fns/fp/addQuarters/package.json | 5 + .../date-fns/fp/addSeconds/index.d.ts | 4 + node_modules/date-fns/fp/addSeconds/index.js | 18 + .../date-fns/fp/addSeconds/index.js.flow | 58 + .../date-fns/fp/addSeconds/package.json | 5 + node_modules/date-fns/fp/addWeeks/index.d.ts | 4 + node_modules/date-fns/fp/addWeeks/index.js | 18 + .../date-fns/fp/addWeeks/index.js.flow | 58 + .../date-fns/fp/addWeeks/package.json | 5 + node_modules/date-fns/fp/addYears/index.d.ts | 4 + node_modules/date-fns/fp/addYears/index.js | 18 + .../date-fns/fp/addYears/index.js.flow | 58 + .../date-fns/fp/addYears/package.json | 5 + .../fp/areIntervalsOverlapping/index.d.ts | 4 + .../fp/areIntervalsOverlapping/index.js | 18 + .../fp/areIntervalsOverlapping/index.js.flow | 58 + .../fp/areIntervalsOverlapping/package.json | 5 + .../index.d.ts | 4 + .../index.js | 18 + .../index.js.flow | 74 + .../package.json | 5 + node_modules/date-fns/fp/clamp/index.d.ts | 4 + node_modules/date-fns/fp/clamp/index.js | 18 + node_modules/date-fns/fp/clamp/index.js.flow | 58 + node_modules/date-fns/fp/clamp/package.json | 5 + .../date-fns/fp/closestIndexTo/index.d.ts | 4 + .../date-fns/fp/closestIndexTo/index.js | 18 + .../date-fns/fp/closestIndexTo/index.js.flow | 58 + .../date-fns/fp/closestIndexTo/package.json | 5 + node_modules/date-fns/fp/closestTo/index.d.ts | 4 + node_modules/date-fns/fp/closestTo/index.js | 18 + .../date-fns/fp/closestTo/index.js.flow | 58 + .../date-fns/fp/closestTo/package.json | 5 + .../date-fns/fp/compareAsc/index.d.ts | 4 + node_modules/date-fns/fp/compareAsc/index.js | 18 + .../date-fns/fp/compareAsc/index.js.flow | 58 + .../date-fns/fp/compareAsc/package.json | 5 + .../date-fns/fp/compareDesc/index.d.ts | 4 + node_modules/date-fns/fp/compareDesc/index.js | 18 + .../date-fns/fp/compareDesc/index.js.flow | 58 + .../date-fns/fp/compareDesc/package.json | 5 + .../date-fns/fp/daysToWeeks/index.d.ts | 4 + node_modules/date-fns/fp/daysToWeeks/index.js | 18 + .../date-fns/fp/daysToWeeks/index.js.flow | 54 + .../date-fns/fp/daysToWeeks/package.json | 5 + .../fp/differenceInBusinessDays/index.d.ts | 4 + .../fp/differenceInBusinessDays/index.js | 18 + .../fp/differenceInBusinessDays/index.js.flow | 58 + .../fp/differenceInBusinessDays/package.json | 5 + .../fp/differenceInCalendarDays/index.d.ts | 4 + .../fp/differenceInCalendarDays/index.js | 18 + .../fp/differenceInCalendarDays/index.js.flow | 58 + .../fp/differenceInCalendarDays/package.json | 5 + .../index.d.ts | 4 + .../differenceInCalendarISOWeekYears/index.js | 18 + .../index.js.flow | 58 + .../package.json | 5 + .../differenceInCalendarISOWeeks/index.d.ts | 4 + .../fp/differenceInCalendarISOWeeks/index.js | 18 + .../index.js.flow | 58 + .../differenceInCalendarISOWeeks/package.json | 5 + .../fp/differenceInCalendarMonths/index.d.ts | 4 + .../fp/differenceInCalendarMonths/index.js | 18 + .../differenceInCalendarMonths/index.js.flow | 58 + .../differenceInCalendarMonths/package.json | 5 + .../differenceInCalendarQuarters/index.d.ts | 4 + .../fp/differenceInCalendarQuarters/index.js | 18 + .../index.js.flow | 58 + .../differenceInCalendarQuarters/package.json | 5 + .../fp/differenceInCalendarWeeks/index.d.ts | 4 + .../fp/differenceInCalendarWeeks/index.js | 18 + .../differenceInCalendarWeeks/index.js.flow | 58 + .../fp/differenceInCalendarWeeks/package.json | 5 + .../index.d.ts | 4 + .../index.js | 18 + .../index.js.flow | 75 + .../package.json | 5 + .../fp/differenceInCalendarYears/index.d.ts | 4 + .../fp/differenceInCalendarYears/index.js | 18 + .../differenceInCalendarYears/index.js.flow | 58 + .../fp/differenceInCalendarYears/package.json | 5 + .../date-fns/fp/differenceInDays/index.d.ts | 4 + .../date-fns/fp/differenceInDays/index.js | 18 + .../fp/differenceInDays/index.js.flow | 58 + .../date-fns/fp/differenceInDays/package.json | 5 + .../date-fns/fp/differenceInHours/index.d.ts | 4 + .../date-fns/fp/differenceInHours/index.js | 18 + .../fp/differenceInHours/index.js.flow | 58 + .../fp/differenceInHours/package.json | 5 + .../differenceInHoursWithOptions/index.d.ts | 4 + .../fp/differenceInHoursWithOptions/index.js | 18 + .../index.js.flow | 74 + .../differenceInHoursWithOptions/package.json | 5 + .../fp/differenceInISOWeekYears/index.d.ts | 4 + .../fp/differenceInISOWeekYears/index.js | 18 + .../fp/differenceInISOWeekYears/index.js.flow | 58 + .../fp/differenceInISOWeekYears/package.json | 5 + .../fp/differenceInMilliseconds/index.d.ts | 4 + .../fp/differenceInMilliseconds/index.js | 18 + .../fp/differenceInMilliseconds/index.js.flow | 58 + .../fp/differenceInMilliseconds/package.json | 5 + .../fp/differenceInMinutes/index.d.ts | 4 + .../date-fns/fp/differenceInMinutes/index.js | 18 + .../fp/differenceInMinutes/index.js.flow | 58 + .../fp/differenceInMinutes/package.json | 5 + .../differenceInMinutesWithOptions/index.d.ts | 4 + .../differenceInMinutesWithOptions/index.js | 18 + .../index.js.flow | 74 + .../package.json | 5 + .../date-fns/fp/differenceInMonths/index.d.ts | 4 + .../date-fns/fp/differenceInMonths/index.js | 18 + .../fp/differenceInMonths/index.js.flow | 58 + .../fp/differenceInMonths/package.json | 5 + .../fp/differenceInQuarters/index.d.ts | 4 + .../date-fns/fp/differenceInQuarters/index.js | 18 + .../fp/differenceInQuarters/index.js.flow | 58 + .../fp/differenceInQuarters/package.json | 5 + .../index.d.ts | 4 + .../differenceInQuartersWithOptions/index.js | 18 + .../index.js.flow | 74 + .../package.json | 5 + .../fp/differenceInSeconds/index.d.ts | 4 + .../date-fns/fp/differenceInSeconds/index.js | 18 + .../fp/differenceInSeconds/index.js.flow | 58 + .../fp/differenceInSeconds/package.json | 5 + .../differenceInSecondsWithOptions/index.d.ts | 4 + .../differenceInSecondsWithOptions/index.js | 18 + .../index.js.flow | 74 + .../package.json | 5 + .../date-fns/fp/differenceInWeeks/index.d.ts | 4 + .../date-fns/fp/differenceInWeeks/index.js | 18 + .../fp/differenceInWeeks/index.js.flow | 58 + .../fp/differenceInWeeks/package.json | 5 + .../differenceInWeeksWithOptions/index.d.ts | 4 + .../fp/differenceInWeeksWithOptions/index.js | 18 + .../index.js.flow | 74 + .../differenceInWeeksWithOptions/package.json | 5 + .../date-fns/fp/differenceInYears/index.d.ts | 4 + .../date-fns/fp/differenceInYears/index.js | 18 + .../fp/differenceInYears/index.js.flow | 58 + .../fp/differenceInYears/package.json | 5 + .../date-fns/fp/eachDayOfInterval/index.d.ts | 4 + .../date-fns/fp/eachDayOfInterval/index.js | 18 + .../fp/eachDayOfInterval/index.js.flow | 54 + .../fp/eachDayOfInterval/package.json | 5 + .../eachDayOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachDayOfIntervalWithOptions/index.js | 18 + .../index.js.flow | 64 + .../eachDayOfIntervalWithOptions/package.json | 5 + .../date-fns/fp/eachHourOfInterval/index.d.ts | 4 + .../date-fns/fp/eachHourOfInterval/index.js | 18 + .../fp/eachHourOfInterval/index.js.flow | 54 + .../fp/eachHourOfInterval/package.json | 5 + .../eachHourOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachHourOfIntervalWithOptions/index.js | 18 + .../index.js.flow | 64 + .../package.json | 5 + .../fp/eachMinuteOfInterval/index.d.ts | 4 + .../date-fns/fp/eachMinuteOfInterval/index.js | 18 + .../fp/eachMinuteOfInterval/index.js.flow | 54 + .../fp/eachMinuteOfInterval/package.json | 5 + .../index.d.ts | 4 + .../eachMinuteOfIntervalWithOptions/index.js | 18 + .../index.js.flow | 64 + .../package.json | 5 + .../fp/eachMonthOfInterval/index.d.ts | 4 + .../date-fns/fp/eachMonthOfInterval/index.js | 18 + .../fp/eachMonthOfInterval/index.js.flow | 54 + .../fp/eachMonthOfInterval/package.json | 5 + .../fp/eachQuarterOfInterval/index.d.ts | 4 + .../fp/eachQuarterOfInterval/index.js | 18 + .../fp/eachQuarterOfInterval/index.js.flow | 54 + .../fp/eachQuarterOfInterval/package.json | 5 + .../date-fns/fp/eachWeekOfInterval/index.d.ts | 4 + .../date-fns/fp/eachWeekOfInterval/index.js | 18 + .../fp/eachWeekOfInterval/index.js.flow | 54 + .../fp/eachWeekOfInterval/package.json | 5 + .../eachWeekOfIntervalWithOptions/index.d.ts | 4 + .../fp/eachWeekOfIntervalWithOptions/index.js | 18 + .../index.js.flow | 65 + .../package.json | 5 + .../fp/eachWeekendOfInterval/index.d.ts | 4 + .../fp/eachWeekendOfInterval/index.js | 18 + .../fp/eachWeekendOfInterval/index.js.flow | 54 + .../fp/eachWeekendOfInterval/package.json | 5 + .../date-fns/fp/eachWeekendOfMonth/index.d.ts | 4 + .../date-fns/fp/eachWeekendOfMonth/index.js | 18 + .../fp/eachWeekendOfMonth/index.js.flow | 54 + .../fp/eachWeekendOfMonth/package.json | 5 + .../date-fns/fp/eachWeekendOfYear/index.d.ts | 4 + .../date-fns/fp/eachWeekendOfYear/index.js | 18 + .../fp/eachWeekendOfYear/index.js.flow | 54 + .../fp/eachWeekendOfYear/package.json | 5 + .../date-fns/fp/eachYearOfInterval/index.d.ts | 4 + .../date-fns/fp/eachYearOfInterval/index.js | 18 + .../fp/eachYearOfInterval/index.js.flow | 54 + .../fp/eachYearOfInterval/package.json | 5 + node_modules/date-fns/fp/endOfDay/index.d.ts | 4 + node_modules/date-fns/fp/endOfDay/index.js | 18 + .../date-fns/fp/endOfDay/index.js.flow | 54 + .../date-fns/fp/endOfDay/package.json | 5 + .../date-fns/fp/endOfDecade/index.d.ts | 4 + node_modules/date-fns/fp/endOfDecade/index.js | 18 + .../date-fns/fp/endOfDecade/index.js.flow | 54 + .../date-fns/fp/endOfDecade/package.json | 5 + .../fp/endOfDecadeWithOptions/index.d.ts | 4 + .../fp/endOfDecadeWithOptions/index.js | 18 + .../fp/endOfDecadeWithOptions/index.js.flow | 64 + .../fp/endOfDecadeWithOptions/package.json | 5 + node_modules/date-fns/fp/endOfHour/index.d.ts | 4 + node_modules/date-fns/fp/endOfHour/index.js | 18 + .../date-fns/fp/endOfHour/index.js.flow | 54 + .../date-fns/fp/endOfHour/package.json | 5 + .../date-fns/fp/endOfISOWeek/index.d.ts | 4 + .../date-fns/fp/endOfISOWeek/index.js | 18 + .../date-fns/fp/endOfISOWeek/index.js.flow | 54 + .../date-fns/fp/endOfISOWeek/package.json | 5 + .../date-fns/fp/endOfISOWeekYear/index.d.ts | 4 + .../date-fns/fp/endOfISOWeekYear/index.js | 18 + .../fp/endOfISOWeekYear/index.js.flow | 54 + .../date-fns/fp/endOfISOWeekYear/package.json | 5 + .../date-fns/fp/endOfMinute/index.d.ts | 4 + node_modules/date-fns/fp/endOfMinute/index.js | 18 + .../date-fns/fp/endOfMinute/index.js.flow | 54 + .../date-fns/fp/endOfMinute/package.json | 5 + .../date-fns/fp/endOfMonth/index.d.ts | 4 + node_modules/date-fns/fp/endOfMonth/index.js | 18 + .../date-fns/fp/endOfMonth/index.js.flow | 54 + .../date-fns/fp/endOfMonth/package.json | 5 + .../date-fns/fp/endOfQuarter/index.d.ts | 4 + .../date-fns/fp/endOfQuarter/index.js | 18 + .../date-fns/fp/endOfQuarter/index.js.flow | 54 + .../date-fns/fp/endOfQuarter/package.json | 5 + .../date-fns/fp/endOfSecond/index.d.ts | 4 + node_modules/date-fns/fp/endOfSecond/index.js | 18 + .../date-fns/fp/endOfSecond/index.js.flow | 54 + .../date-fns/fp/endOfSecond/package.json | 5 + node_modules/date-fns/fp/endOfWeek/index.d.ts | 4 + node_modules/date-fns/fp/endOfWeek/index.js | 18 + .../date-fns/fp/endOfWeek/index.js.flow | 54 + .../date-fns/fp/endOfWeek/package.json | 5 + .../fp/endOfWeekWithOptions/index.d.ts | 4 + .../date-fns/fp/endOfWeekWithOptions/index.js | 18 + .../fp/endOfWeekWithOptions/index.js.flow | 65 + .../fp/endOfWeekWithOptions/package.json | 5 + node_modules/date-fns/fp/endOfYear/index.d.ts | 4 + node_modules/date-fns/fp/endOfYear/index.js | 18 + .../date-fns/fp/endOfYear/index.js.flow | 54 + .../date-fns/fp/endOfYear/package.json | 5 + node_modules/date-fns/fp/format/index.d.ts | 4 + node_modules/date-fns/fp/format/index.js | 18 + node_modules/date-fns/fp/format/index.js.flow | 58 + node_modules/date-fns/fp/format/package.json | 5 + .../date-fns/fp/formatDistance/index.d.ts | 4 + .../date-fns/fp/formatDistance/index.js | 18 + .../date-fns/fp/formatDistance/index.js.flow | 58 + .../date-fns/fp/formatDistance/package.json | 5 + .../fp/formatDistanceStrict/index.d.ts | 4 + .../date-fns/fp/formatDistanceStrict/index.js | 18 + .../fp/formatDistanceStrict/index.js.flow | 58 + .../fp/formatDistanceStrict/package.json | 5 + .../index.d.ts | 4 + .../formatDistanceStrictWithOptions/index.js | 18 + .../index.js.flow | 77 + .../package.json | 5 + .../fp/formatDistanceWithOptions/index.d.ts | 4 + .../fp/formatDistanceWithOptions/index.js | 18 + .../formatDistanceWithOptions/index.js.flow | 76 + .../fp/formatDistanceWithOptions/package.json | 5 + .../date-fns/fp/formatDuration/index.d.ts | 4 + .../date-fns/fp/formatDuration/index.js | 18 + .../date-fns/fp/formatDuration/index.js.flow | 54 + .../date-fns/fp/formatDuration/package.json | 5 + .../fp/formatDurationWithOptions/index.d.ts | 4 + .../fp/formatDurationWithOptions/index.js | 18 + .../formatDurationWithOptions/index.js.flow | 67 + .../fp/formatDurationWithOptions/package.json | 5 + node_modules/date-fns/fp/formatISO/index.d.ts | 4 + node_modules/date-fns/fp/formatISO/index.js | 18 + .../date-fns/fp/formatISO/index.js.flow | 54 + .../date-fns/fp/formatISO/package.json | 5 + .../date-fns/fp/formatISO9075/index.d.ts | 4 + .../date-fns/fp/formatISO9075/index.js | 18 + .../date-fns/fp/formatISO9075/index.js.flow | 54 + .../date-fns/fp/formatISO9075/package.json | 5 + .../fp/formatISO9075WithOptions/index.d.ts | 4 + .../fp/formatISO9075WithOptions/index.js | 18 + .../fp/formatISO9075WithOptions/index.js.flow | 65 + .../fp/formatISO9075WithOptions/package.json | 5 + .../date-fns/fp/formatISODuration/index.d.ts | 4 + .../date-fns/fp/formatISODuration/index.js | 18 + .../fp/formatISODuration/index.js.flow | 54 + .../fp/formatISODuration/package.json | 5 + .../fp/formatISOWithOptions/index.d.ts | 4 + .../date-fns/fp/formatISOWithOptions/index.js | 18 + .../fp/formatISOWithOptions/index.js.flow | 65 + .../fp/formatISOWithOptions/package.json | 5 + .../date-fns/fp/formatRFC3339/index.d.ts | 4 + .../date-fns/fp/formatRFC3339/index.js | 18 + .../date-fns/fp/formatRFC3339/index.js.flow | 54 + .../date-fns/fp/formatRFC3339/package.json | 5 + .../fp/formatRFC3339WithOptions/index.d.ts | 4 + .../fp/formatRFC3339WithOptions/index.js | 18 + .../fp/formatRFC3339WithOptions/index.js.flow | 64 + .../fp/formatRFC3339WithOptions/package.json | 5 + .../date-fns/fp/formatRFC7231/index.d.ts | 4 + .../date-fns/fp/formatRFC7231/index.js | 18 + .../date-fns/fp/formatRFC7231/index.js.flow | 54 + .../date-fns/fp/formatRFC7231/package.json | 5 + .../date-fns/fp/formatRelative/index.d.ts | 4 + .../date-fns/fp/formatRelative/index.js | 18 + .../date-fns/fp/formatRelative/index.js.flow | 58 + .../date-fns/fp/formatRelative/package.json | 5 + .../fp/formatRelativeWithOptions/index.d.ts | 4 + .../fp/formatRelativeWithOptions/index.js | 18 + .../formatRelativeWithOptions/index.js.flow | 75 + .../fp/formatRelativeWithOptions/package.json | 5 + .../date-fns/fp/formatWithOptions/index.d.ts | 4 + .../date-fns/fp/formatWithOptions/index.js | 18 + .../fp/formatWithOptions/index.js.flow | 78 + .../fp/formatWithOptions/package.json | 5 + .../date-fns/fp/fromUnixTime/index.d.ts | 4 + .../date-fns/fp/fromUnixTime/index.js | 18 + .../date-fns/fp/fromUnixTime/index.js.flow | 54 + .../date-fns/fp/fromUnixTime/package.json | 5 + node_modules/date-fns/fp/getDate/index.d.ts | 4 + node_modules/date-fns/fp/getDate/index.js | 18 + .../date-fns/fp/getDate/index.js.flow | 54 + node_modules/date-fns/fp/getDate/package.json | 5 + node_modules/date-fns/fp/getDay/index.d.ts | 4 + node_modules/date-fns/fp/getDay/index.js | 18 + node_modules/date-fns/fp/getDay/index.js.flow | 54 + node_modules/date-fns/fp/getDay/package.json | 5 + .../date-fns/fp/getDayOfYear/index.d.ts | 4 + .../date-fns/fp/getDayOfYear/index.js | 18 + .../date-fns/fp/getDayOfYear/index.js.flow | 54 + .../date-fns/fp/getDayOfYear/package.json | 5 + .../date-fns/fp/getDaysInMonth/index.d.ts | 4 + .../date-fns/fp/getDaysInMonth/index.js | 18 + .../date-fns/fp/getDaysInMonth/index.js.flow | 54 + .../date-fns/fp/getDaysInMonth/package.json | 5 + .../date-fns/fp/getDaysInYear/index.d.ts | 4 + .../date-fns/fp/getDaysInYear/index.js | 18 + .../date-fns/fp/getDaysInYear/index.js.flow | 54 + .../date-fns/fp/getDaysInYear/package.json | 5 + node_modules/date-fns/fp/getDecade/index.d.ts | 4 + node_modules/date-fns/fp/getDecade/index.js | 18 + .../date-fns/fp/getDecade/index.js.flow | 54 + .../date-fns/fp/getDecade/package.json | 5 + node_modules/date-fns/fp/getHours/index.d.ts | 4 + node_modules/date-fns/fp/getHours/index.js | 18 + .../date-fns/fp/getHours/index.js.flow | 54 + .../date-fns/fp/getHours/package.json | 5 + node_modules/date-fns/fp/getISODay/index.d.ts | 4 + node_modules/date-fns/fp/getISODay/index.js | 18 + .../date-fns/fp/getISODay/index.js.flow | 54 + .../date-fns/fp/getISODay/package.json | 5 + .../date-fns/fp/getISOWeek/index.d.ts | 4 + node_modules/date-fns/fp/getISOWeek/index.js | 18 + .../date-fns/fp/getISOWeek/index.js.flow | 54 + .../date-fns/fp/getISOWeek/package.json | 5 + .../date-fns/fp/getISOWeekYear/index.d.ts | 4 + .../date-fns/fp/getISOWeekYear/index.js | 18 + .../date-fns/fp/getISOWeekYear/index.js.flow | 54 + .../date-fns/fp/getISOWeekYear/package.json | 5 + .../date-fns/fp/getISOWeeksInYear/index.d.ts | 4 + .../date-fns/fp/getISOWeeksInYear/index.js | 18 + .../fp/getISOWeeksInYear/index.js.flow | 54 + .../fp/getISOWeeksInYear/package.json | 5 + .../date-fns/fp/getMilliseconds/index.d.ts | 4 + .../date-fns/fp/getMilliseconds/index.js | 18 + .../date-fns/fp/getMilliseconds/index.js.flow | 54 + .../date-fns/fp/getMilliseconds/package.json | 5 + .../date-fns/fp/getMinutes/index.d.ts | 4 + node_modules/date-fns/fp/getMinutes/index.js | 18 + .../date-fns/fp/getMinutes/index.js.flow | 54 + .../date-fns/fp/getMinutes/package.json | 5 + node_modules/date-fns/fp/getMonth/index.d.ts | 4 + node_modules/date-fns/fp/getMonth/index.js | 18 + .../date-fns/fp/getMonth/index.js.flow | 54 + .../date-fns/fp/getMonth/package.json | 5 + .../getOverlappingDaysInIntervals/index.d.ts | 4 + .../fp/getOverlappingDaysInIntervals/index.js | 18 + .../index.js.flow | 58 + .../package.json | 5 + .../date-fns/fp/getQuarter/index.d.ts | 4 + node_modules/date-fns/fp/getQuarter/index.js | 18 + .../date-fns/fp/getQuarter/index.js.flow | 54 + .../date-fns/fp/getQuarter/package.json | 5 + .../date-fns/fp/getSeconds/index.d.ts | 4 + node_modules/date-fns/fp/getSeconds/index.js | 18 + .../date-fns/fp/getSeconds/index.js.flow | 54 + .../date-fns/fp/getSeconds/package.json | 5 + node_modules/date-fns/fp/getTime/index.d.ts | 4 + node_modules/date-fns/fp/getTime/index.js | 18 + .../date-fns/fp/getTime/index.js.flow | 54 + node_modules/date-fns/fp/getTime/package.json | 5 + .../date-fns/fp/getUnixTime/index.d.ts | 4 + node_modules/date-fns/fp/getUnixTime/index.js | 18 + .../date-fns/fp/getUnixTime/index.js.flow | 54 + .../date-fns/fp/getUnixTime/package.json | 5 + node_modules/date-fns/fp/getWeek/index.d.ts | 4 + node_modules/date-fns/fp/getWeek/index.js | 18 + .../date-fns/fp/getWeek/index.js.flow | 54 + node_modules/date-fns/fp/getWeek/package.json | 5 + .../date-fns/fp/getWeekOfMonth/index.d.ts | 4 + .../date-fns/fp/getWeekOfMonth/index.js | 18 + .../date-fns/fp/getWeekOfMonth/index.js.flow | 54 + .../date-fns/fp/getWeekOfMonth/package.json | 5 + .../fp/getWeekOfMonthWithOptions/index.d.ts | 4 + .../fp/getWeekOfMonthWithOptions/index.js | 18 + .../getWeekOfMonthWithOptions/index.js.flow | 65 + .../fp/getWeekOfMonthWithOptions/package.json | 5 + .../date-fns/fp/getWeekWithOptions/index.d.ts | 4 + .../date-fns/fp/getWeekWithOptions/index.js | 18 + .../fp/getWeekWithOptions/index.js.flow | 66 + .../fp/getWeekWithOptions/package.json | 5 + .../date-fns/fp/getWeekYear/index.d.ts | 4 + node_modules/date-fns/fp/getWeekYear/index.js | 18 + .../date-fns/fp/getWeekYear/index.js.flow | 54 + .../date-fns/fp/getWeekYear/package.json | 5 + .../fp/getWeekYearWithOptions/index.d.ts | 4 + .../fp/getWeekYearWithOptions/index.js | 18 + .../fp/getWeekYearWithOptions/index.js.flow | 66 + .../fp/getWeekYearWithOptions/package.json | 5 + .../date-fns/fp/getWeeksInMonth/index.d.ts | 4 + .../date-fns/fp/getWeeksInMonth/index.js | 18 + .../date-fns/fp/getWeeksInMonth/index.js.flow | 54 + .../date-fns/fp/getWeeksInMonth/package.json | 5 + .../fp/getWeeksInMonthWithOptions/index.d.ts | 4 + .../fp/getWeeksInMonthWithOptions/index.js | 18 + .../getWeeksInMonthWithOptions/index.js.flow | 65 + .../getWeeksInMonthWithOptions/package.json | 5 + node_modules/date-fns/fp/getYear/index.d.ts | 4 + node_modules/date-fns/fp/getYear/index.js | 18 + .../date-fns/fp/getYear/index.js.flow | 54 + node_modules/date-fns/fp/getYear/package.json | 5 + .../fp/hoursToMilliseconds/index.d.ts | 4 + .../date-fns/fp/hoursToMilliseconds/index.js | 18 + .../fp/hoursToMilliseconds/index.js.flow | 54 + .../fp/hoursToMilliseconds/package.json | 5 + .../date-fns/fp/hoursToMinutes/index.d.ts | 4 + .../date-fns/fp/hoursToMinutes/index.js | 18 + .../date-fns/fp/hoursToMinutes/index.js.flow | 54 + .../date-fns/fp/hoursToMinutes/package.json | 5 + .../date-fns/fp/hoursToSeconds/index.d.ts | 4 + .../date-fns/fp/hoursToSeconds/index.js | 18 + .../date-fns/fp/hoursToSeconds/index.js.flow | 54 + .../date-fns/fp/hoursToSeconds/package.json | 5 + node_modules/date-fns/fp/index.js | 2309 ++ node_modules/date-fns/fp/index.js.flow | 694 + .../date-fns/fp/intervalToDuration/index.d.ts | 4 + .../date-fns/fp/intervalToDuration/index.js | 18 + .../fp/intervalToDuration/index.js.flow | 54 + .../fp/intervalToDuration/package.json | 5 + .../date-fns/fp/intlFormat/index.d.ts | 4 + node_modules/date-fns/fp/intlFormat/index.js | 18 + .../date-fns/fp/intlFormat/index.js.flow | 88 + .../date-fns/fp/intlFormat/package.json | 5 + .../date-fns/fp/intlFormatDistance/index.d.ts | 4 + .../date-fns/fp/intlFormatDistance/index.js | 18 + .../fp/intlFormatDistance/index.js.flow | 58 + .../fp/intlFormatDistance/package.json | 5 + .../intlFormatDistanceWithOptions/index.d.ts | 4 + .../fp/intlFormatDistanceWithOptions/index.js | 18 + .../index.js.flow | 78 + .../package.json | 5 + node_modules/date-fns/fp/isAfter/index.d.ts | 4 + node_modules/date-fns/fp/isAfter/index.js | 18 + .../date-fns/fp/isAfter/index.js.flow | 58 + node_modules/date-fns/fp/isAfter/package.json | 5 + node_modules/date-fns/fp/isBefore/index.d.ts | 4 + node_modules/date-fns/fp/isBefore/index.js | 18 + .../date-fns/fp/isBefore/index.js.flow | 58 + .../date-fns/fp/isBefore/package.json | 5 + node_modules/date-fns/fp/isDate/index.d.ts | 4 + node_modules/date-fns/fp/isDate/index.js | 18 + node_modules/date-fns/fp/isDate/index.js.flow | 54 + node_modules/date-fns/fp/isDate/package.json | 5 + node_modules/date-fns/fp/isEqual/index.d.ts | 4 + node_modules/date-fns/fp/isEqual/index.js | 18 + .../date-fns/fp/isEqual/index.js.flow | 58 + node_modules/date-fns/fp/isEqual/package.json | 5 + node_modules/date-fns/fp/isExists/index.d.ts | 4 + node_modules/date-fns/fp/isExists/index.js | 18 + .../date-fns/fp/isExists/index.js.flow | 67 + .../date-fns/fp/isExists/package.json | 5 + .../date-fns/fp/isFirstDayOfMonth/index.d.ts | 4 + .../date-fns/fp/isFirstDayOfMonth/index.js | 18 + .../fp/isFirstDayOfMonth/index.js.flow | 54 + .../fp/isFirstDayOfMonth/package.json | 5 + node_modules/date-fns/fp/isFriday/index.d.ts | 4 + node_modules/date-fns/fp/isFriday/index.js | 18 + .../date-fns/fp/isFriday/index.js.flow | 54 + .../date-fns/fp/isFriday/package.json | 5 + .../date-fns/fp/isLastDayOfMonth/index.d.ts | 4 + .../date-fns/fp/isLastDayOfMonth/index.js | 18 + .../fp/isLastDayOfMonth/index.js.flow | 54 + .../date-fns/fp/isLastDayOfMonth/package.json | 5 + .../date-fns/fp/isLeapYear/index.d.ts | 4 + node_modules/date-fns/fp/isLeapYear/index.js | 18 + .../date-fns/fp/isLeapYear/index.js.flow | 54 + .../date-fns/fp/isLeapYear/package.json | 5 + node_modules/date-fns/fp/isMatch/index.d.ts | 4 + node_modules/date-fns/fp/isMatch/index.js | 18 + .../date-fns/fp/isMatch/index.js.flow | 58 + node_modules/date-fns/fp/isMatch/package.json | 5 + .../date-fns/fp/isMatchWithOptions/index.d.ts | 4 + .../date-fns/fp/isMatchWithOptions/index.js | 18 + .../fp/isMatchWithOptions/index.js.flow | 78 + .../fp/isMatchWithOptions/package.json | 5 + node_modules/date-fns/fp/isMonday/index.d.ts | 4 + node_modules/date-fns/fp/isMonday/index.js | 18 + .../date-fns/fp/isMonday/index.js.flow | 54 + .../date-fns/fp/isMonday/package.json | 5 + node_modules/date-fns/fp/isSameDay/index.d.ts | 4 + node_modules/date-fns/fp/isSameDay/index.js | 18 + .../date-fns/fp/isSameDay/index.js.flow | 58 + .../date-fns/fp/isSameDay/package.json | 5 + .../date-fns/fp/isSameHour/index.d.ts | 4 + node_modules/date-fns/fp/isSameHour/index.js | 18 + .../date-fns/fp/isSameHour/index.js.flow | 58 + .../date-fns/fp/isSameHour/package.json | 5 + .../date-fns/fp/isSameISOWeek/index.d.ts | 4 + .../date-fns/fp/isSameISOWeek/index.js | 18 + .../date-fns/fp/isSameISOWeek/index.js.flow | 58 + .../date-fns/fp/isSameISOWeek/package.json | 5 + .../date-fns/fp/isSameISOWeekYear/index.d.ts | 4 + .../date-fns/fp/isSameISOWeekYear/index.js | 18 + .../fp/isSameISOWeekYear/index.js.flow | 58 + .../fp/isSameISOWeekYear/package.json | 5 + .../date-fns/fp/isSameMinute/index.d.ts | 4 + .../date-fns/fp/isSameMinute/index.js | 18 + .../date-fns/fp/isSameMinute/index.js.flow | 58 + .../date-fns/fp/isSameMinute/package.json | 5 + .../date-fns/fp/isSameMonth/index.d.ts | 4 + node_modules/date-fns/fp/isSameMonth/index.js | 18 + .../date-fns/fp/isSameMonth/index.js.flow | 58 + .../date-fns/fp/isSameMonth/package.json | 5 + .../date-fns/fp/isSameQuarter/index.d.ts | 4 + .../date-fns/fp/isSameQuarter/index.js | 18 + .../date-fns/fp/isSameQuarter/index.js.flow | 58 + .../date-fns/fp/isSameQuarter/package.json | 5 + .../date-fns/fp/isSameSecond/index.d.ts | 4 + .../date-fns/fp/isSameSecond/index.js | 18 + .../date-fns/fp/isSameSecond/index.js.flow | 58 + .../date-fns/fp/isSameSecond/package.json | 5 + .../date-fns/fp/isSameWeek/index.d.ts | 4 + node_modules/date-fns/fp/isSameWeek/index.js | 18 + .../date-fns/fp/isSameWeek/index.js.flow | 58 + .../date-fns/fp/isSameWeek/package.json | 5 + .../fp/isSameWeekWithOptions/index.d.ts | 4 + .../fp/isSameWeekWithOptions/index.js | 18 + .../fp/isSameWeekWithOptions/index.js.flow | 75 + .../fp/isSameWeekWithOptions/package.json | 5 + .../date-fns/fp/isSameYear/index.d.ts | 4 + node_modules/date-fns/fp/isSameYear/index.js | 18 + .../date-fns/fp/isSameYear/index.js.flow | 58 + .../date-fns/fp/isSameYear/package.json | 5 + .../date-fns/fp/isSaturday/index.d.ts | 4 + node_modules/date-fns/fp/isSaturday/index.js | 18 + .../date-fns/fp/isSaturday/index.js.flow | 54 + .../date-fns/fp/isSaturday/package.json | 5 + node_modules/date-fns/fp/isSunday/index.d.ts | 4 + node_modules/date-fns/fp/isSunday/index.js | 18 + .../date-fns/fp/isSunday/index.js.flow | 54 + .../date-fns/fp/isSunday/package.json | 5 + .../date-fns/fp/isThursday/index.d.ts | 4 + node_modules/date-fns/fp/isThursday/index.js | 18 + .../date-fns/fp/isThursday/index.js.flow | 54 + .../date-fns/fp/isThursday/package.json | 5 + node_modules/date-fns/fp/isTuesday/index.d.ts | 4 + node_modules/date-fns/fp/isTuesday/index.js | 18 + .../date-fns/fp/isTuesday/index.js.flow | 54 + .../date-fns/fp/isTuesday/package.json | 5 + node_modules/date-fns/fp/isValid/index.d.ts | 4 + node_modules/date-fns/fp/isValid/index.js | 18 + .../date-fns/fp/isValid/index.js.flow | 54 + node_modules/date-fns/fp/isValid/package.json | 5 + .../date-fns/fp/isWednesday/index.d.ts | 4 + node_modules/date-fns/fp/isWednesday/index.js | 18 + .../date-fns/fp/isWednesday/index.js.flow | 54 + .../date-fns/fp/isWednesday/package.json | 5 + node_modules/date-fns/fp/isWeekend/index.d.ts | 4 + node_modules/date-fns/fp/isWeekend/index.js | 18 + .../date-fns/fp/isWeekend/index.js.flow | 54 + .../date-fns/fp/isWeekend/package.json | 5 + .../date-fns/fp/isWithinInterval/index.d.ts | 4 + .../date-fns/fp/isWithinInterval/index.js | 18 + .../fp/isWithinInterval/index.js.flow | 58 + .../date-fns/fp/isWithinInterval/package.json | 5 + .../date-fns/fp/lastDayOfDecade/index.d.ts | 4 + .../date-fns/fp/lastDayOfDecade/index.js | 18 + .../date-fns/fp/lastDayOfDecade/index.js.flow | 54 + .../date-fns/fp/lastDayOfDecade/package.json | 5 + .../date-fns/fp/lastDayOfISOWeek/index.d.ts | 4 + .../date-fns/fp/lastDayOfISOWeek/index.js | 18 + .../fp/lastDayOfISOWeek/index.js.flow | 54 + .../date-fns/fp/lastDayOfISOWeek/package.json | 5 + .../fp/lastDayOfISOWeekYear/index.d.ts | 4 + .../date-fns/fp/lastDayOfISOWeekYear/index.js | 18 + .../fp/lastDayOfISOWeekYear/index.js.flow | 54 + .../fp/lastDayOfISOWeekYear/package.json | 5 + .../date-fns/fp/lastDayOfMonth/index.d.ts | 4 + .../date-fns/fp/lastDayOfMonth/index.js | 18 + .../date-fns/fp/lastDayOfMonth/index.js.flow | 54 + .../date-fns/fp/lastDayOfMonth/package.json | 5 + .../date-fns/fp/lastDayOfQuarter/index.d.ts | 4 + .../date-fns/fp/lastDayOfQuarter/index.js | 18 + .../fp/lastDayOfQuarter/index.js.flow | 54 + .../date-fns/fp/lastDayOfQuarter/package.json | 5 + .../fp/lastDayOfQuarterWithOptions/index.d.ts | 4 + .../fp/lastDayOfQuarterWithOptions/index.js | 18 + .../lastDayOfQuarterWithOptions/index.js.flow | 64 + .../lastDayOfQuarterWithOptions/package.json | 5 + .../date-fns/fp/lastDayOfWeek/index.d.ts | 4 + .../date-fns/fp/lastDayOfWeek/index.js | 18 + .../date-fns/fp/lastDayOfWeek/index.js.flow | 54 + .../date-fns/fp/lastDayOfWeek/package.json | 5 + .../fp/lastDayOfWeekWithOptions/index.d.ts | 4 + .../fp/lastDayOfWeekWithOptions/index.js | 18 + .../fp/lastDayOfWeekWithOptions/index.js.flow | 65 + .../fp/lastDayOfWeekWithOptions/package.json | 5 + .../date-fns/fp/lastDayOfYear/index.d.ts | 4 + .../date-fns/fp/lastDayOfYear/index.js | 18 + .../date-fns/fp/lastDayOfYear/index.js.flow | 54 + .../date-fns/fp/lastDayOfYear/package.json | 5 + .../date-fns/fp/lightFormat/index.d.ts | 4 + node_modules/date-fns/fp/lightFormat/index.js | 18 + .../date-fns/fp/lightFormat/index.js.flow | 58 + .../date-fns/fp/lightFormat/package.json | 5 + node_modules/date-fns/fp/max/index.d.ts | 4 + node_modules/date-fns/fp/max/index.js | 18 + node_modules/date-fns/fp/max/index.js.flow | 54 + node_modules/date-fns/fp/max/package.json | 5 + .../date-fns/fp/milliseconds/index.d.ts | 4 + .../date-fns/fp/milliseconds/index.js | 18 + .../date-fns/fp/milliseconds/index.js.flow | 54 + .../date-fns/fp/milliseconds/package.json | 5 + .../fp/millisecondsToHours/index.d.ts | 4 + .../date-fns/fp/millisecondsToHours/index.js | 18 + .../fp/millisecondsToHours/index.js.flow | 54 + .../fp/millisecondsToHours/package.json | 5 + .../fp/millisecondsToMinutes/index.d.ts | 4 + .../fp/millisecondsToMinutes/index.js | 18 + .../fp/millisecondsToMinutes/index.js.flow | 54 + .../fp/millisecondsToMinutes/package.json | 5 + .../fp/millisecondsToSeconds/index.d.ts | 4 + .../fp/millisecondsToSeconds/index.js | 18 + .../fp/millisecondsToSeconds/index.js.flow | 54 + .../fp/millisecondsToSeconds/package.json | 5 + node_modules/date-fns/fp/min/index.d.ts | 4 + node_modules/date-fns/fp/min/index.js | 18 + node_modules/date-fns/fp/min/index.js.flow | 54 + node_modules/date-fns/fp/min/package.json | 5 + .../date-fns/fp/minutesToHours/index.d.ts | 4 + .../date-fns/fp/minutesToHours/index.js | 18 + .../date-fns/fp/minutesToHours/index.js.flow | 54 + .../date-fns/fp/minutesToHours/package.json | 5 + .../fp/minutesToMilliseconds/index.d.ts | 4 + .../fp/minutesToMilliseconds/index.js | 18 + .../fp/minutesToMilliseconds/index.js.flow | 54 + .../fp/minutesToMilliseconds/package.json | 5 + .../date-fns/fp/minutesToSeconds/index.d.ts | 4 + .../date-fns/fp/minutesToSeconds/index.js | 18 + .../fp/minutesToSeconds/index.js.flow | 54 + .../date-fns/fp/minutesToSeconds/package.json | 5 + .../date-fns/fp/monthsToQuarters/index.d.ts | 4 + .../date-fns/fp/monthsToQuarters/index.js | 18 + .../fp/monthsToQuarters/index.js.flow | 54 + .../date-fns/fp/monthsToQuarters/package.json | 5 + .../date-fns/fp/monthsToYears/index.d.ts | 4 + .../date-fns/fp/monthsToYears/index.js | 18 + .../date-fns/fp/monthsToYears/index.js.flow | 54 + .../date-fns/fp/monthsToYears/package.json | 5 + node_modules/date-fns/fp/nextDay/index.d.ts | 4 + node_modules/date-fns/fp/nextDay/index.js | 18 + .../date-fns/fp/nextDay/index.js.flow | 58 + node_modules/date-fns/fp/nextDay/package.json | 5 + .../date-fns/fp/nextFriday/index.d.ts | 4 + node_modules/date-fns/fp/nextFriday/index.js | 18 + .../date-fns/fp/nextFriday/index.js.flow | 54 + .../date-fns/fp/nextFriday/package.json | 5 + .../date-fns/fp/nextMonday/index.d.ts | 4 + node_modules/date-fns/fp/nextMonday/index.js | 18 + .../date-fns/fp/nextMonday/index.js.flow | 54 + .../date-fns/fp/nextMonday/package.json | 5 + .../date-fns/fp/nextSaturday/index.d.ts | 4 + .../date-fns/fp/nextSaturday/index.js | 18 + .../date-fns/fp/nextSaturday/index.js.flow | 54 + .../date-fns/fp/nextSaturday/package.json | 5 + .../date-fns/fp/nextSunday/index.d.ts | 4 + node_modules/date-fns/fp/nextSunday/index.js | 18 + .../date-fns/fp/nextSunday/index.js.flow | 54 + .../date-fns/fp/nextSunday/package.json | 5 + .../date-fns/fp/nextThursday/index.d.ts | 4 + .../date-fns/fp/nextThursday/index.js | 18 + .../date-fns/fp/nextThursday/index.js.flow | 54 + .../date-fns/fp/nextThursday/package.json | 5 + .../date-fns/fp/nextTuesday/index.d.ts | 4 + node_modules/date-fns/fp/nextTuesday/index.js | 18 + .../date-fns/fp/nextTuesday/index.js.flow | 54 + .../date-fns/fp/nextTuesday/package.json | 5 + .../date-fns/fp/nextWednesday/index.d.ts | 4 + .../date-fns/fp/nextWednesday/index.js | 18 + .../date-fns/fp/nextWednesday/index.js.flow | 54 + .../date-fns/fp/nextWednesday/package.json | 5 + node_modules/date-fns/fp/package.json | 5 + node_modules/date-fns/fp/parse/index.d.ts | 4 + node_modules/date-fns/fp/parse/index.js | 18 + node_modules/date-fns/fp/parse/index.js.flow | 67 + node_modules/date-fns/fp/parse/package.json | 5 + node_modules/date-fns/fp/parseISO/index.d.ts | 4 + node_modules/date-fns/fp/parseISO/index.js | 18 + .../date-fns/fp/parseISO/index.js.flow | 54 + .../date-fns/fp/parseISO/package.json | 5 + .../fp/parseISOWithOptions/index.d.ts | 4 + .../date-fns/fp/parseISOWithOptions/index.js | 18 + .../fp/parseISOWithOptions/index.js.flow | 64 + .../fp/parseISOWithOptions/package.json | 5 + node_modules/date-fns/fp/parseJSON/index.d.ts | 4 + node_modules/date-fns/fp/parseJSON/index.js | 18 + .../date-fns/fp/parseJSON/index.js.flow | 54 + .../date-fns/fp/parseJSON/package.json | 5 + .../date-fns/fp/parseWithOptions/index.d.ts | 4 + .../date-fns/fp/parseWithOptions/index.js | 18 + .../fp/parseWithOptions/index.js.flow | 94 + .../date-fns/fp/parseWithOptions/package.json | 5 + .../date-fns/fp/previousDay/index.d.ts | 4 + node_modules/date-fns/fp/previousDay/index.js | 18 + .../date-fns/fp/previousDay/index.js.flow | 58 + .../date-fns/fp/previousDay/package.json | 5 + .../date-fns/fp/previousFriday/index.d.ts | 4 + .../date-fns/fp/previousFriday/index.js | 18 + .../date-fns/fp/previousFriday/index.js.flow | 54 + .../date-fns/fp/previousFriday/package.json | 5 + .../date-fns/fp/previousMonday/index.d.ts | 4 + .../date-fns/fp/previousMonday/index.js | 18 + .../date-fns/fp/previousMonday/index.js.flow | 54 + .../date-fns/fp/previousMonday/package.json | 5 + .../date-fns/fp/previousSaturday/index.d.ts | 4 + .../date-fns/fp/previousSaturday/index.js | 18 + .../fp/previousSaturday/index.js.flow | 54 + .../date-fns/fp/previousSaturday/package.json | 5 + .../date-fns/fp/previousSunday/index.d.ts | 4 + .../date-fns/fp/previousSunday/index.js | 18 + .../date-fns/fp/previousSunday/index.js.flow | 54 + .../date-fns/fp/previousSunday/package.json | 5 + .../date-fns/fp/previousThursday/index.d.ts | 4 + .../date-fns/fp/previousThursday/index.js | 18 + .../fp/previousThursday/index.js.flow | 54 + .../date-fns/fp/previousThursday/package.json | 5 + .../date-fns/fp/previousTuesday/index.d.ts | 4 + .../date-fns/fp/previousTuesday/index.js | 18 + .../date-fns/fp/previousTuesday/index.js.flow | 54 + .../date-fns/fp/previousTuesday/package.json | 5 + .../date-fns/fp/previousWednesday/index.d.ts | 4 + .../date-fns/fp/previousWednesday/index.js | 18 + .../fp/previousWednesday/index.js.flow | 54 + .../fp/previousWednesday/package.json | 5 + .../date-fns/fp/quartersToMonths/index.d.ts | 4 + .../date-fns/fp/quartersToMonths/index.js | 18 + .../fp/quartersToMonths/index.js.flow | 54 + .../date-fns/fp/quartersToMonths/package.json | 5 + .../date-fns/fp/quartersToYears/index.d.ts | 4 + .../date-fns/fp/quartersToYears/index.js | 18 + .../date-fns/fp/quartersToYears/index.js.flow | 54 + .../date-fns/fp/quartersToYears/package.json | 5 + .../fp/roundToNearestMinutes/index.d.ts | 4 + .../fp/roundToNearestMinutes/index.js | 18 + .../fp/roundToNearestMinutes/index.js.flow | 54 + .../fp/roundToNearestMinutes/package.json | 5 + .../index.d.ts | 4 + .../roundToNearestMinutesWithOptions/index.js | 18 + .../index.js.flow | 65 + .../package.json | 5 + .../date-fns/fp/secondsToHours/index.d.ts | 4 + .../date-fns/fp/secondsToHours/index.js | 18 + .../date-fns/fp/secondsToHours/index.js.flow | 54 + .../date-fns/fp/secondsToHours/package.json | 5 + .../fp/secondsToMilliseconds/index.d.ts | 4 + .../fp/secondsToMilliseconds/index.js | 18 + .../fp/secondsToMilliseconds/index.js.flow | 54 + .../fp/secondsToMilliseconds/package.json | 5 + .../date-fns/fp/secondsToMinutes/index.d.ts | 4 + .../date-fns/fp/secondsToMinutes/index.js | 18 + .../fp/secondsToMinutes/index.js.flow | 54 + .../date-fns/fp/secondsToMinutes/package.json | 5 + node_modules/date-fns/fp/set/index.d.ts | 4 + node_modules/date-fns/fp/set/index.js | 18 + node_modules/date-fns/fp/set/index.js.flow | 70 + node_modules/date-fns/fp/set/package.json | 5 + node_modules/date-fns/fp/setDate/index.d.ts | 4 + node_modules/date-fns/fp/setDate/index.js | 18 + .../date-fns/fp/setDate/index.js.flow | 58 + node_modules/date-fns/fp/setDate/package.json | 5 + node_modules/date-fns/fp/setDay/index.d.ts | 4 + node_modules/date-fns/fp/setDay/index.js | 18 + node_modules/date-fns/fp/setDay/index.js.flow | 58 + node_modules/date-fns/fp/setDay/package.json | 5 + .../date-fns/fp/setDayOfYear/index.d.ts | 4 + .../date-fns/fp/setDayOfYear/index.js | 18 + .../date-fns/fp/setDayOfYear/index.js.flow | 58 + .../date-fns/fp/setDayOfYear/package.json | 5 + .../date-fns/fp/setDayWithOptions/index.d.ts | 4 + .../date-fns/fp/setDayWithOptions/index.js | 18 + .../fp/setDayWithOptions/index.js.flow | 75 + .../fp/setDayWithOptions/package.json | 5 + node_modules/date-fns/fp/setHours/index.d.ts | 4 + node_modules/date-fns/fp/setHours/index.js | 18 + .../date-fns/fp/setHours/index.js.flow | 58 + .../date-fns/fp/setHours/package.json | 5 + node_modules/date-fns/fp/setISODay/index.d.ts | 4 + node_modules/date-fns/fp/setISODay/index.js | 18 + .../date-fns/fp/setISODay/index.js.flow | 58 + .../date-fns/fp/setISODay/package.json | 5 + .../date-fns/fp/setISOWeek/index.d.ts | 4 + node_modules/date-fns/fp/setISOWeek/index.js | 18 + .../date-fns/fp/setISOWeek/index.js.flow | 58 + .../date-fns/fp/setISOWeek/package.json | 5 + .../date-fns/fp/setISOWeekYear/index.d.ts | 4 + .../date-fns/fp/setISOWeekYear/index.js | 18 + .../date-fns/fp/setISOWeekYear/index.js.flow | 58 + .../date-fns/fp/setISOWeekYear/package.json | 5 + .../date-fns/fp/setMilliseconds/index.d.ts | 4 + .../date-fns/fp/setMilliseconds/index.js | 18 + .../date-fns/fp/setMilliseconds/index.js.flow | 58 + .../date-fns/fp/setMilliseconds/package.json | 5 + .../date-fns/fp/setMinutes/index.d.ts | 4 + node_modules/date-fns/fp/setMinutes/index.js | 18 + .../date-fns/fp/setMinutes/index.js.flow | 58 + .../date-fns/fp/setMinutes/package.json | 5 + node_modules/date-fns/fp/setMonth/index.d.ts | 4 + node_modules/date-fns/fp/setMonth/index.js | 18 + .../date-fns/fp/setMonth/index.js.flow | 58 + .../date-fns/fp/setMonth/package.json | 5 + .../date-fns/fp/setQuarter/index.d.ts | 4 + node_modules/date-fns/fp/setQuarter/index.js | 18 + .../date-fns/fp/setQuarter/index.js.flow | 58 + .../date-fns/fp/setQuarter/package.json | 5 + .../date-fns/fp/setSeconds/index.d.ts | 4 + node_modules/date-fns/fp/setSeconds/index.js | 18 + .../date-fns/fp/setSeconds/index.js.flow | 58 + .../date-fns/fp/setSeconds/package.json | 5 + node_modules/date-fns/fp/setWeek/index.d.ts | 4 + node_modules/date-fns/fp/setWeek/index.js | 18 + .../date-fns/fp/setWeek/index.js.flow | 58 + node_modules/date-fns/fp/setWeek/package.json | 5 + .../date-fns/fp/setWeekWithOptions/index.d.ts | 4 + .../date-fns/fp/setWeekWithOptions/index.js | 18 + .../fp/setWeekWithOptions/index.js.flow | 76 + .../fp/setWeekWithOptions/package.json | 5 + .../date-fns/fp/setWeekYear/index.d.ts | 4 + node_modules/date-fns/fp/setWeekYear/index.js | 18 + .../date-fns/fp/setWeekYear/index.js.flow | 58 + .../date-fns/fp/setWeekYear/package.json | 5 + .../fp/setWeekYearWithOptions/index.d.ts | 4 + .../fp/setWeekYearWithOptions/index.js | 18 + .../fp/setWeekYearWithOptions/index.js.flow | 76 + .../fp/setWeekYearWithOptions/package.json | 5 + node_modules/date-fns/fp/setYear/index.d.ts | 4 + node_modules/date-fns/fp/setYear/index.js | 18 + .../date-fns/fp/setYear/index.js.flow | 58 + node_modules/date-fns/fp/setYear/package.json | 5 + .../date-fns/fp/startOfDay/index.d.ts | 4 + node_modules/date-fns/fp/startOfDay/index.js | 18 + .../date-fns/fp/startOfDay/index.js.flow | 54 + .../date-fns/fp/startOfDay/package.json | 5 + .../date-fns/fp/startOfDecade/index.d.ts | 4 + .../date-fns/fp/startOfDecade/index.js | 18 + .../date-fns/fp/startOfDecade/index.js.flow | 54 + .../date-fns/fp/startOfDecade/package.json | 5 + .../date-fns/fp/startOfHour/index.d.ts | 4 + node_modules/date-fns/fp/startOfHour/index.js | 18 + .../date-fns/fp/startOfHour/index.js.flow | 54 + .../date-fns/fp/startOfHour/package.json | 5 + .../date-fns/fp/startOfISOWeek/index.d.ts | 4 + .../date-fns/fp/startOfISOWeek/index.js | 18 + .../date-fns/fp/startOfISOWeek/index.js.flow | 54 + .../date-fns/fp/startOfISOWeek/package.json | 5 + .../date-fns/fp/startOfISOWeekYear/index.d.ts | 4 + .../date-fns/fp/startOfISOWeekYear/index.js | 18 + .../fp/startOfISOWeekYear/index.js.flow | 54 + .../fp/startOfISOWeekYear/package.json | 5 + .../date-fns/fp/startOfMinute/index.d.ts | 4 + .../date-fns/fp/startOfMinute/index.js | 18 + .../date-fns/fp/startOfMinute/index.js.flow | 54 + .../date-fns/fp/startOfMinute/package.json | 5 + .../date-fns/fp/startOfMonth/index.d.ts | 4 + .../date-fns/fp/startOfMonth/index.js | 18 + .../date-fns/fp/startOfMonth/index.js.flow | 54 + .../date-fns/fp/startOfMonth/package.json | 5 + .../date-fns/fp/startOfQuarter/index.d.ts | 4 + .../date-fns/fp/startOfQuarter/index.js | 18 + .../date-fns/fp/startOfQuarter/index.js.flow | 54 + .../date-fns/fp/startOfQuarter/package.json | 5 + .../date-fns/fp/startOfSecond/index.d.ts | 4 + .../date-fns/fp/startOfSecond/index.js | 18 + .../date-fns/fp/startOfSecond/index.js.flow | 54 + .../date-fns/fp/startOfSecond/package.json | 5 + .../date-fns/fp/startOfWeek/index.d.ts | 4 + node_modules/date-fns/fp/startOfWeek/index.js | 18 + .../date-fns/fp/startOfWeek/index.js.flow | 54 + .../date-fns/fp/startOfWeek/package.json | 5 + .../fp/startOfWeekWithOptions/index.d.ts | 4 + .../fp/startOfWeekWithOptions/index.js | 18 + .../fp/startOfWeekWithOptions/index.js.flow | 65 + .../fp/startOfWeekWithOptions/package.json | 5 + .../date-fns/fp/startOfWeekYear/index.d.ts | 4 + .../date-fns/fp/startOfWeekYear/index.js | 18 + .../date-fns/fp/startOfWeekYear/index.js.flow | 54 + .../date-fns/fp/startOfWeekYear/package.json | 5 + .../fp/startOfWeekYearWithOptions/index.d.ts | 4 + .../fp/startOfWeekYearWithOptions/index.js | 18 + .../startOfWeekYearWithOptions/index.js.flow | 66 + .../startOfWeekYearWithOptions/package.json | 5 + .../date-fns/fp/startOfYear/index.d.ts | 4 + node_modules/date-fns/fp/startOfYear/index.js | 18 + .../date-fns/fp/startOfYear/index.js.flow | 54 + .../date-fns/fp/startOfYear/package.json | 5 + node_modules/date-fns/fp/sub/index.d.ts | 4 + node_modules/date-fns/fp/sub/index.js | 18 + node_modules/date-fns/fp/sub/index.js.flow | 58 + node_modules/date-fns/fp/sub/package.json | 5 + .../date-fns/fp/subBusinessDays/index.d.ts | 4 + .../date-fns/fp/subBusinessDays/index.js | 18 + .../date-fns/fp/subBusinessDays/index.js.flow | 58 + .../date-fns/fp/subBusinessDays/package.json | 5 + node_modules/date-fns/fp/subDays/index.d.ts | 4 + node_modules/date-fns/fp/subDays/index.js | 18 + .../date-fns/fp/subDays/index.js.flow | 58 + node_modules/date-fns/fp/subDays/package.json | 5 + node_modules/date-fns/fp/subHours/index.d.ts | 4 + node_modules/date-fns/fp/subHours/index.js | 18 + .../date-fns/fp/subHours/index.js.flow | 58 + .../date-fns/fp/subHours/package.json | 5 + .../date-fns/fp/subISOWeekYears/index.d.ts | 4 + .../date-fns/fp/subISOWeekYears/index.js | 18 + .../date-fns/fp/subISOWeekYears/index.js.flow | 58 + .../date-fns/fp/subISOWeekYears/package.json | 5 + .../date-fns/fp/subMilliseconds/index.d.ts | 4 + .../date-fns/fp/subMilliseconds/index.js | 18 + .../date-fns/fp/subMilliseconds/index.js.flow | 58 + .../date-fns/fp/subMilliseconds/package.json | 5 + .../date-fns/fp/subMinutes/index.d.ts | 4 + node_modules/date-fns/fp/subMinutes/index.js | 18 + .../date-fns/fp/subMinutes/index.js.flow | 58 + .../date-fns/fp/subMinutes/package.json | 5 + node_modules/date-fns/fp/subMonths/index.d.ts | 4 + node_modules/date-fns/fp/subMonths/index.js | 18 + .../date-fns/fp/subMonths/index.js.flow | 58 + .../date-fns/fp/subMonths/package.json | 5 + .../date-fns/fp/subQuarters/index.d.ts | 4 + node_modules/date-fns/fp/subQuarters/index.js | 18 + .../date-fns/fp/subQuarters/index.js.flow | 58 + .../date-fns/fp/subQuarters/package.json | 5 + .../date-fns/fp/subSeconds/index.d.ts | 4 + node_modules/date-fns/fp/subSeconds/index.js | 18 + .../date-fns/fp/subSeconds/index.js.flow | 58 + .../date-fns/fp/subSeconds/package.json | 5 + node_modules/date-fns/fp/subWeeks/index.d.ts | 4 + node_modules/date-fns/fp/subWeeks/index.js | 18 + .../date-fns/fp/subWeeks/index.js.flow | 58 + .../date-fns/fp/subWeeks/package.json | 5 + node_modules/date-fns/fp/subYears/index.d.ts | 4 + node_modules/date-fns/fp/subYears/index.js | 18 + .../date-fns/fp/subYears/index.js.flow | 58 + .../date-fns/fp/subYears/package.json | 5 + node_modules/date-fns/fp/toDate/index.d.ts | 4 + node_modules/date-fns/fp/toDate/index.js | 18 + node_modules/date-fns/fp/toDate/index.js.flow | 54 + node_modules/date-fns/fp/toDate/package.json | 5 + .../date-fns/fp/weeksToDays/index.d.ts | 4 + node_modules/date-fns/fp/weeksToDays/index.js | 18 + .../date-fns/fp/weeksToDays/index.js.flow | 54 + .../date-fns/fp/weeksToDays/package.json | 5 + .../date-fns/fp/yearsToMonths/index.d.ts | 4 + .../date-fns/fp/yearsToMonths/index.js | 18 + .../date-fns/fp/yearsToMonths/index.js.flow | 54 + .../date-fns/fp/yearsToMonths/package.json | 5 + .../date-fns/fp/yearsToQuarters/index.d.ts | 4 + .../date-fns/fp/yearsToQuarters/index.js | 18 + .../date-fns/fp/yearsToQuarters/index.js.flow | 54 + .../date-fns/fp/yearsToQuarters/package.json | 5 + node_modules/date-fns/fromUnixTime/index.d.ts | 4 + node_modules/date-fns/fromUnixTime/index.js | 39 + .../date-fns/fromUnixTime/index.js.flow | 52 + .../date-fns/fromUnixTime/package.json | 5 + node_modules/date-fns/getDate/index.d.ts | 4 + node_modules/date-fns/getDate/index.js | 38 + node_modules/date-fns/getDate/index.js.flow | 52 + node_modules/date-fns/getDate/package.json | 5 + node_modules/date-fns/getDay/index.d.ts | 4 + node_modules/date-fns/getDay/index.js | 38 + node_modules/date-fns/getDay/index.js.flow | 52 + node_modules/date-fns/getDay/package.json | 5 + node_modules/date-fns/getDayOfYear/index.d.ts | 4 + node_modules/date-fns/getDayOfYear/index.js | 43 + .../date-fns/getDayOfYear/index.js.flow | 52 + .../date-fns/getDayOfYear/package.json | 5 + .../date-fns/getDaysInMonth/index.d.ts | 4 + node_modules/date-fns/getDaysInMonth/index.js | 42 + .../date-fns/getDaysInMonth/index.js.flow | 52 + .../date-fns/getDaysInMonth/package.json | 5 + .../date-fns/getDaysInYear/index.d.ts | 4 + node_modules/date-fns/getDaysInYear/index.js | 44 + .../date-fns/getDaysInYear/index.js.flow | 52 + .../date-fns/getDaysInYear/package.json | 5 + node_modules/date-fns/getDecade/index.d.ts | 4 + node_modules/date-fns/getDecade/index.js | 39 + node_modules/date-fns/getDecade/index.js.flow | 52 + node_modules/date-fns/getDecade/package.json | 5 + .../date-fns/getDefaultOptions/index.d.ts | 4 + .../date-fns/getDefaultOptions/index.js | 42 + .../date-fns/getDefaultOptions/index.js.flow | 52 + .../date-fns/getDefaultOptions/package.json | 5 + node_modules/date-fns/getHours/index.d.ts | 4 + node_modules/date-fns/getHours/index.js | 38 + node_modules/date-fns/getHours/index.js.flow | 52 + node_modules/date-fns/getHours/package.json | 5 + node_modules/date-fns/getISODay/index.d.ts | 4 + node_modules/date-fns/getISODay/index.js | 46 + node_modules/date-fns/getISODay/index.js.flow | 52 + node_modules/date-fns/getISODay/package.json | 5 + node_modules/date-fns/getISOWeek/index.d.ts | 4 + node_modules/date-fns/getISOWeek/index.js | 49 + .../date-fns/getISOWeek/index.js.flow | 52 + node_modules/date-fns/getISOWeek/package.json | 5 + .../date-fns/getISOWeekYear/index.d.ts | 4 + node_modules/date-fns/getISOWeekYear/index.js | 58 + .../date-fns/getISOWeekYear/index.js.flow | 52 + .../date-fns/getISOWeekYear/package.json | 5 + .../date-fns/getISOWeeksInYear/index.d.ts | 4 + .../date-fns/getISOWeeksInYear/index.js | 48 + .../date-fns/getISOWeeksInYear/index.js.flow | 52 + .../date-fns/getISOWeeksInYear/package.json | 5 + .../date-fns/getMilliseconds/index.d.ts | 4 + .../date-fns/getMilliseconds/index.js | 38 + .../date-fns/getMilliseconds/index.js.flow | 52 + .../date-fns/getMilliseconds/package.json | 5 + node_modules/date-fns/getMinutes/index.d.ts | 4 + node_modules/date-fns/getMinutes/index.js | 38 + .../date-fns/getMinutes/index.js.flow | 52 + node_modules/date-fns/getMinutes/package.json | 5 + node_modules/date-fns/getMonth/index.d.ts | 4 + node_modules/date-fns/getMonth/index.js | 38 + node_modules/date-fns/getMonth/index.js.flow | 52 + node_modules/date-fns/getMonth/package.json | 5 + .../getOverlappingDaysInIntervals/index.d.ts | 4 + .../getOverlappingDaysInIntervals/index.js | 72 + .../index.js.flow | 55 + .../package.json | 5 + node_modules/date-fns/getQuarter/index.d.ts | 4 + node_modules/date-fns/getQuarter/index.js | 38 + .../date-fns/getQuarter/index.js.flow | 52 + node_modules/date-fns/getQuarter/package.json | 5 + node_modules/date-fns/getSeconds/index.d.ts | 4 + node_modules/date-fns/getSeconds/index.js | 38 + .../date-fns/getSeconds/index.js.flow | 52 + node_modules/date-fns/getSeconds/package.json | 5 + node_modules/date-fns/getTime/index.d.ts | 4 + node_modules/date-fns/getTime/index.js | 38 + node_modules/date-fns/getTime/index.js.flow | 52 + node_modules/date-fns/getTime/package.json | 5 + node_modules/date-fns/getUnixTime/index.d.ts | 4 + node_modules/date-fns/getUnixTime/index.js | 36 + .../date-fns/getUnixTime/index.js.flow | 52 + .../date-fns/getUnixTime/package.json | 5 + node_modules/date-fns/getWeek/index.d.ts | 4 + node_modules/date-fns/getWeek/index.js | 68 + node_modules/date-fns/getWeek/index.js.flow | 59 + node_modules/date-fns/getWeek/package.json | 5 + .../date-fns/getWeekOfMonth/index.d.ts | 4 + node_modules/date-fns/getWeekOfMonth/index.js | 63 + .../date-fns/getWeekOfMonth/index.js.flow | 58 + .../date-fns/getWeekOfMonth/package.json | 5 + node_modules/date-fns/getWeekYear/index.d.ts | 4 + node_modules/date-fns/getWeekYear/index.js | 90 + .../date-fns/getWeekYear/index.js.flow | 59 + .../date-fns/getWeekYear/package.json | 5 + .../date-fns/getWeeksInMonth/index.d.ts | 4 + .../date-fns/getWeeksInMonth/index.js | 50 + .../date-fns/getWeeksInMonth/index.js.flow | 58 + .../date-fns/getWeeksInMonth/package.json | 5 + node_modules/date-fns/getYear/index.d.ts | 4 + node_modules/date-fns/getYear/index.js | 36 + node_modules/date-fns/getYear/index.js.flow | 52 + node_modules/date-fns/getYear/package.json | 5 + .../date-fns/hoursToMilliseconds/index.d.ts | 4 + .../date-fns/hoursToMilliseconds/index.js | 37 + .../hoursToMilliseconds/index.js.flow | 52 + .../date-fns/hoursToMilliseconds/package.json | 5 + .../date-fns/hoursToMinutes/index.d.ts | 4 + node_modules/date-fns/hoursToMinutes/index.js | 37 + .../date-fns/hoursToMinutes/index.js.flow | 52 + .../date-fns/hoursToMinutes/package.json | 5 + .../date-fns/hoursToSeconds/index.d.ts | 4 + node_modules/date-fns/hoursToSeconds/index.js | 37 + .../date-fns/hoursToSeconds/index.js.flow | 52 + .../date-fns/hoursToSeconds/package.json | 5 + node_modules/date-fns/index.js | 2174 ++ node_modules/date-fns/index.js.flow | 926 + .../date-fns/intervalToDuration/index.d.ts | 4 + .../date-fns/intervalToDuration/index.js | 85 + .../date-fns/intervalToDuration/index.js.flow | 52 + .../date-fns/intervalToDuration/package.json | 5 + node_modules/date-fns/intlFormat/index.d.ts | 4 + node_modules/date-fns/intlFormat/index.js | 101 + .../date-fns/intlFormat/index.js.flow | 72 + node_modules/date-fns/intlFormat/package.json | 5 + .../date-fns/intlFormatDistance/index.d.ts | 4 + .../date-fns/intlFormatDistance/index.js | 205 + .../date-fns/intlFormatDistance/index.js.flow | 62 + .../date-fns/intlFormatDistance/package.json | 5 + node_modules/date-fns/isAfter/index.d.ts | 4 + node_modules/date-fns/isAfter/index.js | 39 + node_modules/date-fns/isAfter/index.js.flow | 55 + node_modules/date-fns/isAfter/package.json | 5 + node_modules/date-fns/isBefore/index.d.ts | 4 + node_modules/date-fns/isBefore/index.js | 39 + node_modules/date-fns/isBefore/index.js.flow | 55 + node_modules/date-fns/isBefore/package.json | 5 + node_modules/date-fns/isDate/index.d.ts | 4 + node_modules/date-fns/isDate/index.js | 51 + node_modules/date-fns/isDate/index.js.flow | 52 + node_modules/date-fns/isDate/package.json | 5 + node_modules/date-fns/isEqual/index.d.ts | 4 + node_modules/date-fns/isEqual/index.js | 42 + node_modules/date-fns/isEqual/index.js.flow | 55 + node_modules/date-fns/isEqual/package.json | 5 + node_modules/date-fns/isExists/index.d.ts | 4 + node_modules/date-fns/isExists/index.js | 41 + node_modules/date-fns/isExists/index.js.flow | 52 + node_modules/date-fns/isExists/package.json | 5 + .../date-fns/isFirstDayOfMonth/index.d.ts | 4 + .../date-fns/isFirstDayOfMonth/index.js | 36 + .../date-fns/isFirstDayOfMonth/index.js.flow | 52 + .../date-fns/isFirstDayOfMonth/package.json | 5 + node_modules/date-fns/isFriday/index.d.ts | 4 + node_modules/date-fns/isFriday/index.js | 36 + node_modules/date-fns/isFriday/index.js.flow | 52 + node_modules/date-fns/isFriday/package.json | 5 + node_modules/date-fns/isFuture/index.d.ts | 4 + node_modules/date-fns/isFuture/index.js | 40 + node_modules/date-fns/isFuture/index.js.flow | 52 + node_modules/date-fns/isFuture/package.json | 5 + .../date-fns/isLastDayOfMonth/index.d.ts | 4 + .../date-fns/isLastDayOfMonth/index.js | 41 + .../date-fns/isLastDayOfMonth/index.js.flow | 52 + .../date-fns/isLastDayOfMonth/package.json | 5 + node_modules/date-fns/isLeapYear/index.d.ts | 4 + node_modules/date-fns/isLeapYear/index.js | 38 + .../date-fns/isLeapYear/index.js.flow | 52 + node_modules/date-fns/isLeapYear/package.json | 5 + node_modules/date-fns/isMatch/index.d.ts | 4 + node_modules/date-fns/isMatch/index.js | 313 + node_modules/date-fns/isMatch/index.js.flow | 62 + node_modules/date-fns/isMatch/package.json | 5 + node_modules/date-fns/isMonday/index.d.ts | 4 + node_modules/date-fns/isMonday/index.js | 36 + node_modules/date-fns/isMonday/index.js.flow | 52 + node_modules/date-fns/isMonday/package.json | 5 + node_modules/date-fns/isPast/index.d.ts | 4 + node_modules/date-fns/isPast/index.js | 40 + node_modules/date-fns/isPast/index.js.flow | 52 + node_modules/date-fns/isPast/package.json | 5 + node_modules/date-fns/isSameDay/index.d.ts | 4 + node_modules/date-fns/isSameDay/index.js | 49 + node_modules/date-fns/isSameDay/index.js.flow | 55 + node_modules/date-fns/isSameDay/package.json | 5 + node_modules/date-fns/isSameHour/index.d.ts | 4 + node_modules/date-fns/isSameHour/index.js | 44 + .../date-fns/isSameHour/index.js.flow | 55 + node_modules/date-fns/isSameHour/package.json | 5 + .../date-fns/isSameISOWeek/index.d.ts | 4 + node_modules/date-fns/isSameISOWeek/index.js | 46 + .../date-fns/isSameISOWeek/index.js.flow | 55 + .../date-fns/isSameISOWeek/package.json | 5 + .../date-fns/isSameISOWeekYear/index.d.ts | 4 + .../date-fns/isSameISOWeekYear/index.js | 41 + .../date-fns/isSameISOWeekYear/index.js.flow | 55 + .../date-fns/isSameISOWeekYear/package.json | 5 + node_modules/date-fns/isSameMinute/index.d.ts | 4 + node_modules/date-fns/isSameMinute/index.js | 50 + .../date-fns/isSameMinute/index.js.flow | 55 + .../date-fns/isSameMinute/package.json | 5 + node_modules/date-fns/isSameMonth/index.d.ts | 4 + node_modules/date-fns/isSameMonth/index.js | 44 + .../date-fns/isSameMonth/index.js.flow | 55 + .../date-fns/isSameMonth/package.json | 5 + .../date-fns/isSameQuarter/index.d.ts | 4 + node_modules/date-fns/isSameQuarter/index.js | 44 + .../date-fns/isSameQuarter/index.js.flow | 55 + .../date-fns/isSameQuarter/package.json | 5 + node_modules/date-fns/isSameSecond/index.d.ts | 4 + node_modules/date-fns/isSameSecond/index.js | 58 + .../date-fns/isSameSecond/index.js.flow | 55 + .../date-fns/isSameSecond/package.json | 5 + node_modules/date-fns/isSameWeek/index.d.ts | 4 + node_modules/date-fns/isSameWeek/index.js | 56 + .../date-fns/isSameWeek/index.js.flow | 59 + node_modules/date-fns/isSameWeek/package.json | 5 + node_modules/date-fns/isSameYear/index.d.ts | 4 + node_modules/date-fns/isSameYear/index.js | 39 + .../date-fns/isSameYear/index.js.flow | 55 + node_modules/date-fns/isSameYear/package.json | 5 + node_modules/date-fns/isSaturday/index.d.ts | 4 + node_modules/date-fns/isSaturday/index.js | 36 + .../date-fns/isSaturday/index.js.flow | 52 + node_modules/date-fns/isSaturday/package.json | 5 + node_modules/date-fns/isSunday/index.d.ts | 4 + node_modules/date-fns/isSunday/index.js | 36 + node_modules/date-fns/isSunday/index.js.flow | 52 + node_modules/date-fns/isSunday/package.json | 5 + node_modules/date-fns/isThisHour/index.d.ts | 4 + node_modules/date-fns/isThisHour/index.js | 41 + .../date-fns/isThisHour/index.js.flow | 52 + node_modules/date-fns/isThisHour/package.json | 5 + .../date-fns/isThisISOWeek/index.d.ts | 4 + node_modules/date-fns/isThisISOWeek/index.js | 42 + .../date-fns/isThisISOWeek/index.js.flow | 52 + .../date-fns/isThisISOWeek/package.json | 5 + node_modules/date-fns/isThisMinute/index.d.ts | 4 + node_modules/date-fns/isThisMinute/index.js | 41 + .../date-fns/isThisMinute/index.js.flow | 52 + .../date-fns/isThisMinute/package.json | 5 + node_modules/date-fns/isThisMonth/index.d.ts | 4 + node_modules/date-fns/isThisMonth/index.js | 40 + .../date-fns/isThisMonth/index.js.flow | 52 + .../date-fns/isThisMonth/package.json | 5 + .../date-fns/isThisQuarter/index.d.ts | 4 + node_modules/date-fns/isThisQuarter/index.js | 40 + .../date-fns/isThisQuarter/index.js.flow | 52 + .../date-fns/isThisQuarter/package.json | 5 + node_modules/date-fns/isThisSecond/index.d.ts | 4 + node_modules/date-fns/isThisSecond/index.js | 41 + .../date-fns/isThisSecond/index.js.flow | 52 + .../date-fns/isThisSecond/package.json | 5 + node_modules/date-fns/isThisWeek/index.d.ts | 4 + node_modules/date-fns/isThisWeek/index.js | 50 + .../date-fns/isThisWeek/index.js.flow | 58 + node_modules/date-fns/isThisWeek/package.json | 5 + node_modules/date-fns/isThisYear/index.d.ts | 4 + node_modules/date-fns/isThisYear/index.js | 40 + .../date-fns/isThisYear/index.js.flow | 52 + node_modules/date-fns/isThisYear/package.json | 5 + node_modules/date-fns/isThursday/index.d.ts | 4 + node_modules/date-fns/isThursday/index.js | 36 + .../date-fns/isThursday/index.js.flow | 52 + node_modules/date-fns/isThursday/package.json | 5 + node_modules/date-fns/isToday/index.d.ts | 4 + node_modules/date-fns/isToday/index.js | 40 + node_modules/date-fns/isToday/index.js.flow | 52 + node_modules/date-fns/isToday/package.json | 5 + node_modules/date-fns/isTomorrow/index.d.ts | 4 + node_modules/date-fns/isTomorrow/index.js | 42 + .../date-fns/isTomorrow/index.js.flow | 52 + node_modules/date-fns/isTomorrow/package.json | 5 + node_modules/date-fns/isTuesday/index.d.ts | 4 + node_modules/date-fns/isTuesday/index.js | 36 + node_modules/date-fns/isTuesday/index.js.flow | 52 + node_modules/date-fns/isTuesday/package.json | 5 + node_modules/date-fns/isValid/index.d.ts | 4 + node_modules/date-fns/isValid/index.js | 58 + node_modules/date-fns/isValid/index.js.flow | 52 + node_modules/date-fns/isValid/package.json | 5 + node_modules/date-fns/isWednesday/index.d.ts | 4 + node_modules/date-fns/isWednesday/index.js | 36 + .../date-fns/isWednesday/index.js.flow | 52 + .../date-fns/isWednesday/package.json | 5 + node_modules/date-fns/isWeekend/index.d.ts | 4 + node_modules/date-fns/isWeekend/index.js | 38 + node_modules/date-fns/isWeekend/index.js.flow | 52 + node_modules/date-fns/isWeekend/package.json | 5 + .../date-fns/isWithinInterval/index.d.ts | 4 + .../date-fns/isWithinInterval/index.js | 66 + .../date-fns/isWithinInterval/index.js.flow | 52 + .../date-fns/isWithinInterval/package.json | 5 + node_modules/date-fns/isYesterday/index.d.ts | 4 + node_modules/date-fns/isYesterday/index.js | 42 + .../date-fns/isYesterday/index.js.flow | 52 + .../date-fns/isYesterday/package.json | 5 + .../date-fns/lastDayOfDecade/index.d.ts | 4 + .../date-fns/lastDayOfDecade/index.js | 41 + .../date-fns/lastDayOfDecade/index.js.flow | 52 + .../date-fns/lastDayOfDecade/package.json | 5 + .../date-fns/lastDayOfISOWeek/index.d.ts | 4 + .../date-fns/lastDayOfISOWeek/index.js | 41 + .../date-fns/lastDayOfISOWeek/index.js.flow | 52 + .../date-fns/lastDayOfISOWeek/package.json | 5 + .../date-fns/lastDayOfISOWeekYear/index.d.ts | 4 + .../date-fns/lastDayOfISOWeekYear/index.js | 48 + .../lastDayOfISOWeekYear/index.js.flow | 52 + .../lastDayOfISOWeekYear/package.json | 5 + .../date-fns/lastDayOfMonth/index.d.ts | 4 + node_modules/date-fns/lastDayOfMonth/index.js | 41 + .../date-fns/lastDayOfMonth/index.js.flow | 52 + .../date-fns/lastDayOfMonth/package.json | 5 + .../date-fns/lastDayOfQuarter/index.d.ts | 4 + .../date-fns/lastDayOfQuarter/index.js | 45 + .../date-fns/lastDayOfQuarter/index.js.flow | 57 + .../date-fns/lastDayOfQuarter/package.json | 5 + .../date-fns/lastDayOfWeek/index.d.ts | 4 + node_modules/date-fns/lastDayOfWeek/index.js | 64 + .../date-fns/lastDayOfWeek/index.js.flow | 58 + .../date-fns/lastDayOfWeek/package.json | 5 + .../date-fns/lastDayOfYear/index.d.ts | 4 + node_modules/date-fns/lastDayOfYear/index.js | 41 + .../date-fns/lastDayOfYear/index.js.flow | 52 + .../date-fns/lastDayOfYear/package.json | 5 + node_modules/date-fns/lightFormat/index.d.ts | 4 + node_modules/date-fns/lightFormat/index.js | 144 + .../date-fns/lightFormat/index.js.flow | 52 + .../date-fns/lightFormat/package.json | 5 + .../locale/_lib/buildFormatLongFn/index.js | 18 + .../locale/_lib/buildLocalizeFn/index.js | 31 + .../locale/_lib/buildMatchFn/index.js | 57 + .../locale/_lib/buildMatchPatternFn/index.js | 26 + .../locale/af/_lib/formatDistance/index.js | 96 + .../locale/af/_lib/formatLong/index.js | 46 + .../locale/af/_lib/formatRelative/index.js | 22 + .../date-fns/locale/af/_lib/localize/index.js | 146 + .../date-fns/locale/af/_lib/match/index.js | 110 + node_modules/date-fns/locale/af/index.d.ts | 4 + node_modules/date-fns/locale/af/index.js | 44 + node_modules/date-fns/locale/af/index.js.flow | 35 + node_modules/date-fns/locale/af/package.json | 5 + .../locale/ar-DZ/_lib/formatDistance/index.js | 131 + .../locale/ar-DZ/_lib/formatLong/index.js | 46 + .../locale/ar-DZ/_lib/formatRelative/index.js | 22 + .../locale/ar-DZ/_lib/localize/index.js | 132 + .../date-fns/locale/ar-DZ/_lib/match/index.js | 112 + node_modules/date-fns/locale/ar-DZ/index.d.ts | 4 + node_modules/date-fns/locale/ar-DZ/index.js | 45 + .../date-fns/locale/ar-DZ/index.js.flow | 35 + .../date-fns/locale/ar-DZ/package.json | 5 + .../locale/ar-EG/_lib/formatDistance/index.js | 130 + .../locale/ar-EG/_lib/formatLong/index.js | 46 + .../locale/ar-EG/_lib/formatRelative/index.js | 22 + .../locale/ar-EG/_lib/localize/index.js | 132 + .../date-fns/locale/ar-EG/_lib/match/index.js | 114 + node_modules/date-fns/locale/ar-EG/index.d.ts | 4 + node_modules/date-fns/locale/ar-EG/index.js | 44 + .../date-fns/locale/ar-EG/index.js.flow | 35 + .../date-fns/locale/ar-EG/package.json | 5 + .../locale/ar-MA/_lib/formatDistance/index.js | 131 + .../locale/ar-MA/_lib/formatLong/index.js | 46 + .../locale/ar-MA/_lib/formatRelative/index.js | 22 + .../locale/ar-MA/_lib/localize/index.js | 132 + .../date-fns/locale/ar-MA/_lib/match/index.js | 112 + node_modules/date-fns/locale/ar-MA/index.d.ts | 4 + node_modules/date-fns/locale/ar-MA/index.js | 43 + .../date-fns/locale/ar-MA/index.js.flow | 35 + .../date-fns/locale/ar-MA/package.json | 5 + .../locale/ar-SA/_lib/formatDistance/index.js | 130 + .../locale/ar-SA/_lib/formatLong/index.js | 46 + .../locale/ar-SA/_lib/formatRelative/index.js | 22 + .../locale/ar-SA/_lib/localize/index.js | 132 + .../date-fns/locale/ar-SA/_lib/match/index.js | 112 + node_modules/date-fns/locale/ar-SA/index.d.ts | 4 + node_modules/date-fns/locale/ar-SA/index.js | 44 + .../date-fns/locale/ar-SA/index.js.flow | 35 + .../date-fns/locale/ar-SA/package.json | 5 + .../locale/ar-TN/_lib/formatDistance/index.js | 130 + .../locale/ar-TN/_lib/formatLong/index.js | 46 + .../locale/ar-TN/_lib/formatRelative/index.js | 22 + .../locale/ar-TN/_lib/localize/index.js | 132 + .../date-fns/locale/ar-TN/_lib/match/index.js | 112 + node_modules/date-fns/locale/ar-TN/index.d.ts | 4 + node_modules/date-fns/locale/ar-TN/index.js | 44 + .../date-fns/locale/ar-TN/index.js.flow | 35 + .../date-fns/locale/ar-TN/package.json | 5 + .../locale/ar/_lib/formatDistance/index.js | 130 + .../locale/ar/_lib/formatLong/index.js | 46 + .../locale/ar/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ar/_lib/localize/index.js | 132 + .../date-fns/locale/ar/_lib/match/index.js | 112 + node_modules/date-fns/locale/ar/index.d.ts | 4 + node_modules/date-fns/locale/ar/index.js | 45 + node_modules/date-fns/locale/ar/index.js.flow | 35 + node_modules/date-fns/locale/ar/package.json | 5 + .../locale/az/_lib/formatDistance/index.js | 96 + .../locale/az/_lib/formatLong/index.js | 46 + .../locale/az/_lib/formatRelative/index.js | 22 + .../date-fns/locale/az/_lib/localize/index.js | 175 + .../date-fns/locale/az/_lib/match/index.js | 114 + node_modules/date-fns/locale/az/index.d.ts | 4 + node_modules/date-fns/locale/az/index.js | 41 + node_modules/date-fns/locale/az/index.js.flow | 35 + node_modules/date-fns/locale/az/package.json | 5 + .../be-tarask/_lib/formatDistance/index.js | 256 + .../locale/be-tarask/_lib/formatLong/index.js | 43 + .../be-tarask/_lib/formatRelative/index.js | 98 + .../locale/be-tarask/_lib/localize/index.js | 163 + .../locale/be-tarask/_lib/match/index.js | 112 + .../date-fns/locale/be-tarask/index.d.ts | 4 + .../date-fns/locale/be-tarask/index.js | 44 + .../date-fns/locale/be-tarask/index.js.flow | 35 + .../date-fns/locale/be-tarask/package.json | 5 + .../locale/be/_lib/formatDistance/index.js | 256 + .../locale/be/_lib/formatLong/index.js | 43 + .../locale/be/_lib/formatRelative/index.js | 98 + .../date-fns/locale/be/_lib/localize/index.js | 163 + .../date-fns/locale/be/_lib/match/index.js | 112 + node_modules/date-fns/locale/be/index.d.ts | 4 + node_modules/date-fns/locale/be/index.js | 45 + node_modules/date-fns/locale/be/index.js.flow | 35 + node_modules/date-fns/locale/be/package.json | 5 + .../locale/bg/_lib/formatDistance/index.js | 96 + .../locale/bg/_lib/formatLong/index.js | 43 + .../locale/bg/_lib/formatRelative/index.js | 106 + .../date-fns/locale/bg/_lib/localize/index.js | 117 + .../date-fns/locale/bg/_lib/match/index.js | 108 + node_modules/date-fns/locale/bg/index.d.ts | 4 + node_modules/date-fns/locale/bg/index.js | 45 + node_modules/date-fns/locale/bg/index.js.flow | 35 + node_modules/date-fns/locale/bg/package.json | 5 + .../locale/bn/_lib/formatDistance/index.js | 99 + .../locale/bn/_lib/formatLong/index.js | 46 + .../locale/bn/_lib/formatRelative/index.js | 22 + .../date-fns/locale/bn/_lib/localize/index.js | 215 + .../date-fns/locale/bn/_lib/match/index.js | 115 + node_modules/date-fns/locale/bn/index.d.ts | 4 + node_modules/date-fns/locale/bn/index.js | 45 + node_modules/date-fns/locale/bn/index.js.flow | 35 + node_modules/date-fns/locale/bn/package.json | 5 + .../locale/bs/_lib/formatDistance/index.js | 183 + .../locale/bs/_lib/formatLong/index.js | 46 + .../locale/bs/_lib/formatRelative/index.js | 56 + .../date-fns/locale/bs/_lib/localize/index.js | 140 + .../date-fns/locale/bs/_lib/match/index.js | 110 + node_modules/date-fns/locale/bs/index.d.ts | 4 + node_modules/date-fns/locale/bs/index.js | 44 + node_modules/date-fns/locale/bs/index.js.flow | 35 + node_modules/date-fns/locale/bs/package.json | 5 + .../locale/ca/_lib/formatDistance/index.js | 112 + .../locale/ca/_lib/formatLong/index.js | 46 + .../locale/ca/_lib/formatRelative/index.js | 34 + .../date-fns/locale/ca/_lib/localize/index.js | 196 + .../date-fns/locale/ca/_lib/match/index.js | 116 + node_modules/date-fns/locale/ca/index.d.ts | 4 + node_modules/date-fns/locale/ca/index.js | 46 + node_modules/date-fns/locale/ca/index.js.flow | 35 + node_modules/date-fns/locale/ca/package.json | 5 + .../locale/cs/_lib/formatDistance/index.js | 305 + .../locale/cs/_lib/formatLong/index.js | 46 + .../locale/cs/_lib/formatRelative/index.js | 32 + .../date-fns/locale/cs/_lib/localize/index.js | 140 + .../date-fns/locale/cs/_lib/match/index.js | 110 + node_modules/date-fns/locale/cs/index.d.ts | 4 + node_modules/date-fns/locale/cs/index.js | 46 + node_modules/date-fns/locale/cs/index.js.flow | 35 + node_modules/date-fns/locale/cs/package.json | 5 + .../locale/cy/_lib/formatDistance/index.js | 109 + .../locale/cy/_lib/formatLong/index.js | 46 + .../locale/cy/_lib/formatRelative/index.js | 22 + .../date-fns/locale/cy/_lib/localize/index.js | 178 + .../date-fns/locale/cy/_lib/match/index.js | 113 + node_modules/date-fns/locale/cy/index.d.ts | 4 + node_modules/date-fns/locale/cy/index.js | 44 + node_modules/date-fns/locale/cy/index.js.flow | 35 + node_modules/date-fns/locale/cy/package.json | 5 + .../locale/da/_lib/formatDistance/index.js | 96 + .../locale/da/_lib/formatLong/index.js | 46 + .../locale/da/_lib/formatRelative/index.js | 22 + .../date-fns/locale/da/_lib/localize/index.js | 136 + .../date-fns/locale/da/_lib/match/index.js | 111 + node_modules/date-fns/locale/da/index.d.ts | 4 + node_modules/date-fns/locale/da/index.js | 47 + node_modules/date-fns/locale/da/index.js.flow | 35 + node_modules/date-fns/locale/da/package.json | 5 + .../locale/de-AT/_lib/localize/index.js | 145 + node_modules/date-fns/locale/de-AT/index.d.ts | 4 + node_modules/date-fns/locale/de-AT/index.js | 46 + .../date-fns/locale/de-AT/index.js.flow | 35 + .../date-fns/locale/de-AT/package.json | 5 + .../locale/de/_lib/formatDistance/index.js | 189 + .../locale/de/_lib/formatLong/index.js | 51 + .../locale/de/_lib/formatRelative/index.js | 22 + .../date-fns/locale/de/_lib/localize/index.js | 145 + .../date-fns/locale/de/_lib/match/index.js | 113 + node_modules/date-fns/locale/de/index.d.ts | 4 + node_modules/date-fns/locale/de/index.js | 48 + node_modules/date-fns/locale/de/index.js.flow | 35 + node_modules/date-fns/locale/de/package.json | 5 + .../locale/el/_lib/formatDistance/index.js | 96 + .../locale/el/_lib/formatLong/index.js | 46 + .../locale/el/_lib/formatRelative/index.js | 33 + .../date-fns/locale/el/_lib/localize/index.js | 117 + .../date-fns/locale/el/_lib/match/index.js | 111 + node_modules/date-fns/locale/el/index.d.ts | 4 + node_modules/date-fns/locale/el/index.js | 45 + node_modules/date-fns/locale/el/index.js.flow | 35 + node_modules/date-fns/locale/el/package.json | 5 + .../locale/en-AU/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-AU/index.d.ts | 4 + node_modules/date-fns/locale/en-AU/index.js | 44 + .../date-fns/locale/en-AU/index.js.flow | 35 + .../date-fns/locale/en-AU/package.json | 5 + .../locale/en-CA/_lib/formatDistance/index.js | 96 + .../locale/en-CA/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-CA/index.d.ts | 4 + node_modules/date-fns/locale/en-CA/index.js | 45 + .../date-fns/locale/en-CA/index.js.flow | 35 + .../date-fns/locale/en-CA/package.json | 5 + .../locale/en-GB/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-GB/index.d.ts | 4 + node_modules/date-fns/locale/en-GB/index.js | 44 + .../date-fns/locale/en-GB/index.js.flow | 35 + .../date-fns/locale/en-GB/package.json | 5 + node_modules/date-fns/locale/en-IE/index.d.ts | 4 + node_modules/date-fns/locale/en-IE/index.js | 44 + .../date-fns/locale/en-IE/index.js.flow | 35 + .../date-fns/locale/en-IE/package.json | 5 + .../locale/en-IN/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-IN/index.d.ts | 4 + node_modules/date-fns/locale/en-IN/index.js | 44 + .../date-fns/locale/en-IN/index.js.flow | 35 + .../date-fns/locale/en-IN/package.json | 5 + .../locale/en-NZ/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-NZ/index.d.ts | 4 + node_modules/date-fns/locale/en-NZ/index.js | 44 + .../date-fns/locale/en-NZ/index.js.flow | 35 + .../date-fns/locale/en-NZ/package.json | 5 + .../locale/en-US/_lib/formatDistance/index.js | 96 + .../locale/en-US/_lib/formatLong/index.js | 46 + .../locale/en-US/_lib/formatRelative/index.js | 22 + .../locale/en-US/_lib/localize/index.js | 158 + .../date-fns/locale/en-US/_lib/match/index.js | 111 + node_modules/date-fns/locale/en-US/index.d.ts | 4 + node_modules/date-fns/locale/en-US/index.js | 45 + .../date-fns/locale/en-US/index.js.flow | 35 + .../date-fns/locale/en-US/package.json | 5 + .../locale/en-ZA/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/en-ZA/index.d.ts | 4 + node_modules/date-fns/locale/en-ZA/index.js | 44 + .../date-fns/locale/en-ZA/index.js.flow | 35 + .../date-fns/locale/en-ZA/package.json | 5 + .../locale/eo/_lib/formatDistance/index.js | 96 + .../locale/eo/_lib/formatLong/index.js | 43 + .../locale/eo/_lib/formatRelative/index.js | 22 + .../date-fns/locale/eo/_lib/localize/index.js | 99 + .../date-fns/locale/eo/_lib/match/index.js | 112 + node_modules/date-fns/locale/eo/index.d.ts | 4 + node_modules/date-fns/locale/eo/index.js | 44 + node_modules/date-fns/locale/eo/index.js.flow | 35 + node_modules/date-fns/locale/eo/package.json | 5 + .../locale/es/_lib/formatDistance/index.js | 96 + .../locale/es/_lib/formatLong/index.js | 46 + .../locale/es/_lib/formatRelative/index.js | 34 + .../date-fns/locale/es/_lib/localize/index.js | 133 + .../date-fns/locale/es/_lib/match/index.js | 112 + node_modules/date-fns/locale/es/index.d.ts | 4 + node_modules/date-fns/locale/es/index.js | 48 + node_modules/date-fns/locale/es/index.js.flow | 35 + node_modules/date-fns/locale/es/package.json | 5 + .../locale/et/_lib/formatDistance/index.js | 189 + .../locale/et/_lib/formatLong/index.js | 46 + .../locale/et/_lib/formatRelative/index.js | 22 + .../date-fns/locale/et/_lib/localize/index.js | 137 + .../date-fns/locale/et/_lib/match/index.js | 109 + node_modules/date-fns/locale/et/index.d.ts | 4 + node_modules/date-fns/locale/et/index.js | 44 + node_modules/date-fns/locale/et/index.js.flow | 35 + node_modules/date-fns/locale/et/package.json | 5 + .../locale/eu/_lib/formatDistance/index.js | 96 + .../locale/eu/_lib/formatLong/index.js | 46 + .../locale/eu/_lib/formatRelative/index.js | 34 + .../date-fns/locale/eu/_lib/localize/index.js | 133 + .../date-fns/locale/eu/_lib/match/index.js | 125 + node_modules/date-fns/locale/eu/index.d.ts | 4 + node_modules/date-fns/locale/eu/index.js | 44 + node_modules/date-fns/locale/eu/index.js.flow | 35 + node_modules/date-fns/locale/eu/package.json | 5 + .../locale/fa-IR/_lib/formatDistance/index.js | 96 + .../locale/fa-IR/_lib/formatLong/index.js | 46 + .../locale/fa-IR/_lib/formatRelative/index.js | 22 + .../locale/fa-IR/_lib/localize/index.js | 136 + .../date-fns/locale/fa-IR/_lib/match/index.js | 112 + node_modules/date-fns/locale/fa-IR/index.d.ts | 4 + node_modules/date-fns/locale/fa-IR/index.js | 44 + .../date-fns/locale/fa-IR/index.js.flow | 35 + .../date-fns/locale/fa-IR/package.json | 5 + .../locale/fi/_lib/formatDistance/index.js | 138 + .../locale/fi/_lib/formatLong/index.js | 46 + .../locale/fi/_lib/formatRelative/index.js | 22 + .../date-fns/locale/fi/_lib/localize/index.js | 114 + .../date-fns/locale/fi/_lib/match/index.js | 111 + node_modules/date-fns/locale/fi/index.d.ts | 4 + node_modules/date-fns/locale/fi/index.js | 46 + node_modules/date-fns/locale/fi/index.js.flow | 35 + node_modules/date-fns/locale/fi/package.json | 5 + .../locale/fr-CA/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/fr-CA/index.d.ts | 4 + node_modules/date-fns/locale/fr-CA/index.js | 50 + .../date-fns/locale/fr-CA/index.js.flow | 35 + .../date-fns/locale/fr-CA/package.json | 5 + .../locale/fr-CH/_lib/formatLong/index.js | 46 + .../locale/fr-CH/_lib/formatRelative/index.js | 22 + node_modules/date-fns/locale/fr-CH/index.d.ts | 4 + node_modules/date-fns/locale/fr-CH/index.js | 50 + .../date-fns/locale/fr-CH/index.js.flow | 35 + .../date-fns/locale/fr-CH/package.json | 5 + .../locale/fr/_lib/formatDistance/index.js | 96 + .../locale/fr/_lib/formatLong/index.js | 46 + .../locale/fr/_lib/formatRelative/index.js | 22 + .../date-fns/locale/fr/_lib/localize/index.js | 110 + .../date-fns/locale/fr/_lib/match/index.js | 111 + node_modules/date-fns/locale/fr/index.d.ts | 4 + node_modules/date-fns/locale/fr/index.js | 45 + node_modules/date-fns/locale/fr/index.js.flow | 35 + node_modules/date-fns/locale/fr/package.json | 5 + .../locale/fy/_lib/formatDistance/index.js | 96 + .../locale/fy/_lib/formatLong/index.js | 46 + .../locale/fy/_lib/formatRelative/index.js | 22 + .../date-fns/locale/fy/_lib/localize/index.js | 99 + .../date-fns/locale/fy/_lib/match/index.js | 110 + node_modules/date-fns/locale/fy/index.d.ts | 4 + node_modules/date-fns/locale/fy/index.js | 44 + node_modules/date-fns/locale/fy/index.js.flow | 35 + node_modules/date-fns/locale/fy/package.json | 5 + .../locale/gd/_lib/formatDistance/index.js | 106 + .../locale/gd/_lib/formatLong/index.js | 46 + .../locale/gd/_lib/formatRelative/index.js | 23 + .../date-fns/locale/gd/_lib/localize/index.js | 153 + .../date-fns/locale/gd/_lib/match/index.js | 111 + node_modules/date-fns/locale/gd/index.d.ts | 4 + node_modules/date-fns/locale/gd/index.js | 44 + node_modules/date-fns/locale/gd/index.js.flow | 35 + node_modules/date-fns/locale/gd/package.json | 5 + .../locale/gl/_lib/formatDistance/index.js | 96 + .../locale/gl/_lib/formatLong/index.js | 46 + .../locale/gl/_lib/formatRelative/index.js | 34 + .../date-fns/locale/gl/_lib/localize/index.js | 133 + .../date-fns/locale/gl/_lib/match/index.js | 112 + node_modules/date-fns/locale/gl/index.d.ts | 4 + node_modules/date-fns/locale/gl/index.js | 45 + node_modules/date-fns/locale/gl/index.js.flow | 35 + node_modules/date-fns/locale/gl/package.json | 5 + .../locale/gu/_lib/formatDistance/index.js | 99 + .../locale/gu/_lib/formatLong/index.js | 59 + .../locale/gu/_lib/formatRelative/index.js | 28 + .../date-fns/locale/gu/_lib/localize/index.js | 160 + .../date-fns/locale/gu/_lib/match/index.js | 112 + node_modules/date-fns/locale/gu/index.d.ts | 4 + node_modules/date-fns/locale/gu/index.js | 44 + node_modules/date-fns/locale/gu/index.js.flow | 35 + node_modules/date-fns/locale/gu/package.json | 5 + .../locale/he/_lib/formatDistance/index.js | 122 + .../locale/he/_lib/formatLong/index.js | 46 + .../locale/he/_lib/formatRelative/index.js | 22 + .../date-fns/locale/he/_lib/localize/index.js | 140 + .../date-fns/locale/he/_lib/match/index.js | 113 + node_modules/date-fns/locale/he/index.d.ts | 4 + node_modules/date-fns/locale/he/index.js | 44 + node_modules/date-fns/locale/he/index.js.flow | 35 + node_modules/date-fns/locale/he/package.json | 5 + .../locale/hi/_lib/formatDistance/index.js | 105 + .../locale/hi/_lib/formatLong/index.js | 58 + .../locale/hi/_lib/formatRelative/index.js | 22 + .../date-fns/locale/hi/_lib/localize/index.js | 182 + .../date-fns/locale/hi/_lib/match/index.js | 113 + node_modules/date-fns/locale/hi/index.d.ts | 4 + node_modules/date-fns/locale/hi/index.js | 44 + node_modules/date-fns/locale/hi/index.js.flow | 35 + node_modules/date-fns/locale/hi/package.json | 5 + .../locale/hr/_lib/formatDistance/index.js | 183 + .../locale/hr/_lib/formatLong/index.js | 46 + .../locale/hr/_lib/formatRelative/index.js | 56 + .../date-fns/locale/hr/_lib/localize/index.js | 140 + .../date-fns/locale/hr/_lib/match/index.js | 111 + node_modules/date-fns/locale/hr/index.d.ts | 4 + node_modules/date-fns/locale/hr/index.js | 46 + node_modules/date-fns/locale/hr/index.js.flow | 35 + node_modules/date-fns/locale/hr/package.json | 5 + .../locale/ht/_lib/formatDistance/index.js | 96 + .../locale/ht/_lib/formatLong/index.js | 46 + .../locale/ht/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ht/_lib/localize/index.js | 101 + .../date-fns/locale/ht/_lib/match/index.js | 111 + node_modules/date-fns/locale/ht/index.d.ts | 4 + node_modules/date-fns/locale/ht/index.js | 45 + node_modules/date-fns/locale/ht/index.js.flow | 35 + node_modules/date-fns/locale/ht/package.json | 5 + .../locale/hu/_lib/formatDistance/index.js | 85 + .../locale/hu/_lib/formatLong/index.js | 46 + .../locale/hu/_lib/formatRelative/index.js | 38 + .../date-fns/locale/hu/_lib/localize/index.js | 106 + .../date-fns/locale/hu/_lib/match/index.js | 112 + node_modules/date-fns/locale/hu/index.d.ts | 4 + node_modules/date-fns/locale/hu/index.js | 46 + node_modules/date-fns/locale/hu/index.js.flow | 35 + node_modules/date-fns/locale/hu/package.json | 5 + .../locale/hy/_lib/formatDistance/index.js | 96 + .../locale/hy/_lib/formatLong/index.js | 46 + .../locale/hy/_lib/formatRelative/index.js | 22 + .../date-fns/locale/hy/_lib/localize/index.js | 147 + .../date-fns/locale/hy/_lib/match/index.js | 113 + node_modules/date-fns/locale/hy/index.d.ts | 4 + node_modules/date-fns/locale/hy/index.js | 44 + node_modules/date-fns/locale/hy/index.js.flow | 35 + node_modules/date-fns/locale/hy/package.json | 5 + .../locale/id/_lib/formatDistance/index.js | 96 + .../locale/id/_lib/formatLong/index.js | 46 + .../locale/id/_lib/formatRelative/index.js | 22 + .../date-fns/locale/id/_lib/localize/index.js | 140 + .../date-fns/locale/id/_lib/match/index.js | 111 + node_modules/date-fns/locale/id/index.d.ts | 4 + node_modules/date-fns/locale/id/index.js | 47 + node_modules/date-fns/locale/id/index.js.flow | 35 + node_modules/date-fns/locale/id/package.json | 5 + node_modules/date-fns/locale/index.js | 751 + node_modules/date-fns/locale/index.js.flow | 129 + .../locale/is/_lib/formatDistance/index.js | 96 + .../locale/is/_lib/formatLong/index.js | 46 + .../locale/is/_lib/formatRelative/index.js | 22 + .../date-fns/locale/is/_lib/localize/index.js | 133 + .../date-fns/locale/is/_lib/match/index.js | 111 + node_modules/date-fns/locale/is/index.d.ts | 4 + node_modules/date-fns/locale/is/index.js | 45 + node_modules/date-fns/locale/is/index.js.flow | 35 + node_modules/date-fns/locale/is/package.json | 5 + .../locale/it-CH/_lib/formatLong/index.js | 46 + node_modules/date-fns/locale/it-CH/index.d.ts | 4 + node_modules/date-fns/locale/it-CH/index.js | 44 + .../date-fns/locale/it-CH/index.js.flow | 35 + .../date-fns/locale/it-CH/package.json | 5 + .../locale/it/_lib/formatDistance/index.js | 96 + .../locale/it/_lib/formatLong/index.js | 46 + .../locale/it/_lib/formatRelative/index.js | 75 + .../date-fns/locale/it/_lib/localize/index.js | 133 + .../date-fns/locale/it/_lib/match/index.js | 111 + node_modules/date-fns/locale/it/index.d.ts | 4 + node_modules/date-fns/locale/it/index.js | 46 + node_modules/date-fns/locale/it/index.js.flow | 35 + node_modules/date-fns/locale/it/package.json | 5 + .../ja-Hira/_lib/formatDistance/index.js | 109 + .../locale/ja-Hira/_lib/formatLong/index.js | 46 + .../ja-Hira/_lib/formatRelative/index.js | 22 + .../locale/ja-Hira/_lib/localize/index.js | 162 + .../locale/ja-Hira/_lib/match/index.js | 109 + .../date-fns/locale/ja-Hira/index.d.ts | 4 + node_modules/date-fns/locale/ja-Hira/index.js | 44 + .../date-fns/locale/ja-Hira/index.js.flow | 35 + .../date-fns/locale/ja-Hira/package.json | 5 + .../locale/ja/_lib/formatDistance/index.js | 109 + .../locale/ja/_lib/formatLong/index.js | 46 + .../locale/ja/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ja/_lib/localize/index.js | 162 + .../date-fns/locale/ja/_lib/match/index.js | 109 + node_modules/date-fns/locale/ja/index.d.ts | 4 + node_modules/date-fns/locale/ja/index.js | 48 + node_modules/date-fns/locale/ja/index.js.flow | 35 + node_modules/date-fns/locale/ja/package.json | 5 + .../locale/ka/_lib/formatDistance/index.js | 109 + .../locale/ka/_lib/formatLong/index.js | 46 + .../locale/ka/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ka/_lib/localize/index.js | 142 + .../date-fns/locale/ka/_lib/match/index.js | 105 + node_modules/date-fns/locale/ka/index.d.ts | 4 + node_modules/date-fns/locale/ka/index.js | 45 + node_modules/date-fns/locale/ka/index.js.flow | 35 + node_modules/date-fns/locale/ka/package.json | 5 + .../locale/kk/_lib/formatDistance/index.js | 235 + .../locale/kk/_lib/formatLong/index.js | 43 + .../locale/kk/_lib/formatRelative/index.js | 66 + .../date-fns/locale/kk/_lib/localize/index.js | 145 + .../date-fns/locale/kk/_lib/match/index.js | 113 + node_modules/date-fns/locale/kk/index.d.ts | 4 + node_modules/date-fns/locale/kk/index.js | 44 + node_modules/date-fns/locale/kk/index.js.flow | 35 + node_modules/date-fns/locale/kk/package.json | 5 + .../locale/km/_lib/formatDistance/index.js | 47 + .../locale/km/_lib/formatLong/index.js | 46 + .../locale/km/_lib/formatRelative/index.js | 22 + .../date-fns/locale/km/_lib/localize/index.js | 133 + .../date-fns/locale/km/_lib/match/index.js | 111 + node_modules/date-fns/locale/km/index.d.ts | 4 + node_modules/date-fns/locale/km/index.js | 44 + node_modules/date-fns/locale/km/index.js.flow | 35 + node_modules/date-fns/locale/km/package.json | 5 + .../locale/kn/_lib/formatDistance/index.js | 205 + .../locale/kn/_lib/formatLong/index.js | 59 + .../locale/kn/_lib/formatRelative/index.js | 22 + .../date-fns/locale/kn/_lib/localize/index.js | 141 + .../date-fns/locale/kn/_lib/match/index.js | 111 + node_modules/date-fns/locale/kn/index.d.ts | 4 + node_modules/date-fns/locale/kn/index.js | 44 + node_modules/date-fns/locale/kn/index.js.flow | 35 + node_modules/date-fns/locale/kn/package.json | 5 + .../locale/ko/_lib/formatDistance/index.js | 96 + .../locale/ko/_lib/formatLong/index.js | 46 + .../locale/ko/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ko/_lib/localize/index.js | 145 + .../date-fns/locale/ko/_lib/match/index.js | 108 + node_modules/date-fns/locale/ko/index.d.ts | 4 + node_modules/date-fns/locale/ko/index.js | 46 + node_modules/date-fns/locale/ko/index.js.flow | 35 + node_modules/date-fns/locale/ko/package.json | 5 + .../locale/lb/_lib/formatDistance/index.js | 214 + .../locale/lb/_lib/formatLong/index.js | 51 + .../locale/lb/_lib/formatRelative/index.js | 39 + .../date-fns/locale/lb/_lib/localize/index.js | 133 + .../date-fns/locale/lb/_lib/match/index.js | 113 + node_modules/date-fns/locale/lb/index.d.ts | 4 + node_modules/date-fns/locale/lb/index.js | 44 + node_modules/date-fns/locale/lb/index.js.flow | 35 + node_modules/date-fns/locale/lb/package.json | 5 + .../locale/lt/_lib/formatDistance/index.js | 161 + .../locale/lt/_lib/formatLong/index.js | 46 + .../locale/lt/_lib/formatRelative/index.js | 22 + .../date-fns/locale/lt/_lib/localize/index.js | 155 + .../date-fns/locale/lt/_lib/match/index.js | 124 + node_modules/date-fns/locale/lt/index.d.ts | 4 + node_modules/date-fns/locale/lt/index.js | 45 + node_modules/date-fns/locale/lt/index.js.flow | 35 + node_modules/date-fns/locale/lt/package.json | 5 + .../locale/lv/_lib/formatDistance/index.js | 115 + .../locale/lv/_lib/formatLong/index.js | 46 + .../locale/lv/_lib/formatRelative/index.js | 48 + .../date-fns/locale/lv/_lib/localize/index.js | 155 + .../date-fns/locale/lv/_lib/match/index.js | 114 + node_modules/date-fns/locale/lv/index.d.ts | 4 + node_modules/date-fns/locale/lv/index.js | 44 + node_modules/date-fns/locale/lv/index.js.flow | 35 + node_modules/date-fns/locale/lv/package.json | 5 + .../locale/mk/_lib/formatDistance/index.js | 96 + .../locale/mk/_lib/formatLong/index.js | 43 + .../locale/mk/_lib/formatRelative/index.js | 102 + .../date-fns/locale/mk/_lib/localize/index.js | 94 + .../date-fns/locale/mk/_lib/match/index.js | 108 + node_modules/date-fns/locale/mk/index.d.ts | 4 + node_modules/date-fns/locale/mk/index.js | 45 + node_modules/date-fns/locale/mk/index.js.flow | 35 + node_modules/date-fns/locale/mk/package.json | 5 + .../locale/mn/_lib/formatDistance/index.js | 144 + .../locale/mn/_lib/formatLong/index.js | 46 + .../locale/mn/_lib/formatRelative/index.js | 22 + .../date-fns/locale/mn/_lib/localize/index.js | 117 + .../date-fns/locale/mn/_lib/match/index.js | 111 + node_modules/date-fns/locale/mn/index.d.ts | 4 + node_modules/date-fns/locale/mn/index.js | 44 + node_modules/date-fns/locale/mn/index.js.flow | 35 + node_modules/date-fns/locale/mn/package.json | 5 + .../locale/ms/_lib/formatDistance/index.js | 96 + .../locale/ms/_lib/formatLong/index.js | 46 + .../locale/ms/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ms/_lib/localize/index.js | 139 + .../date-fns/locale/ms/_lib/match/index.js | 111 + node_modules/date-fns/locale/ms/index.d.ts | 4 + node_modules/date-fns/locale/ms/index.js | 44 + node_modules/date-fns/locale/ms/index.js.flow | 35 + node_modules/date-fns/locale/ms/package.json | 5 + .../locale/mt/_lib/formatDistance/index.js | 102 + .../locale/mt/_lib/formatLong/index.js | 46 + .../locale/mt/_lib/formatRelative/index.js | 22 + .../date-fns/locale/mt/_lib/localize/index.js | 133 + .../date-fns/locale/mt/_lib/match/index.js | 111 + node_modules/date-fns/locale/mt/index.d.ts | 4 + node_modules/date-fns/locale/mt/index.js | 45 + node_modules/date-fns/locale/mt/index.js.flow | 35 + node_modules/date-fns/locale/mt/package.json | 5 + .../locale/nb/_lib/formatDistance/index.js | 96 + .../locale/nb/_lib/formatLong/index.js | 46 + .../locale/nb/_lib/formatRelative/index.js | 22 + .../date-fns/locale/nb/_lib/localize/index.js | 99 + .../date-fns/locale/nb/_lib/match/index.js | 110 + node_modules/date-fns/locale/nb/index.d.ts | 4 + node_modules/date-fns/locale/nb/index.js | 46 + node_modules/date-fns/locale/nb/index.js.flow | 35 + node_modules/date-fns/locale/nb/package.json | 5 + .../locale/nl-BE/_lib/formatDistance/index.js | 96 + .../locale/nl-BE/_lib/formatLong/index.js | 46 + .../locale/nl-BE/_lib/formatRelative/index.js | 22 + .../locale/nl-BE/_lib/localize/index.js | 99 + .../date-fns/locale/nl-BE/_lib/match/index.js | 110 + node_modules/date-fns/locale/nl-BE/index.d.ts | 4 + node_modules/date-fns/locale/nl-BE/index.js | 47 + .../date-fns/locale/nl-BE/index.js.flow | 35 + .../date-fns/locale/nl-BE/package.json | 5 + .../locale/nl/_lib/formatDistance/index.js | 96 + .../locale/nl/_lib/formatLong/index.js | 46 + .../locale/nl/_lib/formatRelative/index.js | 22 + .../date-fns/locale/nl/_lib/localize/index.js | 99 + .../date-fns/locale/nl/_lib/match/index.js | 110 + node_modules/date-fns/locale/nl/index.d.ts | 4 + node_modules/date-fns/locale/nl/index.js | 49 + node_modules/date-fns/locale/nl/index.js.flow | 35 + node_modules/date-fns/locale/nl/package.json | 5 + .../locale/nn/_lib/formatDistance/index.js | 101 + .../locale/nn/_lib/formatLong/index.js | 46 + .../locale/nn/_lib/formatRelative/index.js | 22 + .../date-fns/locale/nn/_lib/localize/index.js | 99 + .../date-fns/locale/nn/_lib/match/index.js | 110 + node_modules/date-fns/locale/nn/index.d.ts | 4 + node_modules/date-fns/locale/nn/index.js | 44 + node_modules/date-fns/locale/nn/index.js.flow | 35 + node_modules/date-fns/locale/nn/package.json | 5 + .../locale/oc/_lib/formatDistance/index.js | 96 + .../locale/oc/_lib/formatLong/index.js | 46 + .../locale/oc/_lib/formatRelative/index.js | 22 + .../date-fns/locale/oc/_lib/localize/index.js | 154 + .../date-fns/locale/oc/_lib/match/index.js | 111 + node_modules/date-fns/locale/oc/index.d.ts | 4 + node_modules/date-fns/locale/oc/index.js | 44 + node_modules/date-fns/locale/oc/index.js.flow | 35 + node_modules/date-fns/locale/oc/package.json | 5 + node_modules/date-fns/locale/package.json | 5 + .../locale/pl/_lib/formatDistance/index.js | 160 + .../locale/pl/_lib/formatLong/index.js | 46 + .../locale/pl/_lib/formatRelative/index.js | 74 + .../date-fns/locale/pl/_lib/localize/index.js | 147 + .../date-fns/locale/pl/_lib/match/index.js | 123 + node_modules/date-fns/locale/pl/index.d.ts | 4 + node_modules/date-fns/locale/pl/index.js | 47 + node_modules/date-fns/locale/pl/index.js.flow | 35 + node_modules/date-fns/locale/pl/package.json | 5 + .../locale/pt-BR/_lib/formatDistance/index.js | 96 + .../locale/pt-BR/_lib/formatLong/index.js | 46 + .../locale/pt-BR/_lib/formatRelative/index.js | 32 + .../locale/pt-BR/_lib/localize/index.js | 138 + .../date-fns/locale/pt-BR/_lib/match/index.js | 113 + node_modules/date-fns/locale/pt-BR/index.d.ts | 4 + node_modules/date-fns/locale/pt-BR/index.js | 45 + .../date-fns/locale/pt-BR/index.js.flow | 35 + .../date-fns/locale/pt-BR/package.json | 5 + .../locale/pt/_lib/formatDistance/index.js | 96 + .../locale/pt/_lib/formatLong/index.js | 46 + .../locale/pt/_lib/formatRelative/index.js | 32 + .../date-fns/locale/pt/_lib/localize/index.js | 133 + .../date-fns/locale/pt/_lib/match/index.js | 112 + node_modules/date-fns/locale/pt/index.d.ts | 4 + node_modules/date-fns/locale/pt/index.js | 45 + node_modules/date-fns/locale/pt/index.js.flow | 35 + node_modules/date-fns/locale/pt/package.json | 5 + .../locale/ro/_lib/formatDistance/index.js | 96 + .../locale/ro/_lib/formatLong/index.js | 46 + .../locale/ro/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ro/_lib/localize/index.js | 132 + .../date-fns/locale/ro/_lib/match/index.js | 112 + node_modules/date-fns/locale/ro/index.d.ts | 4 + node_modules/date-fns/locale/ro/index.js | 46 + node_modules/date-fns/locale/ro/index.js.flow | 35 + node_modules/date-fns/locale/ro/package.json | 5 + .../locale/ru/_lib/formatDistance/index.js | 237 + .../locale/ru/_lib/formatLong/index.js | 43 + .../locale/ru/_lib/formatRelative/index.js | 101 + .../date-fns/locale/ru/_lib/localize/index.js | 151 + .../date-fns/locale/ru/_lib/match/index.js | 112 + node_modules/date-fns/locale/ru/index.d.ts | 4 + node_modules/date-fns/locale/ru/index.js | 45 + node_modules/date-fns/locale/ru/index.js.flow | 35 + node_modules/date-fns/locale/ru/package.json | 5 + .../locale/sk/_lib/formatDistance/index.js | 213 + .../locale/sk/_lib/formatLong/index.js | 49 + .../locale/sk/_lib/formatRelative/index.js | 104 + .../date-fns/locale/sk/_lib/localize/index.js | 145 + .../date-fns/locale/sk/_lib/match/index.js | 112 + node_modules/date-fns/locale/sk/index.d.ts | 4 + node_modules/date-fns/locale/sk/index.js | 44 + node_modules/date-fns/locale/sk/index.js.flow | 35 + node_modules/date-fns/locale/sk/package.json | 5 + .../locale/sl/_lib/formatDistance/index.js | 340 + .../locale/sl/_lib/formatLong/index.js | 46 + .../locale/sl/_lib/formatRelative/index.js | 60 + .../date-fns/locale/sl/_lib/localize/index.js | 133 + .../date-fns/locale/sl/_lib/match/index.js | 121 + node_modules/date-fns/locale/sl/index.d.ts | 4 + node_modules/date-fns/locale/sl/index.js | 45 + node_modules/date-fns/locale/sl/index.js.flow | 35 + node_modules/date-fns/locale/sl/package.json | 5 + .../locale/sq/_lib/formatDistance/index.js | 96 + .../locale/sq/_lib/formatLong/index.js | 46 + .../locale/sq/_lib/formatRelative/index.js | 22 + .../date-fns/locale/sq/_lib/localize/index.js | 140 + .../date-fns/locale/sq/_lib/match/index.js | 111 + node_modules/date-fns/locale/sq/index.d.ts | 4 + node_modules/date-fns/locale/sq/index.js | 44 + node_modules/date-fns/locale/sq/index.js.flow | 35 + node_modules/date-fns/locale/sq/package.json | 5 + .../sr-Latn/_lib/formatDistance/index.js | 183 + .../locale/sr-Latn/_lib/formatLong/index.js | 46 + .../sr-Latn/_lib/formatRelative/index.js | 56 + .../locale/sr-Latn/_lib/localize/index.js | 140 + .../locale/sr-Latn/_lib/match/index.js | 110 + .../date-fns/locale/sr-Latn/index.d.ts | 4 + node_modules/date-fns/locale/sr-Latn/index.js | 44 + .../date-fns/locale/sr-Latn/index.js.flow | 35 + .../date-fns/locale/sr-Latn/package.json | 5 + .../locale/sr/_lib/formatDistance/index.js | 183 + .../locale/sr/_lib/formatLong/index.js | 46 + .../locale/sr/_lib/formatRelative/index.js | 60 + .../date-fns/locale/sr/_lib/localize/index.js | 140 + .../date-fns/locale/sr/_lib/match/index.js | 110 + node_modules/date-fns/locale/sr/index.d.ts | 4 + node_modules/date-fns/locale/sr/index.js | 44 + node_modules/date-fns/locale/sr/index.js.flow | 35 + node_modules/date-fns/locale/sr/package.json | 5 + .../locale/sv/_lib/formatDistance/index.js | 101 + .../locale/sv/_lib/formatLong/index.js | 46 + .../locale/sv/_lib/formatRelative/index.js | 22 + .../date-fns/locale/sv/_lib/localize/index.js | 144 + .../date-fns/locale/sv/_lib/match/index.js | 109 + node_modules/date-fns/locale/sv/index.d.ts | 4 + node_modules/date-fns/locale/sv/index.js | 46 + node_modules/date-fns/locale/sv/index.js.flow | 35 + node_modules/date-fns/locale/sv/package.json | 5 + .../locale/ta/_lib/formatDistance/index.js | 214 + .../locale/ta/_lib/formatLong/index.js | 49 + .../locale/ta/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ta/_lib/localize/index.js | 166 + .../date-fns/locale/ta/_lib/match/index.js | 112 + node_modules/date-fns/locale/ta/index.d.ts | 4 + node_modules/date-fns/locale/ta/index.js | 44 + node_modules/date-fns/locale/ta/index.js.flow | 35 + node_modules/date-fns/locale/ta/package.json | 5 + .../locale/te/_lib/formatDistance/index.js | 197 + .../locale/te/_lib/formatLong/index.js | 50 + .../locale/te/_lib/formatRelative/index.js | 28 + .../date-fns/locale/te/_lib/localize/index.js | 140 + .../date-fns/locale/te/_lib/match/index.js | 111 + node_modules/date-fns/locale/te/index.d.ts | 4 + node_modules/date-fns/locale/te/index.js | 44 + node_modules/date-fns/locale/te/index.js.flow | 35 + node_modules/date-fns/locale/te/package.json | 5 + .../locale/th/_lib/formatDistance/index.js | 100 + .../locale/th/_lib/formatLong/index.js | 46 + .../locale/th/_lib/formatRelative/index.js | 22 + .../date-fns/locale/th/_lib/localize/index.js | 132 + .../date-fns/locale/th/_lib/match/index.js | 110 + node_modules/date-fns/locale/th/index.d.ts | 4 + node_modules/date-fns/locale/th/index.js | 46 + node_modules/date-fns/locale/th/index.js.flow | 35 + node_modules/date-fns/locale/th/package.json | 5 + .../locale/tr/_lib/formatDistance/index.js | 96 + .../locale/tr/_lib/formatLong/index.js | 46 + .../locale/tr/_lib/formatRelative/index.js | 22 + .../date-fns/locale/tr/_lib/localize/index.js | 133 + .../date-fns/locale/tr/_lib/match/index.js | 114 + node_modules/date-fns/locale/tr/index.d.ts | 4 + node_modules/date-fns/locale/tr/index.js | 50 + node_modules/date-fns/locale/tr/index.js.flow | 35 + node_modules/date-fns/locale/tr/package.json | 5 + node_modules/date-fns/locale/types.js | 5 + .../locale/ug/_lib/formatDistance/index.js | 96 + .../locale/ug/_lib/formatLong/index.js | 46 + .../locale/ug/_lib/formatRelative/index.js | 22 + .../date-fns/locale/ug/_lib/localize/index.js | 136 + .../date-fns/locale/ug/_lib/match/index.js | 111 + node_modules/date-fns/locale/ug/index.d.ts | 4 + node_modules/date-fns/locale/ug/index.js | 44 + node_modules/date-fns/locale/ug/index.js.flow | 35 + node_modules/date-fns/locale/ug/package.json | 5 + .../locale/uk/_lib/formatDistance/index.js | 240 + .../locale/uk/_lib/formatLong/index.js | 46 + .../locale/uk/_lib/formatRelative/index.js | 98 + .../date-fns/locale/uk/_lib/localize/index.js | 156 + .../date-fns/locale/uk/_lib/match/index.js | 112 + node_modules/date-fns/locale/uk/index.d.ts | 4 + node_modules/date-fns/locale/uk/index.js | 45 + node_modules/date-fns/locale/uk/index.js.flow | 35 + node_modules/date-fns/locale/uk/package.json | 5 + .../uz-Cyrl/_lib/formatDistance/index.js | 96 + .../locale/uz-Cyrl/_lib/formatLong/index.js | 43 + .../uz-Cyrl/_lib/formatRelative/index.js | 22 + .../locale/uz-Cyrl/_lib/localize/index.js | 92 + .../locale/uz-Cyrl/_lib/match/index.js | 110 + .../date-fns/locale/uz-Cyrl/index.d.ts | 4 + node_modules/date-fns/locale/uz-Cyrl/index.js | 44 + .../date-fns/locale/uz-Cyrl/index.js.flow | 35 + .../date-fns/locale/uz-Cyrl/package.json | 5 + .../locale/uz/_lib/formatDistance/index.js | 96 + .../locale/uz/_lib/formatLong/index.js | 43 + .../locale/uz/_lib/formatRelative/index.js | 22 + .../date-fns/locale/uz/_lib/localize/index.js | 136 + .../date-fns/locale/uz/_lib/match/index.js | 111 + node_modules/date-fns/locale/uz/index.d.ts | 4 + node_modules/date-fns/locale/uz/index.js | 44 + node_modules/date-fns/locale/uz/index.js.flow | 35 + node_modules/date-fns/locale/uz/package.json | 5 + .../locale/vi/_lib/formatDistance/index.js | 96 + .../locale/vi/_lib/formatLong/index.js | 52 + .../locale/vi/_lib/formatRelative/index.js | 22 + .../date-fns/locale/vi/_lib/localize/index.js | 223 + .../date-fns/locale/vi/_lib/match/index.js | 119 + node_modules/date-fns/locale/vi/index.d.ts | 4 + node_modules/date-fns/locale/vi/index.js | 47 + node_modules/date-fns/locale/vi/index.js.flow | 35 + node_modules/date-fns/locale/vi/package.json | 5 + .../locale/zh-CN/_lib/formatDistance/index.js | 96 + .../locale/zh-CN/_lib/formatLong/index.js | 46 + .../locale/zh-CN/_lib/formatRelative/index.js | 47 + .../locale/zh-CN/_lib/localize/index.js | 149 + .../date-fns/locale/zh-CN/_lib/match/index.js | 109 + node_modules/date-fns/locale/zh-CN/index.d.ts | 4 + node_modules/date-fns/locale/zh-CN/index.js | 48 + .../date-fns/locale/zh-CN/index.js.flow | 35 + .../date-fns/locale/zh-CN/package.json | 5 + .../locale/zh-HK/_lib/formatDistance/index.js | 96 + .../locale/zh-HK/_lib/formatLong/index.js | 46 + .../locale/zh-HK/_lib/formatRelative/index.js | 22 + .../locale/zh-HK/_lib/localize/index.js | 149 + .../date-fns/locale/zh-HK/_lib/match/index.js | 109 + node_modules/date-fns/locale/zh-HK/index.d.ts | 4 + node_modules/date-fns/locale/zh-HK/index.js | 44 + .../date-fns/locale/zh-HK/index.js.flow | 35 + .../date-fns/locale/zh-HK/package.json | 5 + .../locale/zh-TW/_lib/formatDistance/index.js | 96 + .../locale/zh-TW/_lib/formatLong/index.js | 46 + .../locale/zh-TW/_lib/formatRelative/index.js | 22 + .../locale/zh-TW/_lib/localize/index.js | 149 + .../date-fns/locale/zh-TW/_lib/match/index.js | 109 + node_modules/date-fns/locale/zh-TW/index.d.ts | 4 + node_modules/date-fns/locale/zh-TW/index.js | 46 + .../date-fns/locale/zh-TW/index.js.flow | 35 + .../date-fns/locale/zh-TW/package.json | 5 + node_modules/date-fns/max/index.d.ts | 4 + node_modules/date-fns/max/index.js | 62 + node_modules/date-fns/max/index.js.flow | 52 + node_modules/date-fns/max/package.json | 5 + node_modules/date-fns/milliseconds/index.d.ts | 4 + node_modules/date-fns/milliseconds/index.js | 66 + .../date-fns/milliseconds/index.js.flow | 52 + .../date-fns/milliseconds/package.json | 5 + .../date-fns/millisecondsToHours/index.d.ts | 4 + .../date-fns/millisecondsToHours/index.js | 43 + .../millisecondsToHours/index.js.flow | 52 + .../date-fns/millisecondsToHours/package.json | 5 + .../date-fns/millisecondsToMinutes/index.d.ts | 4 + .../date-fns/millisecondsToMinutes/index.js | 43 + .../millisecondsToMinutes/index.js.flow | 52 + .../millisecondsToMinutes/package.json | 5 + .../date-fns/millisecondsToSeconds/index.d.ts | 4 + .../date-fns/millisecondsToSeconds/index.js | 43 + .../millisecondsToSeconds/index.js.flow | 52 + .../millisecondsToSeconds/package.json | 5 + node_modules/date-fns/min/index.d.ts | 4 + node_modules/date-fns/min/index.js | 62 + node_modules/date-fns/min/index.js.flow | 52 + node_modules/date-fns/min/package.json | 5 + .../date-fns/minutesToHours/index.d.ts | 4 + node_modules/date-fns/minutesToHours/index.js | 43 + .../date-fns/minutesToHours/index.js.flow | 52 + .../date-fns/minutesToHours/package.json | 5 + .../date-fns/minutesToMilliseconds/index.d.ts | 4 + .../date-fns/minutesToMilliseconds/index.js | 37 + .../minutesToMilliseconds/index.js.flow | 52 + .../minutesToMilliseconds/package.json | 5 + .../date-fns/minutesToSeconds/index.d.ts | 4 + .../date-fns/minutesToSeconds/index.js | 37 + .../date-fns/minutesToSeconds/index.js.flow | 52 + .../date-fns/minutesToSeconds/package.json | 5 + .../date-fns/monthsToQuarters/index.d.ts | 4 + .../date-fns/monthsToQuarters/index.js | 43 + .../date-fns/monthsToQuarters/index.js.flow | 52 + .../date-fns/monthsToQuarters/package.json | 5 + .../date-fns/monthsToYears/index.d.ts | 4 + node_modules/date-fns/monthsToYears/index.js | 42 + .../date-fns/monthsToYears/index.js.flow | 52 + .../date-fns/monthsToYears/package.json | 5 + node_modules/date-fns/nextDay/index.d.ts | 4 + node_modules/date-fns/nextDay/index.js | 46 + node_modules/date-fns/nextDay/index.js.flow | 52 + node_modules/date-fns/nextDay/package.json | 5 + node_modules/date-fns/nextFriday/index.d.ts | 4 + node_modules/date-fns/nextFriday/index.js | 36 + .../date-fns/nextFriday/index.js.flow | 52 + node_modules/date-fns/nextFriday/package.json | 5 + node_modules/date-fns/nextMonday/index.d.ts | 4 + node_modules/date-fns/nextMonday/index.js | 36 + .../date-fns/nextMonday/index.js.flow | 52 + node_modules/date-fns/nextMonday/package.json | 5 + node_modules/date-fns/nextSaturday/index.d.ts | 4 + node_modules/date-fns/nextSaturday/index.js | 36 + .../date-fns/nextSaturday/index.js.flow | 52 + .../date-fns/nextSaturday/package.json | 5 + node_modules/date-fns/nextSunday/index.d.ts | 4 + node_modules/date-fns/nextSunday/index.js | 36 + .../date-fns/nextSunday/index.js.flow | 52 + node_modules/date-fns/nextSunday/package.json | 5 + node_modules/date-fns/nextThursday/index.d.ts | 4 + node_modules/date-fns/nextThursday/index.js | 36 + .../date-fns/nextThursday/index.js.flow | 52 + .../date-fns/nextThursday/package.json | 5 + node_modules/date-fns/nextTuesday/index.d.ts | 4 + node_modules/date-fns/nextTuesday/index.js | 36 + .../date-fns/nextTuesday/index.js.flow | 52 + .../date-fns/nextTuesday/package.json | 5 + .../date-fns/nextWednesday/index.d.ts | 4 + node_modules/date-fns/nextWednesday/index.js | 36 + .../date-fns/nextWednesday/index.js.flow | 52 + .../date-fns/nextWednesday/package.json | 5 + node_modules/date-fns/package.json | 101 + node_modules/date-fns/parse/_lib/Parser.js | 45 + node_modules/date-fns/parse/_lib/Setter.js | 133 + node_modules/date-fns/parse/_lib/constants.js | 54 + .../parse/_lib/parsers/AMPMMidnightParser.js | 105 + .../date-fns/parse/_lib/parsers/AMPMParser.js | 105 + .../date-fns/parse/_lib/parsers/DateParser.js | 107 + .../parse/_lib/parsers/DayOfYearParser.js | 104 + .../date-fns/parse/_lib/parsers/DayParser.js | 133 + .../parse/_lib/parsers/DayPeriodParser.js | 106 + .../date-fns/parse/_lib/parsers/EraParser.js | 102 + .../parse/_lib/parsers/ExtendedYearParser.js | 80 + .../_lib/parsers/FractionOfSecondParser.js | 79 + .../parse/_lib/parsers/Hour0To11Parser.js | 100 + .../parse/_lib/parsers/Hour0to23Parser.js | 93 + .../parse/_lib/parsers/Hour1To24Parser.js | 94 + .../parse/_lib/parsers/Hour1to12Parser.js | 102 + .../parse/_lib/parsers/ISODayParser.js | 153 + .../parse/_lib/parsers/ISOTimezoneParser.js | 97 + .../_lib/parsers/ISOTimezoneWithZParser.js | 97 + .../parse/_lib/parsers/ISOWeekParser.js | 99 + .../parse/_lib/parsers/ISOWeekYearParser.js | 86 + .../parse/_lib/parsers/LocalDayParser.js | 150 + .../parse/_lib/parsers/LocalWeekParser.js | 99 + .../parse/_lib/parsers/LocalWeekYearParser.js | 116 + .../parse/_lib/parsers/MinuteParser.js | 93 + .../parse/_lib/parsers/MonthParser.js | 132 + .../parse/_lib/parsers/QuarterParser.js | 124 + .../parse/_lib/parsers/SecondParser.js | 93 + .../_lib/parsers/StandAloneLocalDayParser.js | 150 + .../_lib/parsers/StandAloneMonthParser.js | 132 + .../_lib/parsers/StandAloneQuarterParser.js | 124 + .../parsers/TimestampMillisecondsParser.js | 76 + .../_lib/parsers/TimestampSecondsParser.js | 76 + .../date-fns/parse/_lib/parsers/YearParser.js | 117 + .../date-fns/parse/_lib/parsers/index.js | 146 + node_modules/date-fns/parse/_lib/types.js | 5 + node_modules/date-fns/parse/_lib/utils.js | 155 + node_modules/date-fns/parse/index.d.ts | 4 + node_modules/date-fns/parse/index.js | 559 + node_modules/date-fns/parse/index.js.flow | 63 + node_modules/date-fns/parse/package.json | 5 + node_modules/date-fns/parseISO/index.d.ts | 4 + node_modules/date-fns/parseISO/index.js | 280 + node_modules/date-fns/parseISO/index.js.flow | 57 + node_modules/date-fns/parseISO/package.json | 5 + node_modules/date-fns/parseJSON/index.d.ts | 4 + node_modules/date-fns/parseJSON/index.js | 65 + node_modules/date-fns/parseJSON/index.js.flow | 52 + node_modules/date-fns/parseJSON/package.json | 5 + node_modules/date-fns/previousDay/index.d.ts | 4 + node_modules/date-fns/previousDay/index.js | 46 + .../date-fns/previousDay/index.js.flow | 52 + .../date-fns/previousDay/package.json | 5 + .../date-fns/previousFriday/index.d.ts | 4 + node_modules/date-fns/previousFriday/index.js | 36 + .../date-fns/previousFriday/index.js.flow | 52 + .../date-fns/previousFriday/package.json | 5 + .../date-fns/previousMonday/index.d.ts | 4 + node_modules/date-fns/previousMonday/index.js | 36 + .../date-fns/previousMonday/index.js.flow | 52 + .../date-fns/previousMonday/package.json | 5 + .../date-fns/previousSaturday/index.d.ts | 4 + .../date-fns/previousSaturday/index.js | 36 + .../date-fns/previousSaturday/index.js.flow | 52 + .../date-fns/previousSaturday/package.json | 5 + .../date-fns/previousSunday/index.d.ts | 4 + node_modules/date-fns/previousSunday/index.js | 36 + .../date-fns/previousSunday/index.js.flow | 52 + .../date-fns/previousSunday/package.json | 5 + .../date-fns/previousThursday/index.d.ts | 4 + .../date-fns/previousThursday/index.js | 36 + .../date-fns/previousThursday/index.js.flow | 52 + .../date-fns/previousThursday/package.json | 5 + .../date-fns/previousTuesday/index.d.ts | 4 + .../date-fns/previousTuesday/index.js | 36 + .../date-fns/previousTuesday/index.js.flow | 52 + .../date-fns/previousTuesday/package.json | 5 + .../date-fns/previousWednesday/index.d.ts | 4 + .../date-fns/previousWednesday/index.js | 36 + .../date-fns/previousWednesday/index.js.flow | 52 + .../date-fns/previousWednesday/package.json | 5 + .../date-fns/quartersToMonths/index.d.ts | 4 + .../date-fns/quartersToMonths/index.js | 37 + .../date-fns/quartersToMonths/index.js.flow | 52 + .../date-fns/quartersToMonths/package.json | 5 + .../date-fns/quartersToYears/index.d.ts | 4 + .../date-fns/quartersToYears/index.js | 43 + .../date-fns/quartersToYears/index.js.flow | 52 + .../date-fns/quartersToYears/package.json | 5 + .../date-fns/roundToNearestMinutes/index.d.ts | 4 + .../date-fns/roundToNearestMinutes/index.js | 68 + .../roundToNearestMinutes/index.js.flow | 58 + .../roundToNearestMinutes/package.json | 5 + .../date-fns/secondsToHours/index.d.ts | 4 + node_modules/date-fns/secondsToHours/index.js | 43 + .../date-fns/secondsToHours/index.js.flow | 52 + .../date-fns/secondsToHours/package.json | 5 + .../date-fns/secondsToMilliseconds/index.d.ts | 4 + .../date-fns/secondsToMilliseconds/index.js | 37 + .../secondsToMilliseconds/index.js.flow | 52 + .../secondsToMilliseconds/package.json | 5 + .../date-fns/secondsToMinutes/index.d.ts | 4 + .../date-fns/secondsToMinutes/index.js | 43 + .../date-fns/secondsToMinutes/index.js.flow | 52 + .../date-fns/secondsToMinutes/package.json | 5 + node_modules/date-fns/set/index.d.ts | 4 + node_modules/date-fns/set/index.js | 102 + node_modules/date-fns/set/index.js.flow | 63 + node_modules/date-fns/set/package.json | 5 + node_modules/date-fns/setDate/index.d.ts | 4 + node_modules/date-fns/setDate/index.js | 42 + node_modules/date-fns/setDate/index.js.flow | 52 + node_modules/date-fns/setDate/package.json | 5 + node_modules/date-fns/setDay/index.d.ts | 4 + node_modules/date-fns/setDay/index.js | 68 + node_modules/date-fns/setDay/index.js.flow | 59 + node_modules/date-fns/setDay/package.json | 5 + node_modules/date-fns/setDayOfYear/index.d.ts | 4 + node_modules/date-fns/setDayOfYear/index.js | 43 + .../date-fns/setDayOfYear/index.js.flow | 52 + .../date-fns/setDayOfYear/package.json | 5 + .../date-fns/setDefaultOptions/index.d.ts | 4 + .../date-fns/setDefaultOptions/index.js | 89 + .../date-fns/setDefaultOptions/index.js.flow | 56 + .../date-fns/setDefaultOptions/package.json | 5 + node_modules/date-fns/setHours/index.d.ts | 4 + node_modules/date-fns/setHours/index.js | 42 + node_modules/date-fns/setHours/index.js.flow | 52 + node_modules/date-fns/setHours/package.json | 5 + node_modules/date-fns/setISODay/index.d.ts | 4 + node_modules/date-fns/setISODay/index.js | 49 + node_modules/date-fns/setISODay/index.js.flow | 52 + node_modules/date-fns/setISODay/package.json | 5 + node_modules/date-fns/setISOWeek/index.d.ts | 4 + node_modules/date-fns/setISOWeek/index.js | 47 + .../date-fns/setISOWeek/index.js.flow | 52 + node_modules/date-fns/setISOWeek/package.json | 5 + .../date-fns/setISOWeekYear/index.d.ts | 4 + node_modules/date-fns/setISOWeekYear/index.js | 54 + .../date-fns/setISOWeekYear/index.js.flow | 52 + .../date-fns/setISOWeekYear/package.json | 5 + .../date-fns/setMilliseconds/index.d.ts | 4 + .../date-fns/setMilliseconds/index.js | 42 + .../date-fns/setMilliseconds/index.js.flow | 52 + .../date-fns/setMilliseconds/package.json | 5 + node_modules/date-fns/setMinutes/index.d.ts | 4 + node_modules/date-fns/setMinutes/index.js | 42 + .../date-fns/setMinutes/index.js.flow | 52 + node_modules/date-fns/setMinutes/package.json | 5 + node_modules/date-fns/setMonth/index.d.ts | 4 + node_modules/date-fns/setMonth/index.js | 52 + node_modules/date-fns/setMonth/index.js.flow | 52 + node_modules/date-fns/setMonth/package.json | 5 + node_modules/date-fns/setQuarter/index.d.ts | 4 + node_modules/date-fns/setQuarter/index.js | 45 + .../date-fns/setQuarter/index.js.flow | 52 + node_modules/date-fns/setQuarter/package.json | 5 + node_modules/date-fns/setSeconds/index.d.ts | 4 + node_modules/date-fns/setSeconds/index.js | 42 + .../date-fns/setSeconds/index.js.flow | 52 + node_modules/date-fns/setSeconds/package.json | 5 + node_modules/date-fns/setWeek/index.d.ts | 4 + node_modules/date-fns/setWeek/index.js | 67 + node_modules/date-fns/setWeek/index.js.flow | 60 + node_modules/date-fns/setWeek/package.json | 5 + node_modules/date-fns/setWeekYear/index.d.ts | 4 + node_modules/date-fns/setWeekYear/index.js | 80 + .../date-fns/setWeekYear/index.js.flow | 60 + .../date-fns/setWeekYear/package.json | 5 + node_modules/date-fns/setYear/index.d.ts | 4 + node_modules/date-fns/setYear/index.js | 47 + node_modules/date-fns/setYear/index.js.flow | 52 + node_modules/date-fns/setYear/package.json | 5 + node_modules/date-fns/startOfDay/index.d.ts | 4 + node_modules/date-fns/startOfDay/index.js | 39 + .../date-fns/startOfDay/index.js.flow | 52 + node_modules/date-fns/startOfDay/package.json | 5 + .../date-fns/startOfDecade/index.d.ts | 4 + node_modules/date-fns/startOfDecade/index.js | 41 + .../date-fns/startOfDecade/index.js.flow | 52 + .../date-fns/startOfDecade/package.json | 5 + node_modules/date-fns/startOfHour/index.d.ts | 4 + node_modules/date-fns/startOfHour/index.js | 39 + .../date-fns/startOfHour/index.js.flow | 52 + .../date-fns/startOfHour/package.json | 5 + .../date-fns/startOfISOWeek/index.d.ts | 4 + node_modules/date-fns/startOfISOWeek/index.js | 41 + .../date-fns/startOfISOWeek/index.js.flow | 52 + .../date-fns/startOfISOWeek/package.json | 5 + .../date-fns/startOfISOWeekYear/index.d.ts | 4 + .../date-fns/startOfISOWeekYear/index.js | 47 + .../date-fns/startOfISOWeekYear/index.js.flow | 52 + .../date-fns/startOfISOWeekYear/package.json | 5 + .../date-fns/startOfMinute/index.d.ts | 4 + node_modules/date-fns/startOfMinute/index.js | 39 + .../date-fns/startOfMinute/index.js.flow | 52 + .../date-fns/startOfMinute/package.json | 5 + node_modules/date-fns/startOfMonth/index.d.ts | 4 + node_modules/date-fns/startOfMonth/index.js | 40 + .../date-fns/startOfMonth/index.js.flow | 52 + .../date-fns/startOfMonth/package.json | 5 + .../date-fns/startOfQuarter/index.d.ts | 4 + node_modules/date-fns/startOfQuarter/index.js | 42 + .../date-fns/startOfQuarter/index.js.flow | 52 + .../date-fns/startOfQuarter/package.json | 5 + .../date-fns/startOfSecond/index.d.ts | 4 + node_modules/date-fns/startOfSecond/index.js | 39 + .../date-fns/startOfSecond/index.js.flow | 52 + .../date-fns/startOfSecond/package.json | 5 + node_modules/date-fns/startOfToday/index.d.ts | 4 + node_modules/date-fns/startOfToday/index.js | 35 + .../date-fns/startOfToday/index.js.flow | 52 + .../date-fns/startOfToday/package.json | 5 + .../date-fns/startOfTomorrow/index.d.ts | 4 + .../date-fns/startOfTomorrow/index.js | 38 + .../date-fns/startOfTomorrow/index.js.flow | 52 + .../date-fns/startOfTomorrow/package.json | 5 + node_modules/date-fns/startOfWeek/index.d.ts | 4 + node_modules/date-fns/startOfWeek/index.js | 64 + .../date-fns/startOfWeek/index.js.flow | 58 + .../date-fns/startOfWeek/package.json | 5 + .../date-fns/startOfWeekYear/index.d.ts | 4 + .../date-fns/startOfWeekYear/index.js | 73 + .../date-fns/startOfWeekYear/index.js.flow | 59 + .../date-fns/startOfWeekYear/package.json | 5 + node_modules/date-fns/startOfYear/index.d.ts | 4 + node_modules/date-fns/startOfYear/index.js | 41 + .../date-fns/startOfYear/index.js.flow | 52 + .../date-fns/startOfYear/package.json | 5 + .../date-fns/startOfYesterday/index.d.ts | 4 + .../date-fns/startOfYesterday/index.js | 38 + .../date-fns/startOfYesterday/index.js.flow | 52 + .../date-fns/startOfYesterday/package.json | 5 + node_modules/date-fns/sub/index.d.ts | 4 + node_modules/date-fns/sub/index.js | 81 + node_modules/date-fns/sub/index.js.flow | 52 + node_modules/date-fns/sub/package.json | 5 + .../date-fns/subBusinessDays/index.d.ts | 4 + .../date-fns/subBusinessDays/index.js | 40 + .../date-fns/subBusinessDays/index.js.flow | 52 + .../date-fns/subBusinessDays/package.json | 5 + node_modules/date-fns/subDays/index.d.ts | 4 + node_modules/date-fns/subDays/index.js | 40 + node_modules/date-fns/subDays/index.js.flow | 52 + node_modules/date-fns/subDays/package.json | 5 + node_modules/date-fns/subHours/index.d.ts | 4 + node_modules/date-fns/subHours/index.js | 40 + node_modules/date-fns/subHours/index.js.flow | 52 + node_modules/date-fns/subHours/package.json | 5 + .../date-fns/subISOWeekYears/index.d.ts | 4 + .../date-fns/subISOWeekYears/index.js | 42 + .../date-fns/subISOWeekYears/index.js.flow | 52 + .../date-fns/subISOWeekYears/package.json | 5 + .../date-fns/subMilliseconds/index.d.ts | 4 + .../date-fns/subMilliseconds/index.js | 40 + .../date-fns/subMilliseconds/index.js.flow | 52 + .../date-fns/subMilliseconds/package.json | 5 + node_modules/date-fns/subMinutes/index.d.ts | 4 + node_modules/date-fns/subMinutes/index.js | 40 + .../date-fns/subMinutes/index.js.flow | 52 + node_modules/date-fns/subMinutes/package.json | 5 + node_modules/date-fns/subMonths/index.d.ts | 4 + node_modules/date-fns/subMonths/index.js | 40 + node_modules/date-fns/subMonths/index.js.flow | 52 + node_modules/date-fns/subMonths/package.json | 5 + node_modules/date-fns/subQuarters/index.d.ts | 4 + node_modules/date-fns/subQuarters/index.js | 40 + .../date-fns/subQuarters/index.js.flow | 52 + .../date-fns/subQuarters/package.json | 5 + node_modules/date-fns/subSeconds/index.d.ts | 4 + node_modules/date-fns/subSeconds/index.js | 40 + .../date-fns/subSeconds/index.js.flow | 52 + node_modules/date-fns/subSeconds/package.json | 5 + node_modules/date-fns/subWeeks/index.d.ts | 4 + node_modules/date-fns/subWeeks/index.js | 40 + node_modules/date-fns/subWeeks/index.js.flow | 52 + node_modules/date-fns/subWeeks/package.json | 5 + node_modules/date-fns/subYears/index.d.ts | 4 + node_modules/date-fns/subYears/index.js | 40 + node_modules/date-fns/subYears/index.js.flow | 52 + node_modules/date-fns/subYears/package.json | 5 + node_modules/date-fns/toDate/index.d.ts | 4 + node_modules/date-fns/toDate/index.js | 65 + node_modules/date-fns/toDate/index.js.flow | 52 + node_modules/date-fns/toDate/package.json | 5 + node_modules/date-fns/types.js | 5 + node_modules/date-fns/typings.d.ts | 23802 ++++++++++++++++ node_modules/date-fns/weeksToDays/index.d.ts | 4 + node_modules/date-fns/weeksToDays/index.js | 37 + .../date-fns/weeksToDays/index.js.flow | 52 + .../date-fns/weeksToDays/package.json | 5 + .../date-fns/yearsToMonths/index.d.ts | 4 + node_modules/date-fns/yearsToMonths/index.js | 37 + .../date-fns/yearsToMonths/index.js.flow | 52 + .../date-fns/yearsToMonths/package.json | 5 + .../date-fns/yearsToQuarters/index.d.ts | 4 + .../date-fns/yearsToQuarters/index.js | 37 + .../date-fns/yearsToQuarters/index.js.flow | 52 + .../date-fns/yearsToQuarters/package.json | 5 + 5722 files changed, 230633 insertions(+) create mode 100644 node_modules/date-fns/CHANGELOG.md create mode 100644 node_modules/date-fns/LICENSE.md create mode 100644 node_modules/date-fns/README.md create mode 100644 node_modules/date-fns/_lib/addLeadingZeros/index.js create mode 100644 node_modules/date-fns/_lib/assign/index.js create mode 100644 node_modules/date-fns/_lib/cloneObject/index.js create mode 100644 node_modules/date-fns/_lib/defaultLocale/index.js create mode 100644 node_modules/date-fns/_lib/defaultOptions/index.js create mode 100644 node_modules/date-fns/_lib/format/formatters/index.js create mode 100644 node_modules/date-fns/_lib/format/lightFormatters/index.js create mode 100644 node_modules/date-fns/_lib/format/longFormatters/index.js create mode 100644 node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js create mode 100644 node_modules/date-fns/_lib/getUTCDayOfYear/index.js create mode 100644 node_modules/date-fns/_lib/getUTCISOWeek/index.js create mode 100644 node_modules/date-fns/_lib/getUTCISOWeekYear/index.js create mode 100644 node_modules/date-fns/_lib/getUTCWeek/index.js create mode 100644 node_modules/date-fns/_lib/getUTCWeekYear/index.js create mode 100644 node_modules/date-fns/_lib/isSameUTCWeek/index.js create mode 100644 node_modules/date-fns/_lib/protectedTokens/index.js create mode 100644 node_modules/date-fns/_lib/requiredArgs/index.js create mode 100644 node_modules/date-fns/_lib/roundingMethods/index.js create mode 100644 node_modules/date-fns/_lib/setUTCDay/index.js create mode 100644 node_modules/date-fns/_lib/setUTCISODay/index.js create mode 100644 node_modules/date-fns/_lib/setUTCISOWeek/index.js create mode 100644 node_modules/date-fns/_lib/setUTCWeek/index.js create mode 100644 node_modules/date-fns/_lib/startOfUTCISOWeek/index.js create mode 100644 node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js create mode 100644 node_modules/date-fns/_lib/startOfUTCWeek/index.js create mode 100644 node_modules/date-fns/_lib/startOfUTCWeekYear/index.js create mode 100644 node_modules/date-fns/_lib/test/index.js create mode 100644 node_modules/date-fns/_lib/toInteger/index.js create mode 100644 node_modules/date-fns/add/index.d.ts create mode 100644 node_modules/date-fns/add/index.js create mode 100644 node_modules/date-fns/add/index.js.flow create mode 100644 node_modules/date-fns/add/package.json create mode 100644 node_modules/date-fns/addBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/addBusinessDays/index.js create mode 100644 node_modules/date-fns/addBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/addBusinessDays/package.json create mode 100644 node_modules/date-fns/addDays/index.d.ts create mode 100644 node_modules/date-fns/addDays/index.js create mode 100644 node_modules/date-fns/addDays/index.js.flow create mode 100644 node_modules/date-fns/addDays/package.json create mode 100644 node_modules/date-fns/addHours/index.d.ts create mode 100644 node_modules/date-fns/addHours/index.js create mode 100644 node_modules/date-fns/addHours/index.js.flow create mode 100644 node_modules/date-fns/addHours/package.json create mode 100644 node_modules/date-fns/addISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/addISOWeekYears/index.js create mode 100644 node_modules/date-fns/addISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/addISOWeekYears/package.json create mode 100644 node_modules/date-fns/addMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/addMilliseconds/index.js create mode 100644 node_modules/date-fns/addMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/addMilliseconds/package.json create mode 100644 node_modules/date-fns/addMinutes/index.d.ts create mode 100644 node_modules/date-fns/addMinutes/index.js create mode 100644 node_modules/date-fns/addMinutes/index.js.flow create mode 100644 node_modules/date-fns/addMinutes/package.json create mode 100644 node_modules/date-fns/addMonths/index.d.ts create mode 100644 node_modules/date-fns/addMonths/index.js create mode 100644 node_modules/date-fns/addMonths/index.js.flow create mode 100644 node_modules/date-fns/addMonths/package.json create mode 100644 node_modules/date-fns/addQuarters/index.d.ts create mode 100644 node_modules/date-fns/addQuarters/index.js create mode 100644 node_modules/date-fns/addQuarters/index.js.flow create mode 100644 node_modules/date-fns/addQuarters/package.json create mode 100644 node_modules/date-fns/addSeconds/index.d.ts create mode 100644 node_modules/date-fns/addSeconds/index.js create mode 100644 node_modules/date-fns/addSeconds/index.js.flow create mode 100644 node_modules/date-fns/addSeconds/package.json create mode 100644 node_modules/date-fns/addWeeks/index.d.ts create mode 100644 node_modules/date-fns/addWeeks/index.js create mode 100644 node_modules/date-fns/addWeeks/index.js.flow create mode 100644 node_modules/date-fns/addWeeks/package.json create mode 100644 node_modules/date-fns/addYears/index.d.ts create mode 100644 node_modules/date-fns/addYears/index.js create mode 100644 node_modules/date-fns/addYears/index.js.flow create mode 100644 node_modules/date-fns/addYears/package.json create mode 100644 node_modules/date-fns/areIntervalsOverlapping/index.d.ts create mode 100644 node_modules/date-fns/areIntervalsOverlapping/index.js create mode 100644 node_modules/date-fns/areIntervalsOverlapping/index.js.flow create mode 100644 node_modules/date-fns/areIntervalsOverlapping/package.json create mode 100644 node_modules/date-fns/clamp/index.d.ts create mode 100644 node_modules/date-fns/clamp/index.js create mode 100644 node_modules/date-fns/clamp/index.js.flow create mode 100644 node_modules/date-fns/clamp/package.json create mode 100644 node_modules/date-fns/closestIndexTo/index.d.ts create mode 100644 node_modules/date-fns/closestIndexTo/index.js create mode 100644 node_modules/date-fns/closestIndexTo/index.js.flow create mode 100644 node_modules/date-fns/closestIndexTo/package.json create mode 100644 node_modules/date-fns/closestTo/index.d.ts create mode 100644 node_modules/date-fns/closestTo/index.js create mode 100644 node_modules/date-fns/closestTo/index.js.flow create mode 100644 node_modules/date-fns/closestTo/package.json create mode 100644 node_modules/date-fns/compareAsc/index.d.ts create mode 100644 node_modules/date-fns/compareAsc/index.js create mode 100644 node_modules/date-fns/compareAsc/index.js.flow create mode 100644 node_modules/date-fns/compareAsc/package.json create mode 100644 node_modules/date-fns/compareDesc/index.d.ts create mode 100644 node_modules/date-fns/compareDesc/index.js create mode 100644 node_modules/date-fns/compareDesc/index.js.flow create mode 100644 node_modules/date-fns/compareDesc/package.json create mode 100644 node_modules/date-fns/constants/index.d.ts create mode 100644 node_modules/date-fns/constants/index.js create mode 100644 node_modules/date-fns/constants/index.js.flow create mode 100644 node_modules/date-fns/daysToWeeks/index.d.ts create mode 100644 node_modules/date-fns/daysToWeeks/index.js create mode 100644 node_modules/date-fns/daysToWeeks/index.js.flow create mode 100644 node_modules/date-fns/daysToWeeks/package.json create mode 100644 node_modules/date-fns/differenceInBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/differenceInBusinessDays/index.js create mode 100644 node_modules/date-fns/differenceInBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/differenceInBusinessDays/package.json create mode 100644 node_modules/date-fns/differenceInCalendarDays/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarDays/index.js create mode 100644 node_modules/date-fns/differenceInCalendarDays/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarDays/package.json create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears/index.js create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarISOWeekYears/package.json create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks/index.js create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarISOWeeks/package.json create mode 100644 node_modules/date-fns/differenceInCalendarMonths/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarMonths/index.js create mode 100644 node_modules/date-fns/differenceInCalendarMonths/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarMonths/package.json create mode 100644 node_modules/date-fns/differenceInCalendarQuarters/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarQuarters/index.js create mode 100644 node_modules/date-fns/differenceInCalendarQuarters/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarQuarters/package.json create mode 100644 node_modules/date-fns/differenceInCalendarWeeks/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarWeeks/index.js create mode 100644 node_modules/date-fns/differenceInCalendarWeeks/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarWeeks/package.json create mode 100644 node_modules/date-fns/differenceInCalendarYears/index.d.ts create mode 100644 node_modules/date-fns/differenceInCalendarYears/index.js create mode 100644 node_modules/date-fns/differenceInCalendarYears/index.js.flow create mode 100644 node_modules/date-fns/differenceInCalendarYears/package.json create mode 100644 node_modules/date-fns/differenceInDays/index.d.ts create mode 100644 node_modules/date-fns/differenceInDays/index.js create mode 100644 node_modules/date-fns/differenceInDays/index.js.flow create mode 100644 node_modules/date-fns/differenceInDays/package.json create mode 100644 node_modules/date-fns/differenceInHours/index.d.ts create mode 100644 node_modules/date-fns/differenceInHours/index.js create mode 100644 node_modules/date-fns/differenceInHours/index.js.flow create mode 100644 node_modules/date-fns/differenceInHours/package.json create mode 100644 node_modules/date-fns/differenceInISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/differenceInISOWeekYears/index.js create mode 100644 node_modules/date-fns/differenceInISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/differenceInISOWeekYears/package.json create mode 100644 node_modules/date-fns/differenceInMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/differenceInMilliseconds/index.js create mode 100644 node_modules/date-fns/differenceInMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/differenceInMilliseconds/package.json create mode 100644 node_modules/date-fns/differenceInMinutes/index.d.ts create mode 100644 node_modules/date-fns/differenceInMinutes/index.js create mode 100644 node_modules/date-fns/differenceInMinutes/index.js.flow create mode 100644 node_modules/date-fns/differenceInMinutes/package.json create mode 100644 node_modules/date-fns/differenceInMonths/index.d.ts create mode 100644 node_modules/date-fns/differenceInMonths/index.js create mode 100644 node_modules/date-fns/differenceInMonths/index.js.flow create mode 100644 node_modules/date-fns/differenceInMonths/package.json create mode 100644 node_modules/date-fns/differenceInQuarters/index.d.ts create mode 100644 node_modules/date-fns/differenceInQuarters/index.js create mode 100644 node_modules/date-fns/differenceInQuarters/index.js.flow create mode 100644 node_modules/date-fns/differenceInQuarters/package.json create mode 100644 node_modules/date-fns/differenceInSeconds/index.d.ts create mode 100644 node_modules/date-fns/differenceInSeconds/index.js create mode 100644 node_modules/date-fns/differenceInSeconds/index.js.flow create mode 100644 node_modules/date-fns/differenceInSeconds/package.json create mode 100644 node_modules/date-fns/differenceInWeeks/index.d.ts create mode 100644 node_modules/date-fns/differenceInWeeks/index.js create mode 100644 node_modules/date-fns/differenceInWeeks/index.js.flow create mode 100644 node_modules/date-fns/differenceInWeeks/package.json create mode 100644 node_modules/date-fns/differenceInYears/index.d.ts create mode 100644 node_modules/date-fns/differenceInYears/index.js create mode 100644 node_modules/date-fns/differenceInYears/index.js.flow create mode 100644 node_modules/date-fns/differenceInYears/package.json create mode 100644 node_modules/date-fns/docs/.eslintrc.js create mode 100644 node_modules/date-fns/docs/Day.js create mode 100644 node_modules/date-fns/docs/Duration.js create mode 100644 node_modules/date-fns/docs/Interval.js create mode 100644 node_modules/date-fns/docs/Locale.js create mode 100644 node_modules/date-fns/docs/constants.md create mode 100644 node_modules/date-fns/docs/esm.md create mode 100644 node_modules/date-fns/docs/fp.md create mode 100644 node_modules/date-fns/docs/gettingStarted.md create mode 100644 node_modules/date-fns/docs/i18n.md create mode 100644 node_modules/date-fns/docs/i18nContributionGuide.md create mode 100644 node_modules/date-fns/docs/index.js create mode 100644 node_modules/date-fns/docs/logo.svg create mode 100644 node_modules/date-fns/docs/logotype.svg create mode 100644 node_modules/date-fns/docs/release.md create mode 100644 node_modules/date-fns/docs/timeZones.md create mode 100644 node_modules/date-fns/docs/unicodeTokens.md create mode 100644 node_modules/date-fns/docs/upgradeGuide.md create mode 100644 node_modules/date-fns/docs/webpack.md create mode 100644 node_modules/date-fns/eachDayOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachDayOfInterval/index.js create mode 100644 node_modules/date-fns/eachDayOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachDayOfInterval/package.json create mode 100644 node_modules/date-fns/eachHourOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachHourOfInterval/index.js create mode 100644 node_modules/date-fns/eachHourOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachHourOfInterval/package.json create mode 100644 node_modules/date-fns/eachMinuteOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachMinuteOfInterval/index.js create mode 100644 node_modules/date-fns/eachMinuteOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachMinuteOfInterval/package.json create mode 100644 node_modules/date-fns/eachMonthOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachMonthOfInterval/index.js create mode 100644 node_modules/date-fns/eachMonthOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachMonthOfInterval/package.json create mode 100644 node_modules/date-fns/eachQuarterOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachQuarterOfInterval/index.js create mode 100644 node_modules/date-fns/eachQuarterOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachQuarterOfInterval/package.json create mode 100644 node_modules/date-fns/eachWeekOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachWeekOfInterval/index.js create mode 100644 node_modules/date-fns/eachWeekOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachWeekOfInterval/package.json create mode 100644 node_modules/date-fns/eachWeekendOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfInterval/index.js create mode 100644 node_modules/date-fns/eachWeekendOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachWeekendOfInterval/package.json create mode 100644 node_modules/date-fns/eachWeekendOfMonth/index.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfMonth/index.js create mode 100644 node_modules/date-fns/eachWeekendOfMonth/index.js.flow create mode 100644 node_modules/date-fns/eachWeekendOfMonth/package.json create mode 100644 node_modules/date-fns/eachWeekendOfYear/index.d.ts create mode 100644 node_modules/date-fns/eachWeekendOfYear/index.js create mode 100644 node_modules/date-fns/eachWeekendOfYear/index.js.flow create mode 100644 node_modules/date-fns/eachWeekendOfYear/package.json create mode 100644 node_modules/date-fns/eachYearOfInterval/index.d.ts create mode 100644 node_modules/date-fns/eachYearOfInterval/index.js create mode 100644 node_modules/date-fns/eachYearOfInterval/index.js.flow create mode 100644 node_modules/date-fns/eachYearOfInterval/package.json create mode 100644 node_modules/date-fns/endOfDay/index.d.ts create mode 100644 node_modules/date-fns/endOfDay/index.js create mode 100644 node_modules/date-fns/endOfDay/index.js.flow create mode 100644 node_modules/date-fns/endOfDay/package.json create mode 100644 node_modules/date-fns/endOfDecade/index.d.ts create mode 100644 node_modules/date-fns/endOfDecade/index.js create mode 100644 node_modules/date-fns/endOfDecade/index.js.flow create mode 100644 node_modules/date-fns/endOfDecade/package.json create mode 100644 node_modules/date-fns/endOfHour/index.d.ts create mode 100644 node_modules/date-fns/endOfHour/index.js create mode 100644 node_modules/date-fns/endOfHour/index.js.flow create mode 100644 node_modules/date-fns/endOfHour/package.json create mode 100644 node_modules/date-fns/endOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/endOfISOWeek/index.js create mode 100644 node_modules/date-fns/endOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/endOfISOWeek/package.json create mode 100644 node_modules/date-fns/endOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/endOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/endOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/endOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/endOfMinute/index.d.ts create mode 100644 node_modules/date-fns/endOfMinute/index.js create mode 100644 node_modules/date-fns/endOfMinute/index.js.flow create mode 100644 node_modules/date-fns/endOfMinute/package.json create mode 100644 node_modules/date-fns/endOfMonth/index.d.ts create mode 100644 node_modules/date-fns/endOfMonth/index.js create mode 100644 node_modules/date-fns/endOfMonth/index.js.flow create mode 100644 node_modules/date-fns/endOfMonth/package.json create mode 100644 node_modules/date-fns/endOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/endOfQuarter/index.js create mode 100644 node_modules/date-fns/endOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/endOfQuarter/package.json create mode 100644 node_modules/date-fns/endOfSecond/index.d.ts create mode 100644 node_modules/date-fns/endOfSecond/index.js create mode 100644 node_modules/date-fns/endOfSecond/index.js.flow create mode 100644 node_modules/date-fns/endOfSecond/package.json create mode 100644 node_modules/date-fns/endOfToday/index.d.ts create mode 100644 node_modules/date-fns/endOfToday/index.js create mode 100644 node_modules/date-fns/endOfToday/index.js.flow create mode 100644 node_modules/date-fns/endOfToday/package.json create mode 100644 node_modules/date-fns/endOfTomorrow/index.d.ts create mode 100644 node_modules/date-fns/endOfTomorrow/index.js create mode 100644 node_modules/date-fns/endOfTomorrow/index.js.flow create mode 100644 node_modules/date-fns/endOfTomorrow/package.json create mode 100644 node_modules/date-fns/endOfWeek/index.d.ts create mode 100644 node_modules/date-fns/endOfWeek/index.js create mode 100644 node_modules/date-fns/endOfWeek/index.js.flow create mode 100644 node_modules/date-fns/endOfWeek/package.json create mode 100644 node_modules/date-fns/endOfYear/index.d.ts create mode 100644 node_modules/date-fns/endOfYear/index.js create mode 100644 node_modules/date-fns/endOfYear/index.js.flow create mode 100644 node_modules/date-fns/endOfYear/package.json create mode 100644 node_modules/date-fns/endOfYesterday/index.d.ts create mode 100644 node_modules/date-fns/endOfYesterday/index.js create mode 100644 node_modules/date-fns/endOfYesterday/index.js.flow create mode 100644 node_modules/date-fns/endOfYesterday/package.json create mode 100644 node_modules/date-fns/esm/_lib/addLeadingZeros/index.js create mode 100644 node_modules/date-fns/esm/_lib/assign/index.js create mode 100644 node_modules/date-fns/esm/_lib/cloneObject/index.js create mode 100644 node_modules/date-fns/esm/_lib/defaultLocale/index.js create mode 100644 node_modules/date-fns/esm/_lib/defaultOptions/index.js create mode 100644 node_modules/date-fns/esm/_lib/format/formatters/index.js create mode 100644 node_modules/date-fns/esm/_lib/format/lightFormatters/index.js create mode 100644 node_modules/date-fns/esm/_lib/format/longFormatters/index.js create mode 100644 node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/_lib/getUTCWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js create mode 100644 node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/protectedTokens/index.js create mode 100644 node_modules/date-fns/esm/_lib/requiredArgs/index.js create mode 100644 node_modules/date-fns/esm/_lib/roundingMethods/index.js create mode 100644 node_modules/date-fns/esm/_lib/setUTCDay/index.js create mode 100644 node_modules/date-fns/esm/_lib/setUTCISODay/index.js create mode 100644 node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/setUTCWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js create mode 100644 node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js create mode 100644 node_modules/date-fns/esm/_lib/test/index.js create mode 100644 node_modules/date-fns/esm/_lib/toInteger/index.js create mode 100644 node_modules/date-fns/esm/add/index.d.ts create mode 100644 node_modules/date-fns/esm/add/index.js create mode 100644 node_modules/date-fns/esm/add/index.js.flow create mode 100644 node_modules/date-fns/esm/add/package.json create mode 100644 node_modules/date-fns/esm/addBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/addBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/addBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/addBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/addDays/index.d.ts create mode 100644 node_modules/date-fns/esm/addDays/index.js create mode 100644 node_modules/date-fns/esm/addDays/index.js.flow create mode 100644 node_modules/date-fns/esm/addDays/package.json create mode 100644 node_modules/date-fns/esm/addHours/index.d.ts create mode 100644 node_modules/date-fns/esm/addHours/index.js create mode 100644 node_modules/date-fns/esm/addHours/index.js.flow create mode 100644 node_modules/date-fns/esm/addHours/package.json create mode 100644 node_modules/date-fns/esm/addISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/addISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/addISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/addISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/addMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/addMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/addMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/addMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/addMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/addMinutes/index.js create mode 100644 node_modules/date-fns/esm/addMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/addMinutes/package.json create mode 100644 node_modules/date-fns/esm/addMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/addMonths/index.js create mode 100644 node_modules/date-fns/esm/addMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/addMonths/package.json create mode 100644 node_modules/date-fns/esm/addQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/addQuarters/index.js create mode 100644 node_modules/date-fns/esm/addQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/addQuarters/package.json create mode 100644 node_modules/date-fns/esm/addSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/addSeconds/index.js create mode 100644 node_modules/date-fns/esm/addSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/addSeconds/package.json create mode 100644 node_modules/date-fns/esm/addWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/addWeeks/index.js create mode 100644 node_modules/date-fns/esm/addWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/addWeeks/package.json create mode 100644 node_modules/date-fns/esm/addYears/index.d.ts create mode 100644 node_modules/date-fns/esm/addYears/index.js create mode 100644 node_modules/date-fns/esm/addYears/index.js.flow create mode 100644 node_modules/date-fns/esm/addYears/package.json create mode 100644 node_modules/date-fns/esm/areIntervalsOverlapping/index.d.ts create mode 100644 node_modules/date-fns/esm/areIntervalsOverlapping/index.js create mode 100644 node_modules/date-fns/esm/areIntervalsOverlapping/index.js.flow create mode 100644 node_modules/date-fns/esm/areIntervalsOverlapping/package.json create mode 100644 node_modules/date-fns/esm/clamp/index.d.ts create mode 100644 node_modules/date-fns/esm/clamp/index.js create mode 100644 node_modules/date-fns/esm/clamp/index.js.flow create mode 100644 node_modules/date-fns/esm/clamp/package.json create mode 100644 node_modules/date-fns/esm/closestIndexTo/index.d.ts create mode 100644 node_modules/date-fns/esm/closestIndexTo/index.js create mode 100644 node_modules/date-fns/esm/closestIndexTo/index.js.flow create mode 100644 node_modules/date-fns/esm/closestIndexTo/package.json create mode 100644 node_modules/date-fns/esm/closestTo/index.d.ts create mode 100644 node_modules/date-fns/esm/closestTo/index.js create mode 100644 node_modules/date-fns/esm/closestTo/index.js.flow create mode 100644 node_modules/date-fns/esm/closestTo/package.json create mode 100644 node_modules/date-fns/esm/compareAsc/index.d.ts create mode 100644 node_modules/date-fns/esm/compareAsc/index.js create mode 100644 node_modules/date-fns/esm/compareAsc/index.js.flow create mode 100644 node_modules/date-fns/esm/compareAsc/package.json create mode 100644 node_modules/date-fns/esm/compareDesc/index.d.ts create mode 100644 node_modules/date-fns/esm/compareDesc/index.js create mode 100644 node_modules/date-fns/esm/compareDesc/index.js.flow create mode 100644 node_modules/date-fns/esm/compareDesc/package.json create mode 100644 node_modules/date-fns/esm/constants/index.d.ts create mode 100644 node_modules/date-fns/esm/constants/index.js create mode 100644 node_modules/date-fns/esm/constants/index.js.flow create mode 100644 node_modules/date-fns/esm/daysToWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/daysToWeeks/index.js create mode 100644 node_modules/date-fns/esm/daysToWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/daysToWeeks/package.json create mode 100644 node_modules/date-fns/esm/differenceInBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/differenceInBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarDays/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarDays/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarDays/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarDays/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarISOWeeks/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarMonths/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarMonths/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarQuarters/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarQuarters/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarWeeks/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarWeeks/package.json create mode 100644 node_modules/date-fns/esm/differenceInCalendarYears/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInCalendarYears/index.js create mode 100644 node_modules/date-fns/esm/differenceInCalendarYears/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInCalendarYears/package.json create mode 100644 node_modules/date-fns/esm/differenceInDays/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInDays/index.js create mode 100644 node_modules/date-fns/esm/differenceInDays/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInDays/package.json create mode 100644 node_modules/date-fns/esm/differenceInHours/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInHours/index.js create mode 100644 node_modules/date-fns/esm/differenceInHours/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInHours/package.json create mode 100644 node_modules/date-fns/esm/differenceInISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/differenceInISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/differenceInMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/differenceInMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/differenceInMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInMinutes/index.js create mode 100644 node_modules/date-fns/esm/differenceInMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInMinutes/package.json create mode 100644 node_modules/date-fns/esm/differenceInMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInMonths/index.js create mode 100644 node_modules/date-fns/esm/differenceInMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInMonths/package.json create mode 100644 node_modules/date-fns/esm/differenceInQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInQuarters/index.js create mode 100644 node_modules/date-fns/esm/differenceInQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInQuarters/package.json create mode 100644 node_modules/date-fns/esm/differenceInSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInSeconds/index.js create mode 100644 node_modules/date-fns/esm/differenceInSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInSeconds/package.json create mode 100644 node_modules/date-fns/esm/differenceInWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInWeeks/index.js create mode 100644 node_modules/date-fns/esm/differenceInWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInWeeks/package.json create mode 100644 node_modules/date-fns/esm/differenceInYears/index.d.ts create mode 100644 node_modules/date-fns/esm/differenceInYears/index.js create mode 100644 node_modules/date-fns/esm/differenceInYears/index.js.flow create mode 100644 node_modules/date-fns/esm/differenceInYears/package.json create mode 100644 node_modules/date-fns/esm/eachDayOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachDayOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachDayOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachDayOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachHourOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachHourOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachHourOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachHourOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachMinuteOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachMinuteOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachMinuteOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachMinuteOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachMonthOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachMonthOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachMonthOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachMonthOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachQuarterOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachQuarterOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachQuarterOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachQuarterOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachWeekOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachWeekOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachWeekOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachWeekOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachWeekendOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachWeekendOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachWeekendOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachWeekendOfInterval/package.json create mode 100644 node_modules/date-fns/esm/eachWeekendOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/eachWeekendOfMonth/index.js create mode 100644 node_modules/date-fns/esm/eachWeekendOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/eachWeekendOfMonth/package.json create mode 100644 node_modules/date-fns/esm/eachWeekendOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/eachWeekendOfYear/index.js create mode 100644 node_modules/date-fns/esm/eachWeekendOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/eachWeekendOfYear/package.json create mode 100644 node_modules/date-fns/esm/eachYearOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/eachYearOfInterval/index.js create mode 100644 node_modules/date-fns/esm/eachYearOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/eachYearOfInterval/package.json create mode 100644 node_modules/date-fns/esm/endOfDay/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfDay/index.js create mode 100644 node_modules/date-fns/esm/endOfDay/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfDay/package.json create mode 100644 node_modules/date-fns/esm/endOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfDecade/index.js create mode 100644 node_modules/date-fns/esm/endOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfDecade/package.json create mode 100644 node_modules/date-fns/esm/endOfHour/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfHour/index.js create mode 100644 node_modules/date-fns/esm/endOfHour/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfHour/package.json create mode 100644 node_modules/date-fns/esm/endOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/endOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/endOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/endOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/endOfMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfMinute/index.js create mode 100644 node_modules/date-fns/esm/endOfMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfMinute/package.json create mode 100644 node_modules/date-fns/esm/endOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfMonth/index.js create mode 100644 node_modules/date-fns/esm/endOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfMonth/package.json create mode 100644 node_modules/date-fns/esm/endOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/endOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/endOfSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfSecond/index.js create mode 100644 node_modules/date-fns/esm/endOfSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfSecond/package.json create mode 100644 node_modules/date-fns/esm/endOfToday/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfToday/index.js create mode 100644 node_modules/date-fns/esm/endOfToday/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfToday/package.json create mode 100644 node_modules/date-fns/esm/endOfTomorrow/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfTomorrow/index.js create mode 100644 node_modules/date-fns/esm/endOfTomorrow/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfTomorrow/package.json create mode 100644 node_modules/date-fns/esm/endOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfWeek/index.js create mode 100644 node_modules/date-fns/esm/endOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfWeek/package.json create mode 100644 node_modules/date-fns/esm/endOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfYear/index.js create mode 100644 node_modules/date-fns/esm/endOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfYear/package.json create mode 100644 node_modules/date-fns/esm/endOfYesterday/index.d.ts create mode 100644 node_modules/date-fns/esm/endOfYesterday/index.js create mode 100644 node_modules/date-fns/esm/endOfYesterday/index.js.flow create mode 100644 node_modules/date-fns/esm/endOfYesterday/package.json create mode 100644 node_modules/date-fns/esm/format/index.d.ts create mode 100644 node_modules/date-fns/esm/format/index.js create mode 100644 node_modules/date-fns/esm/format/index.js.flow create mode 100644 node_modules/date-fns/esm/format/package.json create mode 100644 node_modules/date-fns/esm/formatDistance/index.d.ts create mode 100644 node_modules/date-fns/esm/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/formatDistance/index.js.flow create mode 100644 node_modules/date-fns/esm/formatDistance/package.json create mode 100644 node_modules/date-fns/esm/formatDistanceStrict/index.d.ts create mode 100644 node_modules/date-fns/esm/formatDistanceStrict/index.js create mode 100644 node_modules/date-fns/esm/formatDistanceStrict/index.js.flow create mode 100644 node_modules/date-fns/esm/formatDistanceStrict/package.json create mode 100644 node_modules/date-fns/esm/formatDistanceToNow/index.d.ts create mode 100644 node_modules/date-fns/esm/formatDistanceToNow/index.js create mode 100644 node_modules/date-fns/esm/formatDistanceToNow/index.js.flow create mode 100644 node_modules/date-fns/esm/formatDistanceToNow/package.json create mode 100644 node_modules/date-fns/esm/formatDistanceToNowStrict/index.d.ts create mode 100644 node_modules/date-fns/esm/formatDistanceToNowStrict/index.js create mode 100644 node_modules/date-fns/esm/formatDistanceToNowStrict/index.js.flow create mode 100644 node_modules/date-fns/esm/formatDistanceToNowStrict/package.json create mode 100644 node_modules/date-fns/esm/formatDuration/index.d.ts create mode 100644 node_modules/date-fns/esm/formatDuration/index.js create mode 100644 node_modules/date-fns/esm/formatDuration/index.js.flow create mode 100644 node_modules/date-fns/esm/formatDuration/package.json create mode 100644 node_modules/date-fns/esm/formatISO/index.d.ts create mode 100644 node_modules/date-fns/esm/formatISO/index.js create mode 100644 node_modules/date-fns/esm/formatISO/index.js.flow create mode 100644 node_modules/date-fns/esm/formatISO/package.json create mode 100644 node_modules/date-fns/esm/formatISO9075/index.d.ts create mode 100644 node_modules/date-fns/esm/formatISO9075/index.js create mode 100644 node_modules/date-fns/esm/formatISO9075/index.js.flow create mode 100644 node_modules/date-fns/esm/formatISO9075/package.json create mode 100644 node_modules/date-fns/esm/formatISODuration/index.d.ts create mode 100644 node_modules/date-fns/esm/formatISODuration/index.js create mode 100644 node_modules/date-fns/esm/formatISODuration/index.js.flow create mode 100644 node_modules/date-fns/esm/formatISODuration/package.json create mode 100644 node_modules/date-fns/esm/formatRFC3339/index.d.ts create mode 100644 node_modules/date-fns/esm/formatRFC3339/index.js create mode 100644 node_modules/date-fns/esm/formatRFC3339/index.js.flow create mode 100644 node_modules/date-fns/esm/formatRFC3339/package.json create mode 100644 node_modules/date-fns/esm/formatRFC7231/index.d.ts create mode 100644 node_modules/date-fns/esm/formatRFC7231/index.js create mode 100644 node_modules/date-fns/esm/formatRFC7231/index.js.flow create mode 100644 node_modules/date-fns/esm/formatRFC7231/package.json create mode 100644 node_modules/date-fns/esm/formatRelative/index.d.ts create mode 100644 node_modules/date-fns/esm/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/formatRelative/index.js.flow create mode 100644 node_modules/date-fns/esm/formatRelative/package.json create mode 100644 node_modules/date-fns/esm/fp/_lib/convertToFP/index.js create mode 100644 node_modules/date-fns/esm/fp/add/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/add/index.js create mode 100644 node_modules/date-fns/esm/fp/add/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/add/package.json create mode 100644 node_modules/date-fns/esm/fp/addBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/fp/addBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/fp/addDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addDays/index.js create mode 100644 node_modules/date-fns/esm/fp/addDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addDays/package.json create mode 100644 node_modules/date-fns/esm/fp/addHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addHours/index.js create mode 100644 node_modules/date-fns/esm/fp/addHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addHours/package.json create mode 100644 node_modules/date-fns/esm/fp/addISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/fp/addISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/fp/addMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/addMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/addMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/addMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/addMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/addMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/addQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/addQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addQuarters/package.json create mode 100644 node_modules/date-fns/esm/fp/addSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/addSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/addWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/addWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/addYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/addYears/index.js create mode 100644 node_modules/date-fns/esm/fp/addYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/addYears/package.json create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlapping/package.json create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/clamp/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/clamp/index.js create mode 100644 node_modules/date-fns/esm/fp/clamp/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/clamp/package.json create mode 100644 node_modules/date-fns/esm/fp/closestIndexTo/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/closestIndexTo/index.js create mode 100644 node_modules/date-fns/esm/fp/closestIndexTo/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/closestIndexTo/package.json create mode 100644 node_modules/date-fns/esm/fp/closestTo/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/closestTo/index.js create mode 100644 node_modules/date-fns/esm/fp/closestTo/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/closestTo/package.json create mode 100644 node_modules/date-fns/esm/fp/compareAsc/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/compareAsc/index.js create mode 100644 node_modules/date-fns/esm/fp/compareAsc/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/compareAsc/package.json create mode 100644 node_modules/date-fns/esm/fp/compareDesc/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/compareDesc/index.js create mode 100644 node_modules/date-fns/esm/fp/compareDesc/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/compareDesc/package.json create mode 100644 node_modules/date-fns/esm/fp/daysToWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/daysToWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/daysToWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/daysToWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarDays/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarQuarters/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInCalendarYears/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInDays/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInDays/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInHours/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInHours/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInHoursWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInQuarters/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/differenceInYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/differenceInYears/index.js create mode 100644 node_modules/date-fns/esm/fp/differenceInYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/differenceInYears/package.json create mode 100644 node_modules/date-fns/esm/fp/eachDayOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachDayOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachDayOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachDayOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/eachHourOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachHourOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachHourOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachHourOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/eachMonthOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachMonthOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachQuarterOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachWeekendOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/eachYearOfInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/eachYearOfInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/eachYearOfInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/eachYearOfInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfDay/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfDay/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfDecade/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfDecade/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfDecadeWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfHour/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfHour/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfHour/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfHour/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfMinute/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfMinute/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfSecond/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfSecond/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/endOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/endOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/endOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/endOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/format/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/format/index.js create mode 100644 node_modules/date-fns/esm/fp/format/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/format/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDistance/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDistance/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDistance/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrict/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrict/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrict/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrict/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDistanceWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDuration/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDuration/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDuration/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDuration/package.json create mode 100644 node_modules/date-fns/esm/fp/formatDurationWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatDurationWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatISO/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatISO/index.js create mode 100644 node_modules/date-fns/esm/fp/formatISO/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatISO/package.json create mode 100644 node_modules/date-fns/esm/fp/formatISO9075/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatISO9075/index.js create mode 100644 node_modules/date-fns/esm/fp/formatISO9075/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatISO9075/package.json create mode 100644 node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatISO9075WithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatISODuration/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatISODuration/index.js create mode 100644 node_modules/date-fns/esm/fp/formatISODuration/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatISODuration/package.json create mode 100644 node_modules/date-fns/esm/fp/formatISOWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatISOWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatISOWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatISOWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339/index.js create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339/package.json create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatRFC3339WithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatRFC7231/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatRFC7231/index.js create mode 100644 node_modules/date-fns/esm/fp/formatRFC7231/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatRFC7231/package.json create mode 100644 node_modules/date-fns/esm/fp/formatRelative/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/fp/formatRelative/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatRelative/package.json create mode 100644 node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatRelativeWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/formatWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/formatWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/formatWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/formatWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/fromUnixTime/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/fromUnixTime/index.js create mode 100644 node_modules/date-fns/esm/fp/fromUnixTime/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/fromUnixTime/package.json create mode 100644 node_modules/date-fns/esm/fp/getDate/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDate/index.js create mode 100644 node_modules/date-fns/esm/fp/getDate/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDate/package.json create mode 100644 node_modules/date-fns/esm/fp/getDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDay/index.js create mode 100644 node_modules/date-fns/esm/fp/getDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDay/package.json create mode 100644 node_modules/date-fns/esm/fp/getDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/getDaysInMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDaysInMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/getDaysInMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDaysInMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/getDaysInYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDaysInYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getDaysInYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDaysInYear/package.json create mode 100644 node_modules/date-fns/esm/fp/getDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getDecade/index.js create mode 100644 node_modules/date-fns/esm/fp/getDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getDecade/package.json create mode 100644 node_modules/date-fns/esm/fp/getHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getHours/index.js create mode 100644 node_modules/date-fns/esm/fp/getHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getHours/package.json create mode 100644 node_modules/date-fns/esm/fp/getISODay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getISODay/index.js create mode 100644 node_modules/date-fns/esm/fp/getISODay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getISODay/package.json create mode 100644 node_modules/date-fns/esm/fp/getISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/getISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/getISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/getISOWeeksInYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getISOWeeksInYear/package.json create mode 100644 node_modules/date-fns/esm/fp/getMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/getMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/getMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/getMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/getMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/getMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js create mode 100644 node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/package.json create mode 100644 node_modules/date-fns/esm/fp/getQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/getQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/getSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/getSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/getTime/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getTime/index.js create mode 100644 node_modules/date-fns/esm/fp/getTime/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getTime/package.json create mode 100644 node_modules/date-fns/esm/fp/getUnixTime/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getUnixTime/index.js create mode 100644 node_modules/date-fns/esm/fp/getUnixTime/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getUnixTime/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/getYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/getYear/index.js create mode 100644 node_modules/date-fns/esm/fp/getYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/getYear/package.json create mode 100644 node_modules/date-fns/esm/fp/hoursToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/hoursToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/hoursToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/hoursToMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/hoursToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/hoursToMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/hoursToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/hoursToSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/hoursToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/hoursToSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/index.js create mode 100644 node_modules/date-fns/esm/fp/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/intervalToDuration/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/intervalToDuration/index.js create mode 100644 node_modules/date-fns/esm/fp/intervalToDuration/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/intervalToDuration/package.json create mode 100644 node_modules/date-fns/esm/fp/intlFormat/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/intlFormat/index.js create mode 100644 node_modules/date-fns/esm/fp/intlFormat/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/intlFormat/package.json create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistance/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistance/index.js create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistance/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistance/package.json create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/isAfter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isAfter/index.js create mode 100644 node_modules/date-fns/esm/fp/isAfter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isAfter/package.json create mode 100644 node_modules/date-fns/esm/fp/isBefore/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isBefore/index.js create mode 100644 node_modules/date-fns/esm/fp/isBefore/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isBefore/package.json create mode 100644 node_modules/date-fns/esm/fp/isDate/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isDate/index.js create mode 100644 node_modules/date-fns/esm/fp/isDate/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isDate/package.json create mode 100644 node_modules/date-fns/esm/fp/isEqual/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isEqual/index.js create mode 100644 node_modules/date-fns/esm/fp/isEqual/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isEqual/package.json create mode 100644 node_modules/date-fns/esm/fp/isExists/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isExists/index.js create mode 100644 node_modules/date-fns/esm/fp/isExists/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isExists/package.json create mode 100644 node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isFirstDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/isFriday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isFriday/index.js create mode 100644 node_modules/date-fns/esm/fp/isFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isFriday/package.json create mode 100644 node_modules/date-fns/esm/fp/isLastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isLastDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/isLeapYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isLeapYear/index.js create mode 100644 node_modules/date-fns/esm/fp/isLeapYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isLeapYear/package.json create mode 100644 node_modules/date-fns/esm/fp/isMatch/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isMatch/index.js create mode 100644 node_modules/date-fns/esm/fp/isMatch/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isMatch/package.json create mode 100644 node_modules/date-fns/esm/fp/isMatchWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isMatchWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/isMatchWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isMatchWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/isMonday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isMonday/index.js create mode 100644 node_modules/date-fns/esm/fp/isMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isMonday/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameDay/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameDay/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameHour/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameHour/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameHour/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameHour/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameMinute/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameMinute/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameSecond/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameSecond/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/isSameYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSameYear/index.js create mode 100644 node_modules/date-fns/esm/fp/isSameYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSameYear/package.json create mode 100644 node_modules/date-fns/esm/fp/isSaturday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSaturday/index.js create mode 100644 node_modules/date-fns/esm/fp/isSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSaturday/package.json create mode 100644 node_modules/date-fns/esm/fp/isSunday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isSunday/index.js create mode 100644 node_modules/date-fns/esm/fp/isSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isSunday/package.json create mode 100644 node_modules/date-fns/esm/fp/isThursday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isThursday/index.js create mode 100644 node_modules/date-fns/esm/fp/isThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isThursday/package.json create mode 100644 node_modules/date-fns/esm/fp/isTuesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isTuesday/index.js create mode 100644 node_modules/date-fns/esm/fp/isTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isTuesday/package.json create mode 100644 node_modules/date-fns/esm/fp/isValid/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isValid/index.js create mode 100644 node_modules/date-fns/esm/fp/isValid/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isValid/package.json create mode 100644 node_modules/date-fns/esm/fp/isWednesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isWednesday/index.js create mode 100644 node_modules/date-fns/esm/fp/isWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isWednesday/package.json create mode 100644 node_modules/date-fns/esm/fp/isWeekend/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isWeekend/index.js create mode 100644 node_modules/date-fns/esm/fp/isWeekend/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isWeekend/package.json create mode 100644 node_modules/date-fns/esm/fp/isWithinInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/isWithinInterval/index.js create mode 100644 node_modules/date-fns/esm/fp/isWithinInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/isWithinInterval/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfDecade/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfDecade/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/lastDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lastDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/lastDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lastDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/lightFormat/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/lightFormat/index.js create mode 100644 node_modules/date-fns/esm/fp/lightFormat/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/lightFormat/package.json create mode 100644 node_modules/date-fns/esm/fp/max/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/max/index.js create mode 100644 node_modules/date-fns/esm/fp/max/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/max/package.json create mode 100644 node_modules/date-fns/esm/fp/milliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/milliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/milliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/milliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/millisecondsToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/millisecondsToHours/index.js create mode 100644 node_modules/date-fns/esm/fp/millisecondsToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/millisecondsToHours/package.json create mode 100644 node_modules/date-fns/esm/fp/millisecondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/millisecondsToMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/millisecondsToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/millisecondsToSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/min/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/min/index.js create mode 100644 node_modules/date-fns/esm/fp/min/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/min/package.json create mode 100644 node_modules/date-fns/esm/fp/minutesToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/minutesToHours/index.js create mode 100644 node_modules/date-fns/esm/fp/minutesToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/minutesToHours/package.json create mode 100644 node_modules/date-fns/esm/fp/minutesToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/minutesToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/minutesToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/minutesToSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/minutesToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/minutesToSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/monthsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/monthsToQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/monthsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/monthsToQuarters/package.json create mode 100644 node_modules/date-fns/esm/fp/monthsToYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/monthsToYears/index.js create mode 100644 node_modules/date-fns/esm/fp/monthsToYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/monthsToYears/package.json create mode 100644 node_modules/date-fns/esm/fp/nextDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextDay/index.js create mode 100644 node_modules/date-fns/esm/fp/nextDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextDay/package.json create mode 100644 node_modules/date-fns/esm/fp/nextFriday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextFriday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextFriday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextMonday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextMonday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextMonday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextSaturday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextSaturday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextSaturday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextSunday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextSunday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextSunday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextThursday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextThursday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextThursday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextTuesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextTuesday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextTuesday/package.json create mode 100644 node_modules/date-fns/esm/fp/nextWednesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/nextWednesday/index.js create mode 100644 node_modules/date-fns/esm/fp/nextWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/nextWednesday/package.json create mode 100644 node_modules/date-fns/esm/fp/package.json create mode 100644 node_modules/date-fns/esm/fp/parse/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/parse/index.js create mode 100644 node_modules/date-fns/esm/fp/parse/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/parse/package.json create mode 100644 node_modules/date-fns/esm/fp/parseISO/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/parseISO/index.js create mode 100644 node_modules/date-fns/esm/fp/parseISO/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/parseISO/package.json create mode 100644 node_modules/date-fns/esm/fp/parseISOWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/parseISOWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/parseISOWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/parseISOWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/parseJSON/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/parseJSON/index.js create mode 100644 node_modules/date-fns/esm/fp/parseJSON/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/parseJSON/package.json create mode 100644 node_modules/date-fns/esm/fp/parseWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/parseWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/parseWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/parseWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/previousDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousDay/index.js create mode 100644 node_modules/date-fns/esm/fp/previousDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousDay/package.json create mode 100644 node_modules/date-fns/esm/fp/previousFriday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousFriday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousFriday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousMonday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousMonday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousMonday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousSaturday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousSaturday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousSaturday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousSunday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousSunday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousSunday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousThursday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousThursday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousThursday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousTuesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousTuesday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousTuesday/package.json create mode 100644 node_modules/date-fns/esm/fp/previousWednesday/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/previousWednesday/index.js create mode 100644 node_modules/date-fns/esm/fp/previousWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/previousWednesday/package.json create mode 100644 node_modules/date-fns/esm/fp/quartersToMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/quartersToMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/quartersToMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/quartersToMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/quartersToYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/quartersToYears/index.js create mode 100644 node_modules/date-fns/esm/fp/quartersToYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/quartersToYears/package.json create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/secondsToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/secondsToHours/index.js create mode 100644 node_modules/date-fns/esm/fp/secondsToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/secondsToHours/package.json create mode 100644 node_modules/date-fns/esm/fp/secondsToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/secondsToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/secondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/secondsToMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/secondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/secondsToMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/set/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/set/index.js create mode 100644 node_modules/date-fns/esm/fp/set/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/set/package.json create mode 100644 node_modules/date-fns/esm/fp/setDate/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setDate/index.js create mode 100644 node_modules/date-fns/esm/fp/setDate/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setDate/package.json create mode 100644 node_modules/date-fns/esm/fp/setDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setDay/index.js create mode 100644 node_modules/date-fns/esm/fp/setDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setDay/package.json create mode 100644 node_modules/date-fns/esm/fp/setDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/setDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/setDayWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setDayWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/setDayWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setDayWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/setHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setHours/index.js create mode 100644 node_modules/date-fns/esm/fp/setHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setHours/package.json create mode 100644 node_modules/date-fns/esm/fp/setISODay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setISODay/index.js create mode 100644 node_modules/date-fns/esm/fp/setISODay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setISODay/package.json create mode 100644 node_modules/date-fns/esm/fp/setISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/setISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/setISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/setISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/setMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/setMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/setMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/setMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/setMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/setMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/setQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/setQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/setSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/setSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/setWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/setWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/setWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/setWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/setWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/setWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/setYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/setYear/index.js create mode 100644 node_modules/date-fns/esm/fp/setYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/setYear/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfDay/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfDay/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfDay/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfDay/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfDecade/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfDecade/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfHour/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfHour/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfHour/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfHour/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfMinute/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfMinute/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfMonth/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfMonth/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfSecond/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfSecond/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfWeek/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfWeek/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYear/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYear/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/esm/fp/startOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/startOfYear/index.js create mode 100644 node_modules/date-fns/esm/fp/startOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/startOfYear/package.json create mode 100644 node_modules/date-fns/esm/fp/sub/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/sub/index.js create mode 100644 node_modules/date-fns/esm/fp/sub/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/sub/package.json create mode 100644 node_modules/date-fns/esm/fp/subBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/fp/subBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/fp/subDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subDays/index.js create mode 100644 node_modules/date-fns/esm/fp/subDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subDays/package.json create mode 100644 node_modules/date-fns/esm/fp/subHours/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subHours/index.js create mode 100644 node_modules/date-fns/esm/fp/subHours/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subHours/package.json create mode 100644 node_modules/date-fns/esm/fp/subISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/fp/subISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/fp/subMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/fp/subMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/fp/subMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subMinutes/index.js create mode 100644 node_modules/date-fns/esm/fp/subMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subMinutes/package.json create mode 100644 node_modules/date-fns/esm/fp/subMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/subMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/subQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/subQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subQuarters/package.json create mode 100644 node_modules/date-fns/esm/fp/subSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subSeconds/index.js create mode 100644 node_modules/date-fns/esm/fp/subSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subSeconds/package.json create mode 100644 node_modules/date-fns/esm/fp/subWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subWeeks/index.js create mode 100644 node_modules/date-fns/esm/fp/subWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subWeeks/package.json create mode 100644 node_modules/date-fns/esm/fp/subYears/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/subYears/index.js create mode 100644 node_modules/date-fns/esm/fp/subYears/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/subYears/package.json create mode 100644 node_modules/date-fns/esm/fp/toDate/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/toDate/index.js create mode 100644 node_modules/date-fns/esm/fp/toDate/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/toDate/package.json create mode 100644 node_modules/date-fns/esm/fp/weeksToDays/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/weeksToDays/index.js create mode 100644 node_modules/date-fns/esm/fp/weeksToDays/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/weeksToDays/package.json create mode 100644 node_modules/date-fns/esm/fp/yearsToMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/yearsToMonths/index.js create mode 100644 node_modules/date-fns/esm/fp/yearsToMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/yearsToMonths/package.json create mode 100644 node_modules/date-fns/esm/fp/yearsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/fp/yearsToQuarters/index.js create mode 100644 node_modules/date-fns/esm/fp/yearsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/fp/yearsToQuarters/package.json create mode 100644 node_modules/date-fns/esm/fromUnixTime/index.d.ts create mode 100644 node_modules/date-fns/esm/fromUnixTime/index.js create mode 100644 node_modules/date-fns/esm/fromUnixTime/index.js.flow create mode 100644 node_modules/date-fns/esm/fromUnixTime/package.json create mode 100644 node_modules/date-fns/esm/getDate/index.d.ts create mode 100644 node_modules/date-fns/esm/getDate/index.js create mode 100644 node_modules/date-fns/esm/getDate/index.js.flow create mode 100644 node_modules/date-fns/esm/getDate/package.json create mode 100644 node_modules/date-fns/esm/getDay/index.d.ts create mode 100644 node_modules/date-fns/esm/getDay/index.js create mode 100644 node_modules/date-fns/esm/getDay/index.js.flow create mode 100644 node_modules/date-fns/esm/getDay/package.json create mode 100644 node_modules/date-fns/esm/getDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/getDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/getDaysInMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/getDaysInMonth/index.js create mode 100644 node_modules/date-fns/esm/getDaysInMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/getDaysInMonth/package.json create mode 100644 node_modules/date-fns/esm/getDaysInYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getDaysInYear/index.js create mode 100644 node_modules/date-fns/esm/getDaysInYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getDaysInYear/package.json create mode 100644 node_modules/date-fns/esm/getDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/getDecade/index.js create mode 100644 node_modules/date-fns/esm/getDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/getDecade/package.json create mode 100644 node_modules/date-fns/esm/getDefaultOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/getDefaultOptions/index.js create mode 100644 node_modules/date-fns/esm/getDefaultOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/getDefaultOptions/package.json create mode 100644 node_modules/date-fns/esm/getHours/index.d.ts create mode 100644 node_modules/date-fns/esm/getHours/index.js create mode 100644 node_modules/date-fns/esm/getHours/index.js.flow create mode 100644 node_modules/date-fns/esm/getHours/package.json create mode 100644 node_modules/date-fns/esm/getISODay/index.d.ts create mode 100644 node_modules/date-fns/esm/getISODay/index.js create mode 100644 node_modules/date-fns/esm/getISODay/index.js.flow create mode 100644 node_modules/date-fns/esm/getISODay/package.json create mode 100644 node_modules/date-fns/esm/getISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/getISOWeek/index.js create mode 100644 node_modules/date-fns/esm/getISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/getISOWeek/package.json create mode 100644 node_modules/date-fns/esm/getISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/getISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/getISOWeeksInYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getISOWeeksInYear/index.js create mode 100644 node_modules/date-fns/esm/getISOWeeksInYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getISOWeeksInYear/package.json create mode 100644 node_modules/date-fns/esm/getMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/getMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/getMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/getMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/getMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/getMinutes/index.js create mode 100644 node_modules/date-fns/esm/getMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/getMinutes/package.json create mode 100644 node_modules/date-fns/esm/getMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/getMonth/index.js create mode 100644 node_modules/date-fns/esm/getMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/getMonth/package.json create mode 100644 node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.d.ts create mode 100644 node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js create mode 100644 node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js.flow create mode 100644 node_modules/date-fns/esm/getOverlappingDaysInIntervals/package.json create mode 100644 node_modules/date-fns/esm/getQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/getQuarter/index.js create mode 100644 node_modules/date-fns/esm/getQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/getQuarter/package.json create mode 100644 node_modules/date-fns/esm/getSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/getSeconds/index.js create mode 100644 node_modules/date-fns/esm/getSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/getSeconds/package.json create mode 100644 node_modules/date-fns/esm/getTime/index.d.ts create mode 100644 node_modules/date-fns/esm/getTime/index.js create mode 100644 node_modules/date-fns/esm/getTime/index.js.flow create mode 100644 node_modules/date-fns/esm/getTime/package.json create mode 100644 node_modules/date-fns/esm/getUnixTime/index.d.ts create mode 100644 node_modules/date-fns/esm/getUnixTime/index.js create mode 100644 node_modules/date-fns/esm/getUnixTime/index.js.flow create mode 100644 node_modules/date-fns/esm/getUnixTime/package.json create mode 100644 node_modules/date-fns/esm/getWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/getWeek/index.js create mode 100644 node_modules/date-fns/esm/getWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/getWeek/package.json create mode 100644 node_modules/date-fns/esm/getWeekOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/getWeekOfMonth/index.js create mode 100644 node_modules/date-fns/esm/getWeekOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/getWeekOfMonth/package.json create mode 100644 node_modules/date-fns/esm/getWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getWeekYear/index.js create mode 100644 node_modules/date-fns/esm/getWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getWeekYear/package.json create mode 100644 node_modules/date-fns/esm/getWeeksInMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/getWeeksInMonth/index.js create mode 100644 node_modules/date-fns/esm/getWeeksInMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/getWeeksInMonth/package.json create mode 100644 node_modules/date-fns/esm/getYear/index.d.ts create mode 100644 node_modules/date-fns/esm/getYear/index.js create mode 100644 node_modules/date-fns/esm/getYear/index.js.flow create mode 100644 node_modules/date-fns/esm/getYear/package.json create mode 100644 node_modules/date-fns/esm/hoursToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/hoursToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/hoursToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/hoursToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/hoursToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/hoursToMinutes/index.js create mode 100644 node_modules/date-fns/esm/hoursToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/hoursToMinutes/package.json create mode 100644 node_modules/date-fns/esm/hoursToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/hoursToSeconds/index.js create mode 100644 node_modules/date-fns/esm/hoursToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/hoursToSeconds/package.json create mode 100755 node_modules/date-fns/esm/index.js create mode 100644 node_modules/date-fns/esm/index.js.flow create mode 100644 node_modules/date-fns/esm/intervalToDuration/index.d.ts create mode 100644 node_modules/date-fns/esm/intervalToDuration/index.js create mode 100644 node_modules/date-fns/esm/intervalToDuration/index.js.flow create mode 100644 node_modules/date-fns/esm/intervalToDuration/package.json create mode 100644 node_modules/date-fns/esm/intlFormat/index.d.ts create mode 100644 node_modules/date-fns/esm/intlFormat/index.js create mode 100644 node_modules/date-fns/esm/intlFormat/index.js.flow create mode 100644 node_modules/date-fns/esm/intlFormat/package.json create mode 100644 node_modules/date-fns/esm/intlFormatDistance/index.d.ts create mode 100644 node_modules/date-fns/esm/intlFormatDistance/index.js create mode 100644 node_modules/date-fns/esm/intlFormatDistance/index.js.flow create mode 100644 node_modules/date-fns/esm/intlFormatDistance/package.json create mode 100644 node_modules/date-fns/esm/isAfter/index.d.ts create mode 100644 node_modules/date-fns/esm/isAfter/index.js create mode 100644 node_modules/date-fns/esm/isAfter/index.js.flow create mode 100644 node_modules/date-fns/esm/isAfter/package.json create mode 100644 node_modules/date-fns/esm/isBefore/index.d.ts create mode 100644 node_modules/date-fns/esm/isBefore/index.js create mode 100644 node_modules/date-fns/esm/isBefore/index.js.flow create mode 100644 node_modules/date-fns/esm/isBefore/package.json create mode 100644 node_modules/date-fns/esm/isDate/index.d.ts create mode 100644 node_modules/date-fns/esm/isDate/index.js create mode 100644 node_modules/date-fns/esm/isDate/index.js.flow create mode 100644 node_modules/date-fns/esm/isDate/package.json create mode 100644 node_modules/date-fns/esm/isEqual/index.d.ts create mode 100644 node_modules/date-fns/esm/isEqual/index.js create mode 100644 node_modules/date-fns/esm/isEqual/index.js.flow create mode 100644 node_modules/date-fns/esm/isEqual/package.json create mode 100644 node_modules/date-fns/esm/isExists/index.d.ts create mode 100644 node_modules/date-fns/esm/isExists/index.js create mode 100644 node_modules/date-fns/esm/isExists/index.js.flow create mode 100644 node_modules/date-fns/esm/isExists/package.json create mode 100644 node_modules/date-fns/esm/isFirstDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/isFirstDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/isFirstDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/isFirstDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/isFriday/index.d.ts create mode 100644 node_modules/date-fns/esm/isFriday/index.js create mode 100644 node_modules/date-fns/esm/isFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/isFriday/package.json create mode 100644 node_modules/date-fns/esm/isFuture/index.d.ts create mode 100644 node_modules/date-fns/esm/isFuture/index.js create mode 100644 node_modules/date-fns/esm/isFuture/index.js.flow create mode 100644 node_modules/date-fns/esm/isFuture/package.json create mode 100644 node_modules/date-fns/esm/isLastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/isLastDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/isLastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/isLastDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/isLeapYear/index.d.ts create mode 100644 node_modules/date-fns/esm/isLeapYear/index.js create mode 100644 node_modules/date-fns/esm/isLeapYear/index.js.flow create mode 100644 node_modules/date-fns/esm/isLeapYear/package.json create mode 100644 node_modules/date-fns/esm/isMatch/index.d.ts create mode 100644 node_modules/date-fns/esm/isMatch/index.js create mode 100644 node_modules/date-fns/esm/isMatch/index.js.flow create mode 100644 node_modules/date-fns/esm/isMatch/package.json create mode 100644 node_modules/date-fns/esm/isMonday/index.d.ts create mode 100644 node_modules/date-fns/esm/isMonday/index.js create mode 100644 node_modules/date-fns/esm/isMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/isMonday/package.json create mode 100644 node_modules/date-fns/esm/isPast/index.d.ts create mode 100644 node_modules/date-fns/esm/isPast/index.js create mode 100644 node_modules/date-fns/esm/isPast/index.js.flow create mode 100644 node_modules/date-fns/esm/isPast/package.json create mode 100644 node_modules/date-fns/esm/isSameDay/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameDay/index.js create mode 100644 node_modules/date-fns/esm/isSameDay/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameDay/package.json create mode 100644 node_modules/date-fns/esm/isSameHour/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameHour/index.js create mode 100644 node_modules/date-fns/esm/isSameHour/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameHour/package.json create mode 100644 node_modules/date-fns/esm/isSameISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameISOWeek/index.js create mode 100644 node_modules/date-fns/esm/isSameISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameISOWeek/package.json create mode 100644 node_modules/date-fns/esm/isSameISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/isSameISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/isSameMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameMinute/index.js create mode 100644 node_modules/date-fns/esm/isSameMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameMinute/package.json create mode 100644 node_modules/date-fns/esm/isSameMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameMonth/index.js create mode 100644 node_modules/date-fns/esm/isSameMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameMonth/package.json create mode 100644 node_modules/date-fns/esm/isSameQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameQuarter/index.js create mode 100644 node_modules/date-fns/esm/isSameQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameQuarter/package.json create mode 100644 node_modules/date-fns/esm/isSameSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameSecond/index.js create mode 100644 node_modules/date-fns/esm/isSameSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameSecond/package.json create mode 100644 node_modules/date-fns/esm/isSameWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameWeek/index.js create mode 100644 node_modules/date-fns/esm/isSameWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameWeek/package.json create mode 100644 node_modules/date-fns/esm/isSameYear/index.d.ts create mode 100644 node_modules/date-fns/esm/isSameYear/index.js create mode 100644 node_modules/date-fns/esm/isSameYear/index.js.flow create mode 100644 node_modules/date-fns/esm/isSameYear/package.json create mode 100644 node_modules/date-fns/esm/isSaturday/index.d.ts create mode 100644 node_modules/date-fns/esm/isSaturday/index.js create mode 100644 node_modules/date-fns/esm/isSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/isSaturday/package.json create mode 100644 node_modules/date-fns/esm/isSunday/index.d.ts create mode 100644 node_modules/date-fns/esm/isSunday/index.js create mode 100644 node_modules/date-fns/esm/isSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/isSunday/package.json create mode 100644 node_modules/date-fns/esm/isThisHour/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisHour/index.js create mode 100644 node_modules/date-fns/esm/isThisHour/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisHour/package.json create mode 100644 node_modules/date-fns/esm/isThisISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisISOWeek/index.js create mode 100644 node_modules/date-fns/esm/isThisISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisISOWeek/package.json create mode 100644 node_modules/date-fns/esm/isThisMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisMinute/index.js create mode 100644 node_modules/date-fns/esm/isThisMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisMinute/package.json create mode 100644 node_modules/date-fns/esm/isThisMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisMonth/index.js create mode 100644 node_modules/date-fns/esm/isThisMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisMonth/package.json create mode 100644 node_modules/date-fns/esm/isThisQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisQuarter/index.js create mode 100644 node_modules/date-fns/esm/isThisQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisQuarter/package.json create mode 100644 node_modules/date-fns/esm/isThisSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisSecond/index.js create mode 100644 node_modules/date-fns/esm/isThisSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisSecond/package.json create mode 100644 node_modules/date-fns/esm/isThisWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisWeek/index.js create mode 100644 node_modules/date-fns/esm/isThisWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisWeek/package.json create mode 100644 node_modules/date-fns/esm/isThisYear/index.d.ts create mode 100644 node_modules/date-fns/esm/isThisYear/index.js create mode 100644 node_modules/date-fns/esm/isThisYear/index.js.flow create mode 100644 node_modules/date-fns/esm/isThisYear/package.json create mode 100644 node_modules/date-fns/esm/isThursday/index.d.ts create mode 100644 node_modules/date-fns/esm/isThursday/index.js create mode 100644 node_modules/date-fns/esm/isThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/isThursday/package.json create mode 100644 node_modules/date-fns/esm/isToday/index.d.ts create mode 100644 node_modules/date-fns/esm/isToday/index.js create mode 100644 node_modules/date-fns/esm/isToday/index.js.flow create mode 100644 node_modules/date-fns/esm/isToday/package.json create mode 100644 node_modules/date-fns/esm/isTomorrow/index.d.ts create mode 100644 node_modules/date-fns/esm/isTomorrow/index.js create mode 100644 node_modules/date-fns/esm/isTomorrow/index.js.flow create mode 100644 node_modules/date-fns/esm/isTomorrow/package.json create mode 100644 node_modules/date-fns/esm/isTuesday/index.d.ts create mode 100644 node_modules/date-fns/esm/isTuesday/index.js create mode 100644 node_modules/date-fns/esm/isTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/isTuesday/package.json create mode 100644 node_modules/date-fns/esm/isValid/index.d.ts create mode 100644 node_modules/date-fns/esm/isValid/index.js create mode 100644 node_modules/date-fns/esm/isValid/index.js.flow create mode 100644 node_modules/date-fns/esm/isValid/package.json create mode 100644 node_modules/date-fns/esm/isWednesday/index.d.ts create mode 100644 node_modules/date-fns/esm/isWednesday/index.js create mode 100644 node_modules/date-fns/esm/isWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/isWednesday/package.json create mode 100644 node_modules/date-fns/esm/isWeekend/index.d.ts create mode 100644 node_modules/date-fns/esm/isWeekend/index.js create mode 100644 node_modules/date-fns/esm/isWeekend/index.js.flow create mode 100644 node_modules/date-fns/esm/isWeekend/package.json create mode 100644 node_modules/date-fns/esm/isWithinInterval/index.d.ts create mode 100644 node_modules/date-fns/esm/isWithinInterval/index.js create mode 100644 node_modules/date-fns/esm/isWithinInterval/index.js.flow create mode 100644 node_modules/date-fns/esm/isWithinInterval/package.json create mode 100644 node_modules/date-fns/esm/isYesterday/index.d.ts create mode 100644 node_modules/date-fns/esm/isYesterday/index.js create mode 100644 node_modules/date-fns/esm/isYesterday/index.js.flow create mode 100644 node_modules/date-fns/esm/isYesterday/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfDecade/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfDecade/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfMonth/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfMonth/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfWeek/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfWeek/package.json create mode 100644 node_modules/date-fns/esm/lastDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/lastDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/lastDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/lastDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/lightFormat/index.d.ts create mode 100644 node_modules/date-fns/esm/lightFormat/index.js create mode 100644 node_modules/date-fns/esm/lightFormat/index.js.flow create mode 100644 node_modules/date-fns/esm/lightFormat/package.json create mode 100644 node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js create mode 100644 node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js create mode 100644 node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js create mode 100644 node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js create mode 100644 node_modules/date-fns/esm/locale/af/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/af/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/af/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/af/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/af/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/af/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/af/index.js create mode 100644 node_modules/date-fns/esm/locale/af/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/af/package.json create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar-DZ/package.json create mode 100644 node_modules/date-fns/esm/locale/ar-EG/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar-EG/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-EG/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar-EG/package.json create mode 100644 node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar-MA/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-MA/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar-MA/package.json create mode 100644 node_modules/date-fns/esm/locale/ar-SA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar-SA/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-SA/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar-SA/package.json create mode 100644 node_modules/date-fns/esm/locale/ar-TN/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar-TN/index.js create mode 100644 node_modules/date-fns/esm/locale/ar-TN/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar-TN/package.json create mode 100644 node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ar/index.js create mode 100644 node_modules/date-fns/esm/locale/ar/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ar/package.json create mode 100644 node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/az/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/az/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/az/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/az/index.js create mode 100644 node_modules/date-fns/esm/locale/az/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/az/package.json create mode 100644 node_modules/date-fns/esm/locale/be-tarask/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/be-tarask/index.js create mode 100644 node_modules/date-fns/esm/locale/be-tarask/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/be-tarask/package.json create mode 100644 node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/be/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/be/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/be/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/be/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/be/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/be/index.js create mode 100644 node_modules/date-fns/esm/locale/be/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/be/package.json create mode 100644 node_modules/date-fns/esm/locale/bg/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/bg/index.js create mode 100644 node_modules/date-fns/esm/locale/bg/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/bg/package.json create mode 100644 node_modules/date-fns/esm/locale/bn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/bn/index.js create mode 100644 node_modules/date-fns/esm/locale/bn/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/bn/package.json create mode 100644 node_modules/date-fns/esm/locale/bs/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/bs/index.js create mode 100644 node_modules/date-fns/esm/locale/bs/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/bs/package.json create mode 100644 node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ca/index.js create mode 100644 node_modules/date-fns/esm/locale/ca/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ca/package.json create mode 100644 node_modules/date-fns/esm/locale/cs/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/cs/index.js create mode 100644 node_modules/date-fns/esm/locale/cs/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/cs/package.json create mode 100644 node_modules/date-fns/esm/locale/cy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/cy/index.js create mode 100644 node_modules/date-fns/esm/locale/cy/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/cy/package.json create mode 100644 node_modules/date-fns/esm/locale/da/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/da/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/da/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/da/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/da/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/da/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/da/index.js create mode 100644 node_modules/date-fns/esm/locale/da/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/da/package.json create mode 100644 node_modules/date-fns/esm/locale/de-AT/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/de-AT/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/de-AT/index.js create mode 100644 node_modules/date-fns/esm/locale/de-AT/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/de-AT/package.json create mode 100644 node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/de/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/de/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/de/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/de/index.js create mode 100644 node_modules/date-fns/esm/locale/de/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/de/package.json create mode 100644 node_modules/date-fns/esm/locale/el/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/el/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/el/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/el/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/el/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/el/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/el/index.js create mode 100644 node_modules/date-fns/esm/locale/el/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/el/package.json create mode 100644 node_modules/date-fns/esm/locale/en-AU/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-AU/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-AU/index.js create mode 100644 node_modules/date-fns/esm/locale/en-AU/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-AU/package.json create mode 100644 node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/en-CA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-CA/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-CA/index.js create mode 100644 node_modules/date-fns/esm/locale/en-CA/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-CA/package.json create mode 100644 node_modules/date-fns/esm/locale/en-GB/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-GB/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-GB/index.js create mode 100644 node_modules/date-fns/esm/locale/en-GB/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-GB/package.json create mode 100644 node_modules/date-fns/esm/locale/en-IE/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-IE/index.js create mode 100644 node_modules/date-fns/esm/locale/en-IE/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-IE/package.json create mode 100644 node_modules/date-fns/esm/locale/en-IN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-IN/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-IN/index.js create mode 100644 node_modules/date-fns/esm/locale/en-IN/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-IN/package.json create mode 100644 node_modules/date-fns/esm/locale/en-NZ/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-NZ/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-NZ/index.js create mode 100644 node_modules/date-fns/esm/locale/en-NZ/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-NZ/package.json create mode 100644 node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-US/index.js create mode 100644 node_modules/date-fns/esm/locale/en-US/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-US/package.json create mode 100644 node_modules/date-fns/esm/locale/en-ZA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/en-ZA/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/en-ZA/index.js create mode 100644 node_modules/date-fns/esm/locale/en-ZA/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/en-ZA/package.json create mode 100644 node_modules/date-fns/esm/locale/eo/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/eo/index.js create mode 100644 node_modules/date-fns/esm/locale/eo/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/eo/package.json create mode 100644 node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/es/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/es/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/es/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/es/index.js create mode 100644 node_modules/date-fns/esm/locale/es/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/es/package.json create mode 100644 node_modules/date-fns/esm/locale/et/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/et/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/et/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/et/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/et/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/et/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/et/index.js create mode 100644 node_modules/date-fns/esm/locale/et/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/et/package.json create mode 100644 node_modules/date-fns/esm/locale/eu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/eu/index.js create mode 100644 node_modules/date-fns/esm/locale/eu/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/eu/package.json create mode 100644 node_modules/date-fns/esm/locale/fa-IR/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fa-IR/index.js create mode 100644 node_modules/date-fns/esm/locale/fa-IR/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fa-IR/package.json create mode 100644 node_modules/date-fns/esm/locale/fi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fi/index.js create mode 100644 node_modules/date-fns/esm/locale/fi/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fi/package.json create mode 100644 node_modules/date-fns/esm/locale/fr-CA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fr-CA/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fr-CA/index.js create mode 100644 node_modules/date-fns/esm/locale/fr-CA/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fr-CA/package.json create mode 100644 node_modules/date-fns/esm/locale/fr-CH/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fr-CH/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/fr-CH/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fr-CH/index.js create mode 100644 node_modules/date-fns/esm/locale/fr-CH/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fr-CH/package.json create mode 100644 node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fr/index.js create mode 100644 node_modules/date-fns/esm/locale/fr/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fr/package.json create mode 100644 node_modules/date-fns/esm/locale/fy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/fy/index.js create mode 100644 node_modules/date-fns/esm/locale/fy/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/fy/package.json create mode 100644 node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/gd/index.js create mode 100644 node_modules/date-fns/esm/locale/gd/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/gd/package.json create mode 100644 node_modules/date-fns/esm/locale/gl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/gl/index.js create mode 100644 node_modules/date-fns/esm/locale/gl/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/gl/package.json create mode 100644 node_modules/date-fns/esm/locale/gu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/gu/index.js create mode 100644 node_modules/date-fns/esm/locale/gu/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/gu/package.json create mode 100644 node_modules/date-fns/esm/locale/he/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/he/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/he/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/he/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/he/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/he/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/he/index.js create mode 100644 node_modules/date-fns/esm/locale/he/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/he/package.json create mode 100644 node_modules/date-fns/esm/locale/hi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/hi/index.js create mode 100644 node_modules/date-fns/esm/locale/hi/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/hi/package.json create mode 100644 node_modules/date-fns/esm/locale/hr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/hr/index.js create mode 100644 node_modules/date-fns/esm/locale/hr/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/hr/package.json create mode 100644 node_modules/date-fns/esm/locale/ht/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ht/index.js create mode 100644 node_modules/date-fns/esm/locale/ht/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ht/package.json create mode 100644 node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/hu/index.js create mode 100644 node_modules/date-fns/esm/locale/hu/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/hu/package.json create mode 100644 node_modules/date-fns/esm/locale/hy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/hy/index.js create mode 100644 node_modules/date-fns/esm/locale/hy/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/hy/package.json create mode 100644 node_modules/date-fns/esm/locale/id/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/id/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/id/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/id/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/id/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/id/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/id/index.js create mode 100644 node_modules/date-fns/esm/locale/id/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/id/package.json create mode 100644 node_modules/date-fns/esm/locale/index.js create mode 100644 node_modules/date-fns/esm/locale/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/is/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/is/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/is/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/is/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/is/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/is/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/is/index.js create mode 100644 node_modules/date-fns/esm/locale/is/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/is/package.json create mode 100644 node_modules/date-fns/esm/locale/it-CH/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/it-CH/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/it-CH/index.js create mode 100644 node_modules/date-fns/esm/locale/it-CH/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/it-CH/package.json create mode 100644 node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/it/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/it/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/it/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/it/index.js create mode 100644 node_modules/date-fns/esm/locale/it/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/it/package.json create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/index.js create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ja-Hira/package.json create mode 100644 node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ja/index.js create mode 100644 node_modules/date-fns/esm/locale/ja/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ja/package.json create mode 100644 node_modules/date-fns/esm/locale/ka/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ka/index.js create mode 100644 node_modules/date-fns/esm/locale/ka/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ka/package.json create mode 100644 node_modules/date-fns/esm/locale/kk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/kk/index.js create mode 100644 node_modules/date-fns/esm/locale/kk/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/kk/package.json create mode 100644 node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/km/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/km/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/km/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/km/index.js create mode 100644 node_modules/date-fns/esm/locale/km/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/km/package.json create mode 100644 node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/kn/index.js create mode 100644 node_modules/date-fns/esm/locale/kn/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/kn/package.json create mode 100644 node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ko/index.js create mode 100644 node_modules/date-fns/esm/locale/ko/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ko/package.json create mode 100644 node_modules/date-fns/esm/locale/lb/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/lb/index.js create mode 100644 node_modules/date-fns/esm/locale/lb/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/lb/package.json create mode 100644 node_modules/date-fns/esm/locale/lt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/lt/index.js create mode 100644 node_modules/date-fns/esm/locale/lt/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/lt/package.json create mode 100644 node_modules/date-fns/esm/locale/lv/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/lv/index.js create mode 100644 node_modules/date-fns/esm/locale/lv/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/lv/package.json create mode 100644 node_modules/date-fns/esm/locale/mk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/mk/index.js create mode 100644 node_modules/date-fns/esm/locale/mk/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/mk/package.json create mode 100644 node_modules/date-fns/esm/locale/mn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/mn/index.js create mode 100644 node_modules/date-fns/esm/locale/mn/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/mn/package.json create mode 100644 node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ms/index.js create mode 100644 node_modules/date-fns/esm/locale/ms/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ms/package.json create mode 100644 node_modules/date-fns/esm/locale/mt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/mt/index.js create mode 100644 node_modules/date-fns/esm/locale/mt/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/mt/package.json create mode 100644 node_modules/date-fns/esm/locale/nb/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/nb/index.js create mode 100644 node_modules/date-fns/esm/locale/nb/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/nb/package.json create mode 100644 node_modules/date-fns/esm/locale/nl-BE/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/nl-BE/index.js create mode 100644 node_modules/date-fns/esm/locale/nl-BE/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/nl-BE/package.json create mode 100644 node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/nl/index.js create mode 100644 node_modules/date-fns/esm/locale/nl/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/nl/package.json create mode 100644 node_modules/date-fns/esm/locale/nn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/nn/index.js create mode 100644 node_modules/date-fns/esm/locale/nn/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/nn/package.json create mode 100644 node_modules/date-fns/esm/locale/oc/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/oc/index.js create mode 100644 node_modules/date-fns/esm/locale/oc/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/oc/package.json create mode 100644 node_modules/date-fns/esm/locale/package.json create mode 100644 node_modules/date-fns/esm/locale/pl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/pl/index.js create mode 100644 node_modules/date-fns/esm/locale/pl/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/pl/package.json create mode 100644 node_modules/date-fns/esm/locale/pt-BR/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/pt-BR/index.js create mode 100644 node_modules/date-fns/esm/locale/pt-BR/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/pt-BR/package.json create mode 100644 node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/pt/index.js create mode 100644 node_modules/date-fns/esm/locale/pt/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/pt/package.json create mode 100644 node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ro/index.js create mode 100644 node_modules/date-fns/esm/locale/ro/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ro/package.json create mode 100644 node_modules/date-fns/esm/locale/ru/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ru/index.js create mode 100644 node_modules/date-fns/esm/locale/ru/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ru/package.json create mode 100644 node_modules/date-fns/esm/locale/sk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sk/index.js create mode 100644 node_modules/date-fns/esm/locale/sk/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sk/package.json create mode 100644 node_modules/date-fns/esm/locale/sl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sl/index.js create mode 100644 node_modules/date-fns/esm/locale/sl/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sl/package.json create mode 100644 node_modules/date-fns/esm/locale/sq/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sq/index.js create mode 100644 node_modules/date-fns/esm/locale/sq/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sq/package.json create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/index.js create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sr-Latn/package.json create mode 100644 node_modules/date-fns/esm/locale/sr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sr/index.js create mode 100644 node_modules/date-fns/esm/locale/sr/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sr/package.json create mode 100644 node_modules/date-fns/esm/locale/sv/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/sv/index.js create mode 100644 node_modules/date-fns/esm/locale/sv/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/sv/package.json create mode 100644 node_modules/date-fns/esm/locale/ta/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ta/index.js create mode 100644 node_modules/date-fns/esm/locale/ta/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ta/package.json create mode 100644 node_modules/date-fns/esm/locale/te/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/te/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/te/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/te/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/te/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/te/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/te/index.js create mode 100644 node_modules/date-fns/esm/locale/te/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/te/package.json create mode 100644 node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/th/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/th/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/th/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/th/index.js create mode 100644 node_modules/date-fns/esm/locale/th/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/th/package.json create mode 100644 node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/tr/index.js create mode 100644 node_modules/date-fns/esm/locale/tr/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/tr/package.json create mode 100644 node_modules/date-fns/esm/locale/types.js create mode 100644 node_modules/date-fns/esm/locale/ug/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/ug/index.js create mode 100644 node_modules/date-fns/esm/locale/ug/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/ug/package.json create mode 100644 node_modules/date-fns/esm/locale/uk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/uk/index.js create mode 100644 node_modules/date-fns/esm/locale/uk/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/uk/package.json create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/index.js create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/uz-Cyrl/package.json create mode 100644 node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/uz/index.js create mode 100644 node_modules/date-fns/esm/locale/uz/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/uz/package.json create mode 100644 node_modules/date-fns/esm/locale/vi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/vi/index.js create mode 100644 node_modules/date-fns/esm/locale/vi/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/vi/package.json create mode 100644 node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/zh-CN/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-CN/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/zh-CN/package.json create mode 100644 node_modules/date-fns/esm/locale/zh-HK/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/zh-HK/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-HK/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/zh-HK/package.json create mode 100644 node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/_lib/localize/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/_lib/match/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/index.d.ts create mode 100644 node_modules/date-fns/esm/locale/zh-TW/index.js create mode 100644 node_modules/date-fns/esm/locale/zh-TW/index.js.flow create mode 100644 node_modules/date-fns/esm/locale/zh-TW/package.json create mode 100644 node_modules/date-fns/esm/max/index.d.ts create mode 100644 node_modules/date-fns/esm/max/index.js create mode 100644 node_modules/date-fns/esm/max/index.js.flow create mode 100644 node_modules/date-fns/esm/max/package.json create mode 100644 node_modules/date-fns/esm/milliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/milliseconds/index.js create mode 100644 node_modules/date-fns/esm/milliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/milliseconds/package.json create mode 100644 node_modules/date-fns/esm/millisecondsToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/millisecondsToHours/index.js create mode 100644 node_modules/date-fns/esm/millisecondsToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/millisecondsToHours/package.json create mode 100644 node_modules/date-fns/esm/millisecondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/millisecondsToMinutes/index.js create mode 100644 node_modules/date-fns/esm/millisecondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/millisecondsToMinutes/package.json create mode 100644 node_modules/date-fns/esm/millisecondsToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/millisecondsToSeconds/index.js create mode 100644 node_modules/date-fns/esm/millisecondsToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/millisecondsToSeconds/package.json create mode 100644 node_modules/date-fns/esm/min/index.d.ts create mode 100644 node_modules/date-fns/esm/min/index.js create mode 100644 node_modules/date-fns/esm/min/index.js.flow create mode 100644 node_modules/date-fns/esm/min/package.json create mode 100644 node_modules/date-fns/esm/minutesToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/minutesToHours/index.js create mode 100644 node_modules/date-fns/esm/minutesToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/minutesToHours/package.json create mode 100644 node_modules/date-fns/esm/minutesToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/minutesToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/minutesToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/minutesToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/minutesToSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/minutesToSeconds/index.js create mode 100644 node_modules/date-fns/esm/minutesToSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/minutesToSeconds/package.json create mode 100644 node_modules/date-fns/esm/monthsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/monthsToQuarters/index.js create mode 100644 node_modules/date-fns/esm/monthsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/monthsToQuarters/package.json create mode 100644 node_modules/date-fns/esm/monthsToYears/index.d.ts create mode 100644 node_modules/date-fns/esm/monthsToYears/index.js create mode 100644 node_modules/date-fns/esm/monthsToYears/index.js.flow create mode 100644 node_modules/date-fns/esm/monthsToYears/package.json create mode 100644 node_modules/date-fns/esm/nextDay/index.d.ts create mode 100644 node_modules/date-fns/esm/nextDay/index.js create mode 100644 node_modules/date-fns/esm/nextDay/index.js.flow create mode 100644 node_modules/date-fns/esm/nextDay/package.json create mode 100644 node_modules/date-fns/esm/nextFriday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextFriday/index.js create mode 100644 node_modules/date-fns/esm/nextFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextFriday/package.json create mode 100644 node_modules/date-fns/esm/nextMonday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextMonday/index.js create mode 100644 node_modules/date-fns/esm/nextMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextMonday/package.json create mode 100644 node_modules/date-fns/esm/nextSaturday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextSaturday/index.js create mode 100644 node_modules/date-fns/esm/nextSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextSaturday/package.json create mode 100644 node_modules/date-fns/esm/nextSunday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextSunday/index.js create mode 100644 node_modules/date-fns/esm/nextSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextSunday/package.json create mode 100644 node_modules/date-fns/esm/nextThursday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextThursday/index.js create mode 100644 node_modules/date-fns/esm/nextThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextThursday/package.json create mode 100644 node_modules/date-fns/esm/nextTuesday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextTuesday/index.js create mode 100644 node_modules/date-fns/esm/nextTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextTuesday/package.json create mode 100644 node_modules/date-fns/esm/nextWednesday/index.d.ts create mode 100644 node_modules/date-fns/esm/nextWednesday/index.js create mode 100644 node_modules/date-fns/esm/nextWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/nextWednesday/package.json create mode 100644 node_modules/date-fns/esm/parse/_lib/Parser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/Setter.js create mode 100644 node_modules/date-fns/esm/parse/_lib/constants.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js create mode 100644 node_modules/date-fns/esm/parse/_lib/parsers/index.js create mode 100644 node_modules/date-fns/esm/parse/_lib/types.js create mode 100644 node_modules/date-fns/esm/parse/_lib/utils.js create mode 100644 node_modules/date-fns/esm/parse/index.d.ts create mode 100644 node_modules/date-fns/esm/parse/index.js create mode 100644 node_modules/date-fns/esm/parse/index.js.flow create mode 100644 node_modules/date-fns/esm/parse/package.json create mode 100644 node_modules/date-fns/esm/parseISO/index.d.ts create mode 100644 node_modules/date-fns/esm/parseISO/index.js create mode 100644 node_modules/date-fns/esm/parseISO/index.js.flow create mode 100644 node_modules/date-fns/esm/parseISO/package.json create mode 100644 node_modules/date-fns/esm/parseJSON/index.d.ts create mode 100644 node_modules/date-fns/esm/parseJSON/index.js create mode 100644 node_modules/date-fns/esm/parseJSON/index.js.flow create mode 100644 node_modules/date-fns/esm/parseJSON/package.json create mode 100644 node_modules/date-fns/esm/previousDay/index.d.ts create mode 100755 node_modules/date-fns/esm/previousDay/index.js create mode 100644 node_modules/date-fns/esm/previousDay/index.js.flow create mode 100644 node_modules/date-fns/esm/previousDay/package.json create mode 100644 node_modules/date-fns/esm/previousFriday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousFriday/index.js create mode 100644 node_modules/date-fns/esm/previousFriday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousFriday/package.json create mode 100644 node_modules/date-fns/esm/previousMonday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousMonday/index.js create mode 100644 node_modules/date-fns/esm/previousMonday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousMonday/package.json create mode 100644 node_modules/date-fns/esm/previousSaturday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousSaturday/index.js create mode 100644 node_modules/date-fns/esm/previousSaturday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousSaturday/package.json create mode 100644 node_modules/date-fns/esm/previousSunday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousSunday/index.js create mode 100644 node_modules/date-fns/esm/previousSunday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousSunday/package.json create mode 100644 node_modules/date-fns/esm/previousThursday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousThursday/index.js create mode 100644 node_modules/date-fns/esm/previousThursday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousThursday/package.json create mode 100644 node_modules/date-fns/esm/previousTuesday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousTuesday/index.js create mode 100644 node_modules/date-fns/esm/previousTuesday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousTuesday/package.json create mode 100644 node_modules/date-fns/esm/previousWednesday/index.d.ts create mode 100755 node_modules/date-fns/esm/previousWednesday/index.js create mode 100644 node_modules/date-fns/esm/previousWednesday/index.js.flow create mode 100644 node_modules/date-fns/esm/previousWednesday/package.json create mode 100644 node_modules/date-fns/esm/quartersToMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/quartersToMonths/index.js create mode 100644 node_modules/date-fns/esm/quartersToMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/quartersToMonths/package.json create mode 100644 node_modules/date-fns/esm/quartersToYears/index.d.ts create mode 100644 node_modules/date-fns/esm/quartersToYears/index.js create mode 100644 node_modules/date-fns/esm/quartersToYears/index.js.flow create mode 100644 node_modules/date-fns/esm/quartersToYears/package.json create mode 100644 node_modules/date-fns/esm/roundToNearestMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/roundToNearestMinutes/index.js create mode 100644 node_modules/date-fns/esm/roundToNearestMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/roundToNearestMinutes/package.json create mode 100644 node_modules/date-fns/esm/secondsToHours/index.d.ts create mode 100644 node_modules/date-fns/esm/secondsToHours/index.js create mode 100644 node_modules/date-fns/esm/secondsToHours/index.js.flow create mode 100644 node_modules/date-fns/esm/secondsToHours/package.json create mode 100644 node_modules/date-fns/esm/secondsToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/secondsToMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/secondsToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/secondsToMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/secondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/secondsToMinutes/index.js create mode 100644 node_modules/date-fns/esm/secondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/secondsToMinutes/package.json create mode 100644 node_modules/date-fns/esm/set/index.d.ts create mode 100644 node_modules/date-fns/esm/set/index.js create mode 100644 node_modules/date-fns/esm/set/index.js.flow create mode 100644 node_modules/date-fns/esm/set/package.json create mode 100644 node_modules/date-fns/esm/setDate/index.d.ts create mode 100644 node_modules/date-fns/esm/setDate/index.js create mode 100644 node_modules/date-fns/esm/setDate/index.js.flow create mode 100644 node_modules/date-fns/esm/setDate/package.json create mode 100644 node_modules/date-fns/esm/setDay/index.d.ts create mode 100644 node_modules/date-fns/esm/setDay/index.js create mode 100644 node_modules/date-fns/esm/setDay/index.js.flow create mode 100644 node_modules/date-fns/esm/setDay/package.json create mode 100644 node_modules/date-fns/esm/setDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/setDayOfYear/index.js create mode 100644 node_modules/date-fns/esm/setDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/setDayOfYear/package.json create mode 100644 node_modules/date-fns/esm/setDefaultOptions/index.d.ts create mode 100644 node_modules/date-fns/esm/setDefaultOptions/index.js create mode 100644 node_modules/date-fns/esm/setDefaultOptions/index.js.flow create mode 100644 node_modules/date-fns/esm/setDefaultOptions/package.json create mode 100644 node_modules/date-fns/esm/setHours/index.d.ts create mode 100644 node_modules/date-fns/esm/setHours/index.js create mode 100644 node_modules/date-fns/esm/setHours/index.js.flow create mode 100644 node_modules/date-fns/esm/setHours/package.json create mode 100644 node_modules/date-fns/esm/setISODay/index.d.ts create mode 100644 node_modules/date-fns/esm/setISODay/index.js create mode 100644 node_modules/date-fns/esm/setISODay/index.js.flow create mode 100644 node_modules/date-fns/esm/setISODay/package.json create mode 100644 node_modules/date-fns/esm/setISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/setISOWeek/index.js create mode 100644 node_modules/date-fns/esm/setISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/setISOWeek/package.json create mode 100644 node_modules/date-fns/esm/setISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/setISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/setISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/setISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/setMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/setMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/setMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/setMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/setMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/setMinutes/index.js create mode 100644 node_modules/date-fns/esm/setMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/setMinutes/package.json create mode 100644 node_modules/date-fns/esm/setMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/setMonth/index.js create mode 100644 node_modules/date-fns/esm/setMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/setMonth/package.json create mode 100644 node_modules/date-fns/esm/setQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/setQuarter/index.js create mode 100644 node_modules/date-fns/esm/setQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/setQuarter/package.json create mode 100644 node_modules/date-fns/esm/setSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/setSeconds/index.js create mode 100644 node_modules/date-fns/esm/setSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/setSeconds/package.json create mode 100644 node_modules/date-fns/esm/setWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/setWeek/index.js create mode 100644 node_modules/date-fns/esm/setWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/setWeek/package.json create mode 100644 node_modules/date-fns/esm/setWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/setWeekYear/index.js create mode 100644 node_modules/date-fns/esm/setWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/setWeekYear/package.json create mode 100644 node_modules/date-fns/esm/setYear/index.d.ts create mode 100644 node_modules/date-fns/esm/setYear/index.js create mode 100644 node_modules/date-fns/esm/setYear/index.js.flow create mode 100644 node_modules/date-fns/esm/setYear/package.json create mode 100644 node_modules/date-fns/esm/startOfDay/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfDay/index.js create mode 100644 node_modules/date-fns/esm/startOfDay/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfDay/package.json create mode 100644 node_modules/date-fns/esm/startOfDecade/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfDecade/index.js create mode 100644 node_modules/date-fns/esm/startOfDecade/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfDecade/package.json create mode 100644 node_modules/date-fns/esm/startOfHour/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfHour/index.js create mode 100644 node_modules/date-fns/esm/startOfHour/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfHour/package.json create mode 100644 node_modules/date-fns/esm/startOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfISOWeek/index.js create mode 100644 node_modules/date-fns/esm/startOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfISOWeek/package.json create mode 100644 node_modules/date-fns/esm/startOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/esm/startOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/esm/startOfMinute/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfMinute/index.js create mode 100644 node_modules/date-fns/esm/startOfMinute/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfMinute/package.json create mode 100644 node_modules/date-fns/esm/startOfMonth/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfMonth/index.js create mode 100644 node_modules/date-fns/esm/startOfMonth/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfMonth/package.json create mode 100644 node_modules/date-fns/esm/startOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfQuarter/index.js create mode 100644 node_modules/date-fns/esm/startOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfQuarter/package.json create mode 100644 node_modules/date-fns/esm/startOfSecond/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfSecond/index.js create mode 100644 node_modules/date-fns/esm/startOfSecond/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfSecond/package.json create mode 100644 node_modules/date-fns/esm/startOfToday/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfToday/index.js create mode 100644 node_modules/date-fns/esm/startOfToday/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfToday/package.json create mode 100644 node_modules/date-fns/esm/startOfTomorrow/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfTomorrow/index.js create mode 100644 node_modules/date-fns/esm/startOfTomorrow/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfTomorrow/package.json create mode 100644 node_modules/date-fns/esm/startOfWeek/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfWeek/index.js create mode 100644 node_modules/date-fns/esm/startOfWeek/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfWeek/package.json create mode 100644 node_modules/date-fns/esm/startOfWeekYear/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfWeekYear/index.js create mode 100644 node_modules/date-fns/esm/startOfWeekYear/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfWeekYear/package.json create mode 100644 node_modules/date-fns/esm/startOfYear/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfYear/index.js create mode 100644 node_modules/date-fns/esm/startOfYear/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfYear/package.json create mode 100644 node_modules/date-fns/esm/startOfYesterday/index.d.ts create mode 100644 node_modules/date-fns/esm/startOfYesterday/index.js create mode 100644 node_modules/date-fns/esm/startOfYesterday/index.js.flow create mode 100644 node_modules/date-fns/esm/startOfYesterday/package.json create mode 100644 node_modules/date-fns/esm/sub/index.d.ts create mode 100644 node_modules/date-fns/esm/sub/index.js create mode 100644 node_modules/date-fns/esm/sub/index.js.flow create mode 100644 node_modules/date-fns/esm/sub/package.json create mode 100644 node_modules/date-fns/esm/subBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/esm/subBusinessDays/index.js create mode 100644 node_modules/date-fns/esm/subBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/esm/subBusinessDays/package.json create mode 100644 node_modules/date-fns/esm/subDays/index.d.ts create mode 100644 node_modules/date-fns/esm/subDays/index.js create mode 100644 node_modules/date-fns/esm/subDays/index.js.flow create mode 100644 node_modules/date-fns/esm/subDays/package.json create mode 100644 node_modules/date-fns/esm/subHours/index.d.ts create mode 100644 node_modules/date-fns/esm/subHours/index.js create mode 100644 node_modules/date-fns/esm/subHours/index.js.flow create mode 100644 node_modules/date-fns/esm/subHours/package.json create mode 100644 node_modules/date-fns/esm/subISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/esm/subISOWeekYears/index.js create mode 100644 node_modules/date-fns/esm/subISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/esm/subISOWeekYears/package.json create mode 100644 node_modules/date-fns/esm/subMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/esm/subMilliseconds/index.js create mode 100644 node_modules/date-fns/esm/subMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/esm/subMilliseconds/package.json create mode 100644 node_modules/date-fns/esm/subMinutes/index.d.ts create mode 100644 node_modules/date-fns/esm/subMinutes/index.js create mode 100644 node_modules/date-fns/esm/subMinutes/index.js.flow create mode 100644 node_modules/date-fns/esm/subMinutes/package.json create mode 100644 node_modules/date-fns/esm/subMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/subMonths/index.js create mode 100644 node_modules/date-fns/esm/subMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/subMonths/package.json create mode 100644 node_modules/date-fns/esm/subQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/subQuarters/index.js create mode 100644 node_modules/date-fns/esm/subQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/subQuarters/package.json create mode 100644 node_modules/date-fns/esm/subSeconds/index.d.ts create mode 100644 node_modules/date-fns/esm/subSeconds/index.js create mode 100644 node_modules/date-fns/esm/subSeconds/index.js.flow create mode 100644 node_modules/date-fns/esm/subSeconds/package.json create mode 100644 node_modules/date-fns/esm/subWeeks/index.d.ts create mode 100644 node_modules/date-fns/esm/subWeeks/index.js create mode 100644 node_modules/date-fns/esm/subWeeks/index.js.flow create mode 100644 node_modules/date-fns/esm/subWeeks/package.json create mode 100644 node_modules/date-fns/esm/subYears/index.d.ts create mode 100644 node_modules/date-fns/esm/subYears/index.js create mode 100644 node_modules/date-fns/esm/subYears/index.js.flow create mode 100644 node_modules/date-fns/esm/subYears/package.json create mode 100644 node_modules/date-fns/esm/toDate/index.d.ts create mode 100644 node_modules/date-fns/esm/toDate/index.js create mode 100644 node_modules/date-fns/esm/toDate/index.js.flow create mode 100644 node_modules/date-fns/esm/toDate/package.json create mode 100644 node_modules/date-fns/esm/types.js create mode 100644 node_modules/date-fns/esm/weeksToDays/index.d.ts create mode 100644 node_modules/date-fns/esm/weeksToDays/index.js create mode 100644 node_modules/date-fns/esm/weeksToDays/index.js.flow create mode 100644 node_modules/date-fns/esm/weeksToDays/package.json create mode 100644 node_modules/date-fns/esm/yearsToMonths/index.d.ts create mode 100644 node_modules/date-fns/esm/yearsToMonths/index.js create mode 100644 node_modules/date-fns/esm/yearsToMonths/index.js.flow create mode 100644 node_modules/date-fns/esm/yearsToMonths/package.json create mode 100644 node_modules/date-fns/esm/yearsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/esm/yearsToQuarters/index.js create mode 100644 node_modules/date-fns/esm/yearsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/esm/yearsToQuarters/package.json create mode 100644 node_modules/date-fns/format/index.d.ts create mode 100644 node_modules/date-fns/format/index.js create mode 100644 node_modules/date-fns/format/index.js.flow create mode 100644 node_modules/date-fns/format/package.json create mode 100644 node_modules/date-fns/formatDistance/index.d.ts create mode 100644 node_modules/date-fns/formatDistance/index.js create mode 100644 node_modules/date-fns/formatDistance/index.js.flow create mode 100644 node_modules/date-fns/formatDistance/package.json create mode 100644 node_modules/date-fns/formatDistanceStrict/index.d.ts create mode 100644 node_modules/date-fns/formatDistanceStrict/index.js create mode 100644 node_modules/date-fns/formatDistanceStrict/index.js.flow create mode 100644 node_modules/date-fns/formatDistanceStrict/package.json create mode 100644 node_modules/date-fns/formatDistanceToNow/index.d.ts create mode 100644 node_modules/date-fns/formatDistanceToNow/index.js create mode 100644 node_modules/date-fns/formatDistanceToNow/index.js.flow create mode 100644 node_modules/date-fns/formatDistanceToNow/package.json create mode 100644 node_modules/date-fns/formatDistanceToNowStrict/index.d.ts create mode 100644 node_modules/date-fns/formatDistanceToNowStrict/index.js create mode 100644 node_modules/date-fns/formatDistanceToNowStrict/index.js.flow create mode 100644 node_modules/date-fns/formatDistanceToNowStrict/package.json create mode 100644 node_modules/date-fns/formatDuration/index.d.ts create mode 100644 node_modules/date-fns/formatDuration/index.js create mode 100644 node_modules/date-fns/formatDuration/index.js.flow create mode 100644 node_modules/date-fns/formatDuration/package.json create mode 100644 node_modules/date-fns/formatISO/index.d.ts create mode 100644 node_modules/date-fns/formatISO/index.js create mode 100644 node_modules/date-fns/formatISO/index.js.flow create mode 100644 node_modules/date-fns/formatISO/package.json create mode 100644 node_modules/date-fns/formatISO9075/index.d.ts create mode 100644 node_modules/date-fns/formatISO9075/index.js create mode 100644 node_modules/date-fns/formatISO9075/index.js.flow create mode 100644 node_modules/date-fns/formatISO9075/package.json create mode 100644 node_modules/date-fns/formatISODuration/index.d.ts create mode 100644 node_modules/date-fns/formatISODuration/index.js create mode 100644 node_modules/date-fns/formatISODuration/index.js.flow create mode 100644 node_modules/date-fns/formatISODuration/package.json create mode 100644 node_modules/date-fns/formatRFC3339/index.d.ts create mode 100644 node_modules/date-fns/formatRFC3339/index.js create mode 100644 node_modules/date-fns/formatRFC3339/index.js.flow create mode 100644 node_modules/date-fns/formatRFC3339/package.json create mode 100644 node_modules/date-fns/formatRFC7231/index.d.ts create mode 100644 node_modules/date-fns/formatRFC7231/index.js create mode 100644 node_modules/date-fns/formatRFC7231/index.js.flow create mode 100644 node_modules/date-fns/formatRFC7231/package.json create mode 100644 node_modules/date-fns/formatRelative/index.d.ts create mode 100644 node_modules/date-fns/formatRelative/index.js create mode 100644 node_modules/date-fns/formatRelative/index.js.flow create mode 100644 node_modules/date-fns/formatRelative/package.json create mode 100644 node_modules/date-fns/fp/_lib/convertToFP/index.js create mode 100644 node_modules/date-fns/fp/add/index.d.ts create mode 100644 node_modules/date-fns/fp/add/index.js create mode 100644 node_modules/date-fns/fp/add/index.js.flow create mode 100644 node_modules/date-fns/fp/add/package.json create mode 100644 node_modules/date-fns/fp/addBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/fp/addBusinessDays/index.js create mode 100644 node_modules/date-fns/fp/addBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/fp/addBusinessDays/package.json create mode 100644 node_modules/date-fns/fp/addDays/index.d.ts create mode 100644 node_modules/date-fns/fp/addDays/index.js create mode 100644 node_modules/date-fns/fp/addDays/index.js.flow create mode 100644 node_modules/date-fns/fp/addDays/package.json create mode 100644 node_modules/date-fns/fp/addHours/index.d.ts create mode 100644 node_modules/date-fns/fp/addHours/index.js create mode 100644 node_modules/date-fns/fp/addHours/index.js.flow create mode 100644 node_modules/date-fns/fp/addHours/package.json create mode 100644 node_modules/date-fns/fp/addISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/fp/addISOWeekYears/index.js create mode 100644 node_modules/date-fns/fp/addISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/fp/addISOWeekYears/package.json create mode 100644 node_modules/date-fns/fp/addMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/addMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/addMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/addMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/addMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/addMinutes/index.js create mode 100644 node_modules/date-fns/fp/addMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/addMinutes/package.json create mode 100644 node_modules/date-fns/fp/addMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/addMonths/index.js create mode 100644 node_modules/date-fns/fp/addMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/addMonths/package.json create mode 100644 node_modules/date-fns/fp/addQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/addQuarters/index.js create mode 100644 node_modules/date-fns/fp/addQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/addQuarters/package.json create mode 100644 node_modules/date-fns/fp/addSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/addSeconds/index.js create mode 100644 node_modules/date-fns/fp/addSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/addSeconds/package.json create mode 100644 node_modules/date-fns/fp/addWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/addWeeks/index.js create mode 100644 node_modules/date-fns/fp/addWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/addWeeks/package.json create mode 100644 node_modules/date-fns/fp/addYears/index.d.ts create mode 100644 node_modules/date-fns/fp/addYears/index.js create mode 100644 node_modules/date-fns/fp/addYears/index.js.flow create mode 100644 node_modules/date-fns/fp/addYears/package.json create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping/index.d.ts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping/index.js create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping/index.js.flow create mode 100644 node_modules/date-fns/fp/areIntervalsOverlapping/package.json create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/package.json create mode 100644 node_modules/date-fns/fp/clamp/index.d.ts create mode 100644 node_modules/date-fns/fp/clamp/index.js create mode 100644 node_modules/date-fns/fp/clamp/index.js.flow create mode 100644 node_modules/date-fns/fp/clamp/package.json create mode 100644 node_modules/date-fns/fp/closestIndexTo/index.d.ts create mode 100644 node_modules/date-fns/fp/closestIndexTo/index.js create mode 100644 node_modules/date-fns/fp/closestIndexTo/index.js.flow create mode 100644 node_modules/date-fns/fp/closestIndexTo/package.json create mode 100644 node_modules/date-fns/fp/closestTo/index.d.ts create mode 100644 node_modules/date-fns/fp/closestTo/index.js create mode 100644 node_modules/date-fns/fp/closestTo/index.js.flow create mode 100644 node_modules/date-fns/fp/closestTo/package.json create mode 100644 node_modules/date-fns/fp/compareAsc/index.d.ts create mode 100644 node_modules/date-fns/fp/compareAsc/index.js create mode 100644 node_modules/date-fns/fp/compareAsc/index.js.flow create mode 100644 node_modules/date-fns/fp/compareAsc/package.json create mode 100644 node_modules/date-fns/fp/compareDesc/index.d.ts create mode 100644 node_modules/date-fns/fp/compareDesc/index.js create mode 100644 node_modules/date-fns/fp/compareDesc/index.js.flow create mode 100644 node_modules/date-fns/fp/compareDesc/package.json create mode 100644 node_modules/date-fns/fp/daysToWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/daysToWeeks/index.js create mode 100644 node_modules/date-fns/fp/daysToWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/daysToWeeks/package.json create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays/index.js create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInBusinessDays/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarDays/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeekYears/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarISOWeeks/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarMonths/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarQuarters/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeks/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears/index.js create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInCalendarYears/package.json create mode 100644 node_modules/date-fns/fp/differenceInDays/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInDays/index.js create mode 100644 node_modules/date-fns/fp/differenceInDays/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInDays/package.json create mode 100644 node_modules/date-fns/fp/differenceInHours/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInHours/index.js create mode 100644 node_modules/date-fns/fp/differenceInHours/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInHours/package.json create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInHoursWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears/index.js create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInISOWeekYears/package.json create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/differenceInMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMinutes/index.js create mode 100644 node_modules/date-fns/fp/differenceInMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInMinutes/package.json create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInMinutesWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInMonths/index.js create mode 100644 node_modules/date-fns/fp/differenceInMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInMonths/package.json create mode 100644 node_modules/date-fns/fp/differenceInQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInQuarters/index.js create mode 100644 node_modules/date-fns/fp/differenceInQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInQuarters/package.json create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInQuartersWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInSeconds/index.js create mode 100644 node_modules/date-fns/fp/differenceInSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInSeconds/package.json create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInSecondsWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInWeeks/index.js create mode 100644 node_modules/date-fns/fp/differenceInWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInWeeks/package.json create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInWeeksWithOptions/package.json create mode 100644 node_modules/date-fns/fp/differenceInYears/index.d.ts create mode 100644 node_modules/date-fns/fp/differenceInYears/index.js create mode 100644 node_modules/date-fns/fp/differenceInYears/index.js.flow create mode 100644 node_modules/date-fns/fp/differenceInYears/package.json create mode 100644 node_modules/date-fns/fp/eachDayOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachDayOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachDayOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachDayOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/eachDayOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/fp/eachHourOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachHourOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachHourOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachHourOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/eachHourOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachMinuteOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachMonthOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachQuarterOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachWeekOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/package.json create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachWeekendOfInterval/package.json create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth/index.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/eachWeekendOfMonth/package.json create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear/index.js create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/eachWeekendOfYear/package.json create mode 100644 node_modules/date-fns/fp/eachYearOfInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/eachYearOfInterval/index.js create mode 100644 node_modules/date-fns/fp/eachYearOfInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/eachYearOfInterval/package.json create mode 100644 node_modules/date-fns/fp/endOfDay/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfDay/index.js create mode 100644 node_modules/date-fns/fp/endOfDay/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfDay/package.json create mode 100644 node_modules/date-fns/fp/endOfDecade/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfDecade/index.js create mode 100644 node_modules/date-fns/fp/endOfDecade/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfDecade/package.json create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions/index.js create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfDecadeWithOptions/package.json create mode 100644 node_modules/date-fns/fp/endOfHour/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfHour/index.js create mode 100644 node_modules/date-fns/fp/endOfHour/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfHour/package.json create mode 100644 node_modules/date-fns/fp/endOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeek/index.js create mode 100644 node_modules/date-fns/fp/endOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfISOWeek/package.json create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/endOfMinute/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfMinute/index.js create mode 100644 node_modules/date-fns/fp/endOfMinute/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfMinute/package.json create mode 100644 node_modules/date-fns/fp/endOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfMonth/index.js create mode 100644 node_modules/date-fns/fp/endOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfMonth/package.json create mode 100644 node_modules/date-fns/fp/endOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfQuarter/index.js create mode 100644 node_modules/date-fns/fp/endOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfQuarter/package.json create mode 100644 node_modules/date-fns/fp/endOfSecond/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfSecond/index.js create mode 100644 node_modules/date-fns/fp/endOfSecond/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfSecond/package.json create mode 100644 node_modules/date-fns/fp/endOfWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfWeek/index.js create mode 100644 node_modules/date-fns/fp/endOfWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfWeek/package.json create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/endOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/endOfYear/index.js create mode 100644 node_modules/date-fns/fp/endOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/endOfYear/package.json create mode 100644 node_modules/date-fns/fp/format/index.d.ts create mode 100644 node_modules/date-fns/fp/format/index.js create mode 100644 node_modules/date-fns/fp/format/index.js.flow create mode 100644 node_modules/date-fns/fp/format/package.json create mode 100644 node_modules/date-fns/fp/formatDistance/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDistance/index.js create mode 100644 node_modules/date-fns/fp/formatDistance/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDistance/package.json create mode 100644 node_modules/date-fns/fp/formatDistanceStrict/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceStrict/index.js create mode 100644 node_modules/date-fns/fp/formatDistanceStrict/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDistanceStrict/package.json create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDistanceStrictWithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDistanceWithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatDuration/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDuration/index.js create mode 100644 node_modules/date-fns/fp/formatDuration/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDuration/package.json create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatDurationWithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatISO/index.d.ts create mode 100644 node_modules/date-fns/fp/formatISO/index.js create mode 100644 node_modules/date-fns/fp/formatISO/index.js.flow create mode 100644 node_modules/date-fns/fp/formatISO/package.json create mode 100644 node_modules/date-fns/fp/formatISO9075/index.d.ts create mode 100644 node_modules/date-fns/fp/formatISO9075/index.js create mode 100644 node_modules/date-fns/fp/formatISO9075/index.js.flow create mode 100644 node_modules/date-fns/fp/formatISO9075/package.json create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatISO9075WithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatISODuration/index.d.ts create mode 100644 node_modules/date-fns/fp/formatISODuration/index.js create mode 100644 node_modules/date-fns/fp/formatISODuration/index.js.flow create mode 100644 node_modules/date-fns/fp/formatISODuration/package.json create mode 100644 node_modules/date-fns/fp/formatISOWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatISOWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatISOWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatISOWithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatRFC3339/index.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC3339/index.js create mode 100644 node_modules/date-fns/fp/formatRFC3339/index.js.flow create mode 100644 node_modules/date-fns/fp/formatRFC3339/package.json create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatRFC3339WithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatRFC7231/index.d.ts create mode 100644 node_modules/date-fns/fp/formatRFC7231/index.js create mode 100644 node_modules/date-fns/fp/formatRFC7231/index.js.flow create mode 100644 node_modules/date-fns/fp/formatRFC7231/package.json create mode 100644 node_modules/date-fns/fp/formatRelative/index.d.ts create mode 100644 node_modules/date-fns/fp/formatRelative/index.js create mode 100644 node_modules/date-fns/fp/formatRelative/index.js.flow create mode 100644 node_modules/date-fns/fp/formatRelative/package.json create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatRelativeWithOptions/package.json create mode 100644 node_modules/date-fns/fp/formatWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/formatWithOptions/index.js create mode 100644 node_modules/date-fns/fp/formatWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/formatWithOptions/package.json create mode 100644 node_modules/date-fns/fp/fromUnixTime/index.d.ts create mode 100644 node_modules/date-fns/fp/fromUnixTime/index.js create mode 100644 node_modules/date-fns/fp/fromUnixTime/index.js.flow create mode 100644 node_modules/date-fns/fp/fromUnixTime/package.json create mode 100644 node_modules/date-fns/fp/getDate/index.d.ts create mode 100644 node_modules/date-fns/fp/getDate/index.js create mode 100644 node_modules/date-fns/fp/getDate/index.js.flow create mode 100644 node_modules/date-fns/fp/getDate/package.json create mode 100644 node_modules/date-fns/fp/getDay/index.d.ts create mode 100644 node_modules/date-fns/fp/getDay/index.js create mode 100644 node_modules/date-fns/fp/getDay/index.js.flow create mode 100644 node_modules/date-fns/fp/getDay/package.json create mode 100644 node_modules/date-fns/fp/getDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getDayOfYear/index.js create mode 100644 node_modules/date-fns/fp/getDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getDayOfYear/package.json create mode 100644 node_modules/date-fns/fp/getDaysInMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInMonth/index.js create mode 100644 node_modules/date-fns/fp/getDaysInMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/getDaysInMonth/package.json create mode 100644 node_modules/date-fns/fp/getDaysInYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getDaysInYear/index.js create mode 100644 node_modules/date-fns/fp/getDaysInYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getDaysInYear/package.json create mode 100644 node_modules/date-fns/fp/getDecade/index.d.ts create mode 100644 node_modules/date-fns/fp/getDecade/index.js create mode 100644 node_modules/date-fns/fp/getDecade/index.js.flow create mode 100644 node_modules/date-fns/fp/getDecade/package.json create mode 100644 node_modules/date-fns/fp/getHours/index.d.ts create mode 100644 node_modules/date-fns/fp/getHours/index.js create mode 100644 node_modules/date-fns/fp/getHours/index.js.flow create mode 100644 node_modules/date-fns/fp/getHours/package.json create mode 100644 node_modules/date-fns/fp/getISODay/index.d.ts create mode 100644 node_modules/date-fns/fp/getISODay/index.js create mode 100644 node_modules/date-fns/fp/getISODay/index.js.flow create mode 100644 node_modules/date-fns/fp/getISODay/package.json create mode 100644 node_modules/date-fns/fp/getISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeek/index.js create mode 100644 node_modules/date-fns/fp/getISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/getISOWeek/package.json create mode 100644 node_modules/date-fns/fp/getISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/getISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear/index.js create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getISOWeeksInYear/package.json create mode 100644 node_modules/date-fns/fp/getMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/getMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/getMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/getMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/getMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/getMinutes/index.js create mode 100644 node_modules/date-fns/fp/getMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/getMinutes/package.json create mode 100644 node_modules/date-fns/fp/getMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/getMonth/index.js create mode 100644 node_modules/date-fns/fp/getMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/getMonth/package.json create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.d.ts create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js.flow create mode 100644 node_modules/date-fns/fp/getOverlappingDaysInIntervals/package.json create mode 100644 node_modules/date-fns/fp/getQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/getQuarter/index.js create mode 100644 node_modules/date-fns/fp/getQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/getQuarter/package.json create mode 100644 node_modules/date-fns/fp/getSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/getSeconds/index.js create mode 100644 node_modules/date-fns/fp/getSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/getSeconds/package.json create mode 100644 node_modules/date-fns/fp/getTime/index.d.ts create mode 100644 node_modules/date-fns/fp/getTime/index.js create mode 100644 node_modules/date-fns/fp/getTime/index.js.flow create mode 100644 node_modules/date-fns/fp/getTime/package.json create mode 100644 node_modules/date-fns/fp/getUnixTime/index.d.ts create mode 100644 node_modules/date-fns/fp/getUnixTime/index.js create mode 100644 node_modules/date-fns/fp/getUnixTime/index.js.flow create mode 100644 node_modules/date-fns/fp/getUnixTime/package.json create mode 100644 node_modules/date-fns/fp/getWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeek/index.js create mode 100644 node_modules/date-fns/fp/getWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeek/package.json create mode 100644 node_modules/date-fns/fp/getWeekOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeekOfMonth/index.js create mode 100644 node_modules/date-fns/fp/getWeekOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeekOfMonth/package.json create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeekOfMonthWithOptions/package.json create mode 100644 node_modules/date-fns/fp/getWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/getWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/getWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeekYear/index.js create mode 100644 node_modules/date-fns/fp/getWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeekYear/package.json create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/fp/getWeeksInMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeeksInMonth/index.js create mode 100644 node_modules/date-fns/fp/getWeeksInMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeeksInMonth/package.json create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/getWeeksInMonthWithOptions/package.json create mode 100644 node_modules/date-fns/fp/getYear/index.d.ts create mode 100644 node_modules/date-fns/fp/getYear/index.js create mode 100644 node_modules/date-fns/fp/getYear/index.js.flow create mode 100644 node_modules/date-fns/fp/getYear/package.json create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/hoursToMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/hoursToMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/hoursToMinutes/index.js create mode 100644 node_modules/date-fns/fp/hoursToMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/hoursToMinutes/package.json create mode 100644 node_modules/date-fns/fp/hoursToSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/hoursToSeconds/index.js create mode 100644 node_modules/date-fns/fp/hoursToSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/hoursToSeconds/package.json create mode 100644 node_modules/date-fns/fp/index.js create mode 100644 node_modules/date-fns/fp/index.js.flow create mode 100644 node_modules/date-fns/fp/intervalToDuration/index.d.ts create mode 100644 node_modules/date-fns/fp/intervalToDuration/index.js create mode 100644 node_modules/date-fns/fp/intervalToDuration/index.js.flow create mode 100644 node_modules/date-fns/fp/intervalToDuration/package.json create mode 100644 node_modules/date-fns/fp/intlFormat/index.d.ts create mode 100644 node_modules/date-fns/fp/intlFormat/index.js create mode 100644 node_modules/date-fns/fp/intlFormat/index.js.flow create mode 100644 node_modules/date-fns/fp/intlFormat/package.json create mode 100644 node_modules/date-fns/fp/intlFormatDistance/index.d.ts create mode 100644 node_modules/date-fns/fp/intlFormatDistance/index.js create mode 100644 node_modules/date-fns/fp/intlFormatDistance/index.js.flow create mode 100644 node_modules/date-fns/fp/intlFormatDistance/package.json create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/intlFormatDistanceWithOptions/package.json create mode 100644 node_modules/date-fns/fp/isAfter/index.d.ts create mode 100644 node_modules/date-fns/fp/isAfter/index.js create mode 100644 node_modules/date-fns/fp/isAfter/index.js.flow create mode 100644 node_modules/date-fns/fp/isAfter/package.json create mode 100644 node_modules/date-fns/fp/isBefore/index.d.ts create mode 100644 node_modules/date-fns/fp/isBefore/index.js create mode 100644 node_modules/date-fns/fp/isBefore/index.js.flow create mode 100644 node_modules/date-fns/fp/isBefore/package.json create mode 100644 node_modules/date-fns/fp/isDate/index.d.ts create mode 100644 node_modules/date-fns/fp/isDate/index.js create mode 100644 node_modules/date-fns/fp/isDate/index.js.flow create mode 100644 node_modules/date-fns/fp/isDate/package.json create mode 100644 node_modules/date-fns/fp/isEqual/index.d.ts create mode 100644 node_modules/date-fns/fp/isEqual/index.js create mode 100644 node_modules/date-fns/fp/isEqual/index.js.flow create mode 100644 node_modules/date-fns/fp/isEqual/package.json create mode 100644 node_modules/date-fns/fp/isExists/index.d.ts create mode 100644 node_modules/date-fns/fp/isExists/index.js create mode 100644 node_modules/date-fns/fp/isExists/index.js.flow create mode 100644 node_modules/date-fns/fp/isExists/package.json create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth/index.js create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/isFirstDayOfMonth/package.json create mode 100644 node_modules/date-fns/fp/isFriday/index.d.ts create mode 100644 node_modules/date-fns/fp/isFriday/index.js create mode 100644 node_modules/date-fns/fp/isFriday/index.js.flow create mode 100644 node_modules/date-fns/fp/isFriday/package.json create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth/index.js create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/isLastDayOfMonth/package.json create mode 100644 node_modules/date-fns/fp/isLeapYear/index.d.ts create mode 100644 node_modules/date-fns/fp/isLeapYear/index.js create mode 100644 node_modules/date-fns/fp/isLeapYear/index.js.flow create mode 100644 node_modules/date-fns/fp/isLeapYear/package.json create mode 100644 node_modules/date-fns/fp/isMatch/index.d.ts create mode 100644 node_modules/date-fns/fp/isMatch/index.js create mode 100644 node_modules/date-fns/fp/isMatch/index.js.flow create mode 100644 node_modules/date-fns/fp/isMatch/package.json create mode 100644 node_modules/date-fns/fp/isMatchWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/isMatchWithOptions/index.js create mode 100644 node_modules/date-fns/fp/isMatchWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/isMatchWithOptions/package.json create mode 100644 node_modules/date-fns/fp/isMonday/index.d.ts create mode 100644 node_modules/date-fns/fp/isMonday/index.js create mode 100644 node_modules/date-fns/fp/isMonday/index.js.flow create mode 100644 node_modules/date-fns/fp/isMonday/package.json create mode 100644 node_modules/date-fns/fp/isSameDay/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameDay/index.js create mode 100644 node_modules/date-fns/fp/isSameDay/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameDay/package.json create mode 100644 node_modules/date-fns/fp/isSameHour/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameHour/index.js create mode 100644 node_modules/date-fns/fp/isSameHour/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameHour/package.json create mode 100644 node_modules/date-fns/fp/isSameISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeek/index.js create mode 100644 node_modules/date-fns/fp/isSameISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameISOWeek/package.json create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/isSameMinute/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameMinute/index.js create mode 100644 node_modules/date-fns/fp/isSameMinute/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameMinute/package.json create mode 100644 node_modules/date-fns/fp/isSameMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameMonth/index.js create mode 100644 node_modules/date-fns/fp/isSameMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameMonth/package.json create mode 100644 node_modules/date-fns/fp/isSameQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameQuarter/index.js create mode 100644 node_modules/date-fns/fp/isSameQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameQuarter/package.json create mode 100644 node_modules/date-fns/fp/isSameSecond/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameSecond/index.js create mode 100644 node_modules/date-fns/fp/isSameSecond/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameSecond/package.json create mode 100644 node_modules/date-fns/fp/isSameWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameWeek/index.js create mode 100644 node_modules/date-fns/fp/isSameWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameWeek/package.json create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/isSameYear/index.d.ts create mode 100644 node_modules/date-fns/fp/isSameYear/index.js create mode 100644 node_modules/date-fns/fp/isSameYear/index.js.flow create mode 100644 node_modules/date-fns/fp/isSameYear/package.json create mode 100644 node_modules/date-fns/fp/isSaturday/index.d.ts create mode 100644 node_modules/date-fns/fp/isSaturday/index.js create mode 100644 node_modules/date-fns/fp/isSaturday/index.js.flow create mode 100644 node_modules/date-fns/fp/isSaturday/package.json create mode 100644 node_modules/date-fns/fp/isSunday/index.d.ts create mode 100644 node_modules/date-fns/fp/isSunday/index.js create mode 100644 node_modules/date-fns/fp/isSunday/index.js.flow create mode 100644 node_modules/date-fns/fp/isSunday/package.json create mode 100644 node_modules/date-fns/fp/isThursday/index.d.ts create mode 100644 node_modules/date-fns/fp/isThursday/index.js create mode 100644 node_modules/date-fns/fp/isThursday/index.js.flow create mode 100644 node_modules/date-fns/fp/isThursday/package.json create mode 100644 node_modules/date-fns/fp/isTuesday/index.d.ts create mode 100644 node_modules/date-fns/fp/isTuesday/index.js create mode 100644 node_modules/date-fns/fp/isTuesday/index.js.flow create mode 100644 node_modules/date-fns/fp/isTuesday/package.json create mode 100644 node_modules/date-fns/fp/isValid/index.d.ts create mode 100644 node_modules/date-fns/fp/isValid/index.js create mode 100644 node_modules/date-fns/fp/isValid/index.js.flow create mode 100644 node_modules/date-fns/fp/isValid/package.json create mode 100644 node_modules/date-fns/fp/isWednesday/index.d.ts create mode 100644 node_modules/date-fns/fp/isWednesday/index.js create mode 100644 node_modules/date-fns/fp/isWednesday/index.js.flow create mode 100644 node_modules/date-fns/fp/isWednesday/package.json create mode 100644 node_modules/date-fns/fp/isWeekend/index.d.ts create mode 100644 node_modules/date-fns/fp/isWeekend/index.js create mode 100644 node_modules/date-fns/fp/isWeekend/index.js.flow create mode 100644 node_modules/date-fns/fp/isWeekend/package.json create mode 100644 node_modules/date-fns/fp/isWithinInterval/index.d.ts create mode 100644 node_modules/date-fns/fp/isWithinInterval/index.js create mode 100644 node_modules/date-fns/fp/isWithinInterval/index.js.flow create mode 100644 node_modules/date-fns/fp/isWithinInterval/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfDecade/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfDecade/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfDecade/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfDecade/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeek/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfMonth/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfMonth/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfQuarter/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfQuarterWithOptions/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfWeek/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfWeek/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/lastDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/lastDayOfYear/index.js create mode 100644 node_modules/date-fns/fp/lastDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/lastDayOfYear/package.json create mode 100644 node_modules/date-fns/fp/lightFormat/index.d.ts create mode 100644 node_modules/date-fns/fp/lightFormat/index.js create mode 100644 node_modules/date-fns/fp/lightFormat/index.js.flow create mode 100644 node_modules/date-fns/fp/lightFormat/package.json create mode 100644 node_modules/date-fns/fp/max/index.d.ts create mode 100644 node_modules/date-fns/fp/max/index.js create mode 100644 node_modules/date-fns/fp/max/index.js.flow create mode 100644 node_modules/date-fns/fp/max/package.json create mode 100644 node_modules/date-fns/fp/milliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/milliseconds/index.js create mode 100644 node_modules/date-fns/fp/milliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/milliseconds/package.json create mode 100644 node_modules/date-fns/fp/millisecondsToHours/index.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToHours/index.js create mode 100644 node_modules/date-fns/fp/millisecondsToHours/index.js.flow create mode 100644 node_modules/date-fns/fp/millisecondsToHours/package.json create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes/index.js create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/millisecondsToMinutes/package.json create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds/index.js create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/millisecondsToSeconds/package.json create mode 100644 node_modules/date-fns/fp/min/index.d.ts create mode 100644 node_modules/date-fns/fp/min/index.js create mode 100644 node_modules/date-fns/fp/min/index.js.flow create mode 100644 node_modules/date-fns/fp/min/package.json create mode 100644 node_modules/date-fns/fp/minutesToHours/index.d.ts create mode 100644 node_modules/date-fns/fp/minutesToHours/index.js create mode 100644 node_modules/date-fns/fp/minutesToHours/index.js.flow create mode 100644 node_modules/date-fns/fp/minutesToHours/package.json create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/minutesToMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/minutesToSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/minutesToSeconds/index.js create mode 100644 node_modules/date-fns/fp/minutesToSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/minutesToSeconds/package.json create mode 100644 node_modules/date-fns/fp/monthsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/monthsToQuarters/index.js create mode 100644 node_modules/date-fns/fp/monthsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/monthsToQuarters/package.json create mode 100644 node_modules/date-fns/fp/monthsToYears/index.d.ts create mode 100644 node_modules/date-fns/fp/monthsToYears/index.js create mode 100644 node_modules/date-fns/fp/monthsToYears/index.js.flow create mode 100644 node_modules/date-fns/fp/monthsToYears/package.json create mode 100644 node_modules/date-fns/fp/nextDay/index.d.ts create mode 100644 node_modules/date-fns/fp/nextDay/index.js create mode 100644 node_modules/date-fns/fp/nextDay/index.js.flow create mode 100644 node_modules/date-fns/fp/nextDay/package.json create mode 100644 node_modules/date-fns/fp/nextFriday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextFriday/index.js create mode 100644 node_modules/date-fns/fp/nextFriday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextFriday/package.json create mode 100644 node_modules/date-fns/fp/nextMonday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextMonday/index.js create mode 100644 node_modules/date-fns/fp/nextMonday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextMonday/package.json create mode 100644 node_modules/date-fns/fp/nextSaturday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextSaturday/index.js create mode 100644 node_modules/date-fns/fp/nextSaturday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextSaturday/package.json create mode 100644 node_modules/date-fns/fp/nextSunday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextSunday/index.js create mode 100644 node_modules/date-fns/fp/nextSunday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextSunday/package.json create mode 100644 node_modules/date-fns/fp/nextThursday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextThursday/index.js create mode 100644 node_modules/date-fns/fp/nextThursday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextThursday/package.json create mode 100644 node_modules/date-fns/fp/nextTuesday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextTuesday/index.js create mode 100644 node_modules/date-fns/fp/nextTuesday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextTuesday/package.json create mode 100644 node_modules/date-fns/fp/nextWednesday/index.d.ts create mode 100644 node_modules/date-fns/fp/nextWednesday/index.js create mode 100644 node_modules/date-fns/fp/nextWednesday/index.js.flow create mode 100644 node_modules/date-fns/fp/nextWednesday/package.json create mode 100644 node_modules/date-fns/fp/package.json create mode 100644 node_modules/date-fns/fp/parse/index.d.ts create mode 100644 node_modules/date-fns/fp/parse/index.js create mode 100644 node_modules/date-fns/fp/parse/index.js.flow create mode 100644 node_modules/date-fns/fp/parse/package.json create mode 100644 node_modules/date-fns/fp/parseISO/index.d.ts create mode 100644 node_modules/date-fns/fp/parseISO/index.js create mode 100644 node_modules/date-fns/fp/parseISO/index.js.flow create mode 100644 node_modules/date-fns/fp/parseISO/package.json create mode 100644 node_modules/date-fns/fp/parseISOWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/parseISOWithOptions/index.js create mode 100644 node_modules/date-fns/fp/parseISOWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/parseISOWithOptions/package.json create mode 100644 node_modules/date-fns/fp/parseJSON/index.d.ts create mode 100644 node_modules/date-fns/fp/parseJSON/index.js create mode 100644 node_modules/date-fns/fp/parseJSON/index.js.flow create mode 100644 node_modules/date-fns/fp/parseJSON/package.json create mode 100644 node_modules/date-fns/fp/parseWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/parseWithOptions/index.js create mode 100644 node_modules/date-fns/fp/parseWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/parseWithOptions/package.json create mode 100644 node_modules/date-fns/fp/previousDay/index.d.ts create mode 100644 node_modules/date-fns/fp/previousDay/index.js create mode 100644 node_modules/date-fns/fp/previousDay/index.js.flow create mode 100644 node_modules/date-fns/fp/previousDay/package.json create mode 100644 node_modules/date-fns/fp/previousFriday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousFriday/index.js create mode 100644 node_modules/date-fns/fp/previousFriday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousFriday/package.json create mode 100644 node_modules/date-fns/fp/previousMonday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousMonday/index.js create mode 100644 node_modules/date-fns/fp/previousMonday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousMonday/package.json create mode 100644 node_modules/date-fns/fp/previousSaturday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousSaturday/index.js create mode 100644 node_modules/date-fns/fp/previousSaturday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousSaturday/package.json create mode 100644 node_modules/date-fns/fp/previousSunday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousSunday/index.js create mode 100644 node_modules/date-fns/fp/previousSunday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousSunday/package.json create mode 100644 node_modules/date-fns/fp/previousThursday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousThursday/index.js create mode 100644 node_modules/date-fns/fp/previousThursday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousThursday/package.json create mode 100644 node_modules/date-fns/fp/previousTuesday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousTuesday/index.js create mode 100644 node_modules/date-fns/fp/previousTuesday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousTuesday/package.json create mode 100644 node_modules/date-fns/fp/previousWednesday/index.d.ts create mode 100644 node_modules/date-fns/fp/previousWednesday/index.js create mode 100644 node_modules/date-fns/fp/previousWednesday/index.js.flow create mode 100644 node_modules/date-fns/fp/previousWednesday/package.json create mode 100644 node_modules/date-fns/fp/quartersToMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/quartersToMonths/index.js create mode 100644 node_modules/date-fns/fp/quartersToMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/quartersToMonths/package.json create mode 100644 node_modules/date-fns/fp/quartersToYears/index.d.ts create mode 100644 node_modules/date-fns/fp/quartersToYears/index.js create mode 100644 node_modules/date-fns/fp/quartersToYears/index.js.flow create mode 100644 node_modules/date-fns/fp/quartersToYears/package.json create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes/index.js create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/roundToNearestMinutes/package.json create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/roundToNearestMinutesWithOptions/package.json create mode 100644 node_modules/date-fns/fp/secondsToHours/index.d.ts create mode 100644 node_modules/date-fns/fp/secondsToHours/index.js create mode 100644 node_modules/date-fns/fp/secondsToHours/index.js.flow create mode 100644 node_modules/date-fns/fp/secondsToHours/package.json create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/secondsToMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/secondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/secondsToMinutes/index.js create mode 100644 node_modules/date-fns/fp/secondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/secondsToMinutes/package.json create mode 100644 node_modules/date-fns/fp/set/index.d.ts create mode 100644 node_modules/date-fns/fp/set/index.js create mode 100644 node_modules/date-fns/fp/set/index.js.flow create mode 100644 node_modules/date-fns/fp/set/package.json create mode 100644 node_modules/date-fns/fp/setDate/index.d.ts create mode 100644 node_modules/date-fns/fp/setDate/index.js create mode 100644 node_modules/date-fns/fp/setDate/index.js.flow create mode 100644 node_modules/date-fns/fp/setDate/package.json create mode 100644 node_modules/date-fns/fp/setDay/index.d.ts create mode 100644 node_modules/date-fns/fp/setDay/index.js create mode 100644 node_modules/date-fns/fp/setDay/index.js.flow create mode 100644 node_modules/date-fns/fp/setDay/package.json create mode 100644 node_modules/date-fns/fp/setDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/setDayOfYear/index.js create mode 100644 node_modules/date-fns/fp/setDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/setDayOfYear/package.json create mode 100644 node_modules/date-fns/fp/setDayWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/setDayWithOptions/index.js create mode 100644 node_modules/date-fns/fp/setDayWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/setDayWithOptions/package.json create mode 100644 node_modules/date-fns/fp/setHours/index.d.ts create mode 100644 node_modules/date-fns/fp/setHours/index.js create mode 100644 node_modules/date-fns/fp/setHours/index.js.flow create mode 100644 node_modules/date-fns/fp/setHours/package.json create mode 100644 node_modules/date-fns/fp/setISODay/index.d.ts create mode 100644 node_modules/date-fns/fp/setISODay/index.js create mode 100644 node_modules/date-fns/fp/setISODay/index.js.flow create mode 100644 node_modules/date-fns/fp/setISODay/package.json create mode 100644 node_modules/date-fns/fp/setISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeek/index.js create mode 100644 node_modules/date-fns/fp/setISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/setISOWeek/package.json create mode 100644 node_modules/date-fns/fp/setISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/setISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/setISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/setISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/setMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/setMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/setMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/setMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/setMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/setMinutes/index.js create mode 100644 node_modules/date-fns/fp/setMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/setMinutes/package.json create mode 100644 node_modules/date-fns/fp/setMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/setMonth/index.js create mode 100644 node_modules/date-fns/fp/setMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/setMonth/package.json create mode 100644 node_modules/date-fns/fp/setQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/setQuarter/index.js create mode 100644 node_modules/date-fns/fp/setQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/setQuarter/package.json create mode 100644 node_modules/date-fns/fp/setSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/setSeconds/index.js create mode 100644 node_modules/date-fns/fp/setSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/setSeconds/package.json create mode 100644 node_modules/date-fns/fp/setWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/setWeek/index.js create mode 100644 node_modules/date-fns/fp/setWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/setWeek/package.json create mode 100644 node_modules/date-fns/fp/setWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/setWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/setWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/setWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/setWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/setWeekYear/index.js create mode 100644 node_modules/date-fns/fp/setWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/setWeekYear/package.json create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/setWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/fp/setYear/index.d.ts create mode 100644 node_modules/date-fns/fp/setYear/index.js create mode 100644 node_modules/date-fns/fp/setYear/index.js.flow create mode 100644 node_modules/date-fns/fp/setYear/package.json create mode 100644 node_modules/date-fns/fp/startOfDay/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfDay/index.js create mode 100644 node_modules/date-fns/fp/startOfDay/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfDay/package.json create mode 100644 node_modules/date-fns/fp/startOfDecade/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfDecade/index.js create mode 100644 node_modules/date-fns/fp/startOfDecade/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfDecade/package.json create mode 100644 node_modules/date-fns/fp/startOfHour/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfHour/index.js create mode 100644 node_modules/date-fns/fp/startOfHour/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfHour/package.json create mode 100644 node_modules/date-fns/fp/startOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeek/index.js create mode 100644 node_modules/date-fns/fp/startOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfISOWeek/package.json create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/fp/startOfMinute/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfMinute/index.js create mode 100644 node_modules/date-fns/fp/startOfMinute/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfMinute/package.json create mode 100644 node_modules/date-fns/fp/startOfMonth/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfMonth/index.js create mode 100644 node_modules/date-fns/fp/startOfMonth/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfMonth/package.json create mode 100644 node_modules/date-fns/fp/startOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfQuarter/index.js create mode 100644 node_modules/date-fns/fp/startOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfQuarter/package.json create mode 100644 node_modules/date-fns/fp/startOfSecond/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfSecond/index.js create mode 100644 node_modules/date-fns/fp/startOfSecond/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfSecond/package.json create mode 100644 node_modules/date-fns/fp/startOfWeek/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeek/index.js create mode 100644 node_modules/date-fns/fp/startOfWeek/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfWeek/package.json create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions/index.js create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfWeekWithOptions/package.json create mode 100644 node_modules/date-fns/fp/startOfWeekYear/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekYear/index.js create mode 100644 node_modules/date-fns/fp/startOfWeekYear/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfWeekYear/package.json create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfWeekYearWithOptions/package.json create mode 100644 node_modules/date-fns/fp/startOfYear/index.d.ts create mode 100644 node_modules/date-fns/fp/startOfYear/index.js create mode 100644 node_modules/date-fns/fp/startOfYear/index.js.flow create mode 100644 node_modules/date-fns/fp/startOfYear/package.json create mode 100644 node_modules/date-fns/fp/sub/index.d.ts create mode 100644 node_modules/date-fns/fp/sub/index.js create mode 100644 node_modules/date-fns/fp/sub/index.js.flow create mode 100644 node_modules/date-fns/fp/sub/package.json create mode 100644 node_modules/date-fns/fp/subBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/fp/subBusinessDays/index.js create mode 100644 node_modules/date-fns/fp/subBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/fp/subBusinessDays/package.json create mode 100644 node_modules/date-fns/fp/subDays/index.d.ts create mode 100644 node_modules/date-fns/fp/subDays/index.js create mode 100644 node_modules/date-fns/fp/subDays/index.js.flow create mode 100644 node_modules/date-fns/fp/subDays/package.json create mode 100644 node_modules/date-fns/fp/subHours/index.d.ts create mode 100644 node_modules/date-fns/fp/subHours/index.js create mode 100644 node_modules/date-fns/fp/subHours/index.js.flow create mode 100644 node_modules/date-fns/fp/subHours/package.json create mode 100644 node_modules/date-fns/fp/subISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/fp/subISOWeekYears/index.js create mode 100644 node_modules/date-fns/fp/subISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/fp/subISOWeekYears/package.json create mode 100644 node_modules/date-fns/fp/subMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/fp/subMilliseconds/index.js create mode 100644 node_modules/date-fns/fp/subMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/fp/subMilliseconds/package.json create mode 100644 node_modules/date-fns/fp/subMinutes/index.d.ts create mode 100644 node_modules/date-fns/fp/subMinutes/index.js create mode 100644 node_modules/date-fns/fp/subMinutes/index.js.flow create mode 100644 node_modules/date-fns/fp/subMinutes/package.json create mode 100644 node_modules/date-fns/fp/subMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/subMonths/index.js create mode 100644 node_modules/date-fns/fp/subMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/subMonths/package.json create mode 100644 node_modules/date-fns/fp/subQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/subQuarters/index.js create mode 100644 node_modules/date-fns/fp/subQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/subQuarters/package.json create mode 100644 node_modules/date-fns/fp/subSeconds/index.d.ts create mode 100644 node_modules/date-fns/fp/subSeconds/index.js create mode 100644 node_modules/date-fns/fp/subSeconds/index.js.flow create mode 100644 node_modules/date-fns/fp/subSeconds/package.json create mode 100644 node_modules/date-fns/fp/subWeeks/index.d.ts create mode 100644 node_modules/date-fns/fp/subWeeks/index.js create mode 100644 node_modules/date-fns/fp/subWeeks/index.js.flow create mode 100644 node_modules/date-fns/fp/subWeeks/package.json create mode 100644 node_modules/date-fns/fp/subYears/index.d.ts create mode 100644 node_modules/date-fns/fp/subYears/index.js create mode 100644 node_modules/date-fns/fp/subYears/index.js.flow create mode 100644 node_modules/date-fns/fp/subYears/package.json create mode 100644 node_modules/date-fns/fp/toDate/index.d.ts create mode 100644 node_modules/date-fns/fp/toDate/index.js create mode 100644 node_modules/date-fns/fp/toDate/index.js.flow create mode 100644 node_modules/date-fns/fp/toDate/package.json create mode 100644 node_modules/date-fns/fp/weeksToDays/index.d.ts create mode 100644 node_modules/date-fns/fp/weeksToDays/index.js create mode 100644 node_modules/date-fns/fp/weeksToDays/index.js.flow create mode 100644 node_modules/date-fns/fp/weeksToDays/package.json create mode 100644 node_modules/date-fns/fp/yearsToMonths/index.d.ts create mode 100644 node_modules/date-fns/fp/yearsToMonths/index.js create mode 100644 node_modules/date-fns/fp/yearsToMonths/index.js.flow create mode 100644 node_modules/date-fns/fp/yearsToMonths/package.json create mode 100644 node_modules/date-fns/fp/yearsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/fp/yearsToQuarters/index.js create mode 100644 node_modules/date-fns/fp/yearsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/fp/yearsToQuarters/package.json create mode 100644 node_modules/date-fns/fromUnixTime/index.d.ts create mode 100644 node_modules/date-fns/fromUnixTime/index.js create mode 100644 node_modules/date-fns/fromUnixTime/index.js.flow create mode 100644 node_modules/date-fns/fromUnixTime/package.json create mode 100644 node_modules/date-fns/getDate/index.d.ts create mode 100644 node_modules/date-fns/getDate/index.js create mode 100644 node_modules/date-fns/getDate/index.js.flow create mode 100644 node_modules/date-fns/getDate/package.json create mode 100644 node_modules/date-fns/getDay/index.d.ts create mode 100644 node_modules/date-fns/getDay/index.js create mode 100644 node_modules/date-fns/getDay/index.js.flow create mode 100644 node_modules/date-fns/getDay/package.json create mode 100644 node_modules/date-fns/getDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/getDayOfYear/index.js create mode 100644 node_modules/date-fns/getDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/getDayOfYear/package.json create mode 100644 node_modules/date-fns/getDaysInMonth/index.d.ts create mode 100644 node_modules/date-fns/getDaysInMonth/index.js create mode 100644 node_modules/date-fns/getDaysInMonth/index.js.flow create mode 100644 node_modules/date-fns/getDaysInMonth/package.json create mode 100644 node_modules/date-fns/getDaysInYear/index.d.ts create mode 100644 node_modules/date-fns/getDaysInYear/index.js create mode 100644 node_modules/date-fns/getDaysInYear/index.js.flow create mode 100644 node_modules/date-fns/getDaysInYear/package.json create mode 100644 node_modules/date-fns/getDecade/index.d.ts create mode 100644 node_modules/date-fns/getDecade/index.js create mode 100644 node_modules/date-fns/getDecade/index.js.flow create mode 100644 node_modules/date-fns/getDecade/package.json create mode 100644 node_modules/date-fns/getDefaultOptions/index.d.ts create mode 100644 node_modules/date-fns/getDefaultOptions/index.js create mode 100644 node_modules/date-fns/getDefaultOptions/index.js.flow create mode 100644 node_modules/date-fns/getDefaultOptions/package.json create mode 100644 node_modules/date-fns/getHours/index.d.ts create mode 100644 node_modules/date-fns/getHours/index.js create mode 100644 node_modules/date-fns/getHours/index.js.flow create mode 100644 node_modules/date-fns/getHours/package.json create mode 100644 node_modules/date-fns/getISODay/index.d.ts create mode 100644 node_modules/date-fns/getISODay/index.js create mode 100644 node_modules/date-fns/getISODay/index.js.flow create mode 100644 node_modules/date-fns/getISODay/package.json create mode 100644 node_modules/date-fns/getISOWeek/index.d.ts create mode 100644 node_modules/date-fns/getISOWeek/index.js create mode 100644 node_modules/date-fns/getISOWeek/index.js.flow create mode 100644 node_modules/date-fns/getISOWeek/package.json create mode 100644 node_modules/date-fns/getISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/getISOWeekYear/index.js create mode 100644 node_modules/date-fns/getISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/getISOWeekYear/package.json create mode 100644 node_modules/date-fns/getISOWeeksInYear/index.d.ts create mode 100644 node_modules/date-fns/getISOWeeksInYear/index.js create mode 100644 node_modules/date-fns/getISOWeeksInYear/index.js.flow create mode 100644 node_modules/date-fns/getISOWeeksInYear/package.json create mode 100644 node_modules/date-fns/getMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/getMilliseconds/index.js create mode 100644 node_modules/date-fns/getMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/getMilliseconds/package.json create mode 100644 node_modules/date-fns/getMinutes/index.d.ts create mode 100644 node_modules/date-fns/getMinutes/index.js create mode 100644 node_modules/date-fns/getMinutes/index.js.flow create mode 100644 node_modules/date-fns/getMinutes/package.json create mode 100644 node_modules/date-fns/getMonth/index.d.ts create mode 100644 node_modules/date-fns/getMonth/index.js create mode 100644 node_modules/date-fns/getMonth/index.js.flow create mode 100644 node_modules/date-fns/getMonth/package.json create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals/index.d.ts create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals/index.js create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals/index.js.flow create mode 100644 node_modules/date-fns/getOverlappingDaysInIntervals/package.json create mode 100644 node_modules/date-fns/getQuarter/index.d.ts create mode 100644 node_modules/date-fns/getQuarter/index.js create mode 100644 node_modules/date-fns/getQuarter/index.js.flow create mode 100644 node_modules/date-fns/getQuarter/package.json create mode 100644 node_modules/date-fns/getSeconds/index.d.ts create mode 100644 node_modules/date-fns/getSeconds/index.js create mode 100644 node_modules/date-fns/getSeconds/index.js.flow create mode 100644 node_modules/date-fns/getSeconds/package.json create mode 100644 node_modules/date-fns/getTime/index.d.ts create mode 100644 node_modules/date-fns/getTime/index.js create mode 100644 node_modules/date-fns/getTime/index.js.flow create mode 100644 node_modules/date-fns/getTime/package.json create mode 100644 node_modules/date-fns/getUnixTime/index.d.ts create mode 100644 node_modules/date-fns/getUnixTime/index.js create mode 100644 node_modules/date-fns/getUnixTime/index.js.flow create mode 100644 node_modules/date-fns/getUnixTime/package.json create mode 100644 node_modules/date-fns/getWeek/index.d.ts create mode 100644 node_modules/date-fns/getWeek/index.js create mode 100644 node_modules/date-fns/getWeek/index.js.flow create mode 100644 node_modules/date-fns/getWeek/package.json create mode 100644 node_modules/date-fns/getWeekOfMonth/index.d.ts create mode 100644 node_modules/date-fns/getWeekOfMonth/index.js create mode 100644 node_modules/date-fns/getWeekOfMonth/index.js.flow create mode 100644 node_modules/date-fns/getWeekOfMonth/package.json create mode 100644 node_modules/date-fns/getWeekYear/index.d.ts create mode 100644 node_modules/date-fns/getWeekYear/index.js create mode 100644 node_modules/date-fns/getWeekYear/index.js.flow create mode 100644 node_modules/date-fns/getWeekYear/package.json create mode 100644 node_modules/date-fns/getWeeksInMonth/index.d.ts create mode 100644 node_modules/date-fns/getWeeksInMonth/index.js create mode 100644 node_modules/date-fns/getWeeksInMonth/index.js.flow create mode 100644 node_modules/date-fns/getWeeksInMonth/package.json create mode 100644 node_modules/date-fns/getYear/index.d.ts create mode 100644 node_modules/date-fns/getYear/index.js create mode 100644 node_modules/date-fns/getYear/index.js.flow create mode 100644 node_modules/date-fns/getYear/package.json create mode 100644 node_modules/date-fns/hoursToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/hoursToMilliseconds/index.js create mode 100644 node_modules/date-fns/hoursToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/hoursToMilliseconds/package.json create mode 100644 node_modules/date-fns/hoursToMinutes/index.d.ts create mode 100644 node_modules/date-fns/hoursToMinutes/index.js create mode 100644 node_modules/date-fns/hoursToMinutes/index.js.flow create mode 100644 node_modules/date-fns/hoursToMinutes/package.json create mode 100644 node_modules/date-fns/hoursToSeconds/index.d.ts create mode 100644 node_modules/date-fns/hoursToSeconds/index.js create mode 100644 node_modules/date-fns/hoursToSeconds/index.js.flow create mode 100644 node_modules/date-fns/hoursToSeconds/package.json create mode 100755 node_modules/date-fns/index.js create mode 100644 node_modules/date-fns/index.js.flow create mode 100644 node_modules/date-fns/intervalToDuration/index.d.ts create mode 100644 node_modules/date-fns/intervalToDuration/index.js create mode 100644 node_modules/date-fns/intervalToDuration/index.js.flow create mode 100644 node_modules/date-fns/intervalToDuration/package.json create mode 100644 node_modules/date-fns/intlFormat/index.d.ts create mode 100644 node_modules/date-fns/intlFormat/index.js create mode 100644 node_modules/date-fns/intlFormat/index.js.flow create mode 100644 node_modules/date-fns/intlFormat/package.json create mode 100644 node_modules/date-fns/intlFormatDistance/index.d.ts create mode 100644 node_modules/date-fns/intlFormatDistance/index.js create mode 100644 node_modules/date-fns/intlFormatDistance/index.js.flow create mode 100644 node_modules/date-fns/intlFormatDistance/package.json create mode 100644 node_modules/date-fns/isAfter/index.d.ts create mode 100644 node_modules/date-fns/isAfter/index.js create mode 100644 node_modules/date-fns/isAfter/index.js.flow create mode 100644 node_modules/date-fns/isAfter/package.json create mode 100644 node_modules/date-fns/isBefore/index.d.ts create mode 100644 node_modules/date-fns/isBefore/index.js create mode 100644 node_modules/date-fns/isBefore/index.js.flow create mode 100644 node_modules/date-fns/isBefore/package.json create mode 100644 node_modules/date-fns/isDate/index.d.ts create mode 100644 node_modules/date-fns/isDate/index.js create mode 100644 node_modules/date-fns/isDate/index.js.flow create mode 100644 node_modules/date-fns/isDate/package.json create mode 100644 node_modules/date-fns/isEqual/index.d.ts create mode 100644 node_modules/date-fns/isEqual/index.js create mode 100644 node_modules/date-fns/isEqual/index.js.flow create mode 100644 node_modules/date-fns/isEqual/package.json create mode 100644 node_modules/date-fns/isExists/index.d.ts create mode 100644 node_modules/date-fns/isExists/index.js create mode 100644 node_modules/date-fns/isExists/index.js.flow create mode 100644 node_modules/date-fns/isExists/package.json create mode 100644 node_modules/date-fns/isFirstDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/isFirstDayOfMonth/index.js create mode 100644 node_modules/date-fns/isFirstDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/isFirstDayOfMonth/package.json create mode 100644 node_modules/date-fns/isFriday/index.d.ts create mode 100644 node_modules/date-fns/isFriday/index.js create mode 100644 node_modules/date-fns/isFriday/index.js.flow create mode 100644 node_modules/date-fns/isFriday/package.json create mode 100644 node_modules/date-fns/isFuture/index.d.ts create mode 100644 node_modules/date-fns/isFuture/index.js create mode 100644 node_modules/date-fns/isFuture/index.js.flow create mode 100644 node_modules/date-fns/isFuture/package.json create mode 100644 node_modules/date-fns/isLastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/isLastDayOfMonth/index.js create mode 100644 node_modules/date-fns/isLastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/isLastDayOfMonth/package.json create mode 100644 node_modules/date-fns/isLeapYear/index.d.ts create mode 100644 node_modules/date-fns/isLeapYear/index.js create mode 100644 node_modules/date-fns/isLeapYear/index.js.flow create mode 100644 node_modules/date-fns/isLeapYear/package.json create mode 100644 node_modules/date-fns/isMatch/index.d.ts create mode 100644 node_modules/date-fns/isMatch/index.js create mode 100644 node_modules/date-fns/isMatch/index.js.flow create mode 100644 node_modules/date-fns/isMatch/package.json create mode 100644 node_modules/date-fns/isMonday/index.d.ts create mode 100644 node_modules/date-fns/isMonday/index.js create mode 100644 node_modules/date-fns/isMonday/index.js.flow create mode 100644 node_modules/date-fns/isMonday/package.json create mode 100644 node_modules/date-fns/isPast/index.d.ts create mode 100644 node_modules/date-fns/isPast/index.js create mode 100644 node_modules/date-fns/isPast/index.js.flow create mode 100644 node_modules/date-fns/isPast/package.json create mode 100644 node_modules/date-fns/isSameDay/index.d.ts create mode 100644 node_modules/date-fns/isSameDay/index.js create mode 100644 node_modules/date-fns/isSameDay/index.js.flow create mode 100644 node_modules/date-fns/isSameDay/package.json create mode 100644 node_modules/date-fns/isSameHour/index.d.ts create mode 100644 node_modules/date-fns/isSameHour/index.js create mode 100644 node_modules/date-fns/isSameHour/index.js.flow create mode 100644 node_modules/date-fns/isSameHour/package.json create mode 100644 node_modules/date-fns/isSameISOWeek/index.d.ts create mode 100644 node_modules/date-fns/isSameISOWeek/index.js create mode 100644 node_modules/date-fns/isSameISOWeek/index.js.flow create mode 100644 node_modules/date-fns/isSameISOWeek/package.json create mode 100644 node_modules/date-fns/isSameISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/isSameISOWeekYear/index.js create mode 100644 node_modules/date-fns/isSameISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/isSameISOWeekYear/package.json create mode 100644 node_modules/date-fns/isSameMinute/index.d.ts create mode 100644 node_modules/date-fns/isSameMinute/index.js create mode 100644 node_modules/date-fns/isSameMinute/index.js.flow create mode 100644 node_modules/date-fns/isSameMinute/package.json create mode 100644 node_modules/date-fns/isSameMonth/index.d.ts create mode 100644 node_modules/date-fns/isSameMonth/index.js create mode 100644 node_modules/date-fns/isSameMonth/index.js.flow create mode 100644 node_modules/date-fns/isSameMonth/package.json create mode 100644 node_modules/date-fns/isSameQuarter/index.d.ts create mode 100644 node_modules/date-fns/isSameQuarter/index.js create mode 100644 node_modules/date-fns/isSameQuarter/index.js.flow create mode 100644 node_modules/date-fns/isSameQuarter/package.json create mode 100644 node_modules/date-fns/isSameSecond/index.d.ts create mode 100644 node_modules/date-fns/isSameSecond/index.js create mode 100644 node_modules/date-fns/isSameSecond/index.js.flow create mode 100644 node_modules/date-fns/isSameSecond/package.json create mode 100644 node_modules/date-fns/isSameWeek/index.d.ts create mode 100644 node_modules/date-fns/isSameWeek/index.js create mode 100644 node_modules/date-fns/isSameWeek/index.js.flow create mode 100644 node_modules/date-fns/isSameWeek/package.json create mode 100644 node_modules/date-fns/isSameYear/index.d.ts create mode 100644 node_modules/date-fns/isSameYear/index.js create mode 100644 node_modules/date-fns/isSameYear/index.js.flow create mode 100644 node_modules/date-fns/isSameYear/package.json create mode 100644 node_modules/date-fns/isSaturday/index.d.ts create mode 100644 node_modules/date-fns/isSaturday/index.js create mode 100644 node_modules/date-fns/isSaturday/index.js.flow create mode 100644 node_modules/date-fns/isSaturday/package.json create mode 100644 node_modules/date-fns/isSunday/index.d.ts create mode 100644 node_modules/date-fns/isSunday/index.js create mode 100644 node_modules/date-fns/isSunday/index.js.flow create mode 100644 node_modules/date-fns/isSunday/package.json create mode 100644 node_modules/date-fns/isThisHour/index.d.ts create mode 100644 node_modules/date-fns/isThisHour/index.js create mode 100644 node_modules/date-fns/isThisHour/index.js.flow create mode 100644 node_modules/date-fns/isThisHour/package.json create mode 100644 node_modules/date-fns/isThisISOWeek/index.d.ts create mode 100644 node_modules/date-fns/isThisISOWeek/index.js create mode 100644 node_modules/date-fns/isThisISOWeek/index.js.flow create mode 100644 node_modules/date-fns/isThisISOWeek/package.json create mode 100644 node_modules/date-fns/isThisMinute/index.d.ts create mode 100644 node_modules/date-fns/isThisMinute/index.js create mode 100644 node_modules/date-fns/isThisMinute/index.js.flow create mode 100644 node_modules/date-fns/isThisMinute/package.json create mode 100644 node_modules/date-fns/isThisMonth/index.d.ts create mode 100644 node_modules/date-fns/isThisMonth/index.js create mode 100644 node_modules/date-fns/isThisMonth/index.js.flow create mode 100644 node_modules/date-fns/isThisMonth/package.json create mode 100644 node_modules/date-fns/isThisQuarter/index.d.ts create mode 100644 node_modules/date-fns/isThisQuarter/index.js create mode 100644 node_modules/date-fns/isThisQuarter/index.js.flow create mode 100644 node_modules/date-fns/isThisQuarter/package.json create mode 100644 node_modules/date-fns/isThisSecond/index.d.ts create mode 100644 node_modules/date-fns/isThisSecond/index.js create mode 100644 node_modules/date-fns/isThisSecond/index.js.flow create mode 100644 node_modules/date-fns/isThisSecond/package.json create mode 100644 node_modules/date-fns/isThisWeek/index.d.ts create mode 100644 node_modules/date-fns/isThisWeek/index.js create mode 100644 node_modules/date-fns/isThisWeek/index.js.flow create mode 100644 node_modules/date-fns/isThisWeek/package.json create mode 100644 node_modules/date-fns/isThisYear/index.d.ts create mode 100644 node_modules/date-fns/isThisYear/index.js create mode 100644 node_modules/date-fns/isThisYear/index.js.flow create mode 100644 node_modules/date-fns/isThisYear/package.json create mode 100644 node_modules/date-fns/isThursday/index.d.ts create mode 100644 node_modules/date-fns/isThursday/index.js create mode 100644 node_modules/date-fns/isThursday/index.js.flow create mode 100644 node_modules/date-fns/isThursday/package.json create mode 100644 node_modules/date-fns/isToday/index.d.ts create mode 100644 node_modules/date-fns/isToday/index.js create mode 100644 node_modules/date-fns/isToday/index.js.flow create mode 100644 node_modules/date-fns/isToday/package.json create mode 100644 node_modules/date-fns/isTomorrow/index.d.ts create mode 100644 node_modules/date-fns/isTomorrow/index.js create mode 100644 node_modules/date-fns/isTomorrow/index.js.flow create mode 100644 node_modules/date-fns/isTomorrow/package.json create mode 100644 node_modules/date-fns/isTuesday/index.d.ts create mode 100644 node_modules/date-fns/isTuesday/index.js create mode 100644 node_modules/date-fns/isTuesday/index.js.flow create mode 100644 node_modules/date-fns/isTuesday/package.json create mode 100644 node_modules/date-fns/isValid/index.d.ts create mode 100644 node_modules/date-fns/isValid/index.js create mode 100644 node_modules/date-fns/isValid/index.js.flow create mode 100644 node_modules/date-fns/isValid/package.json create mode 100644 node_modules/date-fns/isWednesday/index.d.ts create mode 100644 node_modules/date-fns/isWednesday/index.js create mode 100644 node_modules/date-fns/isWednesday/index.js.flow create mode 100644 node_modules/date-fns/isWednesday/package.json create mode 100644 node_modules/date-fns/isWeekend/index.d.ts create mode 100644 node_modules/date-fns/isWeekend/index.js create mode 100644 node_modules/date-fns/isWeekend/index.js.flow create mode 100644 node_modules/date-fns/isWeekend/package.json create mode 100644 node_modules/date-fns/isWithinInterval/index.d.ts create mode 100644 node_modules/date-fns/isWithinInterval/index.js create mode 100644 node_modules/date-fns/isWithinInterval/index.js.flow create mode 100644 node_modules/date-fns/isWithinInterval/package.json create mode 100644 node_modules/date-fns/isYesterday/index.d.ts create mode 100644 node_modules/date-fns/isYesterday/index.js create mode 100644 node_modules/date-fns/isYesterday/index.js.flow create mode 100644 node_modules/date-fns/isYesterday/package.json create mode 100644 node_modules/date-fns/lastDayOfDecade/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfDecade/index.js create mode 100644 node_modules/date-fns/lastDayOfDecade/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfDecade/package.json create mode 100644 node_modules/date-fns/lastDayOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfISOWeek/index.js create mode 100644 node_modules/date-fns/lastDayOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfISOWeek/package.json create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/lastDayOfMonth/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfMonth/index.js create mode 100644 node_modules/date-fns/lastDayOfMonth/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfMonth/package.json create mode 100644 node_modules/date-fns/lastDayOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfQuarter/index.js create mode 100644 node_modules/date-fns/lastDayOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfQuarter/package.json create mode 100644 node_modules/date-fns/lastDayOfWeek/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfWeek/index.js create mode 100644 node_modules/date-fns/lastDayOfWeek/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfWeek/package.json create mode 100644 node_modules/date-fns/lastDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/lastDayOfYear/index.js create mode 100644 node_modules/date-fns/lastDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/lastDayOfYear/package.json create mode 100644 node_modules/date-fns/lightFormat/index.d.ts create mode 100644 node_modules/date-fns/lightFormat/index.js create mode 100644 node_modules/date-fns/lightFormat/index.js.flow create mode 100644 node_modules/date-fns/lightFormat/package.json create mode 100644 node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js create mode 100644 node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js create mode 100644 node_modules/date-fns/locale/_lib/buildMatchFn/index.js create mode 100644 node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/af/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/af/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/af/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/af/index.d.ts create mode 100644 node_modules/date-fns/locale/af/index.js create mode 100644 node_modules/date-fns/locale/af/index.js.flow create mode 100644 node_modules/date-fns/locale/af/package.json create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/index.d.ts create mode 100644 node_modules/date-fns/locale/ar-DZ/index.js create mode 100644 node_modules/date-fns/locale/ar-DZ/index.js.flow create mode 100644 node_modules/date-fns/locale/ar-DZ/package.json create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/index.d.ts create mode 100644 node_modules/date-fns/locale/ar-EG/index.js create mode 100644 node_modules/date-fns/locale/ar-EG/index.js.flow create mode 100644 node_modules/date-fns/locale/ar-EG/package.json create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/index.d.ts create mode 100644 node_modules/date-fns/locale/ar-MA/index.js create mode 100644 node_modules/date-fns/locale/ar-MA/index.js.flow create mode 100644 node_modules/date-fns/locale/ar-MA/package.json create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/index.d.ts create mode 100644 node_modules/date-fns/locale/ar-SA/index.js create mode 100644 node_modules/date-fns/locale/ar-SA/index.js.flow create mode 100644 node_modules/date-fns/locale/ar-SA/package.json create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/index.d.ts create mode 100644 node_modules/date-fns/locale/ar-TN/index.js create mode 100644 node_modules/date-fns/locale/ar-TN/index.js.flow create mode 100644 node_modules/date-fns/locale/ar-TN/package.json create mode 100644 node_modules/date-fns/locale/ar/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ar/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ar/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ar/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ar/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ar/index.d.ts create mode 100644 node_modules/date-fns/locale/ar/index.js create mode 100644 node_modules/date-fns/locale/ar/index.js.flow create mode 100644 node_modules/date-fns/locale/ar/package.json create mode 100644 node_modules/date-fns/locale/az/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/az/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/az/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/az/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/az/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/az/index.d.ts create mode 100644 node_modules/date-fns/locale/az/index.js create mode 100644 node_modules/date-fns/locale/az/index.js.flow create mode 100644 node_modules/date-fns/locale/az/package.json create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/index.d.ts create mode 100644 node_modules/date-fns/locale/be-tarask/index.js create mode 100644 node_modules/date-fns/locale/be-tarask/index.js.flow create mode 100644 node_modules/date-fns/locale/be-tarask/package.json create mode 100644 node_modules/date-fns/locale/be/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/be/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/be/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/be/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/be/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/be/index.d.ts create mode 100644 node_modules/date-fns/locale/be/index.js create mode 100644 node_modules/date-fns/locale/be/index.js.flow create mode 100644 node_modules/date-fns/locale/be/package.json create mode 100644 node_modules/date-fns/locale/bg/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/bg/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/bg/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/bg/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/bg/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/bg/index.d.ts create mode 100644 node_modules/date-fns/locale/bg/index.js create mode 100644 node_modules/date-fns/locale/bg/index.js.flow create mode 100644 node_modules/date-fns/locale/bg/package.json create mode 100644 node_modules/date-fns/locale/bn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/bn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/bn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/bn/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/bn/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/bn/index.d.ts create mode 100644 node_modules/date-fns/locale/bn/index.js create mode 100644 node_modules/date-fns/locale/bn/index.js.flow create mode 100644 node_modules/date-fns/locale/bn/package.json create mode 100644 node_modules/date-fns/locale/bs/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/bs/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/bs/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/bs/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/bs/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/bs/index.d.ts create mode 100644 node_modules/date-fns/locale/bs/index.js create mode 100644 node_modules/date-fns/locale/bs/index.js.flow create mode 100644 node_modules/date-fns/locale/bs/package.json create mode 100644 node_modules/date-fns/locale/ca/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ca/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ca/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ca/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ca/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ca/index.d.ts create mode 100644 node_modules/date-fns/locale/ca/index.js create mode 100644 node_modules/date-fns/locale/ca/index.js.flow create mode 100644 node_modules/date-fns/locale/ca/package.json create mode 100644 node_modules/date-fns/locale/cs/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/cs/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/cs/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/cs/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/cs/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/cs/index.d.ts create mode 100644 node_modules/date-fns/locale/cs/index.js create mode 100644 node_modules/date-fns/locale/cs/index.js.flow create mode 100644 node_modules/date-fns/locale/cs/package.json create mode 100644 node_modules/date-fns/locale/cy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/cy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/cy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/cy/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/cy/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/cy/index.d.ts create mode 100644 node_modules/date-fns/locale/cy/index.js create mode 100644 node_modules/date-fns/locale/cy/index.js.flow create mode 100644 node_modules/date-fns/locale/cy/package.json create mode 100644 node_modules/date-fns/locale/da/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/da/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/da/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/da/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/da/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/da/index.d.ts create mode 100644 node_modules/date-fns/locale/da/index.js create mode 100644 node_modules/date-fns/locale/da/index.js.flow create mode 100644 node_modules/date-fns/locale/da/package.json create mode 100644 node_modules/date-fns/locale/de-AT/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/de-AT/index.d.ts create mode 100644 node_modules/date-fns/locale/de-AT/index.js create mode 100644 node_modules/date-fns/locale/de-AT/index.js.flow create mode 100644 node_modules/date-fns/locale/de-AT/package.json create mode 100644 node_modules/date-fns/locale/de/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/de/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/de/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/de/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/de/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/de/index.d.ts create mode 100644 node_modules/date-fns/locale/de/index.js create mode 100644 node_modules/date-fns/locale/de/index.js.flow create mode 100644 node_modules/date-fns/locale/de/package.json create mode 100644 node_modules/date-fns/locale/el/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/el/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/el/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/el/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/el/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/el/index.d.ts create mode 100644 node_modules/date-fns/locale/el/index.js create mode 100644 node_modules/date-fns/locale/el/index.js.flow create mode 100644 node_modules/date-fns/locale/el/package.json create mode 100644 node_modules/date-fns/locale/en-AU/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-AU/index.d.ts create mode 100644 node_modules/date-fns/locale/en-AU/index.js create mode 100644 node_modules/date-fns/locale/en-AU/index.js.flow create mode 100644 node_modules/date-fns/locale/en-AU/package.json create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/en-CA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-CA/index.d.ts create mode 100644 node_modules/date-fns/locale/en-CA/index.js create mode 100644 node_modules/date-fns/locale/en-CA/index.js.flow create mode 100644 node_modules/date-fns/locale/en-CA/package.json create mode 100644 node_modules/date-fns/locale/en-GB/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-GB/index.d.ts create mode 100644 node_modules/date-fns/locale/en-GB/index.js create mode 100644 node_modules/date-fns/locale/en-GB/index.js.flow create mode 100644 node_modules/date-fns/locale/en-GB/package.json create mode 100644 node_modules/date-fns/locale/en-IE/index.d.ts create mode 100644 node_modules/date-fns/locale/en-IE/index.js create mode 100644 node_modules/date-fns/locale/en-IE/index.js.flow create mode 100644 node_modules/date-fns/locale/en-IE/package.json create mode 100644 node_modules/date-fns/locale/en-IN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-IN/index.d.ts create mode 100644 node_modules/date-fns/locale/en-IN/index.js create mode 100644 node_modules/date-fns/locale/en-IN/index.js.flow create mode 100644 node_modules/date-fns/locale/en-IN/package.json create mode 100644 node_modules/date-fns/locale/en-NZ/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-NZ/index.d.ts create mode 100644 node_modules/date-fns/locale/en-NZ/index.js create mode 100644 node_modules/date-fns/locale/en-NZ/index.js.flow create mode 100644 node_modules/date-fns/locale/en-NZ/package.json create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/en-US/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/en-US/index.d.ts create mode 100644 node_modules/date-fns/locale/en-US/index.js create mode 100644 node_modules/date-fns/locale/en-US/index.js.flow create mode 100644 node_modules/date-fns/locale/en-US/package.json create mode 100644 node_modules/date-fns/locale/en-ZA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/en-ZA/index.d.ts create mode 100644 node_modules/date-fns/locale/en-ZA/index.js create mode 100644 node_modules/date-fns/locale/en-ZA/index.js.flow create mode 100644 node_modules/date-fns/locale/en-ZA/package.json create mode 100644 node_modules/date-fns/locale/eo/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/eo/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/eo/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/eo/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/eo/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/eo/index.d.ts create mode 100644 node_modules/date-fns/locale/eo/index.js create mode 100644 node_modules/date-fns/locale/eo/index.js.flow create mode 100644 node_modules/date-fns/locale/eo/package.json create mode 100644 node_modules/date-fns/locale/es/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/es/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/es/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/es/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/es/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/es/index.d.ts create mode 100644 node_modules/date-fns/locale/es/index.js create mode 100644 node_modules/date-fns/locale/es/index.js.flow create mode 100644 node_modules/date-fns/locale/es/package.json create mode 100644 node_modules/date-fns/locale/et/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/et/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/et/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/et/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/et/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/et/index.d.ts create mode 100644 node_modules/date-fns/locale/et/index.js create mode 100644 node_modules/date-fns/locale/et/index.js.flow create mode 100644 node_modules/date-fns/locale/et/package.json create mode 100644 node_modules/date-fns/locale/eu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/eu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/eu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/eu/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/eu/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/eu/index.d.ts create mode 100644 node_modules/date-fns/locale/eu/index.js create mode 100644 node_modules/date-fns/locale/eu/index.js.flow create mode 100644 node_modules/date-fns/locale/eu/package.json create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/index.d.ts create mode 100644 node_modules/date-fns/locale/fa-IR/index.js create mode 100644 node_modules/date-fns/locale/fa-IR/index.js.flow create mode 100644 node_modules/date-fns/locale/fa-IR/package.json create mode 100644 node_modules/date-fns/locale/fi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/fi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/fi/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/fi/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/fi/index.d.ts create mode 100644 node_modules/date-fns/locale/fi/index.js create mode 100644 node_modules/date-fns/locale/fi/index.js.flow create mode 100644 node_modules/date-fns/locale/fi/package.json create mode 100644 node_modules/date-fns/locale/fr-CA/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fr-CA/index.d.ts create mode 100644 node_modules/date-fns/locale/fr-CA/index.js create mode 100644 node_modules/date-fns/locale/fr-CA/index.js.flow create mode 100644 node_modules/date-fns/locale/fr-CA/package.json create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fr-CH/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/fr-CH/index.d.ts create mode 100644 node_modules/date-fns/locale/fr-CH/index.js create mode 100644 node_modules/date-fns/locale/fr-CH/index.js.flow create mode 100644 node_modules/date-fns/locale/fr-CH/package.json create mode 100644 node_modules/date-fns/locale/fr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/fr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/fr/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/fr/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/fr/index.d.ts create mode 100644 node_modules/date-fns/locale/fr/index.js create mode 100644 node_modules/date-fns/locale/fr/index.js.flow create mode 100644 node_modules/date-fns/locale/fr/package.json create mode 100644 node_modules/date-fns/locale/fy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/fy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/fy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/fy/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/fy/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/fy/index.d.ts create mode 100644 node_modules/date-fns/locale/fy/index.js create mode 100644 node_modules/date-fns/locale/fy/index.js.flow create mode 100644 node_modules/date-fns/locale/fy/package.json create mode 100644 node_modules/date-fns/locale/gd/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/gd/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/gd/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/gd/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/gd/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/gd/index.d.ts create mode 100644 node_modules/date-fns/locale/gd/index.js create mode 100644 node_modules/date-fns/locale/gd/index.js.flow create mode 100644 node_modules/date-fns/locale/gd/package.json create mode 100644 node_modules/date-fns/locale/gl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/gl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/gl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/gl/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/gl/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/gl/index.d.ts create mode 100644 node_modules/date-fns/locale/gl/index.js create mode 100644 node_modules/date-fns/locale/gl/index.js.flow create mode 100644 node_modules/date-fns/locale/gl/package.json create mode 100644 node_modules/date-fns/locale/gu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/gu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/gu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/gu/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/gu/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/gu/index.d.ts create mode 100644 node_modules/date-fns/locale/gu/index.js create mode 100644 node_modules/date-fns/locale/gu/index.js.flow create mode 100644 node_modules/date-fns/locale/gu/package.json create mode 100644 node_modules/date-fns/locale/he/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/he/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/he/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/he/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/he/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/he/index.d.ts create mode 100644 node_modules/date-fns/locale/he/index.js create mode 100644 node_modules/date-fns/locale/he/index.js.flow create mode 100644 node_modules/date-fns/locale/he/package.json create mode 100644 node_modules/date-fns/locale/hi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/hi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/hi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/hi/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/hi/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/hi/index.d.ts create mode 100644 node_modules/date-fns/locale/hi/index.js create mode 100644 node_modules/date-fns/locale/hi/index.js.flow create mode 100644 node_modules/date-fns/locale/hi/package.json create mode 100644 node_modules/date-fns/locale/hr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/hr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/hr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/hr/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/hr/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/hr/index.d.ts create mode 100644 node_modules/date-fns/locale/hr/index.js create mode 100644 node_modules/date-fns/locale/hr/index.js.flow create mode 100644 node_modules/date-fns/locale/hr/package.json create mode 100644 node_modules/date-fns/locale/ht/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ht/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ht/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ht/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ht/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ht/index.d.ts create mode 100644 node_modules/date-fns/locale/ht/index.js create mode 100644 node_modules/date-fns/locale/ht/index.js.flow create mode 100644 node_modules/date-fns/locale/ht/package.json create mode 100644 node_modules/date-fns/locale/hu/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/hu/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/hu/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/hu/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/hu/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/hu/index.d.ts create mode 100644 node_modules/date-fns/locale/hu/index.js create mode 100644 node_modules/date-fns/locale/hu/index.js.flow create mode 100644 node_modules/date-fns/locale/hu/package.json create mode 100644 node_modules/date-fns/locale/hy/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/hy/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/hy/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/hy/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/hy/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/hy/index.d.ts create mode 100644 node_modules/date-fns/locale/hy/index.js create mode 100644 node_modules/date-fns/locale/hy/index.js.flow create mode 100644 node_modules/date-fns/locale/hy/package.json create mode 100644 node_modules/date-fns/locale/id/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/id/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/id/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/id/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/id/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/id/index.d.ts create mode 100644 node_modules/date-fns/locale/id/index.js create mode 100644 node_modules/date-fns/locale/id/index.js.flow create mode 100644 node_modules/date-fns/locale/id/package.json create mode 100644 node_modules/date-fns/locale/index.js create mode 100644 node_modules/date-fns/locale/index.js.flow create mode 100644 node_modules/date-fns/locale/is/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/is/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/is/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/is/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/is/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/is/index.d.ts create mode 100644 node_modules/date-fns/locale/is/index.js create mode 100644 node_modules/date-fns/locale/is/index.js.flow create mode 100644 node_modules/date-fns/locale/is/package.json create mode 100644 node_modules/date-fns/locale/it-CH/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/it-CH/index.d.ts create mode 100644 node_modules/date-fns/locale/it-CH/index.js create mode 100644 node_modules/date-fns/locale/it-CH/index.js.flow create mode 100644 node_modules/date-fns/locale/it-CH/package.json create mode 100644 node_modules/date-fns/locale/it/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/it/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/it/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/it/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/it/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/it/index.d.ts create mode 100644 node_modules/date-fns/locale/it/index.js create mode 100644 node_modules/date-fns/locale/it/index.js.flow create mode 100644 node_modules/date-fns/locale/it/package.json create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/index.d.ts create mode 100644 node_modules/date-fns/locale/ja-Hira/index.js create mode 100644 node_modules/date-fns/locale/ja-Hira/index.js.flow create mode 100644 node_modules/date-fns/locale/ja-Hira/package.json create mode 100644 node_modules/date-fns/locale/ja/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ja/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ja/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ja/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ja/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ja/index.d.ts create mode 100644 node_modules/date-fns/locale/ja/index.js create mode 100644 node_modules/date-fns/locale/ja/index.js.flow create mode 100644 node_modules/date-fns/locale/ja/package.json create mode 100644 node_modules/date-fns/locale/ka/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ka/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ka/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ka/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ka/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ka/index.d.ts create mode 100644 node_modules/date-fns/locale/ka/index.js create mode 100644 node_modules/date-fns/locale/ka/index.js.flow create mode 100644 node_modules/date-fns/locale/ka/package.json create mode 100644 node_modules/date-fns/locale/kk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/kk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/kk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/kk/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/kk/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/kk/index.d.ts create mode 100644 node_modules/date-fns/locale/kk/index.js create mode 100644 node_modules/date-fns/locale/kk/index.js.flow create mode 100644 node_modules/date-fns/locale/kk/package.json create mode 100644 node_modules/date-fns/locale/km/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/km/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/km/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/km/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/km/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/km/index.d.ts create mode 100644 node_modules/date-fns/locale/km/index.js create mode 100644 node_modules/date-fns/locale/km/index.js.flow create mode 100644 node_modules/date-fns/locale/km/package.json create mode 100644 node_modules/date-fns/locale/kn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/kn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/kn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/kn/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/kn/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/kn/index.d.ts create mode 100644 node_modules/date-fns/locale/kn/index.js create mode 100644 node_modules/date-fns/locale/kn/index.js.flow create mode 100644 node_modules/date-fns/locale/kn/package.json create mode 100644 node_modules/date-fns/locale/ko/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ko/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ko/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ko/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ko/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ko/index.d.ts create mode 100644 node_modules/date-fns/locale/ko/index.js create mode 100644 node_modules/date-fns/locale/ko/index.js.flow create mode 100644 node_modules/date-fns/locale/ko/package.json create mode 100644 node_modules/date-fns/locale/lb/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/lb/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/lb/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/lb/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/lb/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/lb/index.d.ts create mode 100644 node_modules/date-fns/locale/lb/index.js create mode 100644 node_modules/date-fns/locale/lb/index.js.flow create mode 100644 node_modules/date-fns/locale/lb/package.json create mode 100644 node_modules/date-fns/locale/lt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/lt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/lt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/lt/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/lt/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/lt/index.d.ts create mode 100644 node_modules/date-fns/locale/lt/index.js create mode 100644 node_modules/date-fns/locale/lt/index.js.flow create mode 100644 node_modules/date-fns/locale/lt/package.json create mode 100644 node_modules/date-fns/locale/lv/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/lv/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/lv/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/lv/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/lv/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/lv/index.d.ts create mode 100644 node_modules/date-fns/locale/lv/index.js create mode 100644 node_modules/date-fns/locale/lv/index.js.flow create mode 100644 node_modules/date-fns/locale/lv/package.json create mode 100644 node_modules/date-fns/locale/mk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/mk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/mk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/mk/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/mk/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/mk/index.d.ts create mode 100644 node_modules/date-fns/locale/mk/index.js create mode 100644 node_modules/date-fns/locale/mk/index.js.flow create mode 100644 node_modules/date-fns/locale/mk/package.json create mode 100644 node_modules/date-fns/locale/mn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/mn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/mn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/mn/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/mn/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/mn/index.d.ts create mode 100644 node_modules/date-fns/locale/mn/index.js create mode 100644 node_modules/date-fns/locale/mn/index.js.flow create mode 100644 node_modules/date-fns/locale/mn/package.json create mode 100644 node_modules/date-fns/locale/ms/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ms/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ms/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ms/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ms/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ms/index.d.ts create mode 100644 node_modules/date-fns/locale/ms/index.js create mode 100644 node_modules/date-fns/locale/ms/index.js.flow create mode 100644 node_modules/date-fns/locale/ms/package.json create mode 100644 node_modules/date-fns/locale/mt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/mt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/mt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/mt/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/mt/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/mt/index.d.ts create mode 100644 node_modules/date-fns/locale/mt/index.js create mode 100644 node_modules/date-fns/locale/mt/index.js.flow create mode 100644 node_modules/date-fns/locale/mt/package.json create mode 100644 node_modules/date-fns/locale/nb/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/nb/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/nb/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/nb/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/nb/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/nb/index.d.ts create mode 100644 node_modules/date-fns/locale/nb/index.js create mode 100644 node_modules/date-fns/locale/nb/index.js.flow create mode 100644 node_modules/date-fns/locale/nb/package.json create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/index.d.ts create mode 100644 node_modules/date-fns/locale/nl-BE/index.js create mode 100644 node_modules/date-fns/locale/nl-BE/index.js.flow create mode 100644 node_modules/date-fns/locale/nl-BE/package.json create mode 100644 node_modules/date-fns/locale/nl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/nl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/nl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/nl/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/nl/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/nl/index.d.ts create mode 100644 node_modules/date-fns/locale/nl/index.js create mode 100644 node_modules/date-fns/locale/nl/index.js.flow create mode 100644 node_modules/date-fns/locale/nl/package.json create mode 100644 node_modules/date-fns/locale/nn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/nn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/nn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/nn/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/nn/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/nn/index.d.ts create mode 100644 node_modules/date-fns/locale/nn/index.js create mode 100644 node_modules/date-fns/locale/nn/index.js.flow create mode 100644 node_modules/date-fns/locale/nn/package.json create mode 100644 node_modules/date-fns/locale/oc/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/oc/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/oc/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/oc/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/oc/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/oc/index.d.ts create mode 100644 node_modules/date-fns/locale/oc/index.js create mode 100644 node_modules/date-fns/locale/oc/index.js.flow create mode 100644 node_modules/date-fns/locale/oc/package.json create mode 100644 node_modules/date-fns/locale/package.json create mode 100644 node_modules/date-fns/locale/pl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/pl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/pl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/pl/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/pl/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/pl/index.d.ts create mode 100644 node_modules/date-fns/locale/pl/index.js create mode 100644 node_modules/date-fns/locale/pl/index.js.flow create mode 100644 node_modules/date-fns/locale/pl/package.json create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/index.d.ts create mode 100644 node_modules/date-fns/locale/pt-BR/index.js create mode 100644 node_modules/date-fns/locale/pt-BR/index.js.flow create mode 100644 node_modules/date-fns/locale/pt-BR/package.json create mode 100644 node_modules/date-fns/locale/pt/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/pt/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/pt/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/pt/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/pt/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/pt/index.d.ts create mode 100644 node_modules/date-fns/locale/pt/index.js create mode 100644 node_modules/date-fns/locale/pt/index.js.flow create mode 100644 node_modules/date-fns/locale/pt/package.json create mode 100644 node_modules/date-fns/locale/ro/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ro/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ro/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ro/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ro/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ro/index.d.ts create mode 100644 node_modules/date-fns/locale/ro/index.js create mode 100644 node_modules/date-fns/locale/ro/index.js.flow create mode 100644 node_modules/date-fns/locale/ro/package.json create mode 100644 node_modules/date-fns/locale/ru/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ru/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ru/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ru/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ru/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ru/index.d.ts create mode 100644 node_modules/date-fns/locale/ru/index.js create mode 100644 node_modules/date-fns/locale/ru/index.js.flow create mode 100644 node_modules/date-fns/locale/ru/package.json create mode 100644 node_modules/date-fns/locale/sk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sk/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sk/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sk/index.d.ts create mode 100644 node_modules/date-fns/locale/sk/index.js create mode 100644 node_modules/date-fns/locale/sk/index.js.flow create mode 100644 node_modules/date-fns/locale/sk/package.json create mode 100644 node_modules/date-fns/locale/sl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sl/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sl/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sl/index.d.ts create mode 100644 node_modules/date-fns/locale/sl/index.js create mode 100644 node_modules/date-fns/locale/sl/index.js.flow create mode 100644 node_modules/date-fns/locale/sl/package.json create mode 100644 node_modules/date-fns/locale/sq/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sq/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sq/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sq/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sq/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sq/index.d.ts create mode 100644 node_modules/date-fns/locale/sq/index.js create mode 100644 node_modules/date-fns/locale/sq/index.js.flow create mode 100644 node_modules/date-fns/locale/sq/package.json create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/index.d.ts create mode 100644 node_modules/date-fns/locale/sr-Latn/index.js create mode 100644 node_modules/date-fns/locale/sr-Latn/index.js.flow create mode 100644 node_modules/date-fns/locale/sr-Latn/package.json create mode 100644 node_modules/date-fns/locale/sr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sr/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sr/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sr/index.d.ts create mode 100644 node_modules/date-fns/locale/sr/index.js create mode 100644 node_modules/date-fns/locale/sr/index.js.flow create mode 100644 node_modules/date-fns/locale/sr/package.json create mode 100644 node_modules/date-fns/locale/sv/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/sv/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/sv/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/sv/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/sv/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/sv/index.d.ts create mode 100644 node_modules/date-fns/locale/sv/index.js create mode 100644 node_modules/date-fns/locale/sv/index.js.flow create mode 100644 node_modules/date-fns/locale/sv/package.json create mode 100644 node_modules/date-fns/locale/ta/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ta/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ta/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ta/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ta/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ta/index.d.ts create mode 100644 node_modules/date-fns/locale/ta/index.js create mode 100644 node_modules/date-fns/locale/ta/index.js.flow create mode 100644 node_modules/date-fns/locale/ta/package.json create mode 100644 node_modules/date-fns/locale/te/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/te/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/te/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/te/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/te/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/te/index.d.ts create mode 100644 node_modules/date-fns/locale/te/index.js create mode 100644 node_modules/date-fns/locale/te/index.js.flow create mode 100644 node_modules/date-fns/locale/te/package.json create mode 100644 node_modules/date-fns/locale/th/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/th/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/th/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/th/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/th/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/th/index.d.ts create mode 100644 node_modules/date-fns/locale/th/index.js create mode 100644 node_modules/date-fns/locale/th/index.js.flow create mode 100644 node_modules/date-fns/locale/th/package.json create mode 100644 node_modules/date-fns/locale/tr/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/tr/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/tr/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/tr/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/tr/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/tr/index.d.ts create mode 100644 node_modules/date-fns/locale/tr/index.js create mode 100644 node_modules/date-fns/locale/tr/index.js.flow create mode 100644 node_modules/date-fns/locale/tr/package.json create mode 100644 node_modules/date-fns/locale/types.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/ug/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/ug/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/ug/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/ug/index.d.ts create mode 100644 node_modules/date-fns/locale/ug/index.js create mode 100644 node_modules/date-fns/locale/ug/index.js.flow create mode 100644 node_modules/date-fns/locale/ug/package.json create mode 100644 node_modules/date-fns/locale/uk/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/uk/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/uk/index.d.ts create mode 100644 node_modules/date-fns/locale/uk/index.js create mode 100644 node_modules/date-fns/locale/uk/index.js.flow create mode 100644 node_modules/date-fns/locale/uk/package.json create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/index.d.ts create mode 100644 node_modules/date-fns/locale/uz-Cyrl/index.js create mode 100644 node_modules/date-fns/locale/uz-Cyrl/index.js.flow create mode 100644 node_modules/date-fns/locale/uz-Cyrl/package.json create mode 100644 node_modules/date-fns/locale/uz/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/uz/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/uz/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/uz/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/uz/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/uz/index.d.ts create mode 100644 node_modules/date-fns/locale/uz/index.js create mode 100644 node_modules/date-fns/locale/uz/index.js.flow create mode 100644 node_modules/date-fns/locale/uz/package.json create mode 100644 node_modules/date-fns/locale/vi/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/vi/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/vi/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/vi/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/vi/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/vi/index.d.ts create mode 100644 node_modules/date-fns/locale/vi/index.js create mode 100644 node_modules/date-fns/locale/vi/index.js.flow create mode 100644 node_modules/date-fns/locale/vi/package.json create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/index.d.ts create mode 100644 node_modules/date-fns/locale/zh-CN/index.js create mode 100644 node_modules/date-fns/locale/zh-CN/index.js.flow create mode 100644 node_modules/date-fns/locale/zh-CN/package.json create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/index.d.ts create mode 100644 node_modules/date-fns/locale/zh-HK/index.js create mode 100644 node_modules/date-fns/locale/zh-HK/index.js.flow create mode 100644 node_modules/date-fns/locale/zh-HK/package.json create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/localize/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/_lib/match/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/index.d.ts create mode 100644 node_modules/date-fns/locale/zh-TW/index.js create mode 100644 node_modules/date-fns/locale/zh-TW/index.js.flow create mode 100644 node_modules/date-fns/locale/zh-TW/package.json create mode 100644 node_modules/date-fns/max/index.d.ts create mode 100644 node_modules/date-fns/max/index.js create mode 100644 node_modules/date-fns/max/index.js.flow create mode 100644 node_modules/date-fns/max/package.json create mode 100644 node_modules/date-fns/milliseconds/index.d.ts create mode 100644 node_modules/date-fns/milliseconds/index.js create mode 100644 node_modules/date-fns/milliseconds/index.js.flow create mode 100644 node_modules/date-fns/milliseconds/package.json create mode 100644 node_modules/date-fns/millisecondsToHours/index.d.ts create mode 100644 node_modules/date-fns/millisecondsToHours/index.js create mode 100644 node_modules/date-fns/millisecondsToHours/index.js.flow create mode 100644 node_modules/date-fns/millisecondsToHours/package.json create mode 100644 node_modules/date-fns/millisecondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/millisecondsToMinutes/index.js create mode 100644 node_modules/date-fns/millisecondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/millisecondsToMinutes/package.json create mode 100644 node_modules/date-fns/millisecondsToSeconds/index.d.ts create mode 100644 node_modules/date-fns/millisecondsToSeconds/index.js create mode 100644 node_modules/date-fns/millisecondsToSeconds/index.js.flow create mode 100644 node_modules/date-fns/millisecondsToSeconds/package.json create mode 100644 node_modules/date-fns/min/index.d.ts create mode 100644 node_modules/date-fns/min/index.js create mode 100644 node_modules/date-fns/min/index.js.flow create mode 100644 node_modules/date-fns/min/package.json create mode 100644 node_modules/date-fns/minutesToHours/index.d.ts create mode 100644 node_modules/date-fns/minutesToHours/index.js create mode 100644 node_modules/date-fns/minutesToHours/index.js.flow create mode 100644 node_modules/date-fns/minutesToHours/package.json create mode 100644 node_modules/date-fns/minutesToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/minutesToMilliseconds/index.js create mode 100644 node_modules/date-fns/minutesToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/minutesToMilliseconds/package.json create mode 100644 node_modules/date-fns/minutesToSeconds/index.d.ts create mode 100644 node_modules/date-fns/minutesToSeconds/index.js create mode 100644 node_modules/date-fns/minutesToSeconds/index.js.flow create mode 100644 node_modules/date-fns/minutesToSeconds/package.json create mode 100644 node_modules/date-fns/monthsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/monthsToQuarters/index.js create mode 100644 node_modules/date-fns/monthsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/monthsToQuarters/package.json create mode 100644 node_modules/date-fns/monthsToYears/index.d.ts create mode 100644 node_modules/date-fns/monthsToYears/index.js create mode 100644 node_modules/date-fns/monthsToYears/index.js.flow create mode 100644 node_modules/date-fns/monthsToYears/package.json create mode 100644 node_modules/date-fns/nextDay/index.d.ts create mode 100644 node_modules/date-fns/nextDay/index.js create mode 100644 node_modules/date-fns/nextDay/index.js.flow create mode 100644 node_modules/date-fns/nextDay/package.json create mode 100644 node_modules/date-fns/nextFriday/index.d.ts create mode 100644 node_modules/date-fns/nextFriday/index.js create mode 100644 node_modules/date-fns/nextFriday/index.js.flow create mode 100644 node_modules/date-fns/nextFriday/package.json create mode 100644 node_modules/date-fns/nextMonday/index.d.ts create mode 100644 node_modules/date-fns/nextMonday/index.js create mode 100644 node_modules/date-fns/nextMonday/index.js.flow create mode 100644 node_modules/date-fns/nextMonday/package.json create mode 100644 node_modules/date-fns/nextSaturday/index.d.ts create mode 100644 node_modules/date-fns/nextSaturday/index.js create mode 100644 node_modules/date-fns/nextSaturday/index.js.flow create mode 100644 node_modules/date-fns/nextSaturday/package.json create mode 100644 node_modules/date-fns/nextSunday/index.d.ts create mode 100644 node_modules/date-fns/nextSunday/index.js create mode 100644 node_modules/date-fns/nextSunday/index.js.flow create mode 100644 node_modules/date-fns/nextSunday/package.json create mode 100644 node_modules/date-fns/nextThursday/index.d.ts create mode 100644 node_modules/date-fns/nextThursday/index.js create mode 100644 node_modules/date-fns/nextThursday/index.js.flow create mode 100644 node_modules/date-fns/nextThursday/package.json create mode 100644 node_modules/date-fns/nextTuesday/index.d.ts create mode 100644 node_modules/date-fns/nextTuesday/index.js create mode 100644 node_modules/date-fns/nextTuesday/index.js.flow create mode 100644 node_modules/date-fns/nextTuesday/package.json create mode 100644 node_modules/date-fns/nextWednesday/index.d.ts create mode 100644 node_modules/date-fns/nextWednesday/index.js create mode 100644 node_modules/date-fns/nextWednesday/index.js.flow create mode 100644 node_modules/date-fns/nextWednesday/package.json create mode 100644 node_modules/date-fns/package.json create mode 100644 node_modules/date-fns/parse/_lib/Parser.js create mode 100644 node_modules/date-fns/parse/_lib/Setter.js create mode 100644 node_modules/date-fns/parse/_lib/constants.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/AMPMParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DateParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/EraParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISODayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/MinuteParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/MonthParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/QuarterParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/SecondParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/YearParser.js create mode 100644 node_modules/date-fns/parse/_lib/parsers/index.js create mode 100644 node_modules/date-fns/parse/_lib/types.js create mode 100644 node_modules/date-fns/parse/_lib/utils.js create mode 100644 node_modules/date-fns/parse/index.d.ts create mode 100644 node_modules/date-fns/parse/index.js create mode 100644 node_modules/date-fns/parse/index.js.flow create mode 100644 node_modules/date-fns/parse/package.json create mode 100644 node_modules/date-fns/parseISO/index.d.ts create mode 100644 node_modules/date-fns/parseISO/index.js create mode 100644 node_modules/date-fns/parseISO/index.js.flow create mode 100644 node_modules/date-fns/parseISO/package.json create mode 100644 node_modules/date-fns/parseJSON/index.d.ts create mode 100644 node_modules/date-fns/parseJSON/index.js create mode 100644 node_modules/date-fns/parseJSON/index.js.flow create mode 100644 node_modules/date-fns/parseJSON/package.json create mode 100644 node_modules/date-fns/previousDay/index.d.ts create mode 100755 node_modules/date-fns/previousDay/index.js create mode 100644 node_modules/date-fns/previousDay/index.js.flow create mode 100644 node_modules/date-fns/previousDay/package.json create mode 100644 node_modules/date-fns/previousFriday/index.d.ts create mode 100755 node_modules/date-fns/previousFriday/index.js create mode 100644 node_modules/date-fns/previousFriday/index.js.flow create mode 100644 node_modules/date-fns/previousFriday/package.json create mode 100644 node_modules/date-fns/previousMonday/index.d.ts create mode 100755 node_modules/date-fns/previousMonday/index.js create mode 100644 node_modules/date-fns/previousMonday/index.js.flow create mode 100644 node_modules/date-fns/previousMonday/package.json create mode 100644 node_modules/date-fns/previousSaturday/index.d.ts create mode 100755 node_modules/date-fns/previousSaturday/index.js create mode 100644 node_modules/date-fns/previousSaturday/index.js.flow create mode 100644 node_modules/date-fns/previousSaturday/package.json create mode 100644 node_modules/date-fns/previousSunday/index.d.ts create mode 100755 node_modules/date-fns/previousSunday/index.js create mode 100644 node_modules/date-fns/previousSunday/index.js.flow create mode 100644 node_modules/date-fns/previousSunday/package.json create mode 100644 node_modules/date-fns/previousThursday/index.d.ts create mode 100755 node_modules/date-fns/previousThursday/index.js create mode 100644 node_modules/date-fns/previousThursday/index.js.flow create mode 100644 node_modules/date-fns/previousThursday/package.json create mode 100644 node_modules/date-fns/previousTuesday/index.d.ts create mode 100755 node_modules/date-fns/previousTuesday/index.js create mode 100644 node_modules/date-fns/previousTuesday/index.js.flow create mode 100644 node_modules/date-fns/previousTuesday/package.json create mode 100644 node_modules/date-fns/previousWednesday/index.d.ts create mode 100755 node_modules/date-fns/previousWednesday/index.js create mode 100644 node_modules/date-fns/previousWednesday/index.js.flow create mode 100644 node_modules/date-fns/previousWednesday/package.json create mode 100644 node_modules/date-fns/quartersToMonths/index.d.ts create mode 100644 node_modules/date-fns/quartersToMonths/index.js create mode 100644 node_modules/date-fns/quartersToMonths/index.js.flow create mode 100644 node_modules/date-fns/quartersToMonths/package.json create mode 100644 node_modules/date-fns/quartersToYears/index.d.ts create mode 100644 node_modules/date-fns/quartersToYears/index.js create mode 100644 node_modules/date-fns/quartersToYears/index.js.flow create mode 100644 node_modules/date-fns/quartersToYears/package.json create mode 100644 node_modules/date-fns/roundToNearestMinutes/index.d.ts create mode 100644 node_modules/date-fns/roundToNearestMinutes/index.js create mode 100644 node_modules/date-fns/roundToNearestMinutes/index.js.flow create mode 100644 node_modules/date-fns/roundToNearestMinutes/package.json create mode 100644 node_modules/date-fns/secondsToHours/index.d.ts create mode 100644 node_modules/date-fns/secondsToHours/index.js create mode 100644 node_modules/date-fns/secondsToHours/index.js.flow create mode 100644 node_modules/date-fns/secondsToHours/package.json create mode 100644 node_modules/date-fns/secondsToMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/secondsToMilliseconds/index.js create mode 100644 node_modules/date-fns/secondsToMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/secondsToMilliseconds/package.json create mode 100644 node_modules/date-fns/secondsToMinutes/index.d.ts create mode 100644 node_modules/date-fns/secondsToMinutes/index.js create mode 100644 node_modules/date-fns/secondsToMinutes/index.js.flow create mode 100644 node_modules/date-fns/secondsToMinutes/package.json create mode 100644 node_modules/date-fns/set/index.d.ts create mode 100644 node_modules/date-fns/set/index.js create mode 100644 node_modules/date-fns/set/index.js.flow create mode 100644 node_modules/date-fns/set/package.json create mode 100644 node_modules/date-fns/setDate/index.d.ts create mode 100644 node_modules/date-fns/setDate/index.js create mode 100644 node_modules/date-fns/setDate/index.js.flow create mode 100644 node_modules/date-fns/setDate/package.json create mode 100644 node_modules/date-fns/setDay/index.d.ts create mode 100644 node_modules/date-fns/setDay/index.js create mode 100644 node_modules/date-fns/setDay/index.js.flow create mode 100644 node_modules/date-fns/setDay/package.json create mode 100644 node_modules/date-fns/setDayOfYear/index.d.ts create mode 100644 node_modules/date-fns/setDayOfYear/index.js create mode 100644 node_modules/date-fns/setDayOfYear/index.js.flow create mode 100644 node_modules/date-fns/setDayOfYear/package.json create mode 100644 node_modules/date-fns/setDefaultOptions/index.d.ts create mode 100644 node_modules/date-fns/setDefaultOptions/index.js create mode 100644 node_modules/date-fns/setDefaultOptions/index.js.flow create mode 100644 node_modules/date-fns/setDefaultOptions/package.json create mode 100644 node_modules/date-fns/setHours/index.d.ts create mode 100644 node_modules/date-fns/setHours/index.js create mode 100644 node_modules/date-fns/setHours/index.js.flow create mode 100644 node_modules/date-fns/setHours/package.json create mode 100644 node_modules/date-fns/setISODay/index.d.ts create mode 100644 node_modules/date-fns/setISODay/index.js create mode 100644 node_modules/date-fns/setISODay/index.js.flow create mode 100644 node_modules/date-fns/setISODay/package.json create mode 100644 node_modules/date-fns/setISOWeek/index.d.ts create mode 100644 node_modules/date-fns/setISOWeek/index.js create mode 100644 node_modules/date-fns/setISOWeek/index.js.flow create mode 100644 node_modules/date-fns/setISOWeek/package.json create mode 100644 node_modules/date-fns/setISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/setISOWeekYear/index.js create mode 100644 node_modules/date-fns/setISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/setISOWeekYear/package.json create mode 100644 node_modules/date-fns/setMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/setMilliseconds/index.js create mode 100644 node_modules/date-fns/setMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/setMilliseconds/package.json create mode 100644 node_modules/date-fns/setMinutes/index.d.ts create mode 100644 node_modules/date-fns/setMinutes/index.js create mode 100644 node_modules/date-fns/setMinutes/index.js.flow create mode 100644 node_modules/date-fns/setMinutes/package.json create mode 100644 node_modules/date-fns/setMonth/index.d.ts create mode 100644 node_modules/date-fns/setMonth/index.js create mode 100644 node_modules/date-fns/setMonth/index.js.flow create mode 100644 node_modules/date-fns/setMonth/package.json create mode 100644 node_modules/date-fns/setQuarter/index.d.ts create mode 100644 node_modules/date-fns/setQuarter/index.js create mode 100644 node_modules/date-fns/setQuarter/index.js.flow create mode 100644 node_modules/date-fns/setQuarter/package.json create mode 100644 node_modules/date-fns/setSeconds/index.d.ts create mode 100644 node_modules/date-fns/setSeconds/index.js create mode 100644 node_modules/date-fns/setSeconds/index.js.flow create mode 100644 node_modules/date-fns/setSeconds/package.json create mode 100644 node_modules/date-fns/setWeek/index.d.ts create mode 100644 node_modules/date-fns/setWeek/index.js create mode 100644 node_modules/date-fns/setWeek/index.js.flow create mode 100644 node_modules/date-fns/setWeek/package.json create mode 100644 node_modules/date-fns/setWeekYear/index.d.ts create mode 100644 node_modules/date-fns/setWeekYear/index.js create mode 100644 node_modules/date-fns/setWeekYear/index.js.flow create mode 100644 node_modules/date-fns/setWeekYear/package.json create mode 100644 node_modules/date-fns/setYear/index.d.ts create mode 100644 node_modules/date-fns/setYear/index.js create mode 100644 node_modules/date-fns/setYear/index.js.flow create mode 100644 node_modules/date-fns/setYear/package.json create mode 100644 node_modules/date-fns/startOfDay/index.d.ts create mode 100644 node_modules/date-fns/startOfDay/index.js create mode 100644 node_modules/date-fns/startOfDay/index.js.flow create mode 100644 node_modules/date-fns/startOfDay/package.json create mode 100644 node_modules/date-fns/startOfDecade/index.d.ts create mode 100644 node_modules/date-fns/startOfDecade/index.js create mode 100644 node_modules/date-fns/startOfDecade/index.js.flow create mode 100644 node_modules/date-fns/startOfDecade/package.json create mode 100644 node_modules/date-fns/startOfHour/index.d.ts create mode 100644 node_modules/date-fns/startOfHour/index.js create mode 100644 node_modules/date-fns/startOfHour/index.js.flow create mode 100644 node_modules/date-fns/startOfHour/package.json create mode 100644 node_modules/date-fns/startOfISOWeek/index.d.ts create mode 100644 node_modules/date-fns/startOfISOWeek/index.js create mode 100644 node_modules/date-fns/startOfISOWeek/index.js.flow create mode 100644 node_modules/date-fns/startOfISOWeek/package.json create mode 100644 node_modules/date-fns/startOfISOWeekYear/index.d.ts create mode 100644 node_modules/date-fns/startOfISOWeekYear/index.js create mode 100644 node_modules/date-fns/startOfISOWeekYear/index.js.flow create mode 100644 node_modules/date-fns/startOfISOWeekYear/package.json create mode 100644 node_modules/date-fns/startOfMinute/index.d.ts create mode 100644 node_modules/date-fns/startOfMinute/index.js create mode 100644 node_modules/date-fns/startOfMinute/index.js.flow create mode 100644 node_modules/date-fns/startOfMinute/package.json create mode 100644 node_modules/date-fns/startOfMonth/index.d.ts create mode 100644 node_modules/date-fns/startOfMonth/index.js create mode 100644 node_modules/date-fns/startOfMonth/index.js.flow create mode 100644 node_modules/date-fns/startOfMonth/package.json create mode 100644 node_modules/date-fns/startOfQuarter/index.d.ts create mode 100644 node_modules/date-fns/startOfQuarter/index.js create mode 100644 node_modules/date-fns/startOfQuarter/index.js.flow create mode 100644 node_modules/date-fns/startOfQuarter/package.json create mode 100644 node_modules/date-fns/startOfSecond/index.d.ts create mode 100644 node_modules/date-fns/startOfSecond/index.js create mode 100644 node_modules/date-fns/startOfSecond/index.js.flow create mode 100644 node_modules/date-fns/startOfSecond/package.json create mode 100644 node_modules/date-fns/startOfToday/index.d.ts create mode 100644 node_modules/date-fns/startOfToday/index.js create mode 100644 node_modules/date-fns/startOfToday/index.js.flow create mode 100644 node_modules/date-fns/startOfToday/package.json create mode 100644 node_modules/date-fns/startOfTomorrow/index.d.ts create mode 100644 node_modules/date-fns/startOfTomorrow/index.js create mode 100644 node_modules/date-fns/startOfTomorrow/index.js.flow create mode 100644 node_modules/date-fns/startOfTomorrow/package.json create mode 100644 node_modules/date-fns/startOfWeek/index.d.ts create mode 100644 node_modules/date-fns/startOfWeek/index.js create mode 100644 node_modules/date-fns/startOfWeek/index.js.flow create mode 100644 node_modules/date-fns/startOfWeek/package.json create mode 100644 node_modules/date-fns/startOfWeekYear/index.d.ts create mode 100644 node_modules/date-fns/startOfWeekYear/index.js create mode 100644 node_modules/date-fns/startOfWeekYear/index.js.flow create mode 100644 node_modules/date-fns/startOfWeekYear/package.json create mode 100644 node_modules/date-fns/startOfYear/index.d.ts create mode 100644 node_modules/date-fns/startOfYear/index.js create mode 100644 node_modules/date-fns/startOfYear/index.js.flow create mode 100644 node_modules/date-fns/startOfYear/package.json create mode 100644 node_modules/date-fns/startOfYesterday/index.d.ts create mode 100644 node_modules/date-fns/startOfYesterday/index.js create mode 100644 node_modules/date-fns/startOfYesterday/index.js.flow create mode 100644 node_modules/date-fns/startOfYesterday/package.json create mode 100644 node_modules/date-fns/sub/index.d.ts create mode 100644 node_modules/date-fns/sub/index.js create mode 100644 node_modules/date-fns/sub/index.js.flow create mode 100644 node_modules/date-fns/sub/package.json create mode 100644 node_modules/date-fns/subBusinessDays/index.d.ts create mode 100644 node_modules/date-fns/subBusinessDays/index.js create mode 100644 node_modules/date-fns/subBusinessDays/index.js.flow create mode 100644 node_modules/date-fns/subBusinessDays/package.json create mode 100644 node_modules/date-fns/subDays/index.d.ts create mode 100644 node_modules/date-fns/subDays/index.js create mode 100644 node_modules/date-fns/subDays/index.js.flow create mode 100644 node_modules/date-fns/subDays/package.json create mode 100644 node_modules/date-fns/subHours/index.d.ts create mode 100644 node_modules/date-fns/subHours/index.js create mode 100644 node_modules/date-fns/subHours/index.js.flow create mode 100644 node_modules/date-fns/subHours/package.json create mode 100644 node_modules/date-fns/subISOWeekYears/index.d.ts create mode 100644 node_modules/date-fns/subISOWeekYears/index.js create mode 100644 node_modules/date-fns/subISOWeekYears/index.js.flow create mode 100644 node_modules/date-fns/subISOWeekYears/package.json create mode 100644 node_modules/date-fns/subMilliseconds/index.d.ts create mode 100644 node_modules/date-fns/subMilliseconds/index.js create mode 100644 node_modules/date-fns/subMilliseconds/index.js.flow create mode 100644 node_modules/date-fns/subMilliseconds/package.json create mode 100644 node_modules/date-fns/subMinutes/index.d.ts create mode 100644 node_modules/date-fns/subMinutes/index.js create mode 100644 node_modules/date-fns/subMinutes/index.js.flow create mode 100644 node_modules/date-fns/subMinutes/package.json create mode 100644 node_modules/date-fns/subMonths/index.d.ts create mode 100644 node_modules/date-fns/subMonths/index.js create mode 100644 node_modules/date-fns/subMonths/index.js.flow create mode 100644 node_modules/date-fns/subMonths/package.json create mode 100644 node_modules/date-fns/subQuarters/index.d.ts create mode 100644 node_modules/date-fns/subQuarters/index.js create mode 100644 node_modules/date-fns/subQuarters/index.js.flow create mode 100644 node_modules/date-fns/subQuarters/package.json create mode 100644 node_modules/date-fns/subSeconds/index.d.ts create mode 100644 node_modules/date-fns/subSeconds/index.js create mode 100644 node_modules/date-fns/subSeconds/index.js.flow create mode 100644 node_modules/date-fns/subSeconds/package.json create mode 100644 node_modules/date-fns/subWeeks/index.d.ts create mode 100644 node_modules/date-fns/subWeeks/index.js create mode 100644 node_modules/date-fns/subWeeks/index.js.flow create mode 100644 node_modules/date-fns/subWeeks/package.json create mode 100644 node_modules/date-fns/subYears/index.d.ts create mode 100644 node_modules/date-fns/subYears/index.js create mode 100644 node_modules/date-fns/subYears/index.js.flow create mode 100644 node_modules/date-fns/subYears/package.json create mode 100644 node_modules/date-fns/toDate/index.d.ts create mode 100644 node_modules/date-fns/toDate/index.js create mode 100644 node_modules/date-fns/toDate/index.js.flow create mode 100644 node_modules/date-fns/toDate/package.json create mode 100644 node_modules/date-fns/types.js create mode 100644 node_modules/date-fns/typings.d.ts create mode 100644 node_modules/date-fns/weeksToDays/index.d.ts create mode 100644 node_modules/date-fns/weeksToDays/index.js create mode 100644 node_modules/date-fns/weeksToDays/index.js.flow create mode 100644 node_modules/date-fns/weeksToDays/package.json create mode 100644 node_modules/date-fns/yearsToMonths/index.d.ts create mode 100644 node_modules/date-fns/yearsToMonths/index.js create mode 100644 node_modules/date-fns/yearsToMonths/index.js.flow create mode 100644 node_modules/date-fns/yearsToMonths/package.json create mode 100644 node_modules/date-fns/yearsToQuarters/index.d.ts create mode 100644 node_modules/date-fns/yearsToQuarters/index.js create mode 100644 node_modules/date-fns/yearsToQuarters/index.js.flow create mode 100644 node_modules/date-fns/yearsToQuarters/package.json diff --git a/node_modules/date-fns/CHANGELOG.md b/node_modules/date-fns/CHANGELOG.md new file mode 100644 index 00000000..8315a0b3 --- /dev/null +++ b/node_modules/date-fns/CHANGELOG.md @@ -0,0 +1,2561 @@ +# Change Log + +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning]. + +This change log follows the format documented in [Keep a CHANGELOG]. + +[semantic versioning]: http://semver.org/ +[keep a changelog]: http://keepachangelog.com/ + +## v2.29.3 - 2022-09-13 + +This release is prepared by our own @leshakoss. + +### Fixed + +- [Fixed Ukrainian (`uk`) locale grammar for `formatDistance`.](https://github.com/date-fns/date-fns/pull/3175) + +- [Improved browser compatibility by transforming the code with `@babel/preset-env`.](https://github.com/date-fns/date-fns/pull/3167) + +## v2.29.2 - 2022-08-18 + +This release is brought to you by @nopears, @vadimpopa and @leshakoss. + +### Fixed + +- [Fixed `sv` locale abbreviated months matcher.](https://github.com/date-fns/date-fns/pull/3160) + +- [Fixed `uk` locale abbreviated months matcher.](https://github.com/date-fns/date-fns/pull/3139) + +- [Fixed a breaking change in `intervalToDuration` by removing a recently introduced RangeError.](https://github.com/date-fns/date-fns/pull/3153) + +## v2.29.1 - 2022-08-18 + +Thanks to @fturmel for working on the release. + +### Fixed + +- [Fixed TypeScript and flow types for daysInYear constant.](https://github.com/date-fns/date-fns/pull/3125) + +## v2.29.0 - 2022-07-22 + +On this release worked @tan75, @kossnocorp, @nopears, @Balastrong, @cpapazoglou, @dovca, @aliasgar55, @tomchentw, @JuanM04, @alexandresaura, @fturmel, @aezell, @andersravn, @TiagoPortfolio, @SukkaW, @Zebreus, @aviskarkc10, @maic66, @a-korzun, @Mejans, @davidspiess, @alexgul1, @matroskin062, @undecaf, @mprovenc, @jooola and @leshakoss. + +### Added + +- [Added `intlFormatDistance` function`.](https://github.com/date-fns/date-fns/pull/2173) + +- [Added `setDefaultOptions` and `getDefaultOptions` functions that allow you to set default default locale, `weekStartsOn` and `firstWeekContainsDate`.](https://github.com/date-fns/date-fns/pull/3069) + +- [Added `roundingMethod` option to `roundToNearestMinutes`.](https://github.com/date-fns/date-fns/pull/3091) + +- [Added Swiss Italian locale (`it-CH`).](https://github.com/date-fns/date-fns/pull/2886) + +- [Added Occitan (`oc`) locale.](https://github.com/date-fns/date-fns/pull/2106) ([#2061](https://github.com/date-fns/date-fns/issues/2061)) + +- [Added Belarusian Classic (`be-tarask`) locale.](https://github.com/date-fns/date-fns/pull/3115) + +### Fixed + +- [Fixed Azerbaijani (`az`) locale for `formatDistance`.](https://github.com/date-fns/date-fns/pull/2924) + +- [Fixed Czech (`cs`) locale for `parse`.](https://github.com/date-fns/date-fns/pull/3059) + +- [Fixed TypeScript types for constants.](https://github.com/date-fns/date-fns/pull/2941) + +- [Fixed long formatters in the South African English locale (`en-ZA`).](https://github.com/date-fns/date-fns/pull/3014) + +- [Fixed a typo in the Icelandic locale (`is`) for `format`.](https://github.com/date-fns/date-fns/pull/2974) + +- [Fixed weekday format for `formatRelative` in the Portuguese locale (`pt`).](https://github.com/date-fns/date-fns/pull/2992) + +- [Fixed `intervalToDuration` being off by 1 day sometimes.](https://github.com/date-fns/date-fns/pull/2616) + +- [Fixed ordinal number formatting in Italian locale (`it`).](https://github.com/date-fns/date-fns/pull/1617) + +- [Fixed issue parsing months in Croatian (`hr`), Georgian (`ka`) and Serbian (`sr` and `sr-Latn`) locales.](https://github.com/date-fns/date-fns/pull/2898) + +### Changed + +- [Replaced `git.io` links with full URLs in error messages.](https://github.com/date-fns/date-fns/pull/3021) + +- [_Internal_: removed "v2.0.0 breaking changes" section from individual function docs](https://github.com/date-fns/date-fns/pull/2905) + +## v2.28.0 - 2021-12-28 + +Kudos to @tan75, @fturmel, @arcanar7, @jeffjose, @helmut-lang, @zrev2220, @jooola, @minitesh, @cowboy-bebug, @mesqueeb, @JuanM04, @zhirzh, @damon02 and @leshakoss for working on the release. + +### Added + +- [Added West Frisian (`fy`) locale.](https://github.com/date-fns/date-fns/pull/2183) + +- [Added Uzbek Cyrillic locale (`uz-Cyrl`).](https://github.com/date-fns/date-fns/pull/2811) + +### Fixed + +- [add the missing accent mark for Saturday in Spanish locale (`es`) for `format`.](https://github.com/date-fns/date-fns/pull/2869) + +- [allowed `K` token to be used with `a` or `b` in `parse`.](https://github.com/date-fns/date-fns/pull/2814) + +## v2.27.0 - 2021-11-30 + +Kudos to @tan75, @hg-pyun, @07akioni, @razvanmitre, @Haqverdi, @pgcalixto, @janziemba, @fturmel, @JuanM04, @zhirzh, @seanghay, @bulutfatih, @nodeadtree, @cHaLkdusT, @a-korzun, @fishmandev, @wingclover, @Zacharias3690, @kossnocorp and @leshakoss for working on the release. + +### Fixed + +- [Fixed translation for quarters in `format` in Chinese Simplified locale (`zh-CN`).](https://github.com/date-fns/date-fns/pull/2771) + +- [Fixed `P` token in `format` for Romanian locale (`ro`).](https://github.com/date-fns/date-fns/pull/2213) + +- [Fixed era and month formatters in Azerbaijani locale (`az`).](https://github.com/date-fns/date-fns/pull/1632) + +- [Fixed `formatRelative` patterns in Georgian locale (`ka`).](https://github.com/date-fns/date-fns/pull/2797) + +- [Fixed regular expressions for `parse` in Estonian locale (`er`).](https://github.com/date-fns/date-fns/pull/2038) + +- [Fixed the format of zeros in `formatDuration` in Czech locale (`cs`).](https://github.com/date-fns/date-fns/pull/2579) + +- [Fixed ordinal formatting for years, weeks, hours, minutes and seconds in `fr`, `fr-CA` and `fr-CH` locales.](https://github.com/date-fns/date-fns/pull/2626) + +- [Fixed constants not having proper TypeScript and Flow types.](https://github.com/date-fns/date-fns/pull/2791) + +- [Fixed translation for Monday in Turkish locale (`tr`).](https://github.com/date-fns/date-fns/pull/2720) + +- [Fixed `eachMinuteOfInterval` not handling intervals less than a minute correctly.](https://github.com/date-fns/date-fns/pull/2603) + +- [Fixed flow types for `closestTo` and `closestIndexTo`.](https://github.com/date-fns/date-fns/pull/2781) + +### Added + +- [Added Khmer locale (`km`).](https://github.com/date-fns/date-fns/pull/2713) + +## v2.26.0 - 2021-11-19 + +Thanks to @kossnocorp, @leshakoss, @tan75, @gaplo, @AbdAllahAbdElFattah13, @fturmel, @kentaro84207, @V-Gutierrez, @atefBB, @jhonatanmacazana, @zhirzh, @Haqverdi, @mandaputtra, @micnic and @rikkalo for working on the release. + +### Fixed + +- [Fixed `formatRelative` format for `lastWeek` in Spanish locale.](https://github.com/date-fns/date-fns/pull/2753) + +- [Fixed translation for October in Hindi locale.](https://github.com/date-fns/date-fns/pull/2729) + +- [Fixed Azerbaijani locale to use correct era matchers for `parse`.](https://github.com/date-fns/date-fns/pull/1633) + +- [Added the functions that use `weekStartsOn` and `firstWeekContainsDate` that were missing from the `Locale` documentation page.](https://github.com/date-fns/date-fns/pull/2652) + +### Changed + +- [Changed abbreviation for August from "Ags" to "Agt" in Indonesian locale.](https://github.com/date-fns/date-fns/pull/2658) + +### Added + +- [Added Irish English locale (`en-IE`).](https://github.com/date-fns/date-fns/pull/2772) + +- [Added Arabic locale (`ar`).](https://github.com/date-fns/date-fns/pull/2721) ([#1670](https://github.com/date-fns/date-fns/issues/1670)) + +- [Added Hong Kong Traditional Chinese locale (zh-HK).](https://github.com/date-fns/date-fns/pull/2686) ([#2684](https://github.com/date-fns/date-fns/issues/2684)) + +- [Added Egyptian Arabic locale (ar-EG).](https://github.com/date-fns/date-fns/pull/2699) + +## v2.25.0 - 2021-10-05 + +This release is brought to you by @kossnocorp, @gierschv, @fturmel, @redbmk, @mprovenc, @artyom-ivanov and @tan75. + +### Added + +- [Added Japanese Hiragana locale (`ja-Hira`).](https://github.com/date-fns/date-fns/pull/2663) + +- [Added standalone months support to `de` and `de-AT` locales.](https://github.com/date-fns/date-fns/pull/2602) + +## v2.24.0 - 2021-09-17 + +Kudos to [Sasha Koss](http://github.com/kossnocorp), [Lucas Silva](http://github.com/LucasHFS), [Jan Ziemba](http://github.com/janziemba), [Anastasia Kobzar](http://github.com/rikkalo), [Deepak Gupta](http://github.com/Mr-DG-Wick), [Jonas L](http://github.com/jooola), [Kentaro Suzuki](http://github.com/kentaro84207), [Koussay Haj Kacem](http://github.com/essana3), [fturmel](http://github.com/fturmel), [Tan75](http://github.com/tan75) and [Adriaan Callaerts](http://github.com/call-a3) for working on the release. + +### Fixed + +- [Fixed an edge case in the Slovak locale caused by unescaped character.](https://github.com/date-fns/date-fns/pull/2540) ([#2083](https://github.com/date-fns/date-fns/issues/2083)) + +### Changed + +- [Used `1` instead of `ein` for German `formatDuration` to make it consistent with other locales and formats.](https://github.com/date-fns/date-fns/pull/2576) ([#2505](https://github.com/date-fns/date-fns/issues/2505)) + +- [Made Norwegian `formatDuration` consistent with other locales by using numeric representation instead of written.](https://github.com/date-fns/date-fns/pull/2631) ([#2469](https://github.com/date-fns/date-fns/issues/2469)) + +- [Use the word "sekunda" instead of "vteřina" for second in the Czech locale.](https://github.com/date-fns/date-fns/pull/2577) + +- [Made Flemish short date format corresponds to the Flemish government.](https://github.com/date-fns/date-fns/pull/2535) + +### Added + +- [Added `roundingMethod` option to `differenceInHours`, `differenceInMinutes`, `differenceInQuarters`, `differenceInSeconds` and `differenceInWeeks` with `trunc` as the default method.](https://github.com/date-fns/date-fns/pull/2571) ([#2555](https://github.com/date-fns/date-fns/issues/2555)) + +- [Added new functions: `previousDay`, `previousMonday`, `previousTuesday`, `previousWednesday`, `previousThursday`, `previousFriday`, `previousSaturday` and `previousSunday`.](https://github.com/date-fns/date-fns/pull/2522) + +## v2.23.0 - 2021-07-23 + +Thanks to [Liam Tait](http://github.com/Liam-Tait), [fturmel](http://github.com/fturmel), [Takuya Uehara](http://github.com/indigolain), [Branislav Lazic](http://github.com/BranislavLazic), [Seyyed Morteza Moosavi](http://github.com/smmoosavi), [Felipe Armoni](http://github.com/komyg), [Sasha Koss](http://github.com/kossnocorp), [Michael Mok](http://github.com/pmmmwh), [Tan75](http://github.com/tan75) and [Maxim Topciu](http://github.com/maximtop) for working on the release. + +### Changed + +- [Improved `nextDay` performance by roughly 50%.](https://github.com/date-fns/date-fns/pull/2524) + +- [Added more ordinal formatting to the Japanese locale.](https://github.com/date-fns/date-fns/pull/2471) + +### Added + +- [Added a new `clamp` function that allows to bound a date to an interval.](https://github.com/date-fns/date-fns/pull/2498) + +- [Added Bosnian locale (bs).](https://github.com/date-fns/date-fns/pull/2495) + +- [Allowed passing `undefined` in the duration to add and sub functions.](https://github.com/date-fns/date-fns/pull/2515) + +## v2.22.1 - 2021-05-28 + +Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. + +### Fixed + +- Fixed constant typings. ([#2491](https://github.com/date-fns/date-fns/issues/2491)) + +## v2.22.0 - 2021-05-28 + +[Sasha Koss](http://github.com/kossnocorp), [Lucas Silva](http://github.com/LucasHFS), [Lay](http://github.com/brownsugar), [jwbth](http://github.com/jwbth), [fturmel](http://github.com/fturmel), [Tan75](http://github.com/tan75) and [Anastasia Kobzar](http://github.com/rikkalo) worked on this release. + +### Fixed + +- [Fixed Taiwanese locale to use traditional Chinese and removed unnecessary spaces.](https://github.com/date-fns/date-fns/pull/2436) + +- [Fixed Russian locale to use correct long formats.](https://github.com/date-fns/date-fns/pull/2478) + +### Added + +- [Added 18 new conversion functions](https://github.com/date-fns/date-fns/pull/2433): + - `daysToWeeks` + - `hoursToMilliseconds` + - `hoursToMinutes` + - `hoursToSeconds` + - `millisecondsToHours` + - `millisecondsToMinutes` + - `millisecondsToSeconds` + - `minutesToHours` + - `minutesToMilliseconds` + - `minutesToSeconds` + - `monthsToQuarters` + - `monthsToYears` + - `quartersToMonths` + - `quartersToYears` + - `secondsToHours` + - `secondsToMilliseconds` + - `secondsToMinutes` + - `weeksToDays` + - `yearsToMonths` + - `yearsToQuarters` + +## v2.21.3 - 2021-05-08 + +This release is brought to you by [Maxim Topciu](http://github.com/maximtop). + +### Fixed + +- [Fixed IE11 support by babelifing the shorthand properties.](https://github.com/date-fns/date-fns/pull/2467) + +## v2.21.2 - 2021-05-05 + +Kudos to [Aleksei Korzun](http://github.com/a-korzun), [Maxim Topciu](http://github.com/maximtop), [Jonas L](http://github.com/jooola), [Mohammad ali Ali panah](http://github.com/always-maap) and [Tan75](http://github.com/tan75) for working on the release. + +### Fixed + +- [`differenceInBusinessDays` now returns `NaN` instead of `Invalid Date` when an invalid argument is passed to the function.](https://github.com/date-fns/date-fns/pull/2414) + +- [Fixed `weekStartsOn` in Persian locale.](https://github.com/date-fns/date-fns/pull/2430) + +## v2.21.1 - 2021-04-15 + +Thanks to [Sasha Koss](http://github.com/kossnocorp) for working on the release. + +### Fixed + +- [Fixed a breaking change introduced by using modern default argument value syntax (see https://github.com/Hacker0x01/react-datepicker/issues/2870).](https://github.com/date-fns/date-fns/pull/2423) + +## v2.21.0 - 2021-04-14 + +This release is brought to you by [Aleksei Korzun](http://github.com/a-korzun), [Tan75](http://github.com/tan75), [Rubens Mariuzzo](http://github.com/rmariuzzo), [Christoph Stenglein](http://github.com/cstenglein) and [Clément Tamisier](http://github.com/ctamisier). + +### Fixed + +- [Made `formatDistanceStrict` return `12 months` instead of `1 year` when `unit: 'month'`.](https://github.com/date-fns/date-fns/pull/2411) + +### Added + +- [Added Haitian Creole (`ht`) locale.](https://github.com/date-fns/date-fns/pull/2396) +- [Added Austrian German (`de-AT`) locale.](https://github.com/date-fns/date-fns/pull/2362) + +## v2.20.3 - 2021-04-13 + +Kudos to [fturmel](http://github.com/fturmel) for working on the release. + +### Fixed + +- [Fixed broken tree-shaking caused by missing links to corresponding ESM.](https://github.com/date-fns/date-fns/pull/2339) ([#2207](https://github.com/date-fns/date-fns/issues/2207)) + +## v2.20.2 - 2021-04-12 + +Kudos to [Maxim Topciu](http://github.com/maximtop) for working on the release. + +### Fixed + +- [Fixed IE11 incompatibility caused by the usage of spread syntax.](https://github.com/date-fns/date-fns/pull/2407) ([#2408](https://github.com/date-fns/date-fns/issues/2408)) + +## v2.20.1 - 2021-04-09 + +This release is brought to you by [Sasha Koss](http://github.com/kossnocorp) and [Tan75](http://github.com/tan75). + +### Fixed + +- Fixed `isDate` Flow typings that we broke in `v2.20.0`. + +## v2.20.0 - 2021-04-08 + +This release is brought to you by [Sasha Koss](http://github.com/kossnocorp), [Maxim Topciu](http://github.com/maximtop), [tu4mo](http://github.com/tu4mo), [Tan75](http://github.com/tan75), [Ardit Dine](http://github.com/arditdine), [Carl Rosell](http://github.com/CarlRosell), [Roman Mahotskyi](http://github.com/enheit), [Mateusz Krzak](http://github.com/mateuszkrzak), [fgottschalk](http://github.com/fgottschalk), [Anastasia Kobzar](http://github.com/rikkalo), [Bilguun Ochirbat](http://github.com/bilguun0203), [Lesha Koss](http://github.com/leshakoss), [YuLe](http://github.com/yuler) and [guyroberts21](http://github.com/guyroberts21). + +### Fixed + +- [Made `formatDistanceStrict` and `formatDistanceToNowStrict` always return `1 year` instead of `12 months`.](https://github.com/date-fns/date-fns/pull/2391) ([#2388](https://github.com/date-fns/date-fns/issues/2388)) + +- Fixed `nextDay`, `nextMonday` and `nextTuesday` missing in exports and type definitions. ([#2325](https://github.com/date-fns/date-fns/issues/2325)) + +- [Fixed a DST bug in `formatDistanceStrict`.](https://github.com/date-fns/date-fns/pull/2329) ([#2307](https://github.com/date-fns/date-fns/issues/2307)) + +### Added + +- [Added new `eachMinuteOfInterval` function.](https://github.com/date-fns/date-fns/pull/2382) + +- [Added Albanian (`sq`) locale](https://github.com/date-fns/date-fns/pull/2290) + +- [Added Mongolian (`mn`) locale](https://github.com/date-fns/date-fns/pull/1961) + +- [Added `nextWednesday`, `nextThursday`, `nextFriday`, `nextSaturday` and `nextSunday`.](https://github.com/date-fns/date-fns/pull/2291) + +## v2.19.0 - 2021-03-05 + +[Tan75](http://github.com/tan75) worked on this release. + +### Fixed + +- [Assigned the correct `firstWeekContainsDate` value (`4`) for the French locale.](https://github.com/date-fns/date-fns/pull/2273) ([#2148](https://github.com/date-fns/date-fns/issues/2148)) + +- [Fixed torsdag abbreviation in the Swedish locale.](https://github.com/date-fns/date-fns/pull/2220) + +- [Fixed a bug in `differenceInMonths` and `intervalToDuration` that occurs when dealing with the 28th of February.](https://github.com/date-fns/date-fns/pull/2256) ([#2255](https://github.com/date-fns/date-fns/issues/2255)) + +### Added + +- [Added new functions: `nextDay`, `nextMonday` and `nextTuesday` that allows getting the next day of the week, Monday or Tuesday respectively.](https://github.com/date-fns/date-fns/pull/2214) + +## v2.18.0 - 2021-03-01 + +Thanks to [Tan75](http://github.com/tan75) and [Lesha Koss](http://github.com/leshakoss). + +### Fixed + +- [Fixed documentation missing for `intlFormat`.](https://github.com/date-fns/date-fns/pull/2259) ([#2258](https://github.com/date-fns/date-fns/issues/2258)) + +- [Fixed date formats in the Latvian locale.](https://github.com/date-fns/date-fns/pull/2205) ([#2202](https://github.com/date-fns/date-fns/issues/2202)) + +### Added + +- [Added support of positive and negative offsets in `parseJSON`.](https://github.com/date-fns/date-fns/pull/2200) ([#2149](https://github.com/date-fns/date-fns/issues/2149)) + +## [2.17.0] - 2021-02-05 + +Kudos to [@shaykav](https://github.com/date-fns/date-fns/pull/1952), [@davidgape89](https://github.com/davidgape89), [@rikkalo](https://github.com/rikkalo), [@tan75](https://github.com/tan75), [@talgautb](https://github.com/talgautb), [@owenl131](https://github.com/owenl131), [@kylesezhi](https://github.com/kylesezhi), [@inigoiparragirre](https://github.com/inigoiparragirre), [@gius](https://github.com/gius), [@Endeauvirr](https://github.com/Endeauvirr) and [@frankyston](https://github.com/frankyston). + +### Fixed + +- [Fixed Russian locale parsing issue](https://github.com/date-fns/date-fns/pull/1950). + +- [Fixed `differenceInMonths` for edge cases, such as the end of February dates](https://github.com/date-fns/date-fns/pull/2185). + +- [Fixed suffixes for the Kazakh locale](https://github.com/date-fns/date-fns/pull/2010). + +- [Fixed `formatDuration` week translation in `pt` and `pt-BR` locales](https://github.com/date-fns/date-fns/pull/2125). + +- [Made Japanese locale to use the correct value for the start of the week](https://github.com/date-fns/date-fns/pull/2099). + +- [Adjusted date formats in the Basque locale](https://github.com/date-fns/date-fns/pull/2080). + +- [Fixed the short and medium date formats in the Czech locale](https://github.com/date-fns/date-fns/pull/2111). + +- [Adjusted the Polish translations of `formatDistance`](https://github.com/date-fns/date-fns/pull/2187). + +- [Fixed the week's abbreviations in the Brazilian Portuguese](https://github.com/date-fns/date-fns/pull/2170). + +### Added + +- [Added `intlFormat`](https://github.com/date-fns/date-fns/pull/2172) a lightweight formatting function that uses [Intl API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl). Eventually, it will become the default formatting function, so it's highly recommended for new code. + +- [Added `en-ZA` locale](https://github.com/date-fns/date-fns/pull/1952). + +- [Added an ability to format lowercase am/pm with `aaa` and `bbb` tokens](https://github.com/date-fns/date-fns/pull/2016). + +- [Added ordinal formatting for Japanese year values](https://github.com/date-fns/date-fns/pull/2177/files). + +## [2.16.1] - 2020-07-31 + +Kudos to [@aleksaps](https://github.com/aleksaps), [@leedriscoll](https://github.com/leedriscoll) and [@BanForFun](https://github.com/BanForFun) for pull-requests! + +### Fixed + +- [Fixed a typo in Scottish Gaelic (gd) locale](https://github.com/date-fns/date-fns/pull/1925). +- [Fixed typos in Serbian Latin locale](https://github.com/date-fns/date-fns/pull/1928). +- [Fixed greek grammar for Saturday on `formatRelative`](https://github.com/date-fns/date-fns/pull/1930). +- Removed locale snapshots from the npm package making it lighter. + +## [2.16.0] - 2020-08-27 + +Kudos to [@jvpelt](https://github.com/jvpelt), [@piotrl](https://github.com/piotrl), [@yotamofek](https://github.com/yotamofek), [@dwaxweiler](https://github.com/dwaxweiler), [@leedriscoll](https://github.com/leedriscoll) and [@bradevans](https://github.com/bradevans) for working on the release. Also thanks to [@PascalHonegger](https://github.com/PascalHonegger), [@pickfire](https://github.com/pickfire), [@TheJaredWilcurt](https://github.com/TheJaredWilcurt), [@SidKH](https://github.com/SidKH) and [@nfantone](https://github.com/nfantone) for improving the documentation. + +### Fixed + +- [Added correct translations for Welsh `1 minute` and `2 days`](https://github.com/date-fns/date-fns/pull/1903). +- [Fixed `formatRFC3339` formatting timezone offset with minutes](https://github.com/date-fns/date-fns/pull/1890). +- [Added missing locale type definition for `formatDuration`](https://github.com/date-fns/date-fns/pull/1881) +- [Fixed Scottish Gaelic locale issues](https://github.com/date-fns/date-fns/pull/1914). + +### Changed + +- [Used shorter Hebrew alternative for "about"](https://github.com/date-fns/date-fns/pull/1893). +- [Improved string arguments warning after upgrading to v2](https://github.com/date-fns/date-fns/pull/1910). + +### Added + +- [Added Luxembourgish (lb) locale](https://github.com/date-fns/date-fns/pull/1900). + +## [2.15.0] - 2020-07-17 + +Thanks to [@belgamo](https://github.com/belgamo), [@Matsuuu](https://github.com/Matsuuu), [@Imballinst](https://github.com/Imballinst), [@arsnyder16](https://github.com/arsnyder16), [@pankajupadhyay29](https://github.com/pankajupadhyay29), [@DCBN](https://github.com/DCBN), [@leedriscoll](https://github.com/leedriscoll), [@gottsohn](https://github.com/gottsohn), [@mukuljainx](https://github.com/mukuljainx) and [@dtriana](https://github.com/dtriana) for working on the release. Also kudos to [@KidkArolis](https://github.com/KidkArolis), [@imgx64](https://github.com/imgx64), [@fjc0k](https://github.com/fjc0k), [@wmonk](https://github.com/wmonk), [@djD-REK](https://github.com/djD-REK), [@dandv](https://github.com/dandv), [@psimk](https://github.com/psimk) and [@brimworks](https://github.com/brimworks) for improving the documentation. + +### Fixed + +- [Fixed behavior of `addBusinessDays` when input date is a weekend day](https://github.com/date-fns/date-fns/pull/1790). +- [Fixed `parseISO` not returning `Invalid Date` on incorrect string when there are spaces in it](https://github.com/date-fns/date-fns/pull/1791). +- [Fixed `es` round-tripping dates with Wednesday](https://github.com/date-fns/date-fns/pull/1792). +- [Fixed round-trip bug with `d`/`EEEE` ordering in tokens like `PPPPP`](https://github.com/date-fns/date-fns/pull/1795). +- [Fixed issues with parsing values in Japanese](https://github.com/date-fns/date-fns/pull/1807). +- [Fixed Hungarian breaking IE11](https://github.com/date-fns/date-fns/pull/1842). +- [Fixed Spanish accents in Saturday and Wednesday](https://github.com/date-fns/date-fns/pull/1872). + +### Changed + +- [Improved the message of protected tokens error](https://github.com/date-fns/date-fns/pull/1641). + +### Added + +- [Added Swiss-French `fr-CH` locale](https://github.com/date-fns/date-fns/pull/1809). +- [Added Flemish `nl-BE` locale](https://github.com/date-fns/date-fns/pull/1812). +- [Added Scottish Gaelic `gd` locale](https://github.com/date-fns/date-fns/pull/1832). +- [Added New Zealand English `en-NZ` locale](https://github.com/date-fns/date-fns/pull/1835). +- [Added `isMatch` function](https://github.com/date-fns/date-fns/pull/1868). + +## [2.14.0] - 2020-05-18 + +Kudos to [@julamb](https://github.com/julamb), [@JacobSoderblom](https://github.com/JacobSoderblom), [@justingrant](http://github.com/justingrant), [@dragunoff](https://github.com/dragunoff), [@jmate0321](https://github.com/jmate0321), [@gbhasha](https://github.com/gbhasha), [@rasck](https://github.com/rasck), [@AlbertoPdRF](https://github.com/AlbertoPdRF), [@sebastianhaberey](https://github.com/sebastianhaberey) and [@giogonzo](https://github.com/giogonzo) for working on the release! + +### Fixed + +- [Fixed DST issues with `add`, `addDays` and `addMonths`](https://github.com/date-fns/date-fns/pull/1760). +- [Fixed "quarter" translation in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1763). +- [Fixed `formatDistance` strings in the Hungarian locale](https://github.com/date-fns/date-fns/pull/1765). +- [Fixed Danish month abbreviations](https://github.com/date-fns/date-fns/pull/1774). +- [Fixed parsing of mei in the Dutch locale](https://github.com/date-fns/date-fns/pull/1774). +- [Fixed missing preposition in `formatLong` in the Spanish locale](https://github.com/date-fns/date-fns/pull/1775). +- [Fixed `formatRelative` in the Italian locale](https://github.com/date-fns/date-fns/pull/1777). + +### Added + +- [Added `eachQuarterOfInterval`](https://github.com/date-fns/date-fns/pull/1715). +- [Added Basque (`eu`) locale](https://github.com/date-fns/date-fns/pull/1759). +- [Added Indian English (`en-IN`) locale](https://github.com/date-fns/date-fns/pull/1767). +- [Added `eachHourOfInterval`](https://github.com/date-fns/date-fns/pull/1776). + +## [2.13.0] - 2020-05-06 + +Thanks to [@JorenVos](https://github.com/JorenVos), [@developergouli](https://github.com/developergouli), [@rhlowe](https://github.com/rhlowe) and [@justingrant](http://github.com/justingrant) for working on the release! + +### Fixed + +- [Fixed mei abbreviation in the Dutch locale](https://github.com/date-fns/date-fns/pull/1752). +- [Fixed `differenceInDays` DST behavior broken in 2.12.0](https://github.com/date-fns/date-fns/pull/1754). + +### Added + +- [Added Kannada locale support](https://github.com/date-fns/date-fns/pull/1747). +- [Added `formatISODuration` function](https://github.com/date-fns/date-fns/pull/1713). +- [Added `intervalToDuration` function](https://github.com/date-fns/date-fns/pull/1713). + +## [2.12.0] - 2020-04-09 + +Kudos to [@leshakoss](http://github.com/leshakoss), [@skyuplam](https://github.com/skyuplam), [@so99ynoodles](https://github.com/so99ynoodles), [@dkozickis](https://github.com/dkozickis), [@belgamo](https://github.com/belgamo), [@akgondber](https://github.com/akgondber), [@dcousens](https://github.com/dcousens) and [@BoomDev](https://github.com/BoomDev) for working on the release! + +### Fixed + +- [Fixed minulý štvrtok in Slovak locale](https://github.com/date-fns/date-fns/pull/1701). +- Fixed date ordinalNumber for [ja/zh-CN/zh-TW](https://github.com/date-fns/date-fns/pull/1690) and [ko](https://github.com/date-fns/date-fns/pull/1696). +- [Fixed quarters parsing](https://github.com/date-fns/date-fns/pull/1694). +- [Fixed `setDay` with `weekStartsOn` != 0](https://github.com/date-fns/date-fns/pull/1639). +- [Fixed differenceInDays across DST](https://github.com/date-fns/date-fns/pull/1630). +- [Fixed required arguments exception message](https://github.com/date-fns/date-fns/pull/1674). + +### Added + +- [Added new function `formatDistanceToNowStrict`](https://github.com/date-fns/date-fns/pull/1679). + +## [2.11.1] - 2020-03-26 + +### Fixed + +- Rebuilt TypeScript and flow types. + +## [2.11.0] - 2020-03-13 + +Kudos to [@oakhan3](https://github.com/oakhan3), [@Mukhammadali](https://github.com/Mukhammadali), [@altrim](https://github.com/altrim), [@leepowellcouk](https://github.com/leepowellcouk), [@amatzon](@https://github.com/amatzon), [@bryanMt](https://github.com/bryanMt), [@kalekseev](https://github.com/kalekseev), [@eugene-platov](https://github.com/eugene-platov) and [@tjrobinson](https://github.com/tjrobinson) for working on the release. + +### Fixed + +- [Fixed a bug in `differenceInYears` causing incorrect results when the left date is a leap day](https://github.com/date-fns/date-fns/pull/1654). +- [Fixed `parseISO` to work correctly around time shift dates](https://github.com/date-fns/date-fns/pull/1667). +- [Fixed `format` to work correctly with GMT-0752/GMT-0456 and similar timezones](https://github.com/date-fns/date-fns/pull/1666). + +### Changed + +- [Changed `getDay` typings to return `0|1|2|3|4|5|6` instead of `number`](https://github.com/date-fns/date-fns/pull/1668). +- [Improved Chinese locale](https://github.com/date-fns/date-fns/pull/1664): + - Change date format to meet the national standard (GB/T 7408-2005). + - Improve `ordinalNumber` function behavior. + - Add prefix in `formatRelative` depending on if it's a current week or not. + +### Added + +- [Added Uzbek `uz` locale](https://github.com/date-fns/date-fns/pull/1648). +- [Updated Macedonian locale for v2](https://github.com/date-fns/date-fns/pull/1649). +- [Added Maltese `mt` locale](https://github.com/date-fns/date-fns/pull/1658). + +## [2.10.0] - 2020-02-25 + +### Fixed + +- [Fixed `formatISO` when formatting time with timezones with minute offsets > 0](https://github.com/date-fns/date-fns/pull/1599). Kudos to [@dcRUSTy](https://github.com/dcRUSTy). + +### Fixed + +- Fixed a bug in setDay when using weekStartsOn that is not 0 + +### Added + +- [Added `weeks` to `Duration`](https://github.com/date-fns/date-fns/pull/1592). +- [Added `weeks` support to `add` and `sub`](https://github.com/date-fns/date-fns/pull/1592). +- [Added details message in `throwProtectedError`](https://github.com/date-fns/date-fns/pull/1592). + +## [2.9.0] - 2020-01-08 + +Thanks to [@mborgbrant](https://github.com/mborgbrant), [@saintplay](https://github.com/saintplay), [@mrenty](https://github.com/mrenty), [@kibertoad](https://github.com/kibertoad), [@levibuzolic](https://github.com/levibuzolic), [@Anshuman71](https://github.com/Anshuman71), [@talgautb](https://github.com/talgautb), [@filipjuza](https://github.com/filipjuza), [@tobyzerner](https://github.com/tobyzerner), [@emil9453](https://github.com/emil9453), [@fintara](https://github.com/fintara), [@pascaliske](https://github.com/pascaliske), [@rramiachraf](https://github.com/rramiachraf), [@marnusw](https://github.com/marnusw) and [@Imballinst](https://github.com/Imballinst) for working on the release. + +### Fixed + +- [Fixed a bug with addBusinessDays returning the Tuesday when adding 1 day on weekends. Now it returns the Monday](https://github.com/date-fns/date-fns/pull/1588). +- [Added missing timezone to `formatISO`](https://github.com/date-fns/date-fns/pull/1576). +- [Removed dots from short day period names in the Kazakh locale](https://github.com/date-fns/date-fns/pull/1512). +- [Fixed typo in formatDistance in the Czech locale](https://github.com/date-fns/date-fns/pull/1540). +- [Fixed shortenings in the Bulgarian locale](https://github.com/date-fns/date-fns/pull/1560). +- [Fixed regex for the May in the Portuguese locale](https://github.com/date-fns/date-fns/pull/1565). + +### Added + +- [Added `eachMonthOfInterval` and `eachYearOfInterval`](https://github.com/date-fns/date-fns/pull/618). +- [Added `inclusive` option to `areIntervalsOverlapping](https://github.com/date-fns/date-fns/pull/643). +- [Added `isExists` function that checks if the given date is exists](https://github.com/date-fns/date-fns/pull/682). +- [Added `add` function to add seconds, minutes, hours, weeks, years in single call](https://github.com/date-fns/date-fns/pull/1581). +- [Added `sub` function, the opposite of `add`](https://github.com/date-fns/date-fns/pull/1583). +- [Added `Duration` type used in `add` and `sub`](https://github.com/date-fns/date-fns/pull/1583). +- [Added Azerbaijani (az) locale](https://github.com/date-fns/date-fns/pull/1547). +- [Added Moroccan Arabic (ar-MA) locale](https://github.com/date-fns/date-fns/pull/1578). + +### Changed + +- [Reduced the total minified build size by 1Kb/4%](https://github.com/date-fns/date-fns/pull/1563). +- [Made all properties in `Locale` type optional](https://github.com/date-fns/date-fns/pull/1542). +- [Added missing properties to `Locale` type](https://github.com/date-fns/date-fns/pull/1542). +- [Add the locale code to `Locale` type](https://github.com/date-fns/date-fns/pull/1580). +- [Added support of space time separator to `parseJSON`](https://github.com/date-fns/date-fns/pull/1579). +- [Allowed up to 7 digits in milliseconds in `parseJSON`](https://github.com/date-fns/date-fns/pull/1579). + +## [2.8.1] - 2019-11-22 + +Thanks to [@Imballinst](https://github.com/Imballinst) for the bug fix! + +### Fixed + +- [Add colon between the hour and minutes for `formatRFC3339`](https://github.com/date-fns/date-fns/pull/1549). [See #1548](https://github.com/date-fns/date-fns/issues/1548). + +## [2.8.0] - 2019-11-19 + +Kudos to [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@Imballinst](https://github.com/Imballinst), [@leshakoss](https://github.com/leshakoss) and [@Neorth](https://github.com/Neorth) for working on the release. + +### Fixed + +- [Remove the next week preposition in the Swedish locale](https://github.com/date-fns/date-fns/pull/1538). + +### Added + +- [Added Malay (ms) locale](https://github.com/date-fns/date-fns/pull/1537). +- [Added `formatISO`, `formatISO9075`, `formatRFC3339`, and `formatRFC7231` functions](https://github.com/date-fns/date-fns/pull/1536). + +## [2.7.0] - 2019-11-07 + +Thanks to [@mzgajner](https://github.com/mzgajner), [@NaridaL](https://github.com/NaridaL), [@Zyten](https://github.com/Zyten), [@leshakoss](https://github.com/leshakoss), [@fintara](https://github.com/fintara), [@kpr-hellofresh](https://github.com/kpr-hellofresh) for contributing to the release. + +### Fixed + +- [Fixed a mistake in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1529). +- [Fixed incorrect behavior of `parseISO` in Firefox caused by differences in `getTimezoneOffset`](https://github.com/date-fns/date-fns/pull/1495). + +### Changed + +- [Make object arguments types more elaborate in Flow type definitions](https://github.com/date-fns/date-fns/pull/1519). +- [Get rid of deprecated Function in Flow type definitions](https://github.com/date-fns/date-fns/pull/1520). +- [Allow `parseJSON` to accept strings without trailing 'Z' symbol and with up to 6 digits in the milliseconds' field](https://github.com/date-fns/date-fns/pull/1499). + +### Added + +- [Added Bulgarian (bg) locale](https://github.com/date-fns/date-fns/pull/1522). + +## [2.6.0] - 2019-10-22 + +Kudos to [@marnusw](https://github.com/marnusw), [@cdrikd](https://github.com/cdrikd) and [@rogyvoje](https://github.com/rogyvoje) for working on the release! + +### Added + +- [Added `parseJSON` - lightweight function (just 411 B) that parses dates formatted with `toJSON`](https://github.com/date-fns/date-fns/pull/1463). +- [Added the language code to each locale](https://github.com/date-fns/date-fns/pull/1489). +- [Added `subBusinessDays` function](https://github.com/date-fns/date-fns/pull/1491). +- [Added both Serbian - cyrillic (sr) and latin (sr-Latn) locales](https://github.com/date-fns/date-fns/pull/1494). + +## [2.5.1] - 2019-10-18 + +Thanks to [@mitchellbutler](https://github.com/mitchellbutler) for the bug fix! + +### Fixed + +- [Fixed infinite loop in `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1486). + +## [2.5.0] - 2019-10-16 + +Kudos to [@dkozickis](https://github.com/dkozickis), [@drugoi](https://github.com/drugoi), [@kranthilakum](https://github.com/kranthilakum), [@102](https://github.com/102), [@gpetrioli](https://github.com/gpetrioli) and [@JulienMalige](https://github.com/JulienMalige) for making the release happen. + +### Fixed + +- [Fixed compatibility with IE11 by removing `findIndex` from the code](https://github.com/date-fns/date-fns/pull/1457). +- [Fixed Greek locale patterns](https://github.com/date-fns/date-fns/pull/1480). + +### Added + +- [Added Kazakh (kk) locale](https://github.com/date-fns/date-fns/pull/1460). +- [Added Telugu (te) locale](https://github.com/date-fns/date-fns/pull/1464). +- [Added Canadian French (fr-CA) locale](https://github.com/date-fns/date-fns/issues/1465). +- [Added Australian English (en-AU) locale](https://github.com/date-fns/date-fns/pull/1470). +- [Exported `Interval` and `Locale` types from Flow typings](https://github.com/date-fns/date-fns/pull/1475). + +## [2.4.1] - 2019-09-28 + +Thanks to [@mrclayman](https://github.com/mrclayman) for reporting the issue and [@leshakoss](https://github.com/leshakoss) for fixing it. + +### Fixed + +- [Fixed am/pm mixup in the Czech locale](https://github.com/date-fns/date-fns/pull/1453). + +## [2.4.0] - 2019-09-27 + +This release is brought to you by these amazing people: [@lovelovedokidoki](https://github.com/lovelovedokidoki), [@alexigityan](https://github.com/alexigityan), [@kalekseev](https://github.com/kalekseev) and [@andybangs](https://github.com/andybangs). You rock! + +### Fixed + +- [Fixed Vietnamese parsing patterns](https://github.com/date-fns/date-fns/pull/1445). +- [Fixed Czech parsing regexes](https://github.com/date-fns/date-fns/pull/1446). +- [Fixed offset for Eastern Hemisphere in `parseISO`](https://github.com/date-fns/date-fns/pull/1450). + +### Added + +- [Added Armenian locale support](https://github.com/date-fns/date-fns/pull/1448). + +## [2.3.0] - 2019-09-24 + +Huge thanks to [@lovelovedokidoki](https://github.com/lovelovedokidoki) who improved 8 (!) locales in an unstoppable open-source rampage and [@VesterDe](https://github.com/VesterDe) for fixing Slovenian locale 👏 + +### Fixed + +- [Fixed the translation of "yesterday" in the Slovenian locale](https://github.com/date-fns/date-fns/pull/1420). +- [Fixed French parsing issues with June and August](https://github.com/date-fns/date-fns/pull/1430). +- [Improved Turkish parsing](https://github.com/date-fns/date-fns/pull/1432). +- [Fixed "March" in Dutch parsing patterns](https://github.com/date-fns/date-fns/pull/1433). +- [Fixed Hindi parsing patterns](https://github.com/date-fns/date-fns/pull/1434). + +### Added + +- [Added Finnish matching patterns](https://github.com/date-fns/date-fns/pull/1425). +- [Accept abbreviated March, June, July in Norwegian locales](https://github.com/date-fns/date-fns/pull/1431). +- [Added parsing for Greek months with long formatting](https://github.com/date-fns/date-fns/pull/1435). + +## [2.2.1] - 2019-09-12 + +Kudos to date-fns contributors: [@mzgajner](https://github.com/mzgajner), [@sibiraj-s](https://github.com/sibiraj-s), [@mukeshmandiwal](https://github.com/mukeshmandiwal), [@SneakyFish5](https://github.com/SneakyFish5) and [@CarterLi](https://github.com/CarterLi). + +### Added + +- [Added new `set` function](https://github.com/date-fns/date-fns/pull/1398). +- [Updated Slovenian (sl) locale for v2](https://github.com/date-fns/date-fns/pull/1418). +- [Added Tamil (ta) locale](https://github.com/date-fns/date-fns/pull/1411). +- [Added Hindi (hi) locale](https://github.com/date-fns/date-fns/pull/1409). +- [Added support of `\n` in `format`, `lightFormat` and `parse`](https://github.com/date-fns/date-fns/pull/1417). + +## [2.1.0] - 2019-09-06 + +Thanks to date-fns contributors: [@ManadayM](https://github.com/ManadayM), [@illuminist](https://github.com/illuminist), [@visualfanatic](https://github.com/visualfanatic), [@vsaarinen](https://github.com/vsaarinen) and at last but not the least [@leshakoss](https://github.com/leshakoss)! + +### Fixed + +- [Set start of the week to Sunday for Thai locale](https://github.com/date-fns/date-fns/pull/1402). +- [Fixed month matching in Polish locale](https://github.com/date-fns/date-fns/pull/1404). +- [Fixed `eachWeekendOfInterval` skipping the first date in the supplied interval](https://github.com/date-fns/date-fns/pull/1407). + +### Added + +- [Added Gujarati locale](https://github.com/date-fns/date-fns/pull/1400). + +## [2.0.1] - 2019-08-23 + +### Fixed + +- [Fix](https://github.com/date-fns/date-fns/pull/1046) `getWeekOfMonth` with `options.weekStartsOn` set to 1 [not working for Sundays](https://github.com/date-fns/date-fns/issues/1040). Kudos to [@waseemahmad31](https://github.com/waseemahmad31)! + +## [2.0.0] - 2019-08-20 + +If you're upgrading from v2 alpha or beta, [see the pre-release changelog](https://gist.github.com/kossnocorp/a307a464760b405bb78ef5020a4ab136). + +### Fixed + +- Fixed the `toDate` bug occurring when parsing ISO-8601 style dates (but not valid ISO format) + with a trailing Z (e.g `2012-01Z`), it returned Invalid Date for FireFox/IE11 [#510](https://github.com/date-fns/date-fns/issue/510) + +- Fixed `differenceIn...` functions returning negative zero in some cases: + [#692](https://github.com/date-fns/date-fns/issues/692) + +- `isDate` now works properly with dates passed across iframes [#754](https://github.com/date-fns/date-fns/pull/754). + +- Fixed a few bugs that appeared in timezones with offsets that include seconds (e.g. GMT+00:57:44). + See PR [#789](https://github.com/date-fns/date-fns/pull/789). + +- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1003). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details. + +- Fixed DST issue in `eachDayOfInterval` that caused time in the days + after DST change to have the shift as well. + +- Fixed bug in Galician locale caused by incorrect usage of `getHours` + instead of `getUTCHours`. + +### Changed + +- **BREAKING**: now functions don't accept string arguments, but only + numbers or dates. When a string is passed, it will result in + an unexpected result (`Invalid Date`, `NaN`, etc). + + From now on a string should be parsed using `parseISO` (ISO 8601) + or `parse`. + + In v1 we've used `new Date()` to parse strings, but it resulted in many + hard-to-track bugs caused by inconsistencies in different browsers. + To address that we've implemented our ISO 8601 parser but that made + library to significantly grow in size. To prevent inevitable bugs + and keep the library tiny, we made this trade-off. + + See [this post](https://blog.date-fns.org/post/we-cut-date-fns-v2-minimal-build-size-down-to-300-bytes-and-now-its-the-smallest-date-library-18f2nvh2z0yal) for more details. + + ```javascript + // Before v2.0.0 + addDays('2016-01-01', 1) + + // v2.0.0 onward + addDays(parseISO('2016-01-01'), 1) + ``` + +- **BREAKING**: new format string API for `format` function + which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table). + See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details. + + | Unit | v2 Pattern | v1 Pattern | Result examples | + | ------------------------------- | ---------- | ---------- | --------------------------------- | + | Era | G..GGG | | AD, BC | + | | GGGG | | Anno Domini, Before Christ | + | | GGGGG | | A, B | + | Calendar year | y | | 44, 1, 1900, 2017 | + | | yo | | 44th, 1st, 0th, 17th | + | | yy | YY | 44, 01, 00, 17 | + | | yyy | | 044, 001, 1900, 2017 | + | | yyyy | YYYY | 0044, 0001, 1900, 2017 | + | | yyyyy | | ... | + | Local week-numbering year | Y | | 44, 1, 1900, 2017 | + | | Yo | | 44th, 1st, 1900th, 2017th | + | | YY | | 44, 01, 00, 17 | + | | YYY | | 044, 001, 1900, 2017 | + | | YYYY | | 0044, 0001, 1900, 2017 | + | | YYYYY | | ... | + | ISO week-numbering year | R | | -43, 0, 1, 1900, 2017 | + | | RR | GG | -43, 00, 01, 1900, 2017 | + | | RRR | | -043, 000, 001, 1900, 2017 | + | | RRRR | GGGG | -0043, 0000, 0001, 1900, 2017 | + | | RRRRR | | ... | + | Extended year | u | | -43, 0, 1, 1900, 2017 | + | | uu | | -43, 01, 1900, 2017 | + | | uuu | | -043, 001, 1900, 2017 | + | | uuuu | | -0043, 0001, 1900, 2017 | + | | uuuuu | | ... | + | Quarter (formatting) | Q | | 1, 2, 3, 4 | + | | Qo | | 1st, 2nd, 3rd, 4th | + | | QQ | | 01, 02, 03, 04 | + | | QQQ | | Q1, Q2, Q3, Q4 | + | | QQQQ | | 1st quarter, 2nd quarter, ... | + | | QQQQQ | | 1, 2, 3, 4 | + | Quarter (stand-alone) | q | Q | 1, 2, 3, 4 | + | | qo | Qo | 1st, 2nd, 3rd, 4th | + | | qq | | 01, 02, 03, 04 | + | | qqq | | Q1, Q2, Q3, Q4 | + | | qqqq | | 1st quarter, 2nd quarter, ... | + | | qqqqq | | 1, 2, 3, 4 | + | Month (formatting) | M | | 1, 2, ..., 12 | + | | Mo | | 1st, 2nd, ..., 12th | + | | MM | | 01, 02, ..., 12 | + | | MMM | | Jan, Feb, ..., Dec | + | | MMMM | | January, February, ..., December | + | | MMMMM | | J, F, ..., D | + | Month (stand-alone) | L | M | 1, 2, ..., 12 | + | | Lo | | 1st, 2nd, ..., 12th | + | | LL | MM | 01, 02, ..., 12 | + | | LLL | MMM | Jan, Feb, ..., Dec | + | | LLLL | MMMM | January, February, ..., December | + | | LLLLL | | J, F, ..., D | + | Local week of year | w | | 1, 2, ..., 53 | + | | wo | | 1st, 2nd, ..., 53th | + | | ww | | 01, 02, ..., 53 | + | ISO week of year | I | W | 1, 2, ..., 53 | + | | Io | Wo | 1st, 2nd, ..., 53th | + | | II | WW | 01, 02, ..., 53 | + | Day of month | d | D | 1, 2, ..., 31 | + | | do | Do | 1st, 2nd, ..., 31st | + | | dd | DD | 01, 02, ..., 31 | + | Day of year | D | DDD | 1, 2, ..., 365, 366 | + | | Do | DDDo | 1st, 2nd, ..., 365th, 366th | + | | DD | | 01, 02, ..., 365, 366 | + | | DDD | DDDD | 001, 002, ..., 365, 366 | + | | DDDD | | ... | + | Day of week (formatting) | E..EEE | | Mon, Tue, Wed, ..., Su | + | | EEEE | | Monday, Tuesday, ..., Sunday | + | | EEEEE | | M, T, W, T, F, S, S | + | | EEEEEE | | Mo, Tu, We, Th, Fr, Sa, Su | + | ISO day of week (formatting) | i | E | 1, 2, 3, ..., 7 | + | | io | do | 1st, 2nd, ..., 7th | + | | ii | | 01, 02, ..., 07 | + | | iii | ddd | Mon, Tue, Wed, ..., Su | + | | iiii | dddd | Monday, Tuesday, ..., Sunday | + | | iiiii | | M, T, W, T, F, S, S | + | | iiiiii | dd | Mo, Tu, We, Th, Fr, Sa, Su | + | Local day of week (formatting) | e | | 2, 3, 4, ..., 1 | + | | eo | | 2nd, 3rd, ..., 1st | + | | ee | | 02, 03, ..., 01 | + | | eee | | Mon, Tue, Wed, ..., Su | + | | eeee | | Monday, Tuesday, ..., Sunday | + | | eeeee | | M, T, W, T, F, S, S | + | | eeeeee | | Mo, Tu, We, Th, Fr, Sa, Su | + | Local day of week (stand-alone) | c | | 2, 3, 4, ..., 1 | + | | co | | 2nd, 3rd, ..., 1st | + | | cc | | 02, 03, ..., 01 | + | | ccc | | Mon, Tue, Wed, ..., Su | + | | cccc | | Monday, Tuesday, ..., Sunday | + | | ccccc | | M, T, W, T, F, S, S | + | | cccccc | | Mo, Tu, We, Th, Fr, Sa, Su | + | AM, PM | a..aaa | A | AM, PM | + | | aaaa | aa | a.m., p.m. | + | | aaaaa | | a, p | + | AM, PM, noon, midnight | b..bbb | | AM, PM, noon, midnight | + | | bbbb | | a.m., p.m., noon, midnight | + | | bbbbb | | a, p, n, mi | + | Flexible day period | B..BBB | | at night, in the morning, ... | + | | BBBB | | at night, in the morning, ... | + | | BBBBB | | at night, in the morning, ... | + | Hour [1-12] | h | | 1, 2, ..., 11, 12 | + | | ho | | 1st, 2nd, ..., 11th, 12th | + | | hh | | 01, 02, ..., 11, 12 | + | Hour [0-23] | H | | 0, 1, 2, ..., 23 | + | | Ho | | 0th, 1st, 2nd, ..., 23rd | + | | HH | | 00, 01, 02, ..., 23 | + | Hour [0-11] | K | | 1, 2, ..., 11, 0 | + | | Ko | | 1st, 2nd, ..., 11th, 0th | + | | KK | | 1, 2, ..., 11, 0 | + | Hour [1-24] | k | | 24, 1, 2, ..., 23 | + | | ko | | 24th, 1st, 2nd, ..., 23rd | + | | kk | | 24, 01, 02, ..., 23 | + | Minute | m | | 0, 1, ..., 59 | + | | mo | | 0th, 1st, ..., 59th | + | | mm | | 00, 01, ..., 59 | + | Second | s | | 0, 1, ..., 59 | + | | so | | 0th, 1st, ..., 59th | + | | ss | | 00, 01, ..., 59 | + | Fraction of second | S | | 0, 1, ..., 9 | + | | SS | | 00, 01, ..., 99 | + | | SSS | | 000, 0001, ..., 999 | + | | SSSS | | ... | + | Timezone (ISO-8601 w/ Z) | X | | -08, +0530, Z | + | | XX | | -0800, +0530, Z | + | | XXX | | -08:00, +05:30, Z | + | | XXXX | | -0800, +0530, Z, +123456 | + | | XXXXX | | -08:00, +05:30, Z, +12:34:56 | + | Timezone (ISO-8601 w/o Z) | x | | -08, +0530, +00 | + | | xx | ZZ | -0800, +0530, +0000 | + | | xxx | Z | -08:00, +05:30, +00:00 | + | | xxxx | | -0800, +0530, +0000, +123456 | + | | xxxxx | | -08:00, +05:30, +00:00, +12:34:56 | + | Timezone (GMT) | O...OOO | | GMT-8, GMT+5:30, GMT+0 | + | | OOOO | | GMT-08:00, GMT+05:30, GMT+00:00 | + | Timezone (specific non-locat.) | z...zzz | | GMT-8, GMT+5:30, GMT+0 | + | | zzzz | | GMT-08:00, GMT+05:30, GMT+00:00 | + | Seconds timestamp | t | X | 512969520 | + | | tt | | ... | + | Milliseconds timestamp | T | x | 512969520900 | + | | TT | | ... | + | Long localized date | P | | 5/29/53 | + | | PP | | May 29, 1453 | + | | PPP | | May 29th, 1453 | + | | PPPP | | Sunday, May 29th, 1453 | + | Long localized time | p | | 12:00 AM | + | | pp | | 12:00:00 AM | + | | ppp | | 12:00:00 AM GMT+2 | + | | pppp | | 12:00:00 AM GMT+02:00 | + | Combination of date and time | Pp | | 5/29/53, 12:00 AM | + | | PPpp | | May 29, 1453, 12:00 AM | + | | PPPppp | | May 29th, 1453 at ... | + | | PPPPpppp | | Sunday, May 29th, 1453 at ... | + + Characters are now escaped using single quote symbols (`'`) instead of square brackets. + `format` now throws RangeError if it encounters an unescaped latin character + that isn't a valid formatting token. + + To use `YY` and `YYYY` tokens that represent week-numbering years, + you should set `useAdditionalWeekYearTokens` option: + + ```javascript + format(Date.now(), 'YY', { useAdditionalWeekYearTokens: true }) + //=> '86' + ``` + + To use `D` and `DD` tokens which represent days of the year, + set `useAdditionalDayOfYearTokens` option: + + ```javascript + format(Date.now(), 'D', { useAdditionalDayOfYearTokens: true }) + //=> '364' + ``` + +- **BREAKING**: function submodules now use camelCase naming schema: + + ```javascript + // Before v2.0.0 + import differenceInCalendarISOYears from 'date-fns/difference_in_calendar_iso_years' + + // v2.0.0 onward + import differenceInCalendarISOYears from 'date-fns/differenceInCalendarISOYears' + ``` + +- **BREAKING**: min and max functions now accept an array of dates + rather than spread arguments. + + ```javascript + // Before v2.0.0 + var date1 = new Date(1989, 6 /* Jul */, 10) + var date2 = new Date(1987, 1 /* Feb */, 11) + + var minDate = min(date1, date2) + var maxDate = max(date1, date2) + + // v2.0.0 onward: + var dates = [new Date(1989, 6 /* Jul */, 10), new Date(1987, 1 /* Feb */, 11)] + + var minDate = min(dates) + var maxDate = max(dates) + ``` + +- **BREAKING**: make the second argument of `format` required for the sake of explicitness. + + ```javascript + // Before v2.0.0 + format(new Date(2016, 0, 1)) + + // v2.0.0 onward + format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx") + ``` + +- **BREAKING** renamed ISO week-numbering year helpers: + + - `addISOYears` → `addISOWeekYears` + - `differenceInCalendarISOYears` → `differenceInCalendarISOWeekYears` + - `differenceInISOYears` → `differenceInISOWeekYears` + - `endOfISOYear` → `endOfISOWeekYear` + - `getISOYear` → `getISOWeekYear` + - `isSameISOYear` → `isSameISOWeekYear` + - `lastDayOfISOYear` → `lastDayOfISOWeekYear` + - `setISOYear` → `setISOWeekYear` + - `subISOYears` → `subISOWeekYears` + + i.e. "ISO year" renamed to "ISO week year", which is short for + [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date). + It makes them consistent with locale-dependent week-numbering year helpers, + e.g., `startOfWeekYear`. + +- **BREAKING**: functions renamed: + + - `areRangesOverlapping` → `areIntervalsOverlapping` + - `eachDay` → `eachDayOfInterval` + - `getOverlappingDaysInRanges` → `getOverlappingDaysInIntervals` + - `isWithinRange` → `isWithinInterval` + + This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology: + + ``` + 2.1.3 + time interval + part of the time axis limited by two instants + ``` + + Also these functions now accept an object with `start` and `end` properties + instead of two arguments as an interval. All these functions + throw `RangeError` if the start of the interval is after its end + or if any date in the interval is `Invalid Date`. + + ```javascript + // Before v2.0.0 + + areRangesOverlapping( + new Date(2014, 0, 10), + new Date(2014, 0, 20), + new Date(2014, 0, 17), + new Date(2014, 0, 21) + ) + + eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20)) + + getOverlappingDaysInRanges( + new Date(2014, 0, 10), + new Date(2014, 0, 20), + new Date(2014, 0, 17), + new Date(2014, 0, 21) + ) + + isWithinRange( + new Date(2014, 0, 3), + new Date(2014, 0, 1), + new Date(2014, 0, 7) + ) + + // v2.0.0 onward + + areIntervalsOverlapping( + { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + ) + + eachDayOfInterval({ + start: new Date(2014, 0, 10), + end: new Date(2014, 0, 20), + }) + + getOverlappingDaysInIntervals( + { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + ) + + isWithinInterval(new Date(2014, 0, 3), { + start: new Date(2014, 0, 1), + end: new Date(2014, 0, 7), + }) + ``` + +- **BREAKING**: functions renamed: + + - `distanceInWords` → `formatDistance` + - `distanceInWordsStrict` → `formatDistanceStrict` + - `distanceInWordsToNow` → `formatDistanceToNow` + + to make them consistent with `format` and `formatRelative`. + +- **BREAKING**: The order of arguments of `distanceInWords` and `distanceInWordsStrict` + is swapped to make them consistent with `differenceIn...` functions. + + ```javascript + // Before v2.0.0 + + distanceInWords( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 11, 32, 0), + { addSuffix: true } + ) //=> 'in about 1 hour' + + // v2.0.0 onward + + formatDistance( + new Date(1986, 3, 4, 11, 32, 0), + new Date(1986, 3, 4, 10, 32, 0), + { addSuffix: true } + ) //=> 'in about 1 hour' + ``` + +- **BREAKING**: `partialMethod` option in `formatDistanceStrict` is renamed to `roundingMethod`. + + ```javascript + // Before v2.0.0 + + distanceInWordsStrict( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 10, 33, 1), + { partialMethod: 'ceil' } + ) //=> '2 minutes' + + // v2.0.0 onward + + formatDistanceStrict( + new Date(1986, 3, 4, 10, 33, 1), + new Date(1986, 3, 4, 10, 32, 0), + { roundingMethod: 'ceil' } + ) //=> '2 minutes' + ``` + +- **BREAKING**: in `formatDistanceStrict`, if `roundingMethod` is not specified, + it now defaults to `round` instead of `floor`. + +- **BREAKING**: `unit` option in `formatDistanceStrict` now accepts one of the strings: + 'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y' + + ```javascript + // Before v2.0.0 + + distanceInWordsStrict( + new Date(1986, 3, 4, 10, 32, 0), + new Date(1986, 3, 4, 10, 33, 1), + { unit: 'm' } + ) + + // v2.0.0 onward + + formatDistanceStrict( + new Date(1986, 3, 4, 10, 33, 1), + new Date(1986, 3, 4, 10, 32, 0), + { unit: 'minute' } + ) + ``` + +- **BREAKING**: `parse` that previously used to convert strings and + numbers to dates now parses only strings in an arbitrary format + specified as an argument. Use `toDate` to coerce numbers and `parseISO` + to parse ISO 8601 strings. + + ```javascript + // Before v2.0.0 + parse('2016-01-01') + parse(1547005581366) + parse(new Date()) // Clone the date + + // v2.0.0 onward + parse('2016-01-01', 'yyyy-MM-dd', new Date()) + parseISO('2016-01-01') + toDate(1547005581366) + toDate(new Date()) // Clone the date + ``` + +- **BREAKING**: `toDate` (previously `parse`) now doesn't accept string + arguments but only numbers and dates. `toDate` called with an invalid + argument will return `Invalid Date`. + +- **BREAKING**: new locale format. + See [docs/Locale](https://date-fns.org/docs/Locale). + Locales renamed: + + - `en` → `en-US` + - `zh_cn` → `zh-CN` + - `zh_tw` → `zh-TW` + + ```javascript + // Before v2.0.0 + import locale from 'date-fns/locale/zh_cn' + + // v2.0.0 onward + import locale from 'date-fns/locale/zh-CN' + ``` + +- **BREAKING**: now `closestTo` and `closestIndexTo` don't throw an exception + when the second argument is not an array, and return Invalid Date instead. + +- **BREAKING**: now `isValid` doesn't throw an exception + if the first argument is not an instance of Date. + Instead, argument is converted beforehand using `toDate`. + + Examples: + + | `isValid` argument | Before v2.0.0 | v2.0.0 onward | + | ------------------------- | ------------- | ------------- | + | `new Date()` | `true` | `true` | + | `new Date('2016-01-01')` | `true` | `true` | + | `new Date('')` | `false` | `false` | + | `new Date(1488370835081)` | `true` | `true` | + | `new Date(NaN)` | `false` | `false` | + | `'2016-01-01'` | `TypeError` | `false` | + | `''` | `TypeError` | `false` | + | `1488370835081` | `TypeError` | `true` | + | `NaN` | `TypeError` | `false` | + + We introduce this change to make _date-fns_ consistent with ECMAScript behavior + that try to coerce arguments to the expected type + (which is also the case with other _date-fns_ functions). + +- **BREAKING**: functions now throw `RangeError` if optional values passed to `options` + are not `undefined` or have expected values. + This change is introduced for consistency with ECMAScript standard library which does the same. + +- **BREAKING**: `format`, `formatDistance` (previously `distanceInWords`) and + `formatDistanceStrict` (previously `distanceInWordsStrict`) now throw + `RangeError` if one of the passed arguments is invalid. It reflects behavior of + `toISOString` and Intl API. See [#1032](https://github.com/date-fns/date-fns/pull/1032). + +- **BREAKING**: all functions now implicitly convert arguments by following rules: + + | | date | number | string | boolean | + | --------- | ------------ | ------ | ----------- | ------- | + | 0 | new Date(0) | 0 | '0' | false | + | '0' | Invalid Date | 0 | '0' | false | + | 1 | new Date(1) | 1 | '1' | true | + | '1' | Invalid Date | 1 | '1' | true | + | true | Invalid Date | NaN | 'true' | true | + | false | Invalid Date | NaN | 'false' | false | + | null | Invalid Date | NaN | 'null' | false | + | undefined | Invalid Date | NaN | 'undefined' | false | + | NaN | Invalid Date | NaN | 'NaN' | false | + + Notes: + + - as before, arguments expected to be `Date` are converted to `Date` using _date-fns'_ `toDate` function; + - arguments expected to be numbers are converted to integer numbers using our custom `toInteger` implementation + (see [#765](https://github.com/date-fns/date-fns/pull/765)); + - arguments expected to be strings are converted to strings using JavaScript's `String` function; + - arguments expected to be booleans are converted to boolean using JavaScript's `Boolean` function. + + `null` and `undefined` passed to optional arguments (i.e. properties of `options` argument) + are ignored as if no argument was passed. + + If any resulting argument is invalid (i.e. `NaN` for numbers and `Invalid Date` for dates), + an invalid value will be returned: + + - `false` for functions that return booleans (expect `isValid`); + - `Invalid Date` for functions that return dates; + - and `NaN` for functions that return numbers. + + See tests and PRs [#460](https://github.com/date-fns/date-fns/pull/460) and + [#765](https://github.com/date-fns/date-fns/pull/765) for exact behavior. + +- **BREAKING**: all functions now check if the passed number of arguments is less + than the number of required arguments and will throw `TypeError` exception if so. + +- **BREAKING**: all functions that accept numbers as arguments, now coerce + values using `Number()` and also round off decimals. Positive decimals are + rounded using `Math.floor`, decimals less than zero are rounded using + `Math.ceil`. + +- **BREAKING**: The Bower & UMD/CDN package versions are no longer supported. + +- **BREAKING**: `null` now is not a valid date. `isValid(null)` returns `false`; + `toDate(null)` returns an invalid date. Since `toDate` is used internally + by all the functions, operations over `null` will also return an invalid date. + [See #537](https://github.com/date-fns/date-fns/issues/537) for the reasoning. + +- `toDate` (previously `parse`) and `isValid` functions now accept `any` type + as the first argument. + +- [Exclude `docs.json` from the npm package](https://github.com/date-fns/date-fns/pull/837). Kudos to [@hawkrives](https://github.com/hawkrives). + +### Added + +- FP functions like those in [lodash](https://github.com/lodash/lodash/wiki/FP-Guide), + that support [currying](https://en.wikipedia.org/wiki/Currying), and, as a consequence, + functional-style [function composing](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba). + + Functions with options (`format`, `parse`, etc.) have two FP counterparts: + one that has the options object as its first argument and one that hasn't. + The name of the former has `WithOptions` added to the end of its name. + + In FP functions, the order of arguments is reversed. + + See [FP Guide](https://date-fns.org/docs/FP-Guide) for more information. + + ```javascript + import addYears from 'date-fns/fp/addYears' + import formatWithOptions from 'date-fns/fp/formatWithOptions' + import eo from 'date-fns/locale/eo' + + // If FP function has not received enough arguments, it returns another function + const addFiveYears = addYears(5) + + // Several arguments can be curried at once + const dateToString = formatWithOptions({ locale: eo }, 'd MMMM yyyy') + + const dates = [ + new Date(2017, 0 /* Jan */, 1), + new Date(2017, 1 /* Feb */, 11), + new Date(2017, 6 /* Jul */, 2), + ] + + const formattedDates = dates.map((date) => dateToString(addFiveYears(date))) + //=> ['1 januaro 2022', '11 februaro 2022', '2 julio 2022'] + ``` + +- Added support for [ECMAScript Modules](http://www.ecma-international.org/ecma-262/6.0/#sec-modules). + + It allows usage with bundlers that support tree-shaking, + like [rollup.js](http://rollupjs.org) and [webpack](https://webpack.js.org): + + ```javascript + // Without tree-shaking: + import format from 'date-fns/format' + import parse from 'date-fns/parse' + + // With tree-shaking: + import { format, parse } from 'date-fns' + ``` + + Also, ESM functions provide default export, they can be used with TypeScript + to import functions in more idiomatic way: + + ```typescript + // Before + import * as format from 'date-fns/format' + + // Now + import format from 'date-fns/format' + ``` + +- `formatRelative` function. See [formatRelative](https://date-fns.org/docs/formatRelative) + +- Flow typings for `index.js`, `fp/index.js`, `locale/index.js`, and their ESM equivalents. + See PR [#558](https://github.com/date-fns/date-fns/pull/558) + +- New locale-dependent week-numbering year helpers: + + - `getWeek` + + - `getWeekYear` + + - `setWeek` + + - `setWeekYear` + + - `startOfWeekYear` + +- Added `eachWeekOfInterval`, the weekly equivalent of `eachDayOfInterval` + +- [Added `getUnixTime` function](https://github.com/date-fns/date-fns/pull/870). Kudos to [@Kingwl](https://github.com/Kingwl). + +- [New decade helpers](https://github.com/date-fns/date-fns/pull/839). Thanks to [@y-nk](https://github.com/y-nk)! + + - `getDecade` + + - `startOfDecade` + + - `endOfDecade` + + - `lastDayOfDecade` + +- [New `roundToNearestMinutes` function](https://github.com/date-fns/date-fns/pull/928). Kudos to [@xkizer](https://github.com/xkizer). + +- Added new function `fromUnixTime`. Thansk to [@xkizer](https://github.com/xkizer). + +- New interval, month, and year helpers to fetch a list of all Saturdays and Sundays (weekends) for a given date interval. `eachWeekendOfInterval` is the handler function while the other two are wrapper functions. Kudos to [@laekettavong](https://github.com/laekettavong)! + + - `eachWeekendOfInterval` + + - `eachWeekendOfMonth` + + - `eachWeekendOfYear` + +- Build-efficient `lightFormat` that only supports the popular subset of tokens. See [#1050](https://github.com/date-fns/date-fns/pull/1015). + +- `parseISO` function that parses ISO 8601 strings. See [#1023](https://github.com/date-fns/date-fns/pull/1023). + +- Add constants that can be imported directly from `date-fns` or the submodule `date-fns/constants`: + + - `maxTime` + + - `minTime` + +- New locales: + + - [Norwegian Nynorsk locale (nn)](https://github.com/date-fns/date-fns/pull/1172) + by [@draperunner](https://github.com/draperunner). + + - [Ukrainian locale (ua)](https://github.com/date-fns/date-fns/pull/532) + by [@korzhyk](https://github.com/korzhyk). + + - [Vietnamese locale (vi)](https://github.com/date-fns/date-fns/pull/546) + by [@trongthanh](https://github.com/trongthanh). + + - [Persian locale (fa-IR)](https://github.com/date-fns/date-fns/pull/1113) + by [@mort3za](https://github.com/mort3za). + + - [Latvian locale (lv)](https://github.com/date-fns/date-fns/pull/1175) + by [@prudolfs](https://github.com/prudolfs). + + - [Bengali locale (bb)](https://github.com/date-fns/date-fns/pull/845) + by [@nutboltu](https://github.com/nutboltu) and [@touhidrahman](https://github.com/touhidrahman). + + - [Hungarian (hu) and Lithuanian (lt) locales](https://github.com/date-fns/date-fns/pull/864) + by [@izifortune](https://github.com/izifortune) and [pardoeryanair](https://github.com/pardoeryanair). + + - [Canadian English locale (en-CA)](https://github.com/date-fns/date-fns/pull/688) + by [@markowsiak](https://github.com/markowsiak). + + - [Great Britain English locale (en-GB)](https://github.com/date-fns/date-fns/pull/563) + by [@glintik](https://github.com/glintik). + + - [Uighur locale (ug)](https://github.com/date-fns/date-fns/pull/1080) + by [@abduwaly](https://github.com/abduwaly). + +- [Added new function `differenceInBusinessDays`](https://github.com/date-fns/date-fns/pull/1194) + which calculates the difference in business days. Kudos to [@ThorrStevens](https://github.com/ThorrStevens)! + +- [Added new function `addBusinessDays`](https://github.com/date-fns/date-fns/pull/1154), + similar to `addDays` but ignoring weekends. Thanks to [@ThorrStevens](https://github.com/ThorrStevens)! + +## [1.30.1] - 2018-12-10 + +### Fixed + +- [Fixed DST issue](https://github.com/date-fns/date-fns/pull/1005). See [#972](https://github.com/date-fns/date-fns/issues/972) and [#992](https://github.com/date-fns/date-fns/issues/992) for more details. This fix was backported from v2. + +- Fix a few bugs that appear in timezones with offsets that include seconds (e.g. GMT+00:57:44). See PR [#789](https://github.com/date-fns/date-fns/issues/789). This fix was backported from v2. + +- [Fixed misspelled January in the Thai locale](https://github.com/date-fns/date-fns/pull/913). Thanks to [@ratchapol-an](https://github.com/ratchapol-an)! + +### Added + +- [Added Serbian locale](https://github.com/date-fns/date-fns/pull/717). Kudos to [@mawi12345](https://github.com/mawi12345)! + +- [Added Belarusian locale](https://github.com/date-fns/date-fns/pull/716). Kudos to [@mawi12345](https://github.com/mawi12345) again! + +### Changed + +- [Improved ja translation of distanceInWords](https://github.com/date-fns/date-fns/pull/880). Thanks to [@kudohamu](https://github.com/kudohamu)! + +## [1.30.0] - 2018-12-10 + +⚠️ The release got failed. + +## [1.29.0] - 2017-10-11 + +### Fixed + +- Fixed Italian translations for `formatDistance`. ([see the issue: #550](https://github.com/date-fns/date-fns/issues/550); [see the PR: #552](https://github.com/date-fns/date-fns/pull/552)) + Thanks to [@giofilo](https://github.com/giofilo)! + +### Added + +- [Hungarian locale (hu)](https://github.com/date-fns/date-fns/pull/503) + (thanks to László Horváth [@horvathlg](https://github.com/horvathlg)) + +- [Slovenian locale (sl)](https://github.com/date-fns/date-fns/pull/505) + (thanks to Adam Stradovnik [@Neoglyph](https://github.com/Neoglyph)) + +- Added `step` to `eachDay` function. Thanks to [@BDav24](https://github.com/BDav24). + See PR [#487](https://github.com/date-fns/date-fns/pull/487). + +## [1.28.5] - 2017-05-19 + +### Fixed + +- Fixed a.m./p.m. formatters in Chinese Simplified locale. + Thanks to [@fnlctrl](https://github.com/fnlctrl). + See PR [#486](https://github.com/date-fns/date-fns/pull/486) + +## [1.28.4] - 2017-04-26 + +### Fixed + +- Fixed accents on weekdays in the Italian locale. + See PR [#481](https://github.com/date-fns/date-fns/pull/481). + Thanks to [@albertorestifo](https://github.com/albertorestifo) + +- Fixed typo in `ddd` format token in Spanish language locale. + Kudos to [@fjaguero](https://github.com/fjaguero). + See PR [#482](https://github.com/date-fns/date-fns/pull/482) + +## [1.28.3] - 2017-04-14 + +### Fixed + +- Fixed ordinal numbers for Danish language locale. Thanks to [@kgram](https://github.com/kgram). + See PR [#474](https://github.com/date-fns/date-fns/pull/474) + +## [1.28.2] - 2017-03-27 + +### Fixed + +- Fixed `dd` and `ddd` formatters in Polish language locale. Kudos to [@justrag](https://github.com/justrag). + See PR: [#467](https://github.com/date-fns/date-fns/pull/467) + +## [1.28.1] - 2017-03-19 + +### Fixed + +- Fixed DST border bug in `addMilliseconds`, `addSeconds`, `addMinutes`, `addHours`, + `subMilliseconds`, `subSeconds`, `subMinutes` and `subHours`. + See issue [#465](https://github.com/date-fns/date-fns/issues/465) + +- Minor fix for Indonesian locale. Thanks to [@bentinata](https://github.com/bentinata). + See PR: [#458](https://github.com/date-fns/date-fns/pull/458) + +## [1.28.0] - 2017-02-27 + +### Added + +- [Romanian locale (ro)](https://github.com/date-fns/date-fns/pull/446) + (thanks to Sergiu Munteanu [@jsergiu](https://github.com/jsergiu)) + +### Fixed + +- All functions now convert all their arguments to the respective types. + See PR: [#443](https://github.com/date-fns/date-fns/pull/443) + +- Fixes for ordinals (1er, 2, 3, …) in French locale. + Thanks to [@fbonzon](https://github.com/fbonzon). + See PR: [#449](https://github.com/date-fns/date-fns/pull/449) + +## [1.27.2] - 2017-02-01 + +### Fixed + +- Various fixes for Dutch locale. See PR: [#416](https://github.com/date-fns/date-fns/pull/416). + Thanks to Ruben Stolk [@rubenstolk](https://github.com/rubenstolk) + +## [1.27.1] - 2017-01-20 + +### Fixed + +- Added generation of TypeScript locale sub-modules, allowing import of locales in TypeScript. + +## [1.27.0] - 2017-01-19 + +### Added + +- [Macedonian locale (mk)](https://github.com/date-fns/date-fns/pull/398) + (thanks to Petar Vlahu [@vlahupetar](https://github.com/vlahupetar)) + +## [1.26.0] - 2017-01-15 + +### Added + +- `getTime` + +### Fixed + +- Various fixes for Japanese locale. See PR: [395](https://github.com/date-fns/date-fns/pull/395). + Thanks to Yamagishi Kazutoshi [@ykzts](https://github.com/ykzts) + +## [1.25.0] - 2017-01-11 + +### Added + +- [Bulgarian locale (bg)](https://github.com/date-fns/date-fns/pull/357) + (thanks to Nikolay Stoynov [@arvigeus](https://github.com/arvigeus)) + +- [Czech locale (cs)](https://github.com/date-fns/date-fns/pull/386) + (thanks to David Rus [@davidrus](https://github.com/davidrus)) + +## [1.24.0] - 2017-01-06 + +### Added + +- [Modern Standard Arabic locale (ar)](https://github.com/date-fns/date-fns/pull/367) + (thanks to Abdallah Hassan [@AbdallahAHO](https://github.com/AbdallahAHO)) + +## [1.23.0] - 2017-01-05 + +### Added + +- Auto generate TypeScript and flow typings from documentation on release. + Thanks to [@mattlewis92](https://github.com/mattlewis92). + See related PRs: [#355](https://github.com/date-fns/date-fns/pull/355), + [#370](https://github.com/date-fns/date-fns/pull/370) + +- [Croatian locale (hr)](https://github.com/date-fns/date-fns/pull/365) + (thanks to Matija Marohnić [@silvenon](https://github.com/silvenon)) + +- [Thai locale (th)](https://github.com/date-fns/date-fns/pull/362) + (thanks to Athiwat Hirunworawongkun [@athivvat](https://github.com/athivvat)) + +- [Finnish locale (fi)](https://github.com/date-fns/date-fns/pull/361) + (thanks to Pyry-Samuli Lahti [@Pyppe](https://github.com/Pyppe)) + +## [1.22.0] - 2016-12-28 + +### Added + +- [Icelandic locale (is)](https://github.com/date-fns/date-fns/pull/356) + (thanks to Derek Blank [@derekblank](https://github.com/derekblank)) + +## [1.21.1] - 2016-12-18 + +### Fixed + +- Fixed `isBefore` and `isAfter` documentation mistakes. + +## [1.21.0] - 2016-12-16 + +### Added + +- [Filipino locale (fil)](https://github.com/date-fns/date-fns/pull/339) + (thanks to Ian De La Cruz [@RIanDeLaCruz](https://github.com/RIanDeLaCruz)) + +- [Danish locale (da)](https://github.com/date-fns/date-fns/pull/343) + (kudos to Anders B. Hansen [@Andersbiha](https://github.com/Andersbiha)) + +## [1.20.1] - 2016-12-14 + +### Fixed + +- Fixed documentation for `getOverlappingDaysInRanges`. + +## [1.20.0] - 2016-12-13 + +### Added + +- `areRangesOverlapping` and `getOverlappingDaysInRanges` + Thanks to Joanna T [@asia-t](https://github.com/asia-t). + See PR: [#331](https://github.com/date-fns/date-fns/pull/331) + +## [1.19.0] - 2016-12-13 + +### Added + +- [Greek locale (el)](https://github.com/date-fns/date-fns/pull/334) + (kudos to Theodoros Orfanidis [@teoulas](https://github.com/teoulas)) + +- [Slovak locale (sk)](https://github.com/date-fns/date-fns/pull/336) + (kudos to Marek Suscak [@mareksuscak](https://github.com/mareksuscak)) + +- Added yarn support. + Thanks to Uladzimir Havenchyk [@havenchyk](https://github.com/havenchyk). + See PR: [#288](https://github.com/date-fns/date-fns/pull/288) + +## [1.18.0] - 2016-12-12 + +### Added + +- [Turkish locale (tr)](https://github.com/date-fns/date-fns/pull/329) + (kudos to Alpcan Aydın [@alpcanaydin](https://github.com/alpcanaydin)) + +- [Korean locale (ko)](https://github.com/date-fns/date-fns/pull/327) + (thanks to Hong Chulju [@angdev](https://github.com/angdev)) + +### Fixed + +- `SS` and `SSS` formats in `format` are now correctly displayed with leading zeros. + Thanks to Paul Dijou [@pauldijou](https://github.com/pauldijou). + See PR: [#330](https://github.com/date-fns/date-fns/pull/330) + +## [1.17.0] - 2016-12-10 + +### Added + +- [Polish locale (pl)](https://github.com/date-fns/date-fns/pull/294) + (thanks to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks)) + +- [Portuguese locale (pt)](https://github.com/date-fns/date-fns/pull/316) + (thanks to Dário Freire [@dfreire](https://github.com/dfreire)) + +- [Swedish locale (sv)](https://github.com/date-fns/date-fns/pull/311) + (thanks to Johannes Ulén [@ejulen](https://github.com/ejulen)) + +- [French locale (fr)](https://github.com/date-fns/date-fns/pull/281) + (thanks to Jean Dupouy [@izeau](https://github.com/izeau)) + +- Performance tests. See PR: [#289](https://github.com/date-fns/date-fns/pull/289) + +### Fixed + +- Fixed TypeScript and flow typings for `isValid`. + See PR: [#310](https://github.com/date-fns/date-fns/pull/310) + +- Fixed incorrect locale tests that could potentially lead to `format` bugs. + Kudos to Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks). + See related PRs: [#312](https://github.com/date-fns/date-fns/pull/312), + [#320](https://github.com/date-fns/date-fns/pull/320) + +- Minor language fixes in the documentation. + Thanks to Vedad Šoše [@vedadsose](https://github.com/vedadsose) ([#314](https://github.com/date-fns/date-fns/pull/314)) + and Asia [@asia-t](https://github.com/asia-t) ([#318](https://github.com/date-fns/date-fns/pull/318)) + +### Changed + +- `format` now returns `String('Invalid Date')` if the passed date is invalid. + See PR: [#323](https://github.com/date-fns/date-fns/pull/323) + +- `distanceInWords`, `distanceInWordsToNow`, `distanceInWordsStrict` and `format` functions now + check if the passed locale is valid, and fallback to English locale otherwise. + See PR: [#321](https://github.com/date-fns/date-fns/pull/321) + +- _Internal_: use a loop instead of `Object.keys` in `buildFormattingTokensRegExp` + to improve compatibility with older browsers. + See PR: [#322](https://github.com/date-fns/date-fns/pull/322) + +## [1.16.0] - 2016-12-08 + +### Added + +- [Italian locale (it)](https://github.com/date-fns/date-fns/pull/298) + (thanks to Alberto Restifo [@albertorestifo](https://github.com/albertorestifo)) + +- For German `buildDistanceInWordsLocale`, add nominative case translations (for distances without a suffix). + Kudos to Asia [@asia-t](https://github.com/asia-t). + See related PR: [#295](https://github.com/date-fns/date-fns/pull/295) + +## [1.15.1] - 2016-12-07 + +### Fixed + +- Fixed TypeScript imports from individual modules. + Thanks to [@mattlewis92](https://github.com/mattlewis92). + See related PR: [#287](https://github.com/date-fns/date-fns/pull/287) + +## [1.15.0] - 2016-12-07 + +### Added + +- [Indonesian locale (id)](https://github.com/date-fns/date-fns/pull/299) + (thanks to Rahmat Budiharso [@rbudiharso](https://github.com/rbudiharso)) + +- [Catalan locale (ca)](https://github.com/date-fns/date-fns/pull/300) + (thanks to Guillermo Grau [@guigrpa](https://github.com/guigrpa)) + +### Fixed + +- Fixed some inaccuracies in Spanish locale. + Kudos to [@guigrpa](https://github.com/guigrpa). + See related PR: [#302](https://github.com/date-fns/date-fns/pull/302) + +## [1.14.1] - 2016-12-06 + +### Fixed + +- Fixed broken test for Norwegian Bokmål locale. + +## [1.14.0] - 2016-12-06 + +### Added + +- [Norwegian Bokmål locale (nb)](https://github.com/date-fns/date-fns/pull/291) + (thanks to Hans-Kristian Koren [@Hanse](https://github.com/Hanse)) + +## [1.13.0] - 2016-12-06 + +### Added + +- [Chinese Traditional locale (zh_tw)](https://github.com/date-fns/date-fns/pull/283) + (thanks to tonypai [@tpai](https://github.com/tpai)). + +- [Dutch language locale (nl)](https://github.com/date-fns/date-fns/pull/278) + (kudos to Jorik Tangelder [@jtangelder](https://github.com/jtangelder)) + +## [1.12.1] - 2016-12-05 + +### Fixed + +- Added `distanceInWordsStrict` to the list of supported functions in I18n doc. + +## [1.12.0] - 2016-12-05 + +### Added + +- [Spanish language locale (es)](https://github.com/date-fns/date-fns/pull/269) + (thanks to Juan Angosto [@juanangosto](https://github.com/juanangosto)). + +### Fixed + +- Fixed flow typings for some of the functions. + See PR: [#273](https://github.com/date-fns/date-fns/pull/273) + +## [1.11.2] - 2016-11-28 + +### Fixed + +- Bug in `parse` when it sometimes parses ISO week-numbering dates incorrectly. + See PR: [#262](https://github.com/date-fns/date-fns/pull/262) + +- Bug in some functions which caused them to handle dates earlier than 100 AD incorrectly. + See PR: [#263](https://github.com/date-fns/date-fns/pull/263) + +## [1.11.1] - 2016-11-24 + +### Fixed + +- Include TypeScript typings with npm package. + +## [1.11.0] - 2016-11-23 + +### Added + +- `distanceInWordsStrict`. + Kudos to [@STRML](https://github.com/STRML). + See related PR: [#254](https://github.com/date-fns/date-fns/pull/254) + +- [TypeScript](https://www.typescriptlang.org/) typings for all functions. + Kudos to [@mattlewis92](https://github.com/mattlewis92). + See related PR: [#255](https://github.com/date-fns/date-fns/pull/255) + +## [1.10.0] - 2016-11-01 + +### Added + +- `parse` now can parse dates that are ISO 8601 centuries (e.g., `19` and `+0019`). + + ```javascript + var result = parse('19') + //=> Mon Jan 01 1900 00:00:00 + ``` + +- In `parse`, added ability to specify the number of additional digits + for extended year or century format (possible values are 0, 1 or 2; default is 2). + + ```javascript + parse('+002016-11-01') + parse('+02016-11-01', { additionalDigits: 1 }) + parse('+2016-11-01', { additionalDigits: 0 }) + ``` + +## [1.9.0] - 2016-10-25 + +### Added + +- Got index.js imports to work with SystemJS. + +## [1.8.1] - 2016-10-24 + +### Fixed + +- Added Japanese and German language locales to the list in I18n doc. + +## [1.8.0] - 2016-10-23 + +### Added + +- [Japanese language locale (ja)](https://github.com/date-fns/date-fns/pull/241) + (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu) again!) + +- `getISODay` + +- `setISODay` + +## [1.7.0] - 2016-10-20 + +### Added + +- [German language locale (de)](https://github.com/date-fns/date-fns/pull/237) + (thanks to Thomas Eilmsteiner [@DeMuu](https://github.com/DeMuu)). + +## [1.6.0] - 2016-10-16 + +### Added + +- [Chinese Simplified locale (zh_cn)](https://github.com/date-fns/date-fns/pull/235) + (kudos to Changyu [@KingMario](https://github.com/KingMario) Geng). + +## [1.5.2] - 2016-10-13 + +### Fixed + +- Incorrectly generated docs for `format`. + +- Fixed typo in I18n doc. + +## [1.5.1] - 2016-10-12 + +### Fixed + +- A change log entry for [1.5.0] is added. + +## [1.5.0] - 2016-10-12 + +### Added + +- [The initial I18n support](https://date-fns.org/docs/I18n) + +## [1.4.0] - 2016-10-09 + +### Added + +- Basic [SystemJS](https://github.com/systemjs/systemjs) support. + +### Fixed + +- Fixed incorrect behaviour of `YYYY` and `YY` for years prior to 1000: + now `format(new Date('0001-01-01'), 'YYYY-MM-DD')` returns `0001-01-01` + instead of `1-01-01`. + +## [1.3.0] - 2016-05-26 + +### Added + +- `closestIndexTo` + +## [1.2.0] - 2016-05-23 + +### Added + +- Added an ability to pass negative numbers to `setDay`. + +## [1.1.1] - 2016-05-19 + +### Fixed + +- Fixed [Flow](http://flowtype.org/) declarations for some of the functions. + +## [1.1.0] - 2016-05-19 + +### Added + +- [Flow](http://flowtype.org/) declarations for each function + in [the ".js.flow" style](http://flowtype.org/docs/declarations.html#declaration-files). + Kudos to [@JohnyDays](https://github.com/JohnyDays). See related PRs: + + - [#205](https://github.com/date-fns/date-fns/pull/205) + + - [#207](https://github.com/date-fns/date-fns/pull/207) + +## [1.0.0] - 2016-05-18 + +### Fixed + +- `format` now returns the correct result for key `E`. + +- Prevent `startOf...`, `endOf...` and `lastDayOf...` functions + to return dates with an incorrect time when the date is modifying + into another time zone. + +- `parse` now parses years from 1 AD to 99 AD correctly. + +- Fix a bug in `getISOWeek` appearing because of a changing time zone + (e.g., when the given date is in DST and the start of the ISO year is not). + +### Changed + +- **BREAKING**: all functions are moved to the root of the library, so they + are now accessible with `require('date-fns/name_of_function')` or + `import nameOfFunction from 'date-fns/name_of_function'`. + + ```javascript + // Before v1.0.0 + var addMonths = require('date-fns/src/add_months') + + // v1.0.0 onward + var addMonths = require('date-fns/add_months') + ``` + +- **BREAKING**: functions that had the last optional argument `weekStartsAt` + (i.e. `endOfWeek`, `isSameWeek`, `lastDayOfWeek`, `setDay`, `startOfWeek`) + now instead receive the object `options` with the property `options.weekStartsOn` + as the last argument. + + ```javascript + // Before v1.0.0 + var result = endOfWeek(new Date(2014, 8, 2), 1) + + // v1.0.0 onward + var result = endOfWeek(new Date(2014, 8, 2), { weekStartsOn: 1 }) + ``` + +- **BREAKING**: remove the function `getTimeSinceMidnight` that was used inside + the other functions. + +- **BREAKING**: `differenceInDays` now returns the number of full days instead + of calendar days. + +- **BREAKING**: `eachDay` and `isWithinRange` now throw an exception + when the given range boundaries are invalid. + +- Faster `isLeapYear`. + +- _Internal_: make the documentation more verbose. + +- _Internal_: convert the tests from Chai to power-assert allowing them + to run against IE8. + +### Added + +- `addISOYears` + +- `closestTo` + +- `differenceInCalendarDays` + +- `differenceInCalendarISOWeeks` + +- `differenceInCalendarISOYears` + +- `differenceInCalendarMonths` + +- `differenceInCalendarQuarters` + +- `differenceInCalendarWeeks` + +- `differenceInCalendarYears` + +- `differenceInHours` + +- `differenceInISOYears` + +- `differenceInMilliseconds` + +- `differenceInMinutes` + +- `differenceInMonths` + +- `differenceInQuarters` + +- `differenceInSeconds` + +- `differenceInWeeks` + +- `differenceInYears` + +- `distanceInWords` + +- `distanceInWordsToNow` + +- `endOfISOWeek` + +- `endOfISOYear` + +- `endOfToday` + +- `endOfTomorrow` + +- `endOfYesterday` + +- `getDaysInYear` + +- `isDate` + +- `isFriday` + +- `isMonday` + +- `isSameISOWeek` + +- `isSameISOYear` + +- `isSaturday` + +- `isSunday` + +- `isThisHour` + +- `isThisISOWeek` + +- `isThisISOYear` + +- `isThisMinute` + +- `isThisMonth` + +- `isThisQuarter` + +- `isThisSecond` + +- `isThisWeek` + +- `isThisYear` + +- `isThursday` + +- `isTomorrow` + +- `isTuesday` + +- `isValid` + +- `isWednesday` + +- `isYesterday` + +- `lastDayOfISOWeek` + +- `lastDayOfISOYear` + +- `startOfISOWeek` + +- `startOfToday` + +- `startOfTomorrow` + +- `startOfYesterday` + +- `subISOYears` + +- Add `Qo`, `W`, `Wo`, `WW`, `GG`, `GGGG`, `Z`, `ZZ`, `X`, `x` keys to `format`. + +## [0.17.0] - 2015-09-29 + +### Fixed + +- Fixed a lot of bugs appearing when date is modifying into other time zone + (e.g., when adding months and original date is in DST but new date is not). + +- Prevent instances of Date to lose milliseconds value when passed to. + `parse` in IE10. + +### Changed + +- `setISOWeek` now keeps time from original date. + +- _Internal_: reuse `getDaysInMonth` inside of `addMonths`. + +### Added + +- `differenceInDays` + +- `getTimeSinceMidnight` + +- `format` now has new format key `aa`, which returns `a.m.`/`p.m.` + as opposed to `a` that returns `am`/`pm`. + +- Complete UMD package (for Bower and CDN). + +## [0.16.0] - 2015-09-01 + +### Changed + +- Use `parse` to clean date arguments in all functions. + +- `parse` now fallbacks to `new Date` when the argument + is not an ISO formatted date. + +- _Internal_: reuse `getDaysInMonth` inside of `setMonth`. + +### Added + +- `addQuarters` + +- `addWeeks` + +- `endOfQuarter` + +- `getDate` + +- `getDay` + +- `getDaysInMonth` + +- `getHours` + +- `getISOWeeksInYear` + +- `getMilliseconds` + +- `getMinutes` + +- `getMonth` + +- `getSeconds` + +- `getYear` + +- `isLeapYear` + +- `isSameHour` + +- `isSameMinute` + +- `isSameQuarter` + +- `isSameSecond` + +- `lastDayOfQuarter` + +- `lastDayOfWeek` + +- `max` + +- `min` + +- `setDate` + +- `setDay` + +- `setHours` + +- `setMilliseconds` + +- `setMinutes` + +- `setSeconds` + +- `startOfQuarter` + +- `subQuarters` + +- `subWeeks` + +## [0.15.0] - 2015-08-26 + +### Changed + +- `format` now returns `a.m.`/`p.m.` instead of `am`/`pm`. + +- `setMonth` now sets last day of month if original date was last day + of longer month. + +- _Internal_: Fix code style according to ESLint. + +- _Internal_: Make tests run through all time zones. + +### Added + +- `getQuarter` + +- `setQuarter` + +- `getDayOfYear` + +- `setDayOfYear` + +- `isPast` + +- `addSeconds` + +- `subSeconds` + +- `startOfSecond` + +- `endOfSecond` + +- `startOfMinute` + +- `endOfMinute` + +- `addMilliseconds` + +- `subMilliseconds` + +- `endOfYear` + +- `addYears` + +- `subYears` + +- `lastDayOfYear` + +- `lastDayOfMonth` + +## [0.14.11] - 2015-08-21 + +### Fixed + +- `format` now uses `parse` to avoid time zone bugs. + +### Changed + +- `setIsoWeek` now sets time to the start of the day. + +## [0.14.10] - 2015-07-29 + +### Fixed + +- `format` now behaves correctly with 12:00 am. + +- `format` now behaves correctly with ordinal numbers. + +### Added + +- `compareAsc` + +- `compareDesc` + +- `addHours` + +- `subHours` + +- `isSameDay` + +- `parse` + +- `getISOYear` + +- `setISOYear` + +- `startOfISOYear` + +- `getISOWeek` + +- `setISOWeek` + +## [0.14.9] - 2015-01-14 + +### Fixed + +- `addMonths` now correctly behaves with February + (see [#18](https://github.com/js-fns/date-fns/pull/18)). + +## [0.14.8] - 2014-12-25 + +### Fixed + +- `format` function now behaves correctly with `pm`/`am`. + +## [0.14.6] - 2014-12-04 + +### Fixed + +- Fix broken Bower support. + +## [0.14.0] - 2014-11-05 + +### Added + +- Bower package. + +## [0.13.0] - 2014-10-22 + +### Added + +- `addMinutes` + +- `subMinutes` + +- `isEqual` + +- `isBefore` + +- `isAfter` + +## [0.12.1] - 2014-10-19 + +### Fixed + +- Incorrect rounding in `DDD` formatter. + +## [0.12.0] - 2014-10-15 + +### Added + +- `isSameYear` + +## [0.11.0] - 2014-10-15 + +### Added + +- `isWithinRange` + +## [0.10.0] - 2014-10-13 + +### Added + +- `format` + +- `startOfYear` + +## [0.9.0] - 2014-10-10 + +### Changed + +- _Internal_: simplify `isWeekend` + +### Added + +- `isFuture` + +## [0.8.0] - 2014-10-09 + +### Changed + +- _Internal_: reuse `addDays` inside of `subDays`. + +### Added + +- `addMonths` + +- `subMonths` + +- `setMonth` + +- `setYear` + +## [0.7.0] - 2014-10-08 + +### Added + +- `isSameWeek` + +## [0.6.0] - 2014-10-07 + +### Fixed + +- Inconsistent behavior of `endOfMonth`. + +### Added + +- `isFirstDayOfMonth` + +- `isLastDayOfMonth` + +- `isSameMonth` + +## [0.5.0] - 2014-10-07 + +### Added + +- `addDays` + +- `subDays` + +## [0.4.0] - 2014-10-07 + +### Added + +- `startOfWeek` + +- `endOfWeek` + +- `eachDay` + +## [0.3.0] - 2014-10-06 + +### Changed + +- `startOfDay` now sets milliseconds as well. + +### Added + +- `endOfDay` + +- `startOfMonth` + +- `endOfMonth` + +## [0.2.0] - 2014-10-06 + +### Added + +- `isToday` + +- `isWeekend` + +## 0.1.0 - 2014-10-06 + +### Added + +- `startOfDay` + +[unreleased]: https://github.com/date-fns/date-fns/compare/v2.16.1...HEAD +[2.16.1]: https://github.com/date-fns/date-fns/compare/v2.16.0...v2.16.1 +[2.16.0]: https://github.com/date-fns/date-fns/compare/v2.15.0...v2.16.0 +[2.15.0]: https://github.com/date-fns/date-fns/compare/v2.14.0...v2.15.0 +[2.14.0]: https://github.com/date-fns/date-fns/compare/v2.13.0...v2.14.0 +[2.13.0]: https://github.com/date-fns/date-fns/compare/v2.12.0...v2.13.0 +[2.12.0]: https://github.com/date-fns/date-fns/compare/v2.11.1...v2.12.0 +[2.11.1]: https://github.com/date-fns/date-fns/compare/v2.11.0...v2.11.1 +[2.11.0]: https://github.com/date-fns/date-fns/compare/v2.10.0...v2.11.0 +[2.10.0]: https://github.com/date-fns/date-fns/compare/v2.9.0...v2.10.0 +[2.9.0]: https://github.com/date-fns/date-fns/compare/v2.8.1...v2.9.0 +[2.8.1]: https://github.com/date-fns/date-fns/compare/v2.8.0...v2.8.1 +[2.8.0]: https://github.com/date-fns/date-fns/compare/v2.7.0...v2.8.0 +[2.7.0]: https://github.com/date-fns/date-fns/compare/v2.6.0...v2.7.0 +[2.6.0]: https://github.com/date-fns/date-fns/compare/v2.5.1...v2.6.0 +[2.5.1]: https://github.com/date-fns/date-fns/compare/v2.5.0...v2.5.1 +[2.5.0]: https://github.com/date-fns/date-fns/compare/v2.4.1...v2.5.0 +[2.4.1]: https://github.com/date-fns/date-fns/compare/v2.4.0...v2.4.1 +[2.4.0]: https://github.com/date-fns/date-fns/compare/v2.3.0...v2.4.0 +[2.3.0]: https://github.com/date-fns/date-fns/compare/v2.2.1...v2.3.0 +[2.2.1]: https://github.com/date-fns/date-fns/compare/v2.1.0...v2.2.1 +[2.1.0]: https://github.com/date-fns/date-fns/compare/v2.0.1...v2.1.0 +[2.0.1]: https://github.com/date-fns/date-fns/compare/v2.0.0...v2.0.1 +[2.0.0]: https://github.com/date-fns/date-fns/compare/v1.28.5...v2.0.0 +[1.28.5]: https://github.com/date-fns/date-fns/compare/v1.28.4...v1.28.5 +[1.28.4]: https://github.com/date-fns/date-fns/compare/v1.28.3...v1.28.4 +[1.28.3]: https://github.com/date-fns/date-fns/compare/v1.28.2...v1.28.3 +[1.28.2]: https://github.com/date-fns/date-fns/compare/v1.28.1...v1.28.2 +[1.28.1]: https://github.com/date-fns/date-fns/compare/v1.28.0...v1.28.1 +[1.28.0]: https://github.com/date-fns/date-fns/compare/v1.27.2...v1.28.0 +[1.27.2]: https://github.com/date-fns/date-fns/compare/v1.27.1...v1.27.2 +[1.27.1]: https://github.com/date-fns/date-fns/compare/v1.27.0...v1.27.1 +[1.27.0]: https://github.com/date-fns/date-fns/compare/v1.26.0...v1.27.0 +[1.26.0]: https://github.com/date-fns/date-fns/compare/v1.25.0...v1.26.0 +[1.25.0]: https://github.com/date-fns/date-fns/compare/v1.24.0...v1.25.0 +[1.24.0]: https://github.com/date-fns/date-fns/compare/v1.23.0...v1.24.0 +[1.23.0]: https://github.com/date-fns/date-fns/compare/v1.22.0...v1.23.0 +[1.22.0]: https://github.com/date-fns/date-fns/compare/v1.21.1...v1.22.0 +[1.21.1]: https://github.com/date-fns/date-fns/compare/v1.21.0...v1.21.1 +[1.21.0]: https://github.com/date-fns/date-fns/compare/v1.20.1...v1.21.0 +[1.20.1]: https://github.com/date-fns/date-fns/compare/v1.20.0...v1.20.1 +[1.20.0]: https://github.com/date-fns/date-fns/compare/v1.19.0...v1.20.0 +[1.19.0]: https://github.com/date-fns/date-fns/compare/v1.18.0...v1.19.0 +[1.18.0]: https://github.com/date-fns/date-fns/compare/v1.17.0...v1.18.0 +[1.17.0]: https://github.com/date-fns/date-fns/compare/v1.16.0...v1.17.0 +[1.16.0]: https://github.com/date-fns/date-fns/compare/v1.15.1...v1.16.0 +[1.15.1]: https://github.com/date-fns/date-fns/compare/v1.15.0...v1.15.1 +[1.15.0]: https://github.com/date-fns/date-fns/compare/v1.14.1...v1.15.0 +[1.14.1]: https://github.com/date-fns/date-fns/compare/v1.14.0...v1.14.1 +[1.14.0]: https://github.com/date-fns/date-fns/compare/v1.13.0...v1.14.0 +[1.13.0]: https://github.com/date-fns/date-fns/compare/v1.12.1...v1.13.0 +[1.12.1]: https://github.com/date-fns/date-fns/compare/v1.12.0...v1.12.1 +[1.12.0]: https://github.com/date-fns/date-fns/compare/v1.11.2...v1.12.0 +[1.11.2]: https://github.com/date-fns/date-fns/compare/v1.11.1...v1.11.2 +[1.11.1]: https://github.com/date-fns/date-fns/compare/v1.11.0...v1.11.1 +[1.11.0]: https://github.com/date-fns/date-fns/compare/v1.10.0...v1.11.0 +[1.10.0]: https://github.com/date-fns/date-fns/compare/v1.9.0...v1.10.0 +[1.9.0]: https://github.com/date-fns/date-fns/compare/v1.8.1...v1.9.0 +[1.8.1]: https://github.com/date-fns/date-fns/compare/v1.8.0...v1.8.1 +[1.8.0]: https://github.com/date-fns/date-fns/compare/v1.7.0...v1.8.0 +[1.7.0]: https://github.com/date-fns/date-fns/compare/v1.6.0...v1.7.0 +[1.6.0]: https://github.com/date-fns/date-fns/compare/v1.5.2...v1.6.0 +[1.5.2]: https://github.com/date-fns/date-fns/compare/v1.5.1...v1.5.2 +[1.5.1]: https://github.com/date-fns/date-fns/compare/v1.5.0...v1.5.1 +[1.5.0]: https://github.com/date-fns/date-fns/compare/v1.4.0...v1.5.0 +[1.4.0]: https://github.com/date-fns/date-fns/compare/v1.3.0...v1.4.0 +[1.3.0]: https://github.com/date-fns/date-fns/compare/v1.2.0...v1.3.0 +[1.2.0]: https://github.com/date-fns/date-fns/compare/v1.1.1...v1.2.0 +[1.1.1]: https://github.com/date-fns/date-fns/compare/v1.1.0...v1.1.1 +[1.1.0]: https://github.com/date-fns/date-fns/compare/v1.0.0...v1.1.0 +[1.0.0]: https://github.com/date-fns/date-fns/compare/v0.17.0...v1.0.0 +[0.17.0]: https://github.com/date-fns/date-fns/compare/v0.16.0...v0.17.0 +[0.16.0]: https://github.com/date-fns/date-fns/compare/v0.15.0...v0.16.0 +[0.15.0]: https://github.com/date-fns/date-fns/compare/v0.14.11...v0.15.0 +[0.14.11]: https://github.com/date-fns/date-fns/compare/v0.14.10...v0.14.11 +[0.14.10]: https://github.com/date-fns/date-fns/compare/v0.14.9...v0.14.10 +[0.14.9]: https://github.com/date-fns/date-fns/compare/v0.14.8...v0.14.9 +[0.14.8]: https://github.com/date-fns/date-fns/compare/v0.14.6...v0.14.8 +[0.14.6]: https://github.com/date-fns/date-fns/compare/v0.14.0...v0.14.6 +[0.14.0]: https://github.com/date-fns/date-fns/compare/v0.13.0...v0.14.0 +[0.13.0]: https://github.com/date-fns/date-fns/compare/v0.12.1...v0.13.0 +[0.12.1]: https://github.com/date-fns/date-fns/compare/v0.12.0...v0.12.1 +[0.12.0]: https://github.com/date-fns/date-fns/compare/v0.11.0...v0.12.0 +[0.11.0]: https://github.com/date-fns/date-fns/compare/v0.10.0...v0.11.0 +[0.10.0]: https://github.com/date-fns/date-fns/compare/v0.9.0...v0.10.0 +[0.9.0]: https://github.com/date-fns/date-fns/compare/v0.8.0...v0.9.0 +[0.8.0]: https://github.com/date-fns/date-fns/compare/v0.7.0...v0.8.0 +[0.7.0]: https://github.com/date-fns/date-fns/compare/v0.6.0...v0.7.0 +[0.6.0]: https://github.com/date-fns/date-fns/compare/v0.5.0...v0.6.0 +[0.5.0]: https://github.com/date-fns/date-fns/compare/v0.4.0...v0.5.0 +[0.4.0]: https://github.com/date-fns/date-fns/compare/v0.3.0...v0.4.0 +[0.3.0]: https://github.com/date-fns/date-fns/compare/v0.2.0...v0.3.0 +[0.2.0]: https://github.com/date-fns/date-fns/compare/v0.1.0...v0.2.0 diff --git a/node_modules/date-fns/LICENSE.md b/node_modules/date-fns/LICENSE.md new file mode 100644 index 00000000..29c6e85f --- /dev/null +++ b/node_modules/date-fns/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/date-fns/README.md b/node_modules/date-fns/README.md new file mode 100644 index 00000000..8ac63959 --- /dev/null +++ b/node_modules/date-fns/README.md @@ -0,0 +1,69 @@ +

    + + date-fns + +

    + +

    + date-fns provides the most comprehensive, yet simple and consistent toolset +
    + for manipulating JavaScript dates in a browser & Node.js. +

    + +
    + +[📖  Documentation](https://date-fns.org/docs/Getting-Started/)   |   [🧑‍💻  JavaScript Jobs](https://jobs.date-fns.org/) + +
    + +
    + +# It's like [Lodash](https://lodash.com) for dates + +- It has [**200+ functions** for all occasions](https://date-fns.org/docs/Getting-Started/). +- **Modular**: Pick what you need. Works with webpack, Browserify, or Rollup and also supports tree-shaking. +- **Native dates**: Uses existing native type. It doesn't extend core objects for safety's sake. +- **Immutable & Pure**: Built using pure functions and always returns a new date instance. +- **TypeScript & Flow**: Supports both Flow and TypeScript +- **I18n**: Dozens of locales. Include only what you need. +- [and many more benefits](https://date-fns.org/) + +```js +import { compareAsc, format } from 'date-fns' + +format(new Date(2014, 1, 11), 'yyyy-MM-dd') +//=> '2014-02-11' + +const dates = [ + new Date(1995, 6, 2), + new Date(1987, 1, 11), + new Date(1989, 6, 10), +] +dates.sort(compareAsc) +//=> [ +// Wed Feb 11 1987 00:00:00, +// Mon Jul 10 1989 00:00:00, +// Sun Jul 02 1995 00:00:00 +// ] +``` + +The library is available as an [npm package](https://www.npmjs.com/package/date-fns). +To install the package run: + +```bash +npm install date-fns --save +# or with yarn +yarn add date-fns +``` + +## Docs + +[See date-fns.org](https://date-fns.org/) for more details, API, +and other docs. + +
    + + +## License + +[MIT © Sasha Koss](https://kossnocorp.mit-license.org/) diff --git a/node_modules/date-fns/_lib/addLeadingZeros/index.js b/node_modules/date-fns/_lib/addLeadingZeros/index.js new file mode 100644 index 00000000..7aa07c1e --- /dev/null +++ b/node_modules/date-fns/_lib/addLeadingZeros/index.js @@ -0,0 +1,19 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addLeadingZeros; + +function addLeadingZeros(number, targetLength) { + var sign = number < 0 ? '-' : ''; + var output = Math.abs(number).toString(); + + while (output.length < targetLength) { + output = '0' + output; + } + + return sign + output; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/assign/index.js b/node_modules/date-fns/_lib/assign/index.js new file mode 100644 index 00000000..9170bdaf --- /dev/null +++ b/node_modules/date-fns/_lib/assign/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = assign; + +function assign(target, object) { + if (target == null) { + throw new TypeError('assign requires that input parameter not be null or undefined'); + } + + for (var property in object) { + if (Object.prototype.hasOwnProperty.call(object, property)) { + ; + target[property] = object[property]; + } + } + + return target; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/cloneObject/index.js b/node_modules/date-fns/_lib/cloneObject/index.js new file mode 100644 index 00000000..25882491 --- /dev/null +++ b/node_modules/date-fns/_lib/cloneObject/index.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cloneObject; + +var _index = _interopRequireDefault(require("../assign/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function cloneObject(object) { + return (0, _index.default)({}, object); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/defaultLocale/index.js b/node_modules/date-fns/_lib/defaultLocale/index.js new file mode 100644 index 00000000..cd61dac3 --- /dev/null +++ b/node_modules/date-fns/_lib/defaultLocale/index.js @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../locale/en-US/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var _default = _index.default; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/defaultOptions/index.js b/node_modules/date-fns/_lib/defaultOptions/index.js new file mode 100644 index 00000000..5f7bd48d --- /dev/null +++ b/node_modules/date-fns/_lib/defaultOptions/index.js @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getDefaultOptions = getDefaultOptions; +exports.setDefaultOptions = setDefaultOptions; +var defaultOptions = {}; + +function getDefaultOptions() { + return defaultOptions; +} + +function setDefaultOptions(newOptions) { + defaultOptions = newOptions; +} \ No newline at end of file diff --git a/node_modules/date-fns/_lib/format/formatters/index.js b/node_modules/date-fns/_lib/format/formatters/index.js new file mode 100644 index 00000000..e8e25c73 --- /dev/null +++ b/node_modules/date-fns/_lib/format/formatters/index.js @@ -0,0 +1,884 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/getUTCDayOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/getUTCISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../../../_lib/getUTCISOWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../../../_lib/getUTCWeek/index.js")); + +var _index5 = _interopRequireDefault(require("../../../_lib/getUTCWeekYear/index.js")); + +var _index6 = _interopRequireDefault(require("../../addLeadingZeros/index.js")); + +var _index7 = _interopRequireDefault(require("../lightFormatters/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dayPeriodEnum = { + am: 'am', + pm: 'pm', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' +}; + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O | Timezone (GMT) | + * | p! | Long localized time | P! | Long localized date | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + * - `P` is long localized date format + * - `p` is long localized time format + */ +var formatters = { + // Era + G: function G(date, token, localize) { + var era = date.getUTCFullYear() > 0 ? 1 : 0; + + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return localize.era(era, { + width: 'abbreviated' + }); + // A, B + + case 'GGGGG': + return localize.era(era, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return localize.era(era, { + width: 'wide' + }); + } + }, + // Year + y: function y(date, token, localize) { + // Ordinal number + if (token === 'yo') { + var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { + unit: 'year' + }); + } + + return _index7.default.y(date, token); + }, + // Local week-numbering year + Y: function Y(date, token, localize, options) { + var signedWeekYear = (0, _index5.default)(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year + + if (token === 'YY') { + var twoDigitYear = weekYear % 100; + return (0, _index6.default)(twoDigitYear, 2); + } // Ordinal number + + + if (token === 'Yo') { + return localize.ordinalNumber(weekYear, { + unit: 'year' + }); + } // Padding + + + return (0, _index6.default)(weekYear, token.length); + }, + // ISO week-numbering year + R: function R(date, token) { + var isoWeekYear = (0, _index3.default)(date); // Padding + + return (0, _index6.default)(isoWeekYear, token.length); + }, + // Extended year. This is a single number designating the year of this calendar system. + // The main difference between `y` and `u` localizers are B.C. years: + // | Year | `y` | `u` | + // |------|-----|-----| + // | AC 1 | 1 | 1 | + // | BC 1 | 1 | 0 | + // | BC 2 | 2 | -1 | + // Also `yy` always returns the last two digits of a year, + // while `uu` pads single digit years to 2 characters and returns other years unchanged. + u: function u(date, token) { + var year = date.getUTCFullYear(); + return (0, _index6.default)(year, token.length); + }, + // Quarter + Q: function Q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + + switch (token) { + // 1, 2, 3, 4 + case 'Q': + return String(quarter); + // 01, 02, 03, 04 + + case 'QQ': + return (0, _index6.default)(quarter, 2); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return localize.quarter(quarter, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone quarter + q: function q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + + switch (token) { + // 1, 2, 3, 4 + case 'q': + return String(quarter); + // 01, 02, 03, 04 + + case 'qq': + return (0, _index6.default)(quarter, 2); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return localize.quarter(quarter, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Month + M: function M(date, token, localize) { + var month = date.getUTCMonth(); + + switch (token) { + case 'M': + case 'MM': + return _index7.default.M(date, token); + // 1st, 2nd, ..., 12th + + case 'Mo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + + case 'MMM': + return localize.month(month, { + width: 'abbreviated', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return localize.month(month, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return localize.month(month, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone month + L: function L(date, token, localize) { + var month = date.getUTCMonth(); + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return String(month + 1); + // 01, 02, ..., 12 + + case 'LL': + return (0, _index6.default)(month + 1, 2); + // 1st, 2nd, ..., 12th + + case 'Lo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + + case 'LLL': + return localize.month(month, { + width: 'abbreviated', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return localize.month(month, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return localize.month(month, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Local week of year + w: function w(date, token, localize, options) { + var week = (0, _index4.default)(date, options); + + if (token === 'wo') { + return localize.ordinalNumber(week, { + unit: 'week' + }); + } + + return (0, _index6.default)(week, token.length); + }, + // ISO week of year + I: function I(date, token, localize) { + var isoWeek = (0, _index2.default)(date); + + if (token === 'Io') { + return localize.ordinalNumber(isoWeek, { + unit: 'week' + }); + } + + return (0, _index6.default)(isoWeek, token.length); + }, + // Day of the month + d: function d(date, token, localize) { + if (token === 'do') { + return localize.ordinalNumber(date.getUTCDate(), { + unit: 'date' + }); + } + + return _index7.default.d(date, token); + }, + // Day of year + D: function D(date, token, localize) { + var dayOfYear = (0, _index.default)(date); + + if (token === 'Do') { + return localize.ordinalNumber(dayOfYear, { + unit: 'dayOfYear' + }); + } + + return (0, _index6.default)(dayOfYear, token.length); + }, + // Day of week + E: function E(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'EEEEE': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Local day of week + e: function e(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + + switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) + case 'e': + return String(localDayOfWeek); + // Padded numerical value + + case 'ee': + return (0, _index6.default)(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th + + case 'eo': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + + case 'eee': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'eeeee': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone local day of week + c: function c(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + + switch (token) { + // Numerical value (same as in `e`) + case 'c': + return String(localDayOfWeek); + // Padded numerical value + + case 'cc': + return (0, _index6.default)(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th + + case 'co': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + + case 'ccc': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'standalone' + }); + // T + + case 'ccccc': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return localize.day(dayOfWeek, { + width: 'short', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'standalone' + }); + } + }, + // ISO day of week + i: function i(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + + switch (token) { + // 2 + case 'i': + return String(isoDayOfWeek); + // 02 + + case 'ii': + return (0, _index6.default)(isoDayOfWeek, token.length); + // 2nd + + case 'io': + return localize.ordinalNumber(isoDayOfWeek, { + unit: 'day' + }); + // Tue + + case 'iii': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'iiiii': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'iiiiii': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'iiii': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM or PM + a: function a(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + + switch (token) { + case 'a': + case 'aa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'aaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + + case 'aaaaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM, PM, midnight, noon + b: function b(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + + if (hours === 12) { + dayPeriodEnumValue = dayPeriodEnum.noon; + } else if (hours === 0) { + dayPeriodEnumValue = dayPeriodEnum.midnight; + } else { + dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + } + + switch (token) { + case 'b': + case 'bb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'bbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + + case 'bbbbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // in the morning, in the afternoon, in the evening, at night + B: function B(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + + if (hours >= 17) { + dayPeriodEnumValue = dayPeriodEnum.evening; + } else if (hours >= 12) { + dayPeriodEnumValue = dayPeriodEnum.afternoon; + } else if (hours >= 4) { + dayPeriodEnumValue = dayPeriodEnum.morning; + } else { + dayPeriodEnumValue = dayPeriodEnum.night; + } + + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'BBBBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Hour [1-12] + h: function h(date, token, localize) { + if (token === 'ho') { + var hours = date.getUTCHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return _index7.default.h(date, token); + }, + // Hour [0-23] + H: function H(date, token, localize) { + if (token === 'Ho') { + return localize.ordinalNumber(date.getUTCHours(), { + unit: 'hour' + }); + } + + return _index7.default.H(date, token); + }, + // Hour [0-11] + K: function K(date, token, localize) { + var hours = date.getUTCHours() % 12; + + if (token === 'Ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return (0, _index6.default)(hours, token.length); + }, + // Hour [1-24] + k: function k(date, token, localize) { + var hours = date.getUTCHours(); + if (hours === 0) hours = 24; + + if (token === 'ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return (0, _index6.default)(hours, token.length); + }, + // Minute + m: function m(date, token, localize) { + if (token === 'mo') { + return localize.ordinalNumber(date.getUTCMinutes(), { + unit: 'minute' + }); + } + + return _index7.default.m(date, token); + }, + // Second + s: function s(date, token, localize) { + if (token === 'so') { + return localize.ordinalNumber(date.getUTCSeconds(), { + unit: 'second' + }); + } + + return _index7.default.s(date, token); + }, + // Fraction of second + S: function S(date, token) { + return _index7.default.S(date, token); + }, + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function X(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + if (timezoneOffset === 0) { + return 'Z'; + } + + switch (token) { + // Hours and optional minutes + case 'X': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` + + case 'XXXX': + case 'XX': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` + + case 'XXXXX': + case 'XXX': // Hours and minutes with `:` delimiter + + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) + x: function x(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Hours and optional minutes + case 'x': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` + + case 'xxxx': + case 'xx': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` + + case 'xxxxx': + case 'xxx': // Hours and minutes with `:` delimiter + + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (GMT) + O: function O(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Short + case 'O': + case 'OO': + case 'OOO': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + + case 'OOOO': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (specific non-location) + z: function z(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Short + case 'z': + case 'zz': + case 'zzz': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + + case 'zzzz': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Seconds timestamp + t: function t(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = Math.floor(originalDate.getTime() / 1000); + return (0, _index6.default)(timestamp, token.length); + }, + // Milliseconds timestamp + T: function T(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = originalDate.getTime(); + return (0, _index6.default)(timestamp, token.length); + } +}; + +function formatTimezoneShort(offset, dirtyDelimiter) { + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = Math.floor(absOffset / 60); + var minutes = absOffset % 60; + + if (minutes === 0) { + return sign + String(hours); + } + + var delimiter = dirtyDelimiter || ''; + return sign + String(hours) + delimiter + (0, _index6.default)(minutes, 2); +} + +function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { + if (offset % 60 === 0) { + var sign = offset > 0 ? '-' : '+'; + return sign + (0, _index6.default)(Math.abs(offset) / 60, 2); + } + + return formatTimezone(offset, dirtyDelimiter); +} + +function formatTimezone(offset, dirtyDelimiter) { + var delimiter = dirtyDelimiter || ''; + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = (0, _index6.default)(Math.floor(absOffset / 60), 2); + var minutes = (0, _index6.default)(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} + +var _default = formatters; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/format/lightFormatters/index.js b/node_modules/date-fns/_lib/format/lightFormatters/index.js new file mode 100644 index 00000000..ad140f87 --- /dev/null +++ b/node_modules/date-fns/_lib/format/lightFormatters/index.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addLeadingZeros/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | | + * | d | Day of month | D | | + * | h | Hour [1-12] | H | Hour [0-23] | + * | m | Minute | M | Month | + * | s | Second | S | Fraction of second | + * | y | Year (abs) | Y | | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + */ +var formatters = { + // Year + y: function y(date, token) { + // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens + // | Year | y | yy | yyy | yyyy | yyyyy | + // |----------|-------|----|-------|-------|-------| + // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | + // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | + // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | + // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | + // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | + var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return (0, _index.default)(token === 'yy' ? year % 100 : year, token.length); + }, + // Month + M: function M(date, token) { + var month = date.getUTCMonth(); + return token === 'M' ? String(month + 1) : (0, _index.default)(month + 1, 2); + }, + // Day of the month + d: function d(date, token) { + return (0, _index.default)(date.getUTCDate(), token.length); + }, + // AM or PM + a: function a(date, token) { + var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; + + switch (token) { + case 'a': + case 'aa': + return dayPeriodEnumValue.toUpperCase(); + + case 'aaa': + return dayPeriodEnumValue; + + case 'aaaaa': + return dayPeriodEnumValue[0]; + + case 'aaaa': + default: + return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; + } + }, + // Hour [1-12] + h: function h(date, token) { + return (0, _index.default)(date.getUTCHours() % 12 || 12, token.length); + }, + // Hour [0-23] + H: function H(date, token) { + return (0, _index.default)(date.getUTCHours(), token.length); + }, + // Minute + m: function m(date, token) { + return (0, _index.default)(date.getUTCMinutes(), token.length); + }, + // Second + s: function s(date, token) { + return (0, _index.default)(date.getUTCSeconds(), token.length); + }, + // Fraction of second + S: function S(date, token) { + var numberOfDigits = token.length; + var milliseconds = date.getUTCMilliseconds(); + var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); + return (0, _index.default)(fractionalSeconds, token.length); + } +}; +var _default = formatters; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/format/longFormatters/index.js b/node_modules/date-fns/_lib/format/longFormatters/index.js new file mode 100644 index 00000000..518de7fc --- /dev/null +++ b/node_modules/date-fns/_lib/format/longFormatters/index.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'P': + return formatLong.date({ + width: 'short' + }); + + case 'PP': + return formatLong.date({ + width: 'medium' + }); + + case 'PPP': + return formatLong.date({ + width: 'long' + }); + + case 'PPPP': + default: + return formatLong.date({ + width: 'full' + }); + } +}; + +var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'p': + return formatLong.time({ + width: 'short' + }); + + case 'pp': + return formatLong.time({ + width: 'medium' + }); + + case 'ppp': + return formatLong.time({ + width: 'long' + }); + + case 'pppp': + default: + return formatLong.time({ + width: 'full' + }); + } +}; + +var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { + var matchResult = pattern.match(/(P+)(p+)?/) || []; + var datePattern = matchResult[1]; + var timePattern = matchResult[2]; + + if (!timePattern) { + return dateLongFormatter(pattern, formatLong); + } + + var dateTimeFormat; + + switch (datePattern) { + case 'P': + dateTimeFormat = formatLong.dateTime({ + width: 'short' + }); + break; + + case 'PP': + dateTimeFormat = formatLong.dateTime({ + width: 'medium' + }); + break; + + case 'PPP': + dateTimeFormat = formatLong.dateTime({ + width: 'long' + }); + break; + + case 'PPPP': + default: + dateTimeFormat = formatLong.dateTime({ + width: 'full' + }); + break; + } + + return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); +}; + +var longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter +}; +var _default = longFormatters; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js new file mode 100644 index 00000000..7d34ebc8 --- /dev/null +++ b/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds/index.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getTimezoneOffsetInMilliseconds; + +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +function getTimezoneOffsetInMilliseconds(date) { + var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); + utcDate.setUTCFullYear(date.getFullYear()); + return date.getTime() - utcDate.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getUTCDayOfYear/index.js b/node_modules/date-fns/_lib/getUTCDayOfYear/index.js new file mode 100644 index 00000000..4055d3c4 --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCDayOfYear/index.js @@ -0,0 +1,27 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCDayOfYear; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_DAY = 86400000; + +function getUTCDayOfYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var timestamp = date.getTime(); + date.setUTCMonth(0, 1); + date.setUTCHours(0, 0, 0, 0); + var startOfYearTimestamp = date.getTime(); + var difference = timestamp - startOfYearTimestamp; + return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getUTCISOWeek/index.js b/node_modules/date-fns/_lib/getUTCISOWeek/index.js new file mode 100644 index 00000000..00feec72 --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCISOWeek/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCISOWeek; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfUTCISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCISOWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; + +function getUTCISOWeek(dirtyDate) { + (0, _index4.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var diff = (0, _index2.default)(date).getTime() - (0, _index3.default)(date).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js b/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js new file mode 100644 index 00000000..06a0112f --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCISOWeekYear/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCISOWeekYear; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCISOWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function getUTCISOWeekYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getUTCFullYear(); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); + var startOfNextYear = (0, _index3.default)(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = new Date(0); + fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = (0, _index3.default)(fourthOfJanuaryOfThisYear); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getUTCWeek/index.js b/node_modules/date-fns/_lib/getUTCWeek/index.js new file mode 100644 index 00000000..a9db7c17 --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCWeek/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCWeek; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; + +function getUTCWeek(dirtyDate, options) { + (0, _index4.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var diff = (0, _index2.default)(date, options).getTime() - (0, _index3.default)(date, options).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/getUTCWeekYear/index.js b/node_modules/date-fns/_lib/getUTCWeekYear/index.js new file mode 100644 index 00000000..620aa797 --- /dev/null +++ b/node_modules/date-fns/_lib/getUTCWeekYear/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUTCWeekYear; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../toInteger/index.js")); + +var _index5 = require("../defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function getUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getUTCFullYear(); + var defaultOptions = (0, _index5.getDefaultOptions)(); + var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var firstWeekOfNextYear = new Date(0); + firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); + var startOfNextYear = (0, _index3.default)(firstWeekOfNextYear, options); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = (0, _index3.default)(firstWeekOfThisYear, options); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/isSameUTCWeek/index.js b/node_modules/date-fns/_lib/isSameUTCWeek/index.js new file mode 100644 index 00000000..603f439f --- /dev/null +++ b/node_modules/date-fns/_lib/isSameUTCWeek/index.js @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameUTCWeek; + +var _index = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) { + (0, _index.default)(2, arguments); + var dateLeftStartOfWeek = (0, _index2.default)(dirtyDateLeft, options); + var dateRightStartOfWeek = (0, _index2.default)(dirtyDateRight, options); + return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/protectedTokens/index.js b/node_modules/date-fns/_lib/protectedTokens/index.js new file mode 100644 index 00000000..6bd6c290 --- /dev/null +++ b/node_modules/date-fns/_lib/protectedTokens/index.js @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isProtectedDayOfYearToken = isProtectedDayOfYearToken; +exports.isProtectedWeekYearToken = isProtectedWeekYearToken; +exports.throwProtectedError = throwProtectedError; +var protectedDayOfYearTokens = ['D', 'DD']; +var protectedWeekYearTokens = ['YY', 'YYYY']; + +function isProtectedDayOfYearToken(token) { + return protectedDayOfYearTokens.indexOf(token) !== -1; +} + +function isProtectedWeekYearToken(token) { + return protectedWeekYearTokens.indexOf(token) !== -1; +} + +function throwProtectedError(token, format, input) { + if (token === 'YYYY') { + throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'YY') { + throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'D') { + throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'DD') { + throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } +} \ No newline at end of file diff --git a/node_modules/date-fns/_lib/requiredArgs/index.js b/node_modules/date-fns/_lib/requiredArgs/index.js new file mode 100644 index 00000000..21c89c8f --- /dev/null +++ b/node_modules/date-fns/_lib/requiredArgs/index.js @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = requiredArgs; + +function requiredArgs(required, args) { + if (args.length < required) { + throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/roundingMethods/index.js b/node_modules/date-fns/_lib/roundingMethods/index.js new file mode 100644 index 00000000..5c7e4c1c --- /dev/null +++ b/node_modules/date-fns/_lib/roundingMethods/index.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.getRoundingMethod = getRoundingMethod; +var roundingMap = { + ceil: Math.ceil, + round: Math.round, + floor: Math.floor, + trunc: function trunc(value) { + return value < 0 ? Math.ceil(value) : Math.floor(value); + } // Math.trunc is not supported by IE + +}; +var defaultRoundingMethod = 'trunc'; + +function getRoundingMethod(method) { + return method ? roundingMap[method] : roundingMap[defaultRoundingMethod]; +} \ No newline at end of file diff --git a/node_modules/date-fns/_lib/setUTCDay/index.js b/node_modules/date-fns/_lib/setUTCDay/index.js new file mode 100644 index 00000000..8a31fe05 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCDay/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCDay; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../toInteger/index.js")); + +var _index4 = require("../defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function setUTCDay(dirtyDate, dirtyDay, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index2.default)(2, arguments); + var defaultOptions = (0, _index4.getDefaultOptions)(); + var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = (0, _index.default)(dirtyDate); + var day = (0, _index3.default)(dirtyDay); + var currentDay = date.getUTCDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/setUTCISODay/index.js b/node_modules/date-fns/_lib/setUTCISODay/index.js new file mode 100644 index 00000000..28d7b27b --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCISODay/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCISODay; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function setUTCISODay(dirtyDate, dirtyDay) { + (0, _index2.default)(2, arguments); + var day = (0, _index3.default)(dirtyDay); + + if (day % 7 === 0) { + day = day - 7; + } + + var weekStartsOn = 1; + var date = (0, _index.default)(dirtyDate); + var currentDay = date.getUTCDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/setUTCISOWeek/index.js b/node_modules/date-fns/_lib/setUTCISOWeek/index.js new file mode 100644 index 00000000..b2b7eb83 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCISOWeek/index.js @@ -0,0 +1,27 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCISOWeek; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../getUTCISOWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function setUTCISOWeek(dirtyDate, dirtyISOWeek) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var isoWeek = (0, _index.default)(dirtyISOWeek); + var diff = (0, _index3.default)(date) - isoWeek; + date.setUTCDate(date.getUTCDate() - diff * 7); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/setUTCWeek/index.js b/node_modules/date-fns/_lib/setUTCWeek/index.js new file mode 100644 index 00000000..753114a3 --- /dev/null +++ b/node_modules/date-fns/_lib/setUTCWeek/index.js @@ -0,0 +1,27 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setUTCWeek; + +var _index = _interopRequireDefault(require("../toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../getUTCWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function setUTCWeek(dirtyDate, dirtyWeek, options) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var week = (0, _index.default)(dirtyWeek); + var diff = (0, _index3.default)(date, options) - week; + date.setUTCDate(date.getUTCDate() - diff * 7); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js b/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js new file mode 100644 index 00000000..42a9b0bb --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCISOWeek/index.js @@ -0,0 +1,25 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCISOWeek; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function startOfUTCISOWeek(dirtyDate) { + (0, _index2.default)(1, arguments); + var weekStartsOn = 1; + var date = (0, _index.default)(dirtyDate); + var day = date.getUTCDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setUTCDate(date.getUTCDate() - diff); + date.setUTCHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js b/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js new file mode 100644 index 00000000..2aa9db73 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCISOWeekYear/index.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCISOWeekYear; + +var _index = _interopRequireDefault(require("../getUTCISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfUTCISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function startOfUTCISOWeekYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var year = (0, _index.default)(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setUTCFullYear(year, 0, 4); + fourthOfJanuary.setUTCHours(0, 0, 0, 0); + var date = (0, _index2.default)(fourthOfJanuary); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/startOfUTCWeek/index.js b/node_modules/date-fns/_lib/startOfUTCWeek/index.js new file mode 100644 index 00000000..97326d75 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCWeek/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCWeek; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../toInteger/index.js")); + +var _index4 = require("../defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function startOfUTCWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index2.default)(1, arguments); + var defaultOptions = (0, _index4.getDefaultOptions)(); + var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = (0, _index.default)(dirtyDate); + var day = date.getUTCDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setUTCDate(date.getUTCDate() - diff); + date.setUTCHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js b/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js new file mode 100644 index 00000000..569ea8a7 --- /dev/null +++ b/node_modules/date-fns/_lib/startOfUTCWeekYear/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfUTCWeekYear; + +var _index = _interopRequireDefault(require("../getUTCWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfUTCWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../toInteger/index.js")); + +var _index5 = require("../defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function startOfUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index2.default)(1, arguments); + var defaultOptions = (0, _index5.getDefaultOptions)(); + var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var year = (0, _index.default)(dirtyDate, options); + var firstWeek = new Date(0); + firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeek.setUTCHours(0, 0, 0, 0); + var date = (0, _index3.default)(firstWeek, options); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/_lib/test/index.js b/node_modules/date-fns/_lib/test/index.js new file mode 100644 index 00000000..85538899 --- /dev/null +++ b/node_modules/date-fns/_lib/test/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.assertType = assertType; +exports.generateOffset = generateOffset; +exports.resetDefaultOptions = resetDefaultOptions; + +var _index = _interopRequireDefault(require("../addLeadingZeros/index.js")); + +var _index2 = require("../defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function assertType(_) {} + +function resetDefaultOptions() { + (0, _index2.setDefaultOptions)({}); +} // This makes sure we create the consistent offsets across timezones, no matter where these tests are ran. + + +function generateOffset(originalDate) { + // Add the timezone. + var offset = ''; + var tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = (0, _index.default)(Math.floor(absoluteOffset / 60), 2); + var minuteOffset = (0, _index.default)(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = tzOffset < 0 ? '+' : '-'; + offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + offset = 'Z'; + } + + return offset; +} \ No newline at end of file diff --git a/node_modules/date-fns/_lib/toInteger/index.js b/node_modules/date-fns/_lib/toInteger/index.js new file mode 100644 index 00000000..d7abc0d8 --- /dev/null +++ b/node_modules/date-fns/_lib/toInteger/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toInteger; + +function toInteger(dirtyNumber) { + if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { + return NaN; + } + + var number = Number(dirtyNumber); + + if (isNaN(number)) { + return number; + } + + return number < 0 ? Math.ceil(number) : Math.floor(number); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/add/index.d.ts b/node_modules/date-fns/add/index.d.ts new file mode 100644 index 00000000..f620aa05 --- /dev/null +++ b/node_modules/date-fns/add/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { add } from 'date-fns' +export default add diff --git a/node_modules/date-fns/add/index.js b/node_modules/date-fns/add/index.js new file mode 100644 index 00000000..a8be45e8 --- /dev/null +++ b/node_modules/date-fns/add/index.js @@ -0,0 +1,84 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = add; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../addMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * + * | Key | Description | + * |----------------|------------------------------------| + * | years | Amount of years to be added | + * | months | Amount of months to be added | + * | weeks | Amount of weeks to be added | + * | days | Amount of days to be added | + * | hours | Amount of hours to be added | + * | minutes | Amount of minutes to be added | + * | seconds | Amount of seconds to be added | + * + * All values default to 0 + * + * @returns {Date} the new date with the seconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + */ +function add(dirtyDate, duration) { + (0, _index4.default)(2, arguments); + if (!duration || _typeof(duration) !== 'object') return new Date(NaN); + var years = duration.years ? (0, _index5.default)(duration.years) : 0; + var months = duration.months ? (0, _index5.default)(duration.months) : 0; + var weeks = duration.weeks ? (0, _index5.default)(duration.weeks) : 0; + var days = duration.days ? (0, _index5.default)(duration.days) : 0; + var hours = duration.hours ? (0, _index5.default)(duration.hours) : 0; + var minutes = duration.minutes ? (0, _index5.default)(duration.minutes) : 0; + var seconds = duration.seconds ? (0, _index5.default)(duration.seconds) : 0; // Add years and months + + var date = (0, _index3.default)(dirtyDate); + var dateWithMonths = months || years ? (0, _index2.default)(date, months + years * 12) : date; // Add weeks and days + + var dateWithDays = days || weeks ? (0, _index.default)(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds + + var minutesToAdd = minutes + hours * 60; + var secondsToAdd = seconds + minutesToAdd * 60; + var msToAdd = secondsToAdd * 1000; + var finalDate = new Date(dateWithDays.getTime() + msToAdd); + return finalDate; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/add/index.js.flow b/node_modules/date-fns/add/index.js.flow new file mode 100644 index 00000000..e79df7ca --- /dev/null +++ b/node_modules/date-fns/add/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, duration: Duration) => Date diff --git a/node_modules/date-fns/add/package.json b/node_modules/date-fns/add/package.json new file mode 100644 index 00000000..f7b2d0b9 --- /dev/null +++ b/node_modules/date-fns/add/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/add/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addBusinessDays/index.d.ts b/node_modules/date-fns/addBusinessDays/index.d.ts new file mode 100644 index 00000000..b1c084e3 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addBusinessDays } from 'date-fns' +export default addBusinessDays diff --git a/node_modules/date-fns/addBusinessDays/index.js b/node_modules/date-fns/addBusinessDays/index.js new file mode 100644 index 00000000..7f215013 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays/index.js @@ -0,0 +1,73 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addBusinessDays; + +var _index = _interopRequireDefault(require("../isWeekend/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = _interopRequireDefault(require("../isSunday/index.js")); + +var _index6 = _interopRequireDefault(require("../isSaturday/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the business days added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ +function addBusinessDays(dirtyDate, dirtyAmount) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var startedOnWeekend = (0, _index.default)(date); + var amount = (0, _index3.default)(dirtyAmount); + if (isNaN(amount)) return new Date(NaN); + var hours = date.getHours(); + var sign = amount < 0 ? -1 : 1; + var fullWeeks = (0, _index3.default)(amount / 5); + date.setDate(date.getDate() + fullWeeks * 7); // Get remaining days not part of a full week + + var restDays = Math.abs(amount % 5); // Loops over remaining days + + while (restDays > 0) { + date.setDate(date.getDate() + sign); + if (!(0, _index.default)(date)) restDays -= 1; + } // If the date is a weekend day and we reduce a dividable of + // 5 from it, we land on a weekend date. + // To counter this, we add days accordingly to land on the next business day + + + if (startedOnWeekend && (0, _index.default)(date) && amount !== 0) { + // If we're reducing days, we want to add days until we land on a weekday + // If we're adding days we want to reduce days until we land on a weekday + if ((0, _index6.default)(date)) date.setDate(date.getDate() + (sign < 0 ? 2 : -1)); + if ((0, _index5.default)(date)) date.setDate(date.getDate() + (sign < 0 ? 1 : -2)); + } // Restore hours to avoid DST lag + + + date.setHours(hours); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addBusinessDays/index.js.flow b/node_modules/date-fns/addBusinessDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addBusinessDays/package.json b/node_modules/date-fns/addBusinessDays/package.json new file mode 100644 index 00000000..fd0f7c65 --- /dev/null +++ b/node_modules/date-fns/addBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addBusinessDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addDays/index.d.ts b/node_modules/date-fns/addDays/index.d.ts new file mode 100644 index 00000000..fd7fb3db --- /dev/null +++ b/node_modules/date-fns/addDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addDays } from 'date-fns' +export default addDays diff --git a/node_modules/date-fns/addDays/index.js b/node_modules/date-fns/addDays/index.js new file mode 100644 index 00000000..d9dbb925 --- /dev/null +++ b/node_modules/date-fns/addDays/index.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addDays; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} - the new date with the days added + * @throws {TypeError} - 2 arguments required + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + */ +function addDays(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var amount = (0, _index.default)(dirtyAmount); + + if (isNaN(amount)) { + return new Date(NaN); + } + + if (!amount) { + // If 0 days, no-op to avoid changing times in the hour before end of DST + return date; + } + + date.setDate(date.getDate() + amount); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addDays/index.js.flow b/node_modules/date-fns/addDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addDays/package.json b/node_modules/date-fns/addDays/package.json new file mode 100644 index 00000000..0e7b7489 --- /dev/null +++ b/node_modules/date-fns/addDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addHours/index.d.ts b/node_modules/date-fns/addHours/index.d.ts new file mode 100644 index 00000000..b3b60666 --- /dev/null +++ b/node_modules/date-fns/addHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addHours } from 'date-fns' +export default addHours diff --git a/node_modules/date-fns/addHours/index.js b/node_modules/date-fns/addHours/index.js new file mode 100644 index 00000000..45ca0d04 --- /dev/null +++ b/node_modules/date-fns/addHours/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addHours; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_HOUR = 3600000; +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the hours added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ + +function addHours(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, amount * MILLISECONDS_IN_HOUR); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addHours/index.js.flow b/node_modules/date-fns/addHours/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addHours/package.json b/node_modules/date-fns/addHours/package.json new file mode 100644 index 00000000..07211368 --- /dev/null +++ b/node_modules/date-fns/addHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addISOWeekYears/index.d.ts b/node_modules/date-fns/addISOWeekYears/index.d.ts new file mode 100644 index 00000000..e1e6e090 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addISOWeekYears } from 'date-fns' +export default addISOWeekYears diff --git a/node_modules/date-fns/addISOWeekYears/index.js b/node_modules/date-fns/addISOWeekYears/index.js new file mode 100644 index 00000000..872042f8 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addISOWeekYears; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../getISOWeekYear/index.js")); + +var _index3 = _interopRequireDefault(require("../setISOWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the ISO week-numbering years added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ +function addISOWeekYears(dirtyDate, dirtyAmount) { + (0, _index4.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index3.default)(dirtyDate, (0, _index2.default)(dirtyDate) + amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addISOWeekYears/index.js.flow b/node_modules/date-fns/addISOWeekYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addISOWeekYears/package.json b/node_modules/date-fns/addISOWeekYears/package.json new file mode 100644 index 00000000..5ee3aea4 --- /dev/null +++ b/node_modules/date-fns/addISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addISOWeekYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addMilliseconds/index.d.ts b/node_modules/date-fns/addMilliseconds/index.d.ts new file mode 100644 index 00000000..1afb9565 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMilliseconds } from 'date-fns' +export default addMilliseconds diff --git a/node_modules/date-fns/addMilliseconds/index.js b/node_modules/date-fns/addMilliseconds/index.js new file mode 100644 index 00000000..425c96cb --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addMilliseconds; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ +function addMilliseconds(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var timestamp = (0, _index2.default)(dirtyDate).getTime(); + var amount = (0, _index.default)(dirtyAmount); + return new Date(timestamp + amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addMilliseconds/index.js.flow b/node_modules/date-fns/addMilliseconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addMilliseconds/package.json b/node_modules/date-fns/addMilliseconds/package.json new file mode 100644 index 00000000..3d1aebcb --- /dev/null +++ b/node_modules/date-fns/addMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addMinutes/index.d.ts b/node_modules/date-fns/addMinutes/index.d.ts new file mode 100644 index 00000000..fcf15e56 --- /dev/null +++ b/node_modules/date-fns/addMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMinutes } from 'date-fns' +export default addMinutes diff --git a/node_modules/date-fns/addMinutes/index.js b/node_modules/date-fns/addMinutes/index.js new file mode 100644 index 00000000..7147c445 --- /dev/null +++ b/node_modules/date-fns/addMinutes/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addMinutes; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_MINUTE = 60000; +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the minutes added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ + +function addMinutes(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, amount * MILLISECONDS_IN_MINUTE); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addMinutes/index.js.flow b/node_modules/date-fns/addMinutes/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addMinutes/package.json b/node_modules/date-fns/addMinutes/package.json new file mode 100644 index 00000000..6a02923c --- /dev/null +++ b/node_modules/date-fns/addMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addMonths/index.d.ts b/node_modules/date-fns/addMonths/index.d.ts new file mode 100644 index 00000000..1308e13f --- /dev/null +++ b/node_modules/date-fns/addMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMonths } from 'date-fns' +export default addMonths diff --git a/node_modules/date-fns/addMonths/index.js b/node_modules/date-fns/addMonths/index.js new file mode 100644 index 00000000..fd6f78eb --- /dev/null +++ b/node_modules/date-fns/addMonths/index.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addMonths; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the months added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + */ +function addMonths(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var amount = (0, _index.default)(dirtyAmount); + + if (isNaN(amount)) { + return new Date(NaN); + } + + if (!amount) { + // If 0 months, no-op to avoid changing times in the hour before end of DST + return date; + } + + var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for + // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and + // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we + // want except that dates will wrap around the end of a month, meaning that + // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So + // we'll default to the end of the desired month by adding 1 to the desired + // month and using a date of 0 to back up one day to the end of the desired + // month. + + var endOfDesiredMonth = new Date(date.getTime()); + endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); + var daysInMonth = endOfDesiredMonth.getDate(); + + if (dayOfMonth >= daysInMonth) { + // If we're already at the end of the month, then this is the correct date + // and we're done. + return endOfDesiredMonth; + } else { + // Otherwise, we now know that setting the original day-of-month value won't + // cause an overflow, so set the desired day-of-month. Note that we can't + // just set the date of `endOfDesiredMonth` because that object may have had + // its time changed in the unusual case where where a DST transition was on + // the last day of the month and its local time was in the hour skipped or + // repeated next to a DST transition. So we use `date` instead which is + // guaranteed to still have the original time. + date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); + return date; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addMonths/index.js.flow b/node_modules/date-fns/addMonths/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addMonths/package.json b/node_modules/date-fns/addMonths/package.json new file mode 100644 index 00000000..f3c9c79d --- /dev/null +++ b/node_modules/date-fns/addMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addQuarters/index.d.ts b/node_modules/date-fns/addQuarters/index.d.ts new file mode 100644 index 00000000..a046e678 --- /dev/null +++ b/node_modules/date-fns/addQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addQuarters } from 'date-fns' +export default addQuarters diff --git a/node_modules/date-fns/addQuarters/index.js b/node_modules/date-fns/addQuarters/index.js new file mode 100644 index 00000000..606930be --- /dev/null +++ b/node_modules/date-fns/addQuarters/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addQuarters; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the quarters added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=> Mon Dec 01 2014 00:00:00 + */ +function addQuarters(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + var months = amount * 3; + return (0, _index2.default)(dirtyDate, months); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addQuarters/index.js.flow b/node_modules/date-fns/addQuarters/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addQuarters/package.json b/node_modules/date-fns/addQuarters/package.json new file mode 100644 index 00000000..0f61194e --- /dev/null +++ b/node_modules/date-fns/addQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addSeconds/index.d.ts b/node_modules/date-fns/addSeconds/index.d.ts new file mode 100644 index 00000000..9b1e669e --- /dev/null +++ b/node_modules/date-fns/addSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addSeconds } from 'date-fns' +export default addSeconds diff --git a/node_modules/date-fns/addSeconds/index.js b/node_modules/date-fns/addSeconds/index.js new file mode 100644 index 00000000..7556fdf0 --- /dev/null +++ b/node_modules/date-fns/addSeconds/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addSeconds; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the seconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ +function addSeconds(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, amount * 1000); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addSeconds/index.js.flow b/node_modules/date-fns/addSeconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addSeconds/package.json b/node_modules/date-fns/addSeconds/package.json new file mode 100644 index 00000000..18653e7e --- /dev/null +++ b/node_modules/date-fns/addSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addWeeks/index.d.ts b/node_modules/date-fns/addWeeks/index.d.ts new file mode 100644 index 00000000..25bb83ab --- /dev/null +++ b/node_modules/date-fns/addWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addWeeks } from 'date-fns' +export default addWeeks diff --git a/node_modules/date-fns/addWeeks/index.js b/node_modules/date-fns/addWeeks/index.js new file mode 100644 index 00000000..50f54c2a --- /dev/null +++ b/node_modules/date-fns/addWeeks/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addWeeks; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addDays/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of week to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the weeks added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ +function addWeeks(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + var days = amount * 7; + return (0, _index2.default)(dirtyDate, days); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addWeeks/index.js.flow b/node_modules/date-fns/addWeeks/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addWeeks/package.json b/node_modules/date-fns/addWeeks/package.json new file mode 100644 index 00000000..9e596d66 --- /dev/null +++ b/node_modules/date-fns/addWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/addYears/index.d.ts b/node_modules/date-fns/addYears/index.d.ts new file mode 100644 index 00000000..df7255f7 --- /dev/null +++ b/node_modules/date-fns/addYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addYears } from 'date-fns' +export default addYears diff --git a/node_modules/date-fns/addYears/index.js b/node_modules/date-fns/addYears/index.js new file mode 100644 index 00000000..ccdd6df8 --- /dev/null +++ b/node_modules/date-fns/addYears/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addYears; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the years added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ +function addYears(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, amount * 12); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/addYears/index.js.flow b/node_modules/date-fns/addYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/addYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/addYears/package.json b/node_modules/date-fns/addYears/package.json new file mode 100644 index 00000000..19529032 --- /dev/null +++ b/node_modules/date-fns/addYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/addYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/areIntervalsOverlapping/index.d.ts b/node_modules/date-fns/areIntervalsOverlapping/index.d.ts new file mode 100644 index 00000000..8cc0fd1a --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlapping } from 'date-fns' +export default areIntervalsOverlapping diff --git a/node_modules/date-fns/areIntervalsOverlapping/index.js b/node_modules/date-fns/areIntervalsOverlapping/index.js new file mode 100644 index 00000000..9df12ef6 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/index.js @@ -0,0 +1,87 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = areIntervalsOverlapping; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping. + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - the object with options + * @param {Boolean} [options.inclusive=false] - whether the comparison is inclusive or not + * @returns {Boolean} whether the time intervals are overlapping + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) } + * ) + * //=> false + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ +function areIntervalsOverlapping(intervalLeft, intervalRight, options) { + (0, _index2.default)(2, arguments); + var leftStartTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.start).getTime(); + var leftEndTime = (0, _index.default)(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.end).getTime(); + var rightStartTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.start).getTime(); + var rightEndTime = (0, _index.default)(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { + throw new RangeError('Invalid interval'); + } + + if (options !== null && options !== void 0 && options.inclusive) { + return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + } + + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/areIntervalsOverlapping/index.js.flow b/node_modules/date-fns/areIntervalsOverlapping/index.js.flow new file mode 100644 index 00000000..9cab45d5 --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean, + } +) => boolean diff --git a/node_modules/date-fns/areIntervalsOverlapping/package.json b/node_modules/date-fns/areIntervalsOverlapping/package.json new file mode 100644 index 00000000..50dfe35f --- /dev/null +++ b/node_modules/date-fns/areIntervalsOverlapping/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/areIntervalsOverlapping/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/clamp/index.d.ts b/node_modules/date-fns/clamp/index.d.ts new file mode 100644 index 00000000..957fb1f2 --- /dev/null +++ b/node_modules/date-fns/clamp/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { clamp } from 'date-fns' +export default clamp diff --git a/node_modules/date-fns/clamp/index.js b/node_modules/date-fns/clamp/index.js new file mode 100644 index 00000000..85fa97d1 --- /dev/null +++ b/node_modules/date-fns/clamp/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = clamp; + +var _index = _interopRequireDefault(require("../max/index.js")); + +var _index2 = _interopRequireDefault(require("../min/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @example + * // What is Mar, 21, 2021 bounded to an interval starting at Mar, 22, 2021 and ending at Apr, 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + * + * @param {Date | Number} date - the date to be bounded + * @param {Interval} interval - the interval to bound to + * @returns {Date} the date bounded by the start and the end of the interval + * @throws {TypeError} 2 arguments required + */ +function clamp(date, _ref) { + var start = _ref.start, + end = _ref.end; + (0, _index3.default)(2, arguments); + return (0, _index2.default)([(0, _index.default)([date, start]), end]); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/clamp/index.js.flow b/node_modules/date-fns/clamp/index.js.flow new file mode 100644 index 00000000..d5922309 --- /dev/null +++ b/node_modules/date-fns/clamp/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, interval: Interval) => Date diff --git a/node_modules/date-fns/clamp/package.json b/node_modules/date-fns/clamp/package.json new file mode 100644 index 00000000..c29ec180 --- /dev/null +++ b/node_modules/date-fns/clamp/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/clamp/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/closestIndexTo/index.d.ts b/node_modules/date-fns/closestIndexTo/index.d.ts new file mode 100644 index 00000000..672d132c --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestIndexTo } from 'date-fns' +export default closestIndexTo diff --git a/node_modules/date-fns/closestIndexTo/index.js b/node_modules/date-fns/closestIndexTo/index.js new file mode 100644 index 00000000..c72d821b --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/index.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = closestIndexTo; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param {Date | Number} dateToCompare - the date to compare with + * @param {Array | Array} datesArray - the array to search + * @returns {Number | undefined} an index of the date closest to the given date or undefined if no valid value is given + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ +function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { + (0, _index2.default)(2, arguments); + var dateToCompare = (0, _index.default)(dirtyDateToCompare); + if (isNaN(Number(dateToCompare))) return NaN; + var timeToCompare = dateToCompare.getTime(); + var datesArray; // `dirtyDatesArray` is undefined or null + + if (dirtyDatesArray == null) { + datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + } else if (typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array + } else { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } + + var result; + var minDistance; + datesArray.forEach(function (dirtyDate, index) { + var currentDate = (0, _index.default)(dirtyDate); + + if (isNaN(Number(currentDate))) { + result = NaN; + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < Number(minDistance)) { + result = index; + minDistance = distance; + } + }); + return result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/closestIndexTo/index.js.flow b/node_modules/date-fns/closestIndexTo/index.js.flow new file mode 100644 index 00000000..a8dadb4e --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] +) => ?number diff --git a/node_modules/date-fns/closestIndexTo/package.json b/node_modules/date-fns/closestIndexTo/package.json new file mode 100644 index 00000000..422b4ed8 --- /dev/null +++ b/node_modules/date-fns/closestIndexTo/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/closestIndexTo/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/closestTo/index.d.ts b/node_modules/date-fns/closestTo/index.d.ts new file mode 100644 index 00000000..d4e084e3 --- /dev/null +++ b/node_modules/date-fns/closestTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestTo } from 'date-fns' +export default closestTo diff --git a/node_modules/date-fns/closestTo/index.js b/node_modules/date-fns/closestTo/index.js new file mode 100644 index 00000000..39762fb7 --- /dev/null +++ b/node_modules/date-fns/closestTo/index.js @@ -0,0 +1,72 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = closestTo; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @param {Date | Number} dateToCompare - the date to compare with + * @param {Array | Array} datesArray - the array to search + * @returns {Date | undefined} the date from the array closest to the given date or undefined if no valid value is given + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ +function closestTo(dirtyDateToCompare, dirtyDatesArray) { + (0, _index2.default)(2, arguments); + var dateToCompare = (0, _index.default)(dirtyDateToCompare); + if (isNaN(Number(dateToCompare))) return new Date(NaN); + var timeToCompare = dateToCompare.getTime(); + var datesArray; // `dirtyDatesArray` is undefined or null + + if (dirtyDatesArray == null) { + datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + } else if (typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array + } else { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } + + var result; + var minDistance; + datesArray.forEach(function (dirtyDate) { + var currentDate = (0, _index.default)(dirtyDate); + + if (isNaN(Number(currentDate))) { + result = new Date(NaN); + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < Number(minDistance)) { + result = currentDate; + minDistance = distance; + } + }); + return result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/closestTo/index.js.flow b/node_modules/date-fns/closestTo/index.js.flow new file mode 100644 index 00000000..2a03edcf --- /dev/null +++ b/node_modules/date-fns/closestTo/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] +) => ?Date diff --git a/node_modules/date-fns/closestTo/package.json b/node_modules/date-fns/closestTo/package.json new file mode 100644 index 00000000..a3a1028a --- /dev/null +++ b/node_modules/date-fns/closestTo/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/closestTo/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/compareAsc/index.d.ts b/node_modules/date-fns/compareAsc/index.d.ts new file mode 100644 index 00000000..ff920e66 --- /dev/null +++ b/node_modules/date-fns/compareAsc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareAsc } from 'date-fns' +export default compareAsc diff --git a/node_modules/date-fns/compareAsc/index.js b/node_modules/date-fns/compareAsc/index.js new file mode 100644 index 00000000..8931f311 --- /dev/null +++ b/node_modules/date-fns/compareAsc/index.js @@ -0,0 +1,61 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = compareAsc; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Number} the result of the comparison + * @throws {TypeError} 2 arguments required + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ +function compareAsc(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var diff = dateLeft.getTime() - dateRight.getTime(); + + if (diff < 0) { + return -1; + } else if (diff > 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/compareAsc/index.js.flow b/node_modules/date-fns/compareAsc/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/compareAsc/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/compareAsc/package.json b/node_modules/date-fns/compareAsc/package.json new file mode 100644 index 00000000..844082c5 --- /dev/null +++ b/node_modules/date-fns/compareAsc/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/compareAsc/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/compareDesc/index.d.ts b/node_modules/date-fns/compareDesc/index.d.ts new file mode 100644 index 00000000..673fab56 --- /dev/null +++ b/node_modules/date-fns/compareDesc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareDesc } from 'date-fns' +export default compareDesc diff --git a/node_modules/date-fns/compareDesc/index.js b/node_modules/date-fns/compareDesc/index.js new file mode 100644 index 00000000..8e637641 --- /dev/null +++ b/node_modules/date-fns/compareDesc/index.js @@ -0,0 +1,61 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = compareDesc; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Number} the result of the comparison + * @throws {TypeError} 2 arguments required + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ +function compareDesc(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var diff = dateLeft.getTime() - dateRight.getTime(); + + if (diff > 0) { + return -1; + } else if (diff < 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/compareDesc/index.js.flow b/node_modules/date-fns/compareDesc/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/compareDesc/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/compareDesc/package.json b/node_modules/date-fns/compareDesc/package.json new file mode 100644 index 00000000..937ba940 --- /dev/null +++ b/node_modules/date-fns/compareDesc/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/compareDesc/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/constants/index.d.ts b/node_modules/date-fns/constants/index.d.ts new file mode 100644 index 00000000..60a24ae9 --- /dev/null +++ b/node_modules/date-fns/constants/index.d.ts @@ -0,0 +1,20 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export const daysInWeek: number +export const daysInYear: number +export const maxTime: number +export const millisecondsInMinute: number +export const millisecondsInHour: number +export const millisecondsInSecond: number +export const minTime: number +export const minutesInHour: number +export const monthsInQuarter: number +export const monthsInYear: number +export const quartersInYear: number +export const secondsInHour: number +export const secondsInMinute: number +export const secondsInDay: number +export const secondsInWeek: number +export const secondsInYear: number +export const secondsInMonth: number +export const secondsInQuarter: number diff --git a/node_modules/date-fns/constants/index.js b/node_modules/date-fns/constants/index.js new file mode 100644 index 00000000..da2c2390 --- /dev/null +++ b/node_modules/date-fns/constants/index.js @@ -0,0 +1,208 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.secondsInYear = exports.secondsInWeek = exports.secondsInQuarter = exports.secondsInMonth = exports.secondsInMinute = exports.secondsInHour = exports.secondsInDay = exports.quartersInYear = exports.monthsInYear = exports.monthsInQuarter = exports.minutesInHour = exports.minTime = exports.millisecondsInSecond = exports.millisecondsInMinute = exports.millisecondsInHour = exports.maxTime = exports.daysInYear = exports.daysInWeek = void 0; + +/** + * Days in 1 week. + * + * @name daysInWeek + * @constant + * @type {number} + * @default + */ +var daysInWeek = 7; +/** + * Days in 1 year + * One years equals 365.2425 days according to the formula: + * + * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + * + * @name daysInYear + * @constant + * @type {number} + * @default + */ + +exports.daysInWeek = daysInWeek; +var daysInYear = 365.2425; +/** + * Maximum allowed time. + * + * @name maxTime + * @constant + * @type {number} + * @default + */ + +exports.daysInYear = daysInYear; +var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; +/** + * Milliseconds in 1 minute + * + * @name millisecondsInMinute + * @constant + * @type {number} + * @default + */ + +exports.maxTime = maxTime; +var millisecondsInMinute = 60000; +/** + * Milliseconds in 1 hour + * + * @name millisecondsInHour + * @constant + * @type {number} + * @default + */ + +exports.millisecondsInMinute = millisecondsInMinute; +var millisecondsInHour = 3600000; +/** + * Milliseconds in 1 second + * + * @name millisecondsInSecond + * @constant + * @type {number} + * @default + */ + +exports.millisecondsInHour = millisecondsInHour; +var millisecondsInSecond = 1000; +/** + * Minimum allowed time. + * + * @name minTime + * @constant + * @type {number} + * @default + */ + +exports.millisecondsInSecond = millisecondsInSecond; +var minTime = -maxTime; +/** + * Minutes in 1 hour + * + * @name minutesInHour + * @constant + * @type {number} + * @default + */ + +exports.minTime = minTime; +var minutesInHour = 60; +/** + * Months in 1 quarter + * + * @name monthsInQuarter + * @constant + * @type {number} + * @default + */ + +exports.minutesInHour = minutesInHour; +var monthsInQuarter = 3; +/** + * Months in 1 year + * + * @name monthsInYear + * @constant + * @type {number} + * @default + */ + +exports.monthsInQuarter = monthsInQuarter; +var monthsInYear = 12; +/** + * Quarters in 1 year + * + * @name quartersInYear + * @constant + * @type {number} + * @default + */ + +exports.monthsInYear = monthsInYear; +var quartersInYear = 4; +/** + * Seconds in 1 hour + * + * @name secondsInHour + * @constant + * @type {number} + * @default + */ + +exports.quartersInYear = quartersInYear; +var secondsInHour = 3600; +/** + * Seconds in 1 minute + * + * @name secondsInMinute + * @constant + * @type {number} + * @default + */ + +exports.secondsInHour = secondsInHour; +var secondsInMinute = 60; +/** + * Seconds in 1 day + * + * @name secondsInDay + * @constant + * @type {number} + * @default + */ + +exports.secondsInMinute = secondsInMinute; +var secondsInDay = secondsInHour * 24; +/** + * Seconds in 1 week + * + * @name secondsInWeek + * @constant + * @type {number} + * @default + */ + +exports.secondsInDay = secondsInDay; +var secondsInWeek = secondsInDay * 7; +/** + * Seconds in 1 year + * + * @name secondsInYear + * @constant + * @type {number} + * @default + */ + +exports.secondsInWeek = secondsInWeek; +var secondsInYear = secondsInDay * daysInYear; +/** + * Seconds in 1 month + * + * @name secondsInMonth + * @constant + * @type {number} + * @default + */ + +exports.secondsInYear = secondsInYear; +var secondsInMonth = secondsInYear / 12; +/** + * Seconds in 1 quarter + * + * @name secondsInQuarter + * @constant + * @type {number} + * @default + */ + +exports.secondsInMonth = secondsInMonth; +var secondsInQuarter = secondsInMonth * 3; +exports.secondsInQuarter = secondsInQuarter; \ No newline at end of file diff --git a/node_modules/date-fns/constants/index.js.flow b/node_modules/date-fns/constants/index.js.flow new file mode 100644 index 00000000..5d837961 --- /dev/null +++ b/node_modules/date-fns/constants/index.js.flow @@ -0,0 +1,14 @@ +// @flow + +declare export var daysInWeek: number +declare export var maxTime: number +declare export var millisecondsInMinute: number +declare export var millisecondsInHour: number +declare export var millisecondsInSecond: number +declare export var minTime: number +declare export var minutesInHour: number +declare export var monthsInQuarter: number +declare export var monthsInYear: number +declare export var quartersInYear: number +declare export var secondsInHour: number +declare export var secondsInMinute: number diff --git a/node_modules/date-fns/daysToWeeks/index.d.ts b/node_modules/date-fns/daysToWeeks/index.d.ts new file mode 100644 index 00000000..666112f5 --- /dev/null +++ b/node_modules/date-fns/daysToWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { daysToWeeks } from 'date-fns' +export default daysToWeeks diff --git a/node_modules/date-fns/daysToWeeks/index.js b/node_modules/date-fns/daysToWeeks/index.js new file mode 100644 index 00000000..88a6125e --- /dev/null +++ b/node_modules/date-fns/daysToWeeks/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = daysToWeeks; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param {number} days - number of days to be converted + * + * @returns {number} the number of days converted in weeks + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ +function daysToWeeks(days) { + (0, _index.default)(1, arguments); + var weeks = days / _index2.daysInWeek; + return Math.floor(weeks); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/daysToWeeks/index.js.flow b/node_modules/date-fns/daysToWeeks/index.js.flow new file mode 100644 index 00000000..181aec6e --- /dev/null +++ b/node_modules/date-fns/daysToWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (days: number) => number diff --git a/node_modules/date-fns/daysToWeeks/package.json b/node_modules/date-fns/daysToWeeks/package.json new file mode 100644 index 00000000..8b46f5f1 --- /dev/null +++ b/node_modules/date-fns/daysToWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/daysToWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInBusinessDays/index.d.ts b/node_modules/date-fns/differenceInBusinessDays/index.d.ts new file mode 100644 index 00000000..8decd89c --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInBusinessDays } from 'date-fns' +export default differenceInBusinessDays diff --git a/node_modules/date-fns/differenceInBusinessDays/index.js b/node_modules/date-fns/differenceInBusinessDays/index.js new file mode 100644 index 00000000..793abba8 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/index.js @@ -0,0 +1,95 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInBusinessDays; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index3 = _interopRequireDefault(require("../isSameDay/index.js")); + +var _index4 = _interopRequireDefault(require("../isValid/index.js")); + +var _index5 = _interopRequireDefault(require("../isWeekend/index.js")); + +var _index6 = _interopRequireDefault(require("../toDate/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index8 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that arent in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of business days + * @throws {TypeError} 2 arguments required + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ +function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { + (0, _index7.default)(2, arguments); + var dateLeft = (0, _index6.default)(dirtyDateLeft); + var dateRight = (0, _index6.default)(dirtyDateRight); + if (!(0, _index4.default)(dateLeft) || !(0, _index4.default)(dateRight)) return NaN; + var calendarDifference = (0, _index2.default)(dateLeft, dateRight); + var sign = calendarDifference < 0 ? -1 : 1; + var weeks = (0, _index8.default)(calendarDifference / 7); + var result = weeks * 5; + dateRight = (0, _index.default)(dateRight, weeks * 7); // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week + + while (!(0, _index3.default)(dateLeft, dateRight)) { + // sign is used to account for both negative and positive differences + result += (0, _index5.default)(dateRight) ? 0 : sign; + dateRight = (0, _index.default)(dateRight, sign); + } + + return result === 0 ? 0 : result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInBusinessDays/index.js.flow b/node_modules/date-fns/differenceInBusinessDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInBusinessDays/package.json b/node_modules/date-fns/differenceInBusinessDays/package.json new file mode 100644 index 00000000..c70505b9 --- /dev/null +++ b/node_modules/date-fns/differenceInBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInBusinessDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarDays/index.d.ts b/node_modules/date-fns/differenceInCalendarDays/index.d.ts new file mode 100644 index 00000000..384b796a --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarDays } from 'date-fns' +export default differenceInCalendarDays diff --git a/node_modules/date-fns/differenceInCalendarDays/index.js b/node_modules/date-fns/differenceInCalendarDays/index.js new file mode 100644 index 00000000..5e28795b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/index.js @@ -0,0 +1,60 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarDays; + +var _index = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfDay/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_DAY = 86400000; +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar days + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ + +function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { + (0, _index3.default)(2, arguments); + var startOfDayLeft = (0, _index2.default)(dirtyDateLeft); + var startOfDayRight = (0, _index2.default)(dirtyDateRight); + var timestampLeft = startOfDayLeft.getTime() - (0, _index.default)(startOfDayLeft); + var timestampRight = startOfDayRight.getTime() - (0, _index.default)(startOfDayRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a day is not constant + // (e.g. it's different in the day of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarDays/index.js.flow b/node_modules/date-fns/differenceInCalendarDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarDays/package.json b/node_modules/date-fns/differenceInCalendarDays/package.json new file mode 100644 index 00000000..61de6e18 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears/index.d.ts b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.d.ts new file mode 100644 index 00000000..bd8325c8 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeekYears } from 'date-fns' +export default differenceInCalendarISOWeekYears diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js new file mode 100644 index 00000000..d04a09fd --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarISOWeekYears; + +var _index = _interopRequireDefault(require("../getISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar ISO week-numbering years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ +function differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + return (0, _index.default)(dirtyDateLeft) - (0, _index.default)(dirtyDateRight); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js.flow b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarISOWeekYears/package.json b/node_modules/date-fns/differenceInCalendarISOWeekYears/package.json new file mode 100644 index 00000000..3941c312 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarISOWeekYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks/index.d.ts b/node_modules/date-fns/differenceInCalendarISOWeeks/index.d.ts new file mode 100644 index 00000000..73642278 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeeks } from 'date-fns' +export default differenceInCalendarISOWeeks diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks/index.js b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js new file mode 100644 index 00000000..b06dd74f --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,53 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarISOWeeks; + +var _index = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar ISO weeks + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6) + * ) + * //=> 3 + */ + +function differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) { + (0, _index3.default)(2, arguments); + var startOfISOWeekLeft = (0, _index2.default)(dirtyDateLeft); + var startOfISOWeekRight = (0, _index2.default)(dirtyDateRight); + var timestampLeft = startOfISOWeekLeft.getTime() - (0, _index.default)(startOfISOWeekLeft); + var timestampRight = startOfISOWeekRight.getTime() - (0, _index.default)(startOfISOWeekRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks/index.js.flow b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarISOWeeks/package.json b/node_modules/date-fns/differenceInCalendarISOWeeks/package.json new file mode 100644 index 00000000..5aa768be --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarISOWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarISOWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarMonths/index.d.ts b/node_modules/date-fns/differenceInCalendarMonths/index.d.ts new file mode 100644 index 00000000..743bf763 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarMonths } from 'date-fns' +export default differenceInCalendarMonths diff --git a/node_modules/date-fns/differenceInCalendarMonths/index.js b/node_modules/date-fns/differenceInCalendarMonths/index.js new file mode 100644 index 00000000..7172401b --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarMonths; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar months + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ +function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); + var monthDiff = dateLeft.getMonth() - dateRight.getMonth(); + return yearDiff * 12 + monthDiff; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarMonths/index.js.flow b/node_modules/date-fns/differenceInCalendarMonths/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarMonths/package.json b/node_modules/date-fns/differenceInCalendarMonths/package.json new file mode 100644 index 00000000..d451e1cf --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarQuarters/index.d.ts b/node_modules/date-fns/differenceInCalendarQuarters/index.d.ts new file mode 100644 index 00000000..177e0724 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarQuarters } from 'date-fns' +export default differenceInCalendarQuarters diff --git a/node_modules/date-fns/differenceInCalendarQuarters/index.js b/node_modules/date-fns/differenceInCalendarQuarters/index.js new file mode 100644 index 00000000..0989d6f8 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarQuarters; + +var _index = _interopRequireDefault(require("../getQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar quarters + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ +function differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) { + (0, _index3.default)(2, arguments); + var dateLeft = (0, _index2.default)(dirtyDateLeft); + var dateRight = (0, _index2.default)(dirtyDateRight); + var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); + var quarterDiff = (0, _index.default)(dateLeft) - (0, _index.default)(dateRight); + return yearDiff * 4 + quarterDiff; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarQuarters/index.js.flow b/node_modules/date-fns/differenceInCalendarQuarters/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarQuarters/package.json b/node_modules/date-fns/differenceInCalendarQuarters/package.json new file mode 100644 index 00000000..58a2209c --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarWeeks/index.d.ts b/node_modules/date-fns/differenceInCalendarWeeks/index.d.ts new file mode 100644 index 00000000..c370dd69 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeks } from 'date-fns' +export default differenceInCalendarWeeks diff --git a/node_modules/date-fns/differenceInCalendarWeeks/index.js b/node_modules/date-fns/differenceInCalendarWeeks/index.js new file mode 100644 index 00000000..0e3c04df --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/index.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarWeeks; + +var _index = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the number of calendar weeks + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ + +function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options) { + (0, _index3.default)(2, arguments); + var startOfWeekLeft = (0, _index.default)(dirtyDateLeft, options); + var startOfWeekRight = (0, _index.default)(dirtyDateRight, options); + var timestampLeft = startOfWeekLeft.getTime() - (0, _index2.default)(startOfWeekLeft); + var timestampRight = startOfWeekRight.getTime() - (0, _index2.default)(startOfWeekRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarWeeks/index.js.flow b/node_modules/date-fns/differenceInCalendarWeeks/index.js.flow new file mode 100644 index 00000000..e4968a99 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/differenceInCalendarWeeks/package.json b/node_modules/date-fns/differenceInCalendarWeeks/package.json new file mode 100644 index 00000000..0bd9ee25 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarYears/index.d.ts b/node_modules/date-fns/differenceInCalendarYears/index.d.ts new file mode 100644 index 00000000..3692b07f --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarYears } from 'date-fns' +export default differenceInCalendarYears diff --git a/node_modules/date-fns/differenceInCalendarYears/index.js b/node_modules/date-fns/differenceInCalendarYears/index.js new file mode 100644 index 00000000..5f14cf17 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInCalendarYears; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ) + * //=> 2 + */ +function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + return dateLeft.getFullYear() - dateRight.getFullYear(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInCalendarYears/index.js.flow b/node_modules/date-fns/differenceInCalendarYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInCalendarYears/package.json b/node_modules/date-fns/differenceInCalendarYears/package.json new file mode 100644 index 00000000..49dcb58c --- /dev/null +++ b/node_modules/date-fns/differenceInCalendarYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInCalendarYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInDays/index.d.ts b/node_modules/date-fns/differenceInDays/index.d.ts new file mode 100644 index 00000000..de04cde2 --- /dev/null +++ b/node_modules/date-fns/differenceInDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInDays } from 'date-fns' +export default differenceInDays diff --git a/node_modules/date-fns/differenceInDays/index.js b/node_modules/date-fns/differenceInDays/index.js new file mode 100644 index 00000000..797fffb7 --- /dev/null +++ b/node_modules/date-fns/differenceInDays/index.js @@ -0,0 +1,97 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInDays; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Like `compareAsc` but uses local time not UTC, which is needed +// for accurate equality comparisons of UTC timestamps that end up +// having the same representation in local time, e.g. one hour before +// DST ends vs. the instant that DST ends. +function compareLocalAsc(dateLeft, dateRight) { + var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds(); + + if (diff < 0) { + return -1; + } else if (diff > 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full days according to the local timezone + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) +//=> 92 + */ + + +function differenceInDays(dirtyDateLeft, dirtyDateRight) { + (0, _index3.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var sign = compareLocalAsc(dateLeft, dateRight); + var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); + dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full + // If so, result must be decreased by 1 in absolute value + + var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign); + var result = sign * (difference - isLastDayNotFull); // Prevent negative zero + + return result === 0 ? 0 : result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInDays/index.js.flow b/node_modules/date-fns/differenceInDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInDays/package.json b/node_modules/date-fns/differenceInDays/package.json new file mode 100644 index 00000000..3380ef7c --- /dev/null +++ b/node_modules/date-fns/differenceInDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInHours/index.d.ts b/node_modules/date-fns/differenceInHours/index.d.ts new file mode 100644 index 00000000..4559ab98 --- /dev/null +++ b/node_modules/date-fns/differenceInHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHours } from 'date-fns' +export default differenceInHours diff --git a/node_modules/date-fns/differenceInHours/index.js b/node_modules/date-fns/differenceInHours/index.js new file mode 100644 index 00000000..15be10f4 --- /dev/null +++ b/node_modules/date-fns/differenceInHours/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInHours; + +var _index = require("../constants/index.js"); + +var _index2 = _interopRequireDefault(require("../differenceInMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = require("../_lib/roundingMethods/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of hours + * @throws {TypeError} 2 arguments required + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ +function differenceInHours(dateLeft, dateRight, options) { + (0, _index3.default)(2, arguments); + + var diff = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInHour; + + return (0, _index4.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInHours/index.js.flow b/node_modules/date-fns/differenceInHours/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/differenceInHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/differenceInHours/package.json b/node_modules/date-fns/differenceInHours/package.json new file mode 100644 index 00000000..95ccb12d --- /dev/null +++ b/node_modules/date-fns/differenceInHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInISOWeekYears/index.d.ts b/node_modules/date-fns/differenceInISOWeekYears/index.d.ts new file mode 100644 index 00000000..ce7cb574 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInISOWeekYears } from 'date-fns' +export default differenceInISOWeekYears diff --git a/node_modules/date-fns/differenceInISOWeekYears/index.js b/node_modules/date-fns/differenceInISOWeekYears/index.js new file mode 100644 index 00000000..91e4bfb3 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/index.js @@ -0,0 +1,59 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInISOWeekYears; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarISOWeekYears/index.js")); + +var _index3 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index4 = _interopRequireDefault(require("../subISOWeekYears/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full ISO week-numbering years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 1 + */ +function differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) { + (0, _index5.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var sign = (0, _index3.default)(dateLeft, dateRight); + var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); + dateLeft = (0, _index4.default)(dateLeft, sign * difference); // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1 + // if last calendar ISO year is not full + // If so, result must be decreased by 1 in absolute value + + var isLastISOWeekYearNotFull = Number((0, _index3.default)(dateLeft, dateRight) === -sign); + var result = sign * (difference - isLastISOWeekYearNotFull); // Prevent negative zero + + return result === 0 ? 0 : result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInISOWeekYears/index.js.flow b/node_modules/date-fns/differenceInISOWeekYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInISOWeekYears/package.json b/node_modules/date-fns/differenceInISOWeekYears/package.json new file mode 100644 index 00000000..263156ad --- /dev/null +++ b/node_modules/date-fns/differenceInISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInISOWeekYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMilliseconds/index.d.ts b/node_modules/date-fns/differenceInMilliseconds/index.d.ts new file mode 100644 index 00000000..c72a3ab8 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMilliseconds } from 'date-fns' +export default differenceInMilliseconds diff --git a/node_modules/date-fns/differenceInMilliseconds/index.js b/node_modules/date-fns/differenceInMilliseconds/index.js new file mode 100644 index 00000000..1b88c56e --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInMilliseconds; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of milliseconds + * @throws {TypeError} 2 arguments required + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ +function differenceInMilliseconds(dateLeft, dateRight) { + (0, _index2.default)(2, arguments); + return (0, _index.default)(dateLeft).getTime() - (0, _index.default)(dateRight).getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMilliseconds/index.js.flow b/node_modules/date-fns/differenceInMilliseconds/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInMilliseconds/package.json b/node_modules/date-fns/differenceInMilliseconds/package.json new file mode 100644 index 00000000..8db7c63e --- /dev/null +++ b/node_modules/date-fns/differenceInMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMinutes/index.d.ts b/node_modules/date-fns/differenceInMinutes/index.d.ts new file mode 100644 index 00000000..28348fce --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutes } from 'date-fns' +export default differenceInMinutes diff --git a/node_modules/date-fns/differenceInMinutes/index.js b/node_modules/date-fns/differenceInMinutes/index.js new file mode 100644 index 00000000..90375a29 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/index.js @@ -0,0 +1,57 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInMinutes; + +var _index = require("../constants/index.js"); + +var _index2 = _interopRequireDefault(require("../differenceInMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = require("../_lib/roundingMethods/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of minutes + * @throws {TypeError} 2 arguments required + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ +function differenceInMinutes(dateLeft, dateRight, options) { + (0, _index3.default)(2, arguments); + + var diff = (0, _index2.default)(dateLeft, dateRight) / _index.millisecondsInMinute; + + return (0, _index4.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMinutes/index.js.flow b/node_modules/date-fns/differenceInMinutes/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/differenceInMinutes/package.json b/node_modules/date-fns/differenceInMinutes/package.json new file mode 100644 index 00000000..85c55cb8 --- /dev/null +++ b/node_modules/date-fns/differenceInMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMonths/index.d.ts b/node_modules/date-fns/differenceInMonths/index.d.ts new file mode 100644 index 00000000..8fbe9775 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMonths } from 'date-fns' +export default differenceInMonths diff --git a/node_modules/date-fns/differenceInMonths/index.js b/node_modules/date-fns/differenceInMonths/index.js new file mode 100644 index 00000000..76b063fa --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/index.js @@ -0,0 +1,71 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInMonths; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = _interopRequireDefault(require("../isLastDayOfMonth/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @description + * Get the number of full months between the given dates using trunc as a default rounding method. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full months + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ +function differenceInMonths(dirtyDateLeft, dirtyDateRight) { + (0, _index4.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var sign = (0, _index3.default)(dateLeft, dateRight); + var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); + var result; // Check for the difference of less than month + + if (difference < 1) { + result = 0; + } else { + if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) { + // This will check if the date is end of Feb and assign a higher end of month date + // to compare it with Jan + dateLeft.setDate(30); + } + + dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full + // If so, result must be decreased by 1 in absolute value + + var isLastMonthNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month + + if ((0, _index5.default)((0, _index.default)(dirtyDateLeft)) && difference === 1 && (0, _index3.default)(dirtyDateLeft, dateRight) === 1) { + isLastMonthNotFull = false; + } + + result = sign * (difference - Number(isLastMonthNotFull)); + } // Prevent negative zero + + + return result === 0 ? 0 : result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInMonths/index.js.flow b/node_modules/date-fns/differenceInMonths/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInMonths/package.json b/node_modules/date-fns/differenceInMonths/package.json new file mode 100644 index 00000000..d682d9a9 --- /dev/null +++ b/node_modules/date-fns/differenceInMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInQuarters/index.d.ts b/node_modules/date-fns/differenceInQuarters/index.d.ts new file mode 100644 index 00000000..9cc693b9 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuarters } from 'date-fns' +export default differenceInQuarters diff --git a/node_modules/date-fns/differenceInQuarters/index.js b/node_modules/date-fns/differenceInQuarters/index.js new file mode 100644 index 00000000..c172d9e2 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInQuarters; + +var _index = _interopRequireDefault(require("../differenceInMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = require("../_lib/roundingMethods/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of full quarters + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ +function differenceInQuarters(dateLeft, dateRight, options) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dateLeft, dateRight) / 3; + return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInQuarters/index.js.flow b/node_modules/date-fns/differenceInQuarters/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/differenceInQuarters/package.json b/node_modules/date-fns/differenceInQuarters/package.json new file mode 100644 index 00000000..335cc0c8 --- /dev/null +++ b/node_modules/date-fns/differenceInQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInSeconds/index.d.ts b/node_modules/date-fns/differenceInSeconds/index.d.ts new file mode 100644 index 00000000..e317fe27 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSeconds } from 'date-fns' +export default differenceInSeconds diff --git a/node_modules/date-fns/differenceInSeconds/index.js b/node_modules/date-fns/differenceInSeconds/index.js new file mode 100644 index 00000000..14727817 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInSeconds; + +var _index = _interopRequireDefault(require("../differenceInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = require("../_lib/roundingMethods/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of seconds + * @throws {TypeError} 2 arguments required + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ +function differenceInSeconds(dateLeft, dateRight, options) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dateLeft, dateRight) / 1000; + return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInSeconds/index.js.flow b/node_modules/date-fns/differenceInSeconds/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/differenceInSeconds/package.json b/node_modules/date-fns/differenceInSeconds/package.json new file mode 100644 index 00000000..66f8ba13 --- /dev/null +++ b/node_modules/date-fns/differenceInSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInWeeks/index.d.ts b/node_modules/date-fns/differenceInWeeks/index.d.ts new file mode 100644 index 00000000..a42614c9 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeks } from 'date-fns' +export default differenceInWeeks diff --git a/node_modules/date-fns/differenceInWeeks/index.js b/node_modules/date-fns/differenceInWeeks/index.js new file mode 100644 index 00000000..d6c89bd6 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks/index.js @@ -0,0 +1,63 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInWeeks; + +var _index = _interopRequireDefault(require("../differenceInDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = require("../_lib/roundingMethods/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of full weeks + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ +function differenceInWeeks(dateLeft, dateRight, options) { + (0, _index2.default)(2, arguments); + var diff = (0, _index.default)(dateLeft, dateRight) / 7; + return (0, _index3.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInWeeks/index.js.flow b/node_modules/date-fns/differenceInWeeks/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/differenceInWeeks/package.json b/node_modules/date-fns/differenceInWeeks/package.json new file mode 100644 index 00000000..157df83c --- /dev/null +++ b/node_modules/date-fns/differenceInWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/differenceInYears/index.d.ts b/node_modules/date-fns/differenceInYears/index.d.ts new file mode 100644 index 00000000..df839f6a --- /dev/null +++ b/node_modules/date-fns/differenceInYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInYears } from 'date-fns' +export default differenceInYears diff --git a/node_modules/date-fns/differenceInYears/index.js b/node_modules/date-fns/differenceInYears/index.js new file mode 100644 index 00000000..3daad198 --- /dev/null +++ b/node_modules/date-fns/differenceInYears/index.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = differenceInYears; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarYears/index.js")); + +var _index3 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ +function differenceInYears(dirtyDateLeft, dirtyDateRight) { + (0, _index4.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + var sign = (0, _index3.default)(dateLeft, dateRight); + var difference = Math.abs((0, _index2.default)(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing + // with leap days + + dateLeft.setFullYear(1584); + dateRight.setFullYear(1584); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full + // If so, result must be decreased by 1 in absolute value + + var isLastYearNotFull = (0, _index3.default)(dateLeft, dateRight) === -sign; + var result = sign * (difference - Number(isLastYearNotFull)); // Prevent negative zero + + return result === 0 ? 0 : result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/differenceInYears/index.js.flow b/node_modules/date-fns/differenceInYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/differenceInYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/differenceInYears/package.json b/node_modules/date-fns/differenceInYears/package.json new file mode 100644 index 00000000..6135ffa2 --- /dev/null +++ b/node_modules/date-fns/differenceInYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/differenceInYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/docs/.eslintrc.js b/node_modules/date-fns/docs/.eslintrc.js new file mode 100644 index 00000000..a40aaa8c --- /dev/null +++ b/node_modules/date-fns/docs/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + rules: { + 'no-console': 'off' + } +} diff --git a/node_modules/date-fns/docs/Day.js b/node_modules/date-fns/docs/Day.js new file mode 100644 index 00000000..42df02d7 --- /dev/null +++ b/node_modules/date-fns/docs/Day.js @@ -0,0 +1,15 @@ +/** + * @category Types + * @summary Day type + * + * @description + * The day of the week type alias (`0 | 1 | 2 | 3 | 4 | 5 | 6`). Unlike the date + * (the number of days since the beginningof the month), which starts with 1 + * and is dynamic (can go up to 28, 30, or 31), the day starts with 0 and static + * (always ends at 6). Look at it as an index in an array where Sunday is + * the first element, and Saturday is the last. + * + * @typedef {0 | 1 | 2 | 3 | 4 | 5 | 6} Day + */ +const Day = 0 +module.exports = Day diff --git a/node_modules/date-fns/docs/Duration.js b/node_modules/date-fns/docs/Duration.js new file mode 100644 index 00000000..95702b3e --- /dev/null +++ b/node_modules/date-fns/docs/Duration.js @@ -0,0 +1,19 @@ +/** + * @category Types + * @summary Duration object + * + * @description + * Duration object. + * + * @typedef {Object} Duration + * + * @property {number} [years] + * @property {number} [months] + * @property {number} [weeks] + * @property {number} [days] + * @property {number} [hours] + * @property {number} [minutes] + * @property {number} [seconds] + */ +const Duration = {} +module.exports = Duration diff --git a/node_modules/date-fns/docs/Interval.js b/node_modules/date-fns/docs/Interval.js new file mode 100644 index 00000000..15347b6b --- /dev/null +++ b/node_modules/date-fns/docs/Interval.js @@ -0,0 +1,16 @@ +/** + * @category Types + * @summary An object that combines two dates to represent the time interval. + * + * @description + * An object that combines two dates to represent the time interval. + * + * @typedef {Object} Interval + * @property {Date|Number} start - the start of the interval + * @property {Date|Number} end - the end of the interval + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + */ +var Interval = {} + +module.exports = Interval diff --git a/node_modules/date-fns/docs/Locale.js b/node_modules/date-fns/docs/Locale.js new file mode 100644 index 00000000..9c7b4c11 --- /dev/null +++ b/node_modules/date-fns/docs/Locale.js @@ -0,0 +1,88 @@ +/** + * @category Types + * @summary A locale object. Default locale is `en-US`. + * + * @description + * A locale object. Default locale is `en-US`. + * + * If you're using any of these date-fns, consider specifying a locale in options: + * + * - `differenceInCalendarWeeks` + * - `eachWeekOfInterval` + * - `endOfWeek` + * - `format` + * - `formatDistance` + * - `formatDistanceStrict` + * - `formatRelative` + * - `getWeek` + * - `getWeekOfMonth` + * - `getWeeksInMonth` + * - `getWeekYear` + * - `isMatch` + * - `isSameWeek` + * - `isThisWeek` + * - `lastDayOfWeek` + * - `parse` + * - `setDay` + * - `setWeek` + * - `setWeekYear` + * - `startOfWeek` + * - `startOfWeekYear` + * + * Read the Properties section below for more details. + * + * @typedef {Object} Locale + * + * @property {string} [code] - the locale code (ISO 639-1 + optional country code) + * @property {Function} [formatDistance] - the function that takes a token + * passed by `formatDistance` or `formatDistanceStrict` and payload, + * and returns localized distance in words. + * Required by `formatDistance` and `formatDistanceStrict` + * + * @property {Function} [formatRelative] - the function that takes a token + * passed by `formatRelative` and two dates and returns the localized relative date format. + * Required by `formatRelative` + * + * @property {Object} [localize] - the object with functions used to localize various values. + * Required by `format` and `formatRelative` + * @property {Function} localize.ordinalNumber - the function that localizes an ordinal number + * @property {Function} localize.era - the function that takes 0 or 1 and returns localized era + * @property {Function} localize.quarter - the function that localizes a quarter + * @property {Function} localize.month - the function that localizes a month + * @property {Function} localize.day - the function that localizes a day of the week + * @property {Function} localize.dayPeriod - the function that takes one of the strings + * 'am', 'pm', 'midnight', 'noon', 'morning', 'afternoon', 'evening' or 'night' + * and returns localized time of the day + * + * @property {Object} [formatLong] - the object with functions that return localized formats + * @property {Function} formatLong.date - the function that returns a localized long date format + * @property {Function} formatLong.time - the function that returns a localized long time format + * @property {Function} formatLong.dateTime - the function that returns a localized format of date and time combined + * + * @property {Object} [match] — the object with functions used to match and parse various localized values. + * Required by `parse` + * @property {Function} match.ordinalNumber - the function that parses a localized ordinal number + * @property {Function} match.era - the function that parses a localized era + * @property {Function} match.quarter - the function that parses a localized quarter + * @property {Function} match.month - the function that parses a localized month + * @property {Function} match.day - the function that parses a localized day of the week + * @property {Function} match.dayPeriod - the function that parses a localized time of the day + * + * @property {Object} [options] - an object with locale options. + * @property {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday). + * Used by `differenceInCalendarWeeks`, `eachWeekOfInterval`, `endOfWeek`, `format`, `formatRelative`, `getWeek`, `getWeekOfMonth`, + * `getWeeksInMonth`, `getWeekYear`, `isMatch`, `isSameWeek`, `isThisWeek`, `lastDayOfWeek`, `parse`, `setDay`, + * `setWeek`, `setWeekYear`, `startOfWeek` and `startOfWeekYear` + * @property {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, + * which is always in the first week of the year. + * Used by `format`, `getWeek`, `getWeekYear`, `isMatch`, `parse`, `setWeek`, `setWeekYear` and `startOfWeekYear`. + * + * @throws {RangeError} `locale` must contain `localize` property. Thrown by `format` and `formatRelative` + * @throws {RangeError} `locale` must contain `formatLong` property. Thrown by `format` and `formatRelative` + * @throws {RangeError} `locale` must contain `formatRelative` property. Thrown by `formatRelative` + * @throws {RangeError} `locale` must contain `formatDistance` property. Thrown by `formatDistance` and `formatDistanceStrict` + * @throws {RangeError} `locale` must contain `match` property. Thrown by `parse` + */ +var Locale = {} + +module.exports = Locale diff --git a/node_modules/date-fns/docs/constants.md b/node_modules/date-fns/docs/constants.md new file mode 100644 index 00000000..b792fd77 --- /dev/null +++ b/node_modules/date-fns/docs/constants.md @@ -0,0 +1,47 @@ +# Constants + +date-fns provides with a number of useful constants. + +## Usage + +The constants could be imported from `date-fns/constants` or directly +from `date-fns`: + +```js +import { maxTime } from 'date-fns/constants' +import { minTime } from 'date-fns' + +function isAllowedTime(time) { + return time <= maxTime && time >= minTime +} +``` + +## Constants + +### `maxTime` + +Maximum allowed time: + +```js +import { maxTime } from 'date-fns' + +const isValid = 8640000000000001 <= maxTime +//=> false + +new Date(8640000000000001) +//=> Invalid Date +``` + +### `minTime` + +Minimum allowed time: + +```js +import { minTime } from 'date-fns' + +const isValid = -8640000000000001 >= minTime +//=> false + +new Date(-8640000000000001) +//=> Invalid Date +``` diff --git a/node_modules/date-fns/docs/esm.md b/node_modules/date-fns/docs/esm.md new file mode 100644 index 00000000..a3fcfa88 --- /dev/null +++ b/node_modules/date-fns/docs/esm.md @@ -0,0 +1,24 @@ +# ECMAScript Modules + +**date-fns** v2.x provides support for +[ECMAScript Modules](http://www.ecma-international.org/ecma-262/6.0/#sec-modules) +that enables tree-shaking for bundlers, like [rollup.js](http://rollupjs.org) +and [webpack](https://webpack.js.org). + +If you have tree-shaking enabled in your bundler, just import functions normally: + +```javascript +import { format, parse } from 'date-fns' +import { enUS, eo } from 'date-fns/locale' +import { addDays, addHours } from 'date-fns/fp' +``` + +In TypeScript, now you can import individual functions in more idiomatic way: + +```typescript +// Before +import * as format from 'date-fns/format' + +// Now +import format from 'date-fns/format' +``` diff --git a/node_modules/date-fns/docs/fp.md b/node_modules/date-fns/docs/fp.md new file mode 100644 index 00000000..fc7ca560 --- /dev/null +++ b/node_modules/date-fns/docs/fp.md @@ -0,0 +1,70 @@ +# FP Guide + +**date-fns** v2.x provides [functional programming](https://en.wikipedia.org/wiki/Functional_programming) (FP) +friendly functions, like those in [lodash](https://github.com/lodash/lodash/wiki/FP-Guide), +that support [currying](https://en.wikipedia.org/wiki/Currying). + +## Table of Contents + +- [Usage](#usage) + +- [Using Function Composition](#using-function-composition) + +## Usage + +FP functions are provided via `'date-fns/fp'` submodule. + +Functions with options (`format`, `parse`, etc.) have two FP counterparts: +one that has the options object as its first argument and one that hasn't. +The name of the former has `WithOptions` added to the end of its name. + +In **date-fns'** FP functions, the order of arguments is reversed. + +```javascript +import { addYears, formatWithOptions } from 'date-fns/fp' +import { eo } from 'date-fns/locale' +import toUpper from 'lodash/fp/toUpper' // 'date-fns/fp' is compatible with 'lodash/fp'! + +// If FP function has not received enough arguments, it returns another function +const addFiveYears = addYears(5) + +// Several arguments can be curried at once +const dateToString = formatWithOptions({ locale: eo }, 'd MMMM yyyy') + +const dates = [ + new Date(2017, 0 /* Jan */, 1), + new Date(2017, 1 /* Feb */, 11), + new Date(2017, 6 /* Jul */, 2) +] + +const formattedDates = dates.map(addFiveYears).map(dateToString).map(toUpper) +//=> ['1 JANUARO 2022', '11 FEBRUARO 2022', '2 JULIO 2022'] +``` + +## Using Function Composition + +The main advantage of FP functions is support of functional-style +[function composing](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba). + +In the example above, you can compose `addFiveYears`, `dateToString` and `toUpper` into a single function: + +```javascript +const formattedDates = dates.map((date) => toUpper(dateToString(addFiveYears(date)))) +``` + +Or you can use `compose` function provided by [lodash](https://lodash.com) to do the same in more idiomatic way: + +```javascript +import compose from 'lodash/fp/compose' + +const formattedDates = dates.map(compose(toUpper, dateToString, addFiveYears)) +``` + +Or if you prefer natural direction of composing (as opposed to the computationally correct order), +you can use lodash' `flow` instead: + +```javascript +import flow from 'lodash/fp/flow' + +const formattedDates = dates.map(flow(addFiveYears, dateToString, toUpper)) +``` \ No newline at end of file diff --git a/node_modules/date-fns/docs/gettingStarted.md b/node_modules/date-fns/docs/gettingStarted.md new file mode 100644 index 00000000..6d8bb356 --- /dev/null +++ b/node_modules/date-fns/docs/gettingStarted.md @@ -0,0 +1,87 @@ +# Getting Started + +## Table of Contents + +- [Introduction](#introduction) + +- [Submodules](#submodules) + +- [Installation](#installation) + +## Introduction + +**date-fns** provides the most comprehensive, yet simple and consistent toolset +for manipulating **JavaScript dates** in **a browser** & **Node.js**. + +**date-fns** is like [lodash](https://lodash.com) for dates. It has +[**200+ functions** for all occasions](https://date-fns.org/docs/). + +```js +import { format, compareAsc } from 'date-fns' + +format(new Date(2014, 1, 11), 'MM/dd/yyyy') +//=> '02/11/2014' + +const dates = [ + new Date(1995, 6, 2), + new Date(1987, 1, 11), + new Date(1989, 6, 10), +] +dates.sort(compareAsc) +//=> [ +// Wed Feb 11 1987 00:00:00, +// Mon Jul 10 1989 00:00:00, +// Sun Jul 02 1995 00:00:00 +// ] +``` + +## Submodules + +**date-fns** includes some optional features as submodules in the npm package. +Here is the list of them, in order of nesting: + +- FP — functional programming-friendly variations of the functions. See [FP Guide](https://date-fns.org/docs/FP-Guide); + +- UTC (in development) — variations of the functions which calculate dates in UTC±00:00 timezone. + +The later submodules are also included inside the former if you want to use multiple features from the list. + +To use submodule features, [install the npm package](#npm) and then import a function from a submodule: + +```js +// The main submodule: +import addDays from 'date-fns/addDays' + +// FP variation: +import addDays from 'date-fns/fp/addDays' + +// UTC variation: +import addDays from 'date-fns/utc/addDays' + +// Both FP and UTC: +import addDays from 'date-fns/fp/utc/addDays' + +// With tree-shaking enabled: +import { addDays, format } from 'date-fns/fp' +``` + +## Installation + +The library is available as an [npm package](https://www.npmjs.com/package/date-fns). + +To install the package, run: + +```bash +npm install date-fns --save +# or +yarn add date-fns +``` + +Start using: + +```js +import { formatDistance, subDays } from 'date-fns' + +formatDistance(subDays(new Date(), 3), new Date(), { addSuffix: true }) +//=> "3 days ago" +``` diff --git a/node_modules/date-fns/docs/i18n.md b/node_modules/date-fns/docs/i18n.md new file mode 100644 index 00000000..4986e62c --- /dev/null +++ b/node_modules/date-fns/docs/i18n.md @@ -0,0 +1,92 @@ +# Internationalization + +## Table of Contents + +- [Usage](#usage) + +- [Adding New Language](#adding-new-language) + +## Usage + +There are just a few functions that support I18n: + +- [`format`](https://date-fns.org/docs/format) +- [`formatDistance`](https://date-fns.org/docs/formatDistance) +- [`formatDistanceStrict`](https://date-fns.org/docs/formatDistanceStrict) +- [`formatRelative`](https://date-fns.org/docs/formatRelative) + +To use a locale, you need to require it and then pass +as an option to a function: + +```js +import { formatDistance } from 'date-fns' +// Require Esperanto locale +import { eo } from 'date-fns/locale' + +const result = formatDistance( + new Date(2016, 7, 1), + new Date(2015, 0, 1), + {locale: eo} // Pass the locale as an option +) +//=> 'pli ol 1 jaro' +``` + +It might seem complicated to require and pass locales as options, +but unlike Moment.js which bloats your build with all the locales +by default date-fns forces developer to manually require locales when needed. +To make API simple, we encourage you to write tiny wrappers and use those +instead of original functions: + +```js +// app/_lib/format.js + +import { format } from 'date-fns' +import { enGB, eo, ru } from 'date-fns/locale' + +const locales = {enGB, eo, ru} + +// by providing a default string of 'PP' or any of its variants for `formatStr` +// it will format dates in whichever way is appropriate to the locale +export default function (date, formatStr = 'PP') { + return format(date, formatStr, { + locale: locales[window.__localeId__] // or global.__localeId__ + }) +} + +// Later: + +import format from 'app/_lib/format' + +window.__localeId__ = 'enGB' +format(friday13, 'EEEE d') +//=> 'Friday 13' + +window.__localeId__ = 'eo' +format(friday13, 'EEEE d') +//=> 'vendredo 13' + +// If the format string is omitted, it will take the default for the locale. +window.__localeId__ = 'enGB' +format(friday13) +//=> Jul 13, 2019 + +window.__localeId__ = 'eo' +format(friday13) +//=> 2019-jul-13 + +``` + +## Adding New Language + +At the moment there is no definitive guide, so if you feel brave enough, +use this quick guide: + +- First of all, [create an issue](https://github.com/date-fns/date-fns/issues/new?title=XXX%20language%20support) + so you won't overlap with others. +- A detailed explanation of how to [add a new locale](https://github.com/date-fns/date-fns/blob/master/docs/i18nContributionGuide.md#adding-a-new-locale). +- Use [English locale](https://github.com/date-fns/date-fns/tree/master/src/locale/en-US) + as the basis and then incrementally adjust the tests and the code. +- Directions on [adding a locale with the same language as another locale](https://github.com/date-fns/date-fns/blob/master/docs/i18nContributionGuide.md#creating-a-locale-with-the-same-language-as-another-locale). +- If you have questions or need guidance, leave a comment in the issue. + +Thank you for your support! diff --git a/node_modules/date-fns/docs/i18nContributionGuide.md b/node_modules/date-fns/docs/i18nContributionGuide.md new file mode 100644 index 00000000..ac520a7e --- /dev/null +++ b/node_modules/date-fns/docs/i18nContributionGuide.md @@ -0,0 +1,921 @@ +# I18n Contribution Guide + +## Table of Contents + +- [Adding a new locale](#adding-a-new-locale) + + - [Choosing a directory name for a locale](#choosing-a-directory-name-for-a-locale) + + - [index.js](#index.js) + + - [localize](#localize) + + - [localize.ordinalNumber](#localize.ordinalnumber) + + - [localize.era and using buildLocalizeFn function](#localize.era-and-using-buildlocalizefn-function) + + - [Formatting localizers](#formatting-localizers) + + - [localize.quarter](#localize.quarter) + + - [localize.month](#localize.month) + + - [localize.day](#localize.day) + + - [localize.dayPeriod](#localize.dayperiod) + + - [formatLong](#formatlong) + + - [formatLong.dateFormats](#formatlong.dateformats) + + - [formatLong.timeFormats](#formatlong.timeformats) + + - [formatLong.dateTimeFormats](#formatlong.datetimeformats) + + - [formatRelative](#formatrelative) + + - [match](#match) + + - [formatDistance](#formatdistance) + + - [Tests](#tests) + +- [Creating a locale with the same language as another locale](#creating-a-locale-with-the-same-language-as-another-locale) + +## Adding a new locale + +To add a new locale: + +- [Choose a directory name for it](#choosing-a-directory-name-for-a-locale). + +- Copy the content of an existing locale (e.g. `en-US`) into the newly created directory. + +- Replace the values in the content with yours file-by-file. + Use [CLDR data](https://www.unicode.org/cldr/charts/32/summary/root.html) + as a point of reference which values to choose. + +All locales contain a number of properties: + +- [`formatDistance`](#formatdistance) — distance localizer function used by `formatDistance` and `formatDistanceStrict`. +- [`formatLong`](#formatlong) — contains long date localizer functions used by `format` and `formatRelative`. +- [`formatRelative`](#formatrelative) — relative date localizer function used by `formatRelative`. +- [`localize`](#localize) — contains functions, which localize the various date values. Required by `format` and `formatRelative`. +- [`match`](#match) — contains functions to parse date values. Required by `parse`. +- [`options`](#indexjs) — contains the index of the first day of the week for functions such as `startOfWeek`, + and the value which determines the first week of the year + for functions like `setWeek`. + +### Choosing a directory name for a locale + +Use the four letter code for the directory name (e.g. `en-GB`), + +Use the two/three letter code: + +- if the language code and the country code are the same (e.g. `pt` instead of `pt-PT`). + +- if the language is used in only one country (e.g. `fil` instead of `fil-PH`). + +- if all countries who use the language +also use the same regional standards: the first day of the week, +the week numbering (see: https://en.wikipedia.org/wiki/Week#Week_numbering), +calendar date format (see: https://en.wikipedia.org/wiki/Calendar_date) +and date representation (see: https://en.wikipedia.org/wiki/Date_and_time_representation_by_country +and: https://en.wikipedia.org/wiki/Date_format_by_country) +(e.g. `ca` instead of `ca-ES` and `ca-AD`). + +### index.js + +Locale's `index.js` is where all the properties of the locale are combined in a single file, +documented in JSDoc format. + +```javascript +import formatDistance from './_lib/formatDistance/index.js' +import formatLong from './_lib/formatLong/index.js' +import formatRelative from './_lib/formatRelative/index.js' +import localize from './_lib/localize/index.js' +import match from './_lib/match/index.js' + +/** + * @type {Locale} + * @category Locales + * + * // Name of the locale. + * // Inside the parentheses - name of the country - if the locale uses the four letter code, e.g. en-US, fr-CA or pt-BR. + * @summary English locale (United States). + * + * // Name of the language (used by https://date-fns.org/ website) + * @language English + * + * // ISO 639-2 code. See the list here: + * // https://www.loc.gov/standards/iso639-2/php/code_list.php + * // Used by https://date-fns.org/ to detect the list of the countries that uses the language. + * @iso-639-2 eng + * + * // Authors of the locale (including anyone who corrected or fixed the locale) + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +var locale = { + code: 'en', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + // Index of the first day of the week. + // Sunday is 0, Monday is 1, Saturday is 6. + weekStartsOn: 0, + + // Nth of January which is always in the first week of the year. See: + // https://en.wikipedia.org/wiki/Week#Week_numbering + // http://www.pjh2.de/datetime/weeknumber/wnd.php?l=en + firstWeekContainsDate: 1 + } +} + +export default locale +``` + +### localize + +Put this object in `_lib/localize/index.js` inside your locale directory. +Contains a number of functions for used by `format`: + +```js +var localize = { + ordinalNumber, + era, + quarter, + month, + day, + dayPeriod +} + +export default localize +``` + +#### localize.ordinalNumber + +Function that takes a numeric argument and returns a string with ordinal number: + +```js +// In `en-US` locale: +function ordinalNumber (dirtyNumber, dirtyOptions) { + var number = Number(dirtyNumber) + + var rem100 = number % 100 + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'st' + case 2: + return number + 'nd' + case 3: + return number + 'rd' + } + } + return number + 'th' +} + +var localize = { + ordinalNumber: ordinalNumber, + // ... +} +``` + +If the form of the ordinal number depends on the grammatical case (or other grammatical structures), +use `options.unit` argument which could be one of the values 'year', 'quarter', 'month', 'week', +'date', 'dayOfYear', 'day', 'hour', 'minute' or 'second': + +```js +// In `ru` locale: +function ordinalNumber (dirtyNumber, dirtyOptions) { + var options = dirtyOptions || {} + var unit = String(options.unit) + var suffix + + if (unit === 'date') { + suffix = '-е' + } else if (unit === 'week' || unit === 'minute' || unit === 'second') { + suffix = '-я' + } else { + suffix = '-й' + } + + return dirtyNumber + suffix +} +``` + +#### localize.era and using buildLocalizeFn function + +Localizes a numeric era. Takes either 0 or 1 as the first argument. +As with many of the `localize` functions, they can be generated by built-in +`buildLocalizeFn` function. + +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Eras'](https://www.unicode.org/cldr/charts/32/summary/en.html#1771) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js' + +var eraValues = { + narrow: ['B', 'A'], + abbreviated: ['BC', 'AD'], + wide: ['Before Christ', 'Anno Domini'] +} + +var localize = { + // ... + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + // ... +} + +export default localize +``` + +General usage of the function: + +```js +var result = locale.localize.era(1, {width: 'abbreviated'}) +//=> 'AD' +``` + +If `width` is not provided or the `values` object does not contain values for the provided width, +`defaultWidth` will be used. `defaultWidth` should indicate the longest form of the localized value. +The same is true for all other `localize` functions. +`width` for `localize.era` function could be either 'narrow', 'abbreviated' or 'wide'. + +```js +var result = locale.localize.era(1, {width: 'foobar'}) +//=> 'Anno Domini' +``` + +#### Formatting localizers + +For some languages, there is a difference between "stand-alone" localizers and "formatting" localizers. +"Stand-alone" means that the resulting value should make grammatical sense without context. +"Formatting" means that the resulting value should be declined using the grammar rules of the language +as if the value was a part of a date. +For example, for languages with grammatical cases, the stand-alone month could be in the nominative case ("January"), +and the formatting month could decline as a part of the phrase "1st of January". +In this case, use parameters `formattingValues` and `defaultFormattingWidth` of `buildLocalizeFn` function. + +Any localizer could be stand-alone and formatting. +Check the CLDR chart for the unit to see if stand-alone and formatting values are different for a certain unit. +If there's no difference (usually it happens in languages without grammatical cases), +parameters `formattingValues` and `defaultFormattingWidth` are not needed. + +In this example, in Russian language a stand-alone month is in the nominative case ("январь"), +and formatting month is in the genitive case ("января" as in "1-е января"). Notice the different endings: + +```js +// In `ru` locale: +var monthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'март', 'апр.', 'май', 'июнь', 'июль', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'] +} +var formattingMonthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'мар.', 'апр.', 'мая', 'июн.', 'июл.', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'] +} + +var localize = { + // ... + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + // ... +} + +export default localize +``` + +#### localize.quarter + +Localizes a quarter. Takes 1, 2, 3 or 4 as the first argument. +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Quarters'](https://www.unicode.org/cldr/charts/32/summary/en.html#1781) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js' + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] +} + +var localize = { + // ... + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function (quarter) { + return Number(quarter) - 1 + } + }), + // ... +} + +export default localize +``` + +Note the usage of `argumentCallback` here. It converts the value passed into `localize.quarter` function +(one of 1, 2, 3 or 4) into the index of the values array inside `quarterValues` (one of 0, 1, 2 or 3). + +#### localize.month + +Localizes a month. Takes numbers between 0 (for January) and 11 (for December). +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Months'](https://www.unicode.org/cldr/charts/32/summary/en.html#1793) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js' + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] +} + +var localize = { + // ... + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + // ... +} + +export default localize +``` + +**NOTE**: in English, the names of days of the week and months are capitalized. +Check if the same is true for the language you're working on. +Generally, formatted dates should look like they are in the middle of a sentence, +e.g. in Spanish language the weekdays and months should be in the lowercase: + +```js +// In `es` locale: +var monthValues = { + narrow: ['E', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['ene.', 'feb.', 'mar.', 'abr.', 'may.', 'jun.', 'jul.', 'ago.', 'sep.', 'oct.', 'nov.', 'dic.'], + wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'] +} +``` + +`monthValues.narrow` are usually capitalized in every language. Check the CLDR chart for your language. + +#### localize.day + +Localizes a week day. Takes numbers between 0 (for Sunday) and 6 (for Saturday). +`width` could be either 'narrow', 'short', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Days'](https://www.unicode.org/cldr/charts/32/summary/en.html#1829) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js' + +var dayValues = { + narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], + short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], + abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] +} + +var localize = { + // ... + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + // ... +} + +export default localize +``` + +**NOTE**: the rules of capitalization from `localize.month` are also true for `localize.day`. + +#### localize.dayPeriod + +Localizes a certain day period. +Could take one of these strings as the argument: 'am', 'pm', 'midnight', 'noon', 'morning', 'afternoon', 'evening', 'night'. +`width` could be either 'narrow', 'abbreviated' or 'wide'. +From the CLDR chart, use ['Date & Time'/'Gregorian'/'Day periods'](https://www.unicode.org/cldr/charts/32/summary/en.html#1857) values. + +```js +// In `en-US` locale: +import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js' + +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + } +} + +var localize = { + // ... + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +} + +export default localize +``` + +### formatLong + +Put this object in `_lib/formatLong/index.js` inside your locale directory. +Locale date formats written in `format` token string format. +See the list of tokens: https://date-fns.org/docs/format +Use https://en.wikipedia.org/wiki/Date_format_by_country and CLDR chart as the reference. + +#### formatLong.dateFormats + +Use ['Date & Time'/'Gregorian'/'Formats - Standard - Date Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1901) values +from the CLDR chart as a reference. + +```js +// In `en-US` locale +import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js' + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +} + +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + // ... +} + +export default formatLong +``` + +`dateFormats.long` usually contains the longest form of writing the year, the month, and the day of the month. +Use ordinal day of the month ('do' token) where applicable (date-fns, unlike CLDR supports ordinal numbers). + +`dateFormats.full` contains the same but with the day of the week. + +`dateFormats.medium` contains the same values as `dateFormats.long`, but with short form of month and non-ordinal day. + +`dateFormats.short` usually contains a strictly numerical form of the date. +Pay attention to the order of units (big-, little- or middle-endian) + +#### formatLong.timeFormats + +Use ['Date & Time'/'Gregorian'/'Formats - Standard - Time Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1906) values +from the CLDR chart as a reference. + +Use some variation of 'h:mm aa' for 12-hour clock locales or 'H:mm' for 24-hour clock locales. Use the local time separator. + +```js +// In `en-US` locale +import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js' + +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +} + +var formatLong = { + // ... + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + // ... +} + +export default formatLong +``` + +#### formatLong.dateTimeFormats + +Use +['Date & Time'/'Gregorian'/'Formats - Standard - Date & Time Combination Formats'](https://www.unicode.org/cldr/charts/32/summary/en.html#1910) +values from the CLDR chart. + +```js +// In `en-US` locale +import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js' + +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +} + +var formatLong = { + // ... + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +} + +export default formatLong +``` + +'{{date}}' and '{{time}}' from the strings will be replaced with the date and time respectively. + +### formatRelative + +Put this function in `_lib/formatRelative/index.js` inside your locale directory. +Relative date formats written in `format` token string format. +See the list of tokens: https://date-fns.org/docs/format. +Has to process `lastWeek`, `yesterday`, `today`, `tomorrow`, `nextWeek` and `other` tokens. + +```javascript +// In `en-US` locale +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: 'P' +} + +export default function formatRelative (token, date, baseDate, options) { + return formatRelativeLocale[token] +} +``` + +You can use `date` and `baseDate` supplied to the function for the difficult situations +(e.g. grammatical genders and cases of the days of the week) +Both `date` and `baseDate` are converted to UTC timezone, which means +that you should use UTC methods to take the date values (i.e. `date.getUTCDay()` instead of `date.getDay()`). +You can use UTC functions from `src/_lib` in date-fns root directory if they are available. +Don't forget to pass `options` object to them! +Example is below. Note the different grammatical case for weekdays (accusative instead of nominative) +and declension of word "прошлый" which depends on the grammatical gender of the weekday: + +```javascript +// In `ru` locale +import isSameUTCWeek from '../../../../_lib/isSameUTCWeek/index.js' + +var accusativeWeekdays = ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу'] + +function lastWeek (day) { + var weekday = accusativeWeekdays[day] + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p" + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p" + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p" + } +} + +function thisWeek (day) { + // ... +} + +function nextWeek (day) { + // ... +} + +var formatRelativeLocale = { + lastWeek: function (date, baseDate, options) { + var day = date.getUTCDay() + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day) + } else { + return lastWeek(day) + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function (date, baseDate, options) { + var day = date.getUTCDay() + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day) + } else { + return nextWeek(day) + } + }, + other: 'P' +} + +export default function formatRelative (token, date, baseDate, options) { + var format = formatRelativeLocale[token] + + if (typeof format === 'function') { + return format(date, baseDate, options) + } + + return format +} +``` + +### match + +Put this object in `_lib/match/index.js` inside your locale directory. +Contains the functions used by `parse` to parse a localized value: + +```js +// In `en-US` locale: +import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index.js' +import buildMatchFn from '../../../_lib/buildMatchFn/index.js' + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i +var parseOrdinalNumberPattern = /\d+/i + +var matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i +} +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +} + +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i +} +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +} + +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i +} +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +} + +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +} +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +} + +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +} +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +} + +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function (value) { + return parseInt(value, 10) + } + }), + + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function (index) { + return index + 1 + } + }), + + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +} + +export default match +``` + +These functions mirror those in `localize`. + +For `matchPatterns` the patterns should match the whole meaningful word for the parsed value +(which will be cut from the string in the process of parsing). +`parsePatterns` contains patterns to detect one of the values from the result of `matchPatterns` +Note that the patterns for `parsePatterns` don't necessary contain the whole word: + +```javascript +// In `en-US` locale: +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +} +``` + +but only the bare minimum to parse the value. + +Also note that all patterns have "case-insensitive" flags +to match as much arbitrary user input as possible. For the same reason, try to match +any variation of diacritical marks: + +```javascript +// In `eo` locale: +var matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i +} +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i] +} +``` + +Here, for the word "dimanĉo" the functions will match also "dimancxo", "dimancho" +and even grammatically incorrect "dimanco". + +Try to match any possible way of writing the word. Don't forget the grammatical cases: + +```javascript +// In `ru` locale: +var matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i +} +``` + +and variations of short weekdays and months: + +```javascript +// In `ru` locale: +var matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i +} +``` + +(here, the `abbreviated` pattern will match both `вск` and `вос` as the short of `воскресенье` {Sunday}) + +In `match.ordinalNumber` match ordinal numbers as well as non-ordinal numbers: + +```javascript +// In `en-US` locale: +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i +``` + +Don't forget the grammatical genders: + +```javascript +// In `ru` locale: +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i +``` + +### formatDistance + +`formatDistance` property of locale is a function which takes three arguments: +token passed by date-fns' `formatDistance` function (e.g. 'lessThanXMinutes'), +a number of units to be displayed by the function +(e.g. `locale.formatDistance('lessThanXMinutes', 5)` would display localized 'less than 5 minutes') +and object with options. + +Your best guess is to copy `formatDistance` property from another locale and change the values. + +### Tests + +To test locales we use snapshots. See [`en-US` snapshot](https://github.com/date-fns/date-fns/blob/master/src/locale/en-US/snapshot.md) for an example. + +To generate snapshots, run `yarn locale-snapshots`. The snapshot for the locale +you're working on will appear in the root locale directory (e.g. `src/locales/ru/snapshot.md`). + +Once you are done with the locale, generate the snapshot and review the output values. + +## Creating a locale with the same language as another locale + +Import the locale properties already implemented for the language, +but replace unique properties. + +```javascript +// Same as en-US +import formatDistance from '../en-US/_lib/formatDistance/index.js' +import formatRelative from '../en-US/_lib/formatRelative/index.js' +import localize from '../en-US/_lib/localize/index.js' +import match from '../en-US/_lib/match/index.js' + +// Unique for en-GB +import formatLong from './_lib/formatLong/index.js' + +/** + * @type {Locale} + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author John Doe [@example]{@link https://github.com/example} + */ +var locale = { + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + + // Unique for en-GB + options: { + weekStartsOn: 1, + firstWeekContainsDate: 4 + } +} + +export default locale +``` diff --git a/node_modules/date-fns/docs/index.js b/node_modules/date-fns/docs/index.js new file mode 100644 index 00000000..bd8ee265 --- /dev/null +++ b/node_modules/date-fns/docs/index.js @@ -0,0 +1,147 @@ +const path = require('path') + +module.exports = { + groups: [ + 'General', + 'Types', + 'Common Helpers', + 'Conversion Helpers', + 'Interval Helpers', + 'Timestamp Helpers', + 'Millisecond Helpers', + 'Second Helpers', + 'Minute Helpers', + 'Hour Helpers', + 'Day Helpers', + 'Weekday Helpers', + 'Week Helpers', + 'ISO Week Helpers', + 'Month Helpers', + 'Quarter Helpers', + 'Year Helpers', + 'ISO Week-Numbering Year Helpers', + 'Decade Helpers', + ], + + staticDocs: [ + { + type: 'markdown', + urlId: 'Getting-Started', + category: 'General', + title: 'Getting Started', + description: 'Introduction & installation instructions', + path: path.join(__dirname, 'gettingStarted.md'), + }, + { + type: 'markdown', + urlId: 'Change-Log', + category: 'General', + title: 'Change Log', + description: 'Changes for each version of the library', + path: path.join(__dirname, '..', 'CHANGELOG.md'), + }, + { + type: 'markdown', + urlId: 'Contributing', + category: 'General', + title: 'Contributing', + description: 'Contribution manual', + path: path.join(__dirname, '..', 'CONTRIBUTING.md'), + }, + { + type: 'markdown', + urlId: 'Constants', + category: 'General', + title: 'Constants', + description: 'Useful constants', + path: path.join(__dirname, 'constants.md'), + }, + { + type: 'markdown', + urlId: 'I18n', + category: 'General', + title: 'I18n', + description: 'Internationalization', + path: path.join(__dirname, 'i18n.md'), + }, + { + type: 'markdown', + urlId: 'I18n-Contribution-Guide', + category: 'General', + title: 'I18n Contribution Guide', + description: 'Locales manual', + path: path.join(__dirname, 'i18nContributionGuide.md'), + }, + { + type: 'markdown', + urlId: 'Time-Zones', + category: 'General', + title: 'Time Zones', + description: 'Time zone functions', + path: path.join(__dirname, 'timeZones.md'), + }, + { + type: 'markdown', + urlId: 'ECMAScript-Modules', + category: 'General', + title: 'ECMAScript Modules', + description: 'Tree-shaking guide', + path: path.join(__dirname, 'esm.md'), + }, + { + type: 'markdown', + urlId: 'webpack', + category: 'General', + title: 'webpack', + description: 'Using date-fns with webpack', + path: path.join(__dirname, 'webpack.md'), + }, + { + type: 'markdown', + urlId: 'FP-Guide', + category: 'General', + title: 'FP Guide', + description: 'Curried functions', + path: path.join(__dirname, 'fp.md'), + }, + { + type: 'markdown', + urlId: 'Unicode-Tokens', + category: 'General', + title: 'Unicode Tokens', + description: 'Usage of the Unicode tokens in parse and format', + path: path.join(__dirname, 'unicodeTokens.md'), + }, + { + type: 'markdown', + urlId: 'Upgrade-Guide', + category: 'General', + title: 'Upgrade guide', + description: 'Changes from v1 to v2', + path: path.join(__dirname, 'upgradeGuide.md'), + }, + { + type: 'markdown', + urlId: 'License', + category: 'General', + title: 'License', + description: 'MIT © Sasha Koss', + path: path.join(__dirname, '..', 'LICENSE.md'), + }, + ], + + sharedDocs: [ + { + fullPath: path.join(__dirname, 'Interval.js'), + }, + { + fullPath: path.join(__dirname, 'Locale.js'), + }, + { + fullPath: path.join(__dirname, 'Duration.js'), + }, + { + fullPath: path.join(__dirname, 'Day.js'), + }, + ], +} diff --git a/node_modules/date-fns/docs/logo.svg b/node_modules/date-fns/docs/logo.svg new file mode 100644 index 00000000..212e227b --- /dev/null +++ b/node_modules/date-fns/docs/logo.svg @@ -0,0 +1,26 @@ + + + + Slice 1 + Created with Sketch. + + + + + \ No newline at end of file diff --git a/node_modules/date-fns/docs/logotype.svg b/node_modules/date-fns/docs/logotype.svg new file mode 100644 index 00000000..8b2a3a46 --- /dev/null +++ b/node_modules/date-fns/docs/logotype.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/date-fns/docs/release.md b/node_modules/date-fns/docs/release.md new file mode 100644 index 00000000..efa02d82 --- /dev/null +++ b/node_modules/date-fns/docs/release.md @@ -0,0 +1,19 @@ +# Releasing date-fns + +1. First, make sure that the library is built by running `./scripts/build/build.sh` and committing and pushing any change you would have. + +2. Then add the changelog entry generated by `yarn ts-node scripts/release/buildChangelog.ts` to (CHANGELOG.md)[../CHANGELOG.md]. Make sure that the output is valid Markdown and fix if there're any errors. Commit and push the file. + +3. Using the version that the changelog script generated, run the command: + + ```bash + env VERSION="vX.XX.X" APP_ENV="production" GOOGLE_APPLICATION_CREDENTIALS="secrets/production/key.json" ./scripts/release/release.sh + ``` + + The script will change `package.json`. **Do not commit the change, and reset it instead**. + +4. Now when the package is published, go to [GitHub Releases](https://github.com/date-fns/date-fns/releases) and draft a new version using the changelog entry you generated earlier. + +5. Finally, write an announce tweet using the created GitHub release as the tweet link. + +You're done, great job! diff --git a/node_modules/date-fns/docs/timeZones.md b/node_modules/date-fns/docs/timeZones.md new file mode 100644 index 00000000..54eb90b6 --- /dev/null +++ b/node_modules/date-fns/docs/timeZones.md @@ -0,0 +1,63 @@ +# Time Zones + +## Table of Contents + +- [Overview](#overview) + +- [`date-fns-tz`](#date-fns-tz) + +## Overview + +Working with UTC or ISO date strings is easy, and so is working with JS dates when all times +are displayed in a user's local time in the browser. The difficulty comes when working with another +time zone's local time, other than the current system's, like showing the local time of an event in LA +at 8pm PST on a Node server in Europe or a user's machine set to EST. + +In this case there are two relevant pieces of information: + +- a fixed moment in time in the form of a timestamp, UTC or ISO date string, and +- the time zone descriptor, usually an offset or IANA time zone name (e.g. `America/Los_Angeles`). + +Libraries like Moment and Luxon, which provide their own date time classes, manage these timestamp and time +zone values internally. Since `date-fns` always returns a plain JS Date, which implicitly has the current +system's time zone, helper functions are needed for handling common time zone related use cases. + +## [`date-fns-tz`](https://www.npmjs.com/package/date-fns-tz) + +Dependency free IANA time zone support is implemented via the +[Intl API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) to keep +actual time zone data out of code bundles. Modern browsers all support the +[necessary features](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat#Browser_compatibility), +and for those that don't a [polyfill](https://github.com/yahoo/date-time-format-timezone) can be used. + +Functions are provided for converting to and from a Date instance which will have the internal UTC time +adjusted so it prints to the correct time value in the associated time zone, regardless of the current +system time zone. The `date-fns` `format` function is extended with support for the `z...zzzz` tokens to +format long and short time zone names. + +Compatible with `date-fns` version 2 + +License: MIT + +### Synopsis + +```js +const { zonedTimeToUtc, utcToZonedTime, format } = require('date-fns-tz') + +// Set the date to "2018-09-01T16:01:36.386Z" +const utcDate = zonedTimeToUtc('2018-09-01 18:01:36.386', 'Europe/Berlin') + +// Obtain a Date instance that will render the equivalent Berlin time for the UTC date +const date = new Date('2018-09-01T16:01:36.386Z') +const timeZone = 'Europe/Berlin' +const zonedDate = utcToZonedTime(date, timeZone) +// zonedDate could be used to initialize a date picker or display the formatted local date/time + +// Set the output to "1.9.2018 18:01:36.386 GMT+02:00 (CEST)" +const pattern = 'd.M.yyyy HH:mm:ss.SSS \'GMT\' XXX (z)' +const output = format(zonedDate, pattern, { timeZone: 'Europe/Berlin' }) +``` + +### Links + +- [API / Usage Scenarios](https://github.com/marnusw/date-fns-tz#time-zone-helpers) diff --git a/node_modules/date-fns/docs/unicodeTokens.md b/node_modules/date-fns/docs/unicodeTokens.md new file mode 100644 index 00000000..5daf2829 --- /dev/null +++ b/node_modules/date-fns/docs/unicodeTokens.md @@ -0,0 +1,54 @@ +# Unicode Tokens + +Starting with v2, `format` and `parse` use [Unicode tokens]. + +The tokens are different from Moment.js and other libraries that opted to use +custom formatting rules. While usage of a standard ensures compatibility and +the future of the library, it causes confusion that this document intends +to resolve. + +## Popular mistakes + +There are 4 tokens that cause most of the confusion: + +- `D` and `DD` that represent the day of a year (1, 2, ..., 365, 366) + are often confused with `d` and `dd` that represent the day of a month + (1, 2, ..., 31). + +- `YY` and `YYYY` that represent the local week-numbering year (44, 01, 00, 17) + are often confused with `yy` and `yyyy` that represent the calendar year. + +```js +// ❌ Wrong! +format(new Date(), 'YYYY-MM-DD') +//=> 2018-10-283 + +// ✅ Correct +format(new Date(), 'yyyy-MM-dd') +//=> 2018-10-10 + +// ❌ Wrong! +parse('11.02.87', 'D.MM.YY', new Date()).toString() +//=> 'Sat Jan 11 1986 00:00:00 GMT+0200 (EET)' + +// ✅ Correct +parse('11.02.87', 'd.MM.yy', new Date()).toString() +//=> 'Wed Feb 11 1987 00:00:00 GMT+0200 (EET)' +``` + +To help with the issue, `format` and `parse` functions won't accept +these tokens without `useAdditionalDayOfYearTokens` option for `D` and `DD` and +`useAdditionalWeekYearTokens` options for `YY` and `YYYY`: + +```js +format(new Date(), 'D', { useAdditionalDayOfYearTokens: true }) +//=> '283' + +parse('365+1987', 'DD+YYYY', new Date(), { + useAdditionalDayOfYearTokens: true, + useAdditionalWeekYearTokens: true +}).toString() +//=> 'Wed Dec 31 1986 00:00:00 GMT+0200 (EET)' +``` + +[Unicode tokens]: https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table diff --git a/node_modules/date-fns/docs/upgradeGuide.md b/node_modules/date-fns/docs/upgradeGuide.md new file mode 100644 index 00000000..08e0337c --- /dev/null +++ b/node_modules/date-fns/docs/upgradeGuide.md @@ -0,0 +1,118 @@ +# v2 Upgrade Guide + +## Common changes + +This page covers a few of the most common problems people face when updating from v1 to v2. For a more detailed list of changes, look at the [change log for version 2.0.0](https://date-fns.org/docs/Change-Log). + +### Camel case naming schema + +Function submodules now use camelCase naming schema: + +```javascript +// Before v2.0.0 +import differenceInCalendarISOYears from 'date-fns/difference_in_calendar_iso_years' + +// v2.0.0 onward +import differenceInCalendarISOYears from 'date-fns/differenceInCalendarISOYears' +``` + +### New formatting tokens + +Starting with v2 `format` and `parse` uses [Unicode tokens]. + +See [Unicode Tokens doc](https://date-fns.org/docs/Unicode-Tokens) for more details. + +### String arguments + +Functions now don't accept strings as date arguments. Strings should +be parsed using `parseISO` (ISO 8601) or `parse`. + +See [this post](https://blog.date-fns.org/post/we-cut-date-fns-v2-minimal-build-size-down-to-300-bytes-and-now-its-the-smallest-date-library-18f2nvh2z0yal) for more details. + +```javascript +// Before v2.0.0 +addDays('2016-01-01', 1) + +// v2.0.0 onward +addDays(parseISO('2016-01-01'), 1) +``` + +### Arguments conversion + +All functions now implicitly convert arguments by following rules: + +| | date | number | string | boolean | +| --------- | ------------ | ------ | ----------- | ------- | +| 0 | new Date(0) | 0 | '0' | false | +| '0' | Invalid Date | 0 | '0' | false | +| 1 | new Date(1) | 1 | '1' | true | +| '1' | Invalid Date | 1 | '1' | true | +| true | Invalid Date | NaN | 'true' | true | +| false | Invalid Date | NaN | 'false' | false | +| null | Invalid Date | NaN | 'null' | false | +| undefined | Invalid Date | NaN | 'undefined' | false | +| NaN | Invalid Date | NaN | 'NaN' | false | + +Notes: + +- as before, arguments expected to be `Date` are converted to `Date` using _date-fns'_ `toDate` function; +- arguments expected to be numbers are converted to integer numbers using our custom `toInteger` implementation + (see [#765](https://github.com/date-fns/date-fns/pull/765)); +- arguments expected to be strings are converted to strings using JavaScript's `String` function; +- arguments expected to be booleans are converted to boolean using JavaScript's `Boolean` function. + +`null` and `undefined` passed to optional arguments (i.e. properties of `options` argument) +are ignored as if no argument was passed. + +If any argument is invalid (i.e. `NaN` for numbers and `Invalid Date` for dates), +an invalid value will be returned: + +- `false` for functions that return booleans (expect `isValid`); +- `Invalid Date` for functions that return dates; +- `NaN` for functions that return numbers; +- and `String('Invalid Date')` for functions that return strings. + +See tests and PRs [#460](https://github.com/date-fns/date-fns/pull/460) and +[#765](https://github.com/date-fns/date-fns/pull/765) for exact behavior. + +### `null` + +`null` now is not a valid date. `isValid(null)` returns `false`; +`toDate(null)` returns an invalid date. Since `toDate` is used internally +by all the functions, operations over `null` will also return an invalid date. +[See #537](https://github.com/date-fns/date-fns/issues/537) for the reasoning. + +### `RangeError` + +Functions now throw `RangeError` if optional values passed to `options` +are not `undefined` or have expected values. +This change is introduced for consistency with ECMAScript standard library which does the same. + +### `TypeError` + +All functions now check if the passed number of arguments is less +than the number of required arguments and throw `TypeError` exception if so. + +### UMD/CDN + +The Bower & UMD/CDN package versions are no longer supported. + +### New locale format + +See [docs/Locale](https://date-fns.org/docs/Locale). + +Locales renamed: + +- `en` → `en-US` +- `zh_cn` → `zh-CN` +- `zh_tw` → `zh-TW` + +```javascript +// Before v2.0.0 +import locale from 'date-fns/locale/zh_cn' + +// v2.0.0 onward +import locale from 'date-fns/locale/zh-CN' +``` + +[unicode tokens]: https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table diff --git a/node_modules/date-fns/docs/webpack.md b/node_modules/date-fns/docs/webpack.md new file mode 100644 index 00000000..37b043de --- /dev/null +++ b/node_modules/date-fns/docs/webpack.md @@ -0,0 +1,48 @@ +# webpack + +## Removing unused languages from dynamic import + +If a locale is imported dynamically, then all locales from date-fns are loaded by webpack into a bundle (~160kb) or split across the chunks. This prolongs the build process and increases the amount of space taken. However, it is possible to use webpack to trim down languages using [ContextReplacementPlugin]. + +Let's assume that we have a single point in which supported locales are present: + +`config.js`: + +```js +// `see date-fns/src/locale` for available locales +export const supportedLocales = ['en-US', 'de', 'pl', 'it'] +``` + +We could also have a function that formats the date: + +```js +const getLocale = (locale) => import(`date-fns/locale/${locale}/index.js`) // or require() if using CommonJS + +const formatDate = (date, formatStyle, locale) => { + return format(date, formatStyle, { + locale: getLocale(locale), + }) +} +``` + +In order to exclude unused languages we can use webpacks [ContextReplacementPlugin]. + +`webpack.config.js`: + +```js +import webpack from 'webpack' +import { supportedLocales } from './config.js' + +export default const config = { + plugins: [ + new webpack.ContextReplacementPlugin( + /^date-fns[/\\]locale$/, + new RegExp(`\\.[/\\\\](${supportedLocales.join('|')})[/\\\\]index\\.js$`) + ) + ] +} +``` + +This results in a language bundle of ~23kb . + +[contextreplacementplugin]: https://webpack.js.org/plugins/context-replacement-plugin/ diff --git a/node_modules/date-fns/eachDayOfInterval/index.d.ts b/node_modules/date-fns/eachDayOfInterval/index.d.ts new file mode 100644 index 00000000..80fc0dc7 --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfInterval } from 'date-fns' +export default eachDayOfInterval diff --git a/node_modules/date-fns/eachDayOfInterval/index.js b/node_modules/date-fns/eachDayOfInterval/index.js new file mode 100644 index 00000000..a3c1dcb7 --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/index.js @@ -0,0 +1,73 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachDayOfInterval; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. + * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.step` must be a number greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ +function eachDayOfInterval(dirtyInterval, options) { + var _options$step; + + (0, _index2.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index.default)(interval.start); + var endDate = (0, _index.default)(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push((0, _index.default)(currentDate)); + currentDate.setDate(currentDate.getDate() + step); + currentDate.setHours(0, 0, 0, 0); + } + + return dates; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachDayOfInterval/index.js.flow b/node_modules/date-fns/eachDayOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/eachDayOfInterval/package.json b/node_modules/date-fns/eachDayOfInterval/package.json new file mode 100644 index 00000000..e519978a --- /dev/null +++ b/node_modules/date-fns/eachDayOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachDayOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachHourOfInterval/index.d.ts b/node_modules/date-fns/eachHourOfInterval/index.d.ts new file mode 100644 index 00000000..4c3addd3 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfInterval } from 'date-fns' +export default eachHourOfInterval diff --git a/node_modules/date-fns/eachHourOfInterval/index.js b/node_modules/date-fns/eachHourOfInterval/index.js new file mode 100644 index 00000000..912b8192 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/index.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachHourOfInterval; + +var _index = _interopRequireDefault(require("../addHours/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. + * @returns {Date[]} the array with starts of hours from the hour of the interval start to the hour of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.step` must be a number greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }) + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +function eachHourOfInterval(dirtyInterval, options) { + var _options$step; + + (0, _index3.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index2.default)(interval.start); + var endDate = (0, _index2.default)(interval.end); + var startTime = startDate.getTime(); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startTime <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setMinutes(0, 0, 0); + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push((0, _index2.default)(currentDate)); + currentDate = (0, _index.default)(currentDate, step); + } + + return dates; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachHourOfInterval/index.js.flow b/node_modules/date-fns/eachHourOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/eachHourOfInterval/package.json b/node_modules/date-fns/eachHourOfInterval/package.json new file mode 100644 index 00000000..4e804cba --- /dev/null +++ b/node_modules/date-fns/eachHourOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachHourOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachMinuteOfInterval/index.d.ts b/node_modules/date-fns/eachMinuteOfInterval/index.d.ts new file mode 100644 index 00000000..f96a5e9a --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfInterval } from 'date-fns' +export default eachMinuteOfInterval diff --git a/node_modules/date-fns/eachMinuteOfInterval/index.js b/node_modules/date-fns/eachMinuteOfInterval/index.js new file mode 100644 index 00000000..933761cc --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval/index.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachMinuteOfInterval; + +var _index = _interopRequireDefault(require("../addMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfMinute/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The step must be equal to or greater than 1 + * @throws {TypeError} 1 argument required + * @returns {Date[]} the array with starts of minutes from the minute of the interval start to the minute of the interval end + * @throws {RangeError} `options.step` must be a number equal to or greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +function eachMinuteOfInterval(interval, options) { + var _options$step; + + (0, _index4.default)(1, arguments); + var startDate = (0, _index3.default)((0, _index2.default)(interval.start)); + var endDate = (0, _index2.default)(interval.end); + var startTime = startDate.getTime(); + var endTime = endDate.getTime(); + + if (startTime >= endTime) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number equal to or greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push((0, _index2.default)(currentDate)); + currentDate = (0, _index.default)(currentDate, step); + } + + return dates; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachMinuteOfInterval/index.js.flow b/node_modules/date-fns/eachMinuteOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/eachMinuteOfInterval/package.json b/node_modules/date-fns/eachMinuteOfInterval/package.json new file mode 100644 index 00000000..5dde444a --- /dev/null +++ b/node_modules/date-fns/eachMinuteOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachMinuteOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachMonthOfInterval/index.d.ts b/node_modules/date-fns/eachMonthOfInterval/index.d.ts new file mode 100644 index 00000000..bda4a186 --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMonthOfInterval } from 'date-fns' +export default eachMonthOfInterval diff --git a/node_modules/date-fns/eachMonthOfInterval/index.js b/node_modules/date-fns/eachMonthOfInterval/index.js new file mode 100644 index 00000000..ec643de8 --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval/index.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachMonthOfInterval; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ +function eachMonthOfInterval(dirtyInterval) { + (0, _index2.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index.default)(interval.start); + var endDate = (0, _index.default)(interval.end); + var endTime = endDate.getTime(); + var dates = []; // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + currentDate.setDate(1); + + while (currentDate.getTime() <= endTime) { + dates.push((0, _index.default)(currentDate)); + currentDate.setMonth(currentDate.getMonth() + 1); + } + + return dates; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachMonthOfInterval/index.js.flow b/node_modules/date-fns/eachMonthOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/eachMonthOfInterval/package.json b/node_modules/date-fns/eachMonthOfInterval/package.json new file mode 100644 index 00000000..69504bf2 --- /dev/null +++ b/node_modules/date-fns/eachMonthOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachMonthOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachQuarterOfInterval/index.d.ts b/node_modules/date-fns/eachQuarterOfInterval/index.d.ts new file mode 100644 index 00000000..879b5485 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachQuarterOfInterval } from 'date-fns' +export default eachQuarterOfInterval diff --git a/node_modules/date-fns/eachQuarterOfInterval/index.js b/node_modules/date-fns/eachQuarterOfInterval/index.js new file mode 100644 index 00000000..ade91eaf --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval/index.js @@ -0,0 +1,69 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachQuarterOfInterval; + +var _index = _interopRequireDefault(require("../addQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfQuarter/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ +function eachQuarterOfInterval(dirtyInterval) { + (0, _index4.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index3.default)(interval.start); + var endDate = (0, _index3.default)(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var startDateQuarter = (0, _index2.default)(startDate); + var endDateQuarter = (0, _index2.default)(endDate); + endTime = endDateQuarter.getTime(); + var quarters = []; + var currentQuarter = startDateQuarter; + + while (currentQuarter.getTime() <= endTime) { + quarters.push((0, _index3.default)(currentQuarter)); + currentQuarter = (0, _index.default)(currentQuarter, 1); + } + + return quarters; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachQuarterOfInterval/index.js.flow b/node_modules/date-fns/eachQuarterOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/eachQuarterOfInterval/package.json b/node_modules/date-fns/eachQuarterOfInterval/package.json new file mode 100644 index 00000000..73d61da1 --- /dev/null +++ b/node_modules/date-fns/eachQuarterOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachQuarterOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekOfInterval/index.d.ts b/node_modules/date-fns/eachWeekOfInterval/index.d.ts new file mode 100644 index 00000000..24d1a8ae --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfInterval } from 'date-fns' +export default eachWeekOfInterval diff --git a/node_modules/date-fns/eachWeekOfInterval/index.js b/node_modules/date-fns/eachWeekOfInterval/index.js new file mode 100644 index 00000000..4c159faa --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/index.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachWeekOfInterval; + +var _index = _interopRequireDefault(require("../addWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ +function eachWeekOfInterval(dirtyInterval, options) { + (0, _index4.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index3.default)(interval.start); + var endDate = (0, _index3.default)(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var startDateWeek = (0, _index2.default)(startDate, options); + var endDateWeek = (0, _index2.default)(endDate, options); // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet + + startDateWeek.setHours(15); + endDateWeek.setHours(15); + endTime = endDateWeek.getTime(); + var weeks = []; + var currentWeek = startDateWeek; + + while (currentWeek.getTime() <= endTime) { + currentWeek.setHours(0); + weeks.push((0, _index3.default)(currentWeek)); + currentWeek = (0, _index.default)(currentWeek, 1); + currentWeek.setHours(15); + } + + return weeks; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekOfInterval/index.js.flow b/node_modules/date-fns/eachWeekOfInterval/index.js.flow new file mode 100644 index 00000000..bc8cd5a0 --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date[] diff --git a/node_modules/date-fns/eachWeekOfInterval/package.json b/node_modules/date-fns/eachWeekOfInterval/package.json new file mode 100644 index 00000000..eac3c543 --- /dev/null +++ b/node_modules/date-fns/eachWeekOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachWeekOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfInterval/index.d.ts b/node_modules/date-fns/eachWeekendOfInterval/index.d.ts new file mode 100644 index 00000000..c0b3fea2 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfInterval } from 'date-fns' +export default eachWeekendOfInterval diff --git a/node_modules/date-fns/eachWeekendOfInterval/index.js b/node_modules/date-fns/eachWeekendOfInterval/index.js new file mode 100644 index 00000000..a7223a70 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval/index.js @@ -0,0 +1,63 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachWeekendOfInterval; + +var _index = _interopRequireDefault(require("../eachDayOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../isSunday/index.js")); + +var _index3 = _interopRequireDefault(require("../isWeekend/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @param {Interval} interval - the given interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ +function eachWeekendOfInterval(interval) { + (0, _index4.default)(1, arguments); + var dateInterval = (0, _index.default)(interval); + var weekends = []; + var index = 0; + + while (index < dateInterval.length) { + var date = dateInterval[index++]; + + if ((0, _index3.default)(date)) { + weekends.push(date); + if ((0, _index2.default)(date)) index = index + 5; + } + } + + return weekends; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfInterval/index.js.flow b/node_modules/date-fns/eachWeekendOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/eachWeekendOfInterval/package.json b/node_modules/date-fns/eachWeekendOfInterval/package.json new file mode 100644 index 00000000..66648a9e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachWeekendOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfMonth/index.d.ts b/node_modules/date-fns/eachWeekendOfMonth/index.d.ts new file mode 100644 index 00000000..cb01c45e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfMonth } from 'date-fns' +export default eachWeekendOfMonth diff --git a/node_modules/date-fns/eachWeekendOfMonth/index.js b/node_modules/date-fns/eachWeekendOfMonth/index.js new file mode 100644 index 00000000..429d2c2a --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth/index.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachWeekendOfMonth; + +var _index = _interopRequireDefault(require("../eachWeekendOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfMonth/index.js")); + +var _index3 = _interopRequireDefault(require("../endOfMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @param {Date|Number} date - the given month + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The passed date is invalid + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ +function eachWeekendOfMonth(dirtyDate) { + (0, _index4.default)(1, arguments); + var startDate = (0, _index2.default)(dirtyDate); + if (isNaN(startDate.getTime())) throw new RangeError('The passed date is invalid'); + var endDate = (0, _index3.default)(dirtyDate); + return (0, _index.default)({ + start: startDate, + end: endDate + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfMonth/index.js.flow b/node_modules/date-fns/eachWeekendOfMonth/index.js.flow new file mode 100644 index 00000000..7073332e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date[] diff --git a/node_modules/date-fns/eachWeekendOfMonth/package.json b/node_modules/date-fns/eachWeekendOfMonth/package.json new file mode 100644 index 00000000..44b44a05 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachWeekendOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfYear/index.d.ts b/node_modules/date-fns/eachWeekendOfYear/index.d.ts new file mode 100644 index 00000000..7cda9d16 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfYear } from 'date-fns' +export default eachWeekendOfYear diff --git a/node_modules/date-fns/eachWeekendOfYear/index.js b/node_modules/date-fns/eachWeekendOfYear/index.js new file mode 100644 index 00000000..f70164a5 --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/index.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachWeekendOfYear; + +var _index = _interopRequireDefault(require("../eachWeekendOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../endOfYear/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfYear/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @param {Date|Number} date - the given year + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The passed date is invalid + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ +function eachWeekendOfYear(dirtyDate) { + (0, _index4.default)(1, arguments); + var startDate = (0, _index3.default)(dirtyDate); + var endDate = (0, _index2.default)(dirtyDate); + return (0, _index.default)({ + start: startDate, + end: endDate + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachWeekendOfYear/index.js.flow b/node_modules/date-fns/eachWeekendOfYear/index.js.flow new file mode 100644 index 00000000..7073332e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date[] diff --git a/node_modules/date-fns/eachWeekendOfYear/package.json b/node_modules/date-fns/eachWeekendOfYear/package.json new file mode 100644 index 00000000..0811f25e --- /dev/null +++ b/node_modules/date-fns/eachWeekendOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachWeekendOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/eachYearOfInterval/index.d.ts b/node_modules/date-fns/eachYearOfInterval/index.d.ts new file mode 100644 index 00000000..d6d5d5d2 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachYearOfInterval } from 'date-fns' +export default eachYearOfInterval diff --git a/node_modules/date-fns/eachYearOfInterval/index.js b/node_modules/date-fns/eachYearOfInterval/index.js new file mode 100644 index 00000000..c683559b --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval/index.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = eachYearOfInterval; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ +function eachYearOfInterval(dirtyInterval) { + (0, _index2.default)(1, arguments); + var interval = dirtyInterval || {}; + var startDate = (0, _index.default)(interval.start); + var endDate = (0, _index.default)(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + currentDate.setMonth(0, 1); + + while (currentDate.getTime() <= endTime) { + dates.push((0, _index.default)(currentDate)); + currentDate.setFullYear(currentDate.getFullYear() + 1); + } + + return dates; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/eachYearOfInterval/index.js.flow b/node_modules/date-fns/eachYearOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/eachYearOfInterval/package.json b/node_modules/date-fns/eachYearOfInterval/package.json new file mode 100644 index 00000000..e0b941e3 --- /dev/null +++ b/node_modules/date-fns/eachYearOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/eachYearOfInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfDay/index.d.ts b/node_modules/date-fns/endOfDay/index.d.ts new file mode 100644 index 00000000..2ce61726 --- /dev/null +++ b/node_modules/date-fns/endOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDay } from 'date-fns' +export default endOfDay diff --git a/node_modules/date-fns/endOfDay/index.js b/node_modules/date-fns/endOfDay/index.js new file mode 100644 index 00000000..9ff7940b --- /dev/null +++ b/node_modules/date-fns/endOfDay/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfDay; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a day + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ +function endOfDay(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfDay/index.js.flow b/node_modules/date-fns/endOfDay/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfDay/package.json b/node_modules/date-fns/endOfDay/package.json new file mode 100644 index 00000000..afc04859 --- /dev/null +++ b/node_modules/date-fns/endOfDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfDecade/index.d.ts b/node_modules/date-fns/endOfDecade/index.d.ts new file mode 100644 index 00000000..c723f138 --- /dev/null +++ b/node_modules/date-fns/endOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecade } from 'date-fns' +export default endOfDecade diff --git a/node_modules/date-fns/endOfDecade/index.js b/node_modules/date-fns/endOfDecade/index.js new file mode 100644 index 00000000..8e8c80db --- /dev/null +++ b/node_modules/date-fns/endOfDecade/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfDecade; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a decade + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ +function endOfDecade(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + date.setFullYear(decade, 11, 31); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfDecade/index.js.flow b/node_modules/date-fns/endOfDecade/index.js.flow new file mode 100644 index 00000000..364a3bb2 --- /dev/null +++ b/node_modules/date-fns/endOfDecade/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/endOfDecade/package.json b/node_modules/date-fns/endOfDecade/package.json new file mode 100644 index 00000000..527d92ad --- /dev/null +++ b/node_modules/date-fns/endOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfDecade/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfHour/index.d.ts b/node_modules/date-fns/endOfHour/index.d.ts new file mode 100644 index 00000000..10ab321c --- /dev/null +++ b/node_modules/date-fns/endOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfHour } from 'date-fns' +export default endOfHour diff --git a/node_modules/date-fns/endOfHour/index.js b/node_modules/date-fns/endOfHour/index.js new file mode 100644 index 00000000..4de1b407 --- /dev/null +++ b/node_modules/date-fns/endOfHour/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfHour; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an hour + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ +function endOfHour(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setMinutes(59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfHour/index.js.flow b/node_modules/date-fns/endOfHour/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfHour/package.json b/node_modules/date-fns/endOfHour/package.json new file mode 100644 index 00000000..4270453e --- /dev/null +++ b/node_modules/date-fns/endOfHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfHour/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfISOWeek/index.d.ts b/node_modules/date-fns/endOfISOWeek/index.d.ts new file mode 100644 index 00000000..10c33653 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeek } from 'date-fns' +export default endOfISOWeek diff --git a/node_modules/date-fns/endOfISOWeek/index.js b/node_modules/date-fns/endOfISOWeek/index.js new file mode 100644 index 00000000..66d50f56 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfISOWeek; + +var _index = _interopRequireDefault(require("../endOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +function endOfISOWeek(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, { + weekStartsOn: 1 + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfISOWeek/index.js.flow b/node_modules/date-fns/endOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfISOWeek/package.json b/node_modules/date-fns/endOfISOWeek/package.json new file mode 100644 index 00000000..cb124856 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfISOWeekYear/index.d.ts b/node_modules/date-fns/endOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..18783085 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeekYear } from 'date-fns' +export default endOfISOWeekYear diff --git a/node_modules/date-fns/endOfISOWeekYear/index.js b/node_modules/date-fns/endOfISOWeekYear/index.js new file mode 100644 index 00000000..b96e84c5 --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfISOWeekYear; + +var _index = _interopRequireDefault(require("../getISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ +function endOfISOWeekYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var year = (0, _index.default)(dirtyDate); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var date = (0, _index2.default)(fourthOfJanuaryOfNextYear); + date.setMilliseconds(date.getMilliseconds() - 1); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfISOWeekYear/index.js.flow b/node_modules/date-fns/endOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfISOWeekYear/package.json b/node_modules/date-fns/endOfISOWeekYear/package.json new file mode 100644 index 00000000..6603f57d --- /dev/null +++ b/node_modules/date-fns/endOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfMinute/index.d.ts b/node_modules/date-fns/endOfMinute/index.d.ts new file mode 100644 index 00000000..82d1b5d5 --- /dev/null +++ b/node_modules/date-fns/endOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMinute } from 'date-fns' +export default endOfMinute diff --git a/node_modules/date-fns/endOfMinute/index.js b/node_modules/date-fns/endOfMinute/index.js new file mode 100644 index 00000000..aaa53272 --- /dev/null +++ b/node_modules/date-fns/endOfMinute/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfMinute; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a minute + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ +function endOfMinute(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setSeconds(59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfMinute/index.js.flow b/node_modules/date-fns/endOfMinute/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfMinute/package.json b/node_modules/date-fns/endOfMinute/package.json new file mode 100644 index 00000000..9807b60f --- /dev/null +++ b/node_modules/date-fns/endOfMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfMinute/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfMonth/index.d.ts b/node_modules/date-fns/endOfMonth/index.d.ts new file mode 100644 index 00000000..59e73541 --- /dev/null +++ b/node_modules/date-fns/endOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMonth } from 'date-fns' +export default endOfMonth diff --git a/node_modules/date-fns/endOfMonth/index.js b/node_modules/date-fns/endOfMonth/index.js new file mode 100644 index 00000000..bba23ea8 --- /dev/null +++ b/node_modules/date-fns/endOfMonth/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +function endOfMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var month = date.getMonth(); + date.setFullYear(date.getFullYear(), month + 1, 0); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfMonth/index.js.flow b/node_modules/date-fns/endOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfMonth/package.json b/node_modules/date-fns/endOfMonth/package.json new file mode 100644 index 00000000..7d100731 --- /dev/null +++ b/node_modules/date-fns/endOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfQuarter/index.d.ts b/node_modules/date-fns/endOfQuarter/index.d.ts new file mode 100644 index 00000000..c91ac76f --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfQuarter } from 'date-fns' +export default endOfQuarter diff --git a/node_modules/date-fns/endOfQuarter/index.js b/node_modules/date-fns/endOfQuarter/index.js new file mode 100644 index 00000000..d2d9b4ac --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfQuarter; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a quarter + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ +function endOfQuarter(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date.setMonth(month, 0); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfQuarter/index.js.flow b/node_modules/date-fns/endOfQuarter/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfQuarter/package.json b/node_modules/date-fns/endOfQuarter/package.json new file mode 100644 index 00000000..2f543917 --- /dev/null +++ b/node_modules/date-fns/endOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfSecond/index.d.ts b/node_modules/date-fns/endOfSecond/index.d.ts new file mode 100644 index 00000000..3af9fbd9 --- /dev/null +++ b/node_modules/date-fns/endOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfSecond } from 'date-fns' +export default endOfSecond diff --git a/node_modules/date-fns/endOfSecond/index.js b/node_modules/date-fns/endOfSecond/index.js new file mode 100644 index 00000000..5c6f9011 --- /dev/null +++ b/node_modules/date-fns/endOfSecond/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfSecond; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a second + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ +function endOfSecond(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setMilliseconds(999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfSecond/index.js.flow b/node_modules/date-fns/endOfSecond/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfSecond/package.json b/node_modules/date-fns/endOfSecond/package.json new file mode 100644 index 00000000..4ebec2a4 --- /dev/null +++ b/node_modules/date-fns/endOfSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfSecond/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfToday/index.d.ts b/node_modules/date-fns/endOfToday/index.d.ts new file mode 100644 index 00000000..30de0981 --- /dev/null +++ b/node_modules/date-fns/endOfToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfToday } from 'date-fns' +export default endOfToday diff --git a/node_modules/date-fns/endOfToday/index.js b/node_modules/date-fns/endOfToday/index.js new file mode 100644 index 00000000..1d4f63de --- /dev/null +++ b/node_modules/date-fns/endOfToday/index.js @@ -0,0 +1,35 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfToday; + +var _index = _interopRequireDefault(require("../endOfDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ +function endOfToday() { + return (0, _index.default)(Date.now()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfToday/index.js.flow b/node_modules/date-fns/endOfToday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/endOfToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/endOfToday/package.json b/node_modules/date-fns/endOfToday/package.json new file mode 100644 index 00000000..efef3cc9 --- /dev/null +++ b/node_modules/date-fns/endOfToday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfToday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfTomorrow/index.d.ts b/node_modules/date-fns/endOfTomorrow/index.d.ts new file mode 100644 index 00000000..df5619e3 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfTomorrow } from 'date-fns' +export default endOfTomorrow diff --git a/node_modules/date-fns/endOfTomorrow/index.js b/node_modules/date-fns/endOfTomorrow/index.js new file mode 100644 index 00000000..a50d23ee --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfTomorrow; + +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +function endOfTomorrow() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day + 1); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfTomorrow/index.js.flow b/node_modules/date-fns/endOfTomorrow/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/endOfTomorrow/package.json b/node_modules/date-fns/endOfTomorrow/package.json new file mode 100644 index 00000000..d4937321 --- /dev/null +++ b/node_modules/date-fns/endOfTomorrow/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfTomorrow/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfWeek/index.d.ts b/node_modules/date-fns/endOfWeek/index.d.ts new file mode 100644 index 00000000..50a77a3f --- /dev/null +++ b/node_modules/date-fns/endOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeek } from 'date-fns' +export default endOfWeek diff --git a/node_modules/date-fns/endOfWeek/index.js b/node_modules/date-fns/endOfWeek/index.js new file mode 100644 index 00000000..8e229497 --- /dev/null +++ b/node_modules/date-fns/endOfWeek/index.js @@ -0,0 +1,64 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfWeek; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the end of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +function endOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index4.default)(1, arguments); + var defaultOptions = (0, _index.getDefaultOptions)(); + var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = (0, _index2.default)(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + date.setDate(date.getDate() + diff); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfWeek/index.js.flow b/node_modules/date-fns/endOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/endOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/endOfWeek/package.json b/node_modules/date-fns/endOfWeek/package.json new file mode 100644 index 00000000..508e6799 --- /dev/null +++ b/node_modules/date-fns/endOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfYear/index.d.ts b/node_modules/date-fns/endOfYear/index.d.ts new file mode 100644 index 00000000..63d5191a --- /dev/null +++ b/node_modules/date-fns/endOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYear } from 'date-fns' +export default endOfYear diff --git a/node_modules/date-fns/endOfYear/index.js b/node_modules/date-fns/endOfYear/index.js new file mode 100644 index 00000000..2c8ad13d --- /dev/null +++ b/node_modules/date-fns/endOfYear/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ +function endOfYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + date.setFullYear(year + 1, 0, 0); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfYear/index.js.flow b/node_modules/date-fns/endOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/endOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/endOfYear/package.json b/node_modules/date-fns/endOfYear/package.json new file mode 100644 index 00000000..47c676a1 --- /dev/null +++ b/node_modules/date-fns/endOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/endOfYesterday/index.d.ts b/node_modules/date-fns/endOfYesterday/index.d.ts new file mode 100644 index 00000000..b06935b6 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYesterday } from 'date-fns' +export default endOfYesterday diff --git a/node_modules/date-fns/endOfYesterday/index.js b/node_modules/date-fns/endOfYesterday/index.js new file mode 100644 index 00000000..43ac7842 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = endOfYesterday; + +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +function endOfYesterday() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day - 1); + date.setHours(23, 59, 59, 999); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/endOfYesterday/index.js.flow b/node_modules/date-fns/endOfYesterday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/endOfYesterday/package.json b/node_modules/date-fns/endOfYesterday/package.json new file mode 100644 index 00000000..9e10e15e --- /dev/null +++ b/node_modules/date-fns/endOfYesterday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/endOfYesterday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js b/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js new file mode 100644 index 00000000..c216c201 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/addLeadingZeros/index.js @@ -0,0 +1,10 @@ +export default function addLeadingZeros(number, targetLength) { + var sign = number < 0 ? '-' : ''; + var output = Math.abs(number).toString(); + + while (output.length < targetLength) { + output = '0' + output; + } + + return sign + output; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/assign/index.js b/node_modules/date-fns/esm/_lib/assign/index.js new file mode 100644 index 00000000..d0f464d4 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/assign/index.js @@ -0,0 +1,14 @@ +export default function assign(target, object) { + if (target == null) { + throw new TypeError('assign requires that input parameter not be null or undefined'); + } + + for (var property in object) { + if (Object.prototype.hasOwnProperty.call(object, property)) { + ; + target[property] = object[property]; + } + } + + return target; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/cloneObject/index.js b/node_modules/date-fns/esm/_lib/cloneObject/index.js new file mode 100644 index 00000000..632e94ed --- /dev/null +++ b/node_modules/date-fns/esm/_lib/cloneObject/index.js @@ -0,0 +1,4 @@ +import assign from "../assign/index.js"; +export default function cloneObject(object) { + return assign({}, object); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/defaultLocale/index.js b/node_modules/date-fns/esm/_lib/defaultLocale/index.js new file mode 100644 index 00000000..0e30a13e --- /dev/null +++ b/node_modules/date-fns/esm/_lib/defaultLocale/index.js @@ -0,0 +1,2 @@ +import defaultLocale from "../../locale/en-US/index.js"; +export default defaultLocale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/defaultOptions/index.js b/node_modules/date-fns/esm/_lib/defaultOptions/index.js new file mode 100644 index 00000000..4489fa65 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/defaultOptions/index.js @@ -0,0 +1,7 @@ +var defaultOptions = {}; +export function getDefaultOptions() { + return defaultOptions; +} +export function setDefaultOptions(newOptions) { + defaultOptions = newOptions; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/format/formatters/index.js b/node_modules/date-fns/esm/_lib/format/formatters/index.js new file mode 100644 index 00000000..34773cbb --- /dev/null +++ b/node_modules/date-fns/esm/_lib/format/formatters/index.js @@ -0,0 +1,866 @@ +import getUTCDayOfYear from "../../../_lib/getUTCDayOfYear/index.js"; +import getUTCISOWeek from "../../../_lib/getUTCISOWeek/index.js"; +import getUTCISOWeekYear from "../../../_lib/getUTCISOWeekYear/index.js"; +import getUTCWeek from "../../../_lib/getUTCWeek/index.js"; +import getUTCWeekYear from "../../../_lib/getUTCWeekYear/index.js"; +import addLeadingZeros from "../../addLeadingZeros/index.js"; +import lightFormatters from "../lightFormatters/index.js"; +var dayPeriodEnum = { + am: 'am', + pm: 'pm', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' +}; + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O | Timezone (GMT) | + * | p! | Long localized time | P! | Long localized date | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + * - `P` is long localized date format + * - `p` is long localized time format + */ +var formatters = { + // Era + G: function G(date, token, localize) { + var era = date.getUTCFullYear() > 0 ? 1 : 0; + + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return localize.era(era, { + width: 'abbreviated' + }); + // A, B + + case 'GGGGG': + return localize.era(era, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return localize.era(era, { + width: 'wide' + }); + } + }, + // Year + y: function y(date, token, localize) { + // Ordinal number + if (token === 'yo') { + var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return localize.ordinalNumber(year, { + unit: 'year' + }); + } + + return lightFormatters.y(date, token); + }, + // Local week-numbering year + Y: function Y(date, token, localize, options) { + var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year + + if (token === 'YY') { + var twoDigitYear = weekYear % 100; + return addLeadingZeros(twoDigitYear, 2); + } // Ordinal number + + + if (token === 'Yo') { + return localize.ordinalNumber(weekYear, { + unit: 'year' + }); + } // Padding + + + return addLeadingZeros(weekYear, token.length); + }, + // ISO week-numbering year + R: function R(date, token) { + var isoWeekYear = getUTCISOWeekYear(date); // Padding + + return addLeadingZeros(isoWeekYear, token.length); + }, + // Extended year. This is a single number designating the year of this calendar system. + // The main difference between `y` and `u` localizers are B.C. years: + // | Year | `y` | `u` | + // |------|-----|-----| + // | AC 1 | 1 | 1 | + // | BC 1 | 1 | 0 | + // | BC 2 | 2 | -1 | + // Also `yy` always returns the last two digits of a year, + // while `uu` pads single digit years to 2 characters and returns other years unchanged. + u: function u(date, token) { + var year = date.getUTCFullYear(); + return addLeadingZeros(year, token.length); + }, + // Quarter + Q: function Q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + + switch (token) { + // 1, 2, 3, 4 + case 'Q': + return String(quarter); + // 01, 02, 03, 04 + + case 'QQ': + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return localize.quarter(quarter, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone quarter + q: function q(date, token, localize) { + var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); + + switch (token) { + // 1, 2, 3, 4 + case 'q': + return String(quarter); + // 01, 02, 03, 04 + + case 'qq': + return addLeadingZeros(quarter, 2); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return localize.ordinalNumber(quarter, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return localize.quarter(quarter, { + width: 'abbreviated', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return localize.quarter(quarter, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return localize.quarter(quarter, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Month + M: function M(date, token, localize) { + var month = date.getUTCMonth(); + + switch (token) { + case 'M': + case 'MM': + return lightFormatters.M(date, token); + // 1st, 2nd, ..., 12th + + case 'Mo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + + case 'MMM': + return localize.month(month, { + width: 'abbreviated', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return localize.month(month, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return localize.month(month, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone month + L: function L(date, token, localize) { + var month = date.getUTCMonth(); + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return String(month + 1); + // 01, 02, ..., 12 + + case 'LL': + return addLeadingZeros(month + 1, 2); + // 1st, 2nd, ..., 12th + + case 'Lo': + return localize.ordinalNumber(month + 1, { + unit: 'month' + }); + // Jan, Feb, ..., Dec + + case 'LLL': + return localize.month(month, { + width: 'abbreviated', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return localize.month(month, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return localize.month(month, { + width: 'wide', + context: 'standalone' + }); + } + }, + // Local week of year + w: function w(date, token, localize, options) { + var week = getUTCWeek(date, options); + + if (token === 'wo') { + return localize.ordinalNumber(week, { + unit: 'week' + }); + } + + return addLeadingZeros(week, token.length); + }, + // ISO week of year + I: function I(date, token, localize) { + var isoWeek = getUTCISOWeek(date); + + if (token === 'Io') { + return localize.ordinalNumber(isoWeek, { + unit: 'week' + }); + } + + return addLeadingZeros(isoWeek, token.length); + }, + // Day of the month + d: function d(date, token, localize) { + if (token === 'do') { + return localize.ordinalNumber(date.getUTCDate(), { + unit: 'date' + }); + } + + return lightFormatters.d(date, token); + }, + // Day of year + D: function D(date, token, localize) { + var dayOfYear = getUTCDayOfYear(date); + + if (token === 'Do') { + return localize.ordinalNumber(dayOfYear, { + unit: 'dayOfYear' + }); + } + + return addLeadingZeros(dayOfYear, token.length); + }, + // Day of week + E: function E(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'EEEEE': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Local day of week + e: function e(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + + switch (token) { + // Numerical value (Nth day of week with current locale or weekStartsOn) + case 'e': + return String(localDayOfWeek); + // Padded numerical value + + case 'ee': + return addLeadingZeros(localDayOfWeek, 2); + // 1st, 2nd, ..., 7th + + case 'eo': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + + case 'eee': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'eeeee': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Stand-alone local day of week + c: function c(date, token, localize, options) { + var dayOfWeek = date.getUTCDay(); + var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; + + switch (token) { + // Numerical value (same as in `e`) + case 'c': + return String(localDayOfWeek); + // Padded numerical value + + case 'cc': + return addLeadingZeros(localDayOfWeek, token.length); + // 1st, 2nd, ..., 7th + + case 'co': + return localize.ordinalNumber(localDayOfWeek, { + unit: 'day' + }); + + case 'ccc': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'standalone' + }); + // T + + case 'ccccc': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return localize.day(dayOfWeek, { + width: 'short', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'standalone' + }); + } + }, + // ISO day of week + i: function i(date, token, localize) { + var dayOfWeek = date.getUTCDay(); + var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; + + switch (token) { + // 2 + case 'i': + return String(isoDayOfWeek); + // 02 + + case 'ii': + return addLeadingZeros(isoDayOfWeek, token.length); + // 2nd + + case 'io': + return localize.ordinalNumber(isoDayOfWeek, { + unit: 'day' + }); + // Tue + + case 'iii': + return localize.day(dayOfWeek, { + width: 'abbreviated', + context: 'formatting' + }); + // T + + case 'iiiii': + return localize.day(dayOfWeek, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'iiiiii': + return localize.day(dayOfWeek, { + width: 'short', + context: 'formatting' + }); + // Tuesday + + case 'iiii': + default: + return localize.day(dayOfWeek, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM or PM + a: function a(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + + switch (token) { + case 'a': + case 'aa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'aaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + + case 'aaaaa': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // AM, PM, midnight, noon + b: function b(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + + if (hours === 12) { + dayPeriodEnumValue = dayPeriodEnum.noon; + } else if (hours === 0) { + dayPeriodEnumValue = dayPeriodEnum.midnight; + } else { + dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; + } + + switch (token) { + case 'b': + case 'bb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'bbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }).toLowerCase(); + + case 'bbbbb': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // in the morning, in the afternoon, in the evening, at night + B: function B(date, token, localize) { + var hours = date.getUTCHours(); + var dayPeriodEnumValue; + + if (hours >= 17) { + dayPeriodEnumValue = dayPeriodEnum.evening; + } else if (hours >= 12) { + dayPeriodEnumValue = dayPeriodEnum.afternoon; + } else if (hours >= 4) { + dayPeriodEnumValue = dayPeriodEnum.morning; + } else { + dayPeriodEnumValue = dayPeriodEnum.night; + } + + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'abbreviated', + context: 'formatting' + }); + + case 'BBBBB': + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return localize.dayPeriod(dayPeriodEnumValue, { + width: 'wide', + context: 'formatting' + }); + } + }, + // Hour [1-12] + h: function h(date, token, localize) { + if (token === 'ho') { + var hours = date.getUTCHours() % 12; + if (hours === 0) hours = 12; + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return lightFormatters.h(date, token); + }, + // Hour [0-23] + H: function H(date, token, localize) { + if (token === 'Ho') { + return localize.ordinalNumber(date.getUTCHours(), { + unit: 'hour' + }); + } + + return lightFormatters.H(date, token); + }, + // Hour [0-11] + K: function K(date, token, localize) { + var hours = date.getUTCHours() % 12; + + if (token === 'Ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return addLeadingZeros(hours, token.length); + }, + // Hour [1-24] + k: function k(date, token, localize) { + var hours = date.getUTCHours(); + if (hours === 0) hours = 24; + + if (token === 'ko') { + return localize.ordinalNumber(hours, { + unit: 'hour' + }); + } + + return addLeadingZeros(hours, token.length); + }, + // Minute + m: function m(date, token, localize) { + if (token === 'mo') { + return localize.ordinalNumber(date.getUTCMinutes(), { + unit: 'minute' + }); + } + + return lightFormatters.m(date, token); + }, + // Second + s: function s(date, token, localize) { + if (token === 'so') { + return localize.ordinalNumber(date.getUTCSeconds(), { + unit: 'second' + }); + } + + return lightFormatters.s(date, token); + }, + // Fraction of second + S: function S(date, token) { + return lightFormatters.S(date, token); + }, + // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) + X: function X(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + if (timezoneOffset === 0) { + return 'Z'; + } + + switch (token) { + // Hours and optional minutes + case 'X': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XX` + + case 'XXXX': + case 'XX': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `XXX` + + case 'XXXXX': + case 'XXX': // Hours and minutes with `:` delimiter + + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) + x: function x(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Hours and optional minutes + case 'x': + return formatTimezoneWithOptionalMinutes(timezoneOffset); + // Hours, minutes and optional seconds without `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xx` + + case 'xxxx': + case 'xx': + // Hours and minutes without `:` delimiter + return formatTimezone(timezoneOffset); + // Hours, minutes and optional seconds with `:` delimiter + // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets + // so this token always has the same output as `xxx` + + case 'xxxxx': + case 'xxx': // Hours and minutes with `:` delimiter + + default: + return formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (GMT) + O: function O(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Short + case 'O': + case 'OO': + case 'OOO': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + + case 'OOOO': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Timezone (specific non-location) + z: function z(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timezoneOffset = originalDate.getTimezoneOffset(); + + switch (token) { + // Short + case 'z': + case 'zz': + case 'zzz': + return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); + // Long + + case 'zzzz': + default: + return 'GMT' + formatTimezone(timezoneOffset, ':'); + } + }, + // Seconds timestamp + t: function t(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = Math.floor(originalDate.getTime() / 1000); + return addLeadingZeros(timestamp, token.length); + }, + // Milliseconds timestamp + T: function T(date, token, _localize, options) { + var originalDate = options._originalDate || date; + var timestamp = originalDate.getTime(); + return addLeadingZeros(timestamp, token.length); + } +}; + +function formatTimezoneShort(offset, dirtyDelimiter) { + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = Math.floor(absOffset / 60); + var minutes = absOffset % 60; + + if (minutes === 0) { + return sign + String(hours); + } + + var delimiter = dirtyDelimiter || ''; + return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2); +} + +function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { + if (offset % 60 === 0) { + var sign = offset > 0 ? '-' : '+'; + return sign + addLeadingZeros(Math.abs(offset) / 60, 2); + } + + return formatTimezone(offset, dirtyDelimiter); +} + +function formatTimezone(offset, dirtyDelimiter) { + var delimiter = dirtyDelimiter || ''; + var sign = offset > 0 ? '-' : '+'; + var absOffset = Math.abs(offset); + var hours = addLeadingZeros(Math.floor(absOffset / 60), 2); + var minutes = addLeadingZeros(absOffset % 60, 2); + return sign + hours + delimiter + minutes; +} + +export default formatters; \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js b/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js new file mode 100644 index 00000000..ffffbd6d --- /dev/null +++ b/node_modules/date-fns/esm/_lib/format/lightFormatters/index.js @@ -0,0 +1,84 @@ +import addLeadingZeros from "../../addLeadingZeros/index.js"; +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | | + * | d | Day of month | D | | + * | h | Hour [1-12] | H | Hour [0-23] | + * | m | Minute | M | Month | + * | s | Second | S | Fraction of second | + * | y | Year (abs) | Y | | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + */ + +var formatters = { + // Year + y: function y(date, token) { + // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens + // | Year | y | yy | yyy | yyyy | yyyyy | + // |----------|-------|----|-------|-------|-------| + // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | + // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | + // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | + // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | + // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | + var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) + + var year = signedYear > 0 ? signedYear : 1 - signedYear; + return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length); + }, + // Month + M: function M(date, token) { + var month = date.getUTCMonth(); + return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2); + }, + // Day of the month + d: function d(date, token) { + return addLeadingZeros(date.getUTCDate(), token.length); + }, + // AM or PM + a: function a(date, token) { + var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; + + switch (token) { + case 'a': + case 'aa': + return dayPeriodEnumValue.toUpperCase(); + + case 'aaa': + return dayPeriodEnumValue; + + case 'aaaaa': + return dayPeriodEnumValue[0]; + + case 'aaaa': + default: + return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; + } + }, + // Hour [1-12] + h: function h(date, token) { + return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length); + }, + // Hour [0-23] + H: function H(date, token) { + return addLeadingZeros(date.getUTCHours(), token.length); + }, + // Minute + m: function m(date, token) { + return addLeadingZeros(date.getUTCMinutes(), token.length); + }, + // Second + s: function s(date, token) { + return addLeadingZeros(date.getUTCSeconds(), token.length); + }, + // Fraction of second + S: function S(date, token) { + var numberOfDigits = token.length; + var milliseconds = date.getUTCMilliseconds(); + var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); + return addLeadingZeros(fractionalSeconds, token.length); + } +}; +export default formatters; \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/format/longFormatters/index.js b/node_modules/date-fns/esm/_lib/format/longFormatters/index.js new file mode 100644 index 00000000..7c0c8e82 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/format/longFormatters/index.js @@ -0,0 +1,96 @@ +var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'P': + return formatLong.date({ + width: 'short' + }); + + case 'PP': + return formatLong.date({ + width: 'medium' + }); + + case 'PPP': + return formatLong.date({ + width: 'long' + }); + + case 'PPPP': + default: + return formatLong.date({ + width: 'full' + }); + } +}; + +var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { + switch (pattern) { + case 'p': + return formatLong.time({ + width: 'short' + }); + + case 'pp': + return formatLong.time({ + width: 'medium' + }); + + case 'ppp': + return formatLong.time({ + width: 'long' + }); + + case 'pppp': + default: + return formatLong.time({ + width: 'full' + }); + } +}; + +var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { + var matchResult = pattern.match(/(P+)(p+)?/) || []; + var datePattern = matchResult[1]; + var timePattern = matchResult[2]; + + if (!timePattern) { + return dateLongFormatter(pattern, formatLong); + } + + var dateTimeFormat; + + switch (datePattern) { + case 'P': + dateTimeFormat = formatLong.dateTime({ + width: 'short' + }); + break; + + case 'PP': + dateTimeFormat = formatLong.dateTime({ + width: 'medium' + }); + break; + + case 'PPP': + dateTimeFormat = formatLong.dateTime({ + width: 'long' + }); + break; + + case 'PPPP': + default: + dateTimeFormat = formatLong.dateTime({ + width: 'full' + }); + break; + } + + return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); +}; + +var longFormatters = { + p: timeLongFormatter, + P: dateTimeLongFormatter +}; +export default longFormatters; \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js b/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js new file mode 100644 index 00000000..65b6e1b9 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js @@ -0,0 +1,16 @@ +/** + * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. + * They usually appear for dates that denote time before the timezones were introduced + * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 + * and GMT+01:00:00 after that date) + * + * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, + * which would lead to incorrect calculations. + * + * This function returns the timezone offset in milliseconds that takes seconds in account. + */ +export default function getTimezoneOffsetInMilliseconds(date) { + var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); + utcDate.setUTCFullYear(date.getFullYear()); + return date.getTime() - utcDate.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js b/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js new file mode 100644 index 00000000..39ea54db --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js @@ -0,0 +1,13 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +var MILLISECONDS_IN_DAY = 86400000; +export default function getUTCDayOfYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var timestamp = date.getTime(); + date.setUTCMonth(0, 1); + date.setUTCHours(0, 0, 0, 0); + var startOfYearTimestamp = date.getTime(); + var difference = timestamp - startOfYearTimestamp; + return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js b/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js new file mode 100644 index 00000000..bd6cbc6b --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js @@ -0,0 +1,14 @@ +import toDate from "../../toDate/index.js"; +import startOfUTCISOWeek from "../startOfUTCISOWeek/index.js"; +import startOfUTCISOWeekYear from "../startOfUTCISOWeekYear/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +export default function getUTCISOWeek(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js b/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js new file mode 100644 index 00000000..7012b449 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js @@ -0,0 +1,24 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import startOfUTCISOWeek from "../startOfUTCISOWeek/index.js"; +export default function getUTCISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getUTCFullYear(); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); + var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = new Date(0); + fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getUTCWeek/index.js b/node_modules/date-fns/esm/_lib/getUTCWeek/index.js new file mode 100644 index 00000000..139350d8 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCWeek/index.js @@ -0,0 +1,14 @@ +import toDate from "../../toDate/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import startOfUTCWeekYear from "../startOfUTCWeekYear/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +export default function getUTCWeek(dirtyDate, options) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js b/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js new file mode 100644 index 00000000..f7dfd7d8 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js @@ -0,0 +1,35 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import toInteger from "../toInteger/index.js"; +import { getDefaultOptions } from "../defaultOptions/index.js"; +export default function getUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getUTCFullYear(); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var firstWeekOfNextYear = new Date(0); + firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); + var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); + var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js b/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js new file mode 100644 index 00000000..21a6ba36 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/isSameUTCWeek/index.js @@ -0,0 +1,8 @@ +import requiredArgs from "../requiredArgs/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +export default function isSameUTCWeek(dirtyDateLeft, dirtyDateRight, options) { + requiredArgs(2, arguments); + var dateLeftStartOfWeek = startOfUTCWeek(dirtyDateLeft, options); + var dateRightStartOfWeek = startOfUTCWeek(dirtyDateRight, options); + return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/protectedTokens/index.js b/node_modules/date-fns/esm/_lib/protectedTokens/index.js new file mode 100644 index 00000000..e241fce6 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/protectedTokens/index.js @@ -0,0 +1,19 @@ +var protectedDayOfYearTokens = ['D', 'DD']; +var protectedWeekYearTokens = ['YY', 'YYYY']; +export function isProtectedDayOfYearToken(token) { + return protectedDayOfYearTokens.indexOf(token) !== -1; +} +export function isProtectedWeekYearToken(token) { + return protectedWeekYearTokens.indexOf(token) !== -1; +} +export function throwProtectedError(token, format, input) { + if (token === 'YYYY') { + throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'YY') { + throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'D') { + throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } else if (token === 'DD') { + throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/requiredArgs/index.js b/node_modules/date-fns/esm/_lib/requiredArgs/index.js new file mode 100644 index 00000000..46d9179c --- /dev/null +++ b/node_modules/date-fns/esm/_lib/requiredArgs/index.js @@ -0,0 +1,5 @@ +export default function requiredArgs(required, args) { + if (args.length < required) { + throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/roundingMethods/index.js b/node_modules/date-fns/esm/_lib/roundingMethods/index.js new file mode 100644 index 00000000..150ea525 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/roundingMethods/index.js @@ -0,0 +1,13 @@ +var roundingMap = { + ceil: Math.ceil, + round: Math.round, + floor: Math.floor, + trunc: function trunc(value) { + return value < 0 ? Math.ceil(value) : Math.floor(value); + } // Math.trunc is not supported by IE + +}; +var defaultRoundingMethod = 'trunc'; +export function getRoundingMethod(method) { + return method ? roundingMap[method] : roundingMap[defaultRoundingMethod]; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/setUTCDay/index.js b/node_modules/date-fns/esm/_lib/setUTCDay/index.js new file mode 100644 index 00000000..e09babb8 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCDay/index.js @@ -0,0 +1,24 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import toInteger from "../toInteger/index.js"; +import { getDefaultOptions } from "../defaultOptions/index.js"; +export default function setUTCDay(dirtyDate, dirtyDay, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(2, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = toDate(dirtyDate); + var day = toInteger(dirtyDay); + var currentDay = date.getUTCDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/setUTCISODay/index.js b/node_modules/date-fns/esm/_lib/setUTCISODay/index.js new file mode 100644 index 00000000..05e4f2fb --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCISODay/index.js @@ -0,0 +1,20 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import toInteger from "../toInteger/index.js"; +export default function setUTCISODay(dirtyDate, dirtyDay) { + requiredArgs(2, arguments); + var day = toInteger(dirtyDay); + + if (day % 7 === 0) { + day = day - 7; + } + + var weekStartsOn = 1; + var date = toDate(dirtyDate); + var currentDay = date.getUTCDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js b/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js new file mode 100644 index 00000000..a54ae341 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js @@ -0,0 +1,12 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import getUTCISOWeek from "../getUTCISOWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +export default function setUTCISOWeek(dirtyDate, dirtyISOWeek) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var isoWeek = toInteger(dirtyISOWeek); + var diff = getUTCISOWeek(date) - isoWeek; + date.setUTCDate(date.getUTCDate() - diff * 7); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/setUTCWeek/index.js b/node_modules/date-fns/esm/_lib/setUTCWeek/index.js new file mode 100644 index 00000000..a3a430d7 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/setUTCWeek/index.js @@ -0,0 +1,12 @@ +import toInteger from "../toInteger/index.js"; +import toDate from "../../toDate/index.js"; +import getUTCWeek from "../getUTCWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +export default function setUTCWeek(dirtyDate, dirtyWeek, options) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var week = toInteger(dirtyWeek); + var diff = getUTCWeek(date, options) - week; + date.setUTCDate(date.getUTCDate() - diff * 7); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js b/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js new file mode 100644 index 00000000..ecd39d9b --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js @@ -0,0 +1,12 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +export default function startOfUTCISOWeek(dirtyDate) { + requiredArgs(1, arguments); + var weekStartsOn = 1; + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setUTCDate(date.getUTCDate() - diff); + date.setUTCHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js b/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js new file mode 100644 index 00000000..66d6fae7 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js @@ -0,0 +1,12 @@ +import getUTCISOWeekYear from "../getUTCISOWeekYear/index.js"; +import startOfUTCISOWeek from "../startOfUTCISOWeek/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +export default function startOfUTCISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var year = getUTCISOWeekYear(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setUTCFullYear(year, 0, 4); + fourthOfJanuary.setUTCHours(0, 0, 0, 0); + var date = startOfUTCISOWeek(fourthOfJanuary); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js b/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js new file mode 100644 index 00000000..fbd80414 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js @@ -0,0 +1,22 @@ +import toDate from "../../toDate/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import toInteger from "../toInteger/index.js"; +import { getDefaultOptions } from "../defaultOptions/index.js"; +export default function startOfUTCWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setUTCDate(date.getUTCDate() - diff); + date.setUTCHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js b/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js new file mode 100644 index 00000000..03293204 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js @@ -0,0 +1,18 @@ +import getUTCWeekYear from "../getUTCWeekYear/index.js"; +import requiredArgs from "../requiredArgs/index.js"; +import startOfUTCWeek from "../startOfUTCWeek/index.js"; +import toInteger from "../toInteger/index.js"; +import { getDefaultOptions } from "../defaultOptions/index.js"; +export default function startOfUTCWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var year = getUTCWeekYear(dirtyDate, options); + var firstWeek = new Date(0); + firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); + firstWeek.setUTCHours(0, 0, 0, 0); + var date = startOfUTCWeek(firstWeek, options); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/test/index.js b/node_modules/date-fns/esm/_lib/test/index.js new file mode 100644 index 00000000..9e3d67be --- /dev/null +++ b/node_modules/date-fns/esm/_lib/test/index.js @@ -0,0 +1,25 @@ +import addLeadingZeros from "../addLeadingZeros/index.js"; +import { setDefaultOptions } from "../defaultOptions/index.js"; +export function assertType(_) {} +export function resetDefaultOptions() { + setDefaultOptions({}); +} // This makes sure we create the consistent offsets across timezones, no matter where these tests are ran. + +export function generateOffset(originalDate) { + // Add the timezone. + var offset = ''; + var tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = tzOffset < 0 ? '+' : '-'; + offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + offset = 'Z'; + } + + return offset; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/_lib/toInteger/index.js b/node_modules/date-fns/esm/_lib/toInteger/index.js new file mode 100644 index 00000000..c943c455 --- /dev/null +++ b/node_modules/date-fns/esm/_lib/toInteger/index.js @@ -0,0 +1,13 @@ +export default function toInteger(dirtyNumber) { + if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { + return NaN; + } + + var number = Number(dirtyNumber); + + if (isNaN(number)) { + return number; + } + + return number < 0 ? Math.ceil(number) : Math.floor(number); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/add/index.d.ts b/node_modules/date-fns/esm/add/index.d.ts new file mode 100644 index 00000000..f620aa05 --- /dev/null +++ b/node_modules/date-fns/esm/add/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { add } from 'date-fns' +export default add diff --git a/node_modules/date-fns/esm/add/index.js b/node_modules/date-fns/esm/add/index.js new file mode 100644 index 00000000..97ccb9d5 --- /dev/null +++ b/node_modules/date-fns/esm/add/index.js @@ -0,0 +1,69 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import addDays from "../addDays/index.js"; +import addMonths from "../addMonths/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; + +/** + * @name add + * @category Common Helpers + * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @description + * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * + * | Key | Description | + * |----------------|------------------------------------| + * | years | Amount of years to be added | + * | months | Amount of months to be added | + * | weeks | Amount of weeks to be added | + * | days | Amount of days to be added | + * | hours | Amount of hours to be added | + * | minutes | Amount of minutes to be added | + * | seconds | Amount of seconds to be added | + * + * All values default to 0 + * + * @returns {Date} the new date with the seconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add the following duration to 1 September 2014, 10:19:50 + * const result = add(new Date(2014, 8, 1, 10, 19, 50), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30, + * }) + * //=> Thu Jun 15 2017 15:29:20 + */ +export default function add(dirtyDate, duration) { + requiredArgs(2, arguments); + if (!duration || _typeof(duration) !== 'object') return new Date(NaN); + var years = duration.years ? toInteger(duration.years) : 0; + var months = duration.months ? toInteger(duration.months) : 0; + var weeks = duration.weeks ? toInteger(duration.weeks) : 0; + var days = duration.days ? toInteger(duration.days) : 0; + var hours = duration.hours ? toInteger(duration.hours) : 0; + var minutes = duration.minutes ? toInteger(duration.minutes) : 0; + var seconds = duration.seconds ? toInteger(duration.seconds) : 0; // Add years and months + + var date = toDate(dirtyDate); + var dateWithMonths = months || years ? addMonths(date, months + years * 12) : date; // Add weeks and days + + var dateWithDays = days || weeks ? addDays(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds + + var minutesToAdd = minutes + hours * 60; + var secondsToAdd = seconds + minutesToAdd * 60; + var msToAdd = secondsToAdd * 1000; + var finalDate = new Date(dateWithDays.getTime() + msToAdd); + return finalDate; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/add/index.js.flow b/node_modules/date-fns/esm/add/index.js.flow new file mode 100644 index 00000000..e79df7ca --- /dev/null +++ b/node_modules/date-fns/esm/add/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, duration: Duration) => Date diff --git a/node_modules/date-fns/esm/add/package.json b/node_modules/date-fns/esm/add/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/add/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addBusinessDays/index.d.ts b/node_modules/date-fns/esm/addBusinessDays/index.d.ts new file mode 100644 index 00000000..b1c084e3 --- /dev/null +++ b/node_modules/date-fns/esm/addBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addBusinessDays } from 'date-fns' +export default addBusinessDays diff --git a/node_modules/date-fns/esm/addBusinessDays/index.js b/node_modules/date-fns/esm/addBusinessDays/index.js new file mode 100644 index 00000000..a6caf144 --- /dev/null +++ b/node_modules/date-fns/esm/addBusinessDays/index.js @@ -0,0 +1,57 @@ +import isWeekend from "../isWeekend/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import isSunday from "../isSunday/index.js"; +import isSaturday from "../isSaturday/index.js"; +/** + * @name addBusinessDays + * @category Day Helpers + * @summary Add the specified number of business days (mon - fri) to the given date. + * + * @description + * Add the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the business days added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 10 business days to 1 September 2014: + * const result = addBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days) + */ + +export default function addBusinessDays(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var startedOnWeekend = isWeekend(date); + var amount = toInteger(dirtyAmount); + if (isNaN(amount)) return new Date(NaN); + var hours = date.getHours(); + var sign = amount < 0 ? -1 : 1; + var fullWeeks = toInteger(amount / 5); + date.setDate(date.getDate() + fullWeeks * 7); // Get remaining days not part of a full week + + var restDays = Math.abs(amount % 5); // Loops over remaining days + + while (restDays > 0) { + date.setDate(date.getDate() + sign); + if (!isWeekend(date)) restDays -= 1; + } // If the date is a weekend day and we reduce a dividable of + // 5 from it, we land on a weekend date. + // To counter this, we add days accordingly to land on the next business day + + + if (startedOnWeekend && isWeekend(date) && amount !== 0) { + // If we're reducing days, we want to add days until we land on a weekday + // If we're adding days we want to reduce days until we land on a weekday + if (isSaturday(date)) date.setDate(date.getDate() + (sign < 0 ? 2 : -1)); + if (isSunday(date)) date.setDate(date.getDate() + (sign < 0 ? 1 : -2)); + } // Restore hours to avoid DST lag + + + date.setHours(hours); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addBusinessDays/index.js.flow b/node_modules/date-fns/esm/addBusinessDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addBusinessDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addBusinessDays/package.json b/node_modules/date-fns/esm/addBusinessDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addDays/index.d.ts b/node_modules/date-fns/esm/addDays/index.d.ts new file mode 100644 index 00000000..fd7fb3db --- /dev/null +++ b/node_modules/date-fns/esm/addDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addDays } from 'date-fns' +export default addDays diff --git a/node_modules/date-fns/esm/addDays/index.js b/node_modules/date-fns/esm/addDays/index.js new file mode 100644 index 00000000..8566a493 --- /dev/null +++ b/node_modules/date-fns/esm/addDays/index.js @@ -0,0 +1,39 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addDays + * @category Day Helpers + * @summary Add the specified number of days to the given date. + * + * @description + * Add the specified number of days to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} - the new date with the days added + * @throws {TypeError} - 2 arguments required + * + * @example + * // Add 10 days to 1 September 2014: + * const result = addDays(new Date(2014, 8, 1), 10) + * //=> Thu Sep 11 2014 00:00:00 + */ + +export default function addDays(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var amount = toInteger(dirtyAmount); + + if (isNaN(amount)) { + return new Date(NaN); + } + + if (!amount) { + // If 0 days, no-op to avoid changing times in the hour before end of DST + return date; + } + + date.setDate(date.getDate() + amount); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addDays/index.js.flow b/node_modules/date-fns/esm/addDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addDays/package.json b/node_modules/date-fns/esm/addDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addHours/index.d.ts b/node_modules/date-fns/esm/addHours/index.d.ts new file mode 100644 index 00000000..b3b60666 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addHours } from 'date-fns' +export default addHours diff --git a/node_modules/date-fns/esm/addHours/index.js b/node_modules/date-fns/esm/addHours/index.js new file mode 100644 index 00000000..6fe78457 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/index.js @@ -0,0 +1,28 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMilliseconds from "../addMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_HOUR = 3600000; +/** + * @name addHours + * @category Hour Helpers + * @summary Add the specified number of hours to the given date. + * + * @description + * Add the specified number of hours to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the hours added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 2 hours to 10 July 2014 23:00:00: + * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) + * //=> Fri Jul 11 2014 01:00:00 + */ + +export default function addHours(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_HOUR); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addHours/index.js.flow b/node_modules/date-fns/esm/addHours/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addHours/package.json b/node_modules/date-fns/esm/addHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addISOWeekYears/index.d.ts b/node_modules/date-fns/esm/addISOWeekYears/index.d.ts new file mode 100644 index 00000000..e1e6e090 --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addISOWeekYears } from 'date-fns' +export default addISOWeekYears diff --git a/node_modules/date-fns/esm/addISOWeekYears/index.js b/node_modules/date-fns/esm/addISOWeekYears/index.js new file mode 100644 index 00000000..8972064a --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/index.js @@ -0,0 +1,30 @@ +import toInteger from "../_lib/toInteger/index.js"; +import getISOWeekYear from "../getISOWeekYear/index.js"; +import setISOWeekYear from "../setISOWeekYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Add the specified number of ISO week-numbering years to the given date. + * + * @description + * Add the specified number of ISO week-numbering years to the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the ISO week-numbering years added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 ISO week-numbering years to 2 July 2010: + * const result = addISOWeekYears(new Date(2010, 6, 2), 5) + * //=> Fri Jun 26 2015 00:00:00 + */ + +export default function addISOWeekYears(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return setISOWeekYear(dirtyDate, getISOWeekYear(dirtyDate) + amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addISOWeekYears/index.js.flow b/node_modules/date-fns/esm/addISOWeekYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addISOWeekYears/package.json b/node_modules/date-fns/esm/addISOWeekYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMilliseconds/index.d.ts b/node_modules/date-fns/esm/addMilliseconds/index.d.ts new file mode 100644 index 00000000..1afb9565 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMilliseconds } from 'date-fns' +export default addMilliseconds diff --git a/node_modules/date-fns/esm/addMilliseconds/index.js b/node_modules/date-fns/esm/addMilliseconds/index.js new file mode 100644 index 00000000..d86eaef2 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/index.js @@ -0,0 +1,28 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addMilliseconds + * @category Millisecond Helpers + * @summary Add the specified number of milliseconds to the given date. + * + * @description + * Add the specified number of milliseconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 750 milliseconds to 10 July 2014 12:45:30.000: + * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:30.750 + */ + +export default function addMilliseconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var timestamp = toDate(dirtyDate).getTime(); + var amount = toInteger(dirtyAmount); + return new Date(timestamp + amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMilliseconds/index.js.flow b/node_modules/date-fns/esm/addMilliseconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addMilliseconds/package.json b/node_modules/date-fns/esm/addMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMinutes/index.d.ts b/node_modules/date-fns/esm/addMinutes/index.d.ts new file mode 100644 index 00000000..fcf15e56 --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMinutes } from 'date-fns' +export default addMinutes diff --git a/node_modules/date-fns/esm/addMinutes/index.js b/node_modules/date-fns/esm/addMinutes/index.js new file mode 100644 index 00000000..df218e7f --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/index.js @@ -0,0 +1,28 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMilliseconds from "../addMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_MINUTE = 60000; +/** + * @name addMinutes + * @category Minute Helpers + * @summary Add the specified number of minutes to the given date. + * + * @description + * Add the specified number of minutes to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the minutes added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 30 minutes to 10 July 2014 12:00:00: + * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 12:30:00 + */ + +export default function addMinutes(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_MINUTE); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMinutes/index.js.flow b/node_modules/date-fns/esm/addMinutes/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addMinutes/package.json b/node_modules/date-fns/esm/addMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMonths/index.d.ts b/node_modules/date-fns/esm/addMonths/index.d.ts new file mode 100644 index 00000000..1308e13f --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMonths } from 'date-fns' +export default addMonths diff --git a/node_modules/date-fns/esm/addMonths/index.js b/node_modules/date-fns/esm/addMonths/index.js new file mode 100644 index 00000000..db8b9a91 --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/index.js @@ -0,0 +1,65 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addMonths + * @category Month Helpers + * @summary Add the specified number of months to the given date. + * + * @description + * Add the specified number of months to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the months added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 months to 1 September 2014: + * const result = addMonths(new Date(2014, 8, 1), 5) + * //=> Sun Feb 01 2015 00:00:00 + */ + +export default function addMonths(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var amount = toInteger(dirtyAmount); + + if (isNaN(amount)) { + return new Date(NaN); + } + + if (!amount) { + // If 0 months, no-op to avoid changing times in the hour before end of DST + return date; + } + + var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for + // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and + // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we + // want except that dates will wrap around the end of a month, meaning that + // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So + // we'll default to the end of the desired month by adding 1 to the desired + // month and using a date of 0 to back up one day to the end of the desired + // month. + + var endOfDesiredMonth = new Date(date.getTime()); + endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); + var daysInMonth = endOfDesiredMonth.getDate(); + + if (dayOfMonth >= daysInMonth) { + // If we're already at the end of the month, then this is the correct date + // and we're done. + return endOfDesiredMonth; + } else { + // Otherwise, we now know that setting the original day-of-month value won't + // cause an overflow, so set the desired day-of-month. Note that we can't + // just set the date of `endOfDesiredMonth` because that object may have had + // its time changed in the unusual case where where a DST transition was on + // the last day of the month and its local time was in the hour skipped or + // repeated next to a DST transition. So we use `date` instead which is + // guaranteed to still have the original time. + date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); + return date; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addMonths/index.js.flow b/node_modules/date-fns/esm/addMonths/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addMonths/package.json b/node_modules/date-fns/esm/addMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addQuarters/index.d.ts b/node_modules/date-fns/esm/addQuarters/index.d.ts new file mode 100644 index 00000000..a046e678 --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addQuarters } from 'date-fns' +export default addQuarters diff --git a/node_modules/date-fns/esm/addQuarters/index.js b/node_modules/date-fns/esm/addQuarters/index.js new file mode 100644 index 00000000..14a7893a --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/index.js @@ -0,0 +1,28 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMonths from "../addMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addQuarters + * @category Quarter Helpers + * @summary Add the specified number of year quarters to the given date. + * + * @description + * Add the specified number of year quarters to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the quarters added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 1 quarter to 1 September 2014: + * const result = addQuarters(new Date(2014, 8, 1), 1) + * //=> Mon Dec 01 2014 00:00:00 + */ + +export default function addQuarters(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + var months = amount * 3; + return addMonths(dirtyDate, months); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addQuarters/index.js.flow b/node_modules/date-fns/esm/addQuarters/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addQuarters/package.json b/node_modules/date-fns/esm/addQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addSeconds/index.d.ts b/node_modules/date-fns/esm/addSeconds/index.d.ts new file mode 100644 index 00000000..9b1e669e --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addSeconds } from 'date-fns' +export default addSeconds diff --git a/node_modules/date-fns/esm/addSeconds/index.js b/node_modules/date-fns/esm/addSeconds/index.js new file mode 100644 index 00000000..1436841e --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMilliseconds from "../addMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addSeconds + * @category Second Helpers + * @summary Add the specified number of seconds to the given date. + * + * @description + * Add the specified number of seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the seconds added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 30 seconds to 10 July 2014 12:45:00: + * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:45:30 + */ + +export default function addSeconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMilliseconds(dirtyDate, amount * 1000); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addSeconds/index.js.flow b/node_modules/date-fns/esm/addSeconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addSeconds/package.json b/node_modules/date-fns/esm/addSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addWeeks/index.d.ts b/node_modules/date-fns/esm/addWeeks/index.d.ts new file mode 100644 index 00000000..25bb83ab --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addWeeks } from 'date-fns' +export default addWeeks diff --git a/node_modules/date-fns/esm/addWeeks/index.js b/node_modules/date-fns/esm/addWeeks/index.js new file mode 100644 index 00000000..50c4230a --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/index.js @@ -0,0 +1,28 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addDays from "../addDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addWeeks + * @category Week Helpers + * @summary Add the specified number of weeks to the given date. + * + * @description + * Add the specified number of week to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the weeks added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 4 weeks to 1 September 2014: + * const result = addWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Sep 29 2014 00:00:00 + */ + +export default function addWeeks(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + var days = amount * 7; + return addDays(dirtyDate, days); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addWeeks/index.js.flow b/node_modules/date-fns/esm/addWeeks/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addWeeks/package.json b/node_modules/date-fns/esm/addWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addYears/index.d.ts b/node_modules/date-fns/esm/addYears/index.d.ts new file mode 100644 index 00000000..df7255f7 --- /dev/null +++ b/node_modules/date-fns/esm/addYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addYears } from 'date-fns' +export default addYears diff --git a/node_modules/date-fns/esm/addYears/index.js b/node_modules/date-fns/esm/addYears/index.js new file mode 100644 index 00000000..b3f67077 --- /dev/null +++ b/node_modules/date-fns/esm/addYears/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMonths from "../addMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name addYears + * @category Year Helpers + * @summary Add the specified number of years to the given date. + * + * @description + * Add the specified number of years to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the years added + * @throws {TypeError} 2 arguments required + * + * @example + * // Add 5 years to 1 September 2014: + * const result = addYears(new Date(2014, 8, 1), 5) + * //=> Sun Sep 01 2019 00:00:00 + */ + +export default function addYears(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMonths(dirtyDate, amount * 12); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/addYears/index.js.flow b/node_modules/date-fns/esm/addYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/addYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/addYears/package.json b/node_modules/date-fns/esm/addYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/addYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/areIntervalsOverlapping/index.d.ts b/node_modules/date-fns/esm/areIntervalsOverlapping/index.d.ts new file mode 100644 index 00000000..8cc0fd1a --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlapping } from 'date-fns' +export default areIntervalsOverlapping diff --git a/node_modules/date-fns/esm/areIntervalsOverlapping/index.js b/node_modules/date-fns/esm/areIntervalsOverlapping/index.js new file mode 100644 index 00000000..428234a7 --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/index.js @@ -0,0 +1,75 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name areIntervalsOverlapping + * @category Interval Helpers + * @summary Is the given time interval overlapping with another time interval? + * + * @description + * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping. + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - the object with options + * @param {Boolean} [options.inclusive=false] - whether the comparison is inclusive or not + * @returns {Boolean} whether the time intervals are overlapping + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> true + * + * @example + * // For non-overlapping time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> false + * + * @example + * // For adjacent time intervals: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) } + * ) + * //=> false + * + * @example + * // Using the inclusive option: + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) } + * ) + * //=> false + * areIntervalsOverlapping( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }, + * { inclusive: true } + * ) + * //=> true + */ + +export default function areIntervalsOverlapping(intervalLeft, intervalRight, options) { + requiredArgs(2, arguments); + var leftStartTime = toDate(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.start).getTime(); + var leftEndTime = toDate(intervalLeft === null || intervalLeft === void 0 ? void 0 : intervalLeft.end).getTime(); + var rightStartTime = toDate(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.start).getTime(); + var rightEndTime = toDate(intervalRight === null || intervalRight === void 0 ? void 0 : intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { + throw new RangeError('Invalid interval'); + } + + if (options !== null && options !== void 0 && options.inclusive) { + return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime; + } + + return leftStartTime < rightEndTime && rightStartTime < leftEndTime; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/areIntervalsOverlapping/index.js.flow b/node_modules/date-fns/esm/areIntervalsOverlapping/index.js.flow new file mode 100644 index 00000000..9cab45d5 --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean, + } +) => boolean diff --git a/node_modules/date-fns/esm/areIntervalsOverlapping/package.json b/node_modules/date-fns/esm/areIntervalsOverlapping/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/areIntervalsOverlapping/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/clamp/index.d.ts b/node_modules/date-fns/esm/clamp/index.d.ts new file mode 100644 index 00000000..957fb1f2 --- /dev/null +++ b/node_modules/date-fns/esm/clamp/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { clamp } from 'date-fns' +export default clamp diff --git a/node_modules/date-fns/esm/clamp/index.js b/node_modules/date-fns/esm/clamp/index.js new file mode 100644 index 00000000..f749c856 --- /dev/null +++ b/node_modules/date-fns/esm/clamp/index.js @@ -0,0 +1,36 @@ +import max from "../max/index.js"; +import min from "../min/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name clamp + * @category Interval Helpers + * @summary Return a date bounded by the start and the end of the given interval + * + * @description + * Clamps a date to the lower bound with the start of the interval and the upper + * bound with the end of the interval. + * + * - When the date is less than the start of the interval, the start is returned. + * - When the date is greater than the end of the interval, the end is returned. + * - Otherwise the date is returned. + * + * @example + * // What is Mar, 21, 2021 bounded to an interval starting at Mar, 22, 2021 and ending at Apr, 01, 2021 + * const result = clamp(new Date(2021, 2, 21), { + * start: new Date(2021, 2, 22), + * end: new Date(2021, 3, 1), + * }) + * //=> Mon Mar 22 2021 00:00:00 + * + * @param {Date | Number} date - the date to be bounded + * @param {Interval} interval - the interval to bound to + * @returns {Date} the date bounded by the start and the end of the interval + * @throws {TypeError} 2 arguments required + */ + +export default function clamp(date, _ref) { + var start = _ref.start, + end = _ref.end; + requiredArgs(2, arguments); + return min([max([date, start]), end]); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/clamp/index.js.flow b/node_modules/date-fns/esm/clamp/index.js.flow new file mode 100644 index 00000000..d5922309 --- /dev/null +++ b/node_modules/date-fns/esm/clamp/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, interval: Interval) => Date diff --git a/node_modules/date-fns/esm/clamp/package.json b/node_modules/date-fns/esm/clamp/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/clamp/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/closestIndexTo/index.d.ts b/node_modules/date-fns/esm/closestIndexTo/index.d.ts new file mode 100644 index 00000000..672d132c --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestIndexTo } from 'date-fns' +export default closestIndexTo diff --git a/node_modules/date-fns/esm/closestIndexTo/index.js b/node_modules/date-fns/esm/closestIndexTo/index.js new file mode 100644 index 00000000..894730b2 --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/index.js @@ -0,0 +1,62 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name closestIndexTo + * @category Common Helpers + * @summary Return an index of the closest date from the array comparing to the given date. + * + * @description + * Return an index of the closest date from the array comparing to the given date. + * + * @param {Date | Number} dateToCompare - the date to compare with + * @param {Array | Array} datesArray - the array to search + * @returns {Number | undefined} an index of the date closest to the given date or undefined if no valid value is given + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015? + * const dateToCompare = new Date(2015, 8, 6) + * const datesArray = [ + * new Date(2015, 0, 1), + * new Date(2016, 0, 1), + * new Date(2017, 0, 1) + * ] + * const result = closestIndexTo(dateToCompare, datesArray) + * //=> 1 + */ + +export default function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) { + requiredArgs(2, arguments); + var dateToCompare = toDate(dirtyDateToCompare); + if (isNaN(Number(dateToCompare))) return NaN; + var timeToCompare = dateToCompare.getTime(); + var datesArray; // `dirtyDatesArray` is undefined or null + + if (dirtyDatesArray == null) { + datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + } else if (typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array + } else { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } + + var result; + var minDistance; + datesArray.forEach(function (dirtyDate, index) { + var currentDate = toDate(dirtyDate); + + if (isNaN(Number(currentDate))) { + result = NaN; + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < Number(minDistance)) { + result = index; + minDistance = distance; + } + }); + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/closestIndexTo/index.js.flow b/node_modules/date-fns/esm/closestIndexTo/index.js.flow new file mode 100644 index 00000000..a8dadb4e --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] +) => ?number diff --git a/node_modules/date-fns/esm/closestIndexTo/package.json b/node_modules/date-fns/esm/closestIndexTo/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/closestIndexTo/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/closestTo/index.d.ts b/node_modules/date-fns/esm/closestTo/index.d.ts new file mode 100644 index 00000000..d4e084e3 --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestTo } from 'date-fns' +export default closestTo diff --git a/node_modules/date-fns/esm/closestTo/index.js b/node_modules/date-fns/esm/closestTo/index.js new file mode 100644 index 00000000..1ebf59a8 --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/index.js @@ -0,0 +1,60 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name closestTo + * @category Common Helpers + * @summary Return a date from the array closest to the given date. + * + * @description + * Return a date from the array closest to the given date. + * + * @param {Date | Number} dateToCompare - the date to compare with + * @param {Array | Array} datesArray - the array to search + * @returns {Date | undefined} the date from the array closest to the given date or undefined if no valid value is given + * @throws {TypeError} 2 arguments required + * + * @example + * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030? + * const dateToCompare = new Date(2015, 8, 6) + * const result = closestTo(dateToCompare, [ + * new Date(2000, 0, 1), + * new Date(2030, 0, 1) + * ]) + * //=> Tue Jan 01 2030 00:00:00 + */ + +export default function closestTo(dirtyDateToCompare, dirtyDatesArray) { + requiredArgs(2, arguments); + var dateToCompare = toDate(dirtyDateToCompare); + if (isNaN(Number(dateToCompare))) return new Date(NaN); + var timeToCompare = dateToCompare.getTime(); + var datesArray; // `dirtyDatesArray` is undefined or null + + if (dirtyDatesArray == null) { + datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + } else if (typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array + } else { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } + + var result; + var minDistance; + datesArray.forEach(function (dirtyDate) { + var currentDate = toDate(dirtyDate); + + if (isNaN(Number(currentDate))) { + result = new Date(NaN); + minDistance = NaN; + return; + } + + var distance = Math.abs(timeToCompare - currentDate.getTime()); + + if (result == null || distance < Number(minDistance)) { + result = currentDate; + minDistance = distance; + } + }); + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/closestTo/index.js.flow b/node_modules/date-fns/esm/closestTo/index.js.flow new file mode 100644 index 00000000..2a03edcf --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] +) => ?Date diff --git a/node_modules/date-fns/esm/closestTo/package.json b/node_modules/date-fns/esm/closestTo/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/closestTo/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/compareAsc/index.d.ts b/node_modules/date-fns/esm/compareAsc/index.d.ts new file mode 100644 index 00000000..ff920e66 --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareAsc } from 'date-fns' +export default compareAsc diff --git a/node_modules/date-fns/esm/compareAsc/index.js b/node_modules/date-fns/esm/compareAsc/index.js new file mode 100644 index 00000000..421d0e2a --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/index.js @@ -0,0 +1,49 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name compareAsc + * @category Common Helpers + * @summary Compare the two dates and return -1, 0 or 1. + * + * @description + * Compare the two dates and return 1 if the first date is after the second, + * -1 if the first date is before the second or 0 if dates are equal. + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Number} the result of the comparison + * @throws {TypeError} 2 arguments required + * + * @example + * // Compare 11 February 1987 and 10 July 1989: + * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> -1 + * + * @example + * // Sort the array of dates: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareAsc) + * //=> [ + * // Wed Feb 11 1987 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Sun Jul 02 1995 00:00:00 + * // ] + */ + +export default function compareAsc(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var diff = dateLeft.getTime() - dateRight.getTime(); + + if (diff < 0) { + return -1; + } else if (diff > 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/compareAsc/index.js.flow b/node_modules/date-fns/esm/compareAsc/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/compareAsc/package.json b/node_modules/date-fns/esm/compareAsc/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/compareAsc/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/compareDesc/index.d.ts b/node_modules/date-fns/esm/compareDesc/index.d.ts new file mode 100644 index 00000000..673fab56 --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareDesc } from 'date-fns' +export default compareDesc diff --git a/node_modules/date-fns/esm/compareDesc/index.js b/node_modules/date-fns/esm/compareDesc/index.js new file mode 100644 index 00000000..02787f0a --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/index.js @@ -0,0 +1,49 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name compareDesc + * @category Common Helpers + * @summary Compare the two dates reverse chronologically and return -1, 0 or 1. + * + * @description + * Compare the two dates and return -1 if the first date is after the second, + * 1 if the first date is before the second or 0 if dates are equal. + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Number} the result of the comparison + * @throws {TypeError} 2 arguments required + * + * @example + * // Compare 11 February 1987 and 10 July 1989 reverse chronologically: + * const result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10)) + * //=> 1 + * + * @example + * // Sort the array of dates in reverse chronological order: + * const result = [ + * new Date(1995, 6, 2), + * new Date(1987, 1, 11), + * new Date(1989, 6, 10) + * ].sort(compareDesc) + * //=> [ + * // Sun Jul 02 1995 00:00:00, + * // Mon Jul 10 1989 00:00:00, + * // Wed Feb 11 1987 00:00:00 + * // ] + */ + +export default function compareDesc(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var diff = dateLeft.getTime() - dateRight.getTime(); + + if (diff > 0) { + return -1; + } else if (diff < 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/compareDesc/index.js.flow b/node_modules/date-fns/esm/compareDesc/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/compareDesc/package.json b/node_modules/date-fns/esm/compareDesc/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/compareDesc/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/constants/index.d.ts b/node_modules/date-fns/esm/constants/index.d.ts new file mode 100644 index 00000000..60a24ae9 --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.d.ts @@ -0,0 +1,20 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export const daysInWeek: number +export const daysInYear: number +export const maxTime: number +export const millisecondsInMinute: number +export const millisecondsInHour: number +export const millisecondsInSecond: number +export const minTime: number +export const minutesInHour: number +export const monthsInQuarter: number +export const monthsInYear: number +export const quartersInYear: number +export const secondsInHour: number +export const secondsInMinute: number +export const secondsInDay: number +export const secondsInWeek: number +export const secondsInYear: number +export const secondsInMonth: number +export const secondsInQuarter: number diff --git a/node_modules/date-fns/esm/constants/index.js b/node_modules/date-fns/esm/constants/index.js new file mode 100644 index 00000000..3c024aaa --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.js @@ -0,0 +1,183 @@ +/** + * Days in 1 week. + * + * @name daysInWeek + * @constant + * @type {number} + * @default + */ +export var daysInWeek = 7; +/** + * Days in 1 year + * One years equals 365.2425 days according to the formula: + * + * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + * + * @name daysInYear + * @constant + * @type {number} + * @default + */ + +export var daysInYear = 365.2425; +/** + * Maximum allowed time. + * + * @name maxTime + * @constant + * @type {number} + * @default + */ + +export var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; +/** + * Milliseconds in 1 minute + * + * @name millisecondsInMinute + * @constant + * @type {number} + * @default + */ + +export var millisecondsInMinute = 60000; +/** + * Milliseconds in 1 hour + * + * @name millisecondsInHour + * @constant + * @type {number} + * @default + */ + +export var millisecondsInHour = 3600000; +/** + * Milliseconds in 1 second + * + * @name millisecondsInSecond + * @constant + * @type {number} + * @default + */ + +export var millisecondsInSecond = 1000; +/** + * Minimum allowed time. + * + * @name minTime + * @constant + * @type {number} + * @default + */ + +export var minTime = -maxTime; +/** + * Minutes in 1 hour + * + * @name minutesInHour + * @constant + * @type {number} + * @default + */ + +export var minutesInHour = 60; +/** + * Months in 1 quarter + * + * @name monthsInQuarter + * @constant + * @type {number} + * @default + */ + +export var monthsInQuarter = 3; +/** + * Months in 1 year + * + * @name monthsInYear + * @constant + * @type {number} + * @default + */ + +export var monthsInYear = 12; +/** + * Quarters in 1 year + * + * @name quartersInYear + * @constant + * @type {number} + * @default + */ + +export var quartersInYear = 4; +/** + * Seconds in 1 hour + * + * @name secondsInHour + * @constant + * @type {number} + * @default + */ + +export var secondsInHour = 3600; +/** + * Seconds in 1 minute + * + * @name secondsInMinute + * @constant + * @type {number} + * @default + */ + +export var secondsInMinute = 60; +/** + * Seconds in 1 day + * + * @name secondsInDay + * @constant + * @type {number} + * @default + */ + +export var secondsInDay = secondsInHour * 24; +/** + * Seconds in 1 week + * + * @name secondsInWeek + * @constant + * @type {number} + * @default + */ + +export var secondsInWeek = secondsInDay * 7; +/** + * Seconds in 1 year + * + * @name secondsInYear + * @constant + * @type {number} + * @default + */ + +export var secondsInYear = secondsInDay * daysInYear; +/** + * Seconds in 1 month + * + * @name secondsInMonth + * @constant + * @type {number} + * @default + */ + +export var secondsInMonth = secondsInYear / 12; +/** + * Seconds in 1 quarter + * + * @name secondsInQuarter + * @constant + * @type {number} + * @default + */ + +export var secondsInQuarter = secondsInMonth * 3; \ No newline at end of file diff --git a/node_modules/date-fns/esm/constants/index.js.flow b/node_modules/date-fns/esm/constants/index.js.flow new file mode 100644 index 00000000..5d837961 --- /dev/null +++ b/node_modules/date-fns/esm/constants/index.js.flow @@ -0,0 +1,14 @@ +// @flow + +declare export var daysInWeek: number +declare export var maxTime: number +declare export var millisecondsInMinute: number +declare export var millisecondsInHour: number +declare export var millisecondsInSecond: number +declare export var minTime: number +declare export var minutesInHour: number +declare export var monthsInQuarter: number +declare export var monthsInYear: number +declare export var quartersInYear: number +declare export var secondsInHour: number +declare export var secondsInMinute: number diff --git a/node_modules/date-fns/esm/daysToWeeks/index.d.ts b/node_modules/date-fns/esm/daysToWeeks/index.d.ts new file mode 100644 index 00000000..666112f5 --- /dev/null +++ b/node_modules/date-fns/esm/daysToWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { daysToWeeks } from 'date-fns' +export default daysToWeeks diff --git a/node_modules/date-fns/esm/daysToWeeks/index.js b/node_modules/date-fns/esm/daysToWeeks/index.js new file mode 100644 index 00000000..a9c4e602 --- /dev/null +++ b/node_modules/date-fns/esm/daysToWeeks/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { daysInWeek } from "../constants/index.js"; +/** + * @name daysToWeeks + * @category Conversion Helpers + * @summary Convert days to weeks. + * + * @description + * Convert a number of days to a full number of weeks. + * + * @param {number} days - number of days to be converted + * + * @returns {number} the number of days converted in weeks + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 14 days to weeks: + * const result = daysToWeeks(14) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = daysToWeeks(13) + * //=> 1 + */ + +export default function daysToWeeks(days) { + requiredArgs(1, arguments); + var weeks = days / daysInWeek; + return Math.floor(weeks); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/daysToWeeks/index.js.flow b/node_modules/date-fns/esm/daysToWeeks/index.js.flow new file mode 100644 index 00000000..181aec6e --- /dev/null +++ b/node_modules/date-fns/esm/daysToWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (days: number) => number diff --git a/node_modules/date-fns/esm/daysToWeeks/package.json b/node_modules/date-fns/esm/daysToWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/daysToWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInBusinessDays/index.d.ts b/node_modules/date-fns/esm/differenceInBusinessDays/index.d.ts new file mode 100644 index 00000000..8decd89c --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInBusinessDays } from 'date-fns' +export default differenceInBusinessDays diff --git a/node_modules/date-fns/esm/differenceInBusinessDays/index.js b/node_modules/date-fns/esm/differenceInBusinessDays/index.js new file mode 100644 index 00000000..46874b44 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/index.js @@ -0,0 +1,77 @@ +import addDays from "../addDays/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import isSameDay from "../isSameDay/index.js"; +import isValid from "../isValid/index.js"; +import isWeekend from "../isWeekend/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name differenceInBusinessDays + * @category Day Helpers + * @summary Get the number of business days between the given dates. + * + * @description + * Get the number of business day periods between the given dates. + * Business days being days that arent in the weekend. + * Like `differenceInCalendarDays`, the function removes the times from + * the dates before calculating the difference. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of business days + * @throws {TypeError} 2 arguments required + * + * @example + * // How many business days are between + * // 10 January 2014 and 20 July 2014? + * const result = differenceInBusinessDays( + * new Date(2014, 6, 20), + * new Date(2014, 0, 10) + * ) + * //=> 136 + * + * // How many business days are between + * // 30 November 2021 and 1 November 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 30), + * new Date(2021, 10, 1) + * ) + * //=> 21 + * + * // How many business days are between + * // 1 November 2021 and 1 December 2021? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 11, 1) + * ) + * //=> -22 + * + * // How many business days are between + * // 1 November 2021 and 1 November 2021 ? + * const result = differenceInBusinessDays( + * new Date(2021, 10, 1), + * new Date(2021, 10, 1) + * ) + * //=> 0 + */ + +export default function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + if (!isValid(dateLeft) || !isValid(dateRight)) return NaN; + var calendarDifference = differenceInCalendarDays(dateLeft, dateRight); + var sign = calendarDifference < 0 ? -1 : 1; + var weeks = toInteger(calendarDifference / 7); + var result = weeks * 5; + dateRight = addDays(dateRight, weeks * 7); // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week + + while (!isSameDay(dateLeft, dateRight)) { + // sign is used to account for both negative and positive differences + result += isWeekend(dateRight) ? 0 : sign; + dateRight = addDays(dateRight, sign); + } + + return result === 0 ? 0 : result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInBusinessDays/index.js.flow b/node_modules/date-fns/esm/differenceInBusinessDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInBusinessDays/package.json b/node_modules/date-fns/esm/differenceInBusinessDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarDays/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarDays/index.d.ts new file mode 100644 index 00000000..384b796a --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarDays } from 'date-fns' +export default differenceInCalendarDays diff --git a/node_modules/date-fns/esm/differenceInCalendarDays/index.js b/node_modules/date-fns/esm/differenceInCalendarDays/index.js new file mode 100644 index 00000000..ee146d6a --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/index.js @@ -0,0 +1,46 @@ +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import startOfDay from "../startOfDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_DAY = 86400000; +/** + * @name differenceInCalendarDays + * @category Day Helpers + * @summary Get the number of calendar days between the given dates. + * + * @description + * Get the number of calendar days between the given dates. This means that the times are removed + * from the dates and then the difference in days is calculated. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar days + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInCalendarDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 366 + * // How many calendar days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInCalendarDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 1 + */ + +export default function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var startOfDayLeft = startOfDay(dirtyDateLeft); + var startOfDayRight = startOfDay(dirtyDateRight); + var timestampLeft = startOfDayLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfDayLeft); + var timestampRight = startOfDayRight.getTime() - getTimezoneOffsetInMilliseconds(startOfDayRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a day is not constant + // (e.g. it's different in the day of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarDays/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarDays/package.json b/node_modules/date-fns/esm/differenceInCalendarDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.d.ts new file mode 100644 index 00000000..bd8325c8 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeekYears } from 'date-fns' +export default differenceInCalendarISOWeekYears diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js new file mode 100644 index 00000000..88ecfe6b --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,30 @@ +import getISOWeekYear from "../getISOWeekYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInCalendarISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of calendar ISO week-numbering years between the given dates. + * + * @description + * Get the number of calendar ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar ISO week-numbering years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012? + * const result = differenceInCalendarISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 2 + */ + +export default function differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + return getISOWeekYear(dirtyDateLeft) - getISOWeekYear(dirtyDateRight); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/package.json b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.d.ts new file mode 100644 index 00000000..73642278 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeeks } from 'date-fns' +export default differenceInCalendarISOWeeks diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js new file mode 100644 index 00000000..707c4315 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,39 @@ +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name differenceInCalendarISOWeeks + * @category ISO Week Helpers + * @summary Get the number of calendar ISO weeks between the given dates. + * + * @description + * Get the number of calendar ISO weeks between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar ISO weeks + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014? + * const result = differenceInCalendarISOWeeks( + * new Date(2014, 6, 21), + * new Date(2014, 6, 6) + * ) + * //=> 3 + */ + +export default function differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var startOfISOWeekLeft = startOfISOWeek(dirtyDateLeft); + var startOfISOWeekRight = startOfISOWeek(dirtyDateRight); + var timestampLeft = startOfISOWeekLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfISOWeekLeft); + var timestampRight = startOfISOWeekRight.getTime() - getTimezoneOffsetInMilliseconds(startOfISOWeekRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarISOWeeks/package.json b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarISOWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarMonths/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarMonths/index.d.ts new file mode 100644 index 00000000..743bf763 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarMonths } from 'date-fns' +export default differenceInCalendarMonths diff --git a/node_modules/date-fns/esm/differenceInCalendarMonths/index.js b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js new file mode 100644 index 00000000..1f411c58 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js @@ -0,0 +1,32 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInCalendarMonths + * @category Month Helpers + * @summary Get the number of calendar months between the given dates. + * + * @description + * Get the number of calendar months between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar months + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar months are between 31 January 2014 and 1 September 2014? + * const result = differenceInCalendarMonths( + * new Date(2014, 8, 1), + * new Date(2014, 0, 31) + * ) + * //=> 8 + */ + +export default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); + var monthDiff = dateLeft.getMonth() - dateRight.getMonth(); + return yearDiff * 12 + monthDiff; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarMonths/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarMonths/package.json b/node_modules/date-fns/esm/differenceInCalendarMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarQuarters/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.d.ts new file mode 100644 index 00000000..177e0724 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarQuarters } from 'date-fns' +export default differenceInCalendarQuarters diff --git a/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js new file mode 100644 index 00000000..ecb0fca4 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js @@ -0,0 +1,33 @@ +import getQuarter from "../getQuarter/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInCalendarQuarters + * @category Quarter Helpers + * @summary Get the number of calendar quarters between the given dates. + * + * @description + * Get the number of calendar quarters between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar quarters + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInCalendarQuarters( + * new Date(2014, 6, 2), + * new Date(2013, 11, 31) + * ) + * //=> 3 + */ + +export default function differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); + var quarterDiff = getQuarter(dateLeft) - getQuarter(dateRight); + return yearDiff * 4 + quarterDiff; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarQuarters/package.json b/node_modules/date-fns/esm/differenceInCalendarQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarWeeks/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.d.ts new file mode 100644 index 00000000..c370dd69 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeks } from 'date-fns' +export default differenceInCalendarWeeks diff --git a/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js new file mode 100644 index 00000000..77ce22f7 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js @@ -0,0 +1,51 @@ +import startOfWeek from "../startOfWeek/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name differenceInCalendarWeeks + * @category Week Helpers + * @summary Get the number of calendar weeks between the given dates. + * + * @description + * Get the number of calendar weeks between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the number of calendar weeks + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // How many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5) + * ) + * //=> 3 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInCalendarWeeks( + * new Date(2014, 6, 20), + * new Date(2014, 6, 5), + * { weekStartsOn: 1 } + * ) + * //=> 2 + */ + +export default function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options) { + requiredArgs(2, arguments); + var startOfWeekLeft = startOfWeek(dirtyDateLeft, options); + var startOfWeekRight = startOfWeek(dirtyDateRight, options); + var timestampLeft = startOfWeekLeft.getTime() - getTimezoneOffsetInMilliseconds(startOfWeekLeft); + var timestampRight = startOfWeekRight.getTime() - getTimezoneOffsetInMilliseconds(startOfWeekRight); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js.flow new file mode 100644 index 00000000..e4968a99 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarWeeks/package.json b/node_modules/date-fns/esm/differenceInCalendarWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarYears/index.d.ts b/node_modules/date-fns/esm/differenceInCalendarYears/index.d.ts new file mode 100644 index 00000000..3692b07f --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarYears } from 'date-fns' +export default differenceInCalendarYears diff --git a/node_modules/date-fns/esm/differenceInCalendarYears/index.js b/node_modules/date-fns/esm/differenceInCalendarYears/index.js new file mode 100644 index 00000000..0a43b925 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/index.js @@ -0,0 +1,30 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInCalendarYears + * @category Year Helpers + * @summary Get the number of calendar years between the given dates. + * + * @description + * Get the number of calendar years between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of calendar years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many calendar years are between 31 December 2013 and 11 February 2015? + * const result = differenceInCalendarYears( + * new Date(2015, 1, 11), + * new Date(2013, 11, 31) + * ) + * //=> 2 + */ + +export default function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + return dateLeft.getFullYear() - dateRight.getFullYear(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInCalendarYears/index.js.flow b/node_modules/date-fns/esm/differenceInCalendarYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInCalendarYears/package.json b/node_modules/date-fns/esm/differenceInCalendarYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInCalendarYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInDays/index.d.ts b/node_modules/date-fns/esm/differenceInDays/index.d.ts new file mode 100644 index 00000000..de04cde2 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInDays } from 'date-fns' +export default differenceInDays diff --git a/node_modules/date-fns/esm/differenceInDays/index.js b/node_modules/date-fns/esm/differenceInDays/index.js new file mode 100644 index 00000000..71cc3e7d --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/index.js @@ -0,0 +1,83 @@ +import toDate from "../toDate/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; // Like `compareAsc` but uses local time not UTC, which is needed +// for accurate equality comparisons of UTC timestamps that end up +// having the same representation in local time, e.g. one hour before +// DST ends vs. the instant that DST ends. + +function compareLocalAsc(dateLeft, dateRight) { + var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds(); + + if (diff < 0) { + return -1; + } else if (diff > 0) { + return 1; // Return 0 if diff is 0; return NaN if diff is NaN + } else { + return diff; + } +} +/** + * @name differenceInDays + * @category Day Helpers + * @summary Get the number of full days between the given dates. + * + * @description + * Get the number of full day periods between two dates. Fractional days are + * truncated towards zero. + * + * One "full day" is the distance between a local time in one day to the same + * local time on the next or previous day. A full day can sometimes be less than + * or more than 24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 24-hour periods, use this instead: + * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`. + * + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full days according to the local timezone + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full days are between + * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? + * const result = differenceInDays( + * new Date(2012, 6, 2, 0, 0), + * new Date(2011, 6, 2, 23, 0) + * ) + * //=> 365 + * // How many full days are between + * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? + * const result = differenceInDays( + * new Date(2011, 6, 3, 0, 1), + * new Date(2011, 6, 2, 23, 59) + * ) + * //=> 0 + * // How many full days are between + * // 1 March 2020 0:00 and 1 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 92 days, even in + * // time zones where DST starts and the + * // period has only 92*24-1 hours. + * const result = differenceInDays( + * new Date(2020, 5, 1), + * new Date(2020, 2, 1) + * ) +//=> 92 + */ + + +export default function differenceInDays(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var sign = compareLocalAsc(dateLeft, dateRight); + var difference = Math.abs(differenceInCalendarDays(dateLeft, dateRight)); + dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full + // If so, result must be decreased by 1 in absolute value + + var isLastDayNotFull = Number(compareLocalAsc(dateLeft, dateRight) === -sign); + var result = sign * (difference - isLastDayNotFull); // Prevent negative zero + + return result === 0 ? 0 : result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInDays/index.js.flow b/node_modules/date-fns/esm/differenceInDays/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInDays/package.json b/node_modules/date-fns/esm/differenceInDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInHours/index.d.ts b/node_modules/date-fns/esm/differenceInHours/index.d.ts new file mode 100644 index 00000000..4559ab98 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHours } from 'date-fns' +export default differenceInHours diff --git a/node_modules/date-fns/esm/differenceInHours/index.js b/node_modules/date-fns/esm/differenceInHours/index.js new file mode 100644 index 00000000..9dd9b58a --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/index.js @@ -0,0 +1,33 @@ +import { millisecondsInHour } from "../constants/index.js"; +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +/** + * @name differenceInHours + * @category Hour Helpers + * @summary Get the number of hours between the given dates. + * + * @description + * Get the number of hours between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of hours + * @throws {TypeError} 2 arguments required + * + * @example + * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00? + * const result = differenceInHours( + * new Date(2014, 6, 2, 19, 0), + * new Date(2014, 6, 2, 6, 50) + * ) + * //=> 12 + */ + +export default function differenceInHours(dateLeft, dateRight, options) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInHour; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInHours/index.js.flow b/node_modules/date-fns/esm/differenceInHours/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInHours/package.json b/node_modules/date-fns/esm/differenceInHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInISOWeekYears/index.d.ts b/node_modules/date-fns/esm/differenceInISOWeekYears/index.d.ts new file mode 100644 index 00000000..ce7cb574 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInISOWeekYears } from 'date-fns' +export default differenceInISOWeekYears diff --git a/node_modules/date-fns/esm/differenceInISOWeekYears/index.js b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js new file mode 100644 index 00000000..e633b269 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js @@ -0,0 +1,44 @@ +import toDate from "../toDate/index.js"; +import differenceInCalendarISOWeekYears from "../differenceInCalendarISOWeekYears/index.js"; +import compareAsc from "../compareAsc/index.js"; +import subISOWeekYears from "../subISOWeekYears/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of full ISO week-numbering years between the given dates. + * + * @description + * Get the number of full ISO week-numbering years between the given dates. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full ISO week-numbering years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012? + * const result = differenceInISOWeekYears( + * new Date(2012, 0, 1), + * new Date(2010, 0, 1) + * ) + * //=> 1 + */ + +export default function differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var sign = compareAsc(dateLeft, dateRight); + var difference = Math.abs(differenceInCalendarISOWeekYears(dateLeft, dateRight)); + dateLeft = subISOWeekYears(dateLeft, sign * difference); // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1 + // if last calendar ISO year is not full + // If so, result must be decreased by 1 in absolute value + + var isLastISOWeekYearNotFull = Number(compareAsc(dateLeft, dateRight) === -sign); + var result = sign * (difference - isLastISOWeekYearNotFull); // Prevent negative zero + + return result === 0 ? 0 : result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInISOWeekYears/index.js.flow b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInISOWeekYears/package.json b/node_modules/date-fns/esm/differenceInISOWeekYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMilliseconds/index.d.ts b/node_modules/date-fns/esm/differenceInMilliseconds/index.d.ts new file mode 100644 index 00000000..c72a3ab8 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMilliseconds } from 'date-fns' +export default differenceInMilliseconds diff --git a/node_modules/date-fns/esm/differenceInMilliseconds/index.js b/node_modules/date-fns/esm/differenceInMilliseconds/index.js new file mode 100644 index 00000000..c25c2813 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInMilliseconds + * @category Millisecond Helpers + * @summary Get the number of milliseconds between the given dates. + * + * @description + * Get the number of milliseconds between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of milliseconds + * @throws {TypeError} 2 arguments required + * + * @example + * // How many milliseconds are between + * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700? + * const result = differenceInMilliseconds( + * new Date(2014, 6, 2, 12, 30, 21, 700), + * new Date(2014, 6, 2, 12, 30, 20, 600) + * ) + * //=> 1100 + */ + +export default function differenceInMilliseconds(dateLeft, dateRight) { + requiredArgs(2, arguments); + return toDate(dateLeft).getTime() - toDate(dateRight).getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMilliseconds/index.js.flow b/node_modules/date-fns/esm/differenceInMilliseconds/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInMilliseconds/package.json b/node_modules/date-fns/esm/differenceInMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMinutes/index.d.ts b/node_modules/date-fns/esm/differenceInMinutes/index.d.ts new file mode 100644 index 00000000..28348fce --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutes } from 'date-fns' +export default differenceInMinutes diff --git a/node_modules/date-fns/esm/differenceInMinutes/index.js b/node_modules/date-fns/esm/differenceInMinutes/index.js new file mode 100644 index 00000000..4fbfebce --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/index.js @@ -0,0 +1,41 @@ +import { millisecondsInMinute } from "../constants/index.js"; +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +/** + * @name differenceInMinutes + * @category Minute Helpers + * @summary Get the number of minutes between the given dates. + * + * @description + * Get the signed number of full (rounded towards 0) minutes between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of minutes + * @throws {TypeError} 2 arguments required + * + * @example + * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00? + * const result = differenceInMinutes( + * new Date(2014, 6, 2, 12, 20, 0), + * new Date(2014, 6, 2, 12, 7, 59) + * ) + * //=> 12 + * + * @example + * // How many minutes are between 10:01:59 and 10:00:00 + * const result = differenceInMinutes( + * new Date(2000, 0, 1, 10, 0, 0), + * new Date(2000, 0, 1, 10, 1, 59) + * ) + * //=> -1 + */ + +export default function differenceInMinutes(dateLeft, dateRight, options) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMinutes/index.js.flow b/node_modules/date-fns/esm/differenceInMinutes/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInMinutes/package.json b/node_modules/date-fns/esm/differenceInMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMonths/index.d.ts b/node_modules/date-fns/esm/differenceInMonths/index.d.ts new file mode 100644 index 00000000..8fbe9775 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMonths } from 'date-fns' +export default differenceInMonths diff --git a/node_modules/date-fns/esm/differenceInMonths/index.js b/node_modules/date-fns/esm/differenceInMonths/index.js new file mode 100644 index 00000000..7f1f206f --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/index.js @@ -0,0 +1,56 @@ +import toDate from "../toDate/index.js"; +import differenceInCalendarMonths from "../differenceInCalendarMonths/index.js"; +import compareAsc from "../compareAsc/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import isLastDayOfMonth from "../isLastDayOfMonth/index.js"; +/** + * @name differenceInMonths + * @category Month Helpers + * @summary Get the number of full months between the given dates. + * + * @description + * Get the number of full months between the given dates using trunc as a default rounding method. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full months + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full months are between 31 January 2014 and 1 September 2014? + * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31)) + * //=> 7 + */ + +export default function differenceInMonths(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var sign = compareAsc(dateLeft, dateRight); + var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight)); + var result; // Check for the difference of less than month + + if (difference < 1) { + result = 0; + } else { + if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) { + // This will check if the date is end of Feb and assign a higher end of month date + // to compare it with Jan + dateLeft.setDate(30); + } + + dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full + // If so, result must be decreased by 1 in absolute value + + var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month + + if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) { + isLastMonthNotFull = false; + } + + result = sign * (difference - Number(isLastMonthNotFull)); + } // Prevent negative zero + + + return result === 0 ? 0 : result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInMonths/index.js.flow b/node_modules/date-fns/esm/differenceInMonths/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInMonths/package.json b/node_modules/date-fns/esm/differenceInMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInQuarters/index.d.ts b/node_modules/date-fns/esm/differenceInQuarters/index.d.ts new file mode 100644 index 00000000..9cc693b9 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuarters } from 'date-fns' +export default differenceInQuarters diff --git a/node_modules/date-fns/esm/differenceInQuarters/index.js b/node_modules/date-fns/esm/differenceInQuarters/index.js new file mode 100644 index 00000000..79b0d216 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/index.js @@ -0,0 +1,29 @@ +import differenceInMonths from "../differenceInMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +/** + * @name differenceInQuarters + * @category Quarter Helpers + * @summary Get the number of quarters between the given dates. + * + * @description + * Get the number of quarters between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of full quarters + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full quarters are between 31 December 2013 and 2 July 2014? + * const result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31)) + * //=> 2 + */ + +export default function differenceInQuarters(dateLeft, dateRight, options) { + requiredArgs(2, arguments); + var diff = differenceInMonths(dateLeft, dateRight) / 3; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInQuarters/index.js.flow b/node_modules/date-fns/esm/differenceInQuarters/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInQuarters/package.json b/node_modules/date-fns/esm/differenceInQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInSeconds/index.d.ts b/node_modules/date-fns/esm/differenceInSeconds/index.d.ts new file mode 100644 index 00000000..e317fe27 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSeconds } from 'date-fns' +export default differenceInSeconds diff --git a/node_modules/date-fns/esm/differenceInSeconds/index.js b/node_modules/date-fns/esm/differenceInSeconds/index.js new file mode 100644 index 00000000..86821076 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/index.js @@ -0,0 +1,33 @@ +import differenceInMilliseconds from "../differenceInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +/** + * @name differenceInSeconds + * @category Second Helpers + * @summary Get the number of seconds between the given dates. + * + * @description + * Get the number of seconds between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of seconds + * @throws {TypeError} 2 arguments required + * + * @example + * // How many seconds are between + * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000? + * const result = differenceInSeconds( + * new Date(2014, 6, 2, 12, 30, 20, 0), + * new Date(2014, 6, 2, 12, 30, 7, 999) + * ) + * //=> 12 + */ + +export default function differenceInSeconds(dateLeft, dateRight, options) { + requiredArgs(2, arguments); + var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInSeconds/index.js.flow b/node_modules/date-fns/esm/differenceInSeconds/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInSeconds/package.json b/node_modules/date-fns/esm/differenceInSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInWeeks/index.d.ts b/node_modules/date-fns/esm/differenceInWeeks/index.d.ts new file mode 100644 index 00000000..a42614c9 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeks } from 'date-fns' +export default differenceInWeeks diff --git a/node_modules/date-fns/esm/differenceInWeeks/index.js b/node_modules/date-fns/esm/differenceInWeeks/index.js new file mode 100644 index 00000000..0a8b8259 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/index.js @@ -0,0 +1,50 @@ +import differenceInDays from "../differenceInDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +/** + * @name differenceInWeeks + * @category Week Helpers + * @summary Get the number of full weeks between the given dates. + * + * @description + * Get the number of full weeks between two dates. Fractional weeks are + * truncated towards zero by default. + * + * One "full week" is the distance between a local time in one day to the same + * local time 7 days earlier or later. A full week can sometimes be less than + * or more than 7*24 hours if a daylight savings change happens between two dates. + * + * To ignore DST and only measure exact 7*24-hour periods, use this instead: + * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`. + * + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @param {Object} [options] - an object with options. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Number} the number of full weeks + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full weeks are between 5 July 2014 and 20 July 2014? + * const result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5)) + * //=> 2 + * + * // How many full weeks are between + * // 1 March 2020 0:00 and 6 June 2020 0:00 ? + * // Note: because local time is used, the + * // result will always be 8 weeks (54 days), + * // even if DST starts and the period has + * // only 54*24-1 hours. + * const result = differenceInWeeks( + * new Date(2020, 5, 1), + * new Date(2020, 2, 6) + * ) + * //=> 8 + */ + +export default function differenceInWeeks(dateLeft, dateRight, options) { + requiredArgs(2, arguments); + var diff = differenceInDays(dateLeft, dateRight) / 7; + return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInWeeks/index.js.flow b/node_modules/date-fns/esm/differenceInWeeks/index.js.flow new file mode 100644 index 00000000..789902e3 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } +) => number diff --git a/node_modules/date-fns/esm/differenceInWeeks/package.json b/node_modules/date-fns/esm/differenceInWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInYears/index.d.ts b/node_modules/date-fns/esm/differenceInYears/index.d.ts new file mode 100644 index 00000000..df839f6a --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInYears } from 'date-fns' +export default differenceInYears diff --git a/node_modules/date-fns/esm/differenceInYears/index.js b/node_modules/date-fns/esm/differenceInYears/index.js new file mode 100644 index 00000000..eaf2188b --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/index.js @@ -0,0 +1,40 @@ +import toDate from "../toDate/index.js"; +import differenceInCalendarYears from "../differenceInCalendarYears/index.js"; +import compareAsc from "../compareAsc/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name differenceInYears + * @category Year Helpers + * @summary Get the number of full years between the given dates. + * + * @description + * Get the number of full years between the given dates. + * + * @param {Date|Number} dateLeft - the later date + * @param {Date|Number} dateRight - the earlier date + * @returns {Number} the number of full years + * @throws {TypeError} 2 arguments required + * + * @example + * // How many full years are between 31 December 2013 and 11 February 2015? + * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31)) + * //=> 1 + */ + +export default function differenceInYears(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + var sign = compareAsc(dateLeft, dateRight); + var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing + // with leap days + + dateLeft.setFullYear(1584); + dateRight.setFullYear(1584); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full + // If so, result must be decreased by 1 in absolute value + + var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign; + var result = sign * (difference - Number(isLastYearNotFull)); // Prevent negative zero + + return result === 0 ? 0 : result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/differenceInYears/index.js.flow b/node_modules/date-fns/esm/differenceInYears/index.js.flow new file mode 100644 index 00000000..c7998197 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => number diff --git a/node_modules/date-fns/esm/differenceInYears/package.json b/node_modules/date-fns/esm/differenceInYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/differenceInYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachDayOfInterval/index.d.ts b/node_modules/date-fns/esm/eachDayOfInterval/index.d.ts new file mode 100644 index 00000000..80fc0dc7 --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfInterval } from 'date-fns' +export default eachDayOfInterval diff --git a/node_modules/date-fns/esm/eachDayOfInterval/index.js b/node_modules/date-fns/esm/eachDayOfInterval/index.js new file mode 100644 index 00000000..c40ab1e1 --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/index.js @@ -0,0 +1,61 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachDayOfInterval + * @category Interval Helpers + * @summary Return the array of dates within the specified time interval. + * + * @description + * Return the array of dates within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. + * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.step` must be a number greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each day between 6 October 2014 and 10 October 2014: + * const result = eachDayOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 9, 10) + * }) + * //=> [ + * // Mon Oct 06 2014 00:00:00, + * // Tue Oct 07 2014 00:00:00, + * // Wed Oct 08 2014 00:00:00, + * // Thu Oct 09 2014 00:00:00, + * // Fri Oct 10 2014 00:00:00 + * // ] + */ + +export default function eachDayOfInterval(dirtyInterval, options) { + var _options$step; + + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push(toDate(currentDate)); + currentDate.setDate(currentDate.getDate() + step); + currentDate.setHours(0, 0, 0, 0); + } + + return dates; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachDayOfInterval/index.js.flow b/node_modules/date-fns/esm/eachDayOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/esm/eachDayOfInterval/package.json b/node_modules/date-fns/esm/eachDayOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachDayOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachHourOfInterval/index.d.ts b/node_modules/date-fns/esm/eachHourOfInterval/index.d.ts new file mode 100644 index 00000000..4c3addd3 --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfInterval } from 'date-fns' +export default eachHourOfInterval diff --git a/node_modules/date-fns/esm/eachHourOfInterval/index.js b/node_modules/date-fns/esm/eachHourOfInterval/index.js new file mode 100644 index 00000000..3bf096da --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/index.js @@ -0,0 +1,61 @@ +import addHours from "../addHours/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name eachHourOfInterval + * @category Interval Helpers + * @summary Return the array of hours within the specified time interval. + * + * @description + * Return the array of hours within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1. + * @returns {Date[]} the array with starts of hours from the hour of the interval start to the hour of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.step` must be a number greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each hour between 6 October 2014, 12:00 and 6 October 2014, 15:00 + * const result = eachHourOfInterval({ + * start: new Date(2014, 9, 6, 12), + * end: new Date(2014, 9, 6, 15) + * }) + * //=> [ + * // Mon Oct 06 2014 12:00:00, + * // Mon Oct 06 2014 13:00:00, + * // Mon Oct 06 2014 14:00:00, + * // Mon Oct 06 2014 15:00:00 + * // ] + */ +export default function eachHourOfInterval(dirtyInterval, options) { + var _options$step; + + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var startTime = startDate.getTime(); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startTime <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setMinutes(0, 0, 0); + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push(toDate(currentDate)); + currentDate = addHours(currentDate, step); + } + + return dates; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachHourOfInterval/index.js.flow b/node_modules/date-fns/esm/eachHourOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/esm/eachHourOfInterval/package.json b/node_modules/date-fns/esm/eachHourOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachHourOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachMinuteOfInterval/index.d.ts b/node_modules/date-fns/esm/eachMinuteOfInterval/index.d.ts new file mode 100644 index 00000000..f96a5e9a --- /dev/null +++ b/node_modules/date-fns/esm/eachMinuteOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfInterval } from 'date-fns' +export default eachMinuteOfInterval diff --git a/node_modules/date-fns/esm/eachMinuteOfInterval/index.js b/node_modules/date-fns/esm/eachMinuteOfInterval/index.js new file mode 100644 index 00000000..8334a6db --- /dev/null +++ b/node_modules/date-fns/esm/eachMinuteOfInterval/index.js @@ -0,0 +1,60 @@ +import addMinutes from "../addMinutes/index.js"; +import toDate from "../toDate/index.js"; +import startOfMinute from "../startOfMinute/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name eachMinuteOfInterval + * @category Interval Helpers + * @summary Return the array of minutes within the specified time interval. + * + * @description + * Returns the array of minutes within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Number} [options.step=1] - the step to increment by. The step must be equal to or greater than 1 + * @throws {TypeError} 1 argument required + * @returns {Date[]} the array with starts of minutes from the minute of the interval start to the minute of the interval end + * @throws {RangeError} `options.step` must be a number equal to or greater than 1 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each minute between 14 October 2020, 13:00 and 14 October 2020, 13:03 + * const result = eachMinuteOfInterval({ + * start: new Date(2014, 9, 14, 13), + * end: new Date(2014, 9, 14, 13, 3) + * }) + * //=> [ + * // Wed Oct 14 2014 13:00:00, + * // Wed Oct 14 2014 13:01:00, + * // Wed Oct 14 2014 13:02:00, + * // Wed Oct 14 2014 13:03:00 + * // ] + */ +export default function eachMinuteOfInterval(interval, options) { + var _options$step; + + requiredArgs(1, arguments); + var startDate = startOfMinute(toDate(interval.start)); + var endDate = toDate(interval.end); + var startTime = startDate.getTime(); + var endTime = endDate.getTime(); + + if (startTime >= endTime) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + var step = Number((_options$step = options === null || options === void 0 ? void 0 : options.step) !== null && _options$step !== void 0 ? _options$step : 1); + if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number equal to or greater than 1'); + + while (currentDate.getTime() <= endTime) { + dates.push(toDate(currentDate)); + currentDate = addMinutes(currentDate, step); + } + + return dates; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachMinuteOfInterval/index.js.flow b/node_modules/date-fns/esm/eachMinuteOfInterval/index.js.flow new file mode 100644 index 00000000..5a9b8e45 --- /dev/null +++ b/node_modules/date-fns/esm/eachMinuteOfInterval/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + step?: number, + } +) => Date[] diff --git a/node_modules/date-fns/esm/eachMinuteOfInterval/package.json b/node_modules/date-fns/esm/eachMinuteOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachMinuteOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachMonthOfInterval/index.d.ts b/node_modules/date-fns/esm/eachMonthOfInterval/index.d.ts new file mode 100644 index 00000000..bda4a186 --- /dev/null +++ b/node_modules/date-fns/esm/eachMonthOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMonthOfInterval } from 'date-fns' +export default eachMonthOfInterval diff --git a/node_modules/date-fns/esm/eachMonthOfInterval/index.js b/node_modules/date-fns/esm/eachMonthOfInterval/index.js new file mode 100644 index 00000000..9462bcaf --- /dev/null +++ b/node_modules/date-fns/esm/eachMonthOfInterval/index.js @@ -0,0 +1,56 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachMonthOfInterval + * @category Interval Helpers + * @summary Return the array of months within the specified time interval. + * + * @description + * Return the array of months within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each month between 6 February 2014 and 10 August 2014: + * const result = eachMonthOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Sat Feb 01 2014 00:00:00, + * // Sat Mar 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Thu May 01 2014 00:00:00, + * // Sun Jun 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // Fri Aug 01 2014 00:00:00 + * // ] + */ + +export default function eachMonthOfInterval(dirtyInterval) { + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var endTime = endDate.getTime(); + var dates = []; // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + currentDate.setDate(1); + + while (currentDate.getTime() <= endTime) { + dates.push(toDate(currentDate)); + currentDate.setMonth(currentDate.getMonth() + 1); + } + + return dates; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachMonthOfInterval/index.js.flow b/node_modules/date-fns/esm/eachMonthOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/esm/eachMonthOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/esm/eachMonthOfInterval/package.json b/node_modules/date-fns/esm/eachMonthOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachMonthOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachQuarterOfInterval/index.d.ts b/node_modules/date-fns/esm/eachQuarterOfInterval/index.d.ts new file mode 100644 index 00000000..879b5485 --- /dev/null +++ b/node_modules/date-fns/esm/eachQuarterOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachQuarterOfInterval } from 'date-fns' +export default eachQuarterOfInterval diff --git a/node_modules/date-fns/esm/eachQuarterOfInterval/index.js b/node_modules/date-fns/esm/eachQuarterOfInterval/index.js new file mode 100644 index 00000000..801d341c --- /dev/null +++ b/node_modules/date-fns/esm/eachQuarterOfInterval/index.js @@ -0,0 +1,55 @@ +import addQuarters from "../addQuarters/index.js"; +import startOfQuarter from "../startOfQuarter/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachQuarterOfInterval + * @category Interval Helpers + * @summary Return the array of quarters within the specified time interval. + * + * @description + * Return the array of quarters within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of quarters from the quarter of the interval start to the quarter of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each quarter within interval 6 February 2014 - 10 August 2014: + * const result = eachQuarterOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2014, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Tue Apr 01 2014 00:00:00, + * // Tue Jul 01 2014 00:00:00, + * // ] + */ + +export default function eachQuarterOfInterval(dirtyInterval) { + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var startDateQuarter = startOfQuarter(startDate); + var endDateQuarter = startOfQuarter(endDate); + endTime = endDateQuarter.getTime(); + var quarters = []; + var currentQuarter = startDateQuarter; + + while (currentQuarter.getTime() <= endTime) { + quarters.push(toDate(currentQuarter)); + currentQuarter = addQuarters(currentQuarter, 1); + } + + return quarters; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachQuarterOfInterval/index.js.flow b/node_modules/date-fns/esm/eachQuarterOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/esm/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/esm/eachQuarterOfInterval/package.json b/node_modules/date-fns/esm/eachQuarterOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachQuarterOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekOfInterval/index.d.ts b/node_modules/date-fns/esm/eachWeekOfInterval/index.d.ts new file mode 100644 index 00000000..24d1a8ae --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfInterval } from 'date-fns' +export default eachWeekOfInterval diff --git a/node_modules/date-fns/esm/eachWeekOfInterval/index.js b/node_modules/date-fns/esm/eachWeekOfInterval/index.js new file mode 100644 index 00000000..2ebb3bf0 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/index.js @@ -0,0 +1,69 @@ +import addWeeks from "../addWeeks/index.js"; +import startOfWeek from "../startOfWeek/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachWeekOfInterval + * @category Interval Helpers + * @summary Return the array of weeks within the specified time interval. + * + * @description + * Return the array of weeks within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date[]} the array with starts of weeks from the week of the interval start to the week of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be 0, 1, ..., 6 + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each week within interval 6 October 2014 - 23 November 2014: + * const result = eachWeekOfInterval({ + * start: new Date(2014, 9, 6), + * end: new Date(2014, 10, 23) + * }) + * //=> [ + * // Sun Oct 05 2014 00:00:00, + * // Sun Oct 12 2014 00:00:00, + * // Sun Oct 19 2014 00:00:00, + * // Sun Oct 26 2014 00:00:00, + * // Sun Nov 02 2014 00:00:00, + * // Sun Nov 09 2014 00:00:00, + * // Sun Nov 16 2014 00:00:00, + * // Sun Nov 23 2014 00:00:00 + * // ] + */ + +export default function eachWeekOfInterval(dirtyInterval, options) { + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var startDateWeek = startOfWeek(startDate, options); + var endDateWeek = startOfWeek(endDate, options); // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet + + startDateWeek.setHours(15); + endDateWeek.setHours(15); + endTime = endDateWeek.getTime(); + var weeks = []; + var currentWeek = startDateWeek; + + while (currentWeek.getTime() <= endTime) { + currentWeek.setHours(0); + weeks.push(toDate(currentWeek)); + currentWeek = addWeeks(currentWeek, 1); + currentWeek.setHours(15); + } + + return weeks; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekOfInterval/index.js.flow b/node_modules/date-fns/esm/eachWeekOfInterval/index.js.flow new file mode 100644 index 00000000..bc8cd5a0 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + interval: Interval, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date[] diff --git a/node_modules/date-fns/esm/eachWeekOfInterval/package.json b/node_modules/date-fns/esm/eachWeekOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfInterval/index.d.ts b/node_modules/date-fns/esm/eachWeekendOfInterval/index.d.ts new file mode 100644 index 00000000..c0b3fea2 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfInterval } from 'date-fns' +export default eachWeekendOfInterval diff --git a/node_modules/date-fns/esm/eachWeekendOfInterval/index.js b/node_modules/date-fns/esm/eachWeekendOfInterval/index.js new file mode 100644 index 00000000..d2c69d78 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfInterval/index.js @@ -0,0 +1,49 @@ +import eachDayOfInterval from "../eachDayOfInterval/index.js"; +import isSunday from "../isSunday/index.js"; +import isWeekend from "../isWeekend/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachWeekendOfInterval + * @category Interval Helpers + * @summary List all the Saturdays and Sundays in the given date interval. + * + * @description + * Get all the Saturdays and Sundays in the given date interval. + * + * @param {Interval} interval - the given interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Lists all Saturdays and Sundays in the given date interval + * const result = eachWeekendOfInterval({ + * start: new Date(2018, 8, 17), + * end: new Date(2018, 8, 30) + * }) + * //=> [ + * // Sat Sep 22 2018 00:00:00, + * // Sun Sep 23 2018 00:00:00, + * // Sat Sep 29 2018 00:00:00, + * // Sun Sep 30 2018 00:00:00 + * // ] + */ + +export default function eachWeekendOfInterval(interval) { + requiredArgs(1, arguments); + var dateInterval = eachDayOfInterval(interval); + var weekends = []; + var index = 0; + + while (index < dateInterval.length) { + var date = dateInterval[index++]; + + if (isWeekend(date)) { + weekends.push(date); + if (isSunday(date)) index = index + 5; + } + } + + return weekends; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfInterval/index.js.flow b/node_modules/date-fns/esm/eachWeekendOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/esm/eachWeekendOfInterval/package.json b/node_modules/date-fns/esm/eachWeekendOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfMonth/index.d.ts b/node_modules/date-fns/esm/eachWeekendOfMonth/index.d.ts new file mode 100644 index 00000000..cb01c45e --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfMonth } from 'date-fns' +export default eachWeekendOfMonth diff --git a/node_modules/date-fns/esm/eachWeekendOfMonth/index.js b/node_modules/date-fns/esm/eachWeekendOfMonth/index.js new file mode 100644 index 00000000..9b005c22 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfMonth/index.js @@ -0,0 +1,42 @@ +import eachWeekendOfInterval from "../eachWeekendOfInterval/index.js"; +import startOfMonth from "../startOfMonth/index.js"; +import endOfMonth from "../endOfMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachWeekendOfMonth + * @category Month Helpers + * @summary List all the Saturdays and Sundays in the given month. + * + * @description + * Get all the Saturdays and Sundays in the given month. + * + * @param {Date|Number} date - the given month + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The passed date is invalid + * + * @example + * // Lists all Saturdays and Sundays in the given month + * const result = eachWeekendOfMonth(new Date(2022, 1, 1)) + * //=> [ + * // Sat Feb 05 2022 00:00:00, + * // Sun Feb 06 2022 00:00:00, + * // Sat Feb 12 2022 00:00:00, + * // Sun Feb 13 2022 00:00:00, + * // Sat Feb 19 2022 00:00:00, + * // Sun Feb 20 2022 00:00:00, + * // Sat Feb 26 2022 00:00:00, + * // Sun Feb 27 2022 00:00:00 + * // ] + */ + +export default function eachWeekendOfMonth(dirtyDate) { + requiredArgs(1, arguments); + var startDate = startOfMonth(dirtyDate); + if (isNaN(startDate.getTime())) throw new RangeError('The passed date is invalid'); + var endDate = endOfMonth(dirtyDate); + return eachWeekendOfInterval({ + start: startDate, + end: endDate + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfMonth/index.js.flow b/node_modules/date-fns/esm/eachWeekendOfMonth/index.js.flow new file mode 100644 index 00000000..7073332e --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date[] diff --git a/node_modules/date-fns/esm/eachWeekendOfMonth/package.json b/node_modules/date-fns/esm/eachWeekendOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfYear/index.d.ts b/node_modules/date-fns/esm/eachWeekendOfYear/index.d.ts new file mode 100644 index 00000000..7cda9d16 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfYear } from 'date-fns' +export default eachWeekendOfYear diff --git a/node_modules/date-fns/esm/eachWeekendOfYear/index.js b/node_modules/date-fns/esm/eachWeekendOfYear/index.js new file mode 100644 index 00000000..14345595 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/index.js @@ -0,0 +1,38 @@ +import eachWeekendOfInterval from "../eachWeekendOfInterval/index.js"; +import endOfYear from "../endOfYear/index.js"; +import startOfYear from "../startOfYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachWeekendOfYear + * @category Year Helpers + * @summary List all the Saturdays and Sundays in the year. + * + * @description + * Get all the Saturdays and Sundays in the year. + * + * @param {Date|Number} date - the given year + * @returns {Date[]} an array containing all the Saturdays and Sundays + * @throws {TypeError} 1 argument required + * @throws {RangeError} The passed date is invalid + * + * @example + * // Lists all Saturdays and Sundays in the year + * const result = eachWeekendOfYear(new Date(2020, 1, 1)) + * //=> [ + * // Sat Jan 03 2020 00:00:00, + * // Sun Jan 04 2020 00:00:00, + * // ... + * // Sun Dec 27 2020 00:00:00 + * // ] + * ] + */ + +export default function eachWeekendOfYear(dirtyDate) { + requiredArgs(1, arguments); + var startDate = startOfYear(dirtyDate); + var endDate = endOfYear(dirtyDate); + return eachWeekendOfInterval({ + start: startDate, + end: endDate + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachWeekendOfYear/index.js.flow b/node_modules/date-fns/esm/eachWeekendOfYear/index.js.flow new file mode 100644 index 00000000..7073332e --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date[] diff --git a/node_modules/date-fns/esm/eachWeekendOfYear/package.json b/node_modules/date-fns/esm/eachWeekendOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachWeekendOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachYearOfInterval/index.d.ts b/node_modules/date-fns/esm/eachYearOfInterval/index.d.ts new file mode 100644 index 00000000..d6d5d5d2 --- /dev/null +++ b/node_modules/date-fns/esm/eachYearOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachYearOfInterval } from 'date-fns' +export default eachYearOfInterval diff --git a/node_modules/date-fns/esm/eachYearOfInterval/index.js b/node_modules/date-fns/esm/eachYearOfInterval/index.js new file mode 100644 index 00000000..3415592e --- /dev/null +++ b/node_modules/date-fns/esm/eachYearOfInterval/index.js @@ -0,0 +1,53 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name eachYearOfInterval + * @category Interval Helpers + * @summary Return the array of yearly timestamps within the specified time interval. + * + * @description + * Return the array of yearly timestamps within the specified time interval. + * + * @param {Interval} interval - the interval. See [Interval]{@link https://date-fns.org/docs/Interval} + * @returns {Date[]} the array with starts of yearly timestamps from the month of the interval start to the month of the interval end + * @throws {TypeError} 1 argument required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // Each year between 6 February 2014 and 10 August 2017: + * const result = eachYearOfInterval({ + * start: new Date(2014, 1, 6), + * end: new Date(2017, 7, 10) + * }) + * //=> [ + * // Wed Jan 01 2014 00:00:00, + * // Thu Jan 01 2015 00:00:00, + * // Fri Jan 01 2016 00:00:00, + * // Sun Jan 01 2017 00:00:00 + * // ] + */ + +export default function eachYearOfInterval(dirtyInterval) { + requiredArgs(1, arguments); + var interval = dirtyInterval || {}; + var startDate = toDate(interval.start); + var endDate = toDate(interval.end); + var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startDate.getTime() <= endTime)) { + throw new RangeError('Invalid interval'); + } + + var dates = []; + var currentDate = startDate; + currentDate.setHours(0, 0, 0, 0); + currentDate.setMonth(0, 1); + + while (currentDate.getTime() <= endTime) { + dates.push(toDate(currentDate)); + currentDate.setFullYear(currentDate.getFullYear() + 1); + } + + return dates; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/eachYearOfInterval/index.js.flow b/node_modules/date-fns/esm/eachYearOfInterval/index.js.flow new file mode 100644 index 00000000..30230a51 --- /dev/null +++ b/node_modules/date-fns/esm/eachYearOfInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Date[] diff --git a/node_modules/date-fns/esm/eachYearOfInterval/package.json b/node_modules/date-fns/esm/eachYearOfInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/eachYearOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfDay/index.d.ts b/node_modules/date-fns/esm/endOfDay/index.d.ts new file mode 100644 index 00000000..2ce61726 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDay } from 'date-fns' +export default endOfDay diff --git a/node_modules/date-fns/esm/endOfDay/index.js b/node_modules/date-fns/esm/endOfDay/index.js new file mode 100644 index 00000000..b835e82f --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfDay + * @category Day Helpers + * @summary Return the end of a day for the given date. + * + * @description + * Return the end of a day for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a day + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a day for 2 September 2014 11:55:00: + * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 23:59:59.999 + */ + +export default function endOfDay(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfDay/index.js.flow b/node_modules/date-fns/esm/endOfDay/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfDay/package.json b/node_modules/date-fns/esm/endOfDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfDecade/index.d.ts b/node_modules/date-fns/esm/endOfDecade/index.d.ts new file mode 100644 index 00000000..c723f138 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecade } from 'date-fns' +export default endOfDecade diff --git a/node_modules/date-fns/esm/endOfDecade/index.js b/node_modules/date-fns/esm/endOfDecade/index.js new file mode 100644 index 00000000..860b9cb3 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/index.js @@ -0,0 +1,32 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfDecade + * @category Decade Helpers + * @summary Return the end of a decade for the given date. + * + * @description + * Return the end of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a decade + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // The end of a decade for 12 May 1984 00:00:00: + * const result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00)) + * //=> Dec 31 1989 23:59:59.999 + */ + +export default function endOfDecade(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + date.setFullYear(decade, 11, 31); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfDecade/index.js.flow b/node_modules/date-fns/esm/endOfDecade/index.js.flow new file mode 100644 index 00000000..364a3bb2 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/esm/endOfDecade/package.json b/node_modules/date-fns/esm/endOfDecade/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfHour/index.d.ts b/node_modules/date-fns/esm/endOfHour/index.d.ts new file mode 100644 index 00000000..10ab321c --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfHour } from 'date-fns' +export default endOfHour diff --git a/node_modules/date-fns/esm/endOfHour/index.js b/node_modules/date-fns/esm/endOfHour/index.js new file mode 100644 index 00000000..59662f05 --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfHour + * @category Hour Helpers + * @summary Return the end of an hour for the given date. + * + * @description + * Return the end of an hour for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an hour + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an hour for 2 September 2014 11:55:00: + * const result = endOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:59:59.999 + */ + +export default function endOfHour(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setMinutes(59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfHour/index.js.flow b/node_modules/date-fns/esm/endOfHour/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfHour/package.json b/node_modules/date-fns/esm/endOfHour/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfISOWeek/index.d.ts b/node_modules/date-fns/esm/endOfISOWeek/index.d.ts new file mode 100644 index 00000000..10c33653 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeek } from 'date-fns' +export default endOfISOWeek diff --git a/node_modules/date-fns/esm/endOfISOWeek/index.js b/node_modules/date-fns/esm/endOfISOWeek/index.js new file mode 100644 index 00000000..b50ba649 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/index.js @@ -0,0 +1,29 @@ +import endOfWeek from "../endOfWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfISOWeek + * @category ISO Week Helpers + * @summary Return the end of an ISO week for the given date. + * + * @description + * Return the end of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an ISO week for 2 September 2014 11:55:00: + * const result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 23:59:59.999 + */ + +export default function endOfISOWeek(dirtyDate) { + requiredArgs(1, arguments); + return endOfWeek(dirtyDate, { + weekStartsOn: 1 + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfISOWeek/index.js.flow b/node_modules/date-fns/esm/endOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfISOWeek/package.json b/node_modules/date-fns/esm/endOfISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/endOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..18783085 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeekYear } from 'date-fns' +export default endOfISOWeekYear diff --git a/node_modules/date-fns/esm/endOfISOWeekYear/index.js b/node_modules/date-fns/esm/endOfISOWeekYear/index.js new file mode 100644 index 00000000..4c619608 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/index.js @@ -0,0 +1,35 @@ +import getISOWeekYear from "../getISOWeekYear/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the end of an ISO week-numbering year for the given date. + * + * @description + * Return the end of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The end of an ISO week-numbering year for 2 July 2005: + * const result = endOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 23:59:59.999 + */ + +export default function endOfISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var year = getISOWeekYear(dirtyDate); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var date = startOfISOWeek(fourthOfJanuaryOfNextYear); + date.setMilliseconds(date.getMilliseconds() - 1); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/endOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfISOWeekYear/package.json b/node_modules/date-fns/esm/endOfISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfMinute/index.d.ts b/node_modules/date-fns/esm/endOfMinute/index.d.ts new file mode 100644 index 00000000..82d1b5d5 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMinute } from 'date-fns' +export default endOfMinute diff --git a/node_modules/date-fns/esm/endOfMinute/index.js b/node_modules/date-fns/esm/endOfMinute/index.js new file mode 100644 index 00000000..bc72b8fd --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfMinute + * @category Minute Helpers + * @summary Return the end of a minute for the given date. + * + * @description + * Return the end of a minute for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a minute + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a minute for 1 December 2014 22:15:45.400: + * const result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:59.999 + */ + +export default function endOfMinute(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setSeconds(59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfMinute/index.js.flow b/node_modules/date-fns/esm/endOfMinute/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfMinute/package.json b/node_modules/date-fns/esm/endOfMinute/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfMonth/index.d.ts b/node_modules/date-fns/esm/endOfMonth/index.d.ts new file mode 100644 index 00000000..59e73541 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMonth } from 'date-fns' +export default endOfMonth diff --git a/node_modules/date-fns/esm/endOfMonth/index.js b/node_modules/date-fns/esm/endOfMonth/index.js new file mode 100644 index 00000000..245a34b5 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfMonth + * @category Month Helpers + * @summary Return the end of a month for the given date. + * + * @description + * Return the end of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a month for 2 September 2014 11:55:00: + * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ + +export default function endOfMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var month = date.getMonth(); + date.setFullYear(date.getFullYear(), month + 1, 0); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfMonth/index.js.flow b/node_modules/date-fns/esm/endOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfMonth/package.json b/node_modules/date-fns/esm/endOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfQuarter/index.d.ts b/node_modules/date-fns/esm/endOfQuarter/index.d.ts new file mode 100644 index 00000000..c91ac76f --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfQuarter } from 'date-fns' +export default endOfQuarter diff --git a/node_modules/date-fns/esm/endOfQuarter/index.js b/node_modules/date-fns/esm/endOfQuarter/index.js new file mode 100644 index 00000000..1c8b4284 --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/index.js @@ -0,0 +1,30 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfQuarter + * @category Quarter Helpers + * @summary Return the end of a year quarter for the given date. + * + * @description + * Return the end of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a quarter + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a quarter for 2 September 2014 11:55:00: + * const result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 23:59:59.999 + */ + +export default function endOfQuarter(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date.setMonth(month, 0); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfQuarter/index.js.flow b/node_modules/date-fns/esm/endOfQuarter/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfQuarter/package.json b/node_modules/date-fns/esm/endOfQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfSecond/index.d.ts b/node_modules/date-fns/esm/endOfSecond/index.d.ts new file mode 100644 index 00000000..3af9fbd9 --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfSecond } from 'date-fns' +export default endOfSecond diff --git a/node_modules/date-fns/esm/endOfSecond/index.js b/node_modules/date-fns/esm/endOfSecond/index.js new file mode 100644 index 00000000..baf376da --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfSecond + * @category Second Helpers + * @summary Return the end of a second for the given date. + * + * @description + * Return the end of a second for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a second + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a second for 1 December 2014 22:15:45.400: + * const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.999 + */ + +export default function endOfSecond(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setMilliseconds(999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfSecond/index.js.flow b/node_modules/date-fns/esm/endOfSecond/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfSecond/package.json b/node_modules/date-fns/esm/endOfSecond/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfToday/index.d.ts b/node_modules/date-fns/esm/endOfToday/index.d.ts new file mode 100644 index 00000000..30de0981 --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfToday } from 'date-fns' +export default endOfToday diff --git a/node_modules/date-fns/esm/endOfToday/index.js b/node_modules/date-fns/esm/endOfToday/index.js new file mode 100644 index 00000000..0e564a30 --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/index.js @@ -0,0 +1,24 @@ +import endOfDay from "../endOfDay/index.js"; +/** + * @name endOfToday + * @category Day Helpers + * @summary Return the end of today. + * @pure false + * + * @description + * Return the end of today. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of today + * + * @example + * // If today is 6 October 2014: + * const result = endOfToday() + * //=> Mon Oct 6 2014 23:59:59.999 + */ + +export default function endOfToday() { + return endOfDay(Date.now()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfToday/index.js.flow b/node_modules/date-fns/esm/endOfToday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/endOfToday/package.json b/node_modules/date-fns/esm/endOfToday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfToday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfTomorrow/index.d.ts b/node_modules/date-fns/esm/endOfTomorrow/index.d.ts new file mode 100644 index 00000000..df5619e3 --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfTomorrow } from 'date-fns' +export default endOfTomorrow diff --git a/node_modules/date-fns/esm/endOfTomorrow/index.js b/node_modules/date-fns/esm/endOfTomorrow/index.js new file mode 100644 index 00000000..4d30510f --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/index.js @@ -0,0 +1,29 @@ +/** + * @name endOfTomorrow + * @category Day Helpers + * @summary Return the end of tomorrow. + * @pure false + * + * @description + * Return the end of tomorrow. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = endOfTomorrow() + * //=> Tue Oct 7 2014 23:59:59.999 + */ +export default function endOfTomorrow() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day + 1); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfTomorrow/index.js.flow b/node_modules/date-fns/esm/endOfTomorrow/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/endOfTomorrow/package.json b/node_modules/date-fns/esm/endOfTomorrow/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfTomorrow/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfWeek/index.d.ts b/node_modules/date-fns/esm/endOfWeek/index.d.ts new file mode 100644 index 00000000..50a77a3f --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeek } from 'date-fns' +export default endOfWeek diff --git a/node_modules/date-fns/esm/endOfWeek/index.js b/node_modules/date-fns/esm/endOfWeek/index.js new file mode 100644 index 00000000..401c760e --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/index.js @@ -0,0 +1,50 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name endOfWeek + * @category Week Helpers + * @summary Return the end of a week for the given date. + * + * @description + * Return the end of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the end of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The end of a week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 23:59:59.999 + * + * @example + * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: + * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 23:59:59.999 + */ +export default function endOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = toDate(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + date.setDate(date.getDate() + diff); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfWeek/index.js.flow b/node_modules/date-fns/esm/endOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/esm/endOfWeek/package.json b/node_modules/date-fns/esm/endOfWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfYear/index.d.ts b/node_modules/date-fns/esm/endOfYear/index.d.ts new file mode 100644 index 00000000..63d5191a --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYear } from 'date-fns' +export default endOfYear diff --git a/node_modules/date-fns/esm/endOfYear/index.js b/node_modules/date-fns/esm/endOfYear/index.js new file mode 100644 index 00000000..4e38f3f9 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name endOfYear + * @category Year Helpers + * @summary Return the end of a year for the given date. + * + * @description + * Return the end of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The end of a year for 2 September 2014 11:55:00: + * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 23:59:59.999 + */ + +export default function endOfYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + date.setFullYear(year + 1, 0, 0); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfYear/index.js.flow b/node_modules/date-fns/esm/endOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/endOfYear/package.json b/node_modules/date-fns/esm/endOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfYesterday/index.d.ts b/node_modules/date-fns/esm/endOfYesterday/index.d.ts new file mode 100644 index 00000000..b06935b6 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYesterday } from 'date-fns' +export default endOfYesterday diff --git a/node_modules/date-fns/esm/endOfYesterday/index.js b/node_modules/date-fns/esm/endOfYesterday/index.js new file mode 100644 index 00000000..33874953 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/index.js @@ -0,0 +1,29 @@ +/** + * @name endOfYesterday + * @category Day Helpers + * @summary Return the end of yesterday. + * @pure false + * + * @description + * Return the end of yesterday. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the end of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = endOfYesterday() + * //=> Sun Oct 5 2014 23:59:59.999 + */ +export default function endOfYesterday() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day - 1); + date.setHours(23, 59, 59, 999); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/endOfYesterday/index.js.flow b/node_modules/date-fns/esm/endOfYesterday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/endOfYesterday/package.json b/node_modules/date-fns/esm/endOfYesterday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/endOfYesterday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/format/index.d.ts b/node_modules/date-fns/esm/format/index.d.ts new file mode 100644 index 00000000..06d38ce2 --- /dev/null +++ b/node_modules/date-fns/esm/format/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { format } from 'date-fns' +export default format diff --git a/node_modules/date-fns/esm/format/index.js b/node_modules/date-fns/esm/format/index.js new file mode 100644 index 00000000..8c65412f --- /dev/null +++ b/node_modules/date-fns/esm/format/index.js @@ -0,0 +1,418 @@ +import isValid from "../isValid/index.js"; +import subMilliseconds from "../subMilliseconds/index.js"; +import toDate from "../toDate/index.js"; +import formatters from "../_lib/format/formatters/index.js"; +import longFormatters from "../_lib/format/longFormatters/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from "../_lib/protectedTokens/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import defaultLocale from "../_lib/defaultLocale/index.js"; // This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps + +var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` + +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name format + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} + * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param {Date|Number} date - the original date + * @param {String} format - the string of tokens + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {String} the formatted date string + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `localize` property + * @throws {RangeError} `options.locale` must contain `formatLong` property + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ + +export default function format(dirtyDate, dirtyFormatStr, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; + + requiredArgs(2, arguments); + var formatStr = String(dirtyFormatStr); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + if (!locale.localize) { + throw new RangeError('locale must contain localize property'); + } + + if (!locale.formatLong) { + throw new RangeError('locale must contain formatLong property'); + } + + var originalDate = toDate(dirtyDate); + + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + // This ensures that when UTC functions will be implemented, locales will be compatible with them. + // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 + + + var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate); + var utcDate = subMilliseconds(originalDate, timezoneOffset); + var formatterOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale, + _originalDate: originalDate + }; + var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter === 'p' || firstCharacter === 'P') { + var longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + + return substring; + }).join('').match(formattingTokensRegExp).map(function (substring) { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + var firstCharacter = substring[0]; + + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + var formatter = formatters[firstCharacter]; + + if (formatter) { + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, String(dirtyDate)); + } + + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) { + throwProtectedError(substring, dirtyFormatStr, String(dirtyDate)); + } + + return formatter(utcDate, substring, locale.localize, formatterOptions); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +function cleanEscapedString(input) { + var matched = input.match(escapedStringRegExp); + + if (!matched) { + return input; + } + + return matched[1].replace(doubleQuoteRegExp, "'"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/format/index.js.flow b/node_modules/date-fns/esm/format/index.js.flow new file mode 100644 index 00000000..ca793937 --- /dev/null +++ b/node_modules/date-fns/esm/format/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + format: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: number, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => string diff --git a/node_modules/date-fns/esm/format/package.json b/node_modules/date-fns/esm/format/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/format/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistance/index.d.ts b/node_modules/date-fns/esm/formatDistance/index.d.ts new file mode 100644 index 00000000..656c64ac --- /dev/null +++ b/node_modules/date-fns/esm/formatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistance } from 'date-fns' +export default formatDistance diff --git a/node_modules/date-fns/esm/formatDistance/index.js b/node_modules/date-fns/esm/formatDistance/index.js new file mode 100644 index 00000000..22559389 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistance/index.js @@ -0,0 +1,190 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import compareAsc from "../compareAsc/index.js"; +import differenceInMonths from "../differenceInMonths/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import defaultLocale from "../_lib/defaultLocale/index.js"; +import toDate from "../toDate/index.js"; +import cloneObject from "../_lib/cloneObject/index.js"; +import assign from "../_lib/assign/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MINUTES_IN_DAY = 1440; +var MINUTES_IN_ALMOST_TWO_DAYS = 2520; +var MINUTES_IN_MONTH = 43200; +var MINUTES_IN_TWO_MONTHS = 86400; +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ + +export default function formatDistance(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale; + + requiredArgs(2, arguments); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain formatDistance property'); + } + + var comparison = compareAsc(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = assign(cloneObject(options), { + addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix), + comparison: comparison + }); + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = toDate(dirtyBaseDate); + dateRight = toDate(dirtyDate); + } else { + dateLeft = toDate(dirtyDate); + dateRight = toDate(dirtyBaseDate); + } + + var seconds = differenceInSeconds(dateRight, dateLeft); + var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000; + var minutes = Math.round((seconds - offsetInSeconds) / 60); + var months; // 0 up to 2 mins + + if (minutes < 2) { + if (options !== null && options !== void 0 && options.includeSeconds) { + if (seconds < 5) { + return locale.formatDistance('lessThanXSeconds', 5, localizeOptions); + } else if (seconds < 10) { + return locale.formatDistance('lessThanXSeconds', 10, localizeOptions); + } else if (seconds < 20) { + return locale.formatDistance('lessThanXSeconds', 20, localizeOptions); + } else if (seconds < 40) { + return locale.formatDistance('halfAMinute', 0, localizeOptions); + } else if (seconds < 60) { + return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); + } else { + return locale.formatDistance('xMinutes', 1, localizeOptions); + } + } else { + if (minutes === 0) { + return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); + } else { + return locale.formatDistance('xMinutes', minutes, localizeOptions); + } + } // 2 mins up to 0.75 hrs + + } else if (minutes < 45) { + return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs + } else if (minutes < 90) { + return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs + } else if (minutes < MINUTES_IN_DAY) { + var hours = Math.round(minutes / 60); + return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days + } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) { + return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days + } else if (minutes < MINUTES_IN_MONTH) { + var days = Math.round(minutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months + } else if (minutes < MINUTES_IN_TWO_MONTHS) { + months = Math.round(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('aboutXMonths', months, localizeOptions); + } + + months = differenceInMonths(dateRight, dateLeft); // 2 months up to 12 months + + if (months < 12) { + var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date + } else { + var monthsSinceStartOfYear = months % 12; + var years = Math.floor(months / 12); // N years up to 1 years 3 months + + if (monthsSinceStartOfYear < 3) { + return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months + } else if (monthsSinceStartOfYear < 9) { + return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months + } else { + return locale.formatDistance('almostXYears', years + 1, localizeOptions); + } + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistance/index.js.flow b/node_modules/date-fns/esm/formatDistance/index.js.flow new file mode 100644 index 00000000..b18d1ba1 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistance/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/esm/formatDistance/package.json b/node_modules/date-fns/esm/formatDistance/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistance/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceStrict/index.d.ts b/node_modules/date-fns/esm/formatDistanceStrict/index.d.ts new file mode 100644 index 00000000..89cce205 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrict } from 'date-fns' +export default formatDistanceStrict diff --git a/node_modules/date-fns/esm/formatDistanceStrict/index.js b/node_modules/date-fns/esm/formatDistanceStrict/index.js new file mode 100644 index 00000000..ff9c31b9 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/index.js @@ -0,0 +1,189 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import compareAsc from "../compareAsc/index.js"; +import toDate from "../toDate/index.js"; +import cloneObject from "../_lib/cloneObject/index.js"; +import assign from "../_lib/assign/index.js"; +import defaultLocale from "../_lib/defaultLocale/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_MINUTE = 1000 * 60; +var MINUTES_IN_DAY = 60 * 24; +var MINUTES_IN_MONTH = MINUTES_IN_DAY * 30; +var MINUTES_IN_YEAR = MINUTES_IN_DAY * 365; +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit + * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round' + * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +export default function formatDistanceStrict(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale, _options$roundingMeth; + + requiredArgs(2, arguments); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain localize.formatDistance property'); + } + + var comparison = compareAsc(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = assign(cloneObject(options), { + addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix), + comparison: comparison + }); + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = toDate(dirtyBaseDate); + dateRight = toDate(dirtyDate); + } else { + dateLeft = toDate(dirtyDate); + dateRight = toDate(dirtyBaseDate); + } + + var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round'); + var roundingMethodFn; + + if (roundingMethod === 'floor') { + roundingMethodFn = Math.floor; + } else if (roundingMethod === 'ceil') { + roundingMethodFn = Math.ceil; + } else if (roundingMethod === 'round') { + roundingMethodFn = Math.round; + } else { + throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'"); + } + + var milliseconds = dateRight.getTime() - dateLeft.getTime(); + var minutes = milliseconds / MILLISECONDS_IN_MINUTE; + var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft); // Use DST-normalized difference in minutes for years, months and days; + // use regular difference in minutes for hours, minutes and seconds. + + var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE; + var defaultUnit = options === null || options === void 0 ? void 0 : options.unit; + var unit; + + if (!defaultUnit) { + if (minutes < 1) { + unit = 'second'; + } else if (minutes < 60) { + unit = 'minute'; + } else if (minutes < MINUTES_IN_DAY) { + unit = 'hour'; + } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) { + unit = 'day'; + } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) { + unit = 'month'; + } else { + unit = 'year'; + } + } else { + unit = String(defaultUnit); + } // 0 up to 60 seconds + + + if (unit === 'second') { + var seconds = roundingMethodFn(milliseconds / 1000); + return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins + } else if (unit === 'minute') { + var roundedMinutes = roundingMethodFn(minutes); + return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours + } else if (unit === 'hour') { + var hours = roundingMethodFn(minutes / 60); + return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days + } else if (unit === 'day') { + var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months + } else if (unit === 'month') { + var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH); + return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date + } else if (unit === 'year') { + var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR); + return locale.formatDistance('xYears', years, localizeOptions); + } + + throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceStrict/index.js.flow b/node_modules/date-fns/esm/formatDistanceStrict/index.js.flow new file mode 100644 index 00000000..26c4b152 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/index.js.flow @@ -0,0 +1,61 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/esm/formatDistanceStrict/package.json b/node_modules/date-fns/esm/formatDistanceStrict/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceStrict/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceToNow/index.d.ts b/node_modules/date-fns/esm/formatDistanceToNow/index.d.ts new file mode 100644 index 00000000..1d8b7501 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceToNow } from 'date-fns' +export default formatDistanceToNow diff --git a/node_modules/date-fns/esm/formatDistanceToNow/index.js b/node_modules/date-fns/esm/formatDistanceToNow/index.js new file mode 100644 index 00000000..bf35611a --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/index.js @@ -0,0 +1,93 @@ +import distanceInWords from "../formatDistance/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - the object with options + * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed + * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +export default function formatDistanceToNow(dirtyDate, options) { + requiredArgs(1, arguments); + return distanceInWords(dirtyDate, Date.now(), options); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceToNow/index.js.flow b/node_modules/date-fns/esm/formatDistanceToNow/index.js.flow new file mode 100644 index 00000000..08687be0 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/esm/formatDistanceToNow/package.json b/node_modules/date-fns/esm/formatDistanceToNow/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNow/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceToNowStrict/index.d.ts b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.d.ts new file mode 100644 index 00000000..4f00e65c --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceToNowStrict } from 'date-fns' +export default formatDistanceToNowStrict diff --git a/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js new file mode 100644 index 00000000..c61fccdd --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js @@ -0,0 +1,81 @@ +import formatDistanceStrict from "../formatDistanceStrict/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit + * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ + +export default function formatDistanceToNowStrict(dirtyDate, options) { + requiredArgs(1, arguments); + return formatDistanceStrict(dirtyDate, Date.now(), options); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js.flow b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js.flow new file mode 100644 index 00000000..49fbade0 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/esm/formatDistanceToNowStrict/package.json b/node_modules/date-fns/esm/formatDistanceToNowStrict/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatDistanceToNowStrict/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDuration/index.d.ts b/node_modules/date-fns/esm/formatDuration/index.d.ts new file mode 100644 index 00000000..be96776f --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDuration } from 'date-fns' +export default formatDuration diff --git a/node_modules/date-fns/esm/formatDuration/index.js b/node_modules/date-fns/esm/formatDuration/index.js new file mode 100644 index 00000000..811ee03e --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/index.js @@ -0,0 +1,97 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import defaultLocale from "../_lib/defaultLocale/index.js"; +var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']; +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param {Duration} duration - the duration to format + * @param {Object} [options] - an object with options. + * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format + * @param {boolean} [options.zero=false] - should zeros be included in the output? + * @param {string} [options.delimiter=' '] - delimiter string + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {string} the formatted date string + * @throws {TypeError} 1 argument required + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ + +export default function formatDuration(duration, options) { + var _ref, _options$locale, _options$format, _options$zero, _options$delimiter; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat; + var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false; + var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : ' '; + + if (!locale.formatDistance) { + return ''; + } + + var result = format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) { + return m.toUpperCase(); + })); + var value = duration[unit]; + + if (typeof value === 'number' && (zero || duration[unit])) { + return acc.concat(locale.formatDistance(token, value)); + } + + return acc; + }, []).join(delimiter); + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatDuration/index.js.flow b/node_modules/date-fns/esm/formatDuration/index.js.flow new file mode 100644 index 00000000..022ea8ec --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + duration: Duration, + options?: { + format?: string[], + zero?: boolean, + delimiter?: string, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/esm/formatDuration/package.json b/node_modules/date-fns/esm/formatDuration/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatDuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISO/index.d.ts b/node_modules/date-fns/esm/formatISO/index.d.ts new file mode 100644 index 00000000..4ed5a009 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO } from 'date-fns' +export default formatISO diff --git a/node_modules/date-fns/esm/formatISO/index.js b/node_modules/date-fns/esm/formatISO/index.js new file mode 100644 index 00000000..aca5e89c --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/index.js @@ -0,0 +1,105 @@ +import toDate from "../toDate/index.js"; +import addLeadingZeros from "../_lib/addLeadingZeros/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name formatISO + * @category Common Helpers + * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. + * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both. + * @returns {String} the formatted date string (in local time zone) + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.format` must be 'extended' or 'basic' + * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ + +export default function formatISO(date, options) { + var _options$format, _options$representati; + + requiredArgs(1, arguments); + var originalDate = toDate(date); + + if (isNaN(originalDate.getTime())) { + throw new RangeError('Invalid time value'); + } + + var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended'); + var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete'); + + if (format !== 'extended' && format !== 'basic') { + throw new RangeError("format must be 'extended' or 'basic'"); + } + + if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { + throw new RangeError("representation must be 'date', 'time', or 'complete'"); + } + + var result = ''; + var tzOffset = ''; + var dateDelimiter = format === 'extended' ? '-' : ''; + var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' + + if (representation !== 'time') { + var day = addLeadingZeros(originalDate.getDate(), 2); + var month = addLeadingZeros(originalDate.getMonth() + 1, 2); + var year = addLeadingZeros(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. + + result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } // Representation is either 'time' or 'complete' + + + if (representation !== 'date') { + // Add the timezone. + var offset = originalDate.getTimezoneOffset(); + + if (offset !== 0) { + var absoluteOffset = Math.abs(offset); + var hourOffset = addLeadingZeros(Math.floor(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = offset < 0 ? '+' : '-'; + tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + tzOffset = 'Z'; + } + + var hour = addLeadingZeros(originalDate.getHours(), 2); + var minute = addLeadingZeros(originalDate.getMinutes(), 2); + var second = addLeadingZeros(originalDate.getSeconds(), 2); // If there's also date, separate it with time with 'T' + + var separator = result === '' ? '' : 'T'; // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined. + + var time = [hour, minute, second].join(timeDelimiter); // HHmmss or HH:mm:ss. + + result = "".concat(result).concat(separator).concat(time).concat(tzOffset); + } + + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISO/index.js.flow b/node_modules/date-fns/esm/formatISO/index.js.flow new file mode 100644 index 00000000..5d1e860c --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } +) => string diff --git a/node_modules/date-fns/esm/formatISO/package.json b/node_modules/date-fns/esm/formatISO/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISO9075/index.d.ts b/node_modules/date-fns/esm/formatISO9075/index.d.ts new file mode 100644 index 00000000..cc8dc895 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075 } from 'date-fns' +export default formatISO9075 diff --git a/node_modules/date-fns/esm/formatISO9075/index.js b/node_modules/date-fns/esm/formatISO9075/index.js new file mode 100644 index 00000000..c79a6a86 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/index.js @@ -0,0 +1,91 @@ +import toDate from "../toDate/index.js"; +import isValid from "../isValid/index.js"; +import addLeadingZeros from "../_lib/addLeadingZeros/index.js"; + +/** + * @name formatISO9075 + * @category Common Helpers + * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. + * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time, or both. + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.format` must be 'extended' or 'basic' + * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +export default function formatISO9075(dirtyDate, options) { + var _options$format, _options$representati; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var originalDate = toDate(dirtyDate); + + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended'); + var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete'); + + if (format !== 'extended' && format !== 'basic') { + throw new RangeError("format must be 'extended' or 'basic'"); + } + + if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { + throw new RangeError("representation must be 'date', 'time', or 'complete'"); + } + + var result = ''; + var dateDelimiter = format === 'extended' ? '-' : ''; + var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' + + if (representation !== 'time') { + var day = addLeadingZeros(originalDate.getDate(), 2); + var month = addLeadingZeros(originalDate.getMonth() + 1, 2); + var year = addLeadingZeros(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. + + result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } // Representation is either 'time' or 'complete' + + + if (representation !== 'date') { + var hour = addLeadingZeros(originalDate.getHours(), 2); + var minute = addLeadingZeros(originalDate.getMinutes(), 2); + var second = addLeadingZeros(originalDate.getSeconds(), 2); // If there's also date, separate it with time with a space + + var separator = result === '' ? '' : ' '; // HHmmss or HH:mm:ss. + + result = "".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); + } + + return result; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISO9075/index.js.flow b/node_modules/date-fns/esm/formatISO9075/index.js.flow new file mode 100644 index 00000000..5d1e860c --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } +) => string diff --git a/node_modules/date-fns/esm/formatISO9075/package.json b/node_modules/date-fns/esm/formatISO9075/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatISO9075/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISODuration/index.d.ts b/node_modules/date-fns/esm/formatISODuration/index.d.ts new file mode 100644 index 00000000..dfbd3336 --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISODuration } from 'date-fns' +export default formatISODuration diff --git a/node_modules/date-fns/esm/formatISODuration/index.js b/node_modules/date-fns/esm/formatISODuration/index.js new file mode 100644 index 00000000..ddd4b7e9 --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/index.js @@ -0,0 +1,47 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm) + * + * @param {Duration} duration - the duration to format + * + * @returns {String} The ISO 8601 duration string + * @throws {TypeError} Requires 1 argument + * @throws {Error} Argument must be an object + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ + +export default function formatISODuration(duration) { + requiredArgs(1, arguments); + if (_typeof(duration) !== 'object') throw new Error('Duration must be an object'); + var _duration$years = duration.years, + years = _duration$years === void 0 ? 0 : _duration$years, + _duration$months = duration.months, + months = _duration$months === void 0 ? 0 : _duration$months, + _duration$days = duration.days, + days = _duration$days === void 0 ? 0 : _duration$days, + _duration$hours = duration.hours, + hours = _duration$hours === void 0 ? 0 : _duration$hours, + _duration$minutes = duration.minutes, + minutes = _duration$minutes === void 0 ? 0 : _duration$minutes, + _duration$seconds = duration.seconds, + seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; + return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatISODuration/index.js.flow b/node_modules/date-fns/esm/formatISODuration/index.js.flow new file mode 100644 index 00000000..3f8bb2c6 --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (duration: Duration) => string diff --git a/node_modules/date-fns/esm/formatISODuration/package.json b/node_modules/date-fns/esm/formatISODuration/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatISODuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRFC3339/index.d.ts b/node_modules/date-fns/esm/formatRFC3339/index.d.ts new file mode 100644 index 00000000..2454cd21 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339 } from 'date-fns' +export default formatRFC3339 diff --git a/node_modules/date-fns/esm/formatRFC3339/index.js b/node_modules/date-fns/esm/formatRFC3339/index.js new file mode 100644 index 00000000..a57efed7 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/index.js @@ -0,0 +1,85 @@ +import toDate from "../toDate/index.js"; +import isValid from "../isValid/index.js"; +import addLeadingZeros from "../_lib/addLeadingZeros/index.js"; +import toInteger from "../_lib/toInteger/index.js"; + +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {0|1|2|3} [options.fractionDigits=0] - number of digits after the decimal point after seconds + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.fractionDigits` must be between 0 and 3 + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 2 digits of second fraction: + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 2 }) + * //=> '2019-09-18T19:00:52.23Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 3 }) + * //=> '2019-09-18T19:00:52.234Z' + */ +export default function formatRFC3339(dirtyDate, options) { + var _options$fractionDigi; + + if (arguments.length < 1) { + throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); + } + + var originalDate = toDate(dirtyDate); + + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var fractionDigits = Number((_options$fractionDigi = options === null || options === void 0 ? void 0 : options.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0); // Test if fractionDigits is between 0 and 3 _and_ is not NaN + + if (!(fractionDigits >= 0 && fractionDigits <= 3)) { + throw new RangeError('fractionDigits must be between 0 and 3 inclusively'); + } + + var day = addLeadingZeros(originalDate.getDate(), 2); + var month = addLeadingZeros(originalDate.getMonth() + 1, 2); + var year = originalDate.getFullYear(); + var hour = addLeadingZeros(originalDate.getHours(), 2); + var minute = addLeadingZeros(originalDate.getMinutes(), 2); + var second = addLeadingZeros(originalDate.getSeconds(), 2); + var fractionalSecond = ''; + + if (fractionDigits > 0) { + var milliseconds = originalDate.getMilliseconds(); + var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3)); + fractionalSecond = '.' + addLeadingZeros(fractionalSeconds, fractionDigits); + } + + var offset = ''; + var tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = addLeadingZeros(toInteger(absoluteOffset / 60), 2); + var minuteOffset = addLeadingZeros(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = tzOffset < 0 ? '+' : '-'; + offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + offset = 'Z'; + } + + return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRFC3339/index.js.flow b/node_modules/date-fns/esm/formatRFC3339/index.js.flow new file mode 100644 index 00000000..9bb27482 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3, + } +) => string diff --git a/node_modules/date-fns/esm/formatRFC3339/package.json b/node_modules/date-fns/esm/formatRFC3339/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC3339/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRFC7231/index.d.ts b/node_modules/date-fns/esm/formatRFC7231/index.d.ts new file mode 100644 index 00000000..2caa7140 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC7231/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC7231 } from 'date-fns' +export default formatRFC7231 diff --git a/node_modules/date-fns/esm/formatRFC7231/index.js b/node_modules/date-fns/esm/formatRFC7231/index.js new file mode 100644 index 00000000..fa8f2474 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC7231/index.js @@ -0,0 +1,46 @@ +import toDate from "../toDate/index.js"; +import isValid from "../isValid/index.js"; +import addLeadingZeros from "../_lib/addLeadingZeros/index.js"; +var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param {Date|Number} date - the original date + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ + +export default function formatRFC7231(dirtyDate) { + if (arguments.length < 1) { + throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); + } + + var originalDate = toDate(dirtyDate); + + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var dayName = days[originalDate.getUTCDay()]; + var dayOfMonth = addLeadingZeros(originalDate.getUTCDate(), 2); + var monthName = months[originalDate.getUTCMonth()]; + var year = originalDate.getUTCFullYear(); + var hour = addLeadingZeros(originalDate.getUTCHours(), 2); + var minute = addLeadingZeros(originalDate.getUTCMinutes(), 2); + var second = addLeadingZeros(originalDate.getUTCSeconds(), 2); // Result variables. + + return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRFC7231/index.js.flow b/node_modules/date-fns/esm/formatRFC7231/index.js.flow new file mode 100644 index 00000000..8462b251 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC7231/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => string diff --git a/node_modules/date-fns/esm/formatRFC7231/package.json b/node_modules/date-fns/esm/formatRFC7231/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatRFC7231/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRelative/index.d.ts b/node_modules/date-fns/esm/formatRelative/index.d.ts new file mode 100644 index 00000000..1c5c7392 --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelative } from 'date-fns' +export default formatRelative diff --git a/node_modules/date-fns/esm/formatRelative/index.js b/node_modules/date-fns/esm/formatRelative/index.js new file mode 100644 index 00000000..d370fd21 --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/index.js @@ -0,0 +1,103 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import format from "../format/index.js"; +import defaultLocale from "../_lib/defaultLocale/index.js"; +import subMilliseconds from "../subMilliseconds/index.js"; +import toDate from "../toDate/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param {Date|Number} date - the date to format + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {String} the date in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.locale` must contain `localize` property + * @throws {RangeError} `options.locale` must contain `formatLong` property + * @throws {RangeError} `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(addDays(new Date(), -6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ + +export default function formatRelative(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$weekStartsOn, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var baseDate = toDate(dirtyBaseDate); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + var weekStartsOn = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : 0); + + if (!locale.localize) { + throw new RangeError('locale must contain localize property'); + } + + if (!locale.formatLong) { + throw new RangeError('locale must contain formatLong property'); + } + + if (!locale.formatRelative) { + throw new RangeError('locale must contain formatRelative property'); + } + + var diff = differenceInCalendarDays(date, baseDate); + + if (isNaN(diff)) { + throw new RangeError('Invalid time value'); + } + + var token; + + if (diff < -6) { + token = 'other'; + } else if (diff < -1) { + token = 'lastWeek'; + } else if (diff < 0) { + token = 'yesterday'; + } else if (diff < 1) { + token = 'today'; + } else if (diff < 2) { + token = 'tomorrow'; + } else if (diff < 7) { + token = 'nextWeek'; + } else { + token = 'other'; + } + + var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date)); + var utcBaseDate = subMilliseconds(baseDate, getTimezoneOffsetInMilliseconds(baseDate)); + var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, { + locale: locale, + weekStartsOn: weekStartsOn + }); + return format(date, formatStr, { + locale: locale, + weekStartsOn: weekStartsOn + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/formatRelative/index.js.flow b/node_modules/date-fns/esm/formatRelative/index.js.flow new file mode 100644 index 00000000..00280b21 --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => string diff --git a/node_modules/date-fns/esm/formatRelative/package.json b/node_modules/date-fns/esm/formatRelative/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/formatRelative/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/_lib/convertToFP/index.js b/node_modules/date-fns/esm/fp/_lib/convertToFP/index.js new file mode 100644 index 00000000..6a74120d --- /dev/null +++ b/node_modules/date-fns/esm/fp/_lib/convertToFP/index.js @@ -0,0 +1,15 @@ +export default function convertToFP(fn, arity) { + var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + + if (a.length >= arity) { + return fn.apply(null, a.slice(0, arity).reverse()); + } + + return function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return convertToFP(fn, arity, a.concat(args)); + }; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/add/index.d.ts b/node_modules/date-fns/esm/fp/add/index.d.ts new file mode 100644 index 00000000..f05edaac --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { add } from 'date-fns/fp' +export default add diff --git a/node_modules/date-fns/esm/fp/add/index.js b/node_modules/date-fns/esm/fp/add/index.js new file mode 100644 index 00000000..7cc8217f --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../add/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/add/index.js.flow b/node_modules/date-fns/esm/fp/add/index.js.flow new file mode 100644 index 00000000..3d4363b3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/add/package.json b/node_modules/date-fns/esm/fp/add/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/add/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addBusinessDays/index.d.ts b/node_modules/date-fns/esm/fp/addBusinessDays/index.d.ts new file mode 100644 index 00000000..dd3b8696 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addBusinessDays } from 'date-fns/fp' +export default addBusinessDays diff --git a/node_modules/date-fns/esm/fp/addBusinessDays/index.js b/node_modules/date-fns/esm/fp/addBusinessDays/index.js new file mode 100644 index 00000000..86337d54 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addBusinessDays/index.js.flow b/node_modules/date-fns/esm/fp/addBusinessDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addBusinessDays/package.json b/node_modules/date-fns/esm/fp/addBusinessDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addDays/index.d.ts b/node_modules/date-fns/esm/fp/addDays/index.d.ts new file mode 100644 index 00000000..7ba1ace6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addDays } from 'date-fns/fp' +export default addDays diff --git a/node_modules/date-fns/esm/fp/addDays/index.js b/node_modules/date-fns/esm/fp/addDays/index.js new file mode 100644 index 00000000..b7f5a704 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addDays/index.js.flow b/node_modules/date-fns/esm/fp/addDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addDays/package.json b/node_modules/date-fns/esm/fp/addDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addHours/index.d.ts b/node_modules/date-fns/esm/fp/addHours/index.d.ts new file mode 100644 index 00000000..9b66a881 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addHours } from 'date-fns/fp' +export default addHours diff --git a/node_modules/date-fns/esm/fp/addHours/index.js b/node_modules/date-fns/esm/fp/addHours/index.js new file mode 100644 index 00000000..0ecdf9fa --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addHours/index.js.flow b/node_modules/date-fns/esm/fp/addHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addHours/package.json b/node_modules/date-fns/esm/fp/addHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addISOWeekYears/index.d.ts b/node_modules/date-fns/esm/fp/addISOWeekYears/index.d.ts new file mode 100644 index 00000000..01dab9b4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addISOWeekYears } from 'date-fns/fp' +export default addISOWeekYears diff --git a/node_modules/date-fns/esm/fp/addISOWeekYears/index.js b/node_modules/date-fns/esm/fp/addISOWeekYears/index.js new file mode 100644 index 00000000..5e1f59cd --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addISOWeekYears/index.js.flow b/node_modules/date-fns/esm/fp/addISOWeekYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addISOWeekYears/package.json b/node_modules/date-fns/esm/fp/addISOWeekYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/addMilliseconds/index.d.ts new file mode 100644 index 00000000..7a93c907 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMilliseconds } from 'date-fns/fp' +export default addMilliseconds diff --git a/node_modules/date-fns/esm/fp/addMilliseconds/index.js b/node_modules/date-fns/esm/fp/addMilliseconds/index.js new file mode 100644 index 00000000..6cd07a63 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/addMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addMilliseconds/package.json b/node_modules/date-fns/esm/fp/addMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMinutes/index.d.ts b/node_modules/date-fns/esm/fp/addMinutes/index.d.ts new file mode 100644 index 00000000..fc7b6702 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMinutes } from 'date-fns/fp' +export default addMinutes diff --git a/node_modules/date-fns/esm/fp/addMinutes/index.js b/node_modules/date-fns/esm/fp/addMinutes/index.js new file mode 100644 index 00000000..77b2eaf7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMinutes/index.js.flow b/node_modules/date-fns/esm/fp/addMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addMinutes/package.json b/node_modules/date-fns/esm/fp/addMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMonths/index.d.ts b/node_modules/date-fns/esm/fp/addMonths/index.d.ts new file mode 100644 index 00000000..01f0e2df --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMonths } from 'date-fns/fp' +export default addMonths diff --git a/node_modules/date-fns/esm/fp/addMonths/index.js b/node_modules/date-fns/esm/fp/addMonths/index.js new file mode 100644 index 00000000..0e0c5693 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addMonths/index.js.flow b/node_modules/date-fns/esm/fp/addMonths/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addMonths/package.json b/node_modules/date-fns/esm/fp/addMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addQuarters/index.d.ts b/node_modules/date-fns/esm/fp/addQuarters/index.d.ts new file mode 100644 index 00000000..f766d567 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addQuarters } from 'date-fns/fp' +export default addQuarters diff --git a/node_modules/date-fns/esm/fp/addQuarters/index.js b/node_modules/date-fns/esm/fp/addQuarters/index.js new file mode 100644 index 00000000..da333453 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addQuarters/index.js.flow b/node_modules/date-fns/esm/fp/addQuarters/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addQuarters/package.json b/node_modules/date-fns/esm/fp/addQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addSeconds/index.d.ts b/node_modules/date-fns/esm/fp/addSeconds/index.d.ts new file mode 100644 index 00000000..5c7c41c6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addSeconds } from 'date-fns/fp' +export default addSeconds diff --git a/node_modules/date-fns/esm/fp/addSeconds/index.js b/node_modules/date-fns/esm/fp/addSeconds/index.js new file mode 100644 index 00000000..1bafd4e8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addSeconds/index.js.flow b/node_modules/date-fns/esm/fp/addSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addSeconds/package.json b/node_modules/date-fns/esm/fp/addSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addWeeks/index.d.ts b/node_modules/date-fns/esm/fp/addWeeks/index.d.ts new file mode 100644 index 00000000..2703fefe --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addWeeks } from 'date-fns/fp' +export default addWeeks diff --git a/node_modules/date-fns/esm/fp/addWeeks/index.js b/node_modules/date-fns/esm/fp/addWeeks/index.js new file mode 100644 index 00000000..9e437a86 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addWeeks/index.js.flow b/node_modules/date-fns/esm/fp/addWeeks/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addWeeks/package.json b/node_modules/date-fns/esm/fp/addWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addYears/index.d.ts b/node_modules/date-fns/esm/fp/addYears/index.d.ts new file mode 100644 index 00000000..ff907d45 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addYears } from 'date-fns/fp' +export default addYears diff --git a/node_modules/date-fns/esm/fp/addYears/index.js b/node_modules/date-fns/esm/fp/addYears/index.js new file mode 100644 index 00000000..8972bf47 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../addYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/addYears/index.js.flow b/node_modules/date-fns/esm/fp/addYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/addYears/package.json b/node_modules/date-fns/esm/fp/addYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/addYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.d.ts b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.d.ts new file mode 100644 index 00000000..870f26b9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlapping } from 'date-fns/fp' +export default areIntervalsOverlapping diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js new file mode 100644 index 00000000..ad9167c0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../areIntervalsOverlapping/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js.flow b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js.flow new file mode 100644 index 00000000..cd396333 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlapping/package.json b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlapping/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.d.ts new file mode 100644 index 00000000..010890a8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlappingWithOptions } from 'date-fns/fp' +export default areIntervalsOverlappingWithOptions diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js new file mode 100644 index 00000000..74cfa891 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../areIntervalsOverlapping/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js.flow new file mode 100644 index 00000000..67e7396b --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + inclusive?: boolean, + }, + Interval, + Interval, + boolean +> diff --git a/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/package.json b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/areIntervalsOverlappingWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/clamp/index.d.ts b/node_modules/date-fns/esm/fp/clamp/index.d.ts new file mode 100644 index 00000000..036e70a4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/clamp/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { clamp } from 'date-fns/fp' +export default clamp diff --git a/node_modules/date-fns/esm/fp/clamp/index.js b/node_modules/date-fns/esm/fp/clamp/index.js new file mode 100644 index 00000000..b8d29edb --- /dev/null +++ b/node_modules/date-fns/esm/fp/clamp/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../clamp/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/clamp/index.js.flow b/node_modules/date-fns/esm/fp/clamp/index.js.flow new file mode 100644 index 00000000..6bd42638 --- /dev/null +++ b/node_modules/date-fns/esm/fp/clamp/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/clamp/package.json b/node_modules/date-fns/esm/fp/clamp/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/clamp/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/closestIndexTo/index.d.ts b/node_modules/date-fns/esm/fp/closestIndexTo/index.d.ts new file mode 100644 index 00000000..562180df --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestIndexTo } from 'date-fns/fp' +export default closestIndexTo diff --git a/node_modules/date-fns/esm/fp/closestIndexTo/index.js b/node_modules/date-fns/esm/fp/closestIndexTo/index.js new file mode 100644 index 00000000..021da2cd --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../closestIndexTo/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/closestIndexTo/index.js.flow b/node_modules/date-fns/esm/fp/closestIndexTo/index.js.flow new file mode 100644 index 00000000..d7c060ba --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2<(Date | number)[], Date | number, ?number> diff --git a/node_modules/date-fns/esm/fp/closestIndexTo/package.json b/node_modules/date-fns/esm/fp/closestIndexTo/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestIndexTo/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/closestTo/index.d.ts b/node_modules/date-fns/esm/fp/closestTo/index.d.ts new file mode 100644 index 00000000..44d10c3a --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestTo } from 'date-fns/fp' +export default closestTo diff --git a/node_modules/date-fns/esm/fp/closestTo/index.js b/node_modules/date-fns/esm/fp/closestTo/index.js new file mode 100644 index 00000000..eb4ae0b9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../closestTo/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/closestTo/index.js.flow b/node_modules/date-fns/esm/fp/closestTo/index.js.flow new file mode 100644 index 00000000..61487d9e --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2<(Date | number)[], Date | number, ?Date> diff --git a/node_modules/date-fns/esm/fp/closestTo/package.json b/node_modules/date-fns/esm/fp/closestTo/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/closestTo/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/compareAsc/index.d.ts b/node_modules/date-fns/esm/fp/compareAsc/index.d.ts new file mode 100644 index 00000000..77d5c612 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareAsc } from 'date-fns/fp' +export default compareAsc diff --git a/node_modules/date-fns/esm/fp/compareAsc/index.js b/node_modules/date-fns/esm/fp/compareAsc/index.js new file mode 100644 index 00000000..24c19eb9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../compareAsc/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/compareAsc/index.js.flow b/node_modules/date-fns/esm/fp/compareAsc/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/compareAsc/package.json b/node_modules/date-fns/esm/fp/compareAsc/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareAsc/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/compareDesc/index.d.ts b/node_modules/date-fns/esm/fp/compareDesc/index.d.ts new file mode 100644 index 00000000..df01367c --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareDesc } from 'date-fns/fp' +export default compareDesc diff --git a/node_modules/date-fns/esm/fp/compareDesc/index.js b/node_modules/date-fns/esm/fp/compareDesc/index.js new file mode 100644 index 00000000..421aba33 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../compareDesc/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/compareDesc/index.js.flow b/node_modules/date-fns/esm/fp/compareDesc/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/compareDesc/package.json b/node_modules/date-fns/esm/fp/compareDesc/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/compareDesc/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/daysToWeeks/index.d.ts b/node_modules/date-fns/esm/fp/daysToWeeks/index.d.ts new file mode 100644 index 00000000..798a9e15 --- /dev/null +++ b/node_modules/date-fns/esm/fp/daysToWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { daysToWeeks } from 'date-fns/fp' +export default daysToWeeks diff --git a/node_modules/date-fns/esm/fp/daysToWeeks/index.js b/node_modules/date-fns/esm/fp/daysToWeeks/index.js new file mode 100644 index 00000000..abccc108 --- /dev/null +++ b/node_modules/date-fns/esm/fp/daysToWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../daysToWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/daysToWeeks/index.js.flow b/node_modules/date-fns/esm/fp/daysToWeeks/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/daysToWeeks/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/daysToWeeks/package.json b/node_modules/date-fns/esm/fp/daysToWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/daysToWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.d.ts b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.d.ts new file mode 100644 index 00000000..4ff98906 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInBusinessDays } from 'date-fns/fp' +export default differenceInBusinessDays diff --git a/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js new file mode 100644 index 00000000..343a8812 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js.flow b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInBusinessDays/package.json b/node_modules/date-fns/esm/fp/differenceInBusinessDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.d.ts new file mode 100644 index 00000000..b6ae5f5a --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarDays } from 'date-fns/fp' +export default differenceInCalendarDays diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js new file mode 100644 index 00000000..47e8da40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarDays/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.d.ts new file mode 100644 index 00000000..4e21998d --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeekYears } from 'date-fns/fp' +export default differenceInCalendarISOWeekYears diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js new file mode 100644 index 00000000..d9889c07 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.d.ts new file mode 100644 index 00000000..7751c6f2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeeks } from 'date-fns/fp' +export default differenceInCalendarISOWeeks diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js new file mode 100644 index 00000000..323fb2bc --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarISOWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarISOWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.d.ts new file mode 100644 index 00000000..080ac92d --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarMonths } from 'date-fns/fp' +export default differenceInCalendarMonths diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js new file mode 100644 index 00000000..fbfbd6f2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarMonths/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.d.ts new file mode 100644 index 00000000..7b9208ba --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarQuarters } from 'date-fns/fp' +export default differenceInCalendarQuarters diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js new file mode 100644 index 00000000..85c4231b --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.d.ts new file mode 100644 index 00000000..c64709a1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeks } from 'date-fns/fp' +export default differenceInCalendarWeeks diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js new file mode 100644 index 00000000..94ee00f4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.d.ts new file mode 100644 index 00000000..344e205f --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeksWithOptions } from 'date-fns/fp' +export default differenceInCalendarWeeksWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js new file mode 100644 index 00000000..53b06a61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js.flow new file mode 100644 index 00000000..9ee18fd5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarWeeksWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.d.ts b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.d.ts new file mode 100644 index 00000000..1390b1fd --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarYears } from 'date-fns/fp' +export default differenceInCalendarYears diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js new file mode 100644 index 00000000..eee30be1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInCalendarYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js.flow b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInCalendarYears/package.json b/node_modules/date-fns/esm/fp/differenceInCalendarYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInCalendarYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInDays/index.d.ts b/node_modules/date-fns/esm/fp/differenceInDays/index.d.ts new file mode 100644 index 00000000..b240c6e3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInDays } from 'date-fns/fp' +export default differenceInDays diff --git a/node_modules/date-fns/esm/fp/differenceInDays/index.js b/node_modules/date-fns/esm/fp/differenceInDays/index.js new file mode 100644 index 00000000..51cb318b --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInDays/index.js.flow b/node_modules/date-fns/esm/fp/differenceInDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInDays/package.json b/node_modules/date-fns/esm/fp/differenceInDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInHours/index.d.ts b/node_modules/date-fns/esm/fp/differenceInHours/index.d.ts new file mode 100644 index 00000000..4cc27978 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHours } from 'date-fns/fp' +export default differenceInHours diff --git a/node_modules/date-fns/esm/fp/differenceInHours/index.js b/node_modules/date-fns/esm/fp/differenceInHours/index.js new file mode 100644 index 00000000..d39e2ec6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInHours/index.js.flow b/node_modules/date-fns/esm/fp/differenceInHours/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInHours/package.json b/node_modules/date-fns/esm/fp/differenceInHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.d.ts new file mode 100644 index 00000000..0b4cc304 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHoursWithOptions } from 'date-fns/fp' +export default differenceInHoursWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js new file mode 100644 index 00000000..579edef4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInHoursWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.d.ts b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.d.ts new file mode 100644 index 00000000..634591ad --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInISOWeekYears } from 'date-fns/fp' +export default differenceInISOWeekYears diff --git a/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js new file mode 100644 index 00000000..670ecfef --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js.flow b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInISOWeekYears/package.json b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.d.ts new file mode 100644 index 00000000..23924cbd --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMilliseconds } from 'date-fns/fp' +export default differenceInMilliseconds diff --git a/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js new file mode 100644 index 00000000..c6b240b6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInMilliseconds/package.json b/node_modules/date-fns/esm/fp/differenceInMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMinutes/index.d.ts b/node_modules/date-fns/esm/fp/differenceInMinutes/index.d.ts new file mode 100644 index 00000000..6d00d342 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutes } from 'date-fns/fp' +export default differenceInMinutes diff --git a/node_modules/date-fns/esm/fp/differenceInMinutes/index.js b/node_modules/date-fns/esm/fp/differenceInMinutes/index.js new file mode 100644 index 00000000..489fe7ce --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMinutes/index.js.flow b/node_modules/date-fns/esm/fp/differenceInMinutes/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInMinutes/package.json b/node_modules/date-fns/esm/fp/differenceInMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.d.ts new file mode 100644 index 00000000..33037c96 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutesWithOptions } from 'date-fns/fp' +export default differenceInMinutesWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js new file mode 100644 index 00000000..de4bb4d5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMinutesWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMonths/index.d.ts b/node_modules/date-fns/esm/fp/differenceInMonths/index.d.ts new file mode 100644 index 00000000..17bdd4ea --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMonths } from 'date-fns/fp' +export default differenceInMonths diff --git a/node_modules/date-fns/esm/fp/differenceInMonths/index.js b/node_modules/date-fns/esm/fp/differenceInMonths/index.js new file mode 100644 index 00000000..983df4c3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInMonths/index.js.flow b/node_modules/date-fns/esm/fp/differenceInMonths/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInMonths/package.json b/node_modules/date-fns/esm/fp/differenceInMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInQuarters/index.d.ts b/node_modules/date-fns/esm/fp/differenceInQuarters/index.d.ts new file mode 100644 index 00000000..649f21d4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuarters } from 'date-fns/fp' +export default differenceInQuarters diff --git a/node_modules/date-fns/esm/fp/differenceInQuarters/index.js b/node_modules/date-fns/esm/fp/differenceInQuarters/index.js new file mode 100644 index 00000000..54dd9cbc --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInQuarters/index.js.flow b/node_modules/date-fns/esm/fp/differenceInQuarters/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInQuarters/package.json b/node_modules/date-fns/esm/fp/differenceInQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.d.ts new file mode 100644 index 00000000..a456bf1e --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuartersWithOptions } from 'date-fns/fp' +export default differenceInQuartersWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js new file mode 100644 index 00000000..db1bdcf5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInQuartersWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInSeconds/index.d.ts b/node_modules/date-fns/esm/fp/differenceInSeconds/index.d.ts new file mode 100644 index 00000000..1dded51c --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSeconds } from 'date-fns/fp' +export default differenceInSeconds diff --git a/node_modules/date-fns/esm/fp/differenceInSeconds/index.js b/node_modules/date-fns/esm/fp/differenceInSeconds/index.js new file mode 100644 index 00000000..29ffb4e2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInSeconds/index.js.flow b/node_modules/date-fns/esm/fp/differenceInSeconds/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInSeconds/package.json b/node_modules/date-fns/esm/fp/differenceInSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.d.ts new file mode 100644 index 00000000..da59f3f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSecondsWithOptions } from 'date-fns/fp' +export default differenceInSecondsWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js new file mode 100644 index 00000000..8a432f4c --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInSecondsWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInWeeks/index.d.ts b/node_modules/date-fns/esm/fp/differenceInWeeks/index.d.ts new file mode 100644 index 00000000..52d52209 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeks } from 'date-fns/fp' +export default differenceInWeeks diff --git a/node_modules/date-fns/esm/fp/differenceInWeeks/index.js b/node_modules/date-fns/esm/fp/differenceInWeeks/index.js new file mode 100644 index 00000000..4df78d42 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInWeeks/index.js.flow b/node_modules/date-fns/esm/fp/differenceInWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInWeeks/package.json b/node_modules/date-fns/esm/fp/differenceInWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.d.ts new file mode 100644 index 00000000..30165024 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeksWithOptions } from 'date-fns/fp' +export default differenceInWeeksWithOptions diff --git a/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js new file mode 100644 index 00000000..f7c0e139 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/package.json b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInWeeksWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInYears/index.d.ts b/node_modules/date-fns/esm/fp/differenceInYears/index.d.ts new file mode 100644 index 00000000..20fd1640 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInYears } from 'date-fns/fp' +export default differenceInYears diff --git a/node_modules/date-fns/esm/fp/differenceInYears/index.js b/node_modules/date-fns/esm/fp/differenceInYears/index.js new file mode 100644 index 00000000..66fbcda9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../differenceInYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/differenceInYears/index.js.flow b/node_modules/date-fns/esm/fp/differenceInYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/differenceInYears/package.json b/node_modules/date-fns/esm/fp/differenceInYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/differenceInYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachDayOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.d.ts new file mode 100644 index 00000000..e878e768 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfInterval } from 'date-fns/fp' +export default eachDayOfInterval diff --git a/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js new file mode 100644 index 00000000..807defda --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachDayOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachDayOfInterval/package.json b/node_modules/date-fns/esm/fp/eachDayOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..58622840 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfIntervalWithOptions } from 'date-fns/fp' +export default eachDayOfIntervalWithOptions diff --git a/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js new file mode 100644 index 00000000..38d14d55 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachDayOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/package.json b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachDayOfIntervalWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachHourOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.d.ts new file mode 100644 index 00000000..055ab320 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfInterval } from 'date-fns/fp' +export default eachHourOfInterval diff --git a/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js new file mode 100644 index 00000000..7c3d3aee --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachHourOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachHourOfInterval/package.json b/node_modules/date-fns/esm/fp/eachHourOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..7b781f90 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfIntervalWithOptions } from 'date-fns/fp' +export default eachHourOfIntervalWithOptions diff --git a/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js new file mode 100644 index 00000000..80f98c95 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachHourOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/package.json b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachHourOfIntervalWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.d.ts new file mode 100644 index 00000000..243185fb --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfInterval } from 'date-fns/fp' +export default eachMinuteOfInterval diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js new file mode 100644 index 00000000..7f7a7e2c --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachMinuteOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfInterval/package.json b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..716aa441 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfIntervalWithOptions } from 'date-fns/fp' +export default eachMinuteOfIntervalWithOptions diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js new file mode 100644 index 00000000..c374b382 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachMinuteOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/package.json b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMinuteOfIntervalWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.d.ts new file mode 100644 index 00000000..1f3cae5a --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMonthOfInterval } from 'date-fns/fp' +export default eachMonthOfInterval diff --git a/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js new file mode 100644 index 00000000..45064a27 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachMonthOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMonthOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachMonthOfInterval/package.json b/node_modules/date-fns/esm/fp/eachMonthOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachMonthOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.d.ts new file mode 100644 index 00000000..8a81f636 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachQuarterOfInterval } from 'date-fns/fp' +export default eachQuarterOfInterval diff --git a/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js new file mode 100644 index 00000000..b6ae01b7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachQuarterOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachQuarterOfInterval/package.json b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachQuarterOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.d.ts new file mode 100644 index 00000000..ab5d4b46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfInterval } from 'date-fns/fp' +export default eachWeekOfInterval diff --git a/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js new file mode 100644 index 00000000..4b1dd2df --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachWeekOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachWeekOfInterval/package.json b/node_modules/date-fns/esm/fp/eachWeekOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..def43ab8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfIntervalWithOptions } from 'date-fns/fp' +export default eachWeekOfIntervalWithOptions diff --git a/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js new file mode 100644 index 00000000..76608fc9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachWeekOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..3aca2180 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/package.json b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekOfIntervalWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.d.ts new file mode 100644 index 00000000..961eff70 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfInterval } from 'date-fns/fp' +export default eachWeekendOfInterval diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js new file mode 100644 index 00000000..dce2cf9c --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachWeekendOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfInterval/package.json b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.d.ts new file mode 100644 index 00000000..2501a05e --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfMonth } from 'date-fns/fp' +export default eachWeekendOfMonth diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js new file mode 100644 index 00000000..bf9e8177 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachWeekendOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js.flow new file mode 100644 index 00000000..9736b40c --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfMonth/package.json b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.d.ts b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.d.ts new file mode 100644 index 00000000..8554541d --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfYear } from 'date-fns/fp' +export default eachWeekendOfYear diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js new file mode 100644 index 00000000..0090a4f4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachWeekendOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js.flow b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js.flow new file mode 100644 index 00000000..9736b40c --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachWeekendOfYear/package.json b/node_modules/date-fns/esm/fp/eachWeekendOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachWeekendOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachYearOfInterval/index.d.ts b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.d.ts new file mode 100644 index 00000000..51e093b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachYearOfInterval } from 'date-fns/fp' +export default eachYearOfInterval diff --git a/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js new file mode 100644 index 00000000..c87a4448 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../eachYearOfInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js.flow b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachYearOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/eachYearOfInterval/package.json b/node_modules/date-fns/esm/fp/eachYearOfInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/eachYearOfInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDay/index.d.ts b/node_modules/date-fns/esm/fp/endOfDay/index.d.ts new file mode 100644 index 00000000..2db665f3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDay } from 'date-fns/fp' +export default endOfDay diff --git a/node_modules/date-fns/esm/fp/endOfDay/index.js b/node_modules/date-fns/esm/fp/endOfDay/index.js new file mode 100644 index 00000000..7e936675 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDay/index.js.flow b/node_modules/date-fns/esm/fp/endOfDay/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfDay/package.json b/node_modules/date-fns/esm/fp/endOfDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDecade/index.d.ts b/node_modules/date-fns/esm/fp/endOfDecade/index.d.ts new file mode 100644 index 00000000..f3a7e8c8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecade } from 'date-fns/fp' +export default endOfDecade diff --git a/node_modules/date-fns/esm/fp/endOfDecade/index.js b/node_modules/date-fns/esm/fp/endOfDecade/index.js new file mode 100644 index 00000000..89e8da0a --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDecade/index.js.flow b/node_modules/date-fns/esm/fp/endOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfDecade/package.json b/node_modules/date-fns/esm/fp/endOfDecade/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.d.ts new file mode 100644 index 00000000..cad60dac --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecadeWithOptions } from 'date-fns/fp' +export default endOfDecadeWithOptions diff --git a/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js new file mode 100644 index 00000000..7c4c3419 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js.flow new file mode 100644 index 00000000..4b6d0d46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/package.json b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfDecadeWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfHour/index.d.ts b/node_modules/date-fns/esm/fp/endOfHour/index.d.ts new file mode 100644 index 00000000..fb7b3190 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfHour } from 'date-fns/fp' +export default endOfHour diff --git a/node_modules/date-fns/esm/fp/endOfHour/index.js b/node_modules/date-fns/esm/fp/endOfHour/index.js new file mode 100644 index 00000000..722d33c5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfHour/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfHour/index.js.flow b/node_modules/date-fns/esm/fp/endOfHour/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfHour/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfHour/package.json b/node_modules/date-fns/esm/fp/endOfHour/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/endOfISOWeek/index.d.ts new file mode 100644 index 00000000..64f0b2e3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeek } from 'date-fns/fp' +export default endOfISOWeek diff --git a/node_modules/date-fns/esm/fp/endOfISOWeek/index.js b/node_modules/date-fns/esm/fp/endOfISOWeek/index.js new file mode 100644 index 00000000..8c6c0b94 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/endOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfISOWeek/package.json b/node_modules/date-fns/esm/fp/endOfISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..9782d7fe --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeekYear } from 'date-fns/fp' +export default endOfISOWeekYear diff --git a/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js new file mode 100644 index 00000000..61aa7310 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfISOWeekYear/package.json b/node_modules/date-fns/esm/fp/endOfISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfMinute/index.d.ts b/node_modules/date-fns/esm/fp/endOfMinute/index.d.ts new file mode 100644 index 00000000..78e8a192 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMinute } from 'date-fns/fp' +export default endOfMinute diff --git a/node_modules/date-fns/esm/fp/endOfMinute/index.js b/node_modules/date-fns/esm/fp/endOfMinute/index.js new file mode 100644 index 00000000..2dce1a0c --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMinute/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfMinute/index.js.flow b/node_modules/date-fns/esm/fp/endOfMinute/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMinute/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfMinute/package.json b/node_modules/date-fns/esm/fp/endOfMinute/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/endOfMonth/index.d.ts new file mode 100644 index 00000000..0c23957e --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMonth } from 'date-fns/fp' +export default endOfMonth diff --git a/node_modules/date-fns/esm/fp/endOfMonth/index.js b/node_modules/date-fns/esm/fp/endOfMonth/index.js new file mode 100644 index 00000000..f443cc86 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/endOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfMonth/package.json b/node_modules/date-fns/esm/fp/endOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfQuarter/index.d.ts b/node_modules/date-fns/esm/fp/endOfQuarter/index.d.ts new file mode 100644 index 00000000..24e729ba --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfQuarter } from 'date-fns/fp' +export default endOfQuarter diff --git a/node_modules/date-fns/esm/fp/endOfQuarter/index.js b/node_modules/date-fns/esm/fp/endOfQuarter/index.js new file mode 100644 index 00000000..fe4402f5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfQuarter/index.js.flow b/node_modules/date-fns/esm/fp/endOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfQuarter/package.json b/node_modules/date-fns/esm/fp/endOfQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfSecond/index.d.ts b/node_modules/date-fns/esm/fp/endOfSecond/index.d.ts new file mode 100644 index 00000000..6b5d624e --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfSecond } from 'date-fns/fp' +export default endOfSecond diff --git a/node_modules/date-fns/esm/fp/endOfSecond/index.js b/node_modules/date-fns/esm/fp/endOfSecond/index.js new file mode 100644 index 00000000..657cbc84 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfSecond/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfSecond/index.js.flow b/node_modules/date-fns/esm/fp/endOfSecond/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfSecond/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfSecond/package.json b/node_modules/date-fns/esm/fp/endOfSecond/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfWeek/index.d.ts b/node_modules/date-fns/esm/fp/endOfWeek/index.d.ts new file mode 100644 index 00000000..0aa4d102 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeek } from 'date-fns/fp' +export default endOfWeek diff --git a/node_modules/date-fns/esm/fp/endOfWeek/index.js b/node_modules/date-fns/esm/fp/endOfWeek/index.js new file mode 100644 index 00000000..bf80a3b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfWeek/index.js.flow b/node_modules/date-fns/esm/fp/endOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfWeek/package.json b/node_modules/date-fns/esm/fp/endOfWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..0ddcbf60 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeekWithOptions } from 'date-fns/fp' +export default endOfWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js new file mode 100644 index 00000000..564e11fc --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/endOfWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfYear/index.d.ts b/node_modules/date-fns/esm/fp/endOfYear/index.d.ts new file mode 100644 index 00000000..b4e5904e --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYear } from 'date-fns/fp' +export default endOfYear diff --git a/node_modules/date-fns/esm/fp/endOfYear/index.js b/node_modules/date-fns/esm/fp/endOfYear/index.js new file mode 100644 index 00000000..aa4bb056 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../endOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/endOfYear/index.js.flow b/node_modules/date-fns/esm/fp/endOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/endOfYear/package.json b/node_modules/date-fns/esm/fp/endOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/endOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/format/index.d.ts b/node_modules/date-fns/esm/fp/format/index.d.ts new file mode 100644 index 00000000..bf0c948e --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { format } from 'date-fns/fp' +export default format diff --git a/node_modules/date-fns/esm/fp/format/index.js b/node_modules/date-fns/esm/fp/format/index.js new file mode 100644 index 00000000..19aa3726 --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../format/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/format/index.js.flow b/node_modules/date-fns/esm/fp/format/index.js.flow new file mode 100644 index 00000000..013f277c --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/format/package.json b/node_modules/date-fns/esm/fp/format/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/format/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistance/index.d.ts b/node_modules/date-fns/esm/fp/formatDistance/index.d.ts new file mode 100644 index 00000000..029daa42 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistance } from 'date-fns/fp' +export default formatDistance diff --git a/node_modules/date-fns/esm/fp/formatDistance/index.js b/node_modules/date-fns/esm/fp/formatDistance/index.js new file mode 100644 index 00000000..144d17b7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistance/index.js.flow b/node_modules/date-fns/esm/fp/formatDistance/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/formatDistance/package.json b/node_modules/date-fns/esm/fp/formatDistance/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistance/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrict/index.d.ts b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.d.ts new file mode 100644 index 00000000..dd41fb8a --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrict } from 'date-fns/fp' +export default formatDistanceStrict diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js new file mode 100644 index 00000000..f1f2a1b3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDistanceStrict/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js.flow b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrict/package.json b/node_modules/date-fns/esm/fp/formatDistanceStrict/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrict/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.d.ts new file mode 100644 index 00000000..2e626c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrictWithOptions } from 'date-fns/fp' +export default formatDistanceStrictWithOptions diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js new file mode 100644 index 00000000..6990897e --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDistanceStrict/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js.flow new file mode 100644 index 00000000..b021da2f --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/index.js.flow @@ -0,0 +1,77 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: Locale, + roundingMethod?: 'floor' | 'ceil' | 'round', + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + addSuffix?: boolean, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/package.json b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceStrictWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.d.ts new file mode 100644 index 00000000..62f08496 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceWithOptions } from 'date-fns/fp' +export default formatDistanceWithOptions diff --git a/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js new file mode 100644 index 00000000..c3102361 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js.flow new file mode 100644 index 00000000..59043117 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: Locale, + addSuffix?: boolean, + includeSeconds?: boolean, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatDistanceWithOptions/package.json b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDistanceWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDuration/index.d.ts b/node_modules/date-fns/esm/fp/formatDuration/index.d.ts new file mode 100644 index 00000000..3b184ccf --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDuration } from 'date-fns/fp' +export default formatDuration diff --git a/node_modules/date-fns/esm/fp/formatDuration/index.js b/node_modules/date-fns/esm/fp/formatDuration/index.js new file mode 100644 index 00000000..da885103 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDuration/index.js.flow b/node_modules/date-fns/esm/fp/formatDuration/index.js.flow new file mode 100644 index 00000000..da715644 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatDuration/package.json b/node_modules/date-fns/esm/fp/formatDuration/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.d.ts new file mode 100644 index 00000000..63315177 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDurationWithOptions } from 'date-fns/fp' +export default formatDurationWithOptions diff --git a/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js new file mode 100644 index 00000000..0109be2f --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js.flow new file mode 100644 index 00000000..72f29103 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + locale?: Locale, + delimiter?: string, + zero?: boolean, + format?: string[], + }, + Duration, + string +> diff --git a/node_modules/date-fns/esm/fp/formatDurationWithOptions/package.json b/node_modules/date-fns/esm/fp/formatDurationWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatDurationWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO/index.d.ts b/node_modules/date-fns/esm/fp/formatISO/index.d.ts new file mode 100644 index 00000000..6f3ba60e --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO } from 'date-fns/fp' +export default formatISO diff --git a/node_modules/date-fns/esm/fp/formatISO/index.js b/node_modules/date-fns/esm/fp/formatISO/index.js new file mode 100644 index 00000000..48872655 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO/index.js.flow b/node_modules/date-fns/esm/fp/formatISO/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatISO/package.json b/node_modules/date-fns/esm/fp/formatISO/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO9075/index.d.ts b/node_modules/date-fns/esm/fp/formatISO9075/index.d.ts new file mode 100644 index 00000000..171e2b74 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075 } from 'date-fns/fp' +export default formatISO9075 diff --git a/node_modules/date-fns/esm/fp/formatISO9075/index.js b/node_modules/date-fns/esm/fp/formatISO9075/index.js new file mode 100644 index 00000000..518a66d6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatISO9075/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO9075/index.js.flow b/node_modules/date-fns/esm/fp/formatISO9075/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatISO9075/package.json b/node_modules/date-fns/esm/fp/formatISO9075/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.d.ts new file mode 100644 index 00000000..3000885a --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075WithOptions } from 'date-fns/fp' +export default formatISO9075WithOptions diff --git a/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js new file mode 100644 index 00000000..0275f9fc --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatISO9075/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js.flow new file mode 100644 index 00000000..fd294f17 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatISO9075WithOptions/package.json b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISO9075WithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISODuration/index.d.ts b/node_modules/date-fns/esm/fp/formatISODuration/index.d.ts new file mode 100644 index 00000000..aedd0869 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISODuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISODuration } from 'date-fns/fp' +export default formatISODuration diff --git a/node_modules/date-fns/esm/fp/formatISODuration/index.js b/node_modules/date-fns/esm/fp/formatISODuration/index.js new file mode 100644 index 00000000..66f78942 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISODuration/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatISODuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISODuration/index.js.flow b/node_modules/date-fns/esm/fp/formatISODuration/index.js.flow new file mode 100644 index 00000000..da715644 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISODuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatISODuration/package.json b/node_modules/date-fns/esm/fp/formatISODuration/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISODuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISOWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.d.ts new file mode 100644 index 00000000..286813e2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISOWithOptions } from 'date-fns/fp' +export default formatISOWithOptions diff --git a/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js new file mode 100644 index 00000000..4c46dc28 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js.flow new file mode 100644 index 00000000..fd294f17 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatISOWithOptions/package.json b/node_modules/date-fns/esm/fp/formatISOWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatISOWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC3339/index.d.ts b/node_modules/date-fns/esm/fp/formatRFC3339/index.d.ts new file mode 100644 index 00000000..c1ac8272 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339 } from 'date-fns/fp' +export default formatRFC3339 diff --git a/node_modules/date-fns/esm/fp/formatRFC3339/index.js b/node_modules/date-fns/esm/fp/formatRFC3339/index.js new file mode 100644 index 00000000..dd7c6c5c --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatRFC3339/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC3339/index.js.flow b/node_modules/date-fns/esm/fp/formatRFC3339/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatRFC3339/package.json b/node_modules/date-fns/esm/fp/formatRFC3339/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.d.ts new file mode 100644 index 00000000..b274531d --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339WithOptions } from 'date-fns/fp' +export default formatRFC3339WithOptions diff --git a/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js new file mode 100644 index 00000000..e2342add --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatRFC3339/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js.flow new file mode 100644 index 00000000..77fba595 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3, + }, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/package.json b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC3339WithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC7231/index.d.ts b/node_modules/date-fns/esm/fp/formatRFC7231/index.d.ts new file mode 100644 index 00000000..ca45e433 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC7231/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC7231 } from 'date-fns/fp' +export default formatRFC7231 diff --git a/node_modules/date-fns/esm/fp/formatRFC7231/index.js b/node_modules/date-fns/esm/fp/formatRFC7231/index.js new file mode 100644 index 00000000..b537affa --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC7231/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatRFC7231/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRFC7231/index.js.flow b/node_modules/date-fns/esm/fp/formatRFC7231/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC7231/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/formatRFC7231/package.json b/node_modules/date-fns/esm/fp/formatRFC7231/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRFC7231/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRelative/index.d.ts b/node_modules/date-fns/esm/fp/formatRelative/index.d.ts new file mode 100644 index 00000000..927a3001 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelative } from 'date-fns/fp' +export default formatRelative diff --git a/node_modules/date-fns/esm/fp/formatRelative/index.js b/node_modules/date-fns/esm/fp/formatRelative/index.js new file mode 100644 index 00000000..f84d2308 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatRelative/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRelative/index.js.flow b/node_modules/date-fns/esm/fp/formatRelative/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/formatRelative/package.json b/node_modules/date-fns/esm/fp/formatRelative/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelative/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.d.ts new file mode 100644 index 00000000..5bea41aa --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelativeWithOptions } from 'date-fns/fp' +export default formatRelativeWithOptions diff --git a/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js new file mode 100644 index 00000000..47b7fec3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../formatRelative/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js.flow new file mode 100644 index 00000000..cb51d97a --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatRelativeWithOptions/package.json b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatRelativeWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/formatWithOptions/index.d.ts new file mode 100644 index 00000000..cd59897d --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatWithOptions } from 'date-fns/fp' +export default formatWithOptions diff --git a/node_modules/date-fns/esm/fp/formatWithOptions/index.js b/node_modules/date-fns/esm/fp/formatWithOptions/index.js new file mode 100644 index 00000000..fcfd5d98 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../format/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/formatWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/formatWithOptions/index.js.flow new file mode 100644 index 00000000..757f95ad --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: number, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/formatWithOptions/package.json b/node_modules/date-fns/esm/fp/formatWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/formatWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/fromUnixTime/index.d.ts b/node_modules/date-fns/esm/fp/fromUnixTime/index.d.ts new file mode 100644 index 00000000..e6cbce37 --- /dev/null +++ b/node_modules/date-fns/esm/fp/fromUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fromUnixTime } from 'date-fns/fp' +export default fromUnixTime diff --git a/node_modules/date-fns/esm/fp/fromUnixTime/index.js b/node_modules/date-fns/esm/fp/fromUnixTime/index.js new file mode 100644 index 00000000..46aacbc2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/fromUnixTime/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../fromUnixTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/fromUnixTime/index.js.flow b/node_modules/date-fns/esm/fp/fromUnixTime/index.js.flow new file mode 100644 index 00000000..27fa8867 --- /dev/null +++ b/node_modules/date-fns/esm/fp/fromUnixTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/fromUnixTime/package.json b/node_modules/date-fns/esm/fp/fromUnixTime/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/fromUnixTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDate/index.d.ts b/node_modules/date-fns/esm/fp/getDate/index.d.ts new file mode 100644 index 00000000..879f12cf --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDate } from 'date-fns/fp' +export default getDate diff --git a/node_modules/date-fns/esm/fp/getDate/index.js b/node_modules/date-fns/esm/fp/getDate/index.js new file mode 100644 index 00000000..e7555fcb --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDate/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDate/index.js.flow b/node_modules/date-fns/esm/fp/getDate/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDate/package.json b/node_modules/date-fns/esm/fp/getDate/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDay/index.d.ts b/node_modules/date-fns/esm/fp/getDay/index.d.ts new file mode 100644 index 00000000..e1bccbbe --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDay } from 'date-fns/fp' +export default getDay diff --git a/node_modules/date-fns/esm/fp/getDay/index.js b/node_modules/date-fns/esm/fp/getDay/index.js new file mode 100644 index 00000000..4c5d9c61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDay/index.js.flow b/node_modules/date-fns/esm/fp/getDay/index.js.flow new file mode 100644 index 00000000..8971f41f --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDay/package.json b/node_modules/date-fns/esm/fp/getDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDayOfYear/index.d.ts b/node_modules/date-fns/esm/fp/getDayOfYear/index.d.ts new file mode 100644 index 00000000..ccc88e16 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDayOfYear } from 'date-fns/fp' +export default getDayOfYear diff --git a/node_modules/date-fns/esm/fp/getDayOfYear/index.js b/node_modules/date-fns/esm/fp/getDayOfYear/index.js new file mode 100644 index 00000000..40136b6c --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDayOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDayOfYear/index.js.flow b/node_modules/date-fns/esm/fp/getDayOfYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDayOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDayOfYear/package.json b/node_modules/date-fns/esm/fp/getDayOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDaysInMonth/index.d.ts b/node_modules/date-fns/esm/fp/getDaysInMonth/index.d.ts new file mode 100644 index 00000000..2ca84459 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInMonth } from 'date-fns/fp' +export default getDaysInMonth diff --git a/node_modules/date-fns/esm/fp/getDaysInMonth/index.js b/node_modules/date-fns/esm/fp/getDaysInMonth/index.js new file mode 100644 index 00000000..30df3d5e --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDaysInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDaysInMonth/index.js.flow b/node_modules/date-fns/esm/fp/getDaysInMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDaysInMonth/package.json b/node_modules/date-fns/esm/fp/getDaysInMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDaysInYear/index.d.ts b/node_modules/date-fns/esm/fp/getDaysInYear/index.d.ts new file mode 100644 index 00000000..599213fa --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInYear } from 'date-fns/fp' +export default getDaysInYear diff --git a/node_modules/date-fns/esm/fp/getDaysInYear/index.js b/node_modules/date-fns/esm/fp/getDaysInYear/index.js new file mode 100644 index 00000000..c19ab29d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDaysInYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDaysInYear/index.js.flow b/node_modules/date-fns/esm/fp/getDaysInYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDaysInYear/package.json b/node_modules/date-fns/esm/fp/getDaysInYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDaysInYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDecade/index.d.ts b/node_modules/date-fns/esm/fp/getDecade/index.d.ts new file mode 100644 index 00000000..ca1c9c5c --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDecade } from 'date-fns/fp' +export default getDecade diff --git a/node_modules/date-fns/esm/fp/getDecade/index.js b/node_modules/date-fns/esm/fp/getDecade/index.js new file mode 100644 index 00000000..8e82cb28 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDecade/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getDecade/index.js.flow b/node_modules/date-fns/esm/fp/getDecade/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getDecade/package.json b/node_modules/date-fns/esm/fp/getDecade/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getHours/index.d.ts b/node_modules/date-fns/esm/fp/getHours/index.d.ts new file mode 100644 index 00000000..9daea8a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getHours } from 'date-fns/fp' +export default getHours diff --git a/node_modules/date-fns/esm/fp/getHours/index.js b/node_modules/date-fns/esm/fp/getHours/index.js new file mode 100644 index 00000000..eece452b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getHours/index.js.flow b/node_modules/date-fns/esm/fp/getHours/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getHours/package.json b/node_modules/date-fns/esm/fp/getHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISODay/index.d.ts b/node_modules/date-fns/esm/fp/getISODay/index.d.ts new file mode 100644 index 00000000..c85663ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISODay } from 'date-fns/fp' +export default getISODay diff --git a/node_modules/date-fns/esm/fp/getISODay/index.js b/node_modules/date-fns/esm/fp/getISODay/index.js new file mode 100644 index 00000000..95d167c9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISODay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getISODay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISODay/index.js.flow b/node_modules/date-fns/esm/fp/getISODay/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISODay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getISODay/package.json b/node_modules/date-fns/esm/fp/getISODay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISODay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/getISOWeek/index.d.ts new file mode 100644 index 00000000..2574d715 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeek } from 'date-fns/fp' +export default getISOWeek diff --git a/node_modules/date-fns/esm/fp/getISOWeek/index.js b/node_modules/date-fns/esm/fp/getISOWeek/index.js new file mode 100644 index 00000000..d36c7f90 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/getISOWeek/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getISOWeek/package.json b/node_modules/date-fns/esm/fp/getISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/getISOWeekYear/index.d.ts new file mode 100644 index 00000000..b0cfad87 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeekYear } from 'date-fns/fp' +export default getISOWeekYear diff --git a/node_modules/date-fns/esm/fp/getISOWeekYear/index.js b/node_modules/date-fns/esm/fp/getISOWeekYear/index.js new file mode 100644 index 00000000..ae405de6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/getISOWeekYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getISOWeekYear/package.json b/node_modules/date-fns/esm/fp/getISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.d.ts b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.d.ts new file mode 100644 index 00000000..3a1d6af6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeeksInYear } from 'date-fns/fp' +export default getISOWeeksInYear diff --git a/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js new file mode 100644 index 00000000..b0ab3d52 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getISOWeeksInYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js.flow b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeeksInYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getISOWeeksInYear/package.json b/node_modules/date-fns/esm/fp/getISOWeeksInYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getISOWeeksInYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/getMilliseconds/index.d.ts new file mode 100644 index 00000000..c1259627 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMilliseconds } from 'date-fns/fp' +export default getMilliseconds diff --git a/node_modules/date-fns/esm/fp/getMilliseconds/index.js b/node_modules/date-fns/esm/fp/getMilliseconds/index.js new file mode 100644 index 00000000..358bbdf5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/getMilliseconds/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getMilliseconds/package.json b/node_modules/date-fns/esm/fp/getMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMinutes/index.d.ts b/node_modules/date-fns/esm/fp/getMinutes/index.d.ts new file mode 100644 index 00000000..14b6b049 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMinutes } from 'date-fns/fp' +export default getMinutes diff --git a/node_modules/date-fns/esm/fp/getMinutes/index.js b/node_modules/date-fns/esm/fp/getMinutes/index.js new file mode 100644 index 00000000..bed42d4d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMinutes/index.js.flow b/node_modules/date-fns/esm/fp/getMinutes/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getMinutes/package.json b/node_modules/date-fns/esm/fp/getMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMonth/index.d.ts b/node_modules/date-fns/esm/fp/getMonth/index.d.ts new file mode 100644 index 00000000..a7c696a0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMonth } from 'date-fns/fp' +export default getMonth diff --git a/node_modules/date-fns/esm/fp/getMonth/index.js b/node_modules/date-fns/esm/fp/getMonth/index.js new file mode 100644 index 00000000..7dda00fb --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getMonth/index.js.flow b/node_modules/date-fns/esm/fp/getMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getMonth/package.json b/node_modules/date-fns/esm/fp/getMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.d.ts b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.d.ts new file mode 100644 index 00000000..de0b970a --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getOverlappingDaysInIntervals } from 'date-fns/fp' +export default getOverlappingDaysInIntervals diff --git a/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js new file mode 100644 index 00000000..abef3361 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getOverlappingDaysInIntervals/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js.flow b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js.flow new file mode 100644 index 00000000..f640837e --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/package.json b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getOverlappingDaysInIntervals/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getQuarter/index.d.ts b/node_modules/date-fns/esm/fp/getQuarter/index.d.ts new file mode 100644 index 00000000..50f13f60 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getQuarter } from 'date-fns/fp' +export default getQuarter diff --git a/node_modules/date-fns/esm/fp/getQuarter/index.js b/node_modules/date-fns/esm/fp/getQuarter/index.js new file mode 100644 index 00000000..ea03d9b6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getQuarter/index.js.flow b/node_modules/date-fns/esm/fp/getQuarter/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getQuarter/package.json b/node_modules/date-fns/esm/fp/getQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getSeconds/index.d.ts b/node_modules/date-fns/esm/fp/getSeconds/index.d.ts new file mode 100644 index 00000000..1f6c2337 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getSeconds } from 'date-fns/fp' +export default getSeconds diff --git a/node_modules/date-fns/esm/fp/getSeconds/index.js b/node_modules/date-fns/esm/fp/getSeconds/index.js new file mode 100644 index 00000000..89ecd097 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getSeconds/index.js.flow b/node_modules/date-fns/esm/fp/getSeconds/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getSeconds/package.json b/node_modules/date-fns/esm/fp/getSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getTime/index.d.ts b/node_modules/date-fns/esm/fp/getTime/index.d.ts new file mode 100644 index 00000000..7bfc8cec --- /dev/null +++ b/node_modules/date-fns/esm/fp/getTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getTime } from 'date-fns/fp' +export default getTime diff --git a/node_modules/date-fns/esm/fp/getTime/index.js b/node_modules/date-fns/esm/fp/getTime/index.js new file mode 100644 index 00000000..8a378dc1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getTime/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getTime/index.js.flow b/node_modules/date-fns/esm/fp/getTime/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getTime/package.json b/node_modules/date-fns/esm/fp/getTime/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getUnixTime/index.d.ts b/node_modules/date-fns/esm/fp/getUnixTime/index.d.ts new file mode 100644 index 00000000..7fb0dac3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getUnixTime } from 'date-fns/fp' +export default getUnixTime diff --git a/node_modules/date-fns/esm/fp/getUnixTime/index.js b/node_modules/date-fns/esm/fp/getUnixTime/index.js new file mode 100644 index 00000000..780ccacb --- /dev/null +++ b/node_modules/date-fns/esm/fp/getUnixTime/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getUnixTime/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getUnixTime/index.js.flow b/node_modules/date-fns/esm/fp/getUnixTime/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getUnixTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getUnixTime/package.json b/node_modules/date-fns/esm/fp/getUnixTime/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getUnixTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeek/index.d.ts b/node_modules/date-fns/esm/fp/getWeek/index.d.ts new file mode 100644 index 00000000..2b3b4eea --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeek } from 'date-fns/fp' +export default getWeek diff --git a/node_modules/date-fns/esm/fp/getWeek/index.js b/node_modules/date-fns/esm/fp/getWeek/index.js new file mode 100644 index 00000000..26ec06f0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeek/index.js.flow b/node_modules/date-fns/esm/fp/getWeek/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getWeek/package.json b/node_modules/date-fns/esm/fp/getWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.d.ts new file mode 100644 index 00000000..1fd925fe --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonth } from 'date-fns/fp' +export default getWeekOfMonth diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js new file mode 100644 index 00000000..e56f34a0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeekOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonth/package.json b/node_modules/date-fns/esm/fp/getWeekOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.d.ts new file mode 100644 index 00000000..0bcf9e4c --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonthWithOptions } from 'date-fns/fp' +export default getWeekOfMonthWithOptions diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js new file mode 100644 index 00000000..f8d054b7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeekOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js.flow new file mode 100644 index 00000000..d1b5c201 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/package.json b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekOfMonthWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.d.ts new file mode 100644 index 00000000..6f2de404 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekWithOptions } from 'date-fns/fp' +export default getWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js new file mode 100644 index 00000000..cdf50ed5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js.flow new file mode 100644 index 00000000..970a659f --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/getWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/getWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/getWeekYear/index.d.ts new file mode 100644 index 00000000..7cf37e0f --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYear } from 'date-fns/fp' +export default getWeekYear diff --git a/node_modules/date-fns/esm/fp/getWeekYear/index.js b/node_modules/date-fns/esm/fp/getWeekYear/index.js new file mode 100644 index 00000000..3058238d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/getWeekYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getWeekYear/package.json b/node_modules/date-fns/esm/fp/getWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..d33a37a0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYearWithOptions } from 'date-fns/fp' +export default getWeekYearWithOptions diff --git a/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js new file mode 100644 index 00000000..67966bc4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..970a659f --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/getWeekYearWithOptions/package.json b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeekYearWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonth/index.d.ts b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.d.ts new file mode 100644 index 00000000..2de5a9ce --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonth } from 'date-fns/fp' +export default getWeeksInMonth diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js new file mode 100644 index 00000000..c08318bd --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeeksInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js.flow b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonth/package.json b/node_modules/date-fns/esm/fp/getWeeksInMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.d.ts new file mode 100644 index 00000000..9016970f --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonthWithOptions } from 'date-fns/fp' +export default getWeeksInMonthWithOptions diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js new file mode 100644 index 00000000..7d5f28e4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getWeeksInMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js.flow new file mode 100644 index 00000000..d1b5c201 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/package.json b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getWeeksInMonthWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getYear/index.d.ts b/node_modules/date-fns/esm/fp/getYear/index.d.ts new file mode 100644 index 00000000..603dc711 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getYear } from 'date-fns/fp' +export default getYear diff --git a/node_modules/date-fns/esm/fp/getYear/index.js b/node_modules/date-fns/esm/fp/getYear/index.js new file mode 100644 index 00000000..f607f16d --- /dev/null +++ b/node_modules/date-fns/esm/fp/getYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../getYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/getYear/index.js.flow b/node_modules/date-fns/esm/fp/getYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/esm/fp/getYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/getYear/package.json b/node_modules/date-fns/esm/fp/getYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/getYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.d.ts new file mode 100644 index 00000000..14caeace --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMilliseconds } from 'date-fns/fp' +export default hoursToMilliseconds diff --git a/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js new file mode 100644 index 00000000..e27a0bfd --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../hoursToMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/hoursToMilliseconds/package.json b/node_modules/date-fns/esm/fp/hoursToMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToMinutes/index.d.ts b/node_modules/date-fns/esm/fp/hoursToMinutes/index.d.ts new file mode 100644 index 00000000..e834de44 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMinutes } from 'date-fns/fp' +export default hoursToMinutes diff --git a/node_modules/date-fns/esm/fp/hoursToMinutes/index.js b/node_modules/date-fns/esm/fp/hoursToMinutes/index.js new file mode 100644 index 00000000..f82e03e8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../hoursToMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToMinutes/index.js.flow b/node_modules/date-fns/esm/fp/hoursToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/hoursToMinutes/package.json b/node_modules/date-fns/esm/fp/hoursToMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToSeconds/index.d.ts b/node_modules/date-fns/esm/fp/hoursToSeconds/index.d.ts new file mode 100644 index 00000000..35a5bfdd --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToSeconds } from 'date-fns/fp' +export default hoursToSeconds diff --git a/node_modules/date-fns/esm/fp/hoursToSeconds/index.js b/node_modules/date-fns/esm/fp/hoursToSeconds/index.js new file mode 100644 index 00000000..482e8a17 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../hoursToSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/hoursToSeconds/index.js.flow b/node_modules/date-fns/esm/fp/hoursToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/hoursToSeconds/package.json b/node_modules/date-fns/esm/fp/hoursToSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/hoursToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/index.js b/node_modules/date-fns/esm/fp/index.js new file mode 100644 index 00000000..73b01122 --- /dev/null +++ b/node_modules/date-fns/esm/fp/index.js @@ -0,0 +1,256 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. +export { default as add } from "./add/index.js"; +export { default as addBusinessDays } from "./addBusinessDays/index.js"; +export { default as addDays } from "./addDays/index.js"; +export { default as addHours } from "./addHours/index.js"; +export { default as addISOWeekYears } from "./addISOWeekYears/index.js"; +export { default as addMilliseconds } from "./addMilliseconds/index.js"; +export { default as addMinutes } from "./addMinutes/index.js"; +export { default as addMonths } from "./addMonths/index.js"; +export { default as addQuarters } from "./addQuarters/index.js"; +export { default as addSeconds } from "./addSeconds/index.js"; +export { default as addWeeks } from "./addWeeks/index.js"; +export { default as addYears } from "./addYears/index.js"; +export { default as areIntervalsOverlapping } from "./areIntervalsOverlapping/index.js"; +export { default as areIntervalsOverlappingWithOptions } from "./areIntervalsOverlappingWithOptions/index.js"; +export { default as clamp } from "./clamp/index.js"; +export { default as closestIndexTo } from "./closestIndexTo/index.js"; +export { default as closestTo } from "./closestTo/index.js"; +export { default as compareAsc } from "./compareAsc/index.js"; +export { default as compareDesc } from "./compareDesc/index.js"; +export { default as daysToWeeks } from "./daysToWeeks/index.js"; +export { default as differenceInBusinessDays } from "./differenceInBusinessDays/index.js"; +export { default as differenceInCalendarDays } from "./differenceInCalendarDays/index.js"; +export { default as differenceInCalendarISOWeekYears } from "./differenceInCalendarISOWeekYears/index.js"; +export { default as differenceInCalendarISOWeeks } from "./differenceInCalendarISOWeeks/index.js"; +export { default as differenceInCalendarMonths } from "./differenceInCalendarMonths/index.js"; +export { default as differenceInCalendarQuarters } from "./differenceInCalendarQuarters/index.js"; +export { default as differenceInCalendarWeeks } from "./differenceInCalendarWeeks/index.js"; +export { default as differenceInCalendarWeeksWithOptions } from "./differenceInCalendarWeeksWithOptions/index.js"; +export { default as differenceInCalendarYears } from "./differenceInCalendarYears/index.js"; +export { default as differenceInDays } from "./differenceInDays/index.js"; +export { default as differenceInHours } from "./differenceInHours/index.js"; +export { default as differenceInHoursWithOptions } from "./differenceInHoursWithOptions/index.js"; +export { default as differenceInISOWeekYears } from "./differenceInISOWeekYears/index.js"; +export { default as differenceInMilliseconds } from "./differenceInMilliseconds/index.js"; +export { default as differenceInMinutes } from "./differenceInMinutes/index.js"; +export { default as differenceInMinutesWithOptions } from "./differenceInMinutesWithOptions/index.js"; +export { default as differenceInMonths } from "./differenceInMonths/index.js"; +export { default as differenceInQuarters } from "./differenceInQuarters/index.js"; +export { default as differenceInQuartersWithOptions } from "./differenceInQuartersWithOptions/index.js"; +export { default as differenceInSeconds } from "./differenceInSeconds/index.js"; +export { default as differenceInSecondsWithOptions } from "./differenceInSecondsWithOptions/index.js"; +export { default as differenceInWeeks } from "./differenceInWeeks/index.js"; +export { default as differenceInWeeksWithOptions } from "./differenceInWeeksWithOptions/index.js"; +export { default as differenceInYears } from "./differenceInYears/index.js"; +export { default as eachDayOfInterval } from "./eachDayOfInterval/index.js"; +export { default as eachDayOfIntervalWithOptions } from "./eachDayOfIntervalWithOptions/index.js"; +export { default as eachHourOfInterval } from "./eachHourOfInterval/index.js"; +export { default as eachHourOfIntervalWithOptions } from "./eachHourOfIntervalWithOptions/index.js"; +export { default as eachMinuteOfInterval } from "./eachMinuteOfInterval/index.js"; +export { default as eachMinuteOfIntervalWithOptions } from "./eachMinuteOfIntervalWithOptions/index.js"; +export { default as eachMonthOfInterval } from "./eachMonthOfInterval/index.js"; +export { default as eachQuarterOfInterval } from "./eachQuarterOfInterval/index.js"; +export { default as eachWeekOfInterval } from "./eachWeekOfInterval/index.js"; +export { default as eachWeekOfIntervalWithOptions } from "./eachWeekOfIntervalWithOptions/index.js"; +export { default as eachWeekendOfInterval } from "./eachWeekendOfInterval/index.js"; +export { default as eachWeekendOfMonth } from "./eachWeekendOfMonth/index.js"; +export { default as eachWeekendOfYear } from "./eachWeekendOfYear/index.js"; +export { default as eachYearOfInterval } from "./eachYearOfInterval/index.js"; +export { default as endOfDay } from "./endOfDay/index.js"; +export { default as endOfDecade } from "./endOfDecade/index.js"; +export { default as endOfDecadeWithOptions } from "./endOfDecadeWithOptions/index.js"; +export { default as endOfHour } from "./endOfHour/index.js"; +export { default as endOfISOWeek } from "./endOfISOWeek/index.js"; +export { default as endOfISOWeekYear } from "./endOfISOWeekYear/index.js"; +export { default as endOfMinute } from "./endOfMinute/index.js"; +export { default as endOfMonth } from "./endOfMonth/index.js"; +export { default as endOfQuarter } from "./endOfQuarter/index.js"; +export { default as endOfSecond } from "./endOfSecond/index.js"; +export { default as endOfWeek } from "./endOfWeek/index.js"; +export { default as endOfWeekWithOptions } from "./endOfWeekWithOptions/index.js"; +export { default as endOfYear } from "./endOfYear/index.js"; +export { default as format } from "./format/index.js"; +export { default as formatDistance } from "./formatDistance/index.js"; +export { default as formatDistanceStrict } from "./formatDistanceStrict/index.js"; +export { default as formatDistanceStrictWithOptions } from "./formatDistanceStrictWithOptions/index.js"; +export { default as formatDistanceWithOptions } from "./formatDistanceWithOptions/index.js"; +export { default as formatDuration } from "./formatDuration/index.js"; +export { default as formatDurationWithOptions } from "./formatDurationWithOptions/index.js"; +export { default as formatISO } from "./formatISO/index.js"; +export { default as formatISO9075 } from "./formatISO9075/index.js"; +export { default as formatISO9075WithOptions } from "./formatISO9075WithOptions/index.js"; +export { default as formatISODuration } from "./formatISODuration/index.js"; +export { default as formatISOWithOptions } from "./formatISOWithOptions/index.js"; +export { default as formatRFC3339 } from "./formatRFC3339/index.js"; +export { default as formatRFC3339WithOptions } from "./formatRFC3339WithOptions/index.js"; +export { default as formatRFC7231 } from "./formatRFC7231/index.js"; +export { default as formatRelative } from "./formatRelative/index.js"; +export { default as formatRelativeWithOptions } from "./formatRelativeWithOptions/index.js"; +export { default as formatWithOptions } from "./formatWithOptions/index.js"; +export { default as fromUnixTime } from "./fromUnixTime/index.js"; +export { default as getDate } from "./getDate/index.js"; +export { default as getDay } from "./getDay/index.js"; +export { default as getDayOfYear } from "./getDayOfYear/index.js"; +export { default as getDaysInMonth } from "./getDaysInMonth/index.js"; +export { default as getDaysInYear } from "./getDaysInYear/index.js"; +export { default as getDecade } from "./getDecade/index.js"; +export { default as getHours } from "./getHours/index.js"; +export { default as getISODay } from "./getISODay/index.js"; +export { default as getISOWeek } from "./getISOWeek/index.js"; +export { default as getISOWeekYear } from "./getISOWeekYear/index.js"; +export { default as getISOWeeksInYear } from "./getISOWeeksInYear/index.js"; +export { default as getMilliseconds } from "./getMilliseconds/index.js"; +export { default as getMinutes } from "./getMinutes/index.js"; +export { default as getMonth } from "./getMonth/index.js"; +export { default as getOverlappingDaysInIntervals } from "./getOverlappingDaysInIntervals/index.js"; +export { default as getQuarter } from "./getQuarter/index.js"; +export { default as getSeconds } from "./getSeconds/index.js"; +export { default as getTime } from "./getTime/index.js"; +export { default as getUnixTime } from "./getUnixTime/index.js"; +export { default as getWeek } from "./getWeek/index.js"; +export { default as getWeekOfMonth } from "./getWeekOfMonth/index.js"; +export { default as getWeekOfMonthWithOptions } from "./getWeekOfMonthWithOptions/index.js"; +export { default as getWeekWithOptions } from "./getWeekWithOptions/index.js"; +export { default as getWeekYear } from "./getWeekYear/index.js"; +export { default as getWeekYearWithOptions } from "./getWeekYearWithOptions/index.js"; +export { default as getWeeksInMonth } from "./getWeeksInMonth/index.js"; +export { default as getWeeksInMonthWithOptions } from "./getWeeksInMonthWithOptions/index.js"; +export { default as getYear } from "./getYear/index.js"; +export { default as hoursToMilliseconds } from "./hoursToMilliseconds/index.js"; +export { default as hoursToMinutes } from "./hoursToMinutes/index.js"; +export { default as hoursToSeconds } from "./hoursToSeconds/index.js"; +export { default as intervalToDuration } from "./intervalToDuration/index.js"; +export { default as intlFormat } from "./intlFormat/index.js"; +export { default as intlFormatDistance } from "./intlFormatDistance/index.js"; +export { default as intlFormatDistanceWithOptions } from "./intlFormatDistanceWithOptions/index.js"; +export { default as isAfter } from "./isAfter/index.js"; +export { default as isBefore } from "./isBefore/index.js"; +export { default as isDate } from "./isDate/index.js"; +export { default as isEqual } from "./isEqual/index.js"; +export { default as isExists } from "./isExists/index.js"; +export { default as isFirstDayOfMonth } from "./isFirstDayOfMonth/index.js"; +export { default as isFriday } from "./isFriday/index.js"; +export { default as isLastDayOfMonth } from "./isLastDayOfMonth/index.js"; +export { default as isLeapYear } from "./isLeapYear/index.js"; +export { default as isMatch } from "./isMatch/index.js"; +export { default as isMatchWithOptions } from "./isMatchWithOptions/index.js"; +export { default as isMonday } from "./isMonday/index.js"; +export { default as isSameDay } from "./isSameDay/index.js"; +export { default as isSameHour } from "./isSameHour/index.js"; +export { default as isSameISOWeek } from "./isSameISOWeek/index.js"; +export { default as isSameISOWeekYear } from "./isSameISOWeekYear/index.js"; +export { default as isSameMinute } from "./isSameMinute/index.js"; +export { default as isSameMonth } from "./isSameMonth/index.js"; +export { default as isSameQuarter } from "./isSameQuarter/index.js"; +export { default as isSameSecond } from "./isSameSecond/index.js"; +export { default as isSameWeek } from "./isSameWeek/index.js"; +export { default as isSameWeekWithOptions } from "./isSameWeekWithOptions/index.js"; +export { default as isSameYear } from "./isSameYear/index.js"; +export { default as isSaturday } from "./isSaturday/index.js"; +export { default as isSunday } from "./isSunday/index.js"; +export { default as isThursday } from "./isThursday/index.js"; +export { default as isTuesday } from "./isTuesday/index.js"; +export { default as isValid } from "./isValid/index.js"; +export { default as isWednesday } from "./isWednesday/index.js"; +export { default as isWeekend } from "./isWeekend/index.js"; +export { default as isWithinInterval } from "./isWithinInterval/index.js"; +export { default as lastDayOfDecade } from "./lastDayOfDecade/index.js"; +export { default as lastDayOfISOWeek } from "./lastDayOfISOWeek/index.js"; +export { default as lastDayOfISOWeekYear } from "./lastDayOfISOWeekYear/index.js"; +export { default as lastDayOfMonth } from "./lastDayOfMonth/index.js"; +export { default as lastDayOfQuarter } from "./lastDayOfQuarter/index.js"; +export { default as lastDayOfQuarterWithOptions } from "./lastDayOfQuarterWithOptions/index.js"; +export { default as lastDayOfWeek } from "./lastDayOfWeek/index.js"; +export { default as lastDayOfWeekWithOptions } from "./lastDayOfWeekWithOptions/index.js"; +export { default as lastDayOfYear } from "./lastDayOfYear/index.js"; +export { default as lightFormat } from "./lightFormat/index.js"; +export { default as max } from "./max/index.js"; +export { default as milliseconds } from "./milliseconds/index.js"; +export { default as millisecondsToHours } from "./millisecondsToHours/index.js"; +export { default as millisecondsToMinutes } from "./millisecondsToMinutes/index.js"; +export { default as millisecondsToSeconds } from "./millisecondsToSeconds/index.js"; +export { default as min } from "./min/index.js"; +export { default as minutesToHours } from "./minutesToHours/index.js"; +export { default as minutesToMilliseconds } from "./minutesToMilliseconds/index.js"; +export { default as minutesToSeconds } from "./minutesToSeconds/index.js"; +export { default as monthsToQuarters } from "./monthsToQuarters/index.js"; +export { default as monthsToYears } from "./monthsToYears/index.js"; +export { default as nextDay } from "./nextDay/index.js"; +export { default as nextFriday } from "./nextFriday/index.js"; +export { default as nextMonday } from "./nextMonday/index.js"; +export { default as nextSaturday } from "./nextSaturday/index.js"; +export { default as nextSunday } from "./nextSunday/index.js"; +export { default as nextThursday } from "./nextThursday/index.js"; +export { default as nextTuesday } from "./nextTuesday/index.js"; +export { default as nextWednesday } from "./nextWednesday/index.js"; +export { default as parse } from "./parse/index.js"; +export { default as parseISO } from "./parseISO/index.js"; +export { default as parseISOWithOptions } from "./parseISOWithOptions/index.js"; +export { default as parseJSON } from "./parseJSON/index.js"; +export { default as parseWithOptions } from "./parseWithOptions/index.js"; +export { default as previousDay } from "./previousDay/index.js"; +export { default as previousFriday } from "./previousFriday/index.js"; +export { default as previousMonday } from "./previousMonday/index.js"; +export { default as previousSaturday } from "./previousSaturday/index.js"; +export { default as previousSunday } from "./previousSunday/index.js"; +export { default as previousThursday } from "./previousThursday/index.js"; +export { default as previousTuesday } from "./previousTuesday/index.js"; +export { default as previousWednesday } from "./previousWednesday/index.js"; +export { default as quartersToMonths } from "./quartersToMonths/index.js"; +export { default as quartersToYears } from "./quartersToYears/index.js"; +export { default as roundToNearestMinutes } from "./roundToNearestMinutes/index.js"; +export { default as roundToNearestMinutesWithOptions } from "./roundToNearestMinutesWithOptions/index.js"; +export { default as secondsToHours } from "./secondsToHours/index.js"; +export { default as secondsToMilliseconds } from "./secondsToMilliseconds/index.js"; +export { default as secondsToMinutes } from "./secondsToMinutes/index.js"; +export { default as set } from "./set/index.js"; +export { default as setDate } from "./setDate/index.js"; +export { default as setDay } from "./setDay/index.js"; +export { default as setDayOfYear } from "./setDayOfYear/index.js"; +export { default as setDayWithOptions } from "./setDayWithOptions/index.js"; +export { default as setHours } from "./setHours/index.js"; +export { default as setISODay } from "./setISODay/index.js"; +export { default as setISOWeek } from "./setISOWeek/index.js"; +export { default as setISOWeekYear } from "./setISOWeekYear/index.js"; +export { default as setMilliseconds } from "./setMilliseconds/index.js"; +export { default as setMinutes } from "./setMinutes/index.js"; +export { default as setMonth } from "./setMonth/index.js"; +export { default as setQuarter } from "./setQuarter/index.js"; +export { default as setSeconds } from "./setSeconds/index.js"; +export { default as setWeek } from "./setWeek/index.js"; +export { default as setWeekWithOptions } from "./setWeekWithOptions/index.js"; +export { default as setWeekYear } from "./setWeekYear/index.js"; +export { default as setWeekYearWithOptions } from "./setWeekYearWithOptions/index.js"; +export { default as setYear } from "./setYear/index.js"; +export { default as startOfDay } from "./startOfDay/index.js"; +export { default as startOfDecade } from "./startOfDecade/index.js"; +export { default as startOfHour } from "./startOfHour/index.js"; +export { default as startOfISOWeek } from "./startOfISOWeek/index.js"; +export { default as startOfISOWeekYear } from "./startOfISOWeekYear/index.js"; +export { default as startOfMinute } from "./startOfMinute/index.js"; +export { default as startOfMonth } from "./startOfMonth/index.js"; +export { default as startOfQuarter } from "./startOfQuarter/index.js"; +export { default as startOfSecond } from "./startOfSecond/index.js"; +export { default as startOfWeek } from "./startOfWeek/index.js"; +export { default as startOfWeekWithOptions } from "./startOfWeekWithOptions/index.js"; +export { default as startOfWeekYear } from "./startOfWeekYear/index.js"; +export { default as startOfWeekYearWithOptions } from "./startOfWeekYearWithOptions/index.js"; +export { default as startOfYear } from "./startOfYear/index.js"; +export { default as sub } from "./sub/index.js"; +export { default as subBusinessDays } from "./subBusinessDays/index.js"; +export { default as subDays } from "./subDays/index.js"; +export { default as subHours } from "./subHours/index.js"; +export { default as subISOWeekYears } from "./subISOWeekYears/index.js"; +export { default as subMilliseconds } from "./subMilliseconds/index.js"; +export { default as subMinutes } from "./subMinutes/index.js"; +export { default as subMonths } from "./subMonths/index.js"; +export { default as subQuarters } from "./subQuarters/index.js"; +export { default as subSeconds } from "./subSeconds/index.js"; +export { default as subWeeks } from "./subWeeks/index.js"; +export { default as subYears } from "./subYears/index.js"; +export { default as toDate } from "./toDate/index.js"; +export { default as weeksToDays } from "./weeksToDays/index.js"; +export { default as yearsToMonths } from "./yearsToMonths/index.js"; +export { default as yearsToQuarters } from "./yearsToQuarters/index.js"; +export * from "../constants/index.js"; \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/index.js.flow b/node_modules/date-fns/esm/fp/index.js.flow new file mode 100644 index 00000000..0c481761 --- /dev/null +++ b/node_modules/date-fns/esm/fp/index.js.flow @@ -0,0 +1,694 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +type CurriedFn4 = ( + a: A +) => + | CurriedFn3 + | (( + a: A, + b: B + ) => + | CurriedFn2 + | (( + a: A, + b: B, + c: C + ) => CurriedFn1 | ((a: A, b: B, c: C, d: D) => R))) + +declare module.exports: { + add: CurriedFn2, + addBusinessDays: CurriedFn2, + addDays: CurriedFn2, + addHours: CurriedFn2, + addISOWeekYears: CurriedFn2, + addMilliseconds: CurriedFn2, + addMinutes: CurriedFn2, + addMonths: CurriedFn2, + addQuarters: CurriedFn2, + addSeconds: CurriedFn2, + addWeeks: CurriedFn2, + addYears: CurriedFn2, + areIntervalsOverlapping: CurriedFn2, + areIntervalsOverlappingWithOptions: CurriedFn3< + { + inclusive?: boolean, + }, + Interval, + Interval, + boolean + >, + clamp: CurriedFn2, + closestIndexTo: CurriedFn2<(Date | number)[], Date | number, ?number>, + closestTo: CurriedFn2<(Date | number)[], Date | number, ?Date>, + compareAsc: CurriedFn2, + compareDesc: CurriedFn2, + daysToWeeks: CurriedFn1, + differenceInBusinessDays: CurriedFn2, + differenceInCalendarDays: CurriedFn2, + differenceInCalendarISOWeeks: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarMonths: CurriedFn2, + differenceInCalendarQuarters: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarWeeks: CurriedFn2, + differenceInCalendarWeeksWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + number + >, + differenceInCalendarYears: CurriedFn2, + differenceInDays: CurriedFn2, + differenceInHours: CurriedFn2, + differenceInHoursWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInISOWeekYears: CurriedFn2, + differenceInMilliseconds: CurriedFn2, + differenceInMinutes: CurriedFn2, + differenceInMinutesWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInMonths: CurriedFn2, + differenceInQuarters: CurriedFn2, + differenceInQuartersWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInSeconds: CurriedFn2, + differenceInSecondsWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInWeeks: CurriedFn2, + differenceInWeeksWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInYears: CurriedFn2, + eachDayOfInterval: CurriedFn1, + eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachHourOfInterval: CurriedFn1, + eachHourOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachMinuteOfInterval: CurriedFn1, + eachMinuteOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachMonthOfInterval: CurriedFn1, + eachQuarterOfInterval: CurriedFn1, + eachWeekendOfInterval: CurriedFn1, + eachWeekendOfMonth: CurriedFn1, + eachWeekendOfYear: CurriedFn1, + eachWeekOfInterval: CurriedFn1, + eachWeekOfIntervalWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Interval, + Date[] + >, + eachYearOfInterval: CurriedFn1, + endOfDay: CurriedFn1, + endOfDecade: CurriedFn1, + endOfDecadeWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date + >, + endOfHour: CurriedFn1, + endOfISOWeek: CurriedFn1, + endOfISOWeekYear: CurriedFn1, + endOfMinute: CurriedFn1, + endOfMonth: CurriedFn1, + endOfQuarter: CurriedFn1, + endOfSecond: CurriedFn1, + endOfWeek: CurriedFn1, + endOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + endOfYear: CurriedFn1, + format: CurriedFn2, + formatDistance: CurriedFn2, + formatDistanceStrict: CurriedFn2, + formatDistanceStrictWithOptions: CurriedFn3< + { + locale?: Locale, + roundingMethod?: 'floor' | 'ceil' | 'round', + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + addSuffix?: boolean, + }, + Date | number, + Date | number, + string + >, + formatDistanceWithOptions: CurriedFn3< + { + locale?: Locale, + addSuffix?: boolean, + includeSeconds?: boolean, + }, + Date | number, + Date | number, + string + >, + formatDuration: CurriedFn1, + formatDurationWithOptions: CurriedFn2< + { + locale?: Locale, + delimiter?: string, + zero?: boolean, + format?: string[], + }, + Duration, + string + >, + formatISO: CurriedFn1, + formatISO9075: CurriedFn1, + formatISO9075WithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string + >, + formatISODuration: CurriedFn1, + formatISOWithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string + >, + formatRelative: CurriedFn2, + formatRelativeWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + string + >, + formatRFC3339: CurriedFn1, + formatRFC3339WithOptions: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3, + }, + Date | number, + string + >, + formatRFC7231: CurriedFn1, + formatWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: number, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + Date | number, + string + >, + fromUnixTime: CurriedFn1, + getDate: CurriedFn1, + getDay: CurriedFn1, + getDayOfYear: CurriedFn1, + getDaysInMonth: CurriedFn1, + getDaysInYear: CurriedFn1, + getDecade: CurriedFn1, + getHours: CurriedFn1, + getISODay: CurriedFn1, + getISOWeek: CurriedFn1, + getISOWeeksInYear: CurriedFn1, + getISOWeekYear: CurriedFn1, + getMilliseconds: CurriedFn1, + getMinutes: CurriedFn1, + getMonth: CurriedFn1, + getOverlappingDaysInIntervals: CurriedFn2, + getQuarter: CurriedFn1, + getSeconds: CurriedFn1, + getTime: CurriedFn1, + getUnixTime: CurriedFn1, + getWeek: CurriedFn1, + getWeekOfMonth: CurriedFn1, + getWeekOfMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeeksInMonth: CurriedFn1, + getWeeksInMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeekWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeekYear: CurriedFn1, + getWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getYear: CurriedFn1, + hoursToMilliseconds: CurriedFn1, + hoursToMinutes: CurriedFn1, + hoursToSeconds: CurriedFn1, + intervalToDuration: CurriedFn1, + intlFormat: CurriedFn3< + { + locale?: string | string[], + }, + { + timeZone?: string, + hour12?: boolean, + formatMatcher?: 'basic' | 'best fit', + timeZoneName?: 'short' | 'long', + second?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + day?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + era?: 'narrow' | 'short' | 'long', + weekday?: 'narrow' | 'short' | 'long', + localeMatcher?: 'lookup' | 'best fit', + }, + Date | number, + string + >, + intlFormatDistance: CurriedFn2, + intlFormatDistanceWithOptions: CurriedFn3< + { + style?: string, + numeric?: string, + localeMatcher?: string, + locale?: string | string[], + unit?: string, + }, + Date | number, + Date | number, + string + >, + isAfter: CurriedFn2, + isBefore: CurriedFn2, + isDate: CurriedFn1, + isEqual: CurriedFn2, + isExists: CurriedFn3, + isFirstDayOfMonth: CurriedFn1, + isFriday: CurriedFn1, + isLastDayOfMonth: CurriedFn1, + isLeapYear: CurriedFn1, + isMatch: CurriedFn2, + isMatchWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + string, + boolean + >, + isMonday: CurriedFn1, + isSameDay: CurriedFn2, + isSameHour: CurriedFn2, + isSameISOWeek: CurriedFn2, + isSameISOWeekYear: CurriedFn2, + isSameMinute: CurriedFn2, + isSameMonth: CurriedFn2, + isSameQuarter: CurriedFn2, + isSameSecond: CurriedFn2, + isSameWeek: CurriedFn2, + isSameWeekWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + boolean + >, + isSameYear: CurriedFn2, + isSaturday: CurriedFn1, + isSunday: CurriedFn1, + isThursday: CurriedFn1, + isTuesday: CurriedFn1, + isValid: CurriedFn1, + isWednesday: CurriedFn1, + isWeekend: CurriedFn1, + isWithinInterval: CurriedFn2, + lastDayOfDecade: CurriedFn1, + lastDayOfISOWeek: CurriedFn1, + lastDayOfISOWeekYear: CurriedFn1, + lastDayOfMonth: CurriedFn1, + lastDayOfQuarter: CurriedFn1, + lastDayOfQuarterWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date + >, + lastDayOfWeek: CurriedFn1, + lastDayOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + lastDayOfYear: CurriedFn1, + lightFormat: CurriedFn2, + max: CurriedFn1<(Date | number)[], Date>, + milliseconds: CurriedFn1, + millisecondsToHours: CurriedFn1, + millisecondsToMinutes: CurriedFn1, + millisecondsToSeconds: CurriedFn1, + min: CurriedFn1<(Date | number)[], Date>, + minutesToHours: CurriedFn1, + minutesToMilliseconds: CurriedFn1, + minutesToSeconds: CurriedFn1, + monthsToQuarters: CurriedFn1, + monthsToYears: CurriedFn1, + nextDay: CurriedFn2, + nextFriday: CurriedFn1, + nextMonday: CurriedFn1, + nextSaturday: CurriedFn1, + nextSunday: CurriedFn1, + nextThursday: CurriedFn1, + nextTuesday: CurriedFn1, + nextWednesday: CurriedFn1, + parse: CurriedFn3, + parseISO: CurriedFn1, + parseISOWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + string, + Date + >, + parseJSON: CurriedFn1, + parseWithOptions: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + string, + string, + Date + >, + previousDay: CurriedFn2, + previousFriday: CurriedFn1, + previousMonday: CurriedFn1, + previousSaturday: CurriedFn1, + previousSunday: CurriedFn1, + previousThursday: CurriedFn1, + previousTuesday: CurriedFn1, + previousWednesday: CurriedFn1, + quartersToMonths: CurriedFn1, + quartersToYears: CurriedFn1, + roundToNearestMinutes: CurriedFn1, + roundToNearestMinutesWithOptions: CurriedFn2< + { + roundingMethod?: string, + nearestTo?: number, + }, + Date | number, + Date + >, + secondsToHours: CurriedFn1, + secondsToMilliseconds: CurriedFn1, + secondsToMinutes: CurriedFn1, + set: CurriedFn2< + { + milliseconds?: number, + seconds?: number, + minutes?: number, + hours?: number, + date?: number, + month?: number, + year?: number, + }, + Date | number, + Date + >, + setDate: CurriedFn2, + setDay: CurriedFn2, + setDayOfYear: CurriedFn2, + setDayWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setHours: CurriedFn2, + setISODay: CurriedFn2, + setISOWeek: CurriedFn2, + setISOWeekYear: CurriedFn2, + setMilliseconds: CurriedFn2, + setMinutes: CurriedFn2, + setMonth: CurriedFn2, + setQuarter: CurriedFn2, + setSeconds: CurriedFn2, + setWeek: CurriedFn2, + setWeekWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setWeekYear: CurriedFn2, + setWeekYearWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setYear: CurriedFn2, + startOfDay: CurriedFn1, + startOfDecade: CurriedFn1, + startOfHour: CurriedFn1, + startOfISOWeek: CurriedFn1, + startOfISOWeekYear: CurriedFn1, + startOfMinute: CurriedFn1, + startOfMonth: CurriedFn1, + startOfQuarter: CurriedFn1, + startOfSecond: CurriedFn1, + startOfWeek: CurriedFn1, + startOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + startOfWeekYear: CurriedFn1, + startOfWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + startOfYear: CurriedFn1, + sub: CurriedFn2, + subBusinessDays: CurriedFn2, + subDays: CurriedFn2, + subHours: CurriedFn2, + subISOWeekYears: CurriedFn2, + subMilliseconds: CurriedFn2, + subMinutes: CurriedFn2, + subMonths: CurriedFn2, + subQuarters: CurriedFn2, + subSeconds: CurriedFn2, + subWeeks: CurriedFn2, + subYears: CurriedFn2, + toDate: CurriedFn1, + weeksToDays: CurriedFn1, + yearsToMonths: CurriedFn1, + yearsToQuarters: CurriedFn1, + daysInWeek: number, + daysInYear: number, + maxTime: number, + millisecondsInMinute: number, + millisecondsInHour: number, + millisecondsInSecond: number, + minTime: number, + minutesInHour: number, + monthsInQuarter: number, + monthsInYear: number, + quartersInYear: number, + secondsInHour: number, + secondsInMinute: number, + secondsInDay: number, + secondsInWeek: number, + secondsInYear: number, + secondsInMonth: number, + secondsInQuarter: number, +} diff --git a/node_modules/date-fns/esm/fp/intervalToDuration/index.d.ts b/node_modules/date-fns/esm/fp/intervalToDuration/index.d.ts new file mode 100644 index 00000000..4b2381d8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intervalToDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intervalToDuration } from 'date-fns/fp' +export default intervalToDuration diff --git a/node_modules/date-fns/esm/fp/intervalToDuration/index.js b/node_modules/date-fns/esm/fp/intervalToDuration/index.js new file mode 100644 index 00000000..8ce3d3d8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intervalToDuration/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../intervalToDuration/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intervalToDuration/index.js.flow b/node_modules/date-fns/esm/fp/intervalToDuration/index.js.flow new file mode 100644 index 00000000..88f6ff0b --- /dev/null +++ b/node_modules/date-fns/esm/fp/intervalToDuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/intervalToDuration/package.json b/node_modules/date-fns/esm/fp/intervalToDuration/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intervalToDuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormat/index.d.ts b/node_modules/date-fns/esm/fp/intlFormat/index.d.ts new file mode 100644 index 00000000..38f78a72 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormat } from 'date-fns/fp' +export default intlFormat diff --git a/node_modules/date-fns/esm/fp/intlFormat/index.js b/node_modules/date-fns/esm/fp/intlFormat/index.js new file mode 100644 index 00000000..713c352d --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormat/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../intlFormat/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormat/index.js.flow b/node_modules/date-fns/esm/fp/intlFormat/index.js.flow new file mode 100644 index 00000000..c104dcf9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormat/index.js.flow @@ -0,0 +1,88 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: string | string[], + }, + { + timeZone?: string, + hour12?: boolean, + formatMatcher?: 'basic' | 'best fit', + timeZoneName?: 'short' | 'long', + second?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + day?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + era?: 'narrow' | 'short' | 'long', + weekday?: 'narrow' | 'short' | 'long', + localeMatcher?: 'lookup' | 'best fit', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/intlFormat/package.json b/node_modules/date-fns/esm/fp/intlFormat/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormat/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormatDistance/index.d.ts b/node_modules/date-fns/esm/fp/intlFormatDistance/index.d.ts new file mode 100644 index 00000000..4ce1b022 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistance } from 'date-fns/fp' +export default intlFormatDistance diff --git a/node_modules/date-fns/esm/fp/intlFormatDistance/index.js b/node_modules/date-fns/esm/fp/intlFormatDistance/index.js new file mode 100644 index 00000000..ad099cad --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistance/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../intlFormatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormatDistance/index.js.flow b/node_modules/date-fns/esm/fp/intlFormatDistance/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistance/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/intlFormatDistance/package.json b/node_modules/date-fns/esm/fp/intlFormatDistance/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistance/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.d.ts new file mode 100644 index 00000000..2b227f5f --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistanceWithOptions } from 'date-fns/fp' +export default intlFormatDistanceWithOptions diff --git a/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js new file mode 100644 index 00000000..cdc4592f --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../intlFormatDistance/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js.flow new file mode 100644 index 00000000..1edd039f --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + style?: string, + numeric?: string, + localeMatcher?: string, + locale?: string | string[], + unit?: string, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/package.json b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/intlFormatDistanceWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isAfter/index.d.ts b/node_modules/date-fns/esm/fp/isAfter/index.d.ts new file mode 100644 index 00000000..de8ba729 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isAfter } from 'date-fns/fp' +export default isAfter diff --git a/node_modules/date-fns/esm/fp/isAfter/index.js b/node_modules/date-fns/esm/fp/isAfter/index.js new file mode 100644 index 00000000..ad2c2ed9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isAfter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isAfter/index.js.flow b/node_modules/date-fns/esm/fp/isAfter/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isAfter/package.json b/node_modules/date-fns/esm/fp/isAfter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isAfter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isBefore/index.d.ts b/node_modules/date-fns/esm/fp/isBefore/index.d.ts new file mode 100644 index 00000000..d2891982 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isBefore } from 'date-fns/fp' +export default isBefore diff --git a/node_modules/date-fns/esm/fp/isBefore/index.js b/node_modules/date-fns/esm/fp/isBefore/index.js new file mode 100644 index 00000000..561e84db --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isBefore/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isBefore/index.js.flow b/node_modules/date-fns/esm/fp/isBefore/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isBefore/package.json b/node_modules/date-fns/esm/fp/isBefore/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isBefore/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isDate/index.d.ts b/node_modules/date-fns/esm/fp/isDate/index.d.ts new file mode 100644 index 00000000..6f120ce9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isDate } from 'date-fns/fp' +export default isDate diff --git a/node_modules/date-fns/esm/fp/isDate/index.js b/node_modules/date-fns/esm/fp/isDate/index.js new file mode 100644 index 00000000..24d33ab5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isDate/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isDate/index.js.flow b/node_modules/date-fns/esm/fp/isDate/index.js.flow new file mode 100644 index 00000000..62e70e24 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isDate/package.json b/node_modules/date-fns/esm/fp/isDate/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isEqual/index.d.ts b/node_modules/date-fns/esm/fp/isEqual/index.d.ts new file mode 100644 index 00000000..b21d3989 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isEqual } from 'date-fns/fp' +export default isEqual diff --git a/node_modules/date-fns/esm/fp/isEqual/index.js b/node_modules/date-fns/esm/fp/isEqual/index.js new file mode 100644 index 00000000..af9252de --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isEqual/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isEqual/index.js.flow b/node_modules/date-fns/esm/fp/isEqual/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isEqual/package.json b/node_modules/date-fns/esm/fp/isEqual/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isEqual/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isExists/index.d.ts b/node_modules/date-fns/esm/fp/isExists/index.d.ts new file mode 100644 index 00000000..e4ccb78e --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isExists } from 'date-fns/fp' +export default isExists diff --git a/node_modules/date-fns/esm/fp/isExists/index.js b/node_modules/date-fns/esm/fp/isExists/index.js new file mode 100644 index 00000000..a795b0e9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isExists/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isExists/index.js.flow b/node_modules/date-fns/esm/fp/isExists/index.js.flow new file mode 100644 index 00000000..2af9fe9a --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3 diff --git a/node_modules/date-fns/esm/fp/isExists/package.json b/node_modules/date-fns/esm/fp/isExists/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isExists/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.d.ts new file mode 100644 index 00000000..e097310d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFirstDayOfMonth } from 'date-fns/fp' +export default isFirstDayOfMonth diff --git a/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js new file mode 100644 index 00000000..0f13e2f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isFirstDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isFirstDayOfMonth/package.json b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFirstDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isFriday/index.d.ts b/node_modules/date-fns/esm/fp/isFriday/index.d.ts new file mode 100644 index 00000000..cdab1b14 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFriday } from 'date-fns/fp' +export default isFriday diff --git a/node_modules/date-fns/esm/fp/isFriday/index.js b/node_modules/date-fns/esm/fp/isFriday/index.js new file mode 100644 index 00000000..16e60204 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFriday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isFriday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isFriday/index.js.flow b/node_modules/date-fns/esm/fp/isFriday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isFriday/package.json b/node_modules/date-fns/esm/fp/isFriday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.d.ts new file mode 100644 index 00000000..33750f0b --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLastDayOfMonth } from 'date-fns/fp' +export default isLastDayOfMonth diff --git a/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js new file mode 100644 index 00000000..7e8da4ca --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isLastDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLastDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isLastDayOfMonth/package.json b/node_modules/date-fns/esm/fp/isLastDayOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLastDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isLeapYear/index.d.ts b/node_modules/date-fns/esm/fp/isLeapYear/index.d.ts new file mode 100644 index 00000000..c92bce33 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLeapYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLeapYear } from 'date-fns/fp' +export default isLeapYear diff --git a/node_modules/date-fns/esm/fp/isLeapYear/index.js b/node_modules/date-fns/esm/fp/isLeapYear/index.js new file mode 100644 index 00000000..2f0c9705 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLeapYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isLeapYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isLeapYear/index.js.flow b/node_modules/date-fns/esm/fp/isLeapYear/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLeapYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isLeapYear/package.json b/node_modules/date-fns/esm/fp/isLeapYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isLeapYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMatch/index.d.ts b/node_modules/date-fns/esm/fp/isMatch/index.d.ts new file mode 100644 index 00000000..5085afac --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatch } from 'date-fns/fp' +export default isMatch diff --git a/node_modules/date-fns/esm/fp/isMatch/index.js b/node_modules/date-fns/esm/fp/isMatch/index.js new file mode 100644 index 00000000..5fe4c180 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isMatch/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMatch/index.js.flow b/node_modules/date-fns/esm/fp/isMatch/index.js.flow new file mode 100644 index 00000000..9eb7ae04 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isMatch/package.json b/node_modules/date-fns/esm/fp/isMatch/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatch/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMatchWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.d.ts new file mode 100644 index 00000000..4645250d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatchWithOptions } from 'date-fns/fp' +export default isMatchWithOptions diff --git a/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js new file mode 100644 index 00000000..e04d2a0c --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isMatch/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js.flow new file mode 100644 index 00000000..5b2b8693 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + string, + boolean +> diff --git a/node_modules/date-fns/esm/fp/isMatchWithOptions/package.json b/node_modules/date-fns/esm/fp/isMatchWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMatchWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMonday/index.d.ts b/node_modules/date-fns/esm/fp/isMonday/index.d.ts new file mode 100644 index 00000000..550bbb0d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMonday } from 'date-fns/fp' +export default isMonday diff --git a/node_modules/date-fns/esm/fp/isMonday/index.js b/node_modules/date-fns/esm/fp/isMonday/index.js new file mode 100644 index 00000000..97eb7bba --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMonday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isMonday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isMonday/index.js.flow b/node_modules/date-fns/esm/fp/isMonday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isMonday/package.json b/node_modules/date-fns/esm/fp/isMonday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameDay/index.d.ts b/node_modules/date-fns/esm/fp/isSameDay/index.d.ts new file mode 100644 index 00000000..d7c74c72 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameDay } from 'date-fns/fp' +export default isSameDay diff --git a/node_modules/date-fns/esm/fp/isSameDay/index.js b/node_modules/date-fns/esm/fp/isSameDay/index.js new file mode 100644 index 00000000..282c70c4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameDay/index.js.flow b/node_modules/date-fns/esm/fp/isSameDay/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameDay/package.json b/node_modules/date-fns/esm/fp/isSameDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameHour/index.d.ts b/node_modules/date-fns/esm/fp/isSameHour/index.d.ts new file mode 100644 index 00000000..ff4dacbb --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameHour } from 'date-fns/fp' +export default isSameHour diff --git a/node_modules/date-fns/esm/fp/isSameHour/index.js b/node_modules/date-fns/esm/fp/isSameHour/index.js new file mode 100644 index 00000000..ef9c3684 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameHour/index.js.flow b/node_modules/date-fns/esm/fp/isSameHour/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameHour/package.json b/node_modules/date-fns/esm/fp/isSameHour/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/isSameISOWeek/index.d.ts new file mode 100644 index 00000000..41c5426b --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeek } from 'date-fns/fp' +export default isSameISOWeek diff --git a/node_modules/date-fns/esm/fp/isSameISOWeek/index.js b/node_modules/date-fns/esm/fp/isSameISOWeek/index.js new file mode 100644 index 00000000..a3ef2134 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/isSameISOWeek/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameISOWeek/package.json b/node_modules/date-fns/esm/fp/isSameISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.d.ts new file mode 100644 index 00000000..f9f65c0b --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeekYear } from 'date-fns/fp' +export default isSameISOWeekYear diff --git a/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js new file mode 100644 index 00000000..5c92ee59 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameISOWeekYear/package.json b/node_modules/date-fns/esm/fp/isSameISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameMinute/index.d.ts b/node_modules/date-fns/esm/fp/isSameMinute/index.d.ts new file mode 100644 index 00000000..b19be2ae --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMinute } from 'date-fns/fp' +export default isSameMinute diff --git a/node_modules/date-fns/esm/fp/isSameMinute/index.js b/node_modules/date-fns/esm/fp/isSameMinute/index.js new file mode 100644 index 00000000..df6f7298 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameMinute/index.js.flow b/node_modules/date-fns/esm/fp/isSameMinute/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameMinute/package.json b/node_modules/date-fns/esm/fp/isSameMinute/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameMonth/index.d.ts b/node_modules/date-fns/esm/fp/isSameMonth/index.d.ts new file mode 100644 index 00000000..1c29c87a --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMonth } from 'date-fns/fp' +export default isSameMonth diff --git a/node_modules/date-fns/esm/fp/isSameMonth/index.js b/node_modules/date-fns/esm/fp/isSameMonth/index.js new file mode 100644 index 00000000..e9e2694d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameMonth/index.js.flow b/node_modules/date-fns/esm/fp/isSameMonth/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameMonth/package.json b/node_modules/date-fns/esm/fp/isSameMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameQuarter/index.d.ts b/node_modules/date-fns/esm/fp/isSameQuarter/index.d.ts new file mode 100644 index 00000000..6fe36a58 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameQuarter } from 'date-fns/fp' +export default isSameQuarter diff --git a/node_modules/date-fns/esm/fp/isSameQuarter/index.js b/node_modules/date-fns/esm/fp/isSameQuarter/index.js new file mode 100644 index 00000000..14dda932 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameQuarter/index.js.flow b/node_modules/date-fns/esm/fp/isSameQuarter/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameQuarter/package.json b/node_modules/date-fns/esm/fp/isSameQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameSecond/index.d.ts b/node_modules/date-fns/esm/fp/isSameSecond/index.d.ts new file mode 100644 index 00000000..b65413a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameSecond } from 'date-fns/fp' +export default isSameSecond diff --git a/node_modules/date-fns/esm/fp/isSameSecond/index.js b/node_modules/date-fns/esm/fp/isSameSecond/index.js new file mode 100644 index 00000000..0370ff20 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameSecond/index.js.flow b/node_modules/date-fns/esm/fp/isSameSecond/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameSecond/package.json b/node_modules/date-fns/esm/fp/isSameSecond/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameWeek/index.d.ts b/node_modules/date-fns/esm/fp/isSameWeek/index.d.ts new file mode 100644 index 00000000..e6b37fa5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeek } from 'date-fns/fp' +export default isSameWeek diff --git a/node_modules/date-fns/esm/fp/isSameWeek/index.js b/node_modules/date-fns/esm/fp/isSameWeek/index.js new file mode 100644 index 00000000..57ec4095 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameWeek/index.js.flow b/node_modules/date-fns/esm/fp/isSameWeek/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameWeek/package.json b/node_modules/date-fns/esm/fp/isSameWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.d.ts new file mode 100644 index 00000000..240b654b --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeekWithOptions } from 'date-fns/fp' +export default isSameWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js new file mode 100644 index 00000000..552e9758 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js.flow new file mode 100644 index 00000000..154b8949 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + boolean +> diff --git a/node_modules/date-fns/esm/fp/isSameWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameYear/index.d.ts b/node_modules/date-fns/esm/fp/isSameYear/index.d.ts new file mode 100644 index 00000000..da9db072 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameYear } from 'date-fns/fp' +export default isSameYear diff --git a/node_modules/date-fns/esm/fp/isSameYear/index.js b/node_modules/date-fns/esm/fp/isSameYear/index.js new file mode 100644 index 00000000..49f384b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSameYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSameYear/index.js.flow b/node_modules/date-fns/esm/fp/isSameYear/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isSameYear/package.json b/node_modules/date-fns/esm/fp/isSameYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSameYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSaturday/index.d.ts b/node_modules/date-fns/esm/fp/isSaturday/index.d.ts new file mode 100644 index 00000000..d6c100aa --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSaturday } from 'date-fns/fp' +export default isSaturday diff --git a/node_modules/date-fns/esm/fp/isSaturday/index.js b/node_modules/date-fns/esm/fp/isSaturday/index.js new file mode 100644 index 00000000..a13d4887 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSaturday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSaturday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSaturday/index.js.flow b/node_modules/date-fns/esm/fp/isSaturday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isSaturday/package.json b/node_modules/date-fns/esm/fp/isSaturday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSunday/index.d.ts b/node_modules/date-fns/esm/fp/isSunday/index.d.ts new file mode 100644 index 00000000..d5ff84fa --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSunday } from 'date-fns/fp' +export default isSunday diff --git a/node_modules/date-fns/esm/fp/isSunday/index.js b/node_modules/date-fns/esm/fp/isSunday/index.js new file mode 100644 index 00000000..68444a65 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSunday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isSunday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isSunday/index.js.flow b/node_modules/date-fns/esm/fp/isSunday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isSunday/package.json b/node_modules/date-fns/esm/fp/isSunday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isThursday/index.d.ts b/node_modules/date-fns/esm/fp/isThursday/index.d.ts new file mode 100644 index 00000000..5f7c57c4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThursday } from 'date-fns/fp' +export default isThursday diff --git a/node_modules/date-fns/esm/fp/isThursday/index.js b/node_modules/date-fns/esm/fp/isThursday/index.js new file mode 100644 index 00000000..47eeb207 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isThursday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isThursday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isThursday/index.js.flow b/node_modules/date-fns/esm/fp/isThursday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isThursday/package.json b/node_modules/date-fns/esm/fp/isThursday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isTuesday/index.d.ts b/node_modules/date-fns/esm/fp/isTuesday/index.d.ts new file mode 100644 index 00000000..3a652b6d --- /dev/null +++ b/node_modules/date-fns/esm/fp/isTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTuesday } from 'date-fns/fp' +export default isTuesday diff --git a/node_modules/date-fns/esm/fp/isTuesday/index.js b/node_modules/date-fns/esm/fp/isTuesday/index.js new file mode 100644 index 00000000..facd9ef0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isTuesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isTuesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isTuesday/index.js.flow b/node_modules/date-fns/esm/fp/isTuesday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isTuesday/package.json b/node_modules/date-fns/esm/fp/isTuesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isValid/index.d.ts b/node_modules/date-fns/esm/fp/isValid/index.d.ts new file mode 100644 index 00000000..42a84322 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isValid/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isValid } from 'date-fns/fp' +export default isValid diff --git a/node_modules/date-fns/esm/fp/isValid/index.js b/node_modules/date-fns/esm/fp/isValid/index.js new file mode 100644 index 00000000..9067a08c --- /dev/null +++ b/node_modules/date-fns/esm/fp/isValid/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isValid/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isValid/index.js.flow b/node_modules/date-fns/esm/fp/isValid/index.js.flow new file mode 100644 index 00000000..62e70e24 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isValid/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isValid/package.json b/node_modules/date-fns/esm/fp/isValid/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isValid/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWednesday/index.d.ts b/node_modules/date-fns/esm/fp/isWednesday/index.d.ts new file mode 100644 index 00000000..9752d6a9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWednesday } from 'date-fns/fp' +export default isWednesday diff --git a/node_modules/date-fns/esm/fp/isWednesday/index.js b/node_modules/date-fns/esm/fp/isWednesday/index.js new file mode 100644 index 00000000..32a253dd --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWednesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isWednesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWednesday/index.js.flow b/node_modules/date-fns/esm/fp/isWednesday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isWednesday/package.json b/node_modules/date-fns/esm/fp/isWednesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWeekend/index.d.ts b/node_modules/date-fns/esm/fp/isWeekend/index.d.ts new file mode 100644 index 00000000..ff6c8a3e --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWeekend/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWeekend } from 'date-fns/fp' +export default isWeekend diff --git a/node_modules/date-fns/esm/fp/isWeekend/index.js b/node_modules/date-fns/esm/fp/isWeekend/index.js new file mode 100644 index 00000000..d81e1cae --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWeekend/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isWeekend/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWeekend/index.js.flow b/node_modules/date-fns/esm/fp/isWeekend/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWeekend/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/isWeekend/package.json b/node_modules/date-fns/esm/fp/isWeekend/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWeekend/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWithinInterval/index.d.ts b/node_modules/date-fns/esm/fp/isWithinInterval/index.d.ts new file mode 100644 index 00000000..c3b3c9b3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWithinInterval } from 'date-fns/fp' +export default isWithinInterval diff --git a/node_modules/date-fns/esm/fp/isWithinInterval/index.js b/node_modules/date-fns/esm/fp/isWithinInterval/index.js new file mode 100644 index 00000000..96ca1153 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../isWithinInterval/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/isWithinInterval/index.js.flow b/node_modules/date-fns/esm/fp/isWithinInterval/index.js.flow new file mode 100644 index 00000000..8b45a5e1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/isWithinInterval/package.json b/node_modules/date-fns/esm/fp/isWithinInterval/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/isWithinInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfDecade/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.d.ts new file mode 100644 index 00000000..6b32f463 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfDecade } from 'date-fns/fp' +export default lastDayOfDecade diff --git a/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js new file mode 100644 index 00000000..79519a55 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfDecade/package.json b/node_modules/date-fns/esm/fp/lastDayOfDecade/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.d.ts new file mode 100644 index 00000000..13d7cbe0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeek } from 'date-fns/fp' +export default lastDayOfISOWeek diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js new file mode 100644 index 00000000..ad03dfb5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeek/package.json b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..8e75ca7f --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeekYear } from 'date-fns/fp' +export default lastDayOfISOWeekYear diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js new file mode 100644 index 00000000..0880c4b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/package.json b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.d.ts new file mode 100644 index 00000000..1a65a147 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfMonth } from 'date-fns/fp' +export default lastDayOfMonth diff --git a/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js new file mode 100644 index 00000000..7761b4fb --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfMonth/package.json b/node_modules/date-fns/esm/fp/lastDayOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.d.ts new file mode 100644 index 00000000..27f41a81 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarter } from 'date-fns/fp' +export default lastDayOfQuarter diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js new file mode 100644 index 00000000..eae9e2c4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarter/package.json b/node_modules/date-fns/esm/fp/lastDayOfQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.d.ts new file mode 100644 index 00000000..4327d12c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarterWithOptions } from 'date-fns/fp' +export default lastDayOfQuarterWithOptions diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js new file mode 100644 index 00000000..4508949c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js.flow new file mode 100644 index 00000000..4b6d0d46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/package.json b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfQuarterWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeek/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.d.ts new file mode 100644 index 00000000..0d79da71 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeek } from 'date-fns/fp' +export default lastDayOfWeek diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js new file mode 100644 index 00000000..4ec4f49c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeek/package.json b/node_modules/date-fns/esm/fp/lastDayOfWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..57195246 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeekWithOptions } from 'date-fns/fp' +export default lastDayOfWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js new file mode 100644 index 00000000..199b378c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfYear/index.d.ts b/node_modules/date-fns/esm/fp/lastDayOfYear/index.d.ts new file mode 100644 index 00000000..340473ee --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfYear } from 'date-fns/fp' +export default lastDayOfYear diff --git a/node_modules/date-fns/esm/fp/lastDayOfYear/index.js b/node_modules/date-fns/esm/fp/lastDayOfYear/index.js new file mode 100644 index 00000000..7bf59c51 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lastDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lastDayOfYear/index.js.flow b/node_modules/date-fns/esm/fp/lastDayOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/lastDayOfYear/package.json b/node_modules/date-fns/esm/fp/lastDayOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lastDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lightFormat/index.d.ts b/node_modules/date-fns/esm/fp/lightFormat/index.d.ts new file mode 100644 index 00000000..843b7fdf --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lightFormat } from 'date-fns/fp' +export default lightFormat diff --git a/node_modules/date-fns/esm/fp/lightFormat/index.js b/node_modules/date-fns/esm/fp/lightFormat/index.js new file mode 100644 index 00000000..d3b99c48 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../lightFormat/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/lightFormat/index.js.flow b/node_modules/date-fns/esm/fp/lightFormat/index.js.flow new file mode 100644 index 00000000..013f277c --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/lightFormat/package.json b/node_modules/date-fns/esm/fp/lightFormat/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/lightFormat/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/max/index.d.ts b/node_modules/date-fns/esm/fp/max/index.d.ts new file mode 100644 index 00000000..000bf1dc --- /dev/null +++ b/node_modules/date-fns/esm/fp/max/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { max } from 'date-fns/fp' +export default max diff --git a/node_modules/date-fns/esm/fp/max/index.js b/node_modules/date-fns/esm/fp/max/index.js new file mode 100644 index 00000000..0cdedcb9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/max/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../max/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/max/index.js.flow b/node_modules/date-fns/esm/fp/max/index.js.flow new file mode 100644 index 00000000..dc666896 --- /dev/null +++ b/node_modules/date-fns/esm/fp/max/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1<(Date | number)[], Date> diff --git a/node_modules/date-fns/esm/fp/max/package.json b/node_modules/date-fns/esm/fp/max/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/max/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/milliseconds/index.d.ts b/node_modules/date-fns/esm/fp/milliseconds/index.d.ts new file mode 100644 index 00000000..2552885b --- /dev/null +++ b/node_modules/date-fns/esm/fp/milliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { milliseconds } from 'date-fns/fp' +export default milliseconds diff --git a/node_modules/date-fns/esm/fp/milliseconds/index.js b/node_modules/date-fns/esm/fp/milliseconds/index.js new file mode 100644 index 00000000..40a280dd --- /dev/null +++ b/node_modules/date-fns/esm/fp/milliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../milliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/milliseconds/index.js.flow b/node_modules/date-fns/esm/fp/milliseconds/index.js.flow new file mode 100644 index 00000000..a025a673 --- /dev/null +++ b/node_modules/date-fns/esm/fp/milliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/milliseconds/package.json b/node_modules/date-fns/esm/fp/milliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/milliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToHours/index.d.ts b/node_modules/date-fns/esm/fp/millisecondsToHours/index.d.ts new file mode 100644 index 00000000..0ee68633 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToHours } from 'date-fns/fp' +export default millisecondsToHours diff --git a/node_modules/date-fns/esm/fp/millisecondsToHours/index.js b/node_modules/date-fns/esm/fp/millisecondsToHours/index.js new file mode 100644 index 00000000..80af4586 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../millisecondsToHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToHours/index.js.flow b/node_modules/date-fns/esm/fp/millisecondsToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/millisecondsToHours/package.json b/node_modules/date-fns/esm/fp/millisecondsToHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.d.ts b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.d.ts new file mode 100644 index 00000000..de847006 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToMinutes } from 'date-fns/fp' +export default millisecondsToMinutes diff --git a/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js new file mode 100644 index 00000000..8392a320 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../millisecondsToMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js.flow b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/millisecondsToMinutes/package.json b/node_modules/date-fns/esm/fp/millisecondsToMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.d.ts b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.d.ts new file mode 100644 index 00000000..99736c4b --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToSeconds } from 'date-fns/fp' +export default millisecondsToSeconds diff --git a/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js new file mode 100644 index 00000000..923af15a --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../millisecondsToSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js.flow b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/millisecondsToSeconds/package.json b/node_modules/date-fns/esm/fp/millisecondsToSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/millisecondsToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/min/index.d.ts b/node_modules/date-fns/esm/fp/min/index.d.ts new file mode 100644 index 00000000..b6661656 --- /dev/null +++ b/node_modules/date-fns/esm/fp/min/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { min } from 'date-fns/fp' +export default min diff --git a/node_modules/date-fns/esm/fp/min/index.js b/node_modules/date-fns/esm/fp/min/index.js new file mode 100644 index 00000000..748565dc --- /dev/null +++ b/node_modules/date-fns/esm/fp/min/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../min/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/min/index.js.flow b/node_modules/date-fns/esm/fp/min/index.js.flow new file mode 100644 index 00000000..dc666896 --- /dev/null +++ b/node_modules/date-fns/esm/fp/min/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1<(Date | number)[], Date> diff --git a/node_modules/date-fns/esm/fp/min/package.json b/node_modules/date-fns/esm/fp/min/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/min/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToHours/index.d.ts b/node_modules/date-fns/esm/fp/minutesToHours/index.d.ts new file mode 100644 index 00000000..15aeb30c --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToHours } from 'date-fns/fp' +export default minutesToHours diff --git a/node_modules/date-fns/esm/fp/minutesToHours/index.js b/node_modules/date-fns/esm/fp/minutesToHours/index.js new file mode 100644 index 00000000..871dd105 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../minutesToHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToHours/index.js.flow b/node_modules/date-fns/esm/fp/minutesToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/minutesToHours/package.json b/node_modules/date-fns/esm/fp/minutesToHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.d.ts new file mode 100644 index 00000000..0b19d018 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToMilliseconds } from 'date-fns/fp' +export default minutesToMilliseconds diff --git a/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js new file mode 100644 index 00000000..74476425 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../minutesToMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/minutesToMilliseconds/package.json b/node_modules/date-fns/esm/fp/minutesToMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToSeconds/index.d.ts b/node_modules/date-fns/esm/fp/minutesToSeconds/index.d.ts new file mode 100644 index 00000000..bc47b3f7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToSeconds } from 'date-fns/fp' +export default minutesToSeconds diff --git a/node_modules/date-fns/esm/fp/minutesToSeconds/index.js b/node_modules/date-fns/esm/fp/minutesToSeconds/index.js new file mode 100644 index 00000000..1432c26d --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../minutesToSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/minutesToSeconds/index.js.flow b/node_modules/date-fns/esm/fp/minutesToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/minutesToSeconds/package.json b/node_modules/date-fns/esm/fp/minutesToSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/minutesToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/monthsToQuarters/index.d.ts b/node_modules/date-fns/esm/fp/monthsToQuarters/index.d.ts new file mode 100644 index 00000000..05ae53ce --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToQuarters } from 'date-fns/fp' +export default monthsToQuarters diff --git a/node_modules/date-fns/esm/fp/monthsToQuarters/index.js b/node_modules/date-fns/esm/fp/monthsToQuarters/index.js new file mode 100644 index 00000000..4d062906 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../monthsToQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/monthsToQuarters/index.js.flow b/node_modules/date-fns/esm/fp/monthsToQuarters/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToQuarters/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/monthsToQuarters/package.json b/node_modules/date-fns/esm/fp/monthsToQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/monthsToYears/index.d.ts b/node_modules/date-fns/esm/fp/monthsToYears/index.d.ts new file mode 100644 index 00000000..bc5f1134 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToYears } from 'date-fns/fp' +export default monthsToYears diff --git a/node_modules/date-fns/esm/fp/monthsToYears/index.js b/node_modules/date-fns/esm/fp/monthsToYears/index.js new file mode 100644 index 00000000..375ed875 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../monthsToYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/monthsToYears/index.js.flow b/node_modules/date-fns/esm/fp/monthsToYears/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToYears/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/monthsToYears/package.json b/node_modules/date-fns/esm/fp/monthsToYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/monthsToYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextDay/index.d.ts b/node_modules/date-fns/esm/fp/nextDay/index.d.ts new file mode 100644 index 00000000..dc6cd80c --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextDay } from 'date-fns/fp' +export default nextDay diff --git a/node_modules/date-fns/esm/fp/nextDay/index.js b/node_modules/date-fns/esm/fp/nextDay/index.js new file mode 100644 index 00000000..564d4f0e --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextDay/index.js.flow b/node_modules/date-fns/esm/fp/nextDay/index.js.flow new file mode 100644 index 00000000..3d001b25 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/nextDay/package.json b/node_modules/date-fns/esm/fp/nextDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextFriday/index.d.ts b/node_modules/date-fns/esm/fp/nextFriday/index.d.ts new file mode 100644 index 00000000..48e88ccf --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextFriday } from 'date-fns/fp' +export default nextFriday diff --git a/node_modules/date-fns/esm/fp/nextFriday/index.js b/node_modules/date-fns/esm/fp/nextFriday/index.js new file mode 100644 index 00000000..e6411e80 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextFriday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextFriday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextFriday/index.js.flow b/node_modules/date-fns/esm/fp/nextFriday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextFriday/package.json b/node_modules/date-fns/esm/fp/nextFriday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextMonday/index.d.ts b/node_modules/date-fns/esm/fp/nextMonday/index.d.ts new file mode 100644 index 00000000..50926c46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextMonday } from 'date-fns/fp' +export default nextMonday diff --git a/node_modules/date-fns/esm/fp/nextMonday/index.js b/node_modules/date-fns/esm/fp/nextMonday/index.js new file mode 100644 index 00000000..de183a0b --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextMonday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextMonday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextMonday/index.js.flow b/node_modules/date-fns/esm/fp/nextMonday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextMonday/package.json b/node_modules/date-fns/esm/fp/nextMonday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextSaturday/index.d.ts b/node_modules/date-fns/esm/fp/nextSaturday/index.d.ts new file mode 100644 index 00000000..5774aa57 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSaturday } from 'date-fns/fp' +export default nextSaturday diff --git a/node_modules/date-fns/esm/fp/nextSaturday/index.js b/node_modules/date-fns/esm/fp/nextSaturday/index.js new file mode 100644 index 00000000..990b9c0e --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSaturday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextSaturday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextSaturday/index.js.flow b/node_modules/date-fns/esm/fp/nextSaturday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextSaturday/package.json b/node_modules/date-fns/esm/fp/nextSaturday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextSunday/index.d.ts b/node_modules/date-fns/esm/fp/nextSunday/index.d.ts new file mode 100644 index 00000000..acd1202d --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSunday } from 'date-fns/fp' +export default nextSunday diff --git a/node_modules/date-fns/esm/fp/nextSunday/index.js b/node_modules/date-fns/esm/fp/nextSunday/index.js new file mode 100644 index 00000000..5d8c4eff --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSunday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextSunday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextSunday/index.js.flow b/node_modules/date-fns/esm/fp/nextSunday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextSunday/package.json b/node_modules/date-fns/esm/fp/nextSunday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextThursday/index.d.ts b/node_modules/date-fns/esm/fp/nextThursday/index.d.ts new file mode 100644 index 00000000..1f2dcf06 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextThursday } from 'date-fns/fp' +export default nextThursday diff --git a/node_modules/date-fns/esm/fp/nextThursday/index.js b/node_modules/date-fns/esm/fp/nextThursday/index.js new file mode 100644 index 00000000..decb0af0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextThursday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextThursday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextThursday/index.js.flow b/node_modules/date-fns/esm/fp/nextThursday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextThursday/package.json b/node_modules/date-fns/esm/fp/nextThursday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextTuesday/index.d.ts b/node_modules/date-fns/esm/fp/nextTuesday/index.d.ts new file mode 100644 index 00000000..4842cc0c --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextTuesday } from 'date-fns/fp' +export default nextTuesday diff --git a/node_modules/date-fns/esm/fp/nextTuesday/index.js b/node_modules/date-fns/esm/fp/nextTuesday/index.js new file mode 100644 index 00000000..b95c64e2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextTuesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextTuesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextTuesday/index.js.flow b/node_modules/date-fns/esm/fp/nextTuesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextTuesday/package.json b/node_modules/date-fns/esm/fp/nextTuesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextWednesday/index.d.ts b/node_modules/date-fns/esm/fp/nextWednesday/index.d.ts new file mode 100644 index 00000000..800d5a50 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextWednesday } from 'date-fns/fp' +export default nextWednesday diff --git a/node_modules/date-fns/esm/fp/nextWednesday/index.js b/node_modules/date-fns/esm/fp/nextWednesday/index.js new file mode 100644 index 00000000..77ea9690 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextWednesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../nextWednesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/nextWednesday/index.js.flow b/node_modules/date-fns/esm/fp/nextWednesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/nextWednesday/package.json b/node_modules/date-fns/esm/fp/nextWednesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/nextWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/package.json b/node_modules/date-fns/esm/fp/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/fp/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parse/index.d.ts b/node_modules/date-fns/esm/fp/parse/index.d.ts new file mode 100644 index 00000000..0d42228b --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parse } from 'date-fns/fp' +export default parse diff --git a/node_modules/date-fns/esm/fp/parse/index.js b/node_modules/date-fns/esm/fp/parse/index.js new file mode 100644 index 00000000..60418a89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../parse/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parse/index.js.flow b/node_modules/date-fns/esm/fp/parse/index.js.flow new file mode 100644 index 00000000..7146666f --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3 diff --git a/node_modules/date-fns/esm/fp/parse/package.json b/node_modules/date-fns/esm/fp/parse/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parse/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseISO/index.d.ts b/node_modules/date-fns/esm/fp/parseISO/index.d.ts new file mode 100644 index 00000000..f89741c4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISO } from 'date-fns/fp' +export default parseISO diff --git a/node_modules/date-fns/esm/fp/parseISO/index.js b/node_modules/date-fns/esm/fp/parseISO/index.js new file mode 100644 index 00000000..05776725 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../parseISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseISO/index.js.flow b/node_modules/date-fns/esm/fp/parseISO/index.js.flow new file mode 100644 index 00000000..4d845937 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/parseISO/package.json b/node_modules/date-fns/esm/fp/parseISO/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISO/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseISOWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.d.ts new file mode 100644 index 00000000..b90cbd3b --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISOWithOptions } from 'date-fns/fp' +export default parseISOWithOptions diff --git a/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js new file mode 100644 index 00000000..0c702f0f --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../parseISO/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js.flow new file mode 100644 index 00000000..d2d80caa --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + string, + Date +> diff --git a/node_modules/date-fns/esm/fp/parseISOWithOptions/package.json b/node_modules/date-fns/esm/fp/parseISOWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseISOWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseJSON/index.d.ts b/node_modules/date-fns/esm/fp/parseJSON/index.d.ts new file mode 100644 index 00000000..dd64334e --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseJSON/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseJSON } from 'date-fns/fp' +export default parseJSON diff --git a/node_modules/date-fns/esm/fp/parseJSON/index.js b/node_modules/date-fns/esm/fp/parseJSON/index.js new file mode 100644 index 00000000..92056ca0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseJSON/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../parseJSON/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseJSON/index.js.flow b/node_modules/date-fns/esm/fp/parseJSON/index.js.flow new file mode 100644 index 00000000..9b7f47a4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseJSON/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/parseJSON/package.json b/node_modules/date-fns/esm/fp/parseJSON/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseJSON/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/parseWithOptions/index.d.ts new file mode 100644 index 00000000..d33b4ae1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseWithOptions } from 'date-fns/fp' +export default parseWithOptions diff --git a/node_modules/date-fns/esm/fp/parseWithOptions/index.js b/node_modules/date-fns/esm/fp/parseWithOptions/index.js new file mode 100644 index 00000000..8bcea0cc --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../parse/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 4); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/parseWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/parseWithOptions/index.js.flow new file mode 100644 index 00000000..e767e62c --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/index.js.flow @@ -0,0 +1,94 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +type CurriedFn4 = ( + a: A +) => + | CurriedFn3 + | (( + a: A, + b: B + ) => + | CurriedFn2 + | (( + a: A, + b: B, + c: C + ) => CurriedFn1 | ((a: A, b: B, c: C, d: D) => R))) + +declare module.exports: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + string, + string, + Date +> diff --git a/node_modules/date-fns/esm/fp/parseWithOptions/package.json b/node_modules/date-fns/esm/fp/parseWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/parseWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousDay/index.d.ts b/node_modules/date-fns/esm/fp/previousDay/index.d.ts new file mode 100644 index 00000000..753808c2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousDay } from 'date-fns/fp' +export default previousDay diff --git a/node_modules/date-fns/esm/fp/previousDay/index.js b/node_modules/date-fns/esm/fp/previousDay/index.js new file mode 100644 index 00000000..601c0816 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousDay/index.js.flow b/node_modules/date-fns/esm/fp/previousDay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/previousDay/package.json b/node_modules/date-fns/esm/fp/previousDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousFriday/index.d.ts b/node_modules/date-fns/esm/fp/previousFriday/index.d.ts new file mode 100644 index 00000000..847fd924 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousFriday } from 'date-fns/fp' +export default previousFriday diff --git a/node_modules/date-fns/esm/fp/previousFriday/index.js b/node_modules/date-fns/esm/fp/previousFriday/index.js new file mode 100644 index 00000000..675cfa44 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousFriday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousFriday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousFriday/index.js.flow b/node_modules/date-fns/esm/fp/previousFriday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousFriday/package.json b/node_modules/date-fns/esm/fp/previousFriday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousMonday/index.d.ts b/node_modules/date-fns/esm/fp/previousMonday/index.d.ts new file mode 100644 index 00000000..dd742b86 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousMonday } from 'date-fns/fp' +export default previousMonday diff --git a/node_modules/date-fns/esm/fp/previousMonday/index.js b/node_modules/date-fns/esm/fp/previousMonday/index.js new file mode 100644 index 00000000..e1d0a762 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousMonday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousMonday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousMonday/index.js.flow b/node_modules/date-fns/esm/fp/previousMonday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousMonday/package.json b/node_modules/date-fns/esm/fp/previousMonday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousSaturday/index.d.ts b/node_modules/date-fns/esm/fp/previousSaturday/index.d.ts new file mode 100644 index 00000000..61b0b785 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSaturday } from 'date-fns/fp' +export default previousSaturday diff --git a/node_modules/date-fns/esm/fp/previousSaturday/index.js b/node_modules/date-fns/esm/fp/previousSaturday/index.js new file mode 100644 index 00000000..a212fb52 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSaturday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousSaturday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousSaturday/index.js.flow b/node_modules/date-fns/esm/fp/previousSaturday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousSaturday/package.json b/node_modules/date-fns/esm/fp/previousSaturday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousSunday/index.d.ts b/node_modules/date-fns/esm/fp/previousSunday/index.d.ts new file mode 100644 index 00000000..c52f02d9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSunday } from 'date-fns/fp' +export default previousSunday diff --git a/node_modules/date-fns/esm/fp/previousSunday/index.js b/node_modules/date-fns/esm/fp/previousSunday/index.js new file mode 100644 index 00000000..6c0be386 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSunday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousSunday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousSunday/index.js.flow b/node_modules/date-fns/esm/fp/previousSunday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousSunday/package.json b/node_modules/date-fns/esm/fp/previousSunday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousThursday/index.d.ts b/node_modules/date-fns/esm/fp/previousThursday/index.d.ts new file mode 100644 index 00000000..8f54518e --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousThursday } from 'date-fns/fp' +export default previousThursday diff --git a/node_modules/date-fns/esm/fp/previousThursday/index.js b/node_modules/date-fns/esm/fp/previousThursday/index.js new file mode 100644 index 00000000..5cbfe336 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousThursday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousThursday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousThursday/index.js.flow b/node_modules/date-fns/esm/fp/previousThursday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousThursday/package.json b/node_modules/date-fns/esm/fp/previousThursday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousTuesday/index.d.ts b/node_modules/date-fns/esm/fp/previousTuesday/index.d.ts new file mode 100644 index 00000000..f801ca2b --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousTuesday } from 'date-fns/fp' +export default previousTuesday diff --git a/node_modules/date-fns/esm/fp/previousTuesday/index.js b/node_modules/date-fns/esm/fp/previousTuesday/index.js new file mode 100644 index 00000000..246bf4b5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousTuesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousTuesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousTuesday/index.js.flow b/node_modules/date-fns/esm/fp/previousTuesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousTuesday/package.json b/node_modules/date-fns/esm/fp/previousTuesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousWednesday/index.d.ts b/node_modules/date-fns/esm/fp/previousWednesday/index.d.ts new file mode 100644 index 00000000..ac6226e9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousWednesday } from 'date-fns/fp' +export default previousWednesday diff --git a/node_modules/date-fns/esm/fp/previousWednesday/index.js b/node_modules/date-fns/esm/fp/previousWednesday/index.js new file mode 100644 index 00000000..118818c0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousWednesday/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../previousWednesday/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/previousWednesday/index.js.flow b/node_modules/date-fns/esm/fp/previousWednesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/previousWednesday/package.json b/node_modules/date-fns/esm/fp/previousWednesday/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/previousWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/quartersToMonths/index.d.ts b/node_modules/date-fns/esm/fp/quartersToMonths/index.d.ts new file mode 100644 index 00000000..07220e87 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToMonths } from 'date-fns/fp' +export default quartersToMonths diff --git a/node_modules/date-fns/esm/fp/quartersToMonths/index.js b/node_modules/date-fns/esm/fp/quartersToMonths/index.js new file mode 100644 index 00000000..54013763 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../quartersToMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/quartersToMonths/index.js.flow b/node_modules/date-fns/esm/fp/quartersToMonths/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToMonths/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/quartersToMonths/package.json b/node_modules/date-fns/esm/fp/quartersToMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/quartersToYears/index.d.ts b/node_modules/date-fns/esm/fp/quartersToYears/index.d.ts new file mode 100644 index 00000000..6613aeb1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToYears } from 'date-fns/fp' +export default quartersToYears diff --git a/node_modules/date-fns/esm/fp/quartersToYears/index.js b/node_modules/date-fns/esm/fp/quartersToYears/index.js new file mode 100644 index 00000000..86a2a690 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../quartersToYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/quartersToYears/index.js.flow b/node_modules/date-fns/esm/fp/quartersToYears/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToYears/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/quartersToYears/package.json b/node_modules/date-fns/esm/fp/quartersToYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/quartersToYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.d.ts b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.d.ts new file mode 100644 index 00000000..7777ce20 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutes } from 'date-fns/fp' +export default roundToNearestMinutes diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js new file mode 100644 index 00000000..c1d0b4af --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../roundToNearestMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js.flow b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutes/package.json b/node_modules/date-fns/esm/fp/roundToNearestMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.d.ts new file mode 100644 index 00000000..fcd4df49 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutesWithOptions } from 'date-fns/fp' +export default roundToNearestMinutesWithOptions diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js new file mode 100644 index 00000000..a8cbffcd --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../roundToNearestMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js.flow new file mode 100644 index 00000000..44085b1a --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + roundingMethod?: string, + nearestTo?: number, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/package.json b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/roundToNearestMinutesWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToHours/index.d.ts b/node_modules/date-fns/esm/fp/secondsToHours/index.d.ts new file mode 100644 index 00000000..931f3a78 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToHours } from 'date-fns/fp' +export default secondsToHours diff --git a/node_modules/date-fns/esm/fp/secondsToHours/index.js b/node_modules/date-fns/esm/fp/secondsToHours/index.js new file mode 100644 index 00000000..0d46bc80 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../secondsToHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToHours/index.js.flow b/node_modules/date-fns/esm/fp/secondsToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/secondsToHours/package.json b/node_modules/date-fns/esm/fp/secondsToHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.d.ts new file mode 100644 index 00000000..98df8f21 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMilliseconds } from 'date-fns/fp' +export default secondsToMilliseconds diff --git a/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js new file mode 100644 index 00000000..1f7e024f --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../secondsToMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/secondsToMilliseconds/package.json b/node_modules/date-fns/esm/fp/secondsToMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToMinutes/index.d.ts b/node_modules/date-fns/esm/fp/secondsToMinutes/index.d.ts new file mode 100644 index 00000000..e22b5287 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMinutes } from 'date-fns/fp' +export default secondsToMinutes diff --git a/node_modules/date-fns/esm/fp/secondsToMinutes/index.js b/node_modules/date-fns/esm/fp/secondsToMinutes/index.js new file mode 100644 index 00000000..d94fccfd --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../secondsToMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/secondsToMinutes/index.js.flow b/node_modules/date-fns/esm/fp/secondsToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/secondsToMinutes/package.json b/node_modules/date-fns/esm/fp/secondsToMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/secondsToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/set/index.d.ts b/node_modules/date-fns/esm/fp/set/index.d.ts new file mode 100644 index 00000000..601f00b8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { set } from 'date-fns/fp' +export default set diff --git a/node_modules/date-fns/esm/fp/set/index.js b/node_modules/date-fns/esm/fp/set/index.js new file mode 100644 index 00000000..ee1e70fc --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../set/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/set/index.js.flow b/node_modules/date-fns/esm/fp/set/index.js.flow new file mode 100644 index 00000000..ccc5aca5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/index.js.flow @@ -0,0 +1,70 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + milliseconds?: number, + seconds?: number, + minutes?: number, + hours?: number, + date?: number, + month?: number, + year?: number, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/set/package.json b/node_modules/date-fns/esm/fp/set/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/set/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDate/index.d.ts b/node_modules/date-fns/esm/fp/setDate/index.d.ts new file mode 100644 index 00000000..1d6343e1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDate } from 'date-fns/fp' +export default setDate diff --git a/node_modules/date-fns/esm/fp/setDate/index.js b/node_modules/date-fns/esm/fp/setDate/index.js new file mode 100644 index 00000000..d42b9015 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDate/index.js.flow b/node_modules/date-fns/esm/fp/setDate/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setDate/package.json b/node_modules/date-fns/esm/fp/setDate/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDay/index.d.ts b/node_modules/date-fns/esm/fp/setDay/index.d.ts new file mode 100644 index 00000000..aa37dd91 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDay } from 'date-fns/fp' +export default setDay diff --git a/node_modules/date-fns/esm/fp/setDay/index.js b/node_modules/date-fns/esm/fp/setDay/index.js new file mode 100644 index 00000000..50490984 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDay/index.js.flow b/node_modules/date-fns/esm/fp/setDay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setDay/package.json b/node_modules/date-fns/esm/fp/setDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDayOfYear/index.d.ts b/node_modules/date-fns/esm/fp/setDayOfYear/index.d.ts new file mode 100644 index 00000000..4453a591 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayOfYear } from 'date-fns/fp' +export default setDayOfYear diff --git a/node_modules/date-fns/esm/fp/setDayOfYear/index.js b/node_modules/date-fns/esm/fp/setDayOfYear/index.js new file mode 100644 index 00000000..db074518 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setDayOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDayOfYear/index.js.flow b/node_modules/date-fns/esm/fp/setDayOfYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setDayOfYear/package.json b/node_modules/date-fns/esm/fp/setDayOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDayWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/setDayWithOptions/index.d.ts new file mode 100644 index 00000000..537c230a --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayWithOptions } from 'date-fns/fp' +export default setDayWithOptions diff --git a/node_modules/date-fns/esm/fp/setDayWithOptions/index.js b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js new file mode 100644 index 00000000..c7fc4c95 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setDayWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js.flow new file mode 100644 index 00000000..62d0e5ef --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/setDayWithOptions/package.json b/node_modules/date-fns/esm/fp/setDayWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setDayWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setHours/index.d.ts b/node_modules/date-fns/esm/fp/setHours/index.d.ts new file mode 100644 index 00000000..4ca8a065 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setHours } from 'date-fns/fp' +export default setHours diff --git a/node_modules/date-fns/esm/fp/setHours/index.js b/node_modules/date-fns/esm/fp/setHours/index.js new file mode 100644 index 00000000..540f03c1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setHours/index.js.flow b/node_modules/date-fns/esm/fp/setHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setHours/package.json b/node_modules/date-fns/esm/fp/setHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISODay/index.d.ts b/node_modules/date-fns/esm/fp/setISODay/index.d.ts new file mode 100644 index 00000000..7319d5af --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISODay } from 'date-fns/fp' +export default setISODay diff --git a/node_modules/date-fns/esm/fp/setISODay/index.js b/node_modules/date-fns/esm/fp/setISODay/index.js new file mode 100644 index 00000000..f7faa3f4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setISODay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISODay/index.js.flow b/node_modules/date-fns/esm/fp/setISODay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setISODay/package.json b/node_modules/date-fns/esm/fp/setISODay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISODay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/setISOWeek/index.d.ts new file mode 100644 index 00000000..ca354ce0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeek } from 'date-fns/fp' +export default setISOWeek diff --git a/node_modules/date-fns/esm/fp/setISOWeek/index.js b/node_modules/date-fns/esm/fp/setISOWeek/index.js new file mode 100644 index 00000000..b544d973 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/setISOWeek/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setISOWeek/package.json b/node_modules/date-fns/esm/fp/setISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/setISOWeekYear/index.d.ts new file mode 100644 index 00000000..7e1fc21b --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeekYear } from 'date-fns/fp' +export default setISOWeekYear diff --git a/node_modules/date-fns/esm/fp/setISOWeekYear/index.js b/node_modules/date-fns/esm/fp/setISOWeekYear/index.js new file mode 100644 index 00000000..a226d54a --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/setISOWeekYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setISOWeekYear/package.json b/node_modules/date-fns/esm/fp/setISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/setMilliseconds/index.d.ts new file mode 100644 index 00000000..0ee89fab --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMilliseconds } from 'date-fns/fp' +export default setMilliseconds diff --git a/node_modules/date-fns/esm/fp/setMilliseconds/index.js b/node_modules/date-fns/esm/fp/setMilliseconds/index.js new file mode 100644 index 00000000..b47a6360 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/setMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setMilliseconds/package.json b/node_modules/date-fns/esm/fp/setMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMinutes/index.d.ts b/node_modules/date-fns/esm/fp/setMinutes/index.d.ts new file mode 100644 index 00000000..9e8d6360 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMinutes } from 'date-fns/fp' +export default setMinutes diff --git a/node_modules/date-fns/esm/fp/setMinutes/index.js b/node_modules/date-fns/esm/fp/setMinutes/index.js new file mode 100644 index 00000000..3e9fb404 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMinutes/index.js.flow b/node_modules/date-fns/esm/fp/setMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setMinutes/package.json b/node_modules/date-fns/esm/fp/setMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMonth/index.d.ts b/node_modules/date-fns/esm/fp/setMonth/index.d.ts new file mode 100644 index 00000000..c9647b17 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMonth } from 'date-fns/fp' +export default setMonth diff --git a/node_modules/date-fns/esm/fp/setMonth/index.js b/node_modules/date-fns/esm/fp/setMonth/index.js new file mode 100644 index 00000000..2f695226 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setMonth/index.js.flow b/node_modules/date-fns/esm/fp/setMonth/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setMonth/package.json b/node_modules/date-fns/esm/fp/setMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setQuarter/index.d.ts b/node_modules/date-fns/esm/fp/setQuarter/index.d.ts new file mode 100644 index 00000000..b94ff08e --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setQuarter } from 'date-fns/fp' +export default setQuarter diff --git a/node_modules/date-fns/esm/fp/setQuarter/index.js b/node_modules/date-fns/esm/fp/setQuarter/index.js new file mode 100644 index 00000000..28258204 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setQuarter/index.js.flow b/node_modules/date-fns/esm/fp/setQuarter/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setQuarter/package.json b/node_modules/date-fns/esm/fp/setQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setSeconds/index.d.ts b/node_modules/date-fns/esm/fp/setSeconds/index.d.ts new file mode 100644 index 00000000..fbfa77e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setSeconds } from 'date-fns/fp' +export default setSeconds diff --git a/node_modules/date-fns/esm/fp/setSeconds/index.js b/node_modules/date-fns/esm/fp/setSeconds/index.js new file mode 100644 index 00000000..cf109438 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setSeconds/index.js.flow b/node_modules/date-fns/esm/fp/setSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setSeconds/package.json b/node_modules/date-fns/esm/fp/setSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeek/index.d.ts b/node_modules/date-fns/esm/fp/setWeek/index.d.ts new file mode 100644 index 00000000..d9edcaa4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeek } from 'date-fns/fp' +export default setWeek diff --git a/node_modules/date-fns/esm/fp/setWeek/index.js b/node_modules/date-fns/esm/fp/setWeek/index.js new file mode 100644 index 00000000..1561de54 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeek/index.js.flow b/node_modules/date-fns/esm/fp/setWeek/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setWeek/package.json b/node_modules/date-fns/esm/fp/setWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.d.ts new file mode 100644 index 00000000..2971c7af --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekWithOptions } from 'date-fns/fp' +export default setWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js new file mode 100644 index 00000000..9d2e2f7d --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js.flow new file mode 100644 index 00000000..ffea29c5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/setWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/setWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/setWeekYear/index.d.ts new file mode 100644 index 00000000..7d2c6cca --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYear } from 'date-fns/fp' +export default setWeekYear diff --git a/node_modules/date-fns/esm/fp/setWeekYear/index.js b/node_modules/date-fns/esm/fp/setWeekYear/index.js new file mode 100644 index 00000000..a6e25aa4 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/setWeekYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setWeekYear/package.json b/node_modules/date-fns/esm/fp/setWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..5d52f8f3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYearWithOptions } from 'date-fns/fp' +export default setWeekYearWithOptions diff --git a/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js new file mode 100644 index 00000000..22879d8c --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 3); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..ffea29c5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/setWeekYearWithOptions/package.json b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setWeekYearWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setYear/index.d.ts b/node_modules/date-fns/esm/fp/setYear/index.d.ts new file mode 100644 index 00000000..be24ce0b --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setYear } from 'date-fns/fp' +export default setYear diff --git a/node_modules/date-fns/esm/fp/setYear/index.js b/node_modules/date-fns/esm/fp/setYear/index.js new file mode 100644 index 00000000..57c3e3b2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../setYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/setYear/index.js.flow b/node_modules/date-fns/esm/fp/setYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/setYear/package.json b/node_modules/date-fns/esm/fp/setYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/setYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfDay/index.d.ts b/node_modules/date-fns/esm/fp/startOfDay/index.d.ts new file mode 100644 index 00000000..fed6b052 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDay } from 'date-fns/fp' +export default startOfDay diff --git a/node_modules/date-fns/esm/fp/startOfDay/index.js b/node_modules/date-fns/esm/fp/startOfDay/index.js new file mode 100644 index 00000000..48794d54 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDay/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfDay/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfDay/index.js.flow b/node_modules/date-fns/esm/fp/startOfDay/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfDay/package.json b/node_modules/date-fns/esm/fp/startOfDay/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfDecade/index.d.ts b/node_modules/date-fns/esm/fp/startOfDecade/index.d.ts new file mode 100644 index 00000000..127c1563 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDecade } from 'date-fns/fp' +export default startOfDecade diff --git a/node_modules/date-fns/esm/fp/startOfDecade/index.js b/node_modules/date-fns/esm/fp/startOfDecade/index.js new file mode 100644 index 00000000..9e3755c6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDecade/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfDecade/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfDecade/index.js.flow b/node_modules/date-fns/esm/fp/startOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfDecade/package.json b/node_modules/date-fns/esm/fp/startOfDecade/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfHour/index.d.ts b/node_modules/date-fns/esm/fp/startOfHour/index.d.ts new file mode 100644 index 00000000..9a1905e0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfHour } from 'date-fns/fp' +export default startOfHour diff --git a/node_modules/date-fns/esm/fp/startOfHour/index.js b/node_modules/date-fns/esm/fp/startOfHour/index.js new file mode 100644 index 00000000..90adb196 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfHour/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfHour/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfHour/index.js.flow b/node_modules/date-fns/esm/fp/startOfHour/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfHour/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfHour/package.json b/node_modules/date-fns/esm/fp/startOfHour/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfISOWeek/index.d.ts b/node_modules/date-fns/esm/fp/startOfISOWeek/index.d.ts new file mode 100644 index 00000000..008f896c --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeek } from 'date-fns/fp' +export default startOfISOWeek diff --git a/node_modules/date-fns/esm/fp/startOfISOWeek/index.js b/node_modules/date-fns/esm/fp/startOfISOWeek/index.js new file mode 100644 index 00000000..e6adab81 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfISOWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfISOWeek/index.js.flow b/node_modules/date-fns/esm/fp/startOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfISOWeek/package.json b/node_modules/date-fns/esm/fp/startOfISOWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..aab0b5a7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeekYear } from 'date-fns/fp' +export default startOfISOWeekYear diff --git a/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js new file mode 100644 index 00000000..c538b872 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfISOWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfISOWeekYear/package.json b/node_modules/date-fns/esm/fp/startOfISOWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfMinute/index.d.ts b/node_modules/date-fns/esm/fp/startOfMinute/index.d.ts new file mode 100644 index 00000000..013f3a46 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMinute } from 'date-fns/fp' +export default startOfMinute diff --git a/node_modules/date-fns/esm/fp/startOfMinute/index.js b/node_modules/date-fns/esm/fp/startOfMinute/index.js new file mode 100644 index 00000000..6719cd44 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMinute/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfMinute/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfMinute/index.js.flow b/node_modules/date-fns/esm/fp/startOfMinute/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMinute/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfMinute/package.json b/node_modules/date-fns/esm/fp/startOfMinute/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfMonth/index.d.ts b/node_modules/date-fns/esm/fp/startOfMonth/index.d.ts new file mode 100644 index 00000000..edbb15ff --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMonth } from 'date-fns/fp' +export default startOfMonth diff --git a/node_modules/date-fns/esm/fp/startOfMonth/index.js b/node_modules/date-fns/esm/fp/startOfMonth/index.js new file mode 100644 index 00000000..fff76d58 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMonth/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfMonth/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfMonth/index.js.flow b/node_modules/date-fns/esm/fp/startOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfMonth/package.json b/node_modules/date-fns/esm/fp/startOfMonth/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfQuarter/index.d.ts b/node_modules/date-fns/esm/fp/startOfQuarter/index.d.ts new file mode 100644 index 00000000..1c3b6020 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfQuarter } from 'date-fns/fp' +export default startOfQuarter diff --git a/node_modules/date-fns/esm/fp/startOfQuarter/index.js b/node_modules/date-fns/esm/fp/startOfQuarter/index.js new file mode 100644 index 00000000..9a88cb8c --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfQuarter/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfQuarter/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfQuarter/index.js.flow b/node_modules/date-fns/esm/fp/startOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfQuarter/package.json b/node_modules/date-fns/esm/fp/startOfQuarter/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfSecond/index.d.ts b/node_modules/date-fns/esm/fp/startOfSecond/index.d.ts new file mode 100644 index 00000000..866aa6f9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfSecond } from 'date-fns/fp' +export default startOfSecond diff --git a/node_modules/date-fns/esm/fp/startOfSecond/index.js b/node_modules/date-fns/esm/fp/startOfSecond/index.js new file mode 100644 index 00000000..0901464d --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfSecond/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfSecond/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfSecond/index.js.flow b/node_modules/date-fns/esm/fp/startOfSecond/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfSecond/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfSecond/package.json b/node_modules/date-fns/esm/fp/startOfSecond/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeek/index.d.ts b/node_modules/date-fns/esm/fp/startOfWeek/index.d.ts new file mode 100644 index 00000000..ab178410 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeek } from 'date-fns/fp' +export default startOfWeek diff --git a/node_modules/date-fns/esm/fp/startOfWeek/index.js b/node_modules/date-fns/esm/fp/startOfWeek/index.js new file mode 100644 index 00000000..e6c9d5b9 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeek/index.js.flow b/node_modules/date-fns/esm/fp/startOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfWeek/package.json b/node_modules/date-fns/esm/fp/startOfWeek/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..0bd5568f --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekWithOptions } from 'date-fns/fp' +export default startOfWeekWithOptions diff --git a/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js new file mode 100644 index 00000000..81e7b4c0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfWeek/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/startOfWeekWithOptions/package.json b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekYear/index.d.ts b/node_modules/date-fns/esm/fp/startOfWeekYear/index.d.ts new file mode 100644 index 00000000..17ce1cbe --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYear } from 'date-fns/fp' +export default startOfWeekYear diff --git a/node_modules/date-fns/esm/fp/startOfWeekYear/index.js b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js new file mode 100644 index 00000000..a7631d77 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekYear/index.js.flow b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfWeekYear/package.json b/node_modules/date-fns/esm/fp/startOfWeekYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.d.ts b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..26f9e804 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYearWithOptions } from 'date-fns/fp' +export default startOfWeekYearWithOptions diff --git a/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js new file mode 100644 index 00000000..d88122e8 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfWeekYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js.flow b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..236eaa53 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/package.json b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfWeekYearWithOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfYear/index.d.ts b/node_modules/date-fns/esm/fp/startOfYear/index.d.ts new file mode 100644 index 00000000..6e94924d --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYear } from 'date-fns/fp' +export default startOfYear diff --git a/node_modules/date-fns/esm/fp/startOfYear/index.js b/node_modules/date-fns/esm/fp/startOfYear/index.js new file mode 100644 index 00000000..c095f7f7 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfYear/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../startOfYear/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/startOfYear/index.js.flow b/node_modules/date-fns/esm/fp/startOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/startOfYear/package.json b/node_modules/date-fns/esm/fp/startOfYear/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/startOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/sub/index.d.ts b/node_modules/date-fns/esm/fp/sub/index.d.ts new file mode 100644 index 00000000..c50f32f0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sub } from 'date-fns/fp' +export default sub diff --git a/node_modules/date-fns/esm/fp/sub/index.js b/node_modules/date-fns/esm/fp/sub/index.js new file mode 100644 index 00000000..ddb9f73e --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../sub/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/sub/index.js.flow b/node_modules/date-fns/esm/fp/sub/index.js.flow new file mode 100644 index 00000000..3d4363b3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/sub/package.json b/node_modules/date-fns/esm/fp/sub/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/sub/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subBusinessDays/index.d.ts b/node_modules/date-fns/esm/fp/subBusinessDays/index.d.ts new file mode 100644 index 00000000..6f7c95a5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subBusinessDays } from 'date-fns/fp' +export default subBusinessDays diff --git a/node_modules/date-fns/esm/fp/subBusinessDays/index.js b/node_modules/date-fns/esm/fp/subBusinessDays/index.js new file mode 100644 index 00000000..ef0aaeda --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subBusinessDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subBusinessDays/index.js.flow b/node_modules/date-fns/esm/fp/subBusinessDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subBusinessDays/package.json b/node_modules/date-fns/esm/fp/subBusinessDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subDays/index.d.ts b/node_modules/date-fns/esm/fp/subDays/index.d.ts new file mode 100644 index 00000000..8a72d43a --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subDays } from 'date-fns/fp' +export default subDays diff --git a/node_modules/date-fns/esm/fp/subDays/index.js b/node_modules/date-fns/esm/fp/subDays/index.js new file mode 100644 index 00000000..e85c265d --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subDays/index.js.flow b/node_modules/date-fns/esm/fp/subDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subDays/package.json b/node_modules/date-fns/esm/fp/subDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subHours/index.d.ts b/node_modules/date-fns/esm/fp/subHours/index.d.ts new file mode 100644 index 00000000..6fcfa1f5 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subHours } from 'date-fns/fp' +export default subHours diff --git a/node_modules/date-fns/esm/fp/subHours/index.js b/node_modules/date-fns/esm/fp/subHours/index.js new file mode 100644 index 00000000..2d60622f --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subHours/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subHours/index.js.flow b/node_modules/date-fns/esm/fp/subHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subHours/package.json b/node_modules/date-fns/esm/fp/subHours/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subISOWeekYears/index.d.ts b/node_modules/date-fns/esm/fp/subISOWeekYears/index.d.ts new file mode 100644 index 00000000..430fca40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subISOWeekYears } from 'date-fns/fp' +export default subISOWeekYears diff --git a/node_modules/date-fns/esm/fp/subISOWeekYears/index.js b/node_modules/date-fns/esm/fp/subISOWeekYears/index.js new file mode 100644 index 00000000..75801bd2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subISOWeekYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subISOWeekYears/index.js.flow b/node_modules/date-fns/esm/fp/subISOWeekYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subISOWeekYears/package.json b/node_modules/date-fns/esm/fp/subISOWeekYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMilliseconds/index.d.ts b/node_modules/date-fns/esm/fp/subMilliseconds/index.d.ts new file mode 100644 index 00000000..9310a1c3 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMilliseconds } from 'date-fns/fp' +export default subMilliseconds diff --git a/node_modules/date-fns/esm/fp/subMilliseconds/index.js b/node_modules/date-fns/esm/fp/subMilliseconds/index.js new file mode 100644 index 00000000..b70dba34 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subMilliseconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMilliseconds/index.js.flow b/node_modules/date-fns/esm/fp/subMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subMilliseconds/package.json b/node_modules/date-fns/esm/fp/subMilliseconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMinutes/index.d.ts b/node_modules/date-fns/esm/fp/subMinutes/index.d.ts new file mode 100644 index 00000000..0b7db105 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMinutes } from 'date-fns/fp' +export default subMinutes diff --git a/node_modules/date-fns/esm/fp/subMinutes/index.js b/node_modules/date-fns/esm/fp/subMinutes/index.js new file mode 100644 index 00000000..dc9c7287 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subMinutes/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMinutes/index.js.flow b/node_modules/date-fns/esm/fp/subMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subMinutes/package.json b/node_modules/date-fns/esm/fp/subMinutes/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMonths/index.d.ts b/node_modules/date-fns/esm/fp/subMonths/index.d.ts new file mode 100644 index 00000000..3d03d27e --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMonths } from 'date-fns/fp' +export default subMonths diff --git a/node_modules/date-fns/esm/fp/subMonths/index.js b/node_modules/date-fns/esm/fp/subMonths/index.js new file mode 100644 index 00000000..2041227f --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subMonths/index.js.flow b/node_modules/date-fns/esm/fp/subMonths/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subMonths/package.json b/node_modules/date-fns/esm/fp/subMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subQuarters/index.d.ts b/node_modules/date-fns/esm/fp/subQuarters/index.d.ts new file mode 100644 index 00000000..6362ceca --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subQuarters } from 'date-fns/fp' +export default subQuarters diff --git a/node_modules/date-fns/esm/fp/subQuarters/index.js b/node_modules/date-fns/esm/fp/subQuarters/index.js new file mode 100644 index 00000000..68cc10ce --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subQuarters/index.js.flow b/node_modules/date-fns/esm/fp/subQuarters/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subQuarters/package.json b/node_modules/date-fns/esm/fp/subQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subSeconds/index.d.ts b/node_modules/date-fns/esm/fp/subSeconds/index.d.ts new file mode 100644 index 00000000..c5c6635b --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subSeconds } from 'date-fns/fp' +export default subSeconds diff --git a/node_modules/date-fns/esm/fp/subSeconds/index.js b/node_modules/date-fns/esm/fp/subSeconds/index.js new file mode 100644 index 00000000..39ef21f2 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subSeconds/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subSeconds/index.js.flow b/node_modules/date-fns/esm/fp/subSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subSeconds/package.json b/node_modules/date-fns/esm/fp/subSeconds/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subWeeks/index.d.ts b/node_modules/date-fns/esm/fp/subWeeks/index.d.ts new file mode 100644 index 00000000..18eebcb0 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subWeeks } from 'date-fns/fp' +export default subWeeks diff --git a/node_modules/date-fns/esm/fp/subWeeks/index.js b/node_modules/date-fns/esm/fp/subWeeks/index.js new file mode 100644 index 00000000..268b8b6e --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subWeeks/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subWeeks/index.js.flow b/node_modules/date-fns/esm/fp/subWeeks/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subWeeks/package.json b/node_modules/date-fns/esm/fp/subWeeks/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subYears/index.d.ts b/node_modules/date-fns/esm/fp/subYears/index.d.ts new file mode 100644 index 00000000..55abb01d --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subYears } from 'date-fns/fp' +export default subYears diff --git a/node_modules/date-fns/esm/fp/subYears/index.js b/node_modules/date-fns/esm/fp/subYears/index.js new file mode 100644 index 00000000..2e007170 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../subYears/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 2); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/subYears/index.js.flow b/node_modules/date-fns/esm/fp/subYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/esm/fp/subYears/package.json b/node_modules/date-fns/esm/fp/subYears/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/subYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/toDate/index.d.ts b/node_modules/date-fns/esm/fp/toDate/index.d.ts new file mode 100644 index 00000000..2bbca808 --- /dev/null +++ b/node_modules/date-fns/esm/fp/toDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { toDate } from 'date-fns/fp' +export default toDate diff --git a/node_modules/date-fns/esm/fp/toDate/index.js b/node_modules/date-fns/esm/fp/toDate/index.js new file mode 100644 index 00000000..90f85652 --- /dev/null +++ b/node_modules/date-fns/esm/fp/toDate/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../toDate/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/toDate/index.js.flow b/node_modules/date-fns/esm/fp/toDate/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/esm/fp/toDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/toDate/package.json b/node_modules/date-fns/esm/fp/toDate/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/toDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/weeksToDays/index.d.ts b/node_modules/date-fns/esm/fp/weeksToDays/index.d.ts new file mode 100644 index 00000000..df682391 --- /dev/null +++ b/node_modules/date-fns/esm/fp/weeksToDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { weeksToDays } from 'date-fns/fp' +export default weeksToDays diff --git a/node_modules/date-fns/esm/fp/weeksToDays/index.js b/node_modules/date-fns/esm/fp/weeksToDays/index.js new file mode 100644 index 00000000..a93c3c84 --- /dev/null +++ b/node_modules/date-fns/esm/fp/weeksToDays/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../weeksToDays/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/weeksToDays/index.js.flow b/node_modules/date-fns/esm/fp/weeksToDays/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/weeksToDays/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/weeksToDays/package.json b/node_modules/date-fns/esm/fp/weeksToDays/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/weeksToDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/yearsToMonths/index.d.ts b/node_modules/date-fns/esm/fp/yearsToMonths/index.d.ts new file mode 100644 index 00000000..39cd7738 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToMonths } from 'date-fns/fp' +export default yearsToMonths diff --git a/node_modules/date-fns/esm/fp/yearsToMonths/index.js b/node_modules/date-fns/esm/fp/yearsToMonths/index.js new file mode 100644 index 00000000..50491d40 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToMonths/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../yearsToMonths/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/yearsToMonths/index.js.flow b/node_modules/date-fns/esm/fp/yearsToMonths/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToMonths/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/yearsToMonths/package.json b/node_modules/date-fns/esm/fp/yearsToMonths/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/yearsToQuarters/index.d.ts b/node_modules/date-fns/esm/fp/yearsToQuarters/index.d.ts new file mode 100644 index 00000000..cbb664df --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToQuarters } from 'date-fns/fp' +export default yearsToQuarters diff --git a/node_modules/date-fns/esm/fp/yearsToQuarters/index.js b/node_modules/date-fns/esm/fp/yearsToQuarters/index.js new file mode 100644 index 00000000..fc30dc25 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToQuarters/index.js @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +import fn from "../../yearsToQuarters/index.js"; +import convertToFP from "../_lib/convertToFP/index.js"; +export default convertToFP(fn, 1); \ No newline at end of file diff --git a/node_modules/date-fns/esm/fp/yearsToQuarters/index.js.flow b/node_modules/date-fns/esm/fp/yearsToQuarters/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToQuarters/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/esm/fp/yearsToQuarters/package.json b/node_modules/date-fns/esm/fp/yearsToQuarters/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/fp/yearsToQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fromUnixTime/index.d.ts b/node_modules/date-fns/esm/fromUnixTime/index.d.ts new file mode 100644 index 00000000..a88920d8 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fromUnixTime } from 'date-fns' +export default fromUnixTime diff --git a/node_modules/date-fns/esm/fromUnixTime/index.js b/node_modules/date-fns/esm/fromUnixTime/index.js new file mode 100644 index 00000000..95e4fb36 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param {Number} unixTime - the given Unix timestamp (in seconds) + * @returns {Date} the date + * @throws {TypeError} 1 argument required + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ + +export default function fromUnixTime(dirtyUnixTime) { + requiredArgs(1, arguments); + var unixTime = toInteger(dirtyUnixTime); + return toDate(unixTime * 1000); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/fromUnixTime/index.js.flow b/node_modules/date-fns/esm/fromUnixTime/index.js.flow new file mode 100644 index 00000000..a286bdf0 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (unixTime: number) => Date diff --git a/node_modules/date-fns/esm/fromUnixTime/package.json b/node_modules/date-fns/esm/fromUnixTime/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/fromUnixTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDate/index.d.ts b/node_modules/date-fns/esm/getDate/index.d.ts new file mode 100644 index 00000000..cb864411 --- /dev/null +++ b/node_modules/date-fns/esm/getDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDate } from 'date-fns' +export default getDate diff --git a/node_modules/date-fns/esm/getDate/index.js b/node_modules/date-fns/esm/getDate/index.js new file mode 100644 index 00000000..b1e76cdc --- /dev/null +++ b/node_modules/date-fns/esm/getDate/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of month + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ + +export default function getDate(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var dayOfMonth = date.getDate(); + return dayOfMonth; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDate/index.js.flow b/node_modules/date-fns/esm/getDate/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getDate/package.json b/node_modules/date-fns/esm/getDate/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDay/index.d.ts b/node_modules/date-fns/esm/getDay/index.d.ts new file mode 100644 index 00000000..5ea22c01 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDay } from 'date-fns' +export default getDay diff --git a/node_modules/date-fns/esm/getDay/index.js b/node_modules/date-fns/esm/getDay/index.js new file mode 100644 index 00000000..4b235805 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param {Date|Number} date - the given date + * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ + +export default function getDay(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var day = date.getDay(); + return day; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDay/index.js.flow b/node_modules/date-fns/esm/getDay/index.js.flow new file mode 100644 index 00000000..6ff2a545 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => 0 | 1 | 2 | 3 | 4 | 5 | 6 diff --git a/node_modules/date-fns/esm/getDay/package.json b/node_modules/date-fns/esm/getDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDayOfYear/index.d.ts b/node_modules/date-fns/esm/getDayOfYear/index.d.ts new file mode 100644 index 00000000..ec58442b --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDayOfYear } from 'date-fns' +export default getDayOfYear diff --git a/node_modules/date-fns/esm/getDayOfYear/index.js b/node_modules/date-fns/esm/getDayOfYear/index.js new file mode 100644 index 00000000..8c1f1b44 --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import startOfYear from "../startOfYear/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of year + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ + +export default function getDayOfYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var diff = differenceInCalendarDays(date, startOfYear(date)); + var dayOfYear = diff + 1; + return dayOfYear; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDayOfYear/index.js.flow b/node_modules/date-fns/esm/getDayOfYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getDayOfYear/package.json b/node_modules/date-fns/esm/getDayOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDaysInMonth/index.d.ts b/node_modules/date-fns/esm/getDaysInMonth/index.d.ts new file mode 100644 index 00000000..6b69daec --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInMonth } from 'date-fns' +export default getDaysInMonth diff --git a/node_modules/date-fns/esm/getDaysInMonth/index.js b/node_modules/date-fns/esm/getDaysInMonth/index.js new file mode 100644 index 00000000..8fefa3d3 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/index.js @@ -0,0 +1,30 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of days in a month + * @throws {TypeError} 1 argument required + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ + +export default function getDaysInMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var monthIndex = date.getMonth(); + var lastDayOfMonth = new Date(0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDaysInMonth/index.js.flow b/node_modules/date-fns/esm/getDaysInMonth/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getDaysInMonth/package.json b/node_modules/date-fns/esm/getDaysInMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDaysInYear/index.d.ts b/node_modules/date-fns/esm/getDaysInYear/index.d.ts new file mode 100644 index 00000000..053d44bd --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInYear } from 'date-fns' +export default getDaysInYear diff --git a/node_modules/date-fns/esm/getDaysInYear/index.js b/node_modules/date-fns/esm/getDaysInYear/index.js new file mode 100644 index 00000000..20f28cd5 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/index.js @@ -0,0 +1,31 @@ +import toDate from "../toDate/index.js"; +import isLeapYear from "../isLeapYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of days in a year + * @throws {TypeError} 1 argument required + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ + +export default function getDaysInYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + + if (String(new Date(date)) === 'Invalid Date') { + return NaN; + } + + return isLeapYear(date) ? 366 : 365; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDaysInYear/index.js.flow b/node_modules/date-fns/esm/getDaysInYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getDaysInYear/package.json b/node_modules/date-fns/esm/getDaysInYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDaysInYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDecade/index.d.ts b/node_modules/date-fns/esm/getDecade/index.d.ts new file mode 100644 index 00000000..dfa8961c --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDecade } from 'date-fns' +export default getDecade diff --git a/node_modules/date-fns/esm/getDecade/index.js b/node_modules/date-fns/esm/getDecade/index.js new file mode 100644 index 00000000..d8bf8222 --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the year of decade + * @throws {TypeError} 1 argument required + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ + +export default function getDecade(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + return decade; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDecade/index.js.flow b/node_modules/date-fns/esm/getDecade/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getDecade/package.json b/node_modules/date-fns/esm/getDecade/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDefaultOptions/index.d.ts b/node_modules/date-fns/esm/getDefaultOptions/index.d.ts new file mode 100644 index 00000000..43e2dea0 --- /dev/null +++ b/node_modules/date-fns/esm/getDefaultOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDefaultOptions } from 'date-fns' +export default getDefaultOptions diff --git a/node_modules/date-fns/esm/getDefaultOptions/index.js b/node_modules/date-fns/esm/getDefaultOptions/index.js new file mode 100644 index 00000000..abfcde8e --- /dev/null +++ b/node_modules/date-fns/esm/getDefaultOptions/index.js @@ -0,0 +1,30 @@ +import { getDefaultOptions as getInternalDefaultOptions } from "../_lib/defaultOptions/index.js"; +import assign from "../_lib/assign/index.js"; +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions]{@link https://date-fns.org/docs/setDefaultOptions}. + * + * @returns {Object} default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ + +export default function getDefaultOptions() { + return assign({}, getInternalDefaultOptions()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getDefaultOptions/index.js.flow b/node_modules/date-fns/esm/getDefaultOptions/index.js.flow new file mode 100644 index 00000000..2a0fd28f --- /dev/null +++ b/node_modules/date-fns/esm/getDefaultOptions/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Object diff --git a/node_modules/date-fns/esm/getDefaultOptions/package.json b/node_modules/date-fns/esm/getDefaultOptions/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getDefaultOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getHours/index.d.ts b/node_modules/date-fns/esm/getHours/index.d.ts new file mode 100644 index 00000000..1ef49091 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getHours } from 'date-fns' +export default getHours diff --git a/node_modules/date-fns/esm/getHours/index.js b/node_modules/date-fns/esm/getHours/index.js new file mode 100644 index 00000000..5ca316d7 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the hours + * @throws {TypeError} 1 argument required + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ + +export default function getHours(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var hours = date.getHours(); + return hours; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getHours/index.js.flow b/node_modules/date-fns/esm/getHours/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getHours/package.json b/node_modules/date-fns/esm/getHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISODay/index.d.ts b/node_modules/date-fns/esm/getISODay/index.d.ts new file mode 100644 index 00000000..fef75877 --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISODay } from 'date-fns' +export default getISODay diff --git a/node_modules/date-fns/esm/getISODay/index.js b/node_modules/date-fns/esm/getISODay/index.js new file mode 100644 index 00000000..0604be5a --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/index.js @@ -0,0 +1,34 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ + +export default function getISODay(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var day = date.getDay(); + + if (day === 0) { + day = 7; + } + + return day; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISODay/index.js.flow b/node_modules/date-fns/esm/getISODay/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getISODay/package.json b/node_modules/date-fns/esm/getISODay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getISODay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeek/index.d.ts b/node_modules/date-fns/esm/getISOWeek/index.d.ts new file mode 100644 index 00000000..f24419b6 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeek } from 'date-fns' +export default getISOWeek diff --git a/node_modules/date-fns/esm/getISOWeek/index.js b/node_modules/date-fns/esm/getISOWeek/index.js new file mode 100644 index 00000000..2201940a --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/index.js @@ -0,0 +1,34 @@ +import toDate from "../toDate/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import startOfISOWeekYear from "../startOfISOWeekYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ + +export default function getISOWeek(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var diff = startOfISOWeek(date).getTime() - startOfISOWeekYear(date).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeek/index.js.flow b/node_modules/date-fns/esm/getISOWeek/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getISOWeek/package.json b/node_modules/date-fns/esm/getISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeekYear/index.d.ts b/node_modules/date-fns/esm/getISOWeekYear/index.d.ts new file mode 100644 index 00000000..018d0c81 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeekYear } from 'date-fns' +export default getISOWeekYear diff --git a/node_modules/date-fns/esm/getISOWeekYear/index.js b/node_modules/date-fns/esm/getISOWeekYear/index.js new file mode 100644 index 00000000..1f4f6253 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/index.js @@ -0,0 +1,45 @@ +import toDate from "../toDate/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ + +export default function getISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = new Date(0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeekYear/index.js.flow b/node_modules/date-fns/esm/getISOWeekYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getISOWeekYear/package.json b/node_modules/date-fns/esm/getISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeeksInYear/index.d.ts b/node_modules/date-fns/esm/getISOWeeksInYear/index.d.ts new file mode 100644 index 00000000..5d3ee66a --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeeksInYear } from 'date-fns' +export default getISOWeeksInYear diff --git a/node_modules/date-fns/esm/getISOWeeksInYear/index.js b/node_modules/date-fns/esm/getISOWeeksInYear/index.js new file mode 100644 index 00000000..4c27528a --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/index.js @@ -0,0 +1,34 @@ +import startOfISOWeekYear from "../startOfISOWeekYear/index.js"; +import addWeeks from "../addWeeks/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of ISO weeks in a year + * @throws {TypeError} 1 argument required + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ + +export default function getISOWeeksInYear(dirtyDate) { + requiredArgs(1, arguments); + var thisYear = startOfISOWeekYear(dirtyDate); + var nextYear = startOfISOWeekYear(addWeeks(thisYear, 60)); + var diff = nextYear.valueOf() - thisYear.valueOf(); // Round the number of weeks to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getISOWeeksInYear/index.js.flow b/node_modules/date-fns/esm/getISOWeeksInYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getISOWeeksInYear/package.json b/node_modules/date-fns/esm/getISOWeeksInYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getISOWeeksInYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMilliseconds/index.d.ts b/node_modules/date-fns/esm/getMilliseconds/index.d.ts new file mode 100644 index 00000000..7476168c --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMilliseconds } from 'date-fns' +export default getMilliseconds diff --git a/node_modules/date-fns/esm/getMilliseconds/index.js b/node_modules/date-fns/esm/getMilliseconds/index.js new file mode 100644 index 00000000..0e19e549 --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ + +export default function getMilliseconds(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var milliseconds = date.getMilliseconds(); + return milliseconds; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMilliseconds/index.js.flow b/node_modules/date-fns/esm/getMilliseconds/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getMilliseconds/package.json b/node_modules/date-fns/esm/getMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMinutes/index.d.ts b/node_modules/date-fns/esm/getMinutes/index.d.ts new file mode 100644 index 00000000..e6a92842 --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMinutes } from 'date-fns' +export default getMinutes diff --git a/node_modules/date-fns/esm/getMinutes/index.js b/node_modules/date-fns/esm/getMinutes/index.js new file mode 100644 index 00000000..45410ff2 --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ + +export default function getMinutes(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var minutes = date.getMinutes(); + return minutes; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMinutes/index.js.flow b/node_modules/date-fns/esm/getMinutes/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getMinutes/package.json b/node_modules/date-fns/esm/getMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMonth/index.d.ts b/node_modules/date-fns/esm/getMonth/index.d.ts new file mode 100644 index 00000000..e0b62173 --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMonth } from 'date-fns' +export default getMonth diff --git a/node_modules/date-fns/esm/getMonth/index.js b/node_modules/date-fns/esm/getMonth/index.js new file mode 100644 index 00000000..50f165bd --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the month + * @throws {TypeError} 1 argument required + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ + +export default function getMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var month = date.getMonth(); + return month; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getMonth/index.js.flow b/node_modules/date-fns/esm/getMonth/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getMonth/package.json b/node_modules/date-fns/esm/getMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.d.ts b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.d.ts new file mode 100644 index 00000000..e309ff91 --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getOverlappingDaysInIntervals } from 'date-fns' +export default getOverlappingDaysInIntervals diff --git a/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js new file mode 100644 index 00000000..5d3b997a --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,59 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000; +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/Interval} + * @returns {Number} the number of days that overlap in two time intervals + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ + +export default function getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) { + requiredArgs(2, arguments); + var intervalLeft = dirtyIntervalLeft || {}; + var intervalRight = dirtyIntervalRight || {}; + var leftStartTime = toDate(intervalLeft.start).getTime(); + var leftEndTime = toDate(intervalLeft.end).getTime(); + var rightStartTime = toDate(intervalRight.start).getTime(); + var rightEndTime = toDate(intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { + throw new RangeError('Invalid interval'); + } + + var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime; + + if (!isOverlapping) { + return 0; + } + + var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime; + var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime; + var differenceInMs = overlapEndDate - overlapStartDate; + return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js.flow b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js.flow new file mode 100644 index 00000000..9c0f272c --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + intervalLeft: Interval, + intervalRight: Interval +) => number diff --git a/node_modules/date-fns/esm/getOverlappingDaysInIntervals/package.json b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getOverlappingDaysInIntervals/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getQuarter/index.d.ts b/node_modules/date-fns/esm/getQuarter/index.d.ts new file mode 100644 index 00000000..6434ba0b --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getQuarter } from 'date-fns' +export default getQuarter diff --git a/node_modules/date-fns/esm/getQuarter/index.js b/node_modules/date-fns/esm/getQuarter/index.js new file mode 100644 index 00000000..a71cb7ed --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the quarter + * @throws {TypeError} 1 argument required + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)) + * //=> 3 + */ + +export default function getQuarter(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var quarter = Math.floor(date.getMonth() / 3) + 1; + return quarter; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getQuarter/index.js.flow b/node_modules/date-fns/esm/getQuarter/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getQuarter/package.json b/node_modules/date-fns/esm/getQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getSeconds/index.d.ts b/node_modules/date-fns/esm/getSeconds/index.d.ts new file mode 100644 index 00000000..7b609441 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getSeconds } from 'date-fns' +export default getSeconds diff --git a/node_modules/date-fns/esm/getSeconds/index.js b/node_modules/date-fns/esm/getSeconds/index.js new file mode 100644 index 00000000..353efcd8 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ + +export default function getSeconds(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var seconds = date.getSeconds(); + return seconds; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getSeconds/index.js.flow b/node_modules/date-fns/esm/getSeconds/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getSeconds/package.json b/node_modules/date-fns/esm/getSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getTime/index.d.ts b/node_modules/date-fns/esm/getTime/index.d.ts new file mode 100644 index 00000000..87c958e6 --- /dev/null +++ b/node_modules/date-fns/esm/getTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getTime } from 'date-fns' +export default getTime diff --git a/node_modules/date-fns/esm/getTime/index.js b/node_modules/date-fns/esm/getTime/index.js new file mode 100644 index 00000000..315a49ac --- /dev/null +++ b/node_modules/date-fns/esm/getTime/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the timestamp + * @throws {TypeError} 1 argument required + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ + +export default function getTime(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var timestamp = date.getTime(); + return timestamp; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getTime/index.js.flow b/node_modules/date-fns/esm/getTime/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getTime/package.json b/node_modules/date-fns/esm/getTime/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getUnixTime/index.d.ts b/node_modules/date-fns/esm/getUnixTime/index.d.ts new file mode 100644 index 00000000..8f85a122 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getUnixTime } from 'date-fns' +export default getUnixTime diff --git a/node_modules/date-fns/esm/getUnixTime/index.js b/node_modules/date-fns/esm/getUnixTime/index.js new file mode 100644 index 00000000..3c54d300 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/index.js @@ -0,0 +1,24 @@ +import getTime from "../getTime/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the timestamp + * @throws {TypeError} 1 argument required + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ + +export default function getUnixTime(dirtyDate) { + requiredArgs(1, arguments); + return Math.floor(getTime(dirtyDate) / 1000); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getUnixTime/index.js.flow b/node_modules/date-fns/esm/getUnixTime/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getUnixTime/package.json b/node_modules/date-fns/esm/getUnixTime/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getUnixTime/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeek/index.d.ts b/node_modules/date-fns/esm/getWeek/index.d.ts new file mode 100644 index 00000000..dfa1327e --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeek } from 'date-fns' +export default getWeek diff --git a/node_modules/date-fns/esm/getWeek/index.js b/node_modules/date-fns/esm/getWeek/index.js new file mode 100644 index 00000000..9fd2869c --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/index.js @@ -0,0 +1,53 @@ +import startOfWeek from "../startOfWeek/index.js"; +import startOfWeekYear from "../startOfWeekYear/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Number} the week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ + +export default function getWeek(dirtyDate, options) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var diff = startOfWeek(date, options).getTime() - startOfWeekYear(date, options).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeek/index.js.flow b/node_modules/date-fns/esm/getWeek/index.js.flow new file mode 100644 index 00000000..2c948ae2 --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => number diff --git a/node_modules/date-fns/esm/getWeek/package.json b/node_modules/date-fns/esm/getWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeekOfMonth/index.d.ts b/node_modules/date-fns/esm/getWeekOfMonth/index.d.ts new file mode 100644 index 00000000..781b2add --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonth } from 'date-fns' +export default getWeekOfMonth diff --git a/node_modules/date-fns/esm/getWeekOfMonth/index.js b/node_modules/date-fns/esm/getWeekOfMonth/index.js new file mode 100644 index 00000000..55d9059f --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/index.js @@ -0,0 +1,47 @@ +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +import getDate from "../getDate/index.js"; +import getDay from "../getDay/index.js"; +import startOfMonth from "../startOfMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the week of month + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 inclusively + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ + +export default function getWeekOfMonth(date, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var currentDayOfMonth = getDate(date); + if (isNaN(currentDayOfMonth)) return NaN; + var startWeekDay = getDay(startOfMonth(date)); + var lastDayOfFirstWeek = weekStartsOn - startWeekDay; + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeekOfMonth/index.js.flow b/node_modules/date-fns/esm/getWeekOfMonth/index.js.flow new file mode 100644 index 00000000..1115f28e --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/esm/getWeekOfMonth/package.json b/node_modules/date-fns/esm/getWeekOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeekYear/index.d.ts b/node_modules/date-fns/esm/getWeekYear/index.d.ts new file mode 100644 index 00000000..c8fc5289 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYear } from 'date-fns' +export default getWeekYear diff --git a/node_modules/date-fns/esm/getWeekYear/index.js b/node_modules/date-fns/esm/getWeekYear/index.js new file mode 100644 index 00000000..d94d4ad5 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/index.js @@ -0,0 +1,75 @@ +import startOfWeek from "../startOfWeek/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Number} the local week-numbering year + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ + +export default function getWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var firstWeekOfNextYear = new Date(0); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = startOfWeek(firstWeekOfNextYear, options); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = startOfWeek(firstWeekOfThisYear, options); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeekYear/index.js.flow b/node_modules/date-fns/esm/getWeekYear/index.js.flow new file mode 100644 index 00000000..2c948ae2 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => number diff --git a/node_modules/date-fns/esm/getWeekYear/package.json b/node_modules/date-fns/esm/getWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeeksInMonth/index.d.ts b/node_modules/date-fns/esm/getWeeksInMonth/index.d.ts new file mode 100644 index 00000000..e6ffaaaa --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonth } from 'date-fns' +export default getWeeksInMonth diff --git a/node_modules/date-fns/esm/getWeeksInMonth/index.js b/node_modules/date-fns/esm/getWeeksInMonth/index.js new file mode 100644 index 00000000..366172aa --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/index.js @@ -0,0 +1,36 @@ +import differenceInCalendarWeeks from "../differenceInCalendarWeeks/index.js"; +import lastDayOfMonth from "../lastDayOfMonth/index.js"; +import startOfMonth from "../startOfMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the number of calendar weeks + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +export default function getWeeksInMonth(date, options) { + requiredArgs(1, arguments); + return differenceInCalendarWeeks(lastDayOfMonth(date), startOfMonth(date), options) + 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getWeeksInMonth/index.js.flow b/node_modules/date-fns/esm/getWeeksInMonth/index.js.flow new file mode 100644 index 00000000..1115f28e --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/esm/getWeeksInMonth/package.json b/node_modules/date-fns/esm/getWeeksInMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getWeeksInMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getYear/index.d.ts b/node_modules/date-fns/esm/getYear/index.d.ts new file mode 100644 index 00000000..3ef8154a --- /dev/null +++ b/node_modules/date-fns/esm/getYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getYear } from 'date-fns' +export default getYear diff --git a/node_modules/date-fns/esm/getYear/index.js b/node_modules/date-fns/esm/getYear/index.js new file mode 100644 index 00000000..1ad1b3d9 --- /dev/null +++ b/node_modules/date-fns/esm/getYear/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the year + * @throws {TypeError} 1 argument required + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ + +export default function getYear(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getFullYear(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/getYear/index.js.flow b/node_modules/date-fns/esm/getYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/esm/getYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/esm/getYear/package.json b/node_modules/date-fns/esm/getYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/getYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToMilliseconds/index.d.ts b/node_modules/date-fns/esm/hoursToMilliseconds/index.d.ts new file mode 100644 index 00000000..ed24a0d6 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMilliseconds } from 'date-fns' +export default hoursToMilliseconds diff --git a/node_modules/date-fns/esm/hoursToMilliseconds/index.js b/node_modules/date-fns/esm/hoursToMilliseconds/index.js new file mode 100644 index 00000000..ae1842dc --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMilliseconds/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInHour } from "../constants/index.js"; +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted to milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ + +export default function hoursToMilliseconds(hours) { + requiredArgs(1, arguments); + return Math.floor(hours * millisecondsInHour); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToMilliseconds/index.js.flow b/node_modules/date-fns/esm/hoursToMilliseconds/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/esm/hoursToMilliseconds/package.json b/node_modules/date-fns/esm/hoursToMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToMinutes/index.d.ts b/node_modules/date-fns/esm/hoursToMinutes/index.d.ts new file mode 100644 index 00000000..d0fbbbf4 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMinutes } from 'date-fns' +export default hoursToMinutes diff --git a/node_modules/date-fns/esm/hoursToMinutes/index.js b/node_modules/date-fns/esm/hoursToMinutes/index.js new file mode 100644 index 00000000..b905d980 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMinutes/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { minutesInHour } from "../constants/index.js"; +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ + +export default function hoursToMinutes(hours) { + requiredArgs(1, arguments); + return Math.floor(hours * minutesInHour); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToMinutes/index.js.flow b/node_modules/date-fns/esm/hoursToMinutes/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/esm/hoursToMinutes/package.json b/node_modules/date-fns/esm/hoursToMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToSeconds/index.d.ts b/node_modules/date-fns/esm/hoursToSeconds/index.d.ts new file mode 100644 index 00000000..8544afb7 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToSeconds } from 'date-fns' +export default hoursToSeconds diff --git a/node_modules/date-fns/esm/hoursToSeconds/index.js b/node_modules/date-fns/esm/hoursToSeconds/index.js new file mode 100644 index 00000000..0626f75b --- /dev/null +++ b/node_modules/date-fns/esm/hoursToSeconds/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { secondsInHour } from "../constants/index.js"; +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ + +export default function hoursToSeconds(hours) { + requiredArgs(1, arguments); + return Math.floor(hours * secondsInHour); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/hoursToSeconds/index.js.flow b/node_modules/date-fns/esm/hoursToSeconds/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/esm/hoursToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/esm/hoursToSeconds/package.json b/node_modules/date-fns/esm/hoursToSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/hoursToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/index.js b/node_modules/date-fns/esm/index.js new file mode 100755 index 00000000..6b43d448 --- /dev/null +++ b/node_modules/date-fns/esm/index.js @@ -0,0 +1,241 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. +export { default as add } from "./add/index.js"; +export { default as addBusinessDays } from "./addBusinessDays/index.js"; +export { default as addDays } from "./addDays/index.js"; +export { default as addHours } from "./addHours/index.js"; +export { default as addISOWeekYears } from "./addISOWeekYears/index.js"; +export { default as addMilliseconds } from "./addMilliseconds/index.js"; +export { default as addMinutes } from "./addMinutes/index.js"; +export { default as addMonths } from "./addMonths/index.js"; +export { default as addQuarters } from "./addQuarters/index.js"; +export { default as addSeconds } from "./addSeconds/index.js"; +export { default as addWeeks } from "./addWeeks/index.js"; +export { default as addYears } from "./addYears/index.js"; +export { default as areIntervalsOverlapping } from "./areIntervalsOverlapping/index.js"; +export { default as clamp } from "./clamp/index.js"; +export { default as closestIndexTo } from "./closestIndexTo/index.js"; +export { default as closestTo } from "./closestTo/index.js"; +export { default as compareAsc } from "./compareAsc/index.js"; +export { default as compareDesc } from "./compareDesc/index.js"; +export { default as daysToWeeks } from "./daysToWeeks/index.js"; +export { default as differenceInBusinessDays } from "./differenceInBusinessDays/index.js"; +export { default as differenceInCalendarDays } from "./differenceInCalendarDays/index.js"; +export { default as differenceInCalendarISOWeekYears } from "./differenceInCalendarISOWeekYears/index.js"; +export { default as differenceInCalendarISOWeeks } from "./differenceInCalendarISOWeeks/index.js"; +export { default as differenceInCalendarMonths } from "./differenceInCalendarMonths/index.js"; +export { default as differenceInCalendarQuarters } from "./differenceInCalendarQuarters/index.js"; +export { default as differenceInCalendarWeeks } from "./differenceInCalendarWeeks/index.js"; +export { default as differenceInCalendarYears } from "./differenceInCalendarYears/index.js"; +export { default as differenceInDays } from "./differenceInDays/index.js"; +export { default as differenceInHours } from "./differenceInHours/index.js"; +export { default as differenceInISOWeekYears } from "./differenceInISOWeekYears/index.js"; +export { default as differenceInMilliseconds } from "./differenceInMilliseconds/index.js"; +export { default as differenceInMinutes } from "./differenceInMinutes/index.js"; +export { default as differenceInMonths } from "./differenceInMonths/index.js"; +export { default as differenceInQuarters } from "./differenceInQuarters/index.js"; +export { default as differenceInSeconds } from "./differenceInSeconds/index.js"; +export { default as differenceInWeeks } from "./differenceInWeeks/index.js"; +export { default as differenceInYears } from "./differenceInYears/index.js"; +export { default as eachDayOfInterval } from "./eachDayOfInterval/index.js"; +export { default as eachHourOfInterval } from "./eachHourOfInterval/index.js"; +export { default as eachMinuteOfInterval } from "./eachMinuteOfInterval/index.js"; +export { default as eachMonthOfInterval } from "./eachMonthOfInterval/index.js"; +export { default as eachQuarterOfInterval } from "./eachQuarterOfInterval/index.js"; +export { default as eachWeekOfInterval } from "./eachWeekOfInterval/index.js"; +export { default as eachWeekendOfInterval } from "./eachWeekendOfInterval/index.js"; +export { default as eachWeekendOfMonth } from "./eachWeekendOfMonth/index.js"; +export { default as eachWeekendOfYear } from "./eachWeekendOfYear/index.js"; +export { default as eachYearOfInterval } from "./eachYearOfInterval/index.js"; +export { default as endOfDay } from "./endOfDay/index.js"; +export { default as endOfDecade } from "./endOfDecade/index.js"; +export { default as endOfHour } from "./endOfHour/index.js"; +export { default as endOfISOWeek } from "./endOfISOWeek/index.js"; +export { default as endOfISOWeekYear } from "./endOfISOWeekYear/index.js"; +export { default as endOfMinute } from "./endOfMinute/index.js"; +export { default as endOfMonth } from "./endOfMonth/index.js"; +export { default as endOfQuarter } from "./endOfQuarter/index.js"; +export { default as endOfSecond } from "./endOfSecond/index.js"; +export { default as endOfToday } from "./endOfToday/index.js"; +export { default as endOfTomorrow } from "./endOfTomorrow/index.js"; +export { default as endOfWeek } from "./endOfWeek/index.js"; +export { default as endOfYear } from "./endOfYear/index.js"; +export { default as endOfYesterday } from "./endOfYesterday/index.js"; +export { default as format } from "./format/index.js"; +export { default as formatDistance } from "./formatDistance/index.js"; +export { default as formatDistanceStrict } from "./formatDistanceStrict/index.js"; +export { default as formatDistanceToNow } from "./formatDistanceToNow/index.js"; +export { default as formatDistanceToNowStrict } from "./formatDistanceToNowStrict/index.js"; +export { default as formatDuration } from "./formatDuration/index.js"; +export { default as formatISO } from "./formatISO/index.js"; +export { default as formatISO9075 } from "./formatISO9075/index.js"; +export { default as formatISODuration } from "./formatISODuration/index.js"; +export { default as formatRFC3339 } from "./formatRFC3339/index.js"; +export { default as formatRFC7231 } from "./formatRFC7231/index.js"; +export { default as formatRelative } from "./formatRelative/index.js"; +export { default as fromUnixTime } from "./fromUnixTime/index.js"; +export { default as getDate } from "./getDate/index.js"; +export { default as getDay } from "./getDay/index.js"; +export { default as getDayOfYear } from "./getDayOfYear/index.js"; +export { default as getDaysInMonth } from "./getDaysInMonth/index.js"; +export { default as getDaysInYear } from "./getDaysInYear/index.js"; +export { default as getDecade } from "./getDecade/index.js"; +export { default as getDefaultOptions } from "./getDefaultOptions/index.js"; +export { default as getHours } from "./getHours/index.js"; +export { default as getISODay } from "./getISODay/index.js"; +export { default as getISOWeek } from "./getISOWeek/index.js"; +export { default as getISOWeekYear } from "./getISOWeekYear/index.js"; +export { default as getISOWeeksInYear } from "./getISOWeeksInYear/index.js"; +export { default as getMilliseconds } from "./getMilliseconds/index.js"; +export { default as getMinutes } from "./getMinutes/index.js"; +export { default as getMonth } from "./getMonth/index.js"; +export { default as getOverlappingDaysInIntervals } from "./getOverlappingDaysInIntervals/index.js"; +export { default as getQuarter } from "./getQuarter/index.js"; +export { default as getSeconds } from "./getSeconds/index.js"; +export { default as getTime } from "./getTime/index.js"; +export { default as getUnixTime } from "./getUnixTime/index.js"; +export { default as getWeek } from "./getWeek/index.js"; +export { default as getWeekOfMonth } from "./getWeekOfMonth/index.js"; +export { default as getWeekYear } from "./getWeekYear/index.js"; +export { default as getWeeksInMonth } from "./getWeeksInMonth/index.js"; +export { default as getYear } from "./getYear/index.js"; +export { default as hoursToMilliseconds } from "./hoursToMilliseconds/index.js"; +export { default as hoursToMinutes } from "./hoursToMinutes/index.js"; +export { default as hoursToSeconds } from "./hoursToSeconds/index.js"; +export { default as intervalToDuration } from "./intervalToDuration/index.js"; +export { default as intlFormat } from "./intlFormat/index.js"; +export { default as intlFormatDistance } from "./intlFormatDistance/index.js"; +export { default as isAfter } from "./isAfter/index.js"; +export { default as isBefore } from "./isBefore/index.js"; +export { default as isDate } from "./isDate/index.js"; +export { default as isEqual } from "./isEqual/index.js"; +export { default as isExists } from "./isExists/index.js"; +export { default as isFirstDayOfMonth } from "./isFirstDayOfMonth/index.js"; +export { default as isFriday } from "./isFriday/index.js"; +export { default as isFuture } from "./isFuture/index.js"; +export { default as isLastDayOfMonth } from "./isLastDayOfMonth/index.js"; +export { default as isLeapYear } from "./isLeapYear/index.js"; +export { default as isMatch } from "./isMatch/index.js"; +export { default as isMonday } from "./isMonday/index.js"; +export { default as isPast } from "./isPast/index.js"; +export { default as isSameDay } from "./isSameDay/index.js"; +export { default as isSameHour } from "./isSameHour/index.js"; +export { default as isSameISOWeek } from "./isSameISOWeek/index.js"; +export { default as isSameISOWeekYear } from "./isSameISOWeekYear/index.js"; +export { default as isSameMinute } from "./isSameMinute/index.js"; +export { default as isSameMonth } from "./isSameMonth/index.js"; +export { default as isSameQuarter } from "./isSameQuarter/index.js"; +export { default as isSameSecond } from "./isSameSecond/index.js"; +export { default as isSameWeek } from "./isSameWeek/index.js"; +export { default as isSameYear } from "./isSameYear/index.js"; +export { default as isSaturday } from "./isSaturday/index.js"; +export { default as isSunday } from "./isSunday/index.js"; +export { default as isThisHour } from "./isThisHour/index.js"; +export { default as isThisISOWeek } from "./isThisISOWeek/index.js"; +export { default as isThisMinute } from "./isThisMinute/index.js"; +export { default as isThisMonth } from "./isThisMonth/index.js"; +export { default as isThisQuarter } from "./isThisQuarter/index.js"; +export { default as isThisSecond } from "./isThisSecond/index.js"; +export { default as isThisWeek } from "./isThisWeek/index.js"; +export { default as isThisYear } from "./isThisYear/index.js"; +export { default as isThursday } from "./isThursday/index.js"; +export { default as isToday } from "./isToday/index.js"; +export { default as isTomorrow } from "./isTomorrow/index.js"; +export { default as isTuesday } from "./isTuesday/index.js"; +export { default as isValid } from "./isValid/index.js"; +export { default as isWednesday } from "./isWednesday/index.js"; +export { default as isWeekend } from "./isWeekend/index.js"; +export { default as isWithinInterval } from "./isWithinInterval/index.js"; +export { default as isYesterday } from "./isYesterday/index.js"; +export { default as lastDayOfDecade } from "./lastDayOfDecade/index.js"; +export { default as lastDayOfISOWeek } from "./lastDayOfISOWeek/index.js"; +export { default as lastDayOfISOWeekYear } from "./lastDayOfISOWeekYear/index.js"; +export { default as lastDayOfMonth } from "./lastDayOfMonth/index.js"; +export { default as lastDayOfQuarter } from "./lastDayOfQuarter/index.js"; +export { default as lastDayOfWeek } from "./lastDayOfWeek/index.js"; +export { default as lastDayOfYear } from "./lastDayOfYear/index.js"; +export { default as lightFormat } from "./lightFormat/index.js"; +export { default as max } from "./max/index.js"; +export { default as milliseconds } from "./milliseconds/index.js"; +export { default as millisecondsToHours } from "./millisecondsToHours/index.js"; +export { default as millisecondsToMinutes } from "./millisecondsToMinutes/index.js"; +export { default as millisecondsToSeconds } from "./millisecondsToSeconds/index.js"; +export { default as min } from "./min/index.js"; +export { default as minutesToHours } from "./minutesToHours/index.js"; +export { default as minutesToMilliseconds } from "./minutesToMilliseconds/index.js"; +export { default as minutesToSeconds } from "./minutesToSeconds/index.js"; +export { default as monthsToQuarters } from "./monthsToQuarters/index.js"; +export { default as monthsToYears } from "./monthsToYears/index.js"; +export { default as nextDay } from "./nextDay/index.js"; +export { default as nextFriday } from "./nextFriday/index.js"; +export { default as nextMonday } from "./nextMonday/index.js"; +export { default as nextSaturday } from "./nextSaturday/index.js"; +export { default as nextSunday } from "./nextSunday/index.js"; +export { default as nextThursday } from "./nextThursday/index.js"; +export { default as nextTuesday } from "./nextTuesday/index.js"; +export { default as nextWednesday } from "./nextWednesday/index.js"; +export { default as parse } from "./parse/index.js"; +export { default as parseISO } from "./parseISO/index.js"; +export { default as parseJSON } from "./parseJSON/index.js"; +export { default as previousDay } from "./previousDay/index.js"; +export { default as previousFriday } from "./previousFriday/index.js"; +export { default as previousMonday } from "./previousMonday/index.js"; +export { default as previousSaturday } from "./previousSaturday/index.js"; +export { default as previousSunday } from "./previousSunday/index.js"; +export { default as previousThursday } from "./previousThursday/index.js"; +export { default as previousTuesday } from "./previousTuesday/index.js"; +export { default as previousWednesday } from "./previousWednesday/index.js"; +export { default as quartersToMonths } from "./quartersToMonths/index.js"; +export { default as quartersToYears } from "./quartersToYears/index.js"; +export { default as roundToNearestMinutes } from "./roundToNearestMinutes/index.js"; +export { default as secondsToHours } from "./secondsToHours/index.js"; +export { default as secondsToMilliseconds } from "./secondsToMilliseconds/index.js"; +export { default as secondsToMinutes } from "./secondsToMinutes/index.js"; +export { default as set } from "./set/index.js"; +export { default as setDate } from "./setDate/index.js"; +export { default as setDay } from "./setDay/index.js"; +export { default as setDayOfYear } from "./setDayOfYear/index.js"; +export { default as setDefaultOptions } from "./setDefaultOptions/index.js"; +export { default as setHours } from "./setHours/index.js"; +export { default as setISODay } from "./setISODay/index.js"; +export { default as setISOWeek } from "./setISOWeek/index.js"; +export { default as setISOWeekYear } from "./setISOWeekYear/index.js"; +export { default as setMilliseconds } from "./setMilliseconds/index.js"; +export { default as setMinutes } from "./setMinutes/index.js"; +export { default as setMonth } from "./setMonth/index.js"; +export { default as setQuarter } from "./setQuarter/index.js"; +export { default as setSeconds } from "./setSeconds/index.js"; +export { default as setWeek } from "./setWeek/index.js"; +export { default as setWeekYear } from "./setWeekYear/index.js"; +export { default as setYear } from "./setYear/index.js"; +export { default as startOfDay } from "./startOfDay/index.js"; +export { default as startOfDecade } from "./startOfDecade/index.js"; +export { default as startOfHour } from "./startOfHour/index.js"; +export { default as startOfISOWeek } from "./startOfISOWeek/index.js"; +export { default as startOfISOWeekYear } from "./startOfISOWeekYear/index.js"; +export { default as startOfMinute } from "./startOfMinute/index.js"; +export { default as startOfMonth } from "./startOfMonth/index.js"; +export { default as startOfQuarter } from "./startOfQuarter/index.js"; +export { default as startOfSecond } from "./startOfSecond/index.js"; +export { default as startOfToday } from "./startOfToday/index.js"; +export { default as startOfTomorrow } from "./startOfTomorrow/index.js"; +export { default as startOfWeek } from "./startOfWeek/index.js"; +export { default as startOfWeekYear } from "./startOfWeekYear/index.js"; +export { default as startOfYear } from "./startOfYear/index.js"; +export { default as startOfYesterday } from "./startOfYesterday/index.js"; +export { default as sub } from "./sub/index.js"; +export { default as subBusinessDays } from "./subBusinessDays/index.js"; +export { default as subDays } from "./subDays/index.js"; +export { default as subHours } from "./subHours/index.js"; +export { default as subISOWeekYears } from "./subISOWeekYears/index.js"; +export { default as subMilliseconds } from "./subMilliseconds/index.js"; +export { default as subMinutes } from "./subMinutes/index.js"; +export { default as subMonths } from "./subMonths/index.js"; +export { default as subQuarters } from "./subQuarters/index.js"; +export { default as subSeconds } from "./subSeconds/index.js"; +export { default as subWeeks } from "./subWeeks/index.js"; +export { default as subYears } from "./subYears/index.js"; +export { default as toDate } from "./toDate/index.js"; +export { default as weeksToDays } from "./weeksToDays/index.js"; +export { default as yearsToMonths } from "./yearsToMonths/index.js"; +export { default as yearsToQuarters } from "./yearsToQuarters/index.js"; +export * from "./constants/index.js"; \ No newline at end of file diff --git a/node_modules/date-fns/esm/index.js.flow b/node_modules/date-fns/esm/index.js.flow new file mode 100644 index 00000000..b9cfcbf3 --- /dev/null +++ b/node_modules/date-fns/esm/index.js.flow @@ -0,0 +1,926 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: { + add: (date: Date | number, duration: Duration) => Date, + + addBusinessDays: (date: Date | number, amount: number) => Date, + + addDays: (date: Date | number, amount: number) => Date, + + addHours: (date: Date | number, amount: number) => Date, + + addISOWeekYears: (date: Date | number, amount: number) => Date, + + addMilliseconds: (date: Date | number, amount: number) => Date, + + addMinutes: (date: Date | number, amount: number) => Date, + + addMonths: (date: Date | number, amount: number) => Date, + + addQuarters: (date: Date | number, amount: number) => Date, + + addSeconds: (date: Date | number, amount: number) => Date, + + addWeeks: (date: Date | number, amount: number) => Date, + + addYears: (date: Date | number, amount: number) => Date, + + areIntervalsOverlapping: ( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean, + } + ) => boolean, + + clamp: (date: Date | number, interval: Interval) => Date, + + closestIndexTo: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ) => ?number, + + closestTo: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ) => ?Date, + + compareAsc: (dateLeft: Date | number, dateRight: Date | number) => number, + + compareDesc: (dateLeft: Date | number, dateRight: Date | number) => number, + + daysToWeeks: (days: number) => number, + + differenceInBusinessDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarISOWeeks: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarQuarters: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarWeeks: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + differenceInCalendarYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInHours: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMilliseconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMinutes: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInQuarters: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInSeconds: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInWeeks: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + eachDayOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachHourOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachMinuteOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachMonthOfInterval: (interval: Interval) => Date[], + + eachQuarterOfInterval: (interval: Interval) => Date[], + + eachWeekendOfInterval: (interval: Interval) => Date[], + + eachWeekendOfMonth: (date: Date | number) => Date[], + + eachWeekendOfYear: (date: Date | number) => Date[], + + eachWeekOfInterval: ( + interval: Interval, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date[], + + eachYearOfInterval: (interval: Interval) => Date[], + + endOfDay: (date: Date | number) => Date, + + endOfDecade: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + endOfHour: (date: Date | number) => Date, + + endOfISOWeek: (date: Date | number) => Date, + + endOfISOWeekYear: (date: Date | number) => Date, + + endOfMinute: (date: Date | number) => Date, + + endOfMonth: (date: Date | number) => Date, + + endOfQuarter: (date: Date | number) => Date, + + endOfSecond: (date: Date | number) => Date, + + endOfToday: () => Date, + + endOfTomorrow: () => Date, + + endOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + endOfYear: (date: Date | number) => Date, + + endOfYesterday: () => Date, + + format: ( + date: Date | number, + format: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: number, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => string, + + formatDistance: ( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } + ) => string, + + formatDistanceStrict: ( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } + ) => string, + + formatDistanceToNow: ( + date: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } + ) => string, + + formatDistanceToNowStrict: ( + date: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } + ) => string, + + formatDuration: ( + duration: Duration, + options?: { + format?: string[], + zero?: boolean, + delimiter?: string, + locale?: Locale, + } + ) => string, + + formatISO: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } + ) => string, + + formatISO9075: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } + ) => string, + + formatISODuration: (duration: Duration) => string, + + formatRelative: ( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => string, + + formatRFC3339: ( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3, + } + ) => string, + + formatRFC7231: (date: Date | number) => string, + + fromUnixTime: (unixTime: number) => Date, + + getDate: (date: Date | number) => number, + + getDay: (date: Date | number) => 0 | 1 | 2 | 3 | 4 | 5 | 6, + + getDayOfYear: (date: Date | number) => number, + + getDaysInMonth: (date: Date | number) => number, + + getDaysInYear: (date: Date | number) => number, + + getDecade: (date: Date | number) => number, + + getDefaultOptions: () => Object, + + getHours: (date: Date | number) => number, + + getISODay: (date: Date | number) => number, + + getISOWeek: (date: Date | number) => number, + + getISOWeeksInYear: (date: Date | number) => number, + + getISOWeekYear: (date: Date | number) => number, + + getMilliseconds: (date: Date | number) => number, + + getMinutes: (date: Date | number) => number, + + getMonth: (date: Date | number) => number, + + getOverlappingDaysInIntervals: ( + intervalLeft: Interval, + intervalRight: Interval + ) => number, + + getQuarter: (date: Date | number) => number, + + getSeconds: (date: Date | number) => number, + + getTime: (date: Date | number) => number, + + getUnixTime: (date: Date | number) => number, + + getWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => number, + + getWeekOfMonth: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + getWeeksInMonth: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + getWeekYear: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => number, + + getYear: (date: Date | number) => number, + + hoursToMilliseconds: (hours: number) => number, + + hoursToMinutes: (hours: number) => number, + + hoursToSeconds: (hours: number) => number, + + intervalToDuration: (interval: Interval) => Duration, + + intlFormat: ( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit', + weekday?: 'narrow' | 'short' | 'long', + era?: 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + day?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + second?: 'numeric' | '2-digit', + timeZoneName?: 'short' | 'long', + formatMatcher?: 'basic' | 'best fit', + hour12?: boolean, + timeZone?: string, + }, + localeOptions?: { + locale?: string | string[], + } + ) => string, + + intlFormatDistance: ( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string, + locale?: string | string[], + localeMatcher?: string, + numeric?: string, + style?: string, + } + ) => string, + + isAfter: (date: Date | number, dateToCompare: Date | number) => boolean, + + isBefore: (date: Date | number, dateToCompare: Date | number) => boolean, + + isDate: (value: any) => boolean, + + isEqual: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isExists: (year: number, month: number, day: number) => boolean, + + isFirstDayOfMonth: (date: Date | number) => boolean, + + isFriday: (date: Date | number) => boolean, + + isFuture: (date: Date | number) => boolean, + + isLastDayOfMonth: (date: Date | number) => boolean, + + isLeapYear: (date: Date | number) => boolean, + + isMatch: ( + dateString: string, + formatString: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => boolean, + + isMonday: (date: Date | number) => boolean, + + isPast: (date: Date | number) => boolean, + + isSameDay: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameHour: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameISOWeek: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameISOWeekYear: ( + dateLeft: Date | number, + dateRight: Date | number + ) => boolean, + + isSameMinute: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameMonth: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameQuarter: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameSecond: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameWeek: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => boolean, + + isSameYear: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSaturday: (date: Date | number) => boolean, + + isSunday: (date: Date | number) => boolean, + + isThisHour: (date: Date | number) => boolean, + + isThisISOWeek: (date: Date | number) => boolean, + + isThisMinute: (date: Date | number) => boolean, + + isThisMonth: (date: Date | number) => boolean, + + isThisQuarter: (date: Date | number) => boolean, + + isThisSecond: (date: Date | number) => boolean, + + isThisWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => boolean, + + isThisYear: (date: Date | number) => boolean, + + isThursday: (date: Date | number) => boolean, + + isToday: (date: Date | number) => boolean, + + isTomorrow: (date: Date | number) => boolean, + + isTuesday: (date: Date | number) => boolean, + + isValid: (date: any) => boolean, + + isWednesday: (date: Date | number) => boolean, + + isWeekend: (date: Date | number) => boolean, + + isWithinInterval: (date: Date | number, interval: Interval) => boolean, + + isYesterday: (date: Date | number) => boolean, + + lastDayOfDecade: (date: Date | number) => Date, + + lastDayOfISOWeek: (date: Date | number) => Date, + + lastDayOfISOWeekYear: (date: Date | number) => Date, + + lastDayOfMonth: (date: Date | number) => Date, + + lastDayOfQuarter: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + lastDayOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + lastDayOfYear: (date: Date | number) => Date, + + lightFormat: (date: Date | number, format: string) => string, + + max: (datesArray: (Date | number)[]) => Date, + + milliseconds: (duration: Duration) => number, + + millisecondsToHours: (milliseconds: number) => number, + + millisecondsToMinutes: (milliseconds: number) => number, + + millisecondsToSeconds: (milliseconds: number) => number, + + min: (datesArray: (Date | number)[]) => Date, + + minutesToHours: (minutes: number) => number, + + minutesToMilliseconds: (minutes: number) => number, + + minutesToSeconds: (minutes: number) => number, + + monthsToQuarters: (months: number) => number, + + monthsToYears: (months: number) => number, + + nextDay: (date: Date | number, day: Day) => Date, + + nextFriday: (date: Date | number) => Date, + + nextMonday: (date: Date | number) => Date, + + nextSaturday: (date: Date | number) => Date, + + nextSunday: (date: Date | number) => Date, + + nextThursday: (date: Date | number) => Date, + + nextTuesday: (date: Date | number) => Date, + + nextWednesday: (date: Date | number) => Date, + + parse: ( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => Date, + + parseISO: ( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + parseJSON: (argument: string | number | Date) => Date, + + previousDay: (date: Date | number, day: number) => Date, + + previousFriday: (date: Date | number) => Date, + + previousMonday: (date: Date | number) => Date, + + previousSaturday: (date: Date | number) => Date, + + previousSunday: (date: Date | number) => Date, + + previousThursday: (date: Date | number) => Date, + + previousTuesday: (date: Date | number) => Date, + + previousWednesday: (date: Date | number) => Date, + + quartersToMonths: (quarters: number) => number, + + quartersToYears: (quarters: number) => number, + + roundToNearestMinutes: ( + date: Date | number, + options?: { + nearestTo?: number, + roundingMethod?: string, + } + ) => Date, + + secondsToHours: (seconds: number) => number, + + secondsToMilliseconds: (seconds: number) => number, + + secondsToMinutes: (seconds: number) => number, + + set: ( + date: Date | number, + values: { + year?: number, + month?: number, + date?: number, + hours?: number, + minutes?: number, + seconds?: number, + milliseconds?: number, + } + ) => Date, + + setDate: (date: Date | number, dayOfMonth: number) => Date, + + setDay: ( + date: Date | number, + day: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + setDayOfYear: (date: Date | number, dayOfYear: number) => Date, + + setDefaultOptions: (newOptions: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }) => void, + + setHours: (date: Date | number, hours: number) => Date, + + setISODay: (date: Date | number, day: number) => Date, + + setISOWeek: (date: Date | number, isoWeek: number) => Date, + + setISOWeekYear: (date: Date | number, isoWeekYear: number) => Date, + + setMilliseconds: (date: Date | number, milliseconds: number) => Date, + + setMinutes: (date: Date | number, minutes: number) => Date, + + setMonth: (date: Date | number, month: number) => Date, + + setQuarter: (date: Date | number, quarter: number) => Date, + + setSeconds: (date: Date | number, seconds: number) => Date, + + setWeek: ( + date: Date | number, + week: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + setWeekYear: ( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + setYear: (date: Date | number, year: number) => Date, + + startOfDay: (date: Date | number) => Date, + + startOfDecade: (date: Date | number) => Date, + + startOfHour: (date: Date | number) => Date, + + startOfISOWeek: (date: Date | number) => Date, + + startOfISOWeekYear: (date: Date | number) => Date, + + startOfMinute: (date: Date | number) => Date, + + startOfMonth: (date: Date | number) => Date, + + startOfQuarter: (date: Date | number) => Date, + + startOfSecond: (date: Date | number) => Date, + + startOfToday: () => Date, + + startOfTomorrow: () => Date, + + startOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + startOfWeekYear: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + startOfYear: (date: Date | number) => Date, + + startOfYesterday: () => Date, + + sub: (date: Date | number, duration: Duration) => Date, + + subBusinessDays: (date: Date | number, amount: number) => Date, + + subDays: (date: Date | number, amount: number) => Date, + + subHours: (date: Date | number, amount: number) => Date, + + subISOWeekYears: (date: Date | number, amount: number) => Date, + + subMilliseconds: (date: Date | number, amount: number) => Date, + + subMinutes: (date: Date | number, amount: number) => Date, + + subMonths: (date: Date | number, amount: number) => Date, + + subQuarters: (date: Date | number, amount: number) => Date, + + subSeconds: (date: Date | number, amount: number) => Date, + + subWeeks: (date: Date | number, amount: number) => Date, + + subYears: (date: Date | number, amount: number) => Date, + + toDate: (argument: Date | number) => Date, + + weeksToDays: (weeks: number) => number, + + yearsToMonths: (years: number) => number, + + yearsToQuarters: (years: number) => number, + + daysInWeek: number, + + daysInYear: number, + + maxTime: number, + + millisecondsInMinute: number, + + millisecondsInHour: number, + + millisecondsInSecond: number, + + minTime: number, + + minutesInHour: number, + + monthsInQuarter: number, + + monthsInYear: number, + + quartersInYear: number, + + secondsInHour: number, + + secondsInMinute: number, + + secondsInDay: number, + + secondsInWeek: number, + + secondsInYear: number, + + secondsInMonth: number, + + secondsInQuarter: number, +} diff --git a/node_modules/date-fns/esm/intervalToDuration/index.d.ts b/node_modules/date-fns/esm/intervalToDuration/index.d.ts new file mode 100644 index 00000000..ce7bc762 --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intervalToDuration } from 'date-fns' +export default intervalToDuration diff --git a/node_modules/date-fns/esm/intervalToDuration/index.js b/node_modules/date-fns/esm/intervalToDuration/index.js new file mode 100644 index 00000000..eabb90fe --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/index.js @@ -0,0 +1,65 @@ +import compareAsc from "../compareAsc/index.js"; +import add from "../add/index.js"; +import differenceInDays from "../differenceInDays/index.js"; +import differenceInHours from "../differenceInHours/index.js"; +import differenceInMinutes from "../differenceInMinutes/index.js"; +import differenceInMonths from "../differenceInMonths/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import differenceInYears from "../differenceInYears/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert a interval object to a duration object. + * + * @param {Interval} interval - the interval to convert to duration + * + * @returns {Duration} The duration Object + * @throws {TypeError} Requires 2 arguments + * @throws {RangeError} `start` must not be Invalid Date + * @throws {RangeError} `end` must not be Invalid Date + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }) + * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ + +export default function intervalToDuration(interval) { + requiredArgs(1, arguments); + var start = toDate(interval.start); + var end = toDate(interval.end); + if (isNaN(start.getTime())) throw new RangeError('Start Date is invalid'); + if (isNaN(end.getTime())) throw new RangeError('End Date is invalid'); + var duration = {}; + duration.years = Math.abs(differenceInYears(end, start)); + var sign = compareAsc(end, start); + var remainingMonths = add(start, { + years: sign * duration.years + }); + duration.months = Math.abs(differenceInMonths(end, remainingMonths)); + var remainingDays = add(remainingMonths, { + months: sign * duration.months + }); + duration.days = Math.abs(differenceInDays(end, remainingDays)); + var remainingHours = add(remainingDays, { + days: sign * duration.days + }); + duration.hours = Math.abs(differenceInHours(end, remainingHours)); + var remainingMinutes = add(remainingHours, { + hours: sign * duration.hours + }); + duration.minutes = Math.abs(differenceInMinutes(end, remainingMinutes)); + var remainingSeconds = add(remainingMinutes, { + minutes: sign * duration.minutes + }); + duration.seconds = Math.abs(differenceInSeconds(end, remainingSeconds)); + return duration; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/intervalToDuration/index.js.flow b/node_modules/date-fns/esm/intervalToDuration/index.js.flow new file mode 100644 index 00000000..dbd61eec --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Duration diff --git a/node_modules/date-fns/esm/intervalToDuration/package.json b/node_modules/date-fns/esm/intervalToDuration/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/intervalToDuration/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/intlFormat/index.d.ts b/node_modules/date-fns/esm/intlFormat/index.d.ts new file mode 100644 index 00000000..fc29cf58 --- /dev/null +++ b/node_modules/date-fns/esm/intlFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormat } from 'date-fns' +export default intlFormat diff --git a/node_modules/date-fns/esm/intlFormat/index.js b/node_modules/date-fns/esm/intlFormat/index.js new file mode 100644 index 00000000..c357014c --- /dev/null +++ b/node_modules/date-fns/esm/intlFormat/index.js @@ -0,0 +1,90 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param {Date|Number} argument - the original date. + * @param {Object} [formatOptions] - an object with options. + * @param {'lookup'|'best fit'} [formatOptions.localeMatcher='best fit'] - locale selection algorithm. + * @param {'narrow'|'short'|'long'} [formatOptions.weekday] - representation the days of the week. + * @param {'narrow'|'short'|'long'} [formatOptions.era] - representation of eras. + * @param {'numeric'|'2-digit'} [formatOptions.year] - representation of years. + * @param {'numeric'|'2-digit'|'narrow'|'short'|'long'} [formatOptions.month='numeric'] - representation of month. + * @param {'numeric'|'2-digit'} [formatOptions.day='numeric'] - representation of day. + * @param {'numeric'|'2-digit'} [formatOptions.hour='numeric'] - representation of hours. + * @param {'numeric'|'2-digit'} [formatOptions.minute] - representation of minutes. + * @param {'numeric'|'2-digit'} [formatOptions.second] - representation of seconds. + * @param {'short'|'long'} [formatOptions.timeZoneName] - representation of names of time zones. + * @param {'basic'|'best fit'} [formatOptions.formatMatcher='best fit'] - format selection algorithm. + * @param {Boolean} [formatOptions.hour12] - determines whether to use 12-hour time format. + * @param {String} [formatOptions.timeZone] - the time zone to use. + * @param {Object} [localeOptions] - an object with locale. + * @param {String|String[]} [localeOptions.locale] - the locale code + * @returns {String} the formatted date string. + * @throws {TypeError} 1 argument required. + * @throws {RangeError} `date` must not be Invalid Date + * + * @example + * // Represent 10 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + * + * @example + * // Represent 10 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + * + * @example + * // Represent 10 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + * + * @example + * // Represent 10 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ +export default function intlFormat(date, formatOrLocale, localeOptions) { + var _localeOptions; + + requiredArgs(1, arguments); + var formatOptions; + + if (isFormatOptions(formatOrLocale)) { + formatOptions = formatOrLocale; + } else { + localeOptions = formatOrLocale; + } + + return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(date); +} + +function isFormatOptions(opts) { + return opts !== undefined && !('locale' in opts); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/intlFormat/index.js.flow b/node_modules/date-fns/esm/intlFormat/index.js.flow new file mode 100644 index 00000000..adc0bb4f --- /dev/null +++ b/node_modules/date-fns/esm/intlFormat/index.js.flow @@ -0,0 +1,72 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit', + weekday?: 'narrow' | 'short' | 'long', + era?: 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + day?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + second?: 'numeric' | '2-digit', + timeZoneName?: 'short' | 'long', + formatMatcher?: 'basic' | 'best fit', + hour12?: boolean, + timeZone?: string, + }, + localeOptions?: { + locale?: string | string[], + } +) => string diff --git a/node_modules/date-fns/esm/intlFormat/package.json b/node_modules/date-fns/esm/intlFormat/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/intlFormat/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/intlFormatDistance/index.d.ts b/node_modules/date-fns/esm/intlFormatDistance/index.d.ts new file mode 100644 index 00000000..fe2e15cf --- /dev/null +++ b/node_modules/date-fns/esm/intlFormatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistance } from 'date-fns' +export default intlFormatDistance diff --git a/node_modules/date-fns/esm/intlFormatDistance/index.js b/node_modules/date-fns/esm/intlFormatDistance/index.js new file mode 100644 index 00000000..e53fcb0c --- /dev/null +++ b/node_modules/date-fns/esm/intlFormatDistance/index.js @@ -0,0 +1,184 @@ +import { secondsInDay, secondsInHour, secondsInMinute, secondsInMonth, secondsInQuarter, secondsInWeek, secondsInYear } from "../constants/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import differenceInCalendarMonths from "../differenceInCalendarMonths/index.js"; +import differenceInCalendarQuarters from "../differenceInCalendarQuarters/index.js"; +import differenceInCalendarWeeks from "../differenceInCalendarWeeks/index.js"; +import differenceInCalendarYears from "../differenceInCalendarYears/index.js"; +import differenceInHours from "../differenceInHours/index.js"; +import differenceInMinutes from "../differenceInMinutes/index.js"; +import differenceInSeconds from "../differenceInSeconds/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * The function will pick the most appropriate unit depending on the distance between dates. For example, if the distance is a few hours, it might return `x hours`. If the distance is a few months, it might return `x months`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with. + * @param {Object} [options] - an object with options. + * @param {String} [options.unit] - formats the distance with the given unit ('year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second'). + * @param {String|String[]} [options.locale] - the locale to use. + * @param {String} [options.localeMatcher='best fit'] - the locale matching algorithm to use. Other value: 'lookup'. + * See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * @param {String} [options.numeric='auto'] - the output message format. The values are 'auto' (e.g. `yesterday`), 'always'(e.g. `1 day ago`). + * @param {String} [options.style='long'] - the length of the result. The values are: 'long' (e.g. `1 month`), 'short' (e.g. 'in 1 mo.'), 'narrow' (e.g. 'in 1 mo.'). + * The narrow one could be similar to the short one for some locales. + * @returns {String} the distance in words according to language-sensitive relative time formatting. + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.unit` must not be invalid Unit + * @throws {RangeError} `options.locale` must not be invalid locale + * @throws {RangeError} `options.localeMatcher` must not be invalid localeMatcher + * @throws {RangeError} `options.numeric` must not be invalid numeric + * @throws {RangeError} `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +export default function intlFormatDistance(date, baseDate, options) { + requiredArgs(2, arguments); + var value = 0; + var unit; + var dateLeft = toDate(date); + var dateRight = toDate(baseDate); + + if (!(options !== null && options !== void 0 && options.unit)) { + // Get the unit based on diffInSeconds calculations if no unit is specified + var diffInSeconds = differenceInSeconds(dateLeft, dateRight); // The smallest unit + + if (Math.abs(diffInSeconds) < secondsInMinute) { + value = differenceInSeconds(dateLeft, dateRight); + unit = 'second'; + } else if (Math.abs(diffInSeconds) < secondsInHour) { + value = differenceInMinutes(dateLeft, dateRight); + unit = 'minute'; + } else if (Math.abs(diffInSeconds) < secondsInDay && Math.abs(differenceInCalendarDays(dateLeft, dateRight)) < 1) { + value = differenceInHours(dateLeft, dateRight); + unit = 'hour'; + } else if (Math.abs(diffInSeconds) < secondsInWeek && (value = differenceInCalendarDays(dateLeft, dateRight)) && Math.abs(value) < 7) { + unit = 'day'; + } else if (Math.abs(diffInSeconds) < secondsInMonth) { + value = differenceInCalendarWeeks(dateLeft, dateRight); + unit = 'week'; + } else if (Math.abs(diffInSeconds) < secondsInQuarter) { + value = differenceInCalendarMonths(dateLeft, dateRight); + unit = 'month'; + } else if (Math.abs(diffInSeconds) < secondsInYear) { + if (differenceInCalendarQuarters(dateLeft, dateRight) < 4) { + // To filter out cases that are less than a year but match 4 quarters + value = differenceInCalendarQuarters(dateLeft, dateRight); + unit = 'quarter'; + } else { + value = differenceInCalendarYears(dateLeft, dateRight); + unit = 'year'; + } + } else { + value = differenceInCalendarYears(dateLeft, dateRight); + unit = 'year'; + } + } else { + // Get the value if unit is specified + unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'second') { + value = differenceInSeconds(dateLeft, dateRight); + } else if (unit === 'minute') { + value = differenceInMinutes(dateLeft, dateRight); + } else if (unit === 'hour') { + value = differenceInHours(dateLeft, dateRight); + } else if (unit === 'day') { + value = differenceInCalendarDays(dateLeft, dateRight); + } else if (unit === 'week') { + value = differenceInCalendarWeeks(dateLeft, dateRight); + } else if (unit === 'month') { + value = differenceInCalendarMonths(dateLeft, dateRight); + } else if (unit === 'quarter') { + value = differenceInCalendarQuarters(dateLeft, dateRight); + } else if (unit === 'year') { + value = differenceInCalendarYears(dateLeft, dateRight); + } + } + + var rtf = new Intl.RelativeTimeFormat(options === null || options === void 0 ? void 0 : options.locale, { + localeMatcher: options === null || options === void 0 ? void 0 : options.localeMatcher, + numeric: (options === null || options === void 0 ? void 0 : options.numeric) || 'auto', + style: options === null || options === void 0 ? void 0 : options.style + }); + return rtf.format(value, unit); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/intlFormatDistance/index.js.flow b/node_modules/date-fns/esm/intlFormatDistance/index.js.flow new file mode 100644 index 00000000..bea24df8 --- /dev/null +++ b/node_modules/date-fns/esm/intlFormatDistance/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string, + locale?: string | string[], + localeMatcher?: string, + numeric?: string, + style?: string, + } +) => string diff --git a/node_modules/date-fns/esm/intlFormatDistance/package.json b/node_modules/date-fns/esm/intlFormatDistance/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/intlFormatDistance/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isAfter/index.d.ts b/node_modules/date-fns/esm/isAfter/index.d.ts new file mode 100644 index 00000000..0ef024b3 --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isAfter } from 'date-fns' +export default isAfter diff --git a/node_modules/date-fns/esm/isAfter/index.js b/node_modules/date-fns/esm/isAfter/index.js new file mode 100644 index 00000000..53099ee9 --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param {Date|Number} date - the date that should be after the other one to return true + * @param {Date|Number} dateToCompare - the date to compare with + * @returns {Boolean} the first date is after the second date + * @throws {TypeError} 2 arguments required + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ + +export default function isAfter(dirtyDate, dirtyDateToCompare) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var dateToCompare = toDate(dirtyDateToCompare); + return date.getTime() > dateToCompare.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isAfter/index.js.flow b/node_modules/date-fns/esm/isAfter/index.js.flow new file mode 100644 index 00000000..3cb525c9 --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + dateToCompare: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isAfter/package.json b/node_modules/date-fns/esm/isAfter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isAfter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isBefore/index.d.ts b/node_modules/date-fns/esm/isBefore/index.d.ts new file mode 100644 index 00000000..127ed7ed --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isBefore } from 'date-fns' +export default isBefore diff --git a/node_modules/date-fns/esm/isBefore/index.js b/node_modules/date-fns/esm/isBefore/index.js new file mode 100644 index 00000000..339b5ccf --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param {Date|Number} date - the date that should be before the other one to return true + * @param {Date|Number} dateToCompare - the date to compare with + * @returns {Boolean} the first date is before the second date + * @throws {TypeError} 2 arguments required + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ + +export default function isBefore(dirtyDate, dirtyDateToCompare) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var dateToCompare = toDate(dirtyDateToCompare); + return date.getTime() < dateToCompare.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isBefore/index.js.flow b/node_modules/date-fns/esm/isBefore/index.js.flow new file mode 100644 index 00000000..3cb525c9 --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + dateToCompare: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isBefore/package.json b/node_modules/date-fns/esm/isBefore/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isBefore/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isDate/index.d.ts b/node_modules/date-fns/esm/isDate/index.d.ts new file mode 100644 index 00000000..518477ec --- /dev/null +++ b/node_modules/date-fns/esm/isDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isDate } from 'date-fns' +export default isDate diff --git a/node_modules/date-fns/esm/isDate/index.js b/node_modules/date-fns/esm/isDate/index.js new file mode 100644 index 00000000..e90a5ec3 --- /dev/null +++ b/node_modules/date-fns/esm/isDate/index.js @@ -0,0 +1,40 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param {*} value - the value to check + * @returns {boolean} true if the given value is a date + * @throws {TypeError} 1 arguments required + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ + +export default function isDate(value) { + requiredArgs(1, arguments); + return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]'; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isDate/index.js.flow b/node_modules/date-fns/esm/isDate/index.js.flow new file mode 100644 index 00000000..cc97d417 --- /dev/null +++ b/node_modules/date-fns/esm/isDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (value: any) => boolean diff --git a/node_modules/date-fns/esm/isDate/package.json b/node_modules/date-fns/esm/isDate/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isEqual/index.d.ts b/node_modules/date-fns/esm/isEqual/index.d.ts new file mode 100644 index 00000000..87865db6 --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isEqual } from 'date-fns' +export default isEqual diff --git a/node_modules/date-fns/esm/isEqual/index.js b/node_modules/date-fns/esm/isEqual/index.js new file mode 100644 index 00000000..7c08a18b --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/index.js @@ -0,0 +1,30 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Boolean} the dates are equal + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ + +export default function isEqual(dirtyLeftDate, dirtyRightDate) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyLeftDate); + var dateRight = toDate(dirtyRightDate); + return dateLeft.getTime() === dateRight.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isEqual/index.js.flow b/node_modules/date-fns/esm/isEqual/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isEqual/package.json b/node_modules/date-fns/esm/isEqual/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isEqual/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isExists/index.d.ts b/node_modules/date-fns/esm/isExists/index.d.ts new file mode 100644 index 00000000..af919bef --- /dev/null +++ b/node_modules/date-fns/esm/isExists/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isExists } from 'date-fns' +export default isExists diff --git a/node_modules/date-fns/esm/isExists/index.js b/node_modules/date-fns/esm/isExists/index.js new file mode 100644 index 00000000..0ae851f4 --- /dev/null +++ b/node_modules/date-fns/esm/isExists/index.js @@ -0,0 +1,32 @@ +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param {Number} year of the date to check + * @param {Number} month of the date to check + * @param {Number} day of the date to check + * @returns {Boolean} the date exists + * @throws {TypeError} 3 arguments required + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +export default function isExists(year, month, day) { + if (arguments.length < 3) { + throw new TypeError('3 argument required, but only ' + arguments.length + ' present'); + } + + var date = new Date(year, month, day); + return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isExists/index.js.flow b/node_modules/date-fns/esm/isExists/index.js.flow new file mode 100644 index 00000000..810828e0 --- /dev/null +++ b/node_modules/date-fns/esm/isExists/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (year: number, month: number, day: number) => boolean diff --git a/node_modules/date-fns/esm/isExists/package.json b/node_modules/date-fns/esm/isExists/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isExists/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFirstDayOfMonth/index.d.ts b/node_modules/date-fns/esm/isFirstDayOfMonth/index.d.ts new file mode 100644 index 00000000..6c1a3140 --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFirstDayOfMonth } from 'date-fns' +export default isFirstDayOfMonth diff --git a/node_modules/date-fns/esm/isFirstDayOfMonth/index.js b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js new file mode 100644 index 00000000..bb78d579 --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is the first day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ + +export default function isFirstDayOfMonth(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDate() === 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFirstDayOfMonth/index.js.flow b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isFirstDayOfMonth/package.json b/node_modules/date-fns/esm/isFirstDayOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isFirstDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFriday/index.d.ts b/node_modules/date-fns/esm/isFriday/index.d.ts new file mode 100644 index 00000000..17ac2ef8 --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFriday } from 'date-fns' +export default isFriday diff --git a/node_modules/date-fns/esm/isFriday/index.js b/node_modules/date-fns/esm/isFriday/index.js new file mode 100644 index 00000000..69eb739a --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Friday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ + +export default function isFriday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 5; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFriday/index.js.flow b/node_modules/date-fns/esm/isFriday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isFriday/package.json b/node_modules/date-fns/esm/isFriday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFuture/index.d.ts b/node_modules/date-fns/esm/isFuture/index.d.ts new file mode 100644 index 00000000..4cb82e8a --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFuture } from 'date-fns' +export default isFuture diff --git a/node_modules/date-fns/esm/isFuture/index.js b/node_modules/date-fns/esm/isFuture/index.js new file mode 100644 index 00000000..67cff91f --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/index.js @@ -0,0 +1,28 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the future + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ + +export default function isFuture(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getTime() > Date.now(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isFuture/index.js.flow b/node_modules/date-fns/esm/isFuture/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isFuture/package.json b/node_modules/date-fns/esm/isFuture/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isFuture/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isLastDayOfMonth/index.d.ts b/node_modules/date-fns/esm/isLastDayOfMonth/index.d.ts new file mode 100644 index 00000000..665cb7d7 --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLastDayOfMonth } from 'date-fns' +export default isLastDayOfMonth diff --git a/node_modules/date-fns/esm/isLastDayOfMonth/index.js b/node_modules/date-fns/esm/isLastDayOfMonth/index.js new file mode 100644 index 00000000..347e0f39 --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import endOfDay from "../endOfDay/index.js"; +import endOfMonth from "../endOfMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is the last day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ + +export default function isLastDayOfMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + return endOfDay(date).getTime() === endOfMonth(date).getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isLastDayOfMonth/index.js.flow b/node_modules/date-fns/esm/isLastDayOfMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isLastDayOfMonth/package.json b/node_modules/date-fns/esm/isLastDayOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isLastDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isLeapYear/index.d.ts b/node_modules/date-fns/esm/isLeapYear/index.d.ts new file mode 100644 index 00000000..c08ad8ab --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLeapYear } from 'date-fns' +export default isLeapYear diff --git a/node_modules/date-fns/esm/isLeapYear/index.js b/node_modules/date-fns/esm/isLeapYear/index.js new file mode 100644 index 00000000..1e6a0421 --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the leap year + * @throws {TypeError} 1 argument required + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ + +export default function isLeapYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isLeapYear/index.js.flow b/node_modules/date-fns/esm/isLeapYear/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isLeapYear/package.json b/node_modules/date-fns/esm/isLeapYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isLeapYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isMatch/index.d.ts b/node_modules/date-fns/esm/isMatch/index.d.ts new file mode 100644 index 00000000..e0c3fa5c --- /dev/null +++ b/node_modules/date-fns/esm/isMatch/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatch } from 'date-fns' +export default isMatch diff --git a/node_modules/date-fns/esm/isMatch/index.js b/node_modules/date-fns/esm/isMatch/index.js new file mode 100644 index 00000000..8666e9a8 --- /dev/null +++ b/node_modules/date-fns/esm/isMatch/index.js @@ -0,0 +1,300 @@ +import parse from "../parse/index.js"; +import isValid from "../isValid/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} + * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * + * + * @param {String} dateString - the date string to verify + * @param {String} formatString - the string of tokens + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {Boolean} + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} `options.locale` must contain `match` property + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +export default function isMatch(dateString, formatString, options) { + requiredArgs(2, arguments); + return isValid(parse(dateString, formatString, new Date(), options)); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isMatch/index.js.flow b/node_modules/date-fns/esm/isMatch/index.js.flow new file mode 100644 index 00000000..c27d35a5 --- /dev/null +++ b/node_modules/date-fns/esm/isMatch/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateString: string, + formatString: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => boolean diff --git a/node_modules/date-fns/esm/isMatch/package.json b/node_modules/date-fns/esm/isMatch/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isMatch/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isMonday/index.d.ts b/node_modules/date-fns/esm/isMonday/index.d.ts new file mode 100644 index 00000000..dee60ac0 --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMonday } from 'date-fns' +export default isMonday diff --git a/node_modules/date-fns/esm/isMonday/index.js b/node_modules/date-fns/esm/isMonday/index.js new file mode 100644 index 00000000..925bdd1e --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Monday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ + +export default function isMonday(date) { + requiredArgs(1, arguments); + return toDate(date).getDay() === 1; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isMonday/index.js.flow b/node_modules/date-fns/esm/isMonday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isMonday/package.json b/node_modules/date-fns/esm/isMonday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isPast/index.d.ts b/node_modules/date-fns/esm/isPast/index.d.ts new file mode 100644 index 00000000..8ae92ca7 --- /dev/null +++ b/node_modules/date-fns/esm/isPast/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isPast } from 'date-fns' +export default isPast diff --git a/node_modules/date-fns/esm/isPast/index.js b/node_modules/date-fns/esm/isPast/index.js new file mode 100644 index 00000000..2bcc1bae --- /dev/null +++ b/node_modules/date-fns/esm/isPast/index.js @@ -0,0 +1,28 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the past + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ + +export default function isPast(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getTime() < Date.now(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isPast/index.js.flow b/node_modules/date-fns/esm/isPast/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isPast/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isPast/package.json b/node_modules/date-fns/esm/isPast/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isPast/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameDay/index.d.ts b/node_modules/date-fns/esm/isSameDay/index.d.ts new file mode 100644 index 00000000..c4c2d554 --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameDay } from 'date-fns' +export default isSameDay diff --git a/node_modules/date-fns/esm/isSameDay/index.js b/node_modules/date-fns/esm/isSameDay/index.js new file mode 100644 index 00000000..68af822d --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/index.js @@ -0,0 +1,37 @@ +import startOfDay from "../startOfDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same day (and year and month) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ + +export default function isSameDay(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfDay = startOfDay(dirtyDateLeft); + var dateRightStartOfDay = startOfDay(dirtyDateRight); + return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameDay/index.js.flow b/node_modules/date-fns/esm/isSameDay/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameDay/package.json b/node_modules/date-fns/esm/isSameDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameHour/index.d.ts b/node_modules/date-fns/esm/isSameHour/index.d.ts new file mode 100644 index 00000000..78d46622 --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameHour } from 'date-fns' +export default isSameHour diff --git a/node_modules/date-fns/esm/isSameHour/index.js b/node_modules/date-fns/esm/isSameHour/index.js new file mode 100644 index 00000000..6367eed4 --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/index.js @@ -0,0 +1,32 @@ +import startOfHour from "../startOfHour/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same hour (and same day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ + +export default function isSameHour(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfHour = startOfHour(dirtyDateLeft); + var dateRightStartOfHour = startOfHour(dirtyDateRight); + return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameHour/index.js.flow b/node_modules/date-fns/esm/isSameHour/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameHour/package.json b/node_modules/date-fns/esm/isSameHour/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameISOWeek/index.d.ts b/node_modules/date-fns/esm/isSameISOWeek/index.d.ts new file mode 100644 index 00000000..566ed8b0 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeek } from 'date-fns' +export default isSameISOWeek diff --git a/node_modules/date-fns/esm/isSameISOWeek/index.js b/node_modules/date-fns/esm/isSameISOWeek/index.js new file mode 100644 index 00000000..8ca5d6ba --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/index.js @@ -0,0 +1,34 @@ +import isSameWeek from "../isSameWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same ISO week (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ + +export default function isSameISOWeek(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + return isSameWeek(dirtyDateLeft, dirtyDateRight, { + weekStartsOn: 1 + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameISOWeek/index.js.flow b/node_modules/date-fns/esm/isSameISOWeek/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameISOWeek/package.json b/node_modules/date-fns/esm/isSameISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameISOWeekYear/index.d.ts b/node_modules/date-fns/esm/isSameISOWeekYear/index.d.ts new file mode 100644 index 00000000..e7960922 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeekYear } from 'date-fns' +export default isSameISOWeekYear diff --git a/node_modules/date-fns/esm/isSameISOWeekYear/index.js b/node_modules/date-fns/esm/isSameISOWeekYear/index.js new file mode 100644 index 00000000..3f885534 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/index.js @@ -0,0 +1,29 @@ +import startOfISOWeekYear from "../startOfISOWeekYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same ISO week-numbering year + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ + +export default function isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfYear = startOfISOWeekYear(dirtyDateLeft); + var dateRightStartOfYear = startOfISOWeekYear(dirtyDateRight); + return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameISOWeekYear/index.js.flow b/node_modules/date-fns/esm/isSameISOWeekYear/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameISOWeekYear/package.json b/node_modules/date-fns/esm/isSameISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameMinute/index.d.ts b/node_modules/date-fns/esm/isSameMinute/index.d.ts new file mode 100644 index 00000000..c26acefe --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMinute } from 'date-fns' +export default isSameMinute diff --git a/node_modules/date-fns/esm/isSameMinute/index.js b/node_modules/date-fns/esm/isSameMinute/index.js new file mode 100644 index 00000000..6566eda3 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/index.js @@ -0,0 +1,38 @@ +import startOfMinute from "../startOfMinute/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same minute (and hour and day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ + +export default function isSameMinute(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfMinute = startOfMinute(dirtyDateLeft); + var dateRightStartOfMinute = startOfMinute(dirtyDateRight); + return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameMinute/index.js.flow b/node_modules/date-fns/esm/isSameMinute/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameMinute/package.json b/node_modules/date-fns/esm/isSameMinute/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameMonth/index.d.ts b/node_modules/date-fns/esm/isSameMonth/index.d.ts new file mode 100644 index 00000000..bd0e8868 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMonth } from 'date-fns' +export default isSameMonth diff --git a/node_modules/date-fns/esm/isSameMonth/index.js b/node_modules/date-fns/esm/isSameMonth/index.js new file mode 100644 index 00000000..bca7e818 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/index.js @@ -0,0 +1,32 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same month (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ + +export default function isSameMonth(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameMonth/index.js.flow b/node_modules/date-fns/esm/isSameMonth/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameMonth/package.json b/node_modules/date-fns/esm/isSameMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameQuarter/index.d.ts b/node_modules/date-fns/esm/isSameQuarter/index.d.ts new file mode 100644 index 00000000..584660aa --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameQuarter } from 'date-fns' +export default isSameQuarter diff --git a/node_modules/date-fns/esm/isSameQuarter/index.js b/node_modules/date-fns/esm/isSameQuarter/index.js new file mode 100644 index 00000000..fe615ad8 --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/index.js @@ -0,0 +1,32 @@ +import startOfQuarter from "../startOfQuarter/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same quarter (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ + +export default function isSameQuarter(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfQuarter = startOfQuarter(dirtyDateLeft); + var dateRightStartOfQuarter = startOfQuarter(dirtyDateRight); + return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameQuarter/index.js.flow b/node_modules/date-fns/esm/isSameQuarter/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameQuarter/package.json b/node_modules/date-fns/esm/isSameQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameSecond/index.d.ts b/node_modules/date-fns/esm/isSameSecond/index.d.ts new file mode 100644 index 00000000..982464e3 --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameSecond } from 'date-fns' +export default isSameSecond diff --git a/node_modules/date-fns/esm/isSameSecond/index.js b/node_modules/date-fns/esm/isSameSecond/index.js new file mode 100644 index 00000000..72d39fc8 --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/index.js @@ -0,0 +1,46 @@ +import startOfSecond from "../startOfSecond/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same second (and hour and day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ + +export default function isSameSecond(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeftStartOfSecond = startOfSecond(dirtyDateLeft); + var dateRightStartOfSecond = startOfSecond(dirtyDateRight); + return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameSecond/index.js.flow b/node_modules/date-fns/esm/isSameSecond/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameSecond/package.json b/node_modules/date-fns/esm/isSameSecond/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameWeek/index.d.ts b/node_modules/date-fns/esm/isSameWeek/index.d.ts new file mode 100644 index 00000000..b27f5f66 --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeek } from 'date-fns' +export default isSameWeek diff --git a/node_modules/date-fns/esm/isSameWeek/index.js b/node_modules/date-fns/esm/isSameWeek/index.js new file mode 100644 index 00000000..581c7be9 --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/index.js @@ -0,0 +1,44 @@ +import startOfWeek from "../startOfWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Boolean} the dates are in the same week (and month and year) + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +export default function isSameWeek(dirtyDateLeft, dirtyDateRight, options) { + requiredArgs(2, arguments); + var dateLeftStartOfWeek = startOfWeek(dirtyDateLeft, options); + var dateRightStartOfWeek = startOfWeek(dirtyDateRight, options); + return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameWeek/index.js.flow b/node_modules/date-fns/esm/isSameWeek/index.js.flow new file mode 100644 index 00000000..2ba3f16c --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => boolean diff --git a/node_modules/date-fns/esm/isSameWeek/package.json b/node_modules/date-fns/esm/isSameWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameYear/index.d.ts b/node_modules/date-fns/esm/isSameYear/index.d.ts new file mode 100644 index 00000000..c729e19a --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameYear } from 'date-fns' +export default isSameYear diff --git a/node_modules/date-fns/esm/isSameYear/index.js b/node_modules/date-fns/esm/isSameYear/index.js new file mode 100644 index 00000000..2698d18a --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same year + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ + +export default function isSameYear(dirtyDateLeft, dirtyDateRight) { + requiredArgs(2, arguments); + var dateLeft = toDate(dirtyDateLeft); + var dateRight = toDate(dirtyDateRight); + return dateLeft.getFullYear() === dateRight.getFullYear(); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSameYear/index.js.flow b/node_modules/date-fns/esm/isSameYear/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/esm/isSameYear/package.json b/node_modules/date-fns/esm/isSameYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSameYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSaturday/index.d.ts b/node_modules/date-fns/esm/isSaturday/index.d.ts new file mode 100644 index 00000000..ac5ccb38 --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSaturday } from 'date-fns' +export default isSaturday diff --git a/node_modules/date-fns/esm/isSaturday/index.js b/node_modules/date-fns/esm/isSaturday/index.js new file mode 100644 index 00000000..38acecc4 --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ + +export default function isSaturday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 6; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSaturday/index.js.flow b/node_modules/date-fns/esm/isSaturday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isSaturday/package.json b/node_modules/date-fns/esm/isSaturday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSunday/index.d.ts b/node_modules/date-fns/esm/isSunday/index.d.ts new file mode 100644 index 00000000..5830086b --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSunday } from 'date-fns' +export default isSunday diff --git a/node_modules/date-fns/esm/isSunday/index.js b/node_modules/date-fns/esm/isSunday/index.js new file mode 100644 index 00000000..6bf95a0b --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ + +export default function isSunday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 0; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isSunday/index.js.flow b/node_modules/date-fns/esm/isSunday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isSunday/package.json b/node_modules/date-fns/esm/isSunday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisHour/index.d.ts b/node_modules/date-fns/esm/isThisHour/index.d.ts new file mode 100644 index 00000000..1009e428 --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisHour } from 'date-fns' +export default isThisHour diff --git a/node_modules/date-fns/esm/isThisHour/index.js b/node_modules/date-fns/esm/isThisHour/index.js new file mode 100644 index 00000000..8bece95b --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/index.js @@ -0,0 +1,29 @@ +import isSameHour from "../isSameHour/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this hour + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ + +export default function isThisHour(dirtyDate) { + requiredArgs(1, arguments); + return isSameHour(Date.now(), dirtyDate); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisHour/index.js.flow b/node_modules/date-fns/esm/isThisHour/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisHour/package.json b/node_modules/date-fns/esm/isThisHour/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.d.ts b/node_modules/date-fns/esm/isThisISOWeek/index.d.ts new file mode 100644 index 00000000..4fb42e8d --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisISOWeek } from 'date-fns' +export default isThisISOWeek diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.js b/node_modules/date-fns/esm/isThisISOWeek/index.js new file mode 100644 index 00000000..b94d2296 --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/index.js @@ -0,0 +1,30 @@ +import isSameISOWeek from "../isSameISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ + +export default function isThisISOWeek(dirtyDate) { + requiredArgs(1, arguments); + return isSameISOWeek(dirtyDate, Date.now()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisISOWeek/index.js.flow b/node_modules/date-fns/esm/isThisISOWeek/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisISOWeek/package.json b/node_modules/date-fns/esm/isThisISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisMinute/index.d.ts b/node_modules/date-fns/esm/isThisMinute/index.d.ts new file mode 100644 index 00000000..ca1430d5 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisMinute } from 'date-fns' +export default isThisMinute diff --git a/node_modules/date-fns/esm/isThisMinute/index.js b/node_modules/date-fns/esm/isThisMinute/index.js new file mode 100644 index 00000000..60b7a56b --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/index.js @@ -0,0 +1,29 @@ +import isSameMinute from "../isSameMinute/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this minute + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ + +export default function isThisMinute(dirtyDate) { + requiredArgs(1, arguments); + return isSameMinute(Date.now(), dirtyDate); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisMinute/index.js.flow b/node_modules/date-fns/esm/isThisMinute/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisMinute/package.json b/node_modules/date-fns/esm/isThisMinute/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisMonth/index.d.ts b/node_modules/date-fns/esm/isThisMonth/index.d.ts new file mode 100644 index 00000000..eaf72fdd --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisMonth } from 'date-fns' +export default isThisMonth diff --git a/node_modules/date-fns/esm/isThisMonth/index.js b/node_modules/date-fns/esm/isThisMonth/index.js new file mode 100644 index 00000000..92f9f9c5 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/index.js @@ -0,0 +1,28 @@ +import isSameMonth from "../isSameMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this month + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ + +export default function isThisMonth(dirtyDate) { + requiredArgs(1, arguments); + return isSameMonth(Date.now(), dirtyDate); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisMonth/index.js.flow b/node_modules/date-fns/esm/isThisMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisMonth/package.json b/node_modules/date-fns/esm/isThisMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisQuarter/index.d.ts b/node_modules/date-fns/esm/isThisQuarter/index.d.ts new file mode 100644 index 00000000..8c25708a --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisQuarter } from 'date-fns' +export default isThisQuarter diff --git a/node_modules/date-fns/esm/isThisQuarter/index.js b/node_modules/date-fns/esm/isThisQuarter/index.js new file mode 100644 index 00000000..73a67b96 --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/index.js @@ -0,0 +1,28 @@ +import isSameQuarter from "../isSameQuarter/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this quarter + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ + +export default function isThisQuarter(dirtyDate) { + requiredArgs(1, arguments); + return isSameQuarter(Date.now(), dirtyDate); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisQuarter/index.js.flow b/node_modules/date-fns/esm/isThisQuarter/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisQuarter/package.json b/node_modules/date-fns/esm/isThisQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisSecond/index.d.ts b/node_modules/date-fns/esm/isThisSecond/index.d.ts new file mode 100644 index 00000000..9d45da10 --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisSecond } from 'date-fns' +export default isThisSecond diff --git a/node_modules/date-fns/esm/isThisSecond/index.js b/node_modules/date-fns/esm/isThisSecond/index.js new file mode 100644 index 00000000..93971988 --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/index.js @@ -0,0 +1,29 @@ +import isSameSecond from "../isSameSecond/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this second + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ + +export default function isThisSecond(dirtyDate) { + requiredArgs(1, arguments); + return isSameSecond(Date.now(), dirtyDate); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisSecond/index.js.flow b/node_modules/date-fns/esm/isThisSecond/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisSecond/package.json b/node_modules/date-fns/esm/isThisSecond/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisWeek/index.d.ts b/node_modules/date-fns/esm/isThisWeek/index.d.ts new file mode 100644 index 00000000..b22ba530 --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisWeek } from 'date-fns' +export default isThisWeek diff --git a/node_modules/date-fns/esm/isThisWeek/index.js b/node_modules/date-fns/esm/isThisWeek/index.js new file mode 100644 index 00000000..13ce3fa0 --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/index.js @@ -0,0 +1,38 @@ +import isSameWeek from "../isSameWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @param {Object} [options] - the object with options + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Boolean} the date is in this week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +export default function isThisWeek(dirtyDate, options) { + requiredArgs(1, arguments); + return isSameWeek(dirtyDate, Date.now(), options); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisWeek/index.js.flow b/node_modules/date-fns/esm/isThisWeek/index.js.flow new file mode 100644 index 00000000..579c74ae --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => boolean diff --git a/node_modules/date-fns/esm/isThisWeek/package.json b/node_modules/date-fns/esm/isThisWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisYear/index.d.ts b/node_modules/date-fns/esm/isThisYear/index.d.ts new file mode 100644 index 00000000..b95f1be3 --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisYear } from 'date-fns' +export default isThisYear diff --git a/node_modules/date-fns/esm/isThisYear/index.js b/node_modules/date-fns/esm/isThisYear/index.js new file mode 100644 index 00000000..4df86145 --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/index.js @@ -0,0 +1,28 @@ +import isSameYear from "../isSameYear/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this year + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ + +export default function isThisYear(dirtyDate) { + requiredArgs(1, arguments); + return isSameYear(dirtyDate, Date.now()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThisYear/index.js.flow b/node_modules/date-fns/esm/isThisYear/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThisYear/package.json b/node_modules/date-fns/esm/isThisYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThisYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThursday/index.d.ts b/node_modules/date-fns/esm/isThursday/index.d.ts new file mode 100644 index 00000000..2f25237d --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThursday } from 'date-fns' +export default isThursday diff --git a/node_modules/date-fns/esm/isThursday/index.js b/node_modules/date-fns/esm/isThursday/index.js new file mode 100644 index 00000000..9a4540b6 --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ + +export default function isThursday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 4; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isThursday/index.js.flow b/node_modules/date-fns/esm/isThursday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isThursday/package.json b/node_modules/date-fns/esm/isThursday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isToday/index.d.ts b/node_modules/date-fns/esm/isToday/index.d.ts new file mode 100644 index 00000000..ed0cd157 --- /dev/null +++ b/node_modules/date-fns/esm/isToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isToday } from 'date-fns' +export default isToday diff --git a/node_modules/date-fns/esm/isToday/index.js b/node_modules/date-fns/esm/isToday/index.js new file mode 100644 index 00000000..2ed1dae1 --- /dev/null +++ b/node_modules/date-fns/esm/isToday/index.js @@ -0,0 +1,28 @@ +import isSameDay from "../isSameDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is today + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ + +export default function isToday(dirtyDate) { + requiredArgs(1, arguments); + return isSameDay(dirtyDate, Date.now()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isToday/index.js.flow b/node_modules/date-fns/esm/isToday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isToday/package.json b/node_modules/date-fns/esm/isToday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isToday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isTomorrow/index.d.ts b/node_modules/date-fns/esm/isTomorrow/index.d.ts new file mode 100644 index 00000000..b9c9115a --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTomorrow } from 'date-fns' +export default isTomorrow diff --git a/node_modules/date-fns/esm/isTomorrow/index.js b/node_modules/date-fns/esm/isTomorrow/index.js new file mode 100644 index 00000000..2780ecc1 --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/index.js @@ -0,0 +1,29 @@ +import addDays from "../addDays/index.js"; +import isSameDay from "../isSameDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is tomorrow + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ + +export default function isTomorrow(dirtyDate) { + requiredArgs(1, arguments); + return isSameDay(dirtyDate, addDays(Date.now(), 1)); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isTomorrow/index.js.flow b/node_modules/date-fns/esm/isTomorrow/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isTomorrow/package.json b/node_modules/date-fns/esm/isTomorrow/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isTomorrow/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isTuesday/index.d.ts b/node_modules/date-fns/esm/isTuesday/index.d.ts new file mode 100644 index 00000000..87c7ceb1 --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTuesday } from 'date-fns' +export default isTuesday diff --git a/node_modules/date-fns/esm/isTuesday/index.js b/node_modules/date-fns/esm/isTuesday/index.js new file mode 100644 index 00000000..8382da20 --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ + +export default function isTuesday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 2; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isTuesday/index.js.flow b/node_modules/date-fns/esm/isTuesday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isTuesday/package.json b/node_modules/date-fns/esm/isTuesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isValid/index.d.ts b/node_modules/date-fns/esm/isValid/index.d.ts new file mode 100644 index 00000000..26ad11db --- /dev/null +++ b/node_modules/date-fns/esm/isValid/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isValid } from 'date-fns' +export default isValid diff --git a/node_modules/date-fns/esm/isValid/index.js b/node_modules/date-fns/esm/isValid/index.js new file mode 100644 index 00000000..f8b3fb6c --- /dev/null +++ b/node_modules/date-fns/esm/isValid/index.js @@ -0,0 +1,45 @@ +import isDate from "../isDate/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {*} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} 1 argument required + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ + +export default function isValid(dirtyDate) { + requiredArgs(1, arguments); + + if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') { + return false; + } + + var date = toDate(dirtyDate); + return !isNaN(Number(date)); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isValid/index.js.flow b/node_modules/date-fns/esm/isValid/index.js.flow new file mode 100644 index 00000000..5bae5e02 --- /dev/null +++ b/node_modules/date-fns/esm/isValid/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: any) => boolean diff --git a/node_modules/date-fns/esm/isValid/package.json b/node_modules/date-fns/esm/isValid/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isValid/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWednesday/index.d.ts b/node_modules/date-fns/esm/isWednesday/index.d.ts new file mode 100644 index 00000000..e517a931 --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWednesday } from 'date-fns' +export default isWednesday diff --git a/node_modules/date-fns/esm/isWednesday/index.js b/node_modules/date-fns/esm/isWednesday/index.js new file mode 100644 index 00000000..b587250d --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/index.js @@ -0,0 +1,24 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ + +export default function isWednesday(dirtyDate) { + requiredArgs(1, arguments); + return toDate(dirtyDate).getDay() === 3; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWednesday/index.js.flow b/node_modules/date-fns/esm/isWednesday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isWednesday/package.json b/node_modules/date-fns/esm/isWednesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWeekend/index.d.ts b/node_modules/date-fns/esm/isWeekend/index.d.ts new file mode 100644 index 00000000..3e54f311 --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWeekend } from 'date-fns' +export default isWeekend diff --git a/node_modules/date-fns/esm/isWeekend/index.js b/node_modules/date-fns/esm/isWeekend/index.js new file mode 100644 index 00000000..f31eb32b --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/index.js @@ -0,0 +1,26 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date falls on a weekend + * @throws {TypeError} 1 argument required + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ + +export default function isWeekend(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var day = date.getDay(); + return day === 0 || day === 6; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWeekend/index.js.flow b/node_modules/date-fns/esm/isWeekend/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isWeekend/package.json b/node_modules/date-fns/esm/isWeekend/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isWeekend/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWithinInterval/index.d.ts b/node_modules/date-fns/esm/isWithinInterval/index.d.ts new file mode 100644 index 00000000..17339dbb --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWithinInterval } from 'date-fns' +export default isWithinInterval diff --git a/node_modules/date-fns/esm/isWithinInterval/index.js b/node_modules/date-fns/esm/isWithinInterval/index.js new file mode 100644 index 00000000..f273f020 --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/index.js @@ -0,0 +1,54 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param {Date|Number} date - the date to check + * @param {Interval} interval - the interval to check + * @returns {Boolean} the date is within the interval + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> false + * + * @example + * // For date equal to interval start: + * isWithinInterval(date, { start, end: date }) // => true + * + * @example + * // For date equal to interval end: + * isWithinInterval(date, { start: date, end }) // => true + */ +export default function isWithinInterval(dirtyDate, interval) { + requiredArgs(2, arguments); + var time = toDate(dirtyDate).getTime(); + var startTime = toDate(interval.start).getTime(); + var endTime = toDate(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startTime <= endTime)) { + throw new RangeError('Invalid interval'); + } + + return time >= startTime && time <= endTime; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isWithinInterval/index.js.flow b/node_modules/date-fns/esm/isWithinInterval/index.js.flow new file mode 100644 index 00000000..f8700535 --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, interval: Interval) => boolean diff --git a/node_modules/date-fns/esm/isWithinInterval/package.json b/node_modules/date-fns/esm/isWithinInterval/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isWithinInterval/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isYesterday/index.d.ts b/node_modules/date-fns/esm/isYesterday/index.d.ts new file mode 100644 index 00000000..b10c6357 --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isYesterday } from 'date-fns' +export default isYesterday diff --git a/node_modules/date-fns/esm/isYesterday/index.js b/node_modules/date-fns/esm/isYesterday/index.js new file mode 100644 index 00000000..79ecbbd7 --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/index.js @@ -0,0 +1,29 @@ +import isSameDay from "../isSameDay/index.js"; +import subDays from "../subDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is yesterday + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ + +export default function isYesterday(dirtyDate) { + requiredArgs(1, arguments); + return isSameDay(dirtyDate, subDays(Date.now(), 1)); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/isYesterday/index.js.flow b/node_modules/date-fns/esm/isYesterday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/esm/isYesterday/package.json b/node_modules/date-fns/esm/isYesterday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/isYesterday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfDecade/index.d.ts b/node_modules/date-fns/esm/lastDayOfDecade/index.d.ts new file mode 100644 index 00000000..05b03069 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfDecade } from 'date-fns' +export default lastDayOfDecade diff --git a/node_modules/date-fns/esm/lastDayOfDecade/index.js b/node_modules/date-fns/esm/lastDayOfDecade/index.js new file mode 100644 index 00000000..e380535b --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a decade + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ + +export default function lastDayOfDecade(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + date.setFullYear(decade + 1, 0, 0); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfDecade/index.js.flow b/node_modules/date-fns/esm/lastDayOfDecade/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/lastDayOfDecade/package.json b/node_modules/date-fns/esm/lastDayOfDecade/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfISOWeek/index.d.ts b/node_modules/date-fns/esm/lastDayOfISOWeek/index.d.ts new file mode 100644 index 00000000..e2533d69 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeek } from 'date-fns' +export default lastDayOfISOWeek diff --git a/node_modules/date-fns/esm/lastDayOfISOWeek/index.js b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js new file mode 100644 index 00000000..9d9b8525 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js @@ -0,0 +1,29 @@ +import lastDayOfWeek from "../lastDayOfWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function lastDayOfISOWeek(dirtyDate) { + requiredArgs(1, arguments); + return lastDayOfWeek(dirtyDate, { + weekStartsOn: 1 + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfISOWeek/index.js.flow b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/lastDayOfISOWeek/package.json b/node_modules/date-fns/esm/lastDayOfISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..b30859aa --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeekYear } from 'date-fns' +export default lastDayOfISOWeekYear diff --git a/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js new file mode 100644 index 00000000..94362e83 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js @@ -0,0 +1,35 @@ +import getISOWeekYear from "../getISOWeekYear/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ + +export default function lastDayOfISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var year = getISOWeekYear(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date = startOfISOWeek(fourthOfJanuary); + date.setDate(date.getDate() - 1); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/lastDayOfISOWeekYear/package.json b/node_modules/date-fns/esm/lastDayOfISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfMonth/index.d.ts b/node_modules/date-fns/esm/lastDayOfMonth/index.d.ts new file mode 100644 index 00000000..4db559b3 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfMonth } from 'date-fns' +export default lastDayOfMonth diff --git a/node_modules/date-fns/esm/lastDayOfMonth/index.js b/node_modules/date-fns/esm/lastDayOfMonth/index.js new file mode 100644 index 00000000..f59f7e87 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ + +export default function lastDayOfMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var month = date.getMonth(); + date.setFullYear(date.getFullYear(), month + 1, 0); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfMonth/index.js.flow b/node_modules/date-fns/esm/lastDayOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/lastDayOfMonth/package.json b/node_modules/date-fns/esm/lastDayOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfQuarter/index.d.ts b/node_modules/date-fns/esm/lastDayOfQuarter/index.d.ts new file mode 100644 index 00000000..3387b649 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarter } from 'date-fns' +export default lastDayOfQuarter diff --git a/node_modules/date-fns/esm/lastDayOfQuarter/index.js b/node_modules/date-fns/esm/lastDayOfQuarter/index.js new file mode 100644 index 00000000..68d634a8 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/index.js @@ -0,0 +1,33 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * @returns {Date} the last day of a quarter + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ + +export default function lastDayOfQuarter(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date.setMonth(month, 0); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfQuarter/index.js.flow b/node_modules/date-fns/esm/lastDayOfQuarter/index.js.flow new file mode 100644 index 00000000..364a3bb2 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/esm/lastDayOfQuarter/package.json b/node_modules/date-fns/esm/lastDayOfQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfWeek/index.d.ts b/node_modules/date-fns/esm/lastDayOfWeek/index.d.ts new file mode 100644 index 00000000..d29b9bf9 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeek } from 'date-fns' +export default lastDayOfWeek diff --git a/node_modules/date-fns/esm/lastDayOfWeek/index.js b/node_modules/date-fns/esm/lastDayOfWeek/index.js new file mode 100644 index 00000000..7f480f66 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/index.js @@ -0,0 +1,50 @@ +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the last day of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The last day of a week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function lastDayOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6'); + } + + var date = toDate(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + date.setHours(0, 0, 0, 0); + date.setDate(date.getDate() + diff); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfWeek/index.js.flow b/node_modules/date-fns/esm/lastDayOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/esm/lastDayOfWeek/package.json b/node_modules/date-fns/esm/lastDayOfWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfYear/index.d.ts b/node_modules/date-fns/esm/lastDayOfYear/index.d.ts new file mode 100644 index 00000000..a90dc0d4 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfYear } from 'date-fns' +export default lastDayOfYear diff --git a/node_modules/date-fns/esm/lastDayOfYear/index.js b/node_modules/date-fns/esm/lastDayOfYear/index.js new file mode 100644 index 00000000..fde437df --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ + +export default function lastDayOfYear(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + date.setFullYear(year + 1, 0, 0); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lastDayOfYear/index.js.flow b/node_modules/date-fns/esm/lastDayOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/lastDayOfYear/package.json b/node_modules/date-fns/esm/lastDayOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lastDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lightFormat/index.d.ts b/node_modules/date-fns/esm/lightFormat/index.d.ts new file mode 100644 index 00000000..4aa361b5 --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lightFormat } from 'date-fns' +export default lightFormat diff --git a/node_modules/date-fns/esm/lightFormat/index.js b/node_modules/date-fns/esm/lightFormat/index.js new file mode 100644 index 00000000..87e97654 --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/index.js @@ -0,0 +1,127 @@ +import toDate from "../toDate/index.js"; +import formatters from "../_lib/format/lightFormatters/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import isValid from "../isValid/index.js"; +import subMilliseconds from "../subMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; // This RegExp consists of three parts separated by `|`: +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps + +var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param {Date|Number} date - the original date + * @param {String} format - the string of tokens + * @returns {String} the formatted date string + * @throws {TypeError} 2 arguments required + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ + +export default function lightFormat(dirtyDate, formatStr) { + requiredArgs(2, arguments); + var originalDate = toDate(dirtyDate); + + if (!isValid(originalDate)) { + throw new RangeError('Invalid time value'); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + // This ensures that when UTC functions will be implemented, locales will be compatible with them. + // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 + + + var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate); + var utcDate = subMilliseconds(originalDate, timezoneOffset); + var tokens = formatStr.match(formattingTokensRegExp); // The only case when formattingTokensRegExp doesn't match the string is when it's empty + + if (!tokens) return ''; + var result = tokens.map(function (substring) { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + var firstCharacter = substring[0]; + + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + var formatter = formatters[firstCharacter]; + + if (formatter) { + return formatter(utcDate, substring); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +function cleanEscapedString(input) { + var matches = input.match(escapedStringRegExp); + + if (!matches) { + return input; + } + + return matches[1].replace(doubleQuoteRegExp, "'"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/lightFormat/index.js.flow b/node_modules/date-fns/esm/lightFormat/index.js.flow new file mode 100644 index 00000000..818d9c4e --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, format: string) => string diff --git a/node_modules/date-fns/esm/lightFormat/package.json b/node_modules/date-fns/esm/lightFormat/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/lightFormat/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js new file mode 100644 index 00000000..1e672998 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js @@ -0,0 +1,9 @@ +export default function buildFormatLongFn(args) { + return function () { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + // TODO: Remove String() + var width = options.width ? String(options.width) : args.defaultWidth; + var format = args.formats[width] || args.formats[args.defaultWidth]; + return format; + }; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js new file mode 100644 index 00000000..adb8e889 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js @@ -0,0 +1,22 @@ +export default function buildLocalizeFn(args) { + return function (dirtyIndex, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone'; + var valuesArray; + + if (context === 'formatting' && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + + var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it! + + return valuesArray[index]; + }; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js new file mode 100644 index 00000000..2bd7243d --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js @@ -0,0 +1,48 @@ +export default function buildMatchFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + + if (!matchResult) { + return null; + } + + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }) : findKey(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} + +function findKey(object, predicate) { + for (var key in object) { + if (object.hasOwnProperty(key) && predicate(object[key])) { + return key; + } + } + + return undefined; +} + +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } + + return undefined; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js b/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js new file mode 100644 index 00000000..85320876 --- /dev/null +++ b/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js @@ -0,0 +1,17 @@ +export default function buildMatchPatternFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/af/_lib/formatDistance/index.js new file mode 100644 index 00000000..7b620d42 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 'n sekonde", + other: 'minder as {{count}} sekondes' + }, + xSeconds: { + one: '1 sekonde', + other: '{{count}} sekondes' + }, + halfAMinute: "'n halwe minuut", + lessThanXMinutes: { + one: "minder as 'n minuut", + other: 'minder as {{count}} minute' + }, + xMinutes: { + one: "'n minuut", + other: '{{count}} minute' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} ure' + }, + xHours: { + one: '1 uur', + other: '{{count}} ure' + }, + xDays: { + one: '1 dag', + other: '{{count}} dae' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weke' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weke' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maande' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maande' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer as 1 jaar', + other: 'meer as {{count}} jaar' + }, + almostXYears: { + one: 'byna 1 jaar', + other: 'byna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'oor ' + result; + } else { + return result + ' gelede'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/af/_lib/formatLong/index.js new file mode 100644 index 00000000..1486b6ab --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/af/_lib/formatRelative/index.js new file mode 100644 index 00000000..55cb47ee --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'verlede' eeee 'om' p", + yesterday: "'gister om' p", + today: "'vandag om' p", + tomorrow: "'môre om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/_lib/localize/index.js b/node_modules/date-fns/esm/locale/af/_lib/localize/index.js new file mode 100644 index 00000000..f1dbf940 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/localize/index.js @@ -0,0 +1,134 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['vC', 'nC'], + abbreviated: ['vC', 'nC'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ste kwartaal', '2de kwartaal', '3de kwartaal', '4de kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], + wide: ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'W', 'D', 'V', 'S'], + short: ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'], + abbreviated: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], + wide: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + }, + abbreviated: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + }, + wide: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + }, + abbreviated: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + }, + wide: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 < 20) { + switch (rem100) { + case 1: + case 8: + return number + 'ste'; + + default: + return number + 'de'; + } + } + + return number + 'ste'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/_lib/match/index.js b/node_modules/date-fns/esm/locale/af/_lib/match/index.js new file mode 100644 index 00000000..728f0958 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?C\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](st|d)e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, + wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i +}; +var parseMonthPatterns = { + narrow: [/^J/i, /^F/i, /^M/i, /^A/i, /^M/i, /^J/i, /^J/i, /^A/i, /^S/i, /^O/i, /^N/i, /^D/i], + any: [/^Jan/i, /^Feb/i, /^Mrt/i, /^Apr/i, /^Mei/i, /^Jun/i, /^Jul/i, /^Aug/i, /^Sep/i, /^Okt/i, /^Nov/i, /^Dec/i] +}; +var matchDayPatterns = { + narrow: /^[smdwv]/i, + short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, + abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, + wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i +}; +var parseDayPatterns = { + narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i], + any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^vm/i, + pm: /^nm/i, + midnight: /^middernag/i, + noon: /^middaguur/i, + morning: /oggend/i, + afternoon: /middag/i, + evening: /laat middag/i, + night: /aand/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/index.d.ts b/node_modules/date-fns/esm/locale/af/index.d.ts new file mode 100644 index 00000000..fb278e61 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { af } from 'date-fns/locale' +export default af diff --git a/node_modules/date-fns/esm/locale/af/index.js b/node_modules/date-fns/esm/locale/af/index.js new file mode 100644 index 00000000..09169adf --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw]{@link https://github.com/marnusw} + */ + +var locale = { + code: 'af', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/af/index.js.flow b/node_modules/date-fns/esm/locale/af/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/af/package.json b/node_modules/date-fns/esm/locale/af/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/af/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatDistance/index.js new file mode 100644 index 00000000..48acb873 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatDistance/index.js @@ -0,0 +1,123 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatLong/index.js new file mode 100644 index 00000000..1cfd3a44 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatRelative/index.js new file mode 100644 index 00000000..6db6da85 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar-DZ/_lib/localize/index.js new file mode 100644 index 00000000..edd42a28 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ج', 'ف', 'م', 'أ', 'م', 'ج', 'ج', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['جانـ', 'فيفـ', 'مارس', 'أفريل', 'مايـ', 'جوانـ', 'جويـ', 'أوت', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-DZ/_lib/match/index.js new file mode 100644 index 00000000..1737a8bf --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جفمأسند]/i, + abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i +}; +var parseMonthPatterns = { + narrow: [/^ج/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ج/i, /^ج/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^جان/i, /^فيف/i, /^مار/i, /^أفر/i, /^ماي/i, /^جوا/i, /^جوي/i, /^أوت/i, /^سبت/i, /^أكت/i, /^نوف/i, /^ديس/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return Number(index) + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/index.d.ts b/node_modules/date-fns/esm/locale/ar-DZ/index.d.ts new file mode 100644 index 00000000..97f47f11 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arDZ } from 'date-fns/locale' +export default arDZ diff --git a/node_modules/date-fns/esm/locale/ar-DZ/index.js b/node_modules/date-fns/esm/locale/ar-DZ/index.js new file mode 100644 index 00000000..a5a995ca --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429]{@link https://github.com/badre429} + * @author Ahmed ElShahat [@elshahat]{@link https://github.com/elshahat} + */ +var locale = { + code: 'ar-DZ', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-DZ/index.js.flow b/node_modules/date-fns/esm/locale/ar-DZ/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar-DZ/package.json b/node_modules/date-fns/esm/locale/ar-DZ/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-DZ/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatDistance/index.js new file mode 100644 index 00000000..90c80c0f --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatDistance/index.js @@ -0,0 +1,122 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من ثانيتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية', + two: 'ثانيتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نص دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقايق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة', + two: 'دقيقتين', + threeToTen: '{{count}} دقايق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'حوالي ساعة', + two: 'حوالي ساعتين', + threeToTen: 'حوالي {{count}} ساعات', + other: 'حوالي {{count}} ساعة' + }, + xHours: { + one: 'ساعة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'حوالي أسبوع', + two: 'حوالي أسبوعين', + threeToTen: 'حوالي {{count}} أسابيع', + other: 'حوالي {{count}} أسبوع' + }, + xWeeks: { + one: 'أسبوع', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'حوالي شهر', + two: 'حوالي شهرين', + threeToTen: 'حوالي {{count}} أشهر', + other: 'حوالي {{count}} شهر' + }, + xMonths: { + one: 'شهر', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'حوالي سنة', + two: 'حوالي سنتين', + threeToTen: 'حوالي {{count}} سنين', + other: 'حوالي {{count}} سنة' + }, + xYears: { + one: 'عام', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من سنة', + two: 'أكثر من سنتين', + threeToTen: 'أكثر من {{count}} سنين', + other: 'أكثر من {{count}} سنة' + }, + almostXYears: { + one: 'عام تقريبًا', + two: 'عامين تقريبًا', + threeToTen: '{{count}} أعوام تقريبًا', + other: '{{count}} عام تقريبًا' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result); + } else { + return "\u0645\u0646\u0630 ".concat(result); + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatLong/index.js new file mode 100644 index 00000000..4812040c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'dd/MMM/y', + short: 'd/MM/y' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'الساعة' {{time}}", + long: "{{date}} 'الساعة' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatRelative/index.js new file mode 100644 index 00000000..d2760082 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'اللي جاي الساعة' p", + yesterday: "'إمبارح الساعة' p", + today: "'النهاردة الساعة' p", + tomorrow: "'بكرة الساعة' p", + nextWeek: "eeee 'الساعة' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar-EG/_lib/localize/index.js new file mode 100644 index 00000000..282e2793 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م', 'ب.م'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'مايو', 'يونـ', 'يولـ', 'أغسـ', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + morning: 'في الصباح', + noon: 'ظهراً', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-EG/_lib/match/index.js new file mode 100644 index 00000000..eb59940d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)/; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/g, + abbreviated: /^(ق.م|ب.م)/g, + wide: /^(قبل الميلاد|بعد الميلاد)/g +}; +var parseEraPatterns = { + any: [/^ق/g, /^ب/g] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/, + abbreviated: /^ر[1234]/, + wide: /^الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/], + any: [/1/, /2/, /3/, /4/] +}; +var matchMonthPatterns = { + narrow: /^(ي|ف|م|أ|س|ن|د)/, + abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ي/, /^ف/, /^م/, /^أ/, /^م/, /^ي/, /^ي/, /^أ/, /^س/, /^أ/, /^ن/, /^د/], + any: [/^ينا/, /^فبر/, /^مارس/, /^أبريل/, /^مايو/, /^يون/, /^يول/, /^أغس/, /^سبت/, /^أكت/, /^نوف/, /^ديس/] +}; +var matchDayPatterns = { + narrow: /^(ح|ن|ث|ر|خ|ج|س)/, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/ +}; +var parseDayPatterns = { + narrow: [/^ح/, /^ن/, /^ث/, /^ر/, /^خ/, /^ج/, /^س/], + any: [/أحد/, /اثنين/, /ثلاثاء/, /أربعاء/, /خميس/, /جمعة/, /سبت/] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, + abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, + wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, + any: /^(ص|م|صباح|ظهر|مساء|ليل)/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /^ن/, + noon: /^ظ/, + morning: /^ص/, + afternoon: /^بعد/, + evening: /^م/, + night: /^ل/ + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/index.d.ts b/node_modules/date-fns/esm/locale/ar-EG/index.d.ts new file mode 100644 index 00000000..0d317119 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arEG } from 'date-fns/locale' +export default arEG diff --git a/node_modules/date-fns/esm/locale/ar-EG/index.js b/node_modules/date-fns/esm/locale/ar-EG/index.js new file mode 100644 index 00000000..34ae9cd3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Egypt). + * @language Arabic + * @iso-639-2 ara + * @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13]{@link https://github.com/AbdAllahAbdElFattah13} + */ +var locale = { + code: 'ar-EG', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-EG/index.js.flow b/node_modules/date-fns/esm/locale/ar-EG/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar-EG/package.json b/node_modules/date-fns/esm/locale/ar-EG/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-EG/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js new file mode 100644 index 00000000..48acb873 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatDistance/index.js @@ -0,0 +1,123 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatLong/index.js new file mode 100644 index 00000000..1cfd3a44 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatRelative/index.js new file mode 100644 index 00000000..6db6da85 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/localize/index.js new file mode 100644 index 00000000..6f81c8c5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'غ', 'ش', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'ماي', 'يونـ', 'يولـ', 'غشت', 'شتنـ', 'أكتـ', 'نونـ', 'دجنـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'ماي', 'يونيو', 'يوليوز', 'غشت', 'شتنبر', 'أكتوبر', 'نونبر', 'دجنبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-MA/_lib/match/index.js new file mode 100644 index 00000000..a77b34df --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^غ/i, /^ش/i, /^أ/i, /^ن/i, /^د/i], + any: [/^ين/i, /^فب/i, /^مار/i, /^أب/i, /^ماي/i, /^يون/i, /^يول/i, /^غشت/i, /^ش/i, /^أك/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الإثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^إث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return Number(index) + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/index.d.ts b/node_modules/date-fns/esm/locale/ar-MA/index.d.ts new file mode 100644 index 00000000..b12ae41c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arMA } from 'date-fns/locale' +export default arMA diff --git a/node_modules/date-fns/esm/locale/ar-MA/index.js b/node_modules/date-fns/esm/locale/ar-MA/index.js new file mode 100644 index 00000000..4e05e7d6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/index.js @@ -0,0 +1,28 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf]{@link https://github.com/rramiachraf} + */ +var locale = { + code: 'ar-MA', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + // Monday is 1 + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-MA/index.js.flow b/node_modules/date-fns/esm/locale/ar-MA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar-MA/package.json b/node_modules/date-fns/esm/locale/ar-MA/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-MA/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatDistance/index.js new file mode 100644 index 00000000..2b4660c7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatDistance/index.js @@ -0,0 +1,122 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatLong/index.js new file mode 100644 index 00000000..1cfd3a44 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatRelative/index.js new file mode 100644 index 00000000..6db6da85 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/localize/index.js new file mode 100644 index 00000000..484fe214 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'مايو', 'يونـ', 'يولـ', 'أغسـ', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-SA/_lib/match/index.js new file mode 100644 index 00000000..d4d78121 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^ين/i, /^ف/i, /^مار/i, /^أب/i, /^ماي/i, /^يون/i, /^يول/i, /^أغ/i, /^س/i, /^أك/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/index.d.ts b/node_modules/date-fns/esm/locale/ar-SA/index.d.ts new file mode 100644 index 00000000..e1a74a05 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arSA } from 'date-fns/locale' +export default arSA diff --git a/node_modules/date-fns/esm/locale/ar-SA/index.js b/node_modules/date-fns/esm/locale/ar-SA/index.js new file mode 100644 index 00000000..f46127f4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Sauid Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Dhaifallah Alwadani [@dalwadani]{@link https://github.com/dalwadani} + */ + +var locale = { + code: 'ar-SA', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-SA/index.js.flow b/node_modules/date-fns/esm/locale/ar-SA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar-SA/package.json b/node_modules/date-fns/esm/locale/ar-SA/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-SA/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatDistance/index.js new file mode 100644 index 00000000..7c3c41c5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatDistance/index.js @@ -0,0 +1,122 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من زوز ثواني', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية', + two: 'زوز ثواني', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نص دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقايق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة', + two: 'دقيقتين', + threeToTen: '{{count}} دقايق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة تقريب', + two: 'ساعتين تقريب', + threeToTen: '{{count}} سوايع تقريب', + other: '{{count}} ساعة تقريب' + }, + xHours: { + one: 'ساعة', + two: 'ساعتين', + threeToTen: '{{count}} سوايع', + other: '{{count}} ساعة' + }, + xDays: { + one: 'نهار', + two: 'نهارين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'جمعة تقريب', + two: 'جمعتين تقريب', + threeToTen: '{{count}} جماع تقريب', + other: '{{count}} جمعة تقريب' + }, + xWeeks: { + one: 'جمعة', + two: 'جمعتين', + threeToTen: '{{count}} جماع', + other: '{{count}} جمعة' + }, + aboutXMonths: { + one: 'شهر تقريب', + two: 'شهرين تقريب', + threeToTen: '{{count}} أشهرة تقريب', + other: '{{count}} شهر تقريب' + }, + xMonths: { + one: 'شهر', + two: 'شهرين', + threeToTen: '{{count}} أشهرة', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام تقريب', + two: 'عامين تقريب', + threeToTen: '{{count}} أعوام تقريب', + other: '{{count}} عام تقريب' + }, + xYears: { + one: 'عام', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام تقريب', + two: 'عامين تقريب', + threeToTen: '{{count}} أعوام تقريب', + other: '{{count}} عام تقريب' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في ' + result; + } else { + return 'عندو ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatLong/index.js new file mode 100644 index 00000000..e2f66377 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss', + long: 'HH:mm:ss', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'مع' {{time}}", + long: "{{date}} 'مع' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatRelative/index.js new file mode 100644 index 00000000..855f4d77 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'إلي فات مع' p", + yesterday: "'البارح مع' p", + today: "'اليوم مع' p", + tomorrow: "'غدوة مع' p", + nextWeek: "eeee 'الجمعة الجاية مع' p 'نهار'", + other: 'P' +}; + +var formatRelative = function formatRelative(token) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar-TN/_lib/localize/index.js new file mode 100644 index 00000000..c1a27ec0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['د', 'ن', 'أ', 'س', 'أ', 'ج', 'ج', 'م', 'أ', 'م', 'ف', 'ج'], + abbreviated: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], + wide: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + }, + abbreviated: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + }, + wide: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + }, + abbreviated: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + }, + wide: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + } +}; + +var ordinalNumber = function ordinalNumber(num) { + return String(num); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar-TN/_lib/match/index.js new file mode 100644 index 00000000..7e2df9bd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ +}; +var parseEraPatterns = { + any: [/قبل/, /بعد/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جفمأسند]/, + abbreviated: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ج/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ج/i, /^ج/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^جانفي/i, /^فيفري/i, /^مارس/i, /^أفريل/i, /^ماي/i, /^جوان/i, /^جويلية/i, /^أوت/i, /^سبتمبر/i, /^أكتوبر/i, /^نوفمبر/i, /^ديسمبر/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, + any: /^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^ع/, + midnight: /نص الليل/, + noon: /قايلة/, + afternoon: /بعد القايلة/, + morning: /صباح/, + evening: /عشية/, + night: /ليل/ + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/index.d.ts b/node_modules/date-fns/esm/locale/ar-TN/index.d.ts new file mode 100644 index 00000000..a793e323 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arTN } from 'date-fns/locale' +export default arTN diff --git a/node_modules/date-fns/esm/locale/ar-TN/index.js b/node_modules/date-fns/esm/locale/ar-TN/index.js new file mode 100644 index 00000000..29e3ea91 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3]{@link https://github.com/essana3} + */ +var locale = { + code: 'ar-TN', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar-TN/index.js.flow b/node_modules/date-fns/esm/locale/ar-TN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar-TN/package.json b/node_modules/date-fns/esm/locale/ar-TN/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar-TN/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js new file mode 100644 index 00000000..30902cb7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatDistance/index.js @@ -0,0 +1,122 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من ثانيتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانيتان', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتان', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريبا', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتان', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومان', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريبا', + two: 'أسبوعين تقريبا', + threeToTen: '{{count}} أسابيع تقريبا', + other: '{{count}} أسبوعا تقريبا' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعان', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوعا' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريبا', + threeToTen: '{{count}} أشهر تقريبا', + other: '{{count}} شهرا تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهران', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهرا' + }, + aboutXYears: { + one: 'سنة واحدة تقريباً', + two: 'سنتين تقريبا', + threeToTen: '{{count}} سنوات تقريباً', + other: '{{count}} سنة تقريباً' + }, + xYears: { + one: 'سنة واحد', + two: 'سنتان', + threeToTen: '{{count}} سنوات', + other: '{{count}} سنة' + }, + overXYears: { + one: 'أكثر من سنة', + two: 'أكثر من سنتين', + threeToTen: 'أكثر من {{count}} سنوات', + other: 'أكثر من {{count}} سنة' + }, + almostXYears: { + one: 'ما يقارب سنة واحدة', + two: 'ما يقارب سنتين', + threeToTen: 'ما يقارب {{count}} سنوات', + other: 'ما يقارب {{count}} سنة' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js new file mode 100644 index 00000000..290d43fc --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss', + long: 'HH:mm:ss', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'عند الساعة' {{time}}", + long: "{{date}} 'عند الساعة' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js new file mode 100644 index 00000000..bd5f1989 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'الماضي عند الساعة' p", + yesterday: "'الأمس عند الساعة' p", + today: "'اليوم عند الساعة' p", + tomorrow: "'غدا عند الساعة' p", + nextWeek: "eeee 'القادم عند الساعة' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js new file mode 100644 index 00000000..3f1a8f7a --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + }, + wide: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + }, + wide: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + } +}; + +var ordinalNumber = function ordinalNumber(num) { + return String(num); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/_lib/match/index.js b/node_modules/date-fns/esm/locale/ar/_lib/match/index.js new file mode 100644 index 00000000..0c913498 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ +}; +var parseEraPatterns = { + any: [/قبل/, /بعد/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[أيفمسند]/, + abbreviated: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^يناير/i, /^فبراير/i, /^مارس/i, /^أبريل/i, /^مايو/i, /^يونيو/i, /^يوليو/i, /^أغسطس/i, /^سبتمبر/i, /^أكتوبر/i, /^نوفمبر/i, /^ديسمبر/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, + any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /منتصف الليل/, + noon: /الظهر/, + afternoon: /بعد الظهر/, + morning: /في الصباح/, + evening: /في المساء/, + night: /في الليل/ + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/index.d.ts b/node_modules/date-fns/esm/locale/ar/index.d.ts new file mode 100644 index 00000000..61adf3ba --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ar } from 'date-fns/locale' +export default ar diff --git a/node_modules/date-fns/esm/locale/ar/index.js b/node_modules/date-fns/esm/locale/ar/index.js new file mode 100644 index 00000000..0b54cbee --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Modern Standard Arabic - Al-fussha). + * @language Modern Standard Arabic + * @iso-639-2 ara + * @author Abdallah Hassan [@AbdallahAHO]{@link https://github.com/AbdallahAHO} + * @author Koussay Haj Kacem [@essana3]{@link https://github.com/essana3} + */ +var locale = { + code: 'ar', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 6 + /* Saturday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ar/index.js.flow b/node_modules/date-fns/esm/locale/ar/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ar/package.json b/node_modules/date-fns/esm/locale/ar/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ar/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js new file mode 100644 index 00000000..4e07940e --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'bir saniyədən az', + other: '{{count}} bir saniyədən az' + }, + xSeconds: { + one: '1 saniyə', + other: '{{count}} saniyə' + }, + halfAMinute: 'yarım dəqiqə', + lessThanXMinutes: { + one: 'bir dəqiqədən az', + other: '{{count}} bir dəqiqədən az' + }, + xMinutes: { + one: 'bir dəqiqə', + other: '{{count}} dəqiqə' + }, + aboutXHours: { + one: 'təxminən 1 saat', + other: 'təxminən {{count}} saat' + }, + xHours: { + one: '1 saat', + other: '{{count}} saat' + }, + xDays: { + one: '1 gün', + other: '{{count}} gün' + }, + aboutXWeeks: { + one: 'təxminən 1 həftə', + other: 'təxminən {{count}} həftə' + }, + xWeeks: { + one: '1 həftə', + other: '{{count}} həftə' + }, + aboutXMonths: { + one: 'təxminən 1 ay', + other: 'təxminən {{count}} ay' + }, + xMonths: { + one: '1 ay', + other: '{{count}} ay' + }, + aboutXYears: { + one: 'təxminən 1 il', + other: 'təxminən {{count}} il' + }, + xYears: { + one: '1 il', + other: '{{count}} il' + }, + overXYears: { + one: '1 ildən çox', + other: '{{count}} ildən çox' + }, + almostXYears: { + one: 'demək olar ki 1 il', + other: 'demək olar ki {{count}} il' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' əvvəl'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js new file mode 100644 index 00000000..77877329 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js new file mode 100644 index 00000000..7e2e7c21 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/localize/index.js b/node_modules/date-fns/esm/locale/az/_lib/localize/index.js new file mode 100644 index 00000000..c7a088ca --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/localize/index.js @@ -0,0 +1,163 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['e.ə', 'b.e'], + abbreviated: ['e.ə', 'b.e'], + wide: ['eramızdan əvvəl', 'bizim era'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] +}; +var monthValues = { + narrow: ['Y', 'F', 'M', 'A', 'M', 'İ', 'İ', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyun', 'İyul', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], + wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'] +}; +var dayValues = { + narrow: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + short: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + abbreviated: ['Baz', 'Baz.e', 'Çər.a', 'Çər', 'Cüm.a', 'Cüm', 'Şə'], + wide: ['Bazar', 'Bazar ertəsi', 'Çərşənbə axşamı', 'Çərşənbə', 'Cümə axşamı', 'Cümə', 'Şənbə'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı' +}; + +var getSuffix = function getSuffix(number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + + var a = number % 10; + var b = number % 100 - a; + var c = number >= 100 ? 100 : null; + + if (suffixes[a]) { + return suffixes[a]; + } else if (suffixes[b]) { + return suffixes[b]; + } else if (c !== null) { + return suffixes[c]; + } + + return ''; +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var suffix = getSuffix(number); + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/_lib/match/index.js b/node_modules/date-fns/esm/locale/az/_lib/match/index.js new file mode 100644 index 00000000..6fe7eea1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i +}; +var parseEraPatterns = { + any: [/^b$/i, /^(a|c)$/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i +}; +var parseMonthPatterns = { + narrow: [/^[(?-i)y]$/i, /^[(?-i)f]$/i, /^[(?-i)m]$/i, /^[(?-i)a]$/i, /^[(?-i)m]$/i, /^[(?-i)i]$/i, /^[(?-i)i]$/i, /^[(?-i)a]$/i, /^[(?-i)s]$/i, /^[(?-i)o]$/i, /^[(?-i)n]$/i, /^[(?-i)d]$/i], + abbreviated: [/^Yan$/i, /^Fev$/i, /^Mar$/i, /^Apr$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avg$/i, /^Sen$/i, /^Okt$/i, /^Noy$/i, /^Dek$/i], + wide: [/^Yanvar$/i, /^Fevral$/i, /^Mart$/i, /^Aprel$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avgust$/i, /^Sentyabr$/i, /^Oktyabr$/i, /^Noyabr$/i, /^Dekabr$/i] +}; +var matchDayPatterns = { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i +}; +var parseDayPatterns = { + narrow: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i], + abbreviated: [/^Baz$/i, /^Baz\.e$/i, /^Çər\.a$/i, /^Çər$/i, /^Cüm\.a$/i, /^Cüm$/i, /^Şə$/i], + wide: [/^Bazar$/i, /^Bazar ertəsi$/i, /^Çərşənbə axşamı$/i, /^Çərşənbə$/i, /^Cümə axşamı$/i, /^Cümə$/i, /^Şənbə$/i], + any: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'narrow' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/index.d.ts b/node_modules/date-fns/esm/locale/az/index.d.ts new file mode 100644 index 00000000..b2b22534 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { az } from 'date-fns/locale' +export default az diff --git a/node_modules/date-fns/esm/locale/az/index.js b/node_modules/date-fns/esm/locale/az/index.js new file mode 100644 index 00000000..5736acb5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/index.js @@ -0,0 +1,26 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Azerbaijani locale. + * @language Azerbaijani + * @iso-639-2 aze + */ + +var locale = { + code: 'az', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/az/index.js.flow b/node_modules/date-fns/esm/locale/az/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/az/package.json b/node_modules/date-fns/esm/locale/az/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/az/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatDistance/index.js new file mode 100644 index 00000000..bb7b6d72 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatDistance/index.js @@ -0,0 +1,247 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'праз ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' таму'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'праз паўхвіліны'; + } else { + return 'паўхвіліны таму'; + } + } + + return 'паўхвіліны'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менш за секунду', + singularNominative: 'менш за {{count}} секунду', + singularGenitive: 'менш за {{count}} секунды', + pluralGenitive: 'менш за {{count}} секунд' + }, + future: { + one: 'менш, чым праз секунду', + singularNominative: 'менш, чым праз {{count}} секунду', + singularGenitive: 'менш, чым праз {{count}} секунды', + pluralGenitive: 'менш, чым праз {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду таму', + singularGenitive: '{{count}} секунды таму', + pluralGenitive: '{{count}} секунд таму' + }, + future: { + singularNominative: 'праз {{count}} секунду', + singularGenitive: 'праз {{count}} секунды', + pluralGenitive: 'праз {{count}} секунд' + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менш за хвіліну', + singularNominative: 'менш за {{count}} хвіліну', + singularGenitive: 'менш за {{count}} хвіліны', + pluralGenitive: 'менш за {{count}} хвілін' + }, + future: { + one: 'менш, чым праз хвіліну', + singularNominative: 'менш, чым праз {{count}} хвіліну', + singularGenitive: 'менш, чым праз {{count}} хвіліны', + pluralGenitive: 'менш, чым праз {{count}} хвілін' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвіліна', + singularGenitive: '{{count}} хвіліны', + pluralGenitive: '{{count}} хвілін' + }, + past: { + singularNominative: '{{count}} хвіліну таму', + singularGenitive: '{{count}} хвіліны таму', + pluralGenitive: '{{count}} хвілін таму' + }, + future: { + singularNominative: 'праз {{count}} хвіліну', + singularGenitive: 'праз {{count}} хвіліны', + pluralGenitive: 'праз {{count}} хвілін' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} гадзіны', + singularGenitive: 'каля {{count}} гадзін', + pluralGenitive: 'каля {{count}} гадзін' + }, + future: { + singularNominative: 'прыблізна праз {{count}} гадзіну', + singularGenitive: 'прыблізна праз {{count}} гадзіны', + pluralGenitive: 'прыблізна праз {{count}} гадзін' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} гадзіна', + singularGenitive: '{{count}} гадзіны', + pluralGenitive: '{{count}} гадзін' + }, + past: { + singularNominative: '{{count}} гадзіну таму', + singularGenitive: '{{count}} гадзіны таму', + pluralGenitive: '{{count}} гадзін таму' + }, + future: { + singularNominative: 'праз {{count}} гадзіну', + singularGenitive: 'праз {{count}} гадзіны', + pluralGenitive: 'праз {{count}} гадзін' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} дзень', + singularGenitive: '{{count}} дні', + pluralGenitive: '{{count}} дзён' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + // TODO + singularGenitive: 'каля {{count}} месяцаў', + // TODO + pluralGenitive: 'каля {{count}} месяцаў' // TODO + + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + // TODO + singularGenitive: 'прыблізна праз {{count}} месяцы', + // TODO + pluralGenitive: 'прыблізна праз {{count}} месяцаў' // TODO + + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + singularGenitive: 'каля {{count}} месяцаў', + pluralGenitive: 'каля {{count}} месяцаў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + singularGenitive: 'прыблізна праз {{count}} месяцы', + pluralGenitive: 'прыблізна праз {{count}} месяцаў' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} года', + singularGenitive: 'каля {{count}} гадоў', + pluralGenitive: 'каля {{count}} гадоў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} год', + singularGenitive: 'прыблізна праз {{count}} гады', + pluralGenitive: 'прыблізна праз {{count}} гадоў' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} гады', + pluralGenitive: '{{count}} гадоў' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больш за {{count}} год', + singularGenitive: 'больш за {{count}} гады', + pluralGenitive: 'больш за {{count}} гадоў' + }, + future: { + singularNominative: 'больш, чым праз {{count}} год', + singularGenitive: 'больш, чым праз {{count}} гады', + pluralGenitive: 'больш, чым праз {{count}} гадоў' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'амаль {{count}} год', + singularGenitive: 'амаль {{count}} гады', + pluralGenitive: 'амаль {{count}} гадоў' + }, + future: { + singularNominative: 'амаль праз {{count}} год', + singularGenitive: 'амаль праз {{count}} гады', + pluralGenitive: 'амаль праз {{count}} гадоў' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatLong/index.js new file mode 100644 index 00000000..c21b41cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatRelative/index.js new file mode 100644 index 00000000..b8499222 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/_lib/formatRelative/index.js @@ -0,0 +1,85 @@ +import { toDate } from "../../../../index.js"; +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var accusativeWeekdays = ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацьвер', 'пятніцу', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёньня а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/_lib/localize/index.js b/node_modules/date-fns/esm/locale/be-tarask/_lib/localize/index.js new file mode 100644 index 00000000..dde54ea3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/_lib/localize/index.js @@ -0,0 +1,151 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['да н.э.', 'н.э.'], + abbreviated: ['да н. э.', 'н. э.'], + wide: ['да нашай эры', 'нашай эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ы кв.', '2-і кв.', '3-і кв.', '4-ы кв.'], + wide: ['1-ы квартал', '2-і квартал', '3-і квартал', '4-ы квартал'] +}; +var monthValues = { + narrow: ['С', 'Л', 'С', 'К', 'Т', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'трав.', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'сьнеж.'], + wide: ['студзень', 'люты', 'сакавік', 'красавік', 'травень', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'сьнежань'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'С', 'К', 'Т', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'трав.', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'сьнеж.'], + wide: ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'траўня', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'сьнежня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'А', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'аў', 'ср', 'чц', 'пт', 'сб'], + abbreviated: ['нядз', 'пан', 'аўт', 'сер', 'чаць', 'пят', 'суб'], + wide: ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацьвер', 'пятніца', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніца', + afternoon: 'дзень', + evening: 'вечар', + night: 'ноч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніцы', + afternoon: 'дня', + evening: 'вечара', + night: 'ночы' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + + if (unit === 'date') { + suffix = '-га'; + } else if (unit === 'hour' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-і' : '-ы'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/_lib/match/index.js b/node_modules/date-fns/esm/locale/be-tarask/_lib/match/index.js new file mode 100644 index 00000000..71b37daa --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^с/i, /^к/i, /^т/i, /^ч/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^с/i], + any: [/^ст/i, /^лю/i, /^са/i, /^кр/i, /^тр/i, /^ч/i, /^ліп/i, /^ж/i, /^в/i, /^ка/i, /^ліс/i, /^сн/i] +}; +var matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/index.d.ts b/node_modules/date-fns/esm/locale/be-tarask/index.d.ts new file mode 100644 index 00000000..e04bf95c --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { beTarask } from 'date-fns/locale' +export default beTarask diff --git a/node_modules/date-fns/esm/locale/be-tarask/index.js b/node_modules/date-fns/esm/locale/be-tarask/index.js new file mode 100644 index 00000000..b1f8c7ea --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears]{@link https://github.com/nopears} + */ + +var locale = { + code: 'be-tarask', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be-tarask/index.js.flow b/node_modules/date-fns/esm/locale/be-tarask/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/be-tarask/package.json b/node_modules/date-fns/esm/locale/be-tarask/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be-tarask/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js new file mode 100644 index 00000000..bb7b6d72 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/formatDistance/index.js @@ -0,0 +1,247 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'праз ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' таму'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'праз паўхвіліны'; + } else { + return 'паўхвіліны таму'; + } + } + + return 'паўхвіліны'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менш за секунду', + singularNominative: 'менш за {{count}} секунду', + singularGenitive: 'менш за {{count}} секунды', + pluralGenitive: 'менш за {{count}} секунд' + }, + future: { + one: 'менш, чым праз секунду', + singularNominative: 'менш, чым праз {{count}} секунду', + singularGenitive: 'менш, чым праз {{count}} секунды', + pluralGenitive: 'менш, чым праз {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду таму', + singularGenitive: '{{count}} секунды таму', + pluralGenitive: '{{count}} секунд таму' + }, + future: { + singularNominative: 'праз {{count}} секунду', + singularGenitive: 'праз {{count}} секунды', + pluralGenitive: 'праз {{count}} секунд' + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менш за хвіліну', + singularNominative: 'менш за {{count}} хвіліну', + singularGenitive: 'менш за {{count}} хвіліны', + pluralGenitive: 'менш за {{count}} хвілін' + }, + future: { + one: 'менш, чым праз хвіліну', + singularNominative: 'менш, чым праз {{count}} хвіліну', + singularGenitive: 'менш, чым праз {{count}} хвіліны', + pluralGenitive: 'менш, чым праз {{count}} хвілін' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвіліна', + singularGenitive: '{{count}} хвіліны', + pluralGenitive: '{{count}} хвілін' + }, + past: { + singularNominative: '{{count}} хвіліну таму', + singularGenitive: '{{count}} хвіліны таму', + pluralGenitive: '{{count}} хвілін таму' + }, + future: { + singularNominative: 'праз {{count}} хвіліну', + singularGenitive: 'праз {{count}} хвіліны', + pluralGenitive: 'праз {{count}} хвілін' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} гадзіны', + singularGenitive: 'каля {{count}} гадзін', + pluralGenitive: 'каля {{count}} гадзін' + }, + future: { + singularNominative: 'прыблізна праз {{count}} гадзіну', + singularGenitive: 'прыблізна праз {{count}} гадзіны', + pluralGenitive: 'прыблізна праз {{count}} гадзін' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} гадзіна', + singularGenitive: '{{count}} гадзіны', + pluralGenitive: '{{count}} гадзін' + }, + past: { + singularNominative: '{{count}} гадзіну таму', + singularGenitive: '{{count}} гадзіны таму', + pluralGenitive: '{{count}} гадзін таму' + }, + future: { + singularNominative: 'праз {{count}} гадзіну', + singularGenitive: 'праз {{count}} гадзіны', + pluralGenitive: 'праз {{count}} гадзін' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} дзень', + singularGenitive: '{{count}} дні', + pluralGenitive: '{{count}} дзён' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + // TODO + singularGenitive: 'каля {{count}} месяцаў', + // TODO + pluralGenitive: 'каля {{count}} месяцаў' // TODO + + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + // TODO + singularGenitive: 'прыблізна праз {{count}} месяцы', + // TODO + pluralGenitive: 'прыблізна праз {{count}} месяцаў' // TODO + + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + singularGenitive: 'каля {{count}} месяцаў', + pluralGenitive: 'каля {{count}} месяцаў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + singularGenitive: 'прыблізна праз {{count}} месяцы', + pluralGenitive: 'прыблізна праз {{count}} месяцаў' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} года', + singularGenitive: 'каля {{count}} гадоў', + pluralGenitive: 'каля {{count}} гадоў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} год', + singularGenitive: 'прыблізна праз {{count}} гады', + pluralGenitive: 'прыблізна праз {{count}} гадоў' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} гады', + pluralGenitive: '{{count}} гадоў' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больш за {{count}} год', + singularGenitive: 'больш за {{count}} гады', + pluralGenitive: 'больш за {{count}} гадоў' + }, + future: { + singularNominative: 'больш, чым праз {{count}} год', + singularGenitive: 'больш, чым праз {{count}} гады', + pluralGenitive: 'больш, чым праз {{count}} гадоў' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'амаль {{count}} год', + singularGenitive: 'амаль {{count}} гады', + pluralGenitive: 'амаль {{count}} гадоў' + }, + future: { + singularNominative: 'амаль праз {{count}} год', + singularGenitive: 'амаль праз {{count}} гады', + pluralGenitive: 'амаль праз {{count}} гадоў' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/be/_lib/formatLong/index.js new file mode 100644 index 00000000..c21b41cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/be/_lib/formatRelative/index.js new file mode 100644 index 00000000..f36c1114 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/formatRelative/index.js @@ -0,0 +1,85 @@ +import { toDate } from "../../../../index.js"; +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var accusativeWeekdays = ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацвер', 'пятніцу', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёння а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/_lib/localize/index.js b/node_modules/date-fns/esm/locale/be/_lib/localize/index.js new file mode 100644 index 00000000..0ccc91b1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/localize/index.js @@ -0,0 +1,151 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['да н.э.', 'н.э.'], + abbreviated: ['да н. э.', 'н. э.'], + wide: ['да нашай эры', 'нашай эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ы кв.', '2-і кв.', '3-і кв.', '4-ы кв.'], + wide: ['1-ы квартал', '2-і квартал', '3-і квартал', '4-ы квартал'] +}; +var monthValues = { + narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'май', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'], + wide: ['студзень', 'люты', 'сакавік', 'красавік', 'май', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'снежань'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'мая', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'], + wide: ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'мая', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'снежня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'А', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'аў', 'ср', 'чц', 'пт', 'сб'], + abbreviated: ['нядз', 'пан', 'аўт', 'сер', 'чац', 'пят', 'суб'], + wide: ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацвер', 'пятніца', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніца', + afternoon: 'дзень', + evening: 'вечар', + night: 'ноч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніцы', + afternoon: 'дня', + evening: 'вечара', + night: 'ночы' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + + if (unit === 'date') { + suffix = '-га'; + } else if (unit === 'hour' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-і' : '-ы'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/_lib/match/index.js b/node_modules/date-fns/esm/locale/be/_lib/match/index.js new file mode 100644 index 00000000..fa4b1a16 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^с/i, /^к/i, /^м/i, /^ч/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^с/i], + any: [/^ст/i, /^лю/i, /^са/i, /^кр/i, /^ма/i, /^ч/i, /^ліп/i, /^ж/i, /^в/i, /^ка/i, /^ліс/i, /^сн/i] +}; +var matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/index.d.ts b/node_modules/date-fns/esm/locale/be/index.d.ts new file mode 100644 index 00000000..d3cec407 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { be } from 'date-fns/locale' +export default be diff --git a/node_modules/date-fns/esm/locale/be/index.js b/node_modules/date-fns/esm/locale/be/index.js new file mode 100644 index 00000000..eecc1c11 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik]{@link https://github.com/alyrik} + * @author Martin Wind [@arvigeus]{@link https://github.com/mawi12345} + */ + +var locale = { + code: 'be', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/be/index.js.flow b/node_modules/date-fns/esm/locale/be/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/be/package.json b/node_modules/date-fns/esm/locale/be/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/be/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/bg/_lib/formatDistance/index.js new file mode 100644 index 00000000..6af73c48 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'по-малко от секунда', + other: 'по-малко от {{count}} секунди' + }, + xSeconds: { + one: '1 секунда', + other: '{{count}} секунди' + }, + halfAMinute: 'половин минута', + lessThanXMinutes: { + one: 'по-малко от минута', + other: 'по-малко от {{count}} минути' + }, + xMinutes: { + one: '1 минута', + other: '{{count}} минути' + }, + aboutXHours: { + one: 'около час', + other: 'около {{count}} часа' + }, + xHours: { + one: '1 час', + other: '{{count}} часа' + }, + xDays: { + one: '1 ден', + other: '{{count}} дни' + }, + aboutXWeeks: { + one: 'около седмица', + other: 'около {{count}} седмици' + }, + xWeeks: { + one: '1 седмица', + other: '{{count}} седмици' + }, + aboutXMonths: { + one: 'около месец', + other: 'около {{count}} месеца' + }, + xMonths: { + one: '1 месец', + other: '{{count}} месеца' + }, + aboutXYears: { + one: 'около година', + other: 'около {{count}} години' + }, + xYears: { + one: '1 година', + other: '{{count}} години' + }, + overXYears: { + one: 'над година', + other: 'над {{count}} години' + }, + almostXYears: { + one: 'почти година', + other: 'почти {{count}} години' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'след ' + result; + } else { + return 'преди ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/bg/_lib/formatLong/index.js new file mode 100644 index 00000000..fd7da90c --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/bg/_lib/formatRelative/index.js new file mode 100644 index 00000000..9d0cefbc --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/formatRelative/index.js @@ -0,0 +1,93 @@ +import toDate from "../../../../toDate/index.js"; +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +// Adapted from the `ru` translation +var weekdays = ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота']; + +function lastWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'миналата " + weekday + " в' p"; + + case 1: + case 2: + case 4: + case 5: + return "'миналия " + weekday + " в' p"; + } +} + +function thisWeek(day) { + var weekday = weekdays[day]; + + if (day === 2 + /* Tue */ + ) { + return "'във " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следващата " + weekday + " в' p"; + + case 1: + case 2: + case 4: + case 5: + return "'следващия " + weekday + " в' p"; + } +} + +var lastWeekFormatToken = function lastWeekFormatToken(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormatToken = function nextWeekFormatToken(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormatToken, + yesterday: "'вчера в' p", + today: "'днес в' p", + tomorrow: "'утре в' p", + nextWeek: nextWeekFormatToken, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/_lib/localize/index.js b/node_modules/date-fns/esm/locale/bg/_lib/localize/index.js new file mode 100644 index 00000000..afcd464c --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/localize/index.js @@ -0,0 +1,105 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['пр.н.е.', 'н.е.'], + abbreviated: ['преди н. е.', 'н. е.'], + wide: ['преди новата ера', 'новата ера'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-во тримес.', '2-ро тримес.', '3-то тримес.', '4-то тримес.'], + wide: ['1-во тримесечие', '2-ро тримесечие', '3-то тримесечие', '4-то тримесечие'] +}; +var monthValues = { + abbreviated: ['яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг', 'сеп', 'окт', 'ное', 'дек'], + wide: ['януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септември', 'октомври', 'ноември', 'декември'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['нед', 'пон', 'вто', 'сря', 'чет', 'пет', 'съб'], + wide: ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота'] +}; +var dayPeriodValues = { + wide: { + am: 'преди обяд', + pm: 'след обяд', + midnight: 'в полунощ', + noon: 'на обяд', + morning: 'сутринта', + afternoon: 'следобед', + evening: 'вечерта', + night: 'през нощта' + } +}; + +function isFeminine(unit) { + return unit === 'year' || unit === 'week' || unit === 'minute' || unit === 'second'; +} + +function isNeuter(unit) { + return unit === 'quarter'; +} + +function numberWithSuffix(number, unit, masculine, feminine, neuter) { + var suffix = isNeuter(unit) ? neuter : isFeminine(unit) ? feminine : masculine; + return number + '-' + suffix; +} + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (number === 0) { + return numberWithSuffix(0, unit, 'ев', 'ева', 'ево'); + } else if (number % 1000 === 0) { + return numberWithSuffix(number, unit, 'ен', 'на', 'но'); + } else if (number % 100 === 0) { + return numberWithSuffix(number, unit, 'тен', 'тна', 'тно'); + } + + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return numberWithSuffix(number, unit, 'ви', 'ва', 'во'); + + case 2: + return numberWithSuffix(number, unit, 'ри', 'ра', 'ро'); + + case 7: + case 8: + return numberWithSuffix(number, unit, 'ми', 'ма', 'мо'); + } + } + + return numberWithSuffix(number, unit, 'ти', 'та', 'то'); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/_lib/match/index.js b/node_modules/date-fns/esm/locale/bg/_lib/match/index.js new file mode 100644 index 00000000..a107f9d0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/_lib/match/index.js @@ -0,0 +1,95 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(преди новата ера|новата ера|нова ера)/i +}; +var parseEraPatterns = { + any: [/^п/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?o?)? тримес.?/i, + wide: /^[1234](-?[врт]?о?)? тримесечие/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)/i, + abbreviated: /^(нед|пон|вто|сря|чет|пет|съб)/i, + wide: /^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[ъб]/i] +}; +var matchMonthPatterns = { + abbreviated: /^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, + wide: /^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i +}; +var parseMonthPatterns = { + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^май/i, /^юн/i, /^юл/i, /^ав/i, /^се/i, /^окт/i, /^но/i, /^де/i] +}; +var matchDayPeriodPatterns = { + any: /^(преди о|след о|в по|на о|през|веч|сут|следо)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^преди о/i, + pm: /^след о/i, + midnight: /^в пол/i, + noon: /^на об/i, + morning: /^сут/i, + afternoon: /^следо/i, + evening: /^веч/i, + night: /^през н/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/index.d.ts b/node_modules/date-fns/esm/locale/bg/index.d.ts new file mode 100644 index 00000000..485fc594 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bg } from 'date-fns/locale' +export default bg diff --git a/node_modules/date-fns/esm/locale/bg/index.js b/node_modules/date-fns/esm/locale/bg/index.js new file mode 100644 index 00000000..4eda3a41 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus]{@link https://github.com/arvigeus} + * @author Tsvetan Ovedenski [@fintara]{@link https://github.com/fintara} + */ + +var locale = { + code: 'bg', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bg/index.js.flow b/node_modules/date-fns/esm/locale/bg/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/bg/package.json b/node_modules/date-fns/esm/locale/bg/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bg/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/bn/_lib/formatDistance/index.js new file mode 100644 index 00000000..363feb58 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/formatDistance/index.js @@ -0,0 +1,89 @@ +import { numberToLocale } from "../localize/index.js"; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'প্রায় ১ সেকেন্ড', + other: 'প্রায় {{count}} সেকেন্ড' + }, + xSeconds: { + one: '১ সেকেন্ড', + other: '{{count}} সেকেন্ড' + }, + halfAMinute: 'আধ মিনিট', + lessThanXMinutes: { + one: 'প্রায় ১ মিনিট', + other: 'প্রায় {{count}} মিনিট' + }, + xMinutes: { + one: '১ মিনিট', + other: '{{count}} মিনিট' + }, + aboutXHours: { + one: 'প্রায় ১ ঘন্টা', + other: 'প্রায় {{count}} ঘন্টা' + }, + xHours: { + one: '১ ঘন্টা', + other: '{{count}} ঘন্টা' + }, + xDays: { + one: '১ দিন', + other: '{{count}} দিন' + }, + aboutXWeeks: { + one: 'প্রায় ১ সপ্তাহ', + other: 'প্রায় {{count}} সপ্তাহ' + }, + xWeeks: { + one: '১ সপ্তাহ', + other: '{{count}} সপ্তাহ' + }, + aboutXMonths: { + one: 'প্রায় ১ মাস', + other: 'প্রায় {{count}} মাস' + }, + xMonths: { + one: '১ মাস', + other: '{{count}} মাস' + }, + aboutXYears: { + one: 'প্রায় ১ বছর', + other: 'প্রায় {{count}} বছর' + }, + xYears: { + one: '১ বছর', + other: '{{count}} বছর' + }, + overXYears: { + one: '১ বছরের বেশি', + other: '{{count}} বছরের বেশি' + }, + almostXYears: { + one: 'প্রায় ১ বছর', + other: 'প্রায় {{count}} বছর' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', numberToLocale(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' এর মধ্যে'; + } else { + return result + ' আগে'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/bn/_lib/formatLong/index.js new file mode 100644 index 00000000..82c91f3f --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} {{time}} 'সময়'", + long: "{{date}} {{time}} 'সময়'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/bn/_lib/formatRelative/index.js new file mode 100644 index 00000000..a2d04b8f --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/_lib/localize/index.js b/node_modules/date-fns/esm/locale/bn/_lib/localize/index.js new file mode 100644 index 00000000..cf6e309d --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/localize/index.js @@ -0,0 +1,202 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var numberValues = { + locale: { + '1': '১', + '2': '২', + '3': '৩', + '4': '৪', + '5': '৫', + '6': '৬', + '7': '৭', + '8': '৮', + '9': '৯', + '0': '০' + }, + number: { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0' + } +}; +var eraValues = { + narrow: ['খ্রিঃপূঃ', 'খ্রিঃ'], + abbreviated: ['খ্রিঃপূর্ব', 'খ্রিঃ'], + wide: ['খ্রিস্টপূর্ব', 'খ্রিস্টাব্দ'] +}; +var quarterValues = { + narrow: ['১', '২', '৩', '৪'], + abbreviated: ['১ত্রৈ', '২ত্রৈ', '৩ত্রৈ', '৪ত্রৈ'], + wide: ['১ম ত্রৈমাসিক', '২য় ত্রৈমাসিক', '৩য় ত্রৈমাসিক', '৪র্থ ত্রৈমাসিক'] +}; +var monthValues = { + narrow: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], + abbreviated: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], + wide: ['জানুয়ারি', 'ফেব্রুয়ারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'] +}; +var dayValues = { + narrow: ['র', 'সো', 'ম', 'বু', 'বৃ', 'শু', 'শ'], + short: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহ', 'শুক্র', 'শনি'], + abbreviated: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহ', 'শুক্র', 'শনি'], + wide: ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার ', 'শুক্রবার', 'শনিবার'] +}; +var dayPeriodValues = { + narrow: { + am: 'পূ', + pm: 'অপ', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + abbreviated: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + wide: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'পূ', + pm: 'অপ', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + abbreviated: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + wide: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + } +}; + +function dateOrdinalNumber(number, localeNumber) { + if (number > 18 && number <= 31) { + return localeNumber + 'শে'; + } else { + switch (number) { + case 1: + return localeNumber + 'লা'; + + case 2: + case 3: + return localeNumber + 'রা'; + + case 4: + return localeNumber + 'ঠা'; + + default: + return localeNumber + 'ই'; + } + } +} + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var localeNumber = numberToLocale(number); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'date') { + return dateOrdinalNumber(number, localeNumber); + } + + if (number > 10 || number === 0) return localeNumber + 'তম'; + var rem10 = number % 10; + + switch (rem10) { + case 2: + case 3: + return localeNumber + 'য়'; + + case 4: + return localeNumber + 'র্থ'; + + case 6: + return localeNumber + 'ষ্ঠ'; + + default: + return localeNumber + 'ম'; + } +}; // function localeToNumber(locale: string): number { +// const enNumber = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { +// return numberValues.number[match as keyof typeof numberValues.number] +// }) +// return Number(enNumber) +// } + + +export function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/_lib/match/index.js b/node_modules/date-fns/esm/locale/bn/_lib/match/index.js new file mode 100644 index 00000000..c830aefd --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/_lib/match/index.js @@ -0,0 +1,102 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(খ্রিঃপূঃ|খ্রিঃ)/i, + abbreviated: /^(খ্রিঃপূর্ব|খ্রিঃ)/i, + wide: /^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i +}; +var parseEraPatterns = { + narrow: [/^খ্রিঃপূঃ/i, /^খ্রিঃ/i], + abbreviated: [/^খ্রিঃপূর্ব/i, /^খ্রিঃ/i], + wide: [/^খ্রিস্টপূর্ব/i, /^খ্রিস্টাব্দ/i] +}; +var matchQuarterPatterns = { + narrow: /^[১২৩৪]/i, + abbreviated: /^[১২৩৪]ত্রৈ/i, + wide: /^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i +}; +var parseQuarterPatterns = { + any: [/১/i, /২/i, /৩/i, /৪/i] +}; +var matchMonthPatterns = { + narrow: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + abbreviated: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + wide: /^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i +}; +var parseMonthPatterns = { + any: [/^জানু/i, /^ফেব্রু/i, /^মার্চ/i, /^এপ্রিল/i, /^মে/i, /^জুন/i, /^জুলাই/i, /^আগস্ট/i, /^সেপ্ট/i, /^অক্টো/i, /^নভে/i, /^ডিসে/i] +}; +var matchDayPatterns = { + narrow: /^(র|সো|ম|বু|বৃ|শু|শ)+/i, + short: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + abbreviated: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + wide: /^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i +}; +var parseDayPatterns = { + narrow: [/^র/i, /^সো/i, /^ম/i, /^বু/i, /^বৃ/i, /^শু/i, /^শ/i], + short: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + abbreviated: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + wide: [/^রবিবার/i, /^সোমবার/i, /^মঙ্গলবার/i, /^বুধবার/i, /^বৃহস্পতিবার /i, /^শুক্রবার/i, /^শনিবার/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + abbreviated: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + wide: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^পূ/i, + pm: /^অপ/i, + midnight: /^মধ্যরাত/i, + noon: /^মধ্যাহ্ন/i, + morning: /সকাল/i, + afternoon: /বিকাল/i, + evening: /সন্ধ্যা/i, + night: /রাত/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/index.d.ts b/node_modules/date-fns/esm/locale/bn/index.d.ts new file mode 100644 index 00000000..9f9b38cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bn } from 'date-fns/locale' +export default bn diff --git a/node_modules/date-fns/esm/locale/bn/index.js b/node_modules/date-fns/esm/locale/bn/index.js new file mode 100644 index 00000000..c1a35687 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman]{@link https://github.com/touhidrahman} + * @author Farhad Yasir [@nutboltu]{@link https://github.com/nutboltu} + */ + +var locale = { + code: 'bn', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bn/index.js.flow b/node_modules/date-fns/esm/locale/bn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/bn/package.json b/node_modules/date-fns/esm/locale/bn/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bn/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/bs/_lib/formatDistance/index.js new file mode 100644 index 00000000..9f787639 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/_lib/formatDistance/index.js @@ -0,0 +1,175 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 sedmicu', + withPrepositionAgo: 'oko 1 sedmicu', + withPrepositionIn: 'oko 1 sedmicu' + }, + dual: 'oko {{count}} sedmice', + other: 'oko {{count}} sedmice' + }, + xWeeks: { + one: { + standalone: '1 sedmicu', + withPrepositionAgo: '1 sedmicu', + withPrepositionIn: '1 sedmicu' + }, + dual: '{{count}} sedmice', + other: '{{count}} sedmice' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mjesec', + withPrepositionAgo: 'oko 1 mjesec', + withPrepositionIn: 'oko 1 mjesec' + }, + dual: 'oko {{count}} mjeseca', + other: 'oko {{count}} mjeseci' + }, + xMonths: { + one: { + standalone: '1 mjesec', + withPrepositionAgo: '1 mjesec', + withPrepositionIn: '1 mjesec' + }, + dual: '{{count}} mjeseca', + other: '{{count}} mjeseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/bs/_lib/formatLong/index.js new file mode 100644 index 00000000..16ee53dd --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/bs/_lib/formatRelative/index.js new file mode 100644 index 00000000..76c0ef66 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/_lib/formatRelative/index.js @@ -0,0 +1,48 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošle nedjelje u' p"; + + case 3: + return "'prošle srijede u' p"; + + case 6: + return "'prošle subote u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'sljedeće nedjelje u' p"; + + case 3: + return "'sljedeću srijedu u' p"; + + case 6: + return "'sljedeću subotu u' p"; + + default: + return "'sljedeći' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/_lib/localize/index.js b/node_modules/date-fns/esm/locale/bs/_lib/localize/index.js new file mode 100644 index 00000000..e9d1cd07 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Prije Hrista', 'Poslije Hrista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'poslije podne', + evening: 'uveče', + night: 'noću' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'poslije podne', + evening: 'uveče', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number) + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/_lib/match/index.js b/node_modules/date-fns/esm/locale/bs/_lib/match/index.js new file mode 100644 index 00000000..bd359e2e --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/index.d.ts b/node_modules/date-fns/esm/locale/bs/index.d.ts new file mode 100644 index 00000000..cbb00d93 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bs } from 'date-fns/locale' +export default bs diff --git a/node_modules/date-fns/esm/locale/bs/index.js b/node_modules/date-fns/esm/locale/bs/index.js new file mode 100644 index 00000000..7566f006 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic]{@link https://github.com/branislavlazic} + */ + +var locale = { + code: 'bs', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/bs/index.js.flow b/node_modules/date-fns/esm/locale/bs/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/bs/package.json b/node_modules/date-fns/esm/locale/bs/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/bs/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js new file mode 100644 index 00000000..a558ba5d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/formatDistance/index.js @@ -0,0 +1,103 @@ +/** + * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. + * l'1 de juliol ('l'u') + * l'11 de novembre ('l'onze') + * l'11a clàusula del contracte ('l'onzena') + * la contractació d'11 jugadors ('d'onze') + * l'aval d'11.000 socis ('d'onze mil') + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes + */ +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menys d'un segon", + eleven: "menys d'onze segons", + other: 'menys de {{count}} segons' + }, + xSeconds: { + one: '1 segon', + other: '{{count}} segons' + }, + halfAMinute: 'mig minut', + lessThanXMinutes: { + one: "menys d'un minut", + eleven: "menys d'onze minuts", + other: 'menys de {{count}} minuts' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minuts' + }, + aboutXHours: { + one: 'aproximadament una hora', + other: 'aproximadament {{count}} hores' + }, + xHours: { + one: '1 hora', + other: '{{count}} hores' + }, + xDays: { + one: '1 dia', + other: '{{count}} dies' + }, + aboutXWeeks: { + one: 'aproximadament una setmana', + other: 'aproximadament {{count}} setmanes' + }, + xWeeks: { + one: '1 setmana', + other: '{{count}} setmanes' + }, + aboutXMonths: { + one: 'aproximadament un mes', + other: 'aproximadament {{count}} mesos' + }, + xMonths: { + one: '1 mes', + other: '{{count}} mesos' + }, + aboutXYears: { + one: 'aproximadament un any', + other: 'aproximadament {{count}} anys' + }, + xYears: { + one: '1 any', + other: '{{count}} anys' + }, + overXYears: { + one: "més d'un any", + eleven: "més d'onze anys", + other: 'més de {{count}} anys' + }, + almostXYears: { + one: 'gairebé un any', + other: 'gairebé {{count}} anys' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 11 && tokenValue.eleven) { + result = tokenValue.eleven; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ca/_lib/formatLong/index.js new file mode 100644 index 00000000..da915132 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a les' {{time}}", + long: "{{date}} 'a les' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js new file mode 100644 index 00000000..528f7da1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +var formatRelativeLocale = { + lastWeek: "'el' eeee 'passat a la' LT", + yesterday: "'ahir a la' p", + today: "'avui a la' p", + tomorrow: "'demà a la' p", + nextWeek: "eeee 'a la' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'passat a les' p", + yesterday: "'ahir a les' p", + today: "'avui a les' p", + tomorrow: "'demà a les' p", + nextWeek: "eeee 'a les' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ca/_lib/localize/index.js new file mode 100644 index 00000000..7469d277 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/localize/index.js @@ -0,0 +1,185 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +/** + * General information + * Reference: https://aplicacions.llengua.gencat.cat + * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html + */ + +/** + * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + */ + +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a. de C.', 'd. de C.'], + wide: ['abans de Crist', 'després de Crist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1r trimestre', '2n trimestre', '3r trimestre', '4t trimestre'] +}; +/** + * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. + * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes + */ + +var monthValues = { + narrow: ['GN', 'FB', 'MÇ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'], + + /** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ + abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'], + wide: ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'] +}; +/** + * Les abreviatures dels dies de la setmana comencen totes amb la lletra d. + * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. + * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. + * + * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. + * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. + * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot + */ + +var dayValues = { + narrow: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + short: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + abbreviated: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + wide: ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'] +}; +/** + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes + */ + +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + } +}; +/** + * Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. + * És optatiu posar punt després de la lletra. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 + */ + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'r'; + + case 2: + return number + 'n'; + + case 3: + return number + 'r'; + + case 4: + return number + 't'; + } + } + + return number + 'è'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/_lib/match/index.js b/node_modules/date-fns/esm/locale/ca/_lib/match/index.js new file mode 100644 index 00000000..32d6bdad --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/_lib/match/index.js @@ -0,0 +1,103 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(è|r|n|r|t)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a. de C.|d. de C.)/i, + wide: /^(abans de Crist|despr[eé]s de Crist)/i +}; +var parseEraPatterns = { + narrow: [/^aC/i, /^dC/i], + abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], + wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](è|r|n|r|t)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, + abbreviated: /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, + wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i +}; +var parseMonthPatterns = { + narrow: [/^GN/i, /^FB/i, /^MÇ/i, /^AB/i, /^MG/i, /^JN/i, /^JL/i, /^AG/i, /^ST/i, /^OC/i, /^NV/i, /^DS/i], + abbreviated: [/^gen./i, /^febr./i, /^març/i, /^abr./i, /^maig/i, /^juny/i, /^jul./i, /^ag./i, /^set./i, /^oct./i, /^nov./i, /^des./i], + wide: [/^gener/i, /^febrer/i, /^març/i, /^abril/i, /^maig/i, /^juny/i, /^juliol/i, /^agost/i, /^setembre/i, /^octubre/i, /^novembre/i, /^desembre/i] +}; +var matchDayPatterns = { + narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i +}; +var parseDayPatterns = { + narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + wide: [/^diumenge/i, /^dilluns/i, /^dimarts/i, /^dimecres/i, /^dijous/i, /^divendres/i, /^disssabte/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, + abbreviated: /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, + wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mitjanit/i, + noon: /^migdia/i, + morning: /matí/i, + afternoon: /tarda/i, + evening: /vespre/i, + night: /nit/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/index.d.ts b/node_modules/date-fns/esm/locale/ca/index.d.ts new file mode 100644 index 00000000..82742f73 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ca } from 'date-fns/locale' +export default ca diff --git a/node_modules/date-fns/esm/locale/ca/index.js b/node_modules/date-fns/esm/locale/ca/index.js new file mode 100644 index 00000000..4b0c7f33 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} + * @author Alex Vizcaino [@avizcaino]{@link https://github.com/avizcaino} + */ + +var locale = { + code: 'ca', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; // throw new Error('ca locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA') \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ca/index.js.flow b/node_modules/date-fns/esm/locale/ca/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ca/package.json b/node_modules/date-fns/esm/locale/ca/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ca/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/cs/_lib/formatDistance/index.js new file mode 100644 index 00000000..0b9dc007 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/formatDistance/index.js @@ -0,0 +1,297 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'méně než sekunda', + past: 'před méně než sekundou', + future: 'za méně než sekundu' + }, + few: { + regular: 'méně než {{count}} sekundy', + past: 'před méně než {{count}} sekundami', + future: 'za méně než {{count}} sekundy' + }, + many: { + regular: 'méně než {{count}} sekund', + past: 'před méně než {{count}} sekundami', + future: 'za méně než {{count}} sekund' + } + }, + xSeconds: { + one: { + regular: 'sekunda', + past: 'před sekundou', + future: 'za sekundu' + }, + few: { + regular: '{{count}} sekundy', + past: 'před {{count}} sekundami', + future: 'za {{count}} sekundy' + }, + many: { + regular: '{{count}} sekund', + past: 'před {{count}} sekundami', + future: 'za {{count}} sekund' + } + }, + halfAMinute: { + type: 'other', + other: { + regular: 'půl minuty', + past: 'před půl minutou', + future: 'za půl minuty' + } + }, + lessThanXMinutes: { + one: { + regular: 'méně než minuta', + past: 'před méně než minutou', + future: 'za méně než minutu' + }, + few: { + regular: 'méně než {{count}} minuty', + past: 'před méně než {{count}} minutami', + future: 'za méně než {{count}} minuty' + }, + many: { + regular: 'méně než {{count}} minut', + past: 'před méně než {{count}} minutami', + future: 'za méně než {{count}} minut' + } + }, + xMinutes: { + one: { + regular: 'minuta', + past: 'před minutou', + future: 'za minutu' + }, + few: { + regular: '{{count}} minuty', + past: 'před {{count}} minutami', + future: 'za {{count}} minuty' + }, + many: { + regular: '{{count}} minut', + past: 'před {{count}} minutami', + future: 'za {{count}} minut' + } + }, + aboutXHours: { + one: { + regular: 'přibližně hodina', + past: 'přibližně před hodinou', + future: 'přibližně za hodinu' + }, + few: { + regular: 'přibližně {{count}} hodiny', + past: 'přibližně před {{count}} hodinami', + future: 'přibližně za {{count}} hodiny' + }, + many: { + regular: 'přibližně {{count}} hodin', + past: 'přibližně před {{count}} hodinami', + future: 'přibližně za {{count}} hodin' + } + }, + xHours: { + one: { + regular: 'hodina', + past: 'před hodinou', + future: 'za hodinu' + }, + few: { + regular: '{{count}} hodiny', + past: 'před {{count}} hodinami', + future: 'za {{count}} hodiny' + }, + many: { + regular: '{{count}} hodin', + past: 'před {{count}} hodinami', + future: 'za {{count}} hodin' + } + }, + xDays: { + one: { + regular: 'den', + past: 'před dnem', + future: 'za den' + }, + few: { + regular: '{{count}} dny', + past: 'před {{count}} dny', + future: 'za {{count}} dny' + }, + many: { + regular: '{{count}} dní', + past: 'před {{count}} dny', + future: 'za {{count}} dní' + } + }, + aboutXWeeks: { + one: { + regular: 'přibližně týden', + past: 'přibližně před týdnem', + future: 'přibližně za týden' + }, + few: { + regular: 'přibližně {{count}} týdny', + past: 'přibližně před {{count}} týdny', + future: 'přibližně za {{count}} týdny' + }, + many: { + regular: 'přibližně {{count}} týdnů', + past: 'přibližně před {{count}} týdny', + future: 'přibližně za {{count}} týdnů' + } + }, + xWeeks: { + one: { + regular: 'týden', + past: 'před týdnem', + future: 'za týden' + }, + few: { + regular: '{{count}} týdny', + past: 'před {{count}} týdny', + future: 'za {{count}} týdny' + }, + many: { + regular: '{{count}} týdnů', + past: 'před {{count}} týdny', + future: 'za {{count}} týdnů' + } + }, + aboutXMonths: { + one: { + regular: 'přibližně měsíc', + past: 'přibližně před měsícem', + future: 'přibližně za měsíc' + }, + few: { + regular: 'přibližně {{count}} měsíce', + past: 'přibližně před {{count}} měsíci', + future: 'přibližně za {{count}} měsíce' + }, + many: { + regular: 'přibližně {{count}} měsíců', + past: 'přibližně před {{count}} měsíci', + future: 'přibližně za {{count}} měsíců' + } + }, + xMonths: { + one: { + regular: 'měsíc', + past: 'před měsícem', + future: 'za měsíc' + }, + few: { + regular: '{{count}} měsíce', + past: 'před {{count}} měsíci', + future: 'za {{count}} měsíce' + }, + many: { + regular: '{{count}} měsíců', + past: 'před {{count}} měsíci', + future: 'za {{count}} měsíců' + } + }, + aboutXYears: { + one: { + regular: 'přibližně rok', + past: 'přibližně před rokem', + future: 'přibližně za rok' + }, + few: { + regular: 'přibližně {{count}} roky', + past: 'přibližně před {{count}} roky', + future: 'přibližně za {{count}} roky' + }, + many: { + regular: 'přibližně {{count}} roků', + past: 'přibližně před {{count}} roky', + future: 'přibližně za {{count}} roků' + } + }, + xYears: { + one: { + regular: 'rok', + past: 'před rokem', + future: 'za rok' + }, + few: { + regular: '{{count}} roky', + past: 'před {{count}} roky', + future: 'za {{count}} roky' + }, + many: { + regular: '{{count}} roků', + past: 'před {{count}} roky', + future: 'za {{count}} roků' + } + }, + overXYears: { + one: { + regular: 'více než rok', + past: 'před více než rokem', + future: 'za více než rok' + }, + few: { + regular: 'více než {{count}} roky', + past: 'před více než {{count}} roky', + future: 'za více než {{count}} roky' + }, + many: { + regular: 'více než {{count}} roků', + past: 'před více než {{count}} roky', + future: 'za více než {{count}} roků' + } + }, + almostXYears: { + one: { + regular: 'skoro rok', + past: 'skoro před rokem', + future: 'skoro za rok' + }, + few: { + regular: 'skoro {{count}} roky', + past: 'skoro před {{count}} roky', + future: 'skoro za {{count}} roky' + }, + many: { + regular: 'skoro {{count}} roků', + past: 'skoro před {{count}} roky', + future: 'skoro za {{count}} roků' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var pluralResult; + var tokenValue = formatDistanceLocale[token]; // cs pluralization + + if (tokenValue.type === 'other') { + pluralResult = tokenValue.other; + } else if (count === 1) { + pluralResult = tokenValue.one; + } else if (count > 1 && count < 5) { + pluralResult = tokenValue.few; + } else { + pluralResult = tokenValue.many; + } // times + + + var suffixExist = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var comparison = options === null || options === void 0 ? void 0 : options.comparison; + var timeResult; + + if (suffixExist && comparison === -1) { + timeResult = pluralResult.past; + } else if (suffixExist && comparison === 1) { + timeResult = pluralResult.future; + } else { + timeResult = pluralResult.regular; + } + + return timeResult.replace('{{count}}', String(count)); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/cs/_lib/formatLong/index.js new file mode 100644 index 00000000..d5696edc --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM yyyy', + long: 'd. MMMM yyyy', + medium: 'd. M. yyyy', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'v' {{time}}", + long: "{{date}} 'v' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/cs/_lib/formatRelative/index.js new file mode 100644 index 00000000..d56e1dd9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/formatRelative/index.js @@ -0,0 +1,24 @@ +var accusativeWeekdays = ['neděli', 'pondělí', 'úterý', 'středu', 'čtvrtek', 'pátek', 'sobotu']; +var formatRelativeLocale = { + lastWeek: "'poslední' eeee 've' p", + yesterday: "'včera v' p", + today: "'dnes v' p", + tomorrow: "'zítra v' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/_lib/localize/index.js b/node_modules/date-fns/esm/locale/cs/_lib/localize/index.js new file mode 100644 index 00000000..9fc7ce67 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['př. n. l.', 'n. l.'], + abbreviated: ['př. n. l.', 'n. l.'], + wide: ['před naším letopočtem', 'našeho letopočtu'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí'], + wide: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí'] +}; +var monthValues = { + narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'], + abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'], + wide: ['leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'] +}; +var formattingMonthValues = { + narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'], + abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'], + wide: ['ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince'] +}; +var dayValues = { + narrow: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + short: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + abbreviated: ['ned', 'pon', 'úte', 'stř', 'čtv', 'pát', 'sob'], + wide: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + abbreviated: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'dopoledne', + pm: 'odpoledne', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + abbreviated: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'dopoledne', + pm: 'odpoledne', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/_lib/match/index.js b/node_modules/date-fns/esm/locale/cs/_lib/match/index.js new file mode 100644 index 00000000..dbde7790 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i +}; +var parseEraPatterns = { + any: [/^p[řr]/i, /^(po|n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i, + wide: /^[1234]\. [čc]tvrtlet[íi]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[lúubdkčcszřrlp]/i, + abbreviated: /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, + wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i +}; +var parseMonthPatterns = { + narrow: [/^l/i, /^[úu]/i, /^b/i, /^d/i, /^k/i, /^[čc]/i, /^[čc]/i, /^s/i, /^z/i, /^[řr]/i, /^l/i, /^p/i], + any: [/^led/i, /^[úu]n/i, /^b[řr]e/i, /^dub/i, /^kv[ěe]/i, /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, /^[čc]vc|[čc]erven(ec|ce)/i, /^srp/i, /^z[áa][řr]/i, /^[řr][íi]j/i, /^lis/i, /^pro/i] +}; +var matchDayPatterns = { + narrow: /^[npuúsčps]/i, + short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, + abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, + wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i], + any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i] +}; +var matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^dop/i, + pm: /^odp/i, + midnight: /^p[ůu]lnoc/i, + noon: /^poledne/i, + morning: /r[áa]no/i, + afternoon: /odpoledne/i, + evening: /ve[čc]er/i, + night: /noc/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/index.d.ts b/node_modules/date-fns/esm/locale/cs/index.d.ts new file mode 100644 index 00000000..a17dd220 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { cs } from 'date-fns/locale' +export default cs diff --git a/node_modules/date-fns/esm/locale/cs/index.js b/node_modules/date-fns/esm/locale/cs/index.js new file mode 100644 index 00000000..1218b45e --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus]{@link https://github.com/davidrus} + * @author Pavel Hrách [@SilenY]{@link https://github.com/SilenY} + * @author Jozef Bíroš [@JozefBiros]{@link https://github.com/JozefBiros} + */ + +var locale = { + code: 'cs', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cs/index.js.flow b/node_modules/date-fns/esm/locale/cs/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/cs/package.json b/node_modules/date-fns/esm/locale/cs/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cs/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/cy/_lib/formatDistance/index.js new file mode 100644 index 00000000..d32b4075 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'llai na eiliad', + other: 'llai na {{count}} eiliad' + }, + xSeconds: { + one: '1 eiliad', + other: '{{count}} eiliad' + }, + halfAMinute: 'hanner munud', + lessThanXMinutes: { + one: 'llai na munud', + two: 'llai na 2 funud', + other: 'llai na {{count}} munud' + }, + xMinutes: { + one: '1 munud', + two: '2 funud', + other: '{{count}} munud' + }, + aboutXHours: { + one: 'tua 1 awr', + other: 'tua {{count}} awr' + }, + xHours: { + one: '1 awr', + other: '{{count}} awr' + }, + xDays: { + one: '1 diwrnod', + two: '2 ddiwrnod', + other: '{{count}} diwrnod' + }, + aboutXWeeks: { + one: 'tua 1 wythnos', + two: 'tua pythefnos', + other: 'tua {{count}} wythnos' + }, + xWeeks: { + one: '1 wythnos', + two: 'pythefnos', + other: '{{count}} wythnos' + }, + aboutXMonths: { + one: 'tua 1 mis', + two: 'tua 2 fis', + other: 'tua {{count}} mis' + }, + xMonths: { + one: '1 mis', + two: '2 fis', + other: '{{count}} mis' + }, + aboutXYears: { + one: 'tua 1 flwyddyn', + two: 'tua 2 flynedd', + other: 'tua {{count}} mlynedd' + }, + xYears: { + one: '1 flwyddyn', + two: '2 flynedd', + other: '{{count}} mlynedd' + }, + overXYears: { + one: 'dros 1 flwyddyn', + two: 'dros 2 flynedd', + other: 'dros {{count}} mlynedd' + }, + almostXYears: { + one: 'bron 1 flwyddyn', + two: 'bron 2 flynedd', + other: 'bron {{count}} mlynedd' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'mewn ' + result; + } else { + return result + ' yn ôl'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/cy/_lib/formatLong/index.js new file mode 100644 index 00000000..c67ac494 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'am' {{time}}", + long: "{{date}} 'am' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/cy/_lib/formatRelative/index.js new file mode 100644 index 00000000..ad70d0eb --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'diwethaf am' p", + yesterday: "'ddoe am' p", + today: "'heddiw am' p", + tomorrow: "'yfory am' p", + nextWeek: "eeee 'am' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/_lib/localize/index.js b/node_modules/date-fns/esm/locale/cy/_lib/localize/index.js new file mode 100644 index 00000000..4f2d22a5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/localize/index.js @@ -0,0 +1,166 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['C', 'O'], + abbreviated: ['CC', 'OC'], + wide: ['Cyn Crist', 'Ar ôl Crist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Ch1', 'Ch2', 'Ch3', 'Ch4'], + wide: ['Chwarter 1af', '2ail chwarter', '3ydd chwarter', '4ydd chwarter'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['I', 'Ch', 'Ma', 'E', 'Mi', 'Me', 'G', 'A', 'Md', 'H', 'T', 'Rh'], + abbreviated: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'], + wide: ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'] +}; +var dayValues = { + narrow: ['S', 'Ll', 'M', 'M', 'I', 'G', 'S'], + short: ['Su', 'Ll', 'Ma', 'Me', 'Ia', 'Gw', 'Sa'], + abbreviated: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], + wide: ['dydd Sul', 'dydd Llun', 'dydd Mawrth', 'dydd Mercher', 'dydd Iau', 'dydd Gwener', 'dydd Sadwrn'] +}; +var dayPeriodValues = { + narrow: { + am: 'b', + pm: 'h', + midnight: 'hn', + noon: 'hd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + }, + abbreviated: { + am: 'yb', + pm: 'yh', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + }, + wide: { + am: 'y.b.', + pm: 'y.h.', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'b', + pm: 'h', + midnight: 'hn', + noon: 'hd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + }, + abbreviated: { + am: 'yb', + pm: 'yh', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + }, + wide: { + am: 'y.b.', + pm: 'y.h.', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + + if (number < 20) { + switch (number) { + case 0: + return number + 'fed'; + + case 1: + return number + 'af'; + + case 2: + return number + 'ail'; + + case 3: + case 4: + return number + 'ydd'; + + case 5: + case 6: + return number + 'ed'; + + case 7: + case 8: + case 9: + case 10: + case 12: + case 15: + case 18: + return number + 'fed'; + + case 11: + case 13: + case 14: + case 16: + case 17: + case 19: + return number + 'eg'; + } + } else if (number >= 50 && number <= 60 || number === 80 || number >= 100) { + return number + 'fed'; + } + + return number + 'ain'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/_lib/match/index.js b/node_modules/date-fns/esm/locale/cy/_lib/match/index.js new file mode 100644 index 00000000..e4698b20 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(c|o)/i, + abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, + wide: /^(cyn christ|ar ôl crist|ar ol crist)/i +}; +var parseEraPatterns = { + wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], + any: [/^c/i, /^o/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ch[1234]/i, + wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, + abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, + wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i +}; +var parseMonthPatterns = { + narrow: [/^i/i, /^ch/i, /^m/i, /^e/i, /^m/i, /^m/i, /^g/i, /^a/i, /^m/i, /^h/i, /^t/i, /^rh/i], + any: [/^io/i, /^ch/i, /^maw/i, /^e/i, /^mai/i, /^meh/i, /^g/i, /^a/i, /^med/i, /^h/i, /^t/i, /^rh/i] +}; +var matchDayPatterns = { + narrow: /^(s|ll|m|i|g)/i, + short: /^(su|ll|ma|me|ia|gw|sa)/i, + abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, + wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^ll/i, /^m/i, /^m/i, /^i/i, /^g/i, /^s/i], + wide: [/^dydd su/i, /^dydd ll/i, /^dydd ma/i, /^dydd me/i, /^dydd i/i, /^dydd g/i, /^dydd sa/i], + any: [/^su/i, /^ll/i, /^ma/i, /^me/i, /^i/i, /^g/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, + any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^b|(y\.?\s?b\.?)/i, + pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, + midnight: /^hn|hanner nos/i, + noon: /^hd|hanner dydd/i, + morning: /bore/i, + afternoon: /prynhawn/i, + evening: /^gyda'r nos$/i, + night: /blah/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/index.d.ts b/node_modules/date-fns/esm/locale/cy/index.d.ts new file mode 100644 index 00000000..8c1286be --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { cy } from 'date-fns/locale' +export default cy diff --git a/node_modules/date-fns/esm/locale/cy/index.js b/node_modules/date-fns/esm/locale/cy/index.js new file mode 100644 index 00000000..a7ce7ba0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo]{@link https://github.com/elmomalmo} + */ + +var locale = { + code: 'cy', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/cy/index.js.flow b/node_modules/date-fns/esm/locale/cy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/cy/package.json b/node_modules/date-fns/esm/locale/cy/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/cy/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/da/_lib/formatDistance/index.js new file mode 100644 index 00000000..9c4f0359 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre end ét sekund', + other: 'mindre end {{count}} sekunder' + }, + xSeconds: { + one: '1 sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'ét halvt minut', + lessThanXMinutes: { + one: 'mindre end ét minut', + other: 'mindre end {{count}} minutter' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minutter' + }, + aboutXHours: { + one: 'cirka 1 time', + other: 'cirka {{count}} timer' + }, + xHours: { + one: '1 time', + other: '{{count}} timer' + }, + xDays: { + one: '1 dag', + other: '{{count}} dage' + }, + aboutXWeeks: { + one: 'cirka 1 uge', + other: 'cirka {{count}} uger' + }, + xWeeks: { + one: '1 uge', + other: '{{count}} uger' + }, + aboutXMonths: { + one: 'cirka 1 måned', + other: 'cirka {{count}} måneder' + }, + xMonths: { + one: '1 måned', + other: '{{count}} måneder' + }, + aboutXYears: { + one: 'cirka 1 år', + other: 'cirka {{count}} år' + }, + xYears: { + one: '1 år', + other: '{{count}} år' + }, + overXYears: { + one: 'over 1 år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'næsten 1 år', + other: 'næsten {{count}} år' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/da/_lib/formatLong/index.js new file mode 100644 index 00000000..c0802160 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE 'den' d. MMMM y", + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl'. {{time}}", + long: "{{date}} 'kl'. {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/da/_lib/formatRelative/index.js new file mode 100644 index 00000000..97a8a5b1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'sidste' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "'på' eeee 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/_lib/localize/index.js b/node_modules/date-fns/esm/locale/da/_lib/localize/index.js new file mode 100644 index 00000000..f1deb2c9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/localize/index.js @@ -0,0 +1,124 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['fvt', 'vt'], + abbreviated: ['f.v.t.', 'v.t.'], + wide: ['før vesterlandsk tidsregning', 'vesterlandsk tidsregning'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. kvt.', '2. kvt.', '3. kvt.', '4. kvt.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'] +}; // Note that 'Days - abbreviated - Formatting' has periods at the end. +// https://www.unicode.org/cldr/charts/32/summary/da.html#1760 +// This makes grammatical sense in danish, as most abbreviations have periods. + +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], + abbreviated: ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'], + wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/_lib/match/index.js b/node_modules/date-fns/esm/locale/da/_lib/match/index.js new file mode 100644 index 00000000..0fd6a979 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(fKr|fvt|eKr|vt)/i, + abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, + wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^(v|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]. kvt\./i, + wide: /^[1234]\.? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^o/i, /^t/i, /^f/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, + any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /midnat/i, + noon: /middag/i, + morning: /morgen/i, + afternoon: /eftermiddag/i, + evening: /aften/i, + night: /nat/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/index.d.ts b/node_modules/date-fns/esm/locale/da/index.d.ts new file mode 100644 index 00000000..1cd188a3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { da } from 'date-fns/locale' +export default da diff --git a/node_modules/date-fns/esm/locale/da/index.js b/node_modules/date-fns/esm/locale/da/index.js new file mode 100644 index 00000000..0051b19d --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/index.js @@ -0,0 +1,32 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg]{@link https://github.com/MathiasKandelborg} + * @author Anders B. Hansen [@Andersbiha]{@link https://github.com/Andersbiha} + * @author [@kgram]{@link https://github.com/kgram} + * @author [@stefanbugge]{@link https://github.com/stefanbugge} + */ + +var locale = { + code: 'da', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/da/index.js.flow b/node_modules/date-fns/esm/locale/da/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/da/package.json b/node_modules/date-fns/esm/locale/da/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/da/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de-AT/_lib/localize/index.js b/node_modules/date-fns/esm/locale/de-AT/_lib/localize/index.js new file mode 100644 index 00000000..5b275e7a --- /dev/null +++ b/node_modules/date-fns/esm/locale/de-AT/_lib/localize/index.js @@ -0,0 +1,133 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['vor Christus', 'nach Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; // Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jän', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Jänner', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; // https://st.unicode.org/cldr-apps/v#/de_AT/Gregorian/ + +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: ['Jän.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'], + wide: monthValues.wide +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] +}; // https://www.unicode.org/cldr/charts/32/summary/de.html#1881 + +var dayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachm.', + evening: 'Abend', + night: 'Nacht' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachm.', + evening: 'abends', + night: 'nachts' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de-AT/index.d.ts b/node_modules/date-fns/esm/locale/de-AT/index.d.ts new file mode 100644 index 00000000..a7d66801 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de-AT/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { deAT } from 'date-fns/locale' +export default deAT diff --git a/node_modules/date-fns/esm/locale/de-AT/index.js b/node_modules/date-fns/esm/locale/de-AT/index.js new file mode 100644 index 00000000..44a7bf3c --- /dev/null +++ b/node_modules/date-fns/esm/locale/de-AT/index.js @@ -0,0 +1,30 @@ +import formatDistance from "../de/_lib/formatDistance/index.js"; +import formatLong from "../de/_lib/formatLong/index.js"; +import formatRelative from "../de/_lib/formatRelative/index.js"; +import match from "../de/_lib/match/index.js"; +// difference to 'de' locale +import localize from "./_lib/localize/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein]{@link https://github.com/cstenglein} + */ + +var locale = { + code: 'de-AT', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de-AT/index.js.flow b/node_modules/date-fns/esm/locale/de-AT/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de-AT/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/de-AT/package.json b/node_modules/date-fns/esm/locale/de-AT/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de-AT/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js new file mode 100644 index 00000000..dd126439 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/formatDistance/index.js @@ -0,0 +1,181 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + }, + withPreposition: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + } + }, + xSeconds: { + standalone: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + }, + withPreposition: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + } + }, + halfAMinute: { + standalone: 'halbe Minute', + withPreposition: 'halben Minute' + }, + lessThanXMinutes: { + standalone: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + }, + withPreposition: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + } + }, + xMinutes: { + standalone: { + one: '1 Minute', + other: '{{count}} Minuten' + }, + withPreposition: { + one: '1 Minute', + other: '{{count}} Minuten' + } + }, + aboutXHours: { + standalone: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + }, + withPreposition: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + } + }, + xHours: { + standalone: { + one: '1 Stunde', + other: '{{count}} Stunden' + }, + withPreposition: { + one: '1 Stunde', + other: '{{count}} Stunden' + } + }, + xDays: { + standalone: { + one: '1 Tag', + other: '{{count}} Tage' + }, + withPreposition: { + one: '1 Tag', + other: '{{count}} Tagen' + } + }, + aboutXWeeks: { + standalone: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + }, + withPreposition: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: '1 Woche', + other: '{{count}} Wochen' + }, + withPreposition: { + one: '1 Woche', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monate' + }, + withPreposition: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monaten' + } + }, + xMonths: { + standalone: { + one: '1 Monat', + other: '{{count}} Monate' + }, + withPreposition: { + one: '1 Monat', + other: '{{count}} Monaten' + } + }, + aboutXYears: { + standalone: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahre' + }, + withPreposition: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahren' + } + }, + xYears: { + standalone: { + one: '1 Jahr', + other: '{{count}} Jahre' + }, + withPreposition: { + one: '1 Jahr', + other: '{{count}} Jahren' + } + }, + overXYears: { + standalone: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahre' + }, + withPreposition: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahren' + } + }, + almostXYears: { + standalone: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahre' + }, + withPreposition: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahren' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return 'vor ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js new file mode 100644 index 00000000..7829eeb6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/formatLong/index.js @@ -0,0 +1,39 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +var dateFormats = { + full: 'EEEE, do MMMM y', + // Montag, 7. Januar 2018 + long: 'do MMMM y', + // 7. Januar 2018 + medium: 'do MMM y', + // 7. Jan. 2018 + short: 'dd.MM.y' // 07.01.2018 + +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js new file mode 100644 index 00000000..eef81bca --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/_lib/localize/index.js b/node_modules/date-fns/esm/locale/de/_lib/localize/index.js new file mode 100644 index 00000000..33794a75 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/localize/index.js @@ -0,0 +1,133 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['vor Christus', 'nach Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; // Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; // https://st.unicode.org/cldr-apps/v#/de/Gregorian/ + +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'], + wide: monthValues.wide +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] +}; // https://www.unicode.org/cldr/charts/32/summary/de.html#1881 + +var dayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachm.', + evening: 'Abend', + night: 'Nacht' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachm.', + evening: 'abends', + night: 'nachts' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/_lib/match/index.js b/node_modules/date-fns/esm/locale/de/_lib/match/index.js new file mode 100644 index 00000000..cc0b6ed0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i +}; +var parseEraPatterns = { + any: [/^v/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^j[aä]/i, /^f/i, /^mär/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i +}; +var parseDayPatterns = { + any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, + // will never be matched. Afternoon is matched by `pm` + evening: /abends/i, + night: /nachts/i // will never be matched. Night is matched by `pm` + + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/index.d.ts b/node_modules/date-fns/esm/locale/de/index.d.ts new file mode 100644 index 00000000..ef552da8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { de } from 'date-fns/locale' +export default de diff --git a/node_modules/date-fns/esm/locale/de/index.js b/node_modules/date-fns/esm/locale/de/index.js new file mode 100644 index 00000000..b4ae8d49 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/index.js @@ -0,0 +1,33 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} + * @author Asia [@asia-t]{@link https://github.com/asia-t} + * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} + * @author RomanErnst [@pex]{@link https://github.com/pex} + * @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91} + */ +var locale = { + code: 'de', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/de/index.js.flow b/node_modules/date-fns/esm/locale/de/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/de/package.json b/node_modules/date-fns/esm/locale/de/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/de/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/el/_lib/formatDistance/index.js new file mode 100644 index 00000000..7bf04deb --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'λιγότερο από ένα δευτερόλεπτο', + other: 'λιγότερο από {{count}} δευτερόλεπτα' + }, + xSeconds: { + one: '1 δευτερόλεπτο', + other: '{{count}} δευτερόλεπτα' + }, + halfAMinute: 'μισό λεπτό', + lessThanXMinutes: { + one: 'λιγότερο από ένα λεπτό', + other: 'λιγότερο από {{count}} λεπτά' + }, + xMinutes: { + one: '1 λεπτό', + other: '{{count}} λεπτά' + }, + aboutXHours: { + one: 'περίπου 1 ώρα', + other: 'περίπου {{count}} ώρες' + }, + xHours: { + one: '1 ώρα', + other: '{{count}} ώρες' + }, + xDays: { + one: '1 ημέρα', + other: '{{count}} ημέρες' + }, + aboutXWeeks: { + one: 'περίπου 1 εβδομάδα', + other: 'περίπου {{count}} εβδομάδες' + }, + xWeeks: { + one: '1 εβδομάδα', + other: '{{count}} εβδομάδες' + }, + aboutXMonths: { + one: 'περίπου 1 μήνας', + other: 'περίπου {{count}} μήνες' + }, + xMonths: { + one: '1 μήνας', + other: '{{count}} μήνες' + }, + aboutXYears: { + one: 'περίπου 1 χρόνο', + other: 'περίπου {{count}} χρόνια' + }, + xYears: { + one: '1 χρόνο', + other: '{{count}} χρόνια' + }, + overXYears: { + one: 'πάνω από 1 χρόνο', + other: 'πάνω από {{count}} χρόνια' + }, + almostXYears: { + one: 'περίπου 1 χρόνο', + other: 'περίπου {{count}} χρόνια' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'σε ' + result; + } else { + return result + ' πριν'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/el/_lib/formatLong/index.js new file mode 100644 index 00000000..402bb1f8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'd/M/yy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: '{{date}} - {{time}}', + long: '{{date}} - {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/el/_lib/formatRelative/index.js new file mode 100644 index 00000000..c1d20b30 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/formatRelative/index.js @@ -0,0 +1,25 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 6: + //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === 'function') return format(date); + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/_lib/localize/index.js b/node_modules/date-fns/esm/locale/el/_lib/localize/index.js new file mode 100644 index 00000000..379fee8e --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/localize/index.js @@ -0,0 +1,105 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['πΧ', 'μΧ'], + abbreviated: ['π.Χ.', 'μ.Χ.'], + wide: ['προ Χριστού', 'μετά Χριστόν'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Τ1', 'Τ2', 'Τ3', 'Τ4'], + wide: ['1ο τρίμηνο', '2ο τρίμηνο', '3ο τρίμηνο', '4ο τρίμηνο'] +}; +var monthValues = { + narrow: ['Ι', 'Φ', 'Μ', 'Α', 'Μ', 'Ι', 'Ι', 'Α', 'Σ', 'Ο', 'Ν', 'Δ'], + abbreviated: ['Ιαν', 'Φεβ', 'Μάρ', 'Απρ', 'Μάι', 'Ιούν', 'Ιούλ', 'Αύγ', 'Σεπ', 'Οκτ', 'Νοέ', 'Δεκ'], + wide: ['Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος'] +}; +var formattingMonthValues = { + narrow: ['Ι', 'Φ', 'Μ', 'Α', 'Μ', 'Ι', 'Ι', 'Α', 'Σ', 'Ο', 'Ν', 'Δ'], + abbreviated: ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαΐ', 'Ιουν', 'Ιουλ', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'], + wide: ['Ιανουαρίου', 'Φεβρουαρίου', 'Μαρτίου', 'Απριλίου', 'Μαΐου', 'Ιουνίου', 'Ιουλίου', 'Αυγούστου', 'Σεπτεμβρίου', 'Οκτωβρίου', 'Νοεμβρίου', 'Δεκεμβρίου'] +}; +var dayValues = { + narrow: ['Κ', 'Δ', 'T', 'Τ', 'Π', 'Π', 'Σ'], + short: ['Κυ', 'Δε', 'Τρ', 'Τε', 'Πέ', 'Πα', 'Σά'], + abbreviated: ['Κυρ', 'Δευ', 'Τρί', 'Τετ', 'Πέμ', 'Παρ', 'Σάβ'], + wide: ['Κυριακή', 'Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο'] +}; +var dayPeriodValues = { + narrow: { + am: 'πμ', + pm: 'μμ', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + }, + abbreviated: { + am: 'π.μ.', + pm: 'μ.μ.', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + }, + wide: { + am: 'π.μ.', + pm: 'μ.μ.', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + + if (unit === 'year' || unit === 'month') { + suffix = 'ος'; + } else if (unit === 'week' || unit === 'dayOfYear' || unit === 'day' || unit === 'hour' || unit === 'date') { + suffix = 'η'; + } else { + suffix = 'ο'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/_lib/match/index.js b/node_modules/date-fns/esm/locale/el/_lib/match/index.js new file mode 100644 index 00000000..f35dd587 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i +}; +var parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i +}; +var parseMonthPatterns = { + narrow: [/^ι/i, /^φ/i, /^μ/i, /^α/i, /^μ/i, /^ι/i, /^ι/i, /^α/i, /^σ/i, /^ο/i, /^ν/i, /^δ/i], + any: [/^ια/i, /^φ/i, /^μ[άα]ρ/i, /^απ/i, /^μ[άα][ιΐ]/i, /^ιο[ύυ]ν/i, /^ιο[ύυ]λ/i, /^α[ύυ]/i, /^σ/i, /^ο/i, /^ν/i, /^δ/i] +}; +var matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i +}; +var parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/index.d.ts b/node_modules/date-fns/esm/locale/el/index.d.ts new file mode 100644 index 00000000..551ad06f --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { el } from 'date-fns/locale' +export default el diff --git a/node_modules/date-fns/esm/locale/el/index.js b/node_modules/date-fns/esm/locale/el/index.js new file mode 100644 index 00000000..0223d480 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk]{@link https://github.com/fanixk} + * @author Theodoros Orfanidis [@teoulas]{@link https://github.com/teoulas} + */ + +var locale = { + code: 'el', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/el/index.js.flow b/node_modules/date-fns/esm/locale/el/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/el/package.json b/node_modules/date-fns/esm/locale/el/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/el/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-AU/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-AU/_lib/formatLong/index.js new file mode 100644 index 00000000..502df03c --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-AU/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-AU/index.d.ts b/node_modules/date-fns/esm/locale/en-AU/index.d.ts new file mode 100644 index 00000000..c1343a6b --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-AU/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enAU } from 'date-fns/locale' +export default enAU diff --git a/node_modules/date-fns/esm/locale/en-AU/index.js b/node_modules/date-fns/esm/locale/en-AU/index.js new file mode 100644 index 00000000..24050e45 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-AU/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige]{@link https://github.com/JulienMalige} + */ +var locale = { + code: 'en-AU', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-AU/index.js.flow b/node_modules/date-fns/esm/locale/en-AU/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-AU/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-AU/package.json b/node_modules/date-fns/esm/locale/en-AU/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-AU/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js new file mode 100644 index 00000000..812c53c6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + xSeconds: { + one: 'a second', + other: '{{count}} seconds' + }, + halfAMinute: 'half a minute', + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + xMinutes: { + one: 'a minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'about an hour', + other: 'about {{count}} hours' + }, + xHours: { + one: 'an hour', + other: '{{count}} hours' + }, + xDays: { + one: 'a day', + other: '{{count}} days' + }, + aboutXWeeks: { + one: 'about a week', + other: 'about {{count}} weeks' + }, + xWeeks: { + one: 'a week', + other: '{{count}} weeks' + }, + aboutXMonths: { + one: 'about a month', + other: 'about {{count}} months' + }, + xMonths: { + one: 'a month', + other: '{{count}} months' + }, + aboutXYears: { + one: 'about a year', + other: 'about {{count}} years' + }, + xYears: { + one: 'a year', + other: '{{count}} years' + }, + overXYears: { + one: 'over a year', + other: 'over {{count}} years' + }, + almostXYears: { + one: 'almost a year', + other: 'almost {{count}} years' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-CA/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-CA/_lib/formatLong/index.js new file mode 100644 index 00000000..20e3e95c --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, yyyy', + long: 'MMMM do, yyyy', + medium: 'MMM d, yyyy', + short: 'yyyy-MM-dd' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-CA/index.d.ts b/node_modules/date-fns/esm/locale/en-CA/index.d.ts new file mode 100644 index 00000000..e97efb4b --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enCA } from 'date-fns/locale' +export default enCA diff --git a/node_modules/date-fns/esm/locale/en-CA/index.js b/node_modules/date-fns/esm/locale/en-CA/index.js new file mode 100644 index 00000000..09e9aa5b --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/index.js @@ -0,0 +1,30 @@ +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak} + * @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore} + */ + +var locale = { + code: 'en-CA', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-CA/index.js.flow b/node_modules/date-fns/esm/locale/en-CA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-CA/package.json b/node_modules/date-fns/esm/locale/en-CA/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-CA/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-GB/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-GB/_lib/formatLong/index.js new file mode 100644 index 00000000..603f2c31 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-GB/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-GB/index.d.ts b/node_modules/date-fns/esm/locale/en-GB/index.d.ts new file mode 100644 index 00000000..74fc7841 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-GB/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enGB } from 'date-fns/locale' +export default enGB diff --git a/node_modules/date-fns/esm/locale/en-GB/index.js b/node_modules/date-fns/esm/locale/en-GB/index.js new file mode 100644 index 00000000..96606d67 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-GB/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik]{@link https://github.com/glintik} + */ + +var locale = { + code: 'en-GB', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-GB/index.js.flow b/node_modules/date-fns/esm/locale/en-GB/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-GB/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-GB/package.json b/node_modules/date-fns/esm/locale/en-GB/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-GB/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-IE/index.d.ts b/node_modules/date-fns/esm/locale/en-IE/index.d.ts new file mode 100644 index 00000000..042b0caf --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IE/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enIE } from 'date-fns/locale' +export default enIE diff --git a/node_modules/date-fns/esm/locale/en-IE/index.js b/node_modules/date-fns/esm/locale/en-IE/index.js new file mode 100644 index 00000000..fd34cb60 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IE/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatLong from "../en-GB/_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75]{@link https://github.com/tan75} + */ + +var locale = { + code: 'en-IE', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-IE/index.js.flow b/node_modules/date-fns/esm/locale/en-IE/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IE/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-IE/package.json b/node_modules/date-fns/esm/locale/en-IE/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IE/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-IN/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-IN/_lib/formatLong/index.js new file mode 100644 index 00000000..fb43244d --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IN/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM, yyyy', + medium: 'd MMM, yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-IN/index.d.ts b/node_modules/date-fns/esm/locale/en-IN/index.d.ts new file mode 100644 index 00000000..a1fc542c --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enIN } from 'date-fns/locale' +export default enIN diff --git a/node_modules/date-fns/esm/locale/en-IN/index.js b/node_modules/date-fns/esm/locale/en-IN/index.js new file mode 100644 index 00000000..33ba8df2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IN/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha]{@link https://github.com/gbhasha} + */ + +var locale = { + code: 'en-IN', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1, + // Monday is the first day of the week. + firstWeekContainsDate: 4 // The week that contains Jan 4th is the first week of the year. + + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-IN/index.js.flow b/node_modules/date-fns/esm/locale/en-IN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-IN/package.json b/node_modules/date-fns/esm/locale/en-IN/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-IN/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-NZ/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-NZ/_lib/formatLong/index.js new file mode 100644 index 00000000..502df03c --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-NZ/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-NZ/index.d.ts b/node_modules/date-fns/esm/locale/en-NZ/index.d.ts new file mode 100644 index 00000000..dbf083d4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-NZ/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enNZ } from 'date-fns/locale' +export default enNZ diff --git a/node_modules/date-fns/esm/locale/en-NZ/index.js b/node_modules/date-fns/esm/locale/en-NZ/index.js new file mode 100644 index 00000000..2e98b8a2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-NZ/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact]{@link https://github.com/muntact} + */ + +var locale = { + code: 'en-NZ', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-NZ/index.js.flow b/node_modules/date-fns/esm/locale/en-NZ/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-NZ/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-NZ/package.json b/node_modules/date-fns/esm/locale/en-NZ/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-NZ/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js new file mode 100644 index 00000000..c1789020 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + xSeconds: { + one: '1 second', + other: '{{count}} seconds' + }, + halfAMinute: 'half a minute', + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'about 1 hour', + other: 'about {{count}} hours' + }, + xHours: { + one: '1 hour', + other: '{{count}} hours' + }, + xDays: { + one: '1 day', + other: '{{count}} days' + }, + aboutXWeeks: { + one: 'about 1 week', + other: 'about {{count}} weeks' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weeks' + }, + aboutXMonths: { + one: 'about 1 month', + other: 'about {{count}} months' + }, + xMonths: { + one: '1 month', + other: '{{count}} months' + }, + aboutXYears: { + one: 'about 1 year', + other: 'about {{count}} years' + }, + xYears: { + one: '1 year', + other: '{{count}} years' + }, + overXYears: { + one: 'over 1 year', + other: 'over {{count}} years' + }, + almostXYears: { + one: 'almost 1 year', + other: 'almost {{count}} years' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js new file mode 100644 index 00000000..29218832 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js new file mode 100644 index 00000000..08e9156b --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js b/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js new file mode 100644 index 00000000..ecd2d1a3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js @@ -0,0 +1,146 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['B', 'A'], + abbreviated: ['BC', 'AD'], + wide: ['Before Christ', 'Anno Domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], + short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], + abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'st'; + + case 2: + return number + 'nd'; + + case 3: + return number + 'rd'; + } + } + + return number + 'th'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js b/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js new file mode 100644 index 00000000..155d7175 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/index.d.ts b/node_modules/date-fns/esm/locale/en-US/index.d.ts new file mode 100644 index 00000000..967f2570 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enUS } from 'date-fns/locale' +export default enUS diff --git a/node_modules/date-fns/esm/locale/en-US/index.js b/node_modules/date-fns/esm/locale/en-US/index.js new file mode 100644 index 00000000..0fa99436 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +var locale = { + code: 'en-US', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-US/index.js.flow b/node_modules/date-fns/esm/locale/en-US/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-US/package.json b/node_modules/date-fns/esm/locale/en-US/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-US/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-ZA/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/en-ZA/_lib/formatLong/index.js new file mode 100644 index 00000000..7a009296 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-ZA/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-ZA/index.d.ts b/node_modules/date-fns/esm/locale/en-ZA/index.d.ts new file mode 100644 index 00000000..ebdd1c8c --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-ZA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enZA } from 'date-fns/locale' +export default enZA diff --git a/node_modules/date-fns/esm/locale/en-ZA/index.js b/node_modules/date-fns/esm/locale/en-ZA/index.js new file mode 100644 index 00000000..1f8abc55 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-ZA/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../en-US/_lib/formatDistance/index.js"; +import formatRelative from "../en-US/_lib/formatRelative/index.js"; +import localize from "../en-US/_lib/localize/index.js"; +import match from "../en-US/_lib/match/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav]{@link https://github.com/shaykav} + */ + +var locale = { + code: 'en-ZA', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0, + // Sunday is the first day of the week. + firstWeekContainsDate: 1 // The week that contains Jan 1st is the first week of the year. + + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/en-ZA/index.js.flow b/node_modules/date-fns/esm/locale/en-ZA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-ZA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/en-ZA/package.json b/node_modules/date-fns/esm/locale/en-ZA/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/en-ZA/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/eo/_lib/formatDistance/index.js new file mode 100644 index 00000000..9edb755e --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'malpli ol sekundo', + other: 'malpli ol {{count}} sekundoj' + }, + xSeconds: { + one: '1 sekundo', + other: '{{count}} sekundoj' + }, + halfAMinute: 'duonminuto', + lessThanXMinutes: { + one: 'malpli ol minuto', + other: 'malpli ol {{count}} minutoj' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutoj' + }, + aboutXHours: { + one: 'proksimume 1 horo', + other: 'proksimume {{count}} horoj' + }, + xHours: { + one: '1 horo', + other: '{{count}} horoj' + }, + xDays: { + one: '1 tago', + other: '{{count}} tagoj' + }, + aboutXMonths: { + one: 'proksimume 1 monato', + other: 'proksimume {{count}} monatoj' + }, + xWeeks: { + one: '1 semajno', + other: '{{count}} semajnoj' + }, + aboutXWeeks: { + one: 'proksimume 1 semajno', + other: 'proksimume {{count}} semajnoj' + }, + xMonths: { + one: '1 monato', + other: '{{count}} monatoj' + }, + aboutXYears: { + one: 'proksimume 1 jaro', + other: 'proksimume {{count}} jaroj' + }, + xYears: { + one: '1 jaro', + other: '{{count}} jaroj' + }, + overXYears: { + one: 'pli ol 1 jaro', + other: 'pli ol {{count}} jaroj' + }, + almostXYears: { + one: 'preskaŭ 1 jaro', + other: 'preskaŭ {{count}} jaroj' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options !== null && options !== void 0 && options.comparison && options.comparison > 0) { + return 'post ' + result; + } else { + return 'antaŭ ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/eo/_lib/formatLong/index.js new file mode 100644 index 00000000..ae7af787 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: 'y-MMMM-dd', + medium: 'y-MMM-dd', + short: 'yyyy-MM-dd' +}; +var timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/eo/_lib/formatRelative/index.js new file mode 100644 index 00000000..61e3e76d --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/_lib/localize/index.js b/node_modules/date-fns/esm/locale/eo/_lib/localize/index.js new file mode 100644 index 00000000..ef6c4f31 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['aK', 'pK'], + abbreviated: ['a.K.E.', 'p.K.E.'], + wide: ['antaŭ Komuna Erao', 'Komuna Erao'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1-a kvaronjaro', '2-a kvaronjaro', '3-a kvaronjaro', '4-a kvaronjaro'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aŭg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aŭgusto', 'septembro', 'oktobro', 'novembro', 'decembro'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'Ĵ', 'V', 'S'], + short: ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], + abbreviated: ['dim', 'lun', 'mar', 'mer', 'ĵaŭ', 'ven', 'sab'], + wide: ['dimanĉo', 'lundo', 'mardo', 'merkredo', 'ĵaŭdo', 'vendredo', 'sabato'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + abbreviated: { + am: 'a.t.m.', + pm: 'p.t.m.', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + wide: { + am: 'antaŭtagmeze', + pm: 'posttagmeze', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '-a'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/_lib/match/index.js b/node_modules/date-fns/esm/locale/eo/_lib/match/index.js new file mode 100644 index 00000000..7e505bd1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i +}; +var parseEraPatterns = { + any: [/^a/i, /^[kp]/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^a(u|ŭ)/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/index.d.ts b/node_modules/date-fns/esm/locale/eo/index.d.ts new file mode 100644 index 00000000..40716b30 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eo } from 'date-fns/locale' +export default eo diff --git a/node_modules/date-fns/esm/locale/eo/index.js b/node_modules/date-fns/esm/locale/eo/index.js new file mode 100644 index 00000000..a36dbe4a --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +var locale = { + code: 'eo', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eo/index.js.flow b/node_modules/date-fns/esm/locale/eo/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/eo/package.json b/node_modules/date-fns/esm/locale/eo/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eo/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js new file mode 100644 index 00000000..28eb1bd7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de un segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'medio minuto', + lessThanXMinutes: { + one: 'menos de un minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'alrededor de 1 hora', + other: 'alrededor de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 día', + other: '{{count}} días' + }, + aboutXWeeks: { + one: 'alrededor de 1 semana', + other: 'alrededor de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'alrededor de 1 mes', + other: 'alrededor de {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'alrededor de 1 año', + other: 'alrededor de {{count}} años' + }, + xYears: { + one: '1 año', + other: '{{count}} años' + }, + overXYears: { + one: 'más de 1 año', + other: 'más de {{count}} años' + }, + almostXYears: { + one: 'casi 1 año', + other: 'casi {{count}} años' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'hace ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js new file mode 100644 index 00000000..1375c91a --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js new file mode 100644 index 00000000..e8affc07 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/_lib/localize/index.js b/node_modules/date-fns/esm/locale/es/_lib/localize/index.js new file mode 100644 index 00000000..3c386108 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'después de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], + wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sá'], + abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'], + wide: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/_lib/match/index.js b/node_modules/date-fns/esm/locale/es/_lib/match/index.js new file mode 100644 index 00000000..93fa36e2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i +}; +var parseMonthPatterns = { + narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i] +}; +var matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/index.d.ts b/node_modules/date-fns/esm/locale/es/index.d.ts new file mode 100644 index 00000000..8b0431ec --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { es } from 'date-fns/locale' +export default es diff --git a/node_modules/date-fns/esm/locale/es/index.js b/node_modules/date-fns/esm/locale/es/index.js new file mode 100644 index 00000000..ac94cedb --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/index.js @@ -0,0 +1,33 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Spanish locale. + * @language Spanish + * @iso-639-2 spa + * @author Juan Angosto [@juanangosto]{@link https://github.com/juanangosto} + * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} + * @author Fernando Agüero [@fjaguero]{@link https://github.com/fjaguero} + * @author Gastón Haro [@harogaston]{@link https://github.com/harogaston} + * @author Yago Carballo [@YagoCarballo]{@link https://github.com/YagoCarballo} + */ +var locale = { + code: 'es', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/es/index.js.flow b/node_modules/date-fns/esm/locale/es/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/es/package.json b/node_modules/date-fns/esm/locale/es/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/es/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/et/_lib/formatDistance/index.js new file mode 100644 index 00000000..14e2e897 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/formatDistance/index.js @@ -0,0 +1,181 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'vähem kui üks sekund', + other: 'vähem kui {{count}} sekundit' + }, + withPreposition: { + one: 'vähem kui ühe sekundi', + other: 'vähem kui {{count}} sekundi' + } + }, + xSeconds: { + standalone: { + one: 'üks sekund', + other: '{{count}} sekundit' + }, + withPreposition: { + one: 'ühe sekundi', + other: '{{count}} sekundi' + } + }, + halfAMinute: { + standalone: 'pool minutit', + withPreposition: 'poole minuti' + }, + lessThanXMinutes: { + standalone: { + one: 'vähem kui üks minut', + other: 'vähem kui {{count}} minutit' + }, + withPreposition: { + one: 'vähem kui ühe minuti', + other: 'vähem kui {{count}} minuti' + } + }, + xMinutes: { + standalone: { + one: 'üks minut', + other: '{{count}} minutit' + }, + withPreposition: { + one: 'ühe minuti', + other: '{{count}} minuti' + } + }, + aboutXHours: { + standalone: { + one: 'umbes üks tund', + other: 'umbes {{count}} tundi' + }, + withPreposition: { + one: 'umbes ühe tunni', + other: 'umbes {{count}} tunni' + } + }, + xHours: { + standalone: { + one: 'üks tund', + other: '{{count}} tundi' + }, + withPreposition: { + one: 'ühe tunni', + other: '{{count}} tunni' + } + }, + xDays: { + standalone: { + one: 'üks päev', + other: '{{count}} päeva' + }, + withPreposition: { + one: 'ühe päeva', + other: '{{count}} päeva' + } + }, + aboutXWeeks: { + standalone: { + one: 'umbes üks nädal', + other: 'umbes {{count}} nädalat' + }, + withPreposition: { + one: 'umbes ühe nädala', + other: 'umbes {{count}} nädala' + } + }, + xWeeks: { + standalone: { + one: 'üks nädal', + other: '{{count}} nädalat' + }, + withPreposition: { + one: 'ühe nädala', + other: '{{count}} nädala' + } + }, + aboutXMonths: { + standalone: { + one: 'umbes üks kuu', + other: 'umbes {{count}} kuud' + }, + withPreposition: { + one: 'umbes ühe kuu', + other: 'umbes {{count}} kuu' + } + }, + xMonths: { + standalone: { + one: 'üks kuu', + other: '{{count}} kuud' + }, + withPreposition: { + one: 'ühe kuu', + other: '{{count}} kuu' + } + }, + aboutXYears: { + standalone: { + one: 'umbes üks aasta', + other: 'umbes {{count}} aastat' + }, + withPreposition: { + one: 'umbes ühe aasta', + other: 'umbes {{count}} aasta' + } + }, + xYears: { + standalone: { + one: 'üks aasta', + other: '{{count}} aastat' + }, + withPreposition: { + one: 'ühe aasta', + other: '{{count}} aasta' + } + }, + overXYears: { + standalone: { + one: 'rohkem kui üks aasta', + other: 'rohkem kui {{count}} aastat' + }, + withPreposition: { + one: 'rohkem kui ühe aasta', + other: 'rohkem kui {{count}} aasta' + } + }, + almostXYears: { + standalone: { + one: 'peaaegu üks aasta', + other: 'peaaegu {{count}} aastat' + }, + withPreposition: { + one: 'peaaegu ühe aasta', + other: 'peaaegu {{count}} aasta' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' pärast'; + } else { + return result + ' eest'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/et/_lib/formatLong/index.js new file mode 100644 index 00000000..a96046ea --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: '{{date}}. {{time}}', + short: '{{date}}. {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/et/_lib/formatRelative/index.js new file mode 100644 index 00000000..e24aac5b --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/_lib/localize/index.js b/node_modules/date-fns/esm/locale/et/_lib/localize/index.js new file mode 100644 index 00000000..8657a23d --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/localize/index.js @@ -0,0 +1,125 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['e.m.a', 'm.a.j'], + abbreviated: ['e.m.a', 'm.a.j'], + wide: ['enne meie ajaarvamist', 'meie ajaarvamise järgi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'V', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'], + wide: ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember'] +}; +var dayValues = { + narrow: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], + short: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], + abbreviated: ['pühap.', 'esmasp.', 'teisip.', 'kolmap.', 'neljap.', 'reede.', 'laup.'], + wide: ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: monthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: dayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/_lib/match/index.js b/node_modules/date-fns/esm/locale/et/_lib/match/index.js new file mode 100644 index 00000000..f5a8cf65 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^\d+\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i +}; +var parseEraPatterns = { + any: [/^e/i, /^(m|p)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^v/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^v/i, /^mär/i, /^ap/i, /^mai/i, /^juun/i, /^juul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i +}; +var parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/index.d.ts b/node_modules/date-fns/esm/locale/et/index.d.ts new file mode 100644 index 00000000..debd0b90 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { et } from 'date-fns/locale' +export default et diff --git a/node_modules/date-fns/esm/locale/et/index.js b/node_modules/date-fns/esm/locale/et/index.js new file mode 100644 index 00000000..fd6dab55 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Estonian locale. + * @language Estonian + * @iso-639-2 est + * @author Priit Hansen [@HansenPriit]{@link https://github.com/priithansen} + */ + +var locale = { + code: 'et', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/et/index.js.flow b/node_modules/date-fns/esm/locale/et/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/et/package.json b/node_modules/date-fns/esm/locale/et/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/et/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/eu/_lib/formatDistance/index.js new file mode 100644 index 00000000..bcb95b9d --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'segundo bat baino gutxiago', + other: '{{count}} segundo baino gutxiago' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundo' + }, + halfAMinute: 'minutu erdi', + lessThanXMinutes: { + one: 'minutu bat baino gutxiago', + other: '{{count}} minutu baino gutxiago' + }, + xMinutes: { + one: '1 minutu', + other: '{{count}} minutu' + }, + aboutXHours: { + one: '1 ordu gutxi gorabehera', + other: '{{count}} ordu gutxi gorabehera' + }, + xHours: { + one: '1 ordu', + other: '{{count}} ordu' + }, + xDays: { + one: '1 egun', + other: '{{count}} egun' + }, + aboutXWeeks: { + one: 'aste 1 inguru', + other: '{{count}} aste inguru' + }, + xWeeks: { + one: '1 aste', + other: '{{count}} astean' + }, + aboutXMonths: { + one: '1 hilabete gutxi gorabehera', + other: '{{count}} hilabete gutxi gorabehera' + }, + xMonths: { + one: '1 hilabete', + other: '{{count}} hilabete' + }, + aboutXYears: { + one: '1 urte gutxi gorabehera', + other: '{{count}} urte gutxi gorabehera' + }, + xYears: { + one: '1 urte', + other: '{{count}} urte' + }, + overXYears: { + one: '1 urte baino gehiago', + other: '{{count}} urte baino gehiago' + }, + almostXYears: { + one: 'ia 1 urte', + other: 'ia {{count}} urte' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'duela ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/eu/_lib/formatLong/index.js new file mode 100644 index 00000000..7dc7cdd0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: 'y MMM d', + short: 'yy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/eu/_lib/formatRelative/index.js new file mode 100644 index 00000000..0d0c7f7a --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +var formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: 'eeee, p', + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: 'eeee, p', + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/_lib/localize/index.js b/node_modules/date-fns/esm/locale/eu/_lib/localize/index.js new file mode 100644 index 00000000..41f9b511 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['k.a.', 'k.o.'], + abbreviated: ['k.a.', 'k.o.'], + wide: ['kristo aurretik', 'kristo ondoren'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1H', '2H', '3H', '4H'], + wide: ['1. hiruhilekoa', '2. hiruhilekoa', '3. hiruhilekoa', '4. hiruhilekoa'] +}; +var monthValues = { + narrow: ['u', 'o', 'm', 'a', 'm', 'e', 'u', 'a', 'i', 'u', 'a', 'a'], + abbreviated: ['urt', 'ots', 'mar', 'api', 'mai', 'eka', 'uzt', 'abu', 'ira', 'urr', 'aza', 'abe'], + wide: ['urtarrila', 'otsaila', 'martxoa', 'apirila', 'maiatza', 'ekaina', 'uztaila', 'abuztua', 'iraila', 'urria', 'azaroa', 'abendua'] +}; +var dayValues = { + narrow: ['i', 'a', 'a', 'a', 'o', 'o', 'l'], + short: ['ig', 'al', 'as', 'az', 'og', 'or', 'lr'], + abbreviated: ['iga', 'ast', 'ast', 'ast', 'ost', 'ost', 'lar'], + wide: ['igandea', 'astelehena', 'asteartea', 'asteazkena', 'osteguna', 'ostirala', 'larunbata'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'ge', + noon: 'eg', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'ge', + noon: 'eg', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/_lib/match/index.js b/node_modules/date-fns/esm/locale/eu/_lib/match/index.js new file mode 100644 index 00000000..cd11da96 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/_lib/match/index.js @@ -0,0 +1,112 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i +}; +var parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i +}; +var parseMonthPatterns = { + narrow: [/^u/i, /^o/i, /^m/i, /^a/i, /^m/i, /^e/i, /^u/i, /^a/i, /^i/i, /^u/i, /^a/i, /^a/i], + any: [/^urt/i, /^ots/i, /^mar/i, /^api/i, /^mai/i, /^eka/i, /^uzt/i, /^abu/i, /^ira/i, /^urr/i, /^aza/i, /^abe/i] +}; +var matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i +}; +var parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + wide: [/^igandea/i, /^astelehena/i, /^asteartea/i, /^asteazkena/i, /^osteguna/i, /^ostirala/i, /^larunbata/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/index.d.ts b/node_modules/date-fns/esm/locale/eu/index.d.ts new file mode 100644 index 00000000..ec841898 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eu } from 'date-fns/locale' +export default eu diff --git a/node_modules/date-fns/esm/locale/eu/index.js b/node_modules/date-fns/esm/locale/eu/index.js new file mode 100644 index 00000000..7ff36e8c --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom]{@link https://github.com/JacobSoderblom} + */ + +var locale = { + code: 'eu', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/eu/index.js.flow b/node_modules/date-fns/esm/locale/eu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/eu/package.json b/node_modules/date-fns/esm/locale/eu/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/eu/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatDistance/index.js new file mode 100644 index 00000000..35f8ff3c --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'کمتر از یک ثانیه', + other: 'کمتر از {{count}} ثانیه' + }, + xSeconds: { + one: '1 ثانیه', + other: '{{count}} ثانیه' + }, + halfAMinute: 'نیم دقیقه', + lessThanXMinutes: { + one: 'کمتر از یک دقیقه', + other: 'کمتر از {{count}} دقیقه' + }, + xMinutes: { + one: '1 دقیقه', + other: '{{count}} دقیقه' + }, + aboutXHours: { + one: 'حدود 1 ساعت', + other: 'حدود {{count}} ساعت' + }, + xHours: { + one: '1 ساعت', + other: '{{count}} ساعت' + }, + xDays: { + one: '1 روز', + other: '{{count}} روز' + }, + aboutXWeeks: { + one: 'حدود 1 هفته', + other: 'حدود {{count}} هفته' + }, + xWeeks: { + one: '1 هفته', + other: '{{count}} هفته' + }, + aboutXMonths: { + one: 'حدود 1 ماه', + other: 'حدود {{count}} ماه' + }, + xMonths: { + one: '1 ماه', + other: '{{count}} ماه' + }, + aboutXYears: { + one: 'حدود 1 سال', + other: 'حدود {{count}} سال' + }, + xYears: { + one: '1 سال', + other: '{{count}} سال' + }, + overXYears: { + one: 'بیشتر از 1 سال', + other: 'بیشتر از {{count}} سال' + }, + almostXYears: { + one: 'نزدیک 1 سال', + other: 'نزدیک {{count}} سال' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'در ' + result; + } else { + return result + ' قبل'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatLong/index.js new file mode 100644 index 00000000..f80824fa --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatRelative/index.js new file mode 100644 index 00000000..49d8979d --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fa-IR/_lib/localize/index.js new file mode 100644 index 00000000..104f8165 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/localize/index.js @@ -0,0 +1,124 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل از میلاد', 'بعد از میلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['س‌م1', 'س‌م2', 'س‌م3', 'س‌م4'], + wide: ['سه‌ماهه 1', 'سه‌ماهه 2', 'سه‌ماهه 3', 'سه‌ماهه 4'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ژ', 'ف', 'م', 'آ', 'م', 'ج', 'ج', 'آ', 'س', 'ا', 'ن', 'د'], + abbreviated: ['ژانـ', 'فور', 'مارس', 'آپر', 'می', 'جون', 'جولـ', 'آگو', 'سپتـ', 'اکتـ', 'نوامـ', 'دسامـ'], + wide: ['ژانویه', 'فوریه', 'مارس', 'آپریل', 'می', 'جون', 'جولای', 'آگوست', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'] +}; +var dayValues = { + narrow: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + short: ['1ش', '2ش', '3ش', '4ش', '5ش', 'ج', 'ش'], + abbreviated: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'], + wide: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'] +}; +var dayPeriodValues = { + narrow: { + am: 'ق', + pm: 'ب', + midnight: 'ن', + noon: 'ظ', + morning: 'ص', + afternoon: 'ب.ظ.', + evening: 'ع', + night: 'ش' + }, + abbreviated: { + am: 'ق.ظ.', + pm: 'ب.ظ.', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + }, + wide: { + am: 'قبل‌ازظهر', + pm: 'بعدازظهر', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ق', + pm: 'ب', + midnight: 'ن', + noon: 'ظ', + morning: 'ص', + afternoon: 'ب.ظ.', + evening: 'ع', + night: 'ش' + }, + abbreviated: { + am: 'ق.ظ.', + pm: 'ب.ظ.', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + }, + wide: { + am: 'قبل‌ازظهر', + pm: 'بعدازظهر', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/_lib/match/index.js b/node_modules/date-fns/esm/locale/fa-IR/_lib/match/index.js new file mode 100644 index 00000000..7e0ffae8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i +}; +var parseMonthPatterns = { + narrow: [/^(ژ|ج)/i, /^ف/i, /^م/i, /^(آ|ا)/i, /^م/i, /^(ژ|ج)/i, /^(ج|ژ)/i, /^(آ|ا)/i, /^س/i, /^ا/i, /^ن/i, /^د/i], + any: [/^ژا/i, /^ف/i, /^ما/i, /^آپ/i, /^(می|مه)/i, /^(ژوئن|جون)/i, /^(ژوئی|جول)/i, /^(اوت|آگ)/i, /^س/i, /^(اوک|اک)/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i +}; +var parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [/^(ی|1ش|یکشنبه)/i, /^(د|2ش|دوشنبه)/i, /^(س|3ش|سه‌شنبه)/i, /^(چ|4ش|چهارشنبه)/i, /^(پ|5ش|پنجشنبه)/i, /^(ج|جمعه)/i, /^(ش|شنبه)/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/index.d.ts b/node_modules/date-fns/esm/locale/fa-IR/index.d.ts new file mode 100644 index 00000000..2e6e4bb2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { faIR } from 'date-fns/locale' +export default faIR diff --git a/node_modules/date-fns/esm/locale/fa-IR/index.js b/node_modules/date-fns/esm/locale/fa-IR/index.js new file mode 100644 index 00000000..d1f361d4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za]{@link https://github.com/mort3za} + */ + +var locale = { + code: 'fa-IR', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 6 + /* Saturday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fa-IR/index.js.flow b/node_modules/date-fns/esm/locale/fa-IR/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fa-IR/package.json b/node_modules/date-fns/esm/locale/fa-IR/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fa-IR/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/fi/_lib/formatDistance/index.js new file mode 100644 index 00000000..de70b972 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/formatDistance/index.js @@ -0,0 +1,129 @@ +function futureSeconds(text) { + return text.replace(/sekuntia?/, 'sekunnin'); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, 'minuutin'); +} + +function futureHours(text) { + return text.replace(/tuntia?/, 'tunnin'); +} + +function futureDays(text) { + return text.replace(/päivää?/, 'päivän'); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, 'viikon'); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, 'kuukauden'); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, 'vuoden'); +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'alle sekunti', + other: 'alle {{count}} sekuntia', + futureTense: futureSeconds + }, + xSeconds: { + one: 'sekunti', + other: '{{count}} sekuntia', + futureTense: futureSeconds + }, + halfAMinute: { + one: 'puoli minuuttia', + other: 'puoli minuuttia', + futureTense: function futureTense(_text) { + return 'puolen minuutin'; + } + }, + lessThanXMinutes: { + one: 'alle minuutti', + other: 'alle {{count}} minuuttia', + futureTense: futureMinutes + }, + xMinutes: { + one: 'minuutti', + other: '{{count}} minuuttia', + futureTense: futureMinutes + }, + aboutXHours: { + one: 'noin tunti', + other: 'noin {{count}} tuntia', + futureTense: futureHours + }, + xHours: { + one: 'tunti', + other: '{{count}} tuntia', + futureTense: futureHours + }, + xDays: { + one: 'päivä', + other: '{{count}} päivää', + futureTense: futureDays + }, + aboutXWeeks: { + one: 'noin viikko', + other: 'noin {{count}} viikkoa', + futureTense: futureWeeks + }, + xWeeks: { + one: 'viikko', + other: '{{count}} viikkoa', + futureTense: futureWeeks + }, + aboutXMonths: { + one: 'noin kuukausi', + other: 'noin {{count}} kuukautta', + futureTense: futureMonths + }, + xMonths: { + one: 'kuukausi', + other: '{{count}} kuukautta', + futureTense: futureMonths + }, + aboutXYears: { + one: 'noin vuosi', + other: 'noin {{count}} vuotta', + futureTense: futureYears + }, + xYears: { + one: 'vuosi', + other: '{{count}} vuotta', + futureTense: futureYears + }, + overXYears: { + one: 'yli vuosi', + other: 'yli {{count}} vuotta', + futureTense: futureYears + }, + almostXYears: { + one: 'lähes vuosi', + other: 'lähes {{count}} vuotta', + futureTense: futureYears + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = count === 1 ? tokenValue.one : tokenValue.other.replace('{{count}}', String(count)); + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + ' kuluttua'; + } else { + return result + ' sitten'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fi/_lib/formatLong/index.js new file mode 100644 index 00000000..92d76e0b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'eeee d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'd.M.y' +}; +var timeFormats = { + full: 'HH.mm.ss zzzz', + long: 'HH.mm.ss z', + medium: 'HH.mm.ss', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fi/_lib/formatRelative/index.js new file mode 100644 index 00000000..a48e4f0f --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fi/_lib/localize/index.js new file mode 100644 index 00000000..cf94d76d --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/localize/index.js @@ -0,0 +1,102 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['eaa.', 'jaa.'], + abbreviated: ['eaa.', 'jaa.'], + wide: ['ennen ajanlaskun alkua', 'jälkeen ajanlaskun alun'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartaali', '2. kvartaali', '3. kvartaali', '4. kvartaali'] +}; +var monthValues = { + narrow: ['T', 'H', 'M', 'H', 'T', 'K', 'H', 'E', 'S', 'L', 'M', 'J'], + abbreviated: ['tammi', 'helmi', 'maalis', 'huhti', 'touko', 'kesä', 'heinä', 'elo', 'syys', 'loka', 'marras', 'joulu'], + wide: ['tammikuu', 'helmikuu', 'maaliskuu', 'huhtikuu', 'toukokuu', 'kesäkuu', 'heinäkuu', 'elokuu', 'syyskuu', 'lokakuu', 'marraskuu', 'joulukuu'] +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: ['tammikuuta', 'helmikuuta', 'maaliskuuta', 'huhtikuuta', 'toukokuuta', 'kesäkuuta', 'heinäkuuta', 'elokuuta', 'syyskuuta', 'lokakuuta', 'marraskuuta', 'joulukuuta'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'K', 'T', 'P', 'L'], + short: ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'], + abbreviated: ['sunn.', 'maan.', 'tiis.', 'kesk.', 'torst.', 'perj.', 'la'], + wide: ['sunnuntai', 'maanantai', 'tiistai', 'keskiviikko', 'torstai', 'perjantai', 'lauantai'] +}; +var formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: ['sunnuntaina', 'maanantaina', 'tiistaina', 'keskiviikkona', 'torstaina', 'perjantaina', 'lauantaina'] +}; +var dayPeriodValues = { + narrow: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyö', + noon: 'keskipäivä', + morning: 'ap', + afternoon: 'ip', + evening: 'illalla', + night: 'yöllä' + }, + abbreviated: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyö', + noon: 'keskipäivä', + morning: 'ap', + afternoon: 'ip', + evening: 'illalla', + night: 'yöllä' + }, + wide: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyöllä', + noon: 'keskipäivällä', + morning: 'aamupäivällä', + afternoon: 'iltapäivällä', + evening: 'illalla', + night: 'yöllä' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/_lib/match/index.js b/node_modules/date-fns/esm/locale/fi/_lib/match/index.js new file mode 100644 index 00000000..5bab07bb --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i +}; +var parseEraPatterns = { + any: [/^e/i, /^j/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i +}; +var parseMonthPatterns = { + narrow: [/^t/i, /^h/i, /^m/i, /^h/i, /^t/i, /^k/i, /^h/i, /^e/i, /^s/i, /^l/i, /^m/i, /^j/i], + any: [/^ta/i, /^hel/i, /^maa/i, /^hu/i, /^to/i, /^k/i, /^hei/i, /^e/i, /^s/i, /^l/i, /^mar/i, /^j/i] +}; +var matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/index.d.ts b/node_modules/date-fns/esm/locale/fi/index.d.ts new file mode 100644 index 00000000..e4007025 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fi } from 'date-fns/locale' +export default fi diff --git a/node_modules/date-fns/esm/locale/fi/index.js b/node_modules/date-fns/esm/locale/fi/index.js new file mode 100644 index 00000000..e8dcd07c --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe]{@link https://github.com/Pyppe} + * @author Edo Rivai [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Samu Juvonen [@sjuvonen]{@link https://github.com/sjuvonen} + */ + +var locale = { + code: 'fi', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fi/index.js.flow b/node_modules/date-fns/esm/locale/fi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fi/package.json b/node_modules/date-fns/esm/locale/fi/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fi/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CA/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fr-CA/_lib/formatLong/index.js new file mode 100644 index 00000000..d65a8494 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CA/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CA/index.d.ts b/node_modules/date-fns/esm/locale/fr-CA/index.d.ts new file mode 100644 index 00000000..533b466c --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { frCA } from 'date-fns/locale' +export default frCA diff --git a/node_modules/date-fns/esm/locale/fr-CA/index.js b/node_modules/date-fns/esm/locale/fr-CA/index.js new file mode 100644 index 00000000..7f9fadd1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CA/index.js @@ -0,0 +1,34 @@ +// Same as fr +import formatDistance from "../fr/_lib/formatDistance/index.js"; +import formatRelative from "../fr/_lib/formatRelative/index.js"; +import localize from "../fr/_lib/localize/index.js"; +import match from "../fr/_lib/match/index.js"; +// Unique for fr-CA +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + * @author Gabriele Petrioli [@gpetrioli]{@link https://github.com/gpetrioli} + */ + +var locale = { + code: 'fr-CA', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + // Unique for fr-CA + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CA/index.js.flow b/node_modules/date-fns/esm/locale/fr-CA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fr-CA/package.json b/node_modules/date-fns/esm/locale/fr-CA/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CA/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatLong/index.js new file mode 100644 index 00000000..b29b5b01 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatRelative/index.js new file mode 100644 index 00000000..058cd850 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/index.d.ts b/node_modules/date-fns/esm/locale/fr-CH/index.d.ts new file mode 100644 index 00000000..5fdd3c53 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { frCH } from 'date-fns/locale' +export default frCH diff --git a/node_modules/date-fns/esm/locale/fr-CH/index.js b/node_modules/date-fns/esm/locale/fr-CH/index.js new file mode 100644 index 00000000..1f33475f --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/index.js @@ -0,0 +1,34 @@ +// Same as fr +import formatDistance from "../fr/_lib/formatDistance/index.js"; +import localize from "../fr/_lib/localize/index.js"; +import match from "../fr/_lib/match/index.js"; +// Unique for fr-CH +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} + * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} + */ + +var locale = { + code: 'fr-CH', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr-CH/index.js.flow b/node_modules/date-fns/esm/locale/fr-CH/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fr-CH/package.json b/node_modules/date-fns/esm/locale/fr-CH/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr-CH/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js new file mode 100644 index 00000000..c2135eb8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'moins d’une seconde', + other: 'moins de {{count}} secondes' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} secondes' + }, + halfAMinute: '30 secondes', + lessThanXMinutes: { + one: 'moins d’une minute', + other: 'moins de {{count}} minutes' + }, + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'environ 1 heure', + other: 'environ {{count}} heures' + }, + xHours: { + one: '1 heure', + other: '{{count}} heures' + }, + xDays: { + one: '1 jour', + other: '{{count}} jours' + }, + aboutXWeeks: { + one: 'environ 1 semaine', + other: 'environ {{count}} semaines' + }, + xWeeks: { + one: '1 semaine', + other: '{{count}} semaines' + }, + aboutXMonths: { + one: 'environ 1 mois', + other: 'environ {{count}} mois' + }, + xMonths: { + one: '1 mois', + other: '{{count}} mois' + }, + aboutXYears: { + one: 'environ 1 an', + other: 'environ {{count}} ans' + }, + xYears: { + one: '1 an', + other: '{{count}} ans' + }, + overXYears: { + one: 'plus d’un an', + other: 'plus de {{count}} ans' + }, + almostXYears: { + one: 'presqu’un an', + other: 'presque {{count}} ans' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + + if (typeof form === 'string') { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js new file mode 100644 index 00000000..ea22c9e6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js new file mode 100644 index 00000000..e44fb405 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js new file mode 100644 index 00000000..f0707f12 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/localize/index.js @@ -0,0 +1,98 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['av. J.-C', 'ap. J.-C'], + abbreviated: ['av. J.-C', 'ap. J.-C'], + wide: ['avant Jésus-Christ', 'après Jésus-Christ'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1er trim.', '2ème trim.', '3ème trim.', '4ème trim.'], + wide: ['1er trimestre', '2ème trimestre', '3ème trimestre', '4ème trimestre'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], + wide: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], + short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], + abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], + wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'mat.', + afternoon: 'ap.m.', + evening: 'soir', + night: 'mat.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'matin', + afternoon: 'après-midi', + evening: 'soir', + night: 'matin' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'du matin', + afternoon: 'de l’après-midi', + evening: 'du soir', + night: 'du matin' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return '0'; + var feminineUnits = ['year', 'week', 'hour', 'minute', 'second']; + var suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? 'ère' : 'er'; + } else { + suffix = 'ème'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/_lib/match/index.js b/node_modules/date-fns/esm/locale/fr/_lib/match/index.js new file mode 100644 index 00000000..c5628fc1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i +}; +var parseEraPatterns = { + any: [/^av/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/index.d.ts b/node_modules/date-fns/esm/locale/fr/index.d.ts new file mode 100644 index 00000000..5dc7fe00 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fr } from 'date-fns/locale' +export default fr diff --git a/node_modules/date-fns/esm/locale/fr/index.js b/node_modules/date-fns/esm/locale/fr/index.js new file mode 100644 index 00000000..8be6f920 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + */ + +var locale = { + code: 'fr', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fr/index.js.flow b/node_modules/date-fns/esm/locale/fr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fr/package.json b/node_modules/date-fns/esm/locale/fr/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fr/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/fy/_lib/formatDistance/index.js new file mode 100644 index 00000000..0b9bd226 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder as 1 sekonde', + other: 'minder as {{count}} sekonden' + }, + xSeconds: { + one: '1 sekonde', + other: '{{count}} sekonden' + }, + halfAMinute: 'oardel minút', + lessThanXMinutes: { + one: 'minder as 1 minút', + other: 'minder as {{count}} minuten' + }, + xMinutes: { + one: '1 minút', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'sawat 1 oere', + other: 'sawat {{count}} oere' + }, + xHours: { + one: '1 oere', + other: '{{count}} oere' + }, + xDays: { + one: '1 dei', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'sawat 1 wike', + other: 'sawat {{count}} wiken' + }, + xWeeks: { + one: '1 wike', + other: '{{count}} wiken' + }, + aboutXMonths: { + one: 'sawat 1 moanne', + other: 'sawat {{count}} moannen' + }, + xMonths: { + one: '1 moanne', + other: '{{count}} moannen' + }, + aboutXYears: { + one: 'sawat 1 jier', + other: 'sawat {{count}} jier' + }, + xYears: { + one: '1 jier', + other: '{{count}} jier' + }, + overXYears: { + one: 'mear as 1 jier', + other: 'mear as {{count}}s jier' + }, + almostXYears: { + one: 'hast 1 jier', + other: 'hast {{count}} jier' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'oer ' + result; + } else { + return result + ' lyn'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/fy/_lib/formatLong/index.js new file mode 100644 index 00000000..1eb3157b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd-MM-y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/fy/_lib/formatRelative/index.js new file mode 100644 index 00000000..a42b07d8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/_lib/localize/index.js b/node_modules/date-fns/esm/locale/fy/_lib/localize/index.js new file mode 100644 index 00000000..59787e2a --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['f.K.', 'n.K.'], + abbreviated: ['f.Kr.', 'n.Kr.'], + wide: ['foar Kristus', 'nei Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e fearnsjier', '2e fearnsjier', '3e fearnsjier', '4e fearnsjier'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mai.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['jannewaris', 'febrewaris', 'maart', 'april', 'maaie', 'juny', 'july', 'augustus', 'septimber', 'oktober', 'novimber', 'desimber'] +}; +var dayValues = { + narrow: ['s', 'm', 't', 'w', 't', 'f', 's'], + short: ['si', 'mo', 'ti', 'wo', 'to', 'fr', 'so'], + abbreviated: ['snein', 'moa', 'tii', 'woa', 'ton', 'fre', 'sneon'], + wide: ['snein', 'moandei', 'tiisdei', 'woansdei', 'tongersdei', 'freed', 'sneon'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/_lib/match/index.js b/node_modules/date-fns/esm/locale/fy/_lib/match/index.js new file mode 100644 index 00000000..9e0dd7c0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/ +}; +var parseEraPatterns = { + any: [/^f/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^des/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/index.d.ts b/node_modules/date-fns/esm/locale/fy/index.d.ts new file mode 100644 index 00000000..11b41b4b --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fy } from 'date-fns/locale' +export default fy diff --git a/node_modules/date-fns/esm/locale/fy/index.js b/node_modules/date-fns/esm/locale/fy/index.js new file mode 100644 index 00000000..7cc424f2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02]{@link https://github.com/damon02} + */ + +var locale = { + code: 'fy', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/fy/index.js.flow b/node_modules/date-fns/esm/locale/fy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/fy/package.json b/node_modules/date-fns/esm/locale/fy/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/fy/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js new file mode 100644 index 00000000..a517cf5b --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/formatDistance/index.js @@ -0,0 +1,98 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'nas lugha na diog', + other: 'nas lugha na {{count}} diogan' + }, + xSeconds: { + one: '1 diog', + two: '2 dhiog', + twenty: '20 diog', + other: '{{count}} diogan' + }, + halfAMinute: 'leth mhionaid', + lessThanXMinutes: { + one: 'nas lugha na mionaid', + other: 'nas lugha na {{count}} mionaidean' + }, + xMinutes: { + one: '1 mionaid', + two: '2 mhionaid', + twenty: '20 mionaid', + other: '{{count}} mionaidean' + }, + aboutXHours: { + one: 'mu uair de thìde', + other: 'mu {{count}} uairean de thìde' + }, + xHours: { + one: '1 uair de thìde', + two: '2 uair de thìde', + twenty: '20 uair de thìde', + other: '{{count}} uairean de thìde' + }, + xDays: { + one: '1 là', + other: '{{count}} là' + }, + aboutXWeeks: { + one: 'mu 1 seachdain', + other: 'mu {{count}} seachdainean' + }, + xWeeks: { + one: '1 seachdain', + other: '{{count}} seachdainean' + }, + aboutXMonths: { + one: 'mu mhìos', + other: 'mu {{count}} mìosan' + }, + xMonths: { + one: '1 mìos', + other: '{{count}} mìosan' + }, + aboutXYears: { + one: 'mu bhliadhna', + other: 'mu {{count}} bliadhnaichean' + }, + xYears: { + one: '1 bhliadhna', + other: '{{count}} bliadhna' + }, + overXYears: { + one: 'còrr is bliadhna', + other: 'còrr is {{count}} bliadhnaichean' + }, + almostXYears: { + one: 'cha mhòr bliadhna', + other: 'cha mhòr {{count}} bliadhnaichean' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'ann an ' + result; + } else { + return 'o chionn ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/gd/_lib/formatLong/index.js new file mode 100644 index 00000000..0e81ed6e --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/gd/_lib/formatRelative/index.js new file mode 100644 index 00000000..1b36dc4c --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/formatRelative/index.js @@ -0,0 +1,15 @@ +var formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", + //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/_lib/localize/index.js b/node_modules/date-fns/esm/locale/gd/_lib/localize/index.js new file mode 100644 index 00000000..cb43838c --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/localize/index.js @@ -0,0 +1,141 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['R', 'A'], + abbreviated: ['RC', 'AD'], + wide: ['ro Chrìosta', 'anno domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['C1', 'C2', 'C3', 'C4'], + wide: ["a' chiad chairteal", 'an dàrna cairteal', 'an treas cairteal', 'an ceathramh cairteal'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['F', 'G', 'M', 'G', 'C', 'Ò', 'I', 'L', 'S', 'D', 'S', 'D'], + abbreviated: ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'], + wide: ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'C', 'A', 'H', 'S'], + short: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], + abbreviated: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + wide: ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'] +}; +var dayPeriodValues = { + narrow: { + am: 'm', + pm: 'f', + midnight: 'm.o.', + noon: 'm.l.', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + }, + abbreviated: { + am: 'M.', + pm: 'F.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + }, + wide: { + am: 'm.', + pm: 'f.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'm', + pm: 'f', + midnight: 'm.o.', + noon: 'm.l.', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + }, + abbreviated: { + am: 'M.', + pm: 'F.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + }, + wide: { + am: 'm.', + pm: 'f.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'd'; + + case 2: + return number + 'na'; + } + } + + if (rem100 === 12) { + return number + 'na'; + } + + return number + 'mh'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/_lib/match/index.js b/node_modules/date-fns/esm/locale/gd/_lib/match/index.js new file mode 100644 index 00000000..fac49204 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i +}; +var parseMonthPatterns = { + narrow: [/^f/i, /^g/i, /^m/i, /^g/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^s/i, /^d/i, /^s/i, /^d/i], + any: [/^fa/i, /^ge/i, /^mà/i, /^gi/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^su/i, /^d/i, /^sa/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/index.d.ts b/node_modules/date-fns/esm/locale/gd/index.d.ts new file mode 100644 index 00000000..2b247442 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gd } from 'date-fns/locale' +export default gd diff --git a/node_modules/date-fns/esm/locale/gd/index.js b/node_modules/date-fns/esm/locale/gd/index.js new file mode 100644 index 00000000..b3c70865 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll]{@link https://github.com/leedriscoll} + */ + +var locale = { + code: 'gd', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gd/index.js.flow b/node_modules/date-fns/esm/locale/gd/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/gd/package.json b/node_modules/date-fns/esm/locale/gd/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gd/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/gl/_lib/formatDistance/index.js new file mode 100644 index 00000000..6752ee58 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos dun segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'medio minuto', + lessThanXMinutes: { + one: 'menos dun minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'arredor dunha hora', + other: 'arredor de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 día', + other: '{{count}} días' + }, + aboutXWeeks: { + one: 'arredor dunha semana', + other: 'arredor de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'arredor de 1 mes', + other: 'arredor de {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'arredor dun ano', + other: 'arredor de {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'máis dun ano', + other: 'máis de {{count}} anos' + }, + almostXYears: { + one: 'case un ano', + other: 'case {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'hai ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/gl/_lib/formatLong/index.js new file mode 100644 index 00000000..ddcab759 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/gl/_lib/formatRelative/index.js new file mode 100644 index 00000000..534fa9c2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/formatRelative/index.js @@ -0,0 +1,26 @@ +var formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/_lib/localize/index.js b/node_modules/date-fns/esm/locale/gl/_lib/localize/index.js new file mode 100644 index 00000000..948851e5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'despois de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['xan', 'feb', 'mar', 'abr', 'mai', 'xun', 'xul', 'ago', 'set', 'out', 'nov', 'dec'], + wide: ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['do', 'lu', 'ma', 'me', 'xo', 've', 'sa'], + abbreviated: ['dom', 'lun', 'mar', 'mer', 'xov', 'ven', 'sab'], + wide: ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tardiña', + night: 'noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tardiña', + night: 'noite' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/_lib/match/index.js b/node_modules/date-fns/esm/locale/gl/_lib/match/index.js new file mode 100644 index 00000000..7e841877 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era com[uú]n)/i, /^(despois de cristo|era com[uú]n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i +}; +var parseMonthPatterns = { + narrow: [/^x/i, /^f/i, /^m/i, /^a/i, /^m/i, /^x/i, /^x/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^xan/i, /^feb/i, /^mar/i, /^abr/i, /^mai/i, /^xun/i, /^xul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/index.d.ts b/node_modules/date-fns/esm/locale/gl/index.d.ts new file mode 100644 index 00000000..67954c68 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gl } from 'date-fns/locale' +export default gl diff --git a/node_modules/date-fns/esm/locale/gl/index.js b/node_modules/date-fns/esm/locale/gl/index.js new file mode 100644 index 00000000..d3f3f035 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech]{@link https://github.com/cocodinTech} + * @author Fidel Pita [@fidelpita]{@link https://github.com/fidelpita} + */ + +var locale = { + code: 'gl', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gl/index.js.flow b/node_modules/date-fns/esm/locale/gl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/gl/package.json b/node_modules/date-fns/esm/locale/gl/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gl/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/gu/_lib/formatDistance/index.js new file mode 100644 index 00000000..2c25b59c --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/formatDistance/index.js @@ -0,0 +1,91 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'હમણાં', + // CLDR #1461 + other: '​આશરે {{count}} સેકંડ' + }, + xSeconds: { + one: '1 સેકંડ', + other: '{{count}} સેકંડ' + }, + halfAMinute: 'અડધી મિનિટ', + lessThanXMinutes: { + one: 'આ મિનિટ', + // CLDR #1448 + other: '​આશરે {{count}} મિનિટ' + }, + xMinutes: { + one: '1 મિનિટ', + other: '{{count}} મિનિટ' + }, + aboutXHours: { + one: '​આશરે 1 કલાક', + other: '​આશરે {{count}} કલાક' + }, + xHours: { + one: '1 કલાક', + other: '{{count}} કલાક' + }, + xDays: { + one: '1 દિવસ', + other: '{{count}} દિવસ' + }, + aboutXWeeks: { + one: 'આશરે 1 અઠવાડિયું', + other: 'આશરે {{count}} અઠવાડિયા' + }, + xWeeks: { + one: '1 અઠવાડિયું', + other: '{{count}} અઠવાડિયા' + }, + aboutXMonths: { + one: 'આશરે 1 મહિનો', + other: 'આશરે {{count}} મહિના' + }, + xMonths: { + one: '1 મહિનો', + other: '{{count}} મહિના' + }, + aboutXYears: { + one: 'આશરે 1 વર્ષ', + other: 'આશરે {{count}} વર્ષ' + }, + xYears: { + one: '1 વર્ષ', + other: '{{count}} વર્ષ' + }, + overXYears: { + one: '1 વર્ષથી વધુ', + other: '{{count}} વર્ષથી વધુ' + }, + almostXYears: { + one: 'લગભગ 1 વર્ષ', + other: 'લગભગ {{count}} વર્ષ' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'માં'; + } else { + return result + ' પહેલાં'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/gu/_lib/formatLong/index.js new file mode 100644 index 00000000..ee23c3a4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/formatLong/index.js @@ -0,0 +1,47 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; //Source: https://www.unicode.org/cldr/charts/32/summary/gu.html + +var dateFormats = { + full: 'EEEE, d MMMM, y', + // CLDR #1825 + long: 'd MMMM, y', + // CLDR #1826 + medium: 'd MMM, y', + // CLDR #1827 + short: 'd/M/yy' // CLDR #1828 + +}; +var timeFormats = { + full: 'hh:mm:ss a zzzz', + // CLDR #1829 + long: 'hh:mm:ss a z', + // CLDR #1830 + medium: 'hh:mm:ss a', + // CLDR #1831 + short: 'hh:mm a' // CLDR #1832 + +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + // CLDR #1833 + long: '{{date}} {{time}}', + // CLDR #1834 + medium: '{{date}} {{time}}', + // CLDR #1835 + short: '{{date}} {{time}}' // CLDR #1836 + +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/gu/_lib/formatRelative/index.js new file mode 100644 index 00000000..4f5820dd --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +var formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", + // CLDR #1384 + yesterday: "'ગઈકાલે' p", + // CLDR #1409 + today: "'આજે' p", + // CLDR #1410 + tomorrow: "'આવતીકાલે' p", + // CLDR #1411 + nextWeek: 'eeee p', + // CLDR #1386 + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/_lib/localize/index.js b/node_modules/date-fns/esm/locale/gu/_lib/localize/index.js new file mode 100644 index 00000000..e288083a --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/localize/index.js @@ -0,0 +1,148 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 + +var eraValues = { + narrow: ['ઈસપૂ', 'ઈસ'], + abbreviated: ['ઈ.સ.પૂર્વે', 'ઈ.સ.'], + wide: ['ઈસવીસન પૂર્વે', 'ઈસવીસન'] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1લો ત્રિમાસ', '2જો ત્રિમાસ', '3જો ત્રિમાસ', '4થો ત્રિમાસ'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 + +var monthValues = { + narrow: ['જા', 'ફે', 'મા', 'એ', 'મે', 'જૂ', 'જુ', 'ઓ', 'સ', 'ઓ', 'ન', 'ડિ'], + abbreviated: ['જાન્યુ', 'ફેબ્રુ', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઈ', 'ઑગસ્ટ', 'સપ્ટે', 'ઓક્ટો', 'નવે', 'ડિસે'], + wide: ['જાન્યુઆરી', 'ફેબ્રુઆરી', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઇ', 'ઓગસ્ટ', 'સપ્ટેમ્બર', 'ઓક્ટોબર', 'નવેમ્બર', 'ડિસેમ્બર'] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 + +var dayValues = { + narrow: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'], + short: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'], + abbreviated: ['રવિ', 'સોમ', 'મંગળ', 'બુધ', 'ગુરુ', 'શુક્ર', 'શનિ'], + wide: ['રવિવાર' + /* Sunday */ + , 'સોમવાર' + /* Monday */ + , 'મંગળવાર' + /* Tuesday */ + , 'બુધવાર' + /* Wednesday */ + , 'ગુરુવાર' + /* Thursday */ + , 'શુક્રવાર' + /* Friday */ + , 'શનિવાર' + /* Saturday */ + ] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 + +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'મ.રાત્રિ', + noon: 'બ.', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'મ.રાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/_lib/match/index.js b/node_modules/date-fns/esm/locale/gu/_lib/match/index.js new file mode 100644 index 00000000..7e6e6fcf --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i +}; +var parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i +}; +var parseMonthPatterns = { + narrow: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i], + any: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i] +}; +var matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i +}; +var parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/index.d.ts b/node_modules/date-fns/esm/locale/gu/index.d.ts new file mode 100644 index 00000000..42642b64 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gu } from 'date-fns/locale' +export default gu diff --git a/node_modules/date-fns/esm/locale/gu/index.js b/node_modules/date-fns/esm/locale/gu/index.js new file mode 100644 index 00000000..20c933ab --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM]{@link https://github.com/manadaym} + */ + +var locale = { + code: 'gu', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/gu/index.js.flow b/node_modules/date-fns/esm/locale/gu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/gu/package.json b/node_modules/date-fns/esm/locale/gu/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/gu/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/he/_lib/formatDistance/index.js new file mode 100644 index 00000000..d7f77c82 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/formatDistance/index.js @@ -0,0 +1,114 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'פחות משנייה', + two: 'פחות משתי שניות', + other: 'פחות מ־{{count}} שניות' + }, + xSeconds: { + one: 'שנייה', + two: 'שתי שניות', + other: '{{count}} שניות' + }, + halfAMinute: 'חצי דקה', + lessThanXMinutes: { + one: 'פחות מדקה', + two: 'פחות משתי דקות', + other: 'פחות מ־{{count}} דקות' + }, + xMinutes: { + one: 'דקה', + two: 'שתי דקות', + other: '{{count}} דקות' + }, + aboutXHours: { + one: 'כשעה', + two: 'כשעתיים', + other: 'כ־{{count}} שעות' + }, + xHours: { + one: 'שעה', + two: 'שעתיים', + other: '{{count}} שעות' + }, + xDays: { + one: 'יום', + two: 'יומיים', + other: '{{count}} ימים' + }, + aboutXWeeks: { + one: 'כשבוע', + two: 'כשבועיים', + other: 'כ־{{count}} שבועות' + }, + xWeeks: { + one: 'שבוע', + two: 'שבועיים', + other: '{{count}} שבועות' + }, + aboutXMonths: { + one: 'כחודש', + two: 'כחודשיים', + other: 'כ־{{count}} חודשים' + }, + xMonths: { + one: 'חודש', + two: 'חודשיים', + other: '{{count}} חודשים' + }, + aboutXYears: { + one: 'כשנה', + two: 'כשנתיים', + other: 'כ־{{count}} שנים' + }, + xYears: { + one: 'שנה', + two: 'שנתיים', + other: '{{count}} שנים' + }, + overXYears: { + one: 'יותר משנה', + two: 'יותר משנתיים', + other: 'יותר מ־{{count}} שנים' + }, + almostXYears: { + one: 'כמעט שנה', + two: 'כמעט שנתיים', + other: 'כמעט {{count}} שנים' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + // Return word instead of `in one day` or `one day ago` + if (token === 'xDays' && options !== null && options !== void 0 && options.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? 'מחר' : 'מחרתיים'; + } + + return count === 1 ? 'אתמול' : 'שלשום'; + } + + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'בעוד ' + result; + } else { + return 'לפני ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/he/_lib/formatLong/index.js new file mode 100644 index 00000000..6153f919 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d בMMMM y', + long: 'd בMMMM y', + medium: 'd בMMM y', + short: 'd.M.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/he/_lib/formatRelative/index.js new file mode 100644 index 00000000..bd845b76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/_lib/localize/index.js b/node_modules/date-fns/esm/locale/he/_lib/localize/index.js new file mode 100644 index 00000000..ecb75f6f --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['לפנה״ס', 'לספירה'], + abbreviated: ['לפנה״ס', 'לספירה'], + wide: ['לפני הספירה', 'לספירה'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['רבעון 1', 'רבעון 2', 'רבעון 3', 'רבעון 4'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'], + wide: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'] +}; +var dayValues = { + narrow: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], + short: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], + abbreviated: ['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'], + wide: ['יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'יום שבת'] +}; +var dayPeriodValues = { + narrow: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + }, + abbreviated: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + }, + wide: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'בצהריים', + evening: 'בערב', + night: 'בלילה' + }, + abbreviated: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'אחר הצהריים', + evening: 'בערב', + night: 'בלילה' + }, + wide: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'אחר הצהריים', + evening: 'בערב', + night: 'בלילה' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); // We only show words till 10 + + if (number <= 0 || number > 10) return String(number); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var isFemale = ['year', 'hour', 'minute', 'second'].indexOf(unit) >= 0; + var male = ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שביעי', 'שמיני', 'תשיעי', 'עשירי']; + var female = ['ראשונה', 'שנייה', 'שלישית', 'רביעית', 'חמישית', 'שישית', 'שביעית', 'שמינית', 'תשיעית', 'עשירית']; + var index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/_lib/match/index.js b/node_modules/date-fns/esm/locale/he/_lib/match/index.js new file mode 100644 index 00000000..3b112f76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +var parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; +var matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i +}; +var parseEraPatterns = { + any: [/^לפ/i, /^לס/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i +}; +var parseMonthPatterns = { + narrow: [/^1$/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ינ/i, /^פ/i, /^מר/i, /^אפ/i, /^מא/i, /^יונ/i, /^יול/i, /^אוג/i, /^ס/i, /^אוק/i, /^נ/i, /^ד/i] +}; +var matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i +}; +var parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i] +}; +var matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i + } +}; +var ordinalName = ['רא', 'שנ', 'של', 'רב', 'ח', 'שי', 'שב', 'שמ', 'ת', 'ע']; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + var number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/index.d.ts b/node_modules/date-fns/esm/locale/he/index.d.ts new file mode 100644 index 00000000..33d6042f --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { he } from 'date-fns/locale' +export default he diff --git a/node_modules/date-fns/esm/locale/he/index.js b/node_modules/date-fns/esm/locale/he/index.js new file mode 100644 index 00000000..b898e7db --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah]{@link https://github.com/nirlah} + */ + +var locale = { + code: 'he', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/he/index.js.flow b/node_modules/date-fns/esm/locale/he/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/he/package.json b/node_modules/date-fns/esm/locale/he/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/he/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/hi/_lib/formatDistance/index.js new file mode 100644 index 00000000..570af26d --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +import { numberToLocale } from "../localize/index.js"; // Source: https://www.unicode.org/cldr/charts/32/summary/hi.html + +var formatDistanceLocale = { + lessThanXSeconds: { + one: '१ सेकंड से कम', + // CLDR #1310 + other: '{{count}} सेकंड से कम' + }, + xSeconds: { + one: '१ सेकंड', + other: '{{count}} सेकंड' + }, + halfAMinute: 'आधा मिनट', + lessThanXMinutes: { + one: '१ मिनट से कम', + other: '{{count}} मिनट से कम' + }, + xMinutes: { + one: '१ मिनट', + // CLDR #1307 + other: '{{count}} मिनट' + }, + aboutXHours: { + one: 'लगभग १ घंटा', + other: 'लगभग {{count}} घंटे' + }, + xHours: { + one: '१ घंटा', + // CLDR #1304 + other: '{{count}} घंटे' // CLDR #4467 + + }, + xDays: { + one: '१ दिन', + // CLDR #1286 + other: '{{count}} दिन' + }, + aboutXWeeks: { + one: 'लगभग १ सप्ताह', + other: 'लगभग {{count}} सप्ताह' + }, + xWeeks: { + one: '१ सप्ताह', + other: '{{count}} सप्ताह' + }, + aboutXMonths: { + one: 'लगभग १ महीना', + other: 'लगभग {{count}} महीने' + }, + xMonths: { + one: '१ महीना', + other: '{{count}} महीने' + }, + aboutXYears: { + one: 'लगभग १ वर्ष', + other: 'लगभग {{count}} वर्ष' // CLDR #4823 + + }, + xYears: { + one: '१ वर्ष', + other: '{{count}} वर्ष' + }, + overXYears: { + one: '१ वर्ष से अधिक', + other: '{{count}} वर्ष से अधिक' + }, + almostXYears: { + one: 'लगभग १ वर्ष', + other: 'लगभग {{count}} वर्ष' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', numberToLocale(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'मे '; + } else { + return result + ' पहले'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/hi/_lib/formatLong/index.js new file mode 100644 index 00000000..3d5eda0a --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM, y', + // CLDR #1787 + long: 'do MMMM, y', + // CLDR #1788 + medium: 'd MMM, y', + // CLDR #1789 + short: 'dd/MM/yyyy' // CLDR #1790 + +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + // CLDR #1791 + long: 'h:mm:ss a z', + // CLDR #1792 + medium: 'h:mm:ss a', + // CLDR #1793 + short: 'h:mm a' // CLDR #1794 + +}; +var dateTimeFormats = { + full: "{{date}} 'को' {{time}}", + // CLDR #1795 + long: "{{date}} 'को' {{time}}", + // CLDR #1796 + medium: '{{date}}, {{time}}', + // CLDR #1797 + short: '{{date}}, {{time}}' // CLDR #1798 + +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/hi/_lib/formatRelative/index.js new file mode 100644 index 00000000..be946ab6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/_lib/localize/index.js b/node_modules/date-fns/esm/locale/hi/_lib/localize/index.js new file mode 100644 index 00000000..370f3aa5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/localize/index.js @@ -0,0 +1,167 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var numberValues = { + locale: { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०' + }, + number: { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + } +}; // CLDR #1585 - #1592 + +var eraValues = { + narrow: ['ईसा-पूर्व', 'ईस्वी'], + abbreviated: ['ईसा-पूर्व', 'ईस्वी'], + wide: ['ईसा-पूर्व', 'ईसवी सन'] +}; // CLDR #1593 - #1616 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ति1', 'ति2', 'ति3', 'ति4'], + wide: ['पहली तिमाही', 'दूसरी तिमाही', 'तीसरी तिमाही', 'चौथी तिमाही'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 + +var monthValues = { + narrow: ['ज', 'फ़', 'मा', 'अ', 'मई', 'जू', 'जु', 'अग', 'सि', 'अक्टू', 'न', 'दि'], + abbreviated: ['जन', 'फ़र', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुल', 'अग', 'सित', 'अक्टू', 'नव', 'दिस'], + wide: ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'] +}; // CLDR #1689 - #1744 + +var dayValues = { + narrow: ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], + short: ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], + abbreviated: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], + wide: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'] +}; +var dayPeriodValues = { + narrow: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + abbreviated: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + wide: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + abbreviated: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + wide: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return numberToLocale(number); +}; + +export function localeToNumber(locale) { + var enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} +export function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/_lib/match/index.js b/node_modules/date-fns/esm/locale/hi/_lib/match/index.js new file mode 100644 index 00000000..46535db4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import { localeToNumber } from "../localize/index.js"; +var matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +var parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +var matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i +}; +var parseMonthPatterns = { + narrow: [/^ज/i, /^फ़/i, /^मा/i, /^अप्/i, /^मई/i, /^जू/i, /^जु/i, /^अग/i, /^सि/i, /^अक्तू/i, /^न/i, /^दि/i], + any: [/^जन/i, /^फ़/i, /^मा/i, /^अप्/i, /^मई/i, /^जू/i, /^जु/i, /^अग/i, /^सि/i, /^अक्तू/i, /^नव/i, /^दिस/i] +}; +var matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i +}; +var parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: localeToNumber + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/index.d.ts b/node_modules/date-fns/esm/locale/hi/index.d.ts new file mode 100644 index 00000000..089bdd9e --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hi } from 'date-fns/locale' +export default hi diff --git a/node_modules/date-fns/esm/locale/hi/index.js b/node_modules/date-fns/esm/locale/hi/index.js new file mode 100644 index 00000000..b1392837 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal]{@link https://github.com/mukeshmandiwal} + */ + +var locale = { + code: 'hi', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hi/index.js.flow b/node_modules/date-fns/esm/locale/hi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/hi/package.json b/node_modules/date-fns/esm/locale/hi/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hi/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/hr/_lib/formatDistance/index.js new file mode 100644 index 00000000..ed4a9944 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/formatDistance/index.js @@ -0,0 +1,175 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 tjedan', + withPrepositionAgo: 'oko 1 tjedan', + withPrepositionIn: 'oko 1 tjedan' + }, + dual: 'oko {{count}} tjedna', + other: 'oko {{count}} tjedana' + }, + xWeeks: { + one: { + standalone: '1 tjedan', + withPrepositionAgo: '1 tjedan', + withPrepositionIn: '1 tjedan' + }, + dual: '{{count}} tjedna', + other: '{{count}} tjedana' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mjesec', + withPrepositionAgo: 'oko 1 mjesec', + withPrepositionIn: 'oko 1 mjesec' + }, + dual: 'oko {{count}} mjeseca', + other: 'oko {{count}} mjeseci' + }, + xMonths: { + one: { + standalone: '1 mjesec', + withPrepositionAgo: '1 mjesec', + withPrepositionIn: '1 mjesec' + }, + dual: '{{count}} mjeseca', + other: '{{count}} mjeseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/hr/_lib/formatLong/index.js new file mode 100644 index 00000000..78e69734 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM y.', + long: 'd. MMMM y.', + medium: 'd. MMM y.', + short: 'dd. MM. y.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/hr/_lib/formatRelative/index.js new file mode 100644 index 00000000..8c8b105e --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/formatRelative/index.js @@ -0,0 +1,48 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošlu nedjelju u' p"; + + case 3: + return "'prošlu srijedu u' p"; + + case 6: + return "'prošlu subotu u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'iduću nedjelju u' p"; + + case 3: + return "'iduću srijedu u' p"; + + case 6: + return "'iduću subotu u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/_lib/localize/index.js b/node_modules/date-fns/esm/locale/hr/_lib/localize/index.js new file mode 100644 index 00000000..7e8baf9d --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Kr.', 'po. Kr.'], + wide: ['Prije Krista', 'Poslije Krista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], + wide: ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], + wide: ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenog', 'prosinca'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], + wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'poslije podne', + evening: 'navečer', + night: 'noću' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'poslije podne', + evening: 'navečer', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/_lib/match/index.js b/node_modules/date-fns/esm/locale/hr/_lib/match/index.js new file mode 100644 index 00000000..e07aaba9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i +}; +var parseMonthPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i, /8/i, /9/i, /10/i, /11/i, /12/i], + abbreviated: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i], + wide: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/index.d.ts b/node_modules/date-fns/esm/locale/hr/index.d.ts new file mode 100644 index 00000000..025baa3b --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hr } from 'date-fns/locale' +export default hr diff --git a/node_modules/date-fns/esm/locale/hr/index.js b/node_modules/date-fns/esm/locale/hr/index.js new file mode 100644 index 00000000..e47bda68 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon]{@link https://github.com/silvenon} + * @author Manico [@manico]{@link https://github.com/manico} + * @author Ivan Jeržabek [@jerzabek]{@link https://github.com/jerzabek} + */ + +var locale = { + code: 'hr', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hr/index.js.flow b/node_modules/date-fns/esm/locale/hr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/hr/package.json b/node_modules/date-fns/esm/locale/hr/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hr/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ht/_lib/formatDistance/index.js new file mode 100644 index 00000000..3f681dc7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mwens pase yon segond', + other: 'mwens pase {{count}} segond' + }, + xSeconds: { + one: '1 segond', + other: '{{count}} segond' + }, + halfAMinute: '30 segond', + lessThanXMinutes: { + one: 'mwens pase yon minit', + other: 'mwens pase {{count}} minit' + }, + xMinutes: { + one: '1 minit', + other: '{{count}} minit' + }, + aboutXHours: { + one: 'anviwon inè', + other: 'anviwon {{count}} è' + }, + xHours: { + one: '1 lè', + other: '{{count}} lè' + }, + xDays: { + one: '1 jou', + other: '{{count}} jou' + }, + aboutXWeeks: { + one: 'anviwon 1 semèn', + other: 'anviwon {{count}} semèn' + }, + xWeeks: { + one: '1 semèn', + other: '{{count}} semèn' + }, + aboutXMonths: { + one: 'anviwon 1 mwa', + other: 'anviwon {{count}} mwa' + }, + xMonths: { + one: '1 mwa', + other: '{{count}} mwa' + }, + aboutXYears: { + one: 'anviwon 1 an', + other: 'anviwon {{count}} an' + }, + xYears: { + one: '1 an', + other: '{{count}} an' + }, + overXYears: { + one: 'plis pase 1 an', + other: 'plis pase {{count}} an' + }, + almostXYears: { + one: 'prèske 1 an', + other: 'prèske {{count}} an' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'nan ' + result; + } else { + return 'sa fè ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ht/_lib/formatLong/index.js new file mode 100644 index 00000000..a3203662 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ht/_lib/formatRelative/index.js new file mode 100644 index 00000000..842d350a --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ht/_lib/localize/index.js new file mode 100644 index 00000000..d7933386 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/_lib/localize/index.js @@ -0,0 +1,89 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['av. J.-K', 'ap. J.-K'], + abbreviated: ['av. J.-K', 'ap. J.-K'], + wide: ['anvan Jezi Kris', 'apre Jezi Kris'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1ye trim.', '2yèm trim.', '3yèm trim.', '4yèm trim.'], + wide: ['1ye trimès', '2yèm trimès', '3yèm trimès', '4yèm trimès'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'fevr.', 'mas', 'avr.', 'me', 'jen', 'jiyè', 'out', 'sept.', 'okt.', 'nov.', 'des.'], + wide: ['janvye', 'fevrye', 'mas', 'avril', 'me', 'jen', 'jiyè', 'out', 'septanm', 'oktòb', 'novanm', 'desanm'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], + short: ['di', 'le', 'ma', 'mè', 'je', 'va', 'sa'], + abbreviated: ['dim.', 'len.', 'mad.', 'mèk.', 'jed.', 'van.', 'sam.'], + wide: ['dimanch', 'lendi', 'madi', 'mèkredi', 'jedi', 'vandredi', 'samdi'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'mat.', + afternoon: 'ap.m.', + evening: 'swa', + night: 'mat.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'maten', + afternoon: 'aprèmidi', + evening: 'swa', + night: 'maten' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'nan maten', + afternoon: 'nan aprèmidi', + evening: 'nan aswè', + night: 'nan maten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + if (number === 0) return String(number); + var suffix = number === 1 ? 'ye' : 'yèm'; + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/_lib/match/index.js b/node_modules/date-fns/esm/locale/ht/_lib/match/index.js new file mode 100644 index 00000000..a9403f59 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i +}; +var parseEraPatterns = { + any: [/^av/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^av/i, /^me/i, /^je/i, /^ji/i, /^ou/i, /^s/i, /^ok/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/index.d.ts b/node_modules/date-fns/esm/locale/ht/index.d.ts new file mode 100644 index 00000000..7362d752 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ht } from 'date-fns/locale' +export default ht diff --git a/node_modules/date-fns/esm/locale/ht/index.js b/node_modules/date-fns/esm/locale/ht/index.js new file mode 100644 index 00000000..94121229 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo]{@link https://github.com/rmariuzzo} + * @author Watson Marcelain [@watsongm24]{@link https://github.com/watsongm24} + */ + +var locale = { + code: 'ht', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ht/index.js.flow b/node_modules/date-fns/esm/locale/ht/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ht/package.json b/node_modules/date-fns/esm/locale/ht/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ht/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js new file mode 100644 index 00000000..c6840665 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/formatDistance/index.js @@ -0,0 +1,77 @@ +var translations = { + about: 'körülbelül', + over: 'több mint', + almost: 'majdnem', + lessthan: 'kevesebb mint' +}; +var withoutSuffixes = { + xseconds: ' másodperc', + halfaminute: 'fél perc', + xminutes: ' perc', + xhours: ' óra', + xdays: ' nap', + xweeks: ' hét', + xmonths: ' hónap', + xyears: ' év' +}; +var withSuffixes = { + xseconds: { + '-1': ' másodperccel ezelőtt', + '1': ' másodperc múlva', + '0': ' másodperce' + }, + halfaminute: { + '-1': 'fél perccel ezelőtt', + '1': 'fél perc múlva', + '0': 'fél perce' + }, + xminutes: { + '-1': ' perccel ezelőtt', + '1': ' perc múlva', + '0': ' perce' + }, + xhours: { + '-1': ' órával ezelőtt', + '1': ' óra múlva', + '0': ' órája' + }, + xdays: { + '-1': ' nappal ezelőtt', + '1': ' nap múlva', + '0': ' napja' + }, + xweeks: { + '-1': ' héttel ezelőtt', + '1': ' hét múlva', + '0': ' hete' + }, + xmonths: { + '-1': ' hónappal ezelőtt', + '1': ' hónap múlva', + '0': ' hónapja' + }, + xyears: { + '-1': ' évvel ezelőtt', + '1': ' év múlva', + '0': ' éve' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], '') : token; + var addSuffix = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var key = unit.toLowerCase(); + var comparison = (options === null || options === void 0 ? void 0 : options.comparison) || 0; + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + var result = key === 'halfaminute' ? translated : count + translated; + + if (adverb) { + var adv = adverb[0].toLowerCase(); + result = translations[adv] + ' ' + result; + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/hu/_lib/formatLong/index.js new file mode 100644 index 00000000..32de3f3b --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'y. MMMM d., EEEE', + long: 'y. MMMM d.', + medium: 'y. MMM d.', + short: 'y. MM. dd.' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/hu/_lib/formatRelative/index.js new file mode 100644 index 00000000..7be332ed --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/formatRelative/index.js @@ -0,0 +1,30 @@ +var accusativeWeekdays = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; + +function week(isFuture) { + return function (date) { + var weekday = accusativeWeekdays[date.getUTCDay()]; + var prefix = isFuture ? '' : "'múlt' "; + return "".concat(prefix, "'").concat(weekday, "' p'-kor'"); + }; +} + +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/_lib/localize/index.js b/node_modules/date-fns/esm/locale/hu/_lib/localize/index.js new file mode 100644 index 00000000..0f17aaf9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/localize/index.js @@ -0,0 +1,94 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ie.', 'isz.'], + abbreviated: ['i. e.', 'i. sz.'], + wide: ['Krisztus előtt', 'időszámításunk szerint'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. n.év', '2. n.év', '3. n.év', '4. n.év'], + wide: ['1. negyedév', '2. negyedév', '3. negyedév', '4. negyedév'] +}; +var formattingQuarterValues = { + narrow: ['I.', 'II.', 'III.', 'IV.'], + abbreviated: ['I. n.év', 'II. n.év', 'III. n.év', 'IV. n.év'], + wide: ['I. negyedév', 'II. negyedév', 'III. negyedév', 'IV. negyedév'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'Á', 'M', 'J', 'J', 'A', 'Sz', 'O', 'N', 'D'], + abbreviated: ['jan.', 'febr.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'], + wide: ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'] +}; +var dayValues = { + narrow: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'], + short: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + abbreviated: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + wide: ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'] +}; +var dayPeriodValues = { + narrow: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'du.', + evening: 'este', + night: 'éjjel' + }, + abbreviated: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'du.', + evening: 'este', + night: 'éjjel' + }, + wide: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'délután', + evening: 'este', + night: 'éjjel' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + }, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide' + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/_lib/match/index.js b/node_modules/date-fns/esm/locale/hu/_lib/match/index.js new file mode 100644 index 00000000..ff6f337d --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i +}; +var parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i +}; +var parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a|á/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s|sz/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^már/i, /^áp/i, /^máj/i, /^jún/i, /^júl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i +}; +var parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i] +}; +var matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/index.d.ts b/node_modules/date-fns/esm/locale/hu/index.d.ts new file mode 100644 index 00000000..979baa6e --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hu } from 'date-fns/locale' +export default hu diff --git a/node_modules/date-fns/esm/locale/hu/index.js b/node_modules/date-fns/esm/locale/hu/index.js new file mode 100644 index 00000000..262dfed5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} + * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} + * @author Zoltan Szepesi [@twodcube]{@link https://github.com/twodcube} + */ + +var locale = { + code: 'hu', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hu/index.js.flow b/node_modules/date-fns/esm/locale/hu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/hu/package.json b/node_modules/date-fns/esm/locale/hu/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hu/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/hy/_lib/formatDistance/index.js new file mode 100644 index 00000000..098eb1b4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'ավելի քիչ քան 1 վայրկյան', + other: 'ավելի քիչ քան {{count}} վայրկյան' + }, + xSeconds: { + one: '1 վայրկյան', + other: '{{count}} վայրկյան' + }, + halfAMinute: 'կես րոպե', + lessThanXMinutes: { + one: 'ավելի քիչ քան 1 րոպե', + other: 'ավելի քիչ քան {{count}} րոպե' + }, + xMinutes: { + one: '1 րոպե', + other: '{{count}} րոպե' + }, + aboutXHours: { + one: 'մոտ 1 ժամ', + other: 'մոտ {{count}} ժամ' + }, + xHours: { + one: '1 ժամ', + other: '{{count}} ժամ' + }, + xDays: { + one: '1 օր', + other: '{{count}} օր' + }, + aboutXWeeks: { + one: 'մոտ 1 շաբաթ', + other: 'մոտ {{count}} շաբաթ' + }, + xWeeks: { + one: '1 շաբաթ', + other: '{{count}} շաբաթ' + }, + aboutXMonths: { + one: 'մոտ 1 ամիս', + other: 'մոտ {{count}} ամիս' + }, + xMonths: { + one: '1 ամիս', + other: '{{count}} ամիս' + }, + aboutXYears: { + one: 'մոտ 1 տարի', + other: 'մոտ {{count}} տարի' + }, + xYears: { + one: '1 տարի', + other: '{{count}} տարի' + }, + overXYears: { + one: 'ավելի քան 1 տարի', + other: 'ավելի քան {{count}} տարի' + }, + almostXYears: { + one: 'համարյա 1 տարի', + other: 'համարյա {{count}} տարի' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' հետո'; + } else { + return result + ' առաջ'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/hy/_lib/formatLong/index.js new file mode 100644 index 00000000..f043eef4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'd MMMM, y, EEEE', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/hy/_lib/formatRelative/index.js new file mode 100644 index 00000000..5a965193 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/_lib/localize/index.js b/node_modules/date-fns/esm/locale/hy/_lib/localize/index.js new file mode 100644 index 00000000..62207823 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/localize/index.js @@ -0,0 +1,135 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['Ք', 'Մ'], + abbreviated: ['ՔԱ', 'ՄԹ'], + wide: ['Քրիստոսից առաջ', 'Մեր թվարկության'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Ք1', 'Ք2', 'Ք3', 'Ք4'], + wide: ['1֊ին քառորդ', '2֊րդ քառորդ', '3֊րդ քառորդ', '4֊րդ քառորդ'] +}; +var monthValues = { + narrow: ['Հ', 'Փ', 'Մ', 'Ա', 'Մ', 'Հ', 'Հ', 'Օ', 'Ս', 'Հ', 'Ն', 'Դ'], + abbreviated: ['հուն', 'փետ', 'մար', 'ապր', 'մայ', 'հուն', 'հուլ', 'օգս', 'սեպ', 'հոկ', 'նոյ', 'դեկ'], + wide: ['հունվար', 'փետրվար', 'մարտ', 'ապրիլ', 'մայիս', 'հունիս', 'հուլիս', 'օգոստոս', 'սեպտեմբեր', 'հոկտեմբեր', 'նոյեմբեր', 'դեկտեմբեր'] +}; +var dayValues = { + narrow: ['Կ', 'Ե', 'Ե', 'Չ', 'Հ', 'Ո', 'Շ'], + short: ['կր', 'եր', 'եք', 'չք', 'հգ', 'ուր', 'շբ'], + abbreviated: ['կիր', 'երկ', 'երք', 'չոր', 'հնգ', 'ուրբ', 'շաբ'], + wide: ['կիրակի', 'երկուշաբթի', 'երեքշաբթի', 'չորեքշաբթի', 'հինգշաբթի', 'ուրբաթ', 'շաբաթ'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'կեսգշ', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'կեսգիշեր', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'կեսգիշեր', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'կեսգշ', + noon: 'կեսօր', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'կեսգիշերին', + noon: 'կեսօրին', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'կեսգիշերին', + noon: 'կեսօրին', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + var rem100 = number % 100; + + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + '֊ին'; + } + } + + return number + '֊րդ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/_lib/match/index.js b/node_modules/date-fns/esm/locale/hy/_lib/match/index.js new file mode 100644 index 00000000..53fef944 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i +}; +var parseEraPatterns = { + any: [/^ք/i, /^մ/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i +}; +var parseMonthPatterns = { + narrow: [/^հ/i, /^փ/i, /^մ/i, /^ա/i, /^մ/i, /^հ/i, /^հ/i, /^օ/i, /^ս/i, /^հ/i, /^ն/i, /^դ/i], + any: [/^հու/i, /^փ/i, /^մար/i, /^ա/i, /^մայ/i, /^հուն/i, /^հուլ/i, /^օ/i, /^ս/i, /^հոկ/i, /^ն/i, /^դ/i] +}; +var matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i +}; +var parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/index.d.ts b/node_modules/date-fns/esm/locale/hy/index.d.ts new file mode 100644 index 00000000..a79f29e1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hy } from 'date-fns/locale' +export default hy diff --git a/node_modules/date-fns/esm/locale/hy/index.js b/node_modules/date-fns/esm/locale/hy/index.js new file mode 100644 index 00000000..e5bdee6d --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan]{@link https://github.com/alexigityan} + */ + +var locale = { + code: 'hy', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/hy/index.js.flow b/node_modules/date-fns/esm/locale/hy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/hy/package.json b/node_modules/date-fns/esm/locale/hy/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/hy/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/id/_lib/formatDistance/index.js new file mode 100644 index 00000000..e0a7a0e4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'kurang dari 1 detik', + other: 'kurang dari {{count}} detik' + }, + xSeconds: { + one: '1 detik', + other: '{{count}} detik' + }, + halfAMinute: 'setengah menit', + lessThanXMinutes: { + one: 'kurang dari 1 menit', + other: 'kurang dari {{count}} menit' + }, + xMinutes: { + one: '1 menit', + other: '{{count}} menit' + }, + aboutXHours: { + one: 'sekitar 1 jam', + other: 'sekitar {{count}} jam' + }, + xHours: { + one: '1 jam', + other: '{{count}} jam' + }, + xDays: { + one: '1 hari', + other: '{{count}} hari' + }, + aboutXWeeks: { + one: 'sekitar 1 minggu', + other: 'sekitar {{count}} minggu' + }, + xWeeks: { + one: '1 minggu', + other: '{{count}} minggu' + }, + aboutXMonths: { + one: 'sekitar 1 bulan', + other: 'sekitar {{count}} bulan' + }, + xMonths: { + one: '1 bulan', + other: '{{count}} bulan' + }, + aboutXYears: { + one: 'sekitar 1 tahun', + other: 'sekitar {{count}} tahun' + }, + xYears: { + one: '1 tahun', + other: '{{count}} tahun' + }, + overXYears: { + one: 'lebih dari 1 tahun', + other: 'lebih dari {{count}} tahun' + }, + almostXYears: { + one: 'hampir 1 tahun', + other: 'hampir {{count}} tahun' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dalam waktu ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/id/_lib/formatLong/index.js new file mode 100644 index 00000000..6cab5709 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'd/M/yyyy' +}; +var timeFormats = { + full: 'HH.mm.ss', + long: 'HH.mm.ss', + medium: 'HH.mm', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/id/_lib/formatRelative/index.js new file mode 100644 index 00000000..1b5ebf89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/_lib/localize/index.js b/node_modules/date-fns/esm/locale/id/_lib/localize/index.js new file mode 100644 index 00000000..b49c3e92 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html + +var eraValues = { + narrow: ['SM', 'M'], + abbreviated: ['SM', 'M'], + wide: ['Sebelum Masehi', 'Masehi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['Kuartal ke-1', 'Kuartal ke-2', 'Kuartal ke-3', 'Kuartal ke-4'] +}; // Note: in Indonesian, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agt', 'Sep', 'Okt', 'Nov', 'Des'], + wide: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'] +}; +var dayValues = { + narrow: ['M', 'S', 'S', 'R', 'K', 'J', 'S'], + short: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], + abbreviated: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], + wide: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + return 'ke-' + number; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/_lib/match/index.js b/node_modules/date-fns/esm/locale/id/_lib/match/index.js new file mode 100644 index 00000000..9e8992a7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^ke-(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i +}; +var parseEraPatterns = { + any: [/^s/i, /^(m|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i +}; +var parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/index.d.ts b/node_modules/date-fns/esm/locale/id/index.d.ts new file mode 100644 index 00000000..2bf83f4f --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { id } from 'date-fns/locale' +export default id diff --git a/node_modules/date-fns/esm/locale/id/index.js b/node_modules/date-fns/esm/locale/id/index.js new file mode 100644 index 00000000..dbdb041b --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/index.js @@ -0,0 +1,32 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso]{@link https://github.com/rbudiharso} + * @author Benget Nata [@bentinata]{@link https://github.com/bentinata} + * @author Budi Irawan [@deerawan]{@link https://github.com/deerawan} + * @author Try Ajitiono [@imballinst]{@link https://github.com/imballinst} + */ + +var locale = { + code: 'id', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/id/index.js.flow b/node_modules/date-fns/esm/locale/id/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/id/package.json b/node_modules/date-fns/esm/locale/id/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/id/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/index.js b/node_modules/date-fns/esm/locale/index.js new file mode 100644 index 00000000..449c97ee --- /dev/null +++ b/node_modules/date-fns/esm/locale/index.js @@ -0,0 +1,94 @@ +// This file is generated automatically by `scripts/build/indices.ts`. Please, don't change it. +export { default as af } from "./af/index.js"; +export { default as ar } from "./ar/index.js"; +export { default as arDZ } from "./ar-DZ/index.js"; +export { default as arEG } from "./ar-EG/index.js"; +export { default as arMA } from "./ar-MA/index.js"; +export { default as arSA } from "./ar-SA/index.js"; +export { default as arTN } from "./ar-TN/index.js"; +export { default as az } from "./az/index.js"; +export { default as be } from "./be/index.js"; +export { default as beTarask } from "./be-tarask/index.js"; +export { default as bg } from "./bg/index.js"; +export { default as bn } from "./bn/index.js"; +export { default as bs } from "./bs/index.js"; +export { default as ca } from "./ca/index.js"; +export { default as cs } from "./cs/index.js"; +export { default as cy } from "./cy/index.js"; +export { default as da } from "./da/index.js"; +export { default as de } from "./de/index.js"; +export { default as deAT } from "./de-AT/index.js"; +export { default as el } from "./el/index.js"; +export { default as enAU } from "./en-AU/index.js"; +export { default as enCA } from "./en-CA/index.js"; +export { default as enGB } from "./en-GB/index.js"; +export { default as enIE } from "./en-IE/index.js"; +export { default as enIN } from "./en-IN/index.js"; +export { default as enNZ } from "./en-NZ/index.js"; +export { default as enUS } from "./en-US/index.js"; +export { default as enZA } from "./en-ZA/index.js"; +export { default as eo } from "./eo/index.js"; +export { default as es } from "./es/index.js"; +export { default as et } from "./et/index.js"; +export { default as eu } from "./eu/index.js"; +export { default as faIR } from "./fa-IR/index.js"; +export { default as fi } from "./fi/index.js"; +export { default as fr } from "./fr/index.js"; +export { default as frCA } from "./fr-CA/index.js"; +export { default as frCH } from "./fr-CH/index.js"; +export { default as fy } from "./fy/index.js"; +export { default as gd } from "./gd/index.js"; +export { default as gl } from "./gl/index.js"; +export { default as gu } from "./gu/index.js"; +export { default as he } from "./he/index.js"; +export { default as hi } from "./hi/index.js"; +export { default as hr } from "./hr/index.js"; +export { default as ht } from "./ht/index.js"; +export { default as hu } from "./hu/index.js"; +export { default as hy } from "./hy/index.js"; +export { default as id } from "./id/index.js"; +export { default as is } from "./is/index.js"; +export { default as it } from "./it/index.js"; +export { default as itCH } from "./it-CH/index.js"; +export { default as ja } from "./ja/index.js"; +export { default as jaHira } from "./ja-Hira/index.js"; +export { default as ka } from "./ka/index.js"; +export { default as kk } from "./kk/index.js"; +export { default as km } from "./km/index.js"; +export { default as kn } from "./kn/index.js"; +export { default as ko } from "./ko/index.js"; +export { default as lb } from "./lb/index.js"; +export { default as lt } from "./lt/index.js"; +export { default as lv } from "./lv/index.js"; +export { default as mk } from "./mk/index.js"; +export { default as mn } from "./mn/index.js"; +export { default as ms } from "./ms/index.js"; +export { default as mt } from "./mt/index.js"; +export { default as nb } from "./nb/index.js"; +export { default as nl } from "./nl/index.js"; +export { default as nlBE } from "./nl-BE/index.js"; +export { default as nn } from "./nn/index.js"; +export { default as oc } from "./oc/index.js"; +export { default as pl } from "./pl/index.js"; +export { default as pt } from "./pt/index.js"; +export { default as ptBR } from "./pt-BR/index.js"; +export { default as ro } from "./ro/index.js"; +export { default as ru } from "./ru/index.js"; +export { default as sk } from "./sk/index.js"; +export { default as sl } from "./sl/index.js"; +export { default as sq } from "./sq/index.js"; +export { default as sr } from "./sr/index.js"; +export { default as srLatn } from "./sr-Latn/index.js"; +export { default as sv } from "./sv/index.js"; +export { default as ta } from "./ta/index.js"; +export { default as te } from "./te/index.js"; +export { default as th } from "./th/index.js"; +export { default as tr } from "./tr/index.js"; +export { default as ug } from "./ug/index.js"; +export { default as uk } from "./uk/index.js"; +export { default as uz } from "./uz/index.js"; +export { default as uzCyrl } from "./uz-Cyrl/index.js"; +export { default as vi } from "./vi/index.js"; +export { default as zhCN } from "./zh-CN/index.js"; +export { default as zhHK } from "./zh-HK/index.js"; +export { default as zhTW } from "./zh-TW/index.js"; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/index.js.flow b/node_modules/date-fns/esm/locale/index.js.flow new file mode 100644 index 00000000..ddcdfe79 --- /dev/null +++ b/node_modules/date-fns/esm/locale/index.js.flow @@ -0,0 +1,129 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: { + af: Locale, + ar: Locale, + arDZ: Locale, + arEG: Locale, + arMA: Locale, + arSA: Locale, + arTN: Locale, + az: Locale, + be: Locale, + beTarask: Locale, + bg: Locale, + bn: Locale, + bs: Locale, + ca: Locale, + cs: Locale, + cy: Locale, + da: Locale, + de: Locale, + deAT: Locale, + el: Locale, + enAU: Locale, + enCA: Locale, + enGB: Locale, + enIE: Locale, + enIN: Locale, + enNZ: Locale, + enUS: Locale, + enZA: Locale, + eo: Locale, + es: Locale, + et: Locale, + eu: Locale, + faIR: Locale, + fi: Locale, + fr: Locale, + frCA: Locale, + frCH: Locale, + fy: Locale, + gd: Locale, + gl: Locale, + gu: Locale, + he: Locale, + hi: Locale, + hr: Locale, + ht: Locale, + hu: Locale, + hy: Locale, + id: Locale, + is: Locale, + it: Locale, + itCH: Locale, + ja: Locale, + jaHira: Locale, + ka: Locale, + kk: Locale, + km: Locale, + kn: Locale, + ko: Locale, + lb: Locale, + lt: Locale, + lv: Locale, + mk: Locale, + mn: Locale, + ms: Locale, + mt: Locale, + nb: Locale, + nl: Locale, + nlBE: Locale, + nn: Locale, + oc: Locale, + pl: Locale, + pt: Locale, + ptBR: Locale, + ro: Locale, + ru: Locale, + sk: Locale, + sl: Locale, + sq: Locale, + sr: Locale, + srLatn: Locale, + sv: Locale, + ta: Locale, + te: Locale, + th: Locale, + tr: Locale, + ug: Locale, + uk: Locale, + uz: Locale, + uzCyrl: Locale, + vi: Locale, + zhCN: Locale, + zhHK: Locale, + zhTW: Locale, +} diff --git a/node_modules/date-fns/esm/locale/is/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/is/_lib/formatDistance/index.js new file mode 100644 index 00000000..8f64885b --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minna en 1 sekúnda', + other: 'minna en {{count}} sekúndur' + }, + xSeconds: { + one: '1 sekúnda', + other: '{{count}} sekúndur' + }, + halfAMinute: 'hálf mínúta', + lessThanXMinutes: { + one: 'minna en 1 mínúta', + other: 'minna en {{count}} mínútur' + }, + xMinutes: { + one: '1 mínúta', + other: '{{count}} mínútur' + }, + aboutXHours: { + one: 'u.þ.b. 1 klukkustund', + other: 'u.þ.b. {{count}} klukkustundir' + }, + xHours: { + one: '1 klukkustund', + other: '{{count}} klukkustundir' + }, + xDays: { + one: '1 dagur', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'um viku', + other: 'um {{count}} vikur' + }, + xWeeks: { + one: '1 viku', + other: '{{count}} vikur' + }, + aboutXMonths: { + one: 'u.þ.b. 1 mánuður', + other: 'u.þ.b. {{count}} mánuðir' + }, + xMonths: { + one: '1 mánuður', + other: '{{count}} mánuðir' + }, + aboutXYears: { + one: 'u.þ.b. 1 ár', + other: 'u.þ.b. {{count}} ár' + }, + xYears: { + one: '1 ár', + other: '{{count}} ár' + }, + overXYears: { + one: 'meira en 1 ár', + other: 'meira en {{count}} ár' + }, + almostXYears: { + one: 'næstum 1 ár', + other: 'næstum {{count}} ár' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'í ' + result; + } else { + return result + ' síðan'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/is/_lib/formatLong/index.js new file mode 100644 index 00000000..ba979719 --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM y', + long: 'do MMMM y', + medium: 'do MMM y', + short: 'd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/is/_lib/formatRelative/index.js new file mode 100644 index 00000000..6e9fa85c --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/_lib/localize/index.js b/node_modules/date-fns/esm/locale/is/_lib/localize/index.js new file mode 100644 index 00000000..664d8d96 --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['fyrir Krist', 'eftir Krist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1F', '2F', '3F', '4F'], + wide: ['1. fjórðungur', '2. fjórðungur', '3. fjórðungur', '4. fjórðungur'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'Á', 'S', 'Ó', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apríl', 'maí', 'júní', 'júlí', 'ágúst', 'sept.', 'okt.', 'nóv.', 'des.'], + wide: ['janúar', 'febrúar', 'mars', 'apríl', 'maí', 'júní', 'júlí', 'ágúst', 'september', 'október', 'nóvember', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'Þ', 'M', 'F', 'F', 'L'], + short: ['Su', 'Má', 'Þr', 'Mi', 'Fi', 'Fö', 'La'], + abbreviated: ['sun.', 'mán.', 'þri.', 'mið.', 'fim.', 'fös.', 'lau.'], + wide: ['sunnudagur', 'mánudagur', 'þriðjudagur', 'miðvikudagur', 'fimmtudagur', 'föstudagur', 'laugardagur'] +}; +var dayPeriodValues = { + narrow: { + am: 'f', + pm: 'e', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + }, + abbreviated: { + am: 'f.h.', + pm: 'e.h.', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + }, + wide: { + am: 'fyrir hádegi', + pm: 'eftir hádegi', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'f', + pm: 'e', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + }, + abbreviated: { + am: 'f.h.', + pm: 'e.h.', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + }, + wide: { + am: 'fyrir hádegi', + pm: 'eftir hádegi', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/_lib/match/index.js b/node_modules/date-fns/esm/locale/is/_lib/match/index.js new file mode 100644 index 00000000..6f7589cf --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+(\.)?/i; +var matchEraPatterns = { + narrow: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i +}; +var parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i +}; +var parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^á/i, /^s/i, /^ó/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maí/i, /^jún/i, /^júl/i, /^áu/i, /^s/i, /^ó/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/index.d.ts b/node_modules/date-fns/esm/locale/is/index.d.ts new file mode 100644 index 00000000..0d12119b --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { is } from 'date-fns/locale' +export default is diff --git a/node_modules/date-fns/esm/locale/is/index.js b/node_modules/date-fns/esm/locale/is/index.js new file mode 100644 index 00000000..1da3a85d --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank]{@link https://github.com/derekblank} + * @author Arnór Ýmir [@lamayg]{@link https://github.com/lamayg} + */ + +var locale = { + code: 'is', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/is/index.js.flow b/node_modules/date-fns/esm/locale/is/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/is/package.json b/node_modules/date-fns/esm/locale/is/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/is/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it-CH/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/it-CH/_lib/formatLong/index.js new file mode 100644 index 00000000..4a33dbc4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it-CH/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it-CH/index.d.ts b/node_modules/date-fns/esm/locale/it-CH/index.d.ts new file mode 100644 index 00000000..43f70033 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it-CH/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { itCH } from 'date-fns/locale' +export default itCH diff --git a/node_modules/date-fns/esm/locale/it-CH/index.js b/node_modules/date-fns/esm/locale/it-CH/index.js new file mode 100644 index 00000000..70da2858 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it-CH/index.js @@ -0,0 +1,29 @@ +import formatDistance from "../it/_lib/formatDistance/index.js"; +import formatRelative from "../it/_lib/formatRelative/index.js"; +import localize from "../it/_lib/localize/index.js"; +import match from "../it/_lib/match/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66]{@link https://github.com/maic66} + */ + +var locale = { + code: 'it-CH', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it-CH/index.js.flow b/node_modules/date-fns/esm/locale/it-CH/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it-CH/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/it-CH/package.json b/node_modules/date-fns/esm/locale/it-CH/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it-CH/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js new file mode 100644 index 00000000..b71b3565 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'meno di un secondo', + other: 'meno di {{count}} secondi' + }, + xSeconds: { + one: 'un secondo', + other: '{{count}} secondi' + }, + halfAMinute: 'alcuni secondi', + lessThanXMinutes: { + one: 'meno di un minuto', + other: 'meno di {{count}} minuti' + }, + xMinutes: { + one: 'un minuto', + other: '{{count}} minuti' + }, + aboutXHours: { + one: "circa un'ora", + other: 'circa {{count}} ore' + }, + xHours: { + one: "un'ora", + other: '{{count}} ore' + }, + xDays: { + one: 'un giorno', + other: '{{count}} giorni' + }, + aboutXWeeks: { + one: 'circa una settimana', + other: 'circa {{count}} settimane' + }, + xWeeks: { + one: 'una settimana', + other: '{{count}} settimane' + }, + aboutXMonths: { + one: 'circa un mese', + other: 'circa {{count}} mesi' + }, + xMonths: { + one: 'un mese', + other: '{{count}} mesi' + }, + aboutXYears: { + one: 'circa un anno', + other: 'circa {{count}} anni' + }, + xYears: { + one: 'un anno', + other: '{{count}} anni' + }, + overXYears: { + one: 'più di un anno', + other: 'più di {{count}} anni' + }, + almostXYears: { + one: 'quasi un anno', + other: 'quasi {{count}} anni' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'tra ' + result; + } else { + return result + ' fa'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js new file mode 100644 index 00000000..5c746b1d --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js new file mode 100644 index 00000000..7c5b3e13 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/formatRelative/index.js @@ -0,0 +1,63 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var weekdays = ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato']; + +function _lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function _nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/_lib/localize/index.js b/node_modules/date-fns/esm/locale/it/_lib/localize/index.js new file mode 100644 index 00000000..285c0c1e --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a.C.', 'd.C.'], + wide: ['avanti Cristo', 'dopo Cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['G', 'F', 'M', 'A', 'M', 'G', 'L', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'], + wide: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'G', 'V', 'S'], + short: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], + abbreviated: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], + wide: ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'] +}; +var dayPeriodValues = { + narrow: { + am: 'm.', + pm: 'p.', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'm.', + pm: 'p.', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/_lib/match/index.js b/node_modules/date-fns/esm/locale/it/_lib/match/index.js new file mode 100644 index 00000000..2e55e017 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i +}; +var parseEraPatterns = { + any: [/^a/i, /^(d|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i +}; +var parseMonthPatterns = { + narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/index.d.ts b/node_modules/date-fns/esm/locale/it/index.d.ts new file mode 100644 index 00000000..6e0422e9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { it } from 'date-fns/locale' +export default it diff --git a/node_modules/date-fns/esm/locale/it/index.js b/node_modules/date-fns/esm/locale/it/index.js new file mode 100644 index 00000000..d5558d04 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo]{@link https://github.com/albertorestifo} + * @author Giovanni Polimeni [@giofilo]{@link https://github.com/giofilo} + * @author Vincenzo Carrese [@vin-car]{@link https://github.com/vin-car} + */ + +var locale = { + code: 'it', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/it/index.js.flow b/node_modules/date-fns/esm/locale/it/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/it/package.json b/node_modules/date-fns/esm/locale/it/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/it/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatDistance/index.js new file mode 100644 index 00000000..90a64a5c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1びょうみまん', + other: '{{count}}びょうみまん', + oneWithSuffix: 'やく1びょう', + otherWithSuffix: 'やく{{count}}びょう' + }, + xSeconds: { + one: '1びょう', + other: '{{count}}びょう' + }, + halfAMinute: '30びょう', + lessThanXMinutes: { + one: '1ぷんみまん', + other: '{{count}}ふんみまん', + oneWithSuffix: 'やく1ぷん', + otherWithSuffix: 'やく{{count}}ふん' + }, + xMinutes: { + one: '1ぷん', + other: '{{count}}ふん' + }, + aboutXHours: { + one: 'やく1じかん', + other: 'やく{{count}}じかん' + }, + xHours: { + one: '1じかん', + other: '{{count}}じかん' + }, + xDays: { + one: '1にち', + other: '{{count}}にち' + }, + aboutXWeeks: { + one: 'やく1しゅうかん', + other: 'やく{{count}}しゅうかん' + }, + xWeeks: { + one: '1しゅうかん', + other: '{{count}}しゅうかん' + }, + aboutXMonths: { + one: 'やく1かげつ', + other: 'やく{{count}}かげつ' + }, + xMonths: { + one: '1かげつ', + other: '{{count}}かげつ' + }, + aboutXYears: { + one: 'やく1ねん', + other: 'やく{{count}}ねん' + }, + xYears: { + one: '1ねん', + other: '{{count}}ねん' + }, + overXYears: { + one: '1ねんいじょう', + other: '{{count}}ねんいじょう' + }, + almostXYears: { + one: '1ねんちかく', + other: '{{count}}ねんちかく' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'あと'; + } else { + return result + 'まえ'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatLong/index.js new file mode 100644 index 00000000..f1197efb --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'yねんMがつdにちEEEE', + long: 'yねんMがつdにち', + medium: 'y/MM/dd', + short: 'y/MM/dd' +}; +var timeFormats = { + full: 'Hじmmふんssびょう zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatRelative/index.js new file mode 100644 index 00000000..c65ab9a2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: 'せんしゅうのeeeeのp', + yesterday: 'きのうのp', + today: 'きょうのp', + tomorrow: 'あしたのp', + nextWeek: 'よくしゅうのeeeeのp', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ja-Hira/_lib/localize/index.js new file mode 100644 index 00000000..c3950d34 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/_lib/localize/index.js @@ -0,0 +1,150 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['BC', 'AC'], + abbreviated: ['きげんぜん', 'せいれき'], + wide: ['きげんぜん', 'せいれき'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['だい1しはんき', 'だい2しはんき', 'だい3しはんき', 'だい4しはんき'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1がつ', '2がつ', '3がつ', '4がつ', '5がつ', '6がつ', '7がつ', '8がつ', '9がつ', '10がつ', '11がつ', '12がつ'], + wide: ['1がつ', '2がつ', '3がつ', '4がつ', '5がつ', '6がつ', '7がつ', '8がつ', '9がつ', '10がつ', '11がつ', '12がつ'] +}; +var dayValues = { + narrow: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + short: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + abbreviated: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + wide: ['にちようび', 'げつようび', 'かようび', 'すいようび', 'もくようび', 'きんようび', 'どようび'] +}; +var dayPeriodValues = { + narrow: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + abbreviated: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + wide: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + abbreviated: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + wide: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'year': + return "".concat(number, "\u306D\u3093"); + + case 'quarter': + return "\u3060\u3044".concat(number, "\u3057\u306F\u3093\u304D"); + + case 'month': + return "".concat(number, "\u304C\u3064"); + + case 'week': + return "\u3060\u3044".concat(number, "\u3057\u3085\u3046"); + + case 'date': + return "".concat(number, "\u306B\u3061"); + + case 'hour': + return "".concat(number, "\u3058"); + + case 'minute': + return "".concat(number, "\u3075\u3093"); + + case 'second': + return "".concat(number, "\u3073\u3087\u3046"); + + default: + return "".concat(number); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/_lib/match/index.js b/node_modules/date-fns/esm/locale/ja-Hira/_lib/match/index.js new file mode 100644 index 00000000..0cf0464e --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i +}; +var parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i +}; +var parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i] +}; +var matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i +}; +var parseMonthPatterns = { + any: [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/ +}; +var parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/] +}; +var matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(A|ごぜん)/i, + pm: /^(P|ごご)/i, + midnight: /^しんや|まよなか/i, + noon: /^しょうご/i, + morning: /^あさ/i, + afternoon: /^ごご/i, + evening: /^よる/i, + night: /^しんや/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/index.d.ts b/node_modules/date-fns/esm/locale/ja-Hira/index.d.ts new file mode 100644 index 00000000..9dfe1251 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { jaHira } from 'date-fns/locale' +export default jaHira diff --git a/node_modules/date-fns/esm/locale/ja-Hira/index.js b/node_modules/date-fns/esm/locale/ja-Hira/index.js new file mode 100644 index 00000000..72ee035c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo]{@link https://github.com/Eritutteo} + */ + +var locale = { + code: 'ja-Hira', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja-Hira/index.js.flow b/node_modules/date-fns/esm/locale/ja-Hira/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ja-Hira/package.json b/node_modules/date-fns/esm/locale/ja-Hira/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja-Hira/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js new file mode 100644 index 00000000..555d7be3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1秒未満', + other: '{{count}}秒未満', + oneWithSuffix: '約1秒', + otherWithSuffix: '約{{count}}秒' + }, + xSeconds: { + one: '1秒', + other: '{{count}}秒' + }, + halfAMinute: '30秒', + lessThanXMinutes: { + one: '1分未満', + other: '{{count}}分未満', + oneWithSuffix: '約1分', + otherWithSuffix: '約{{count}}分' + }, + xMinutes: { + one: '1分', + other: '{{count}}分' + }, + aboutXHours: { + one: '約1時間', + other: '約{{count}}時間' + }, + xHours: { + one: '1時間', + other: '{{count}}時間' + }, + xDays: { + one: '1日', + other: '{{count}}日' + }, + aboutXWeeks: { + one: '約1週間', + other: '約{{count}}週間' + }, + xWeeks: { + one: '1週間', + other: '{{count}}週間' + }, + aboutXMonths: { + one: '約1か月', + other: '約{{count}}か月' + }, + xMonths: { + one: '1か月', + other: '{{count}}か月' + }, + aboutXYears: { + one: '約1年', + other: '約{{count}}年' + }, + xYears: { + one: '1年', + other: '{{count}}年' + }, + overXYears: { + one: '1年以上', + other: '{{count}}年以上' + }, + almostXYears: { + one: '1年近く', + other: '{{count}}年近く' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '後'; + } else { + return result + '前'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ja/_lib/formatLong/index.js new file mode 100644 index 00000000..eca1890d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'y年M月d日EEEE', + long: 'y年M月d日', + medium: 'y/MM/dd', + short: 'y/MM/dd' +}; +var timeFormats = { + full: 'H時mm分ss秒 zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ja/_lib/formatRelative/index.js new file mode 100644 index 00000000..89d23ccd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: '先週のeeeeのp', + yesterday: '昨日のp', + today: '今日のp', + tomorrow: '明日のp', + nextWeek: '翌週のeeeeのp', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ja/_lib/localize/index.js new file mode 100644 index 00000000..fd6d615b --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/localize/index.js @@ -0,0 +1,150 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['BC', 'AC'], + abbreviated: ['紀元前', '西暦'], + wide: ['紀元前', '西暦'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['第1四半期', '第2四半期', '第3四半期', '第4四半期'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] +}; +var dayValues = { + narrow: ['日', '月', '火', '水', '木', '金', '土'], + short: ['日', '月', '火', '水', '木', '金', '土'], + abbreviated: ['日', '月', '火', '水', '木', '金', '土'], + wide: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'] +}; +var dayPeriodValues = { + narrow: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + abbreviated: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + wide: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + abbreviated: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + wide: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'year': + return "".concat(number, "\u5E74"); + + case 'quarter': + return "\u7B2C".concat(number, "\u56DB\u534A\u671F"); + + case 'month': + return "".concat(number, "\u6708"); + + case 'week': + return "\u7B2C".concat(number, "\u9031"); + + case 'date': + return "".concat(number, "\u65E5"); + + case 'hour': + return "".concat(number, "\u6642"); + + case 'minute': + return "".concat(number, "\u5206"); + + case 'second': + return "".concat(number, "\u79D2"); + + default: + return "".concat(number); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/_lib/match/index.js b/node_modules/date-fns/esm/locale/ja/_lib/match/index.js new file mode 100644 index 00000000..5420c3c8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +var matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i +}; +var parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i +}; +var parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i] +}; +var matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i +}; +var parseMonthPatterns = { + any: [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/ +}; +var parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/] +}; +var matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(A|午前)/i, + pm: /^(P|午後)/i, + midnight: /^深夜|真夜中/i, + noon: /^正午/i, + morning: /^朝/i, + afternoon: /^午後/i, + evening: /^夜/i, + night: /^深夜/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/index.d.ts b/node_modules/date-fns/esm/locale/ja/index.d.ts new file mode 100644 index 00000000..dec4f9c9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ja } from 'date-fns/locale' +export default ja diff --git a/node_modules/date-fns/esm/locale/ja/index.js b/node_modules/date-fns/esm/locale/ja/index.js new file mode 100644 index 00000000..9a73cfff --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/index.js @@ -0,0 +1,33 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; + +/** + * @type {Locale} + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} + * @author Yamagishi Kazutoshi [@ykzts]{@link https://github.com/ykzts} + * @author Luca Ban [@mesqueeb]{@link https://github.com/mesqueeb} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} + */ +var locale = { + code: 'ja', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ja/index.js.flow b/node_modules/date-fns/esm/locale/ja/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ja/package.json b/node_modules/date-fns/esm/locale/ja/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ja/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ka/_lib/formatDistance/index.js new file mode 100644 index 00000000..69898e3b --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + past: '{{count}} წამზე ნაკლები ხნის წინ', + present: '{{count}} წამზე ნაკლები', + future: '{{count}} წამზე ნაკლებში' + }, + xSeconds: { + past: '{{count}} წამის წინ', + present: '{{count}} წამი', + future: '{{count}} წამში' + }, + halfAMinute: { + past: 'ნახევარი წუთის წინ', + present: 'ნახევარი წუთი', + future: 'ნახევარი წუთში' + }, + lessThanXMinutes: { + past: '{{count}} წუთზე ნაკლები ხნის წინ', + present: '{{count}} წუთზე ნაკლები', + future: '{{count}} წუთზე ნაკლებში' + }, + xMinutes: { + past: '{{count}} წუთის წინ', + present: '{{count}} წუთი', + future: '{{count}} წუთში' + }, + aboutXHours: { + past: 'დაახლოებით {{count}} საათის წინ', + present: 'დაახლოებით {{count}} საათი', + future: 'დაახლოებით {{count}} საათში' + }, + xHours: { + past: '{{count}} საათის წინ', + present: '{{count}} საათი', + future: '{{count}} საათში' + }, + xDays: { + past: '{{count}} დღის წინ', + present: '{{count}} დღე', + future: '{{count}} დღეში' + }, + aboutXWeeks: { + past: 'დაახლოებით {{count}} კვირას წინ', + present: 'დაახლოებით {{count}} კვირა', + future: 'დაახლოებით {{count}} კვირაში' + }, + xWeeks: { + past: '{{count}} კვირას კვირა', + present: '{{count}} კვირა', + future: '{{count}} კვირაში' + }, + aboutXMonths: { + past: 'დაახლოებით {{count}} თვის წინ', + present: 'დაახლოებით {{count}} თვე', + future: 'დაახლოებით {{count}} თვეში' + }, + xMonths: { + past: '{{count}} თვის წინ', + present: '{{count}} თვე', + future: '{{count}} თვეში' + }, + aboutXYears: { + past: 'დაახლოებით {{count}} წლის წინ', + present: 'დაახლოებით {{count}} წელი', + future: 'დაახლოებით {{count}} წელში' + }, + xYears: { + past: '{{count}} წლის წინ', + present: '{{count}} წელი', + future: '{{count}} წელში' + }, + overXYears: { + past: '{{count}} წელზე მეტი ხნის წინ', + present: '{{count}} წელზე მეტი', + future: '{{count}} წელზე მეტი ხნის შემდეგ' + }, + almostXYears: { + past: 'თითქმის {{count}} წლის წინ', + present: 'თითქმის {{count}} წელი', + future: 'თითქმის {{count}} წელში' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (options !== null && options !== void 0 && options.addSuffix && options.comparison && options.comparison > 0) { + result = tokenValue.future.replace('{{count}}', String(count)); + } else if (options !== null && options !== void 0 && options.addSuffix) { + result = tokenValue.past.replace('{{count}}', String(count)); + } else { + result = tokenValue.present.replace('{{count}}', String(count)); + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ka/_lib/formatLong/index.js new file mode 100644 index 00000000..932bbca6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do, MMMM, y', + medium: 'd, MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} {{time}}'-ზე'", + long: "{{date}} {{time}}'-ზე'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ka/_lib/formatRelative/index.js new file mode 100644 index 00000000..4625df28 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'წინა' eeee p'-ზე'", + yesterday: "'გუშინ' p'-ზე'", + today: "'დღეს' p'-ზე'", + tomorrow: "'ხვალ' p'-ზე'", + nextWeek: "'შემდეგი' eeee p'-ზე'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ka/_lib/localize/index.js new file mode 100644 index 00000000..c576c9da --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/localize/index.js @@ -0,0 +1,130 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ჩ.წ-მდე', 'ჩ.წ'], + abbreviated: ['ჩვ.წ-მდე', 'ჩვ.წ'], + wide: ['ჩვენს წელთაღრიცხვამდე', 'ჩვენი წელთაღრიცხვით'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ლი კვ', '2-ე კვ', '3-ე კვ', '4-ე კვ'], + wide: ['1-ლი კვარტალი', '2-ე კვარტალი', '3-ე კვარტალი', '4-ე კვარტალი'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ია', 'თე', 'მა', 'აპ', 'მს', 'ვნ', 'ვლ', 'აგ', 'სე', 'ოქ', 'ნო', 'დე'], + abbreviated: ['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ'], + wide: ['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'] +}; +var dayValues = { + narrow: ['კვ', 'ორ', 'სა', 'ოთ', 'ხუ', 'პა', 'შა'], + short: ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'], + abbreviated: ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'], + wide: ['კვირა', 'ორშაბათი', 'სამშაბათი', 'ოთხშაბათი', 'ხუთშაბათი', 'პარასკევი', 'შაბათი'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + + if (number === 1) { + return number + '-ლი'; + } + + return number + '-ე'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/_lib/match/index.js b/node_modules/date-fns/esm/locale/ka/_lib/match/index.js new file mode 100644 index 00000000..ae93af3a --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/_lib/match/index.js @@ -0,0 +1,92 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-ლი|-ე)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ჩვ?\.წ)/i, + abbreviated: /^(ჩვ?\.წ)/i, + wide: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i +}; +var parseEraPatterns = { + any: [/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i, /^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i +}; +var parseMonthPatterns = { + any: [/^ია/i, /^თ/i, /^მარ/i, /^აპ/i, /^მაი/i, /^ი?ვნ/i, /^ი?ვლ/i, /^აგ/i, /^ს/i, /^ო/i, /^ნ/i, /^დ/i] +}; +var matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i +}; +var parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i] +}; +var matchDayPeriodPatterns = { + any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^შუაღ/i, + noon: /^შუადღ/i, + morning: /^დილ/i, + afternoon: /ნაშუადღევს/i, + evening: /საღამო/i, + night: /ღამ/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/index.d.ts b/node_modules/date-fns/esm/locale/ka/index.d.ts new file mode 100644 index 00000000..c0be71ad --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ka } from 'date-fns/locale' +export default ka diff --git a/node_modules/date-fns/esm/locale/ka/index.js b/node_modules/date-fns/esm/locale/ka/index.js new file mode 100644 index 00000000..56ae3daa --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Georgian locale. + * @language Georgian + * @iso-639-2 geo + * @author Lado Lomidze [@Landish]{@link https://github.com/Landish} + * @author Nick Shvelidze [@shvelo]{@link https://github.com/shvelo} + */ + +var locale = { + code: 'ka', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ka/index.js.flow b/node_modules/date-fns/esm/locale/ka/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ka/package.json b/node_modules/date-fns/esm/locale/ka/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ka/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/kk/_lib/formatDistance/index.js new file mode 100644 index 00000000..7e80167e --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/formatDistance/index.js @@ -0,0 +1,227 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: '1 секундтан аз', + singularNominative: '{{count}} секундтан аз', + singularGenitive: '{{count}} секундтан аз', + pluralGenitive: '{{count}} секундтан аз' + }, + future: { + one: 'бір секундтан кейін', + singularNominative: '{{count}} секундтан кейін', + singularGenitive: '{{count}} секундтан кейін', + pluralGenitive: '{{count}} секундтан кейін' + } + }, + xSeconds: { + regular: { + singularNominative: '{{count}} секунд', + singularGenitive: '{{count}} секунд', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунд бұрын', + singularGenitive: '{{count}} секунд бұрын', + pluralGenitive: '{{count}} секунд бұрын' + }, + future: { + singularNominative: '{{count}} секундтан кейін', + singularGenitive: '{{count}} секундтан кейін', + pluralGenitive: '{{count}} секундтан кейін' + } + }, + halfAMinute: function halfAMinute(options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'жарты минут ішінде'; + } else { + return 'жарты минут бұрын'; + } + } + + return 'жарты минут'; + }, + lessThanXMinutes: { + regular: { + one: '1 минуттан аз', + singularNominative: '{{count}} минуттан аз', + singularGenitive: '{{count}} минуттан аз', + pluralGenitive: '{{count}} минуттан аз' + }, + future: { + one: 'минуттан кем ', + singularNominative: '{{count}} минуттан кем', + singularGenitive: '{{count}} минуттан кем', + pluralGenitive: '{{count}} минуттан кем' + } + }, + xMinutes: { + regular: { + singularNominative: '{{count}} минут', + singularGenitive: '{{count}} минут', + pluralGenitive: '{{count}} минут' + }, + past: { + singularNominative: '{{count}} минут бұрын', + singularGenitive: '{{count}} минут бұрын', + pluralGenitive: '{{count}} минут бұрын' + }, + future: { + singularNominative: '{{count}} минуттан кейін', + singularGenitive: '{{count}} минуттан кейін', + pluralGenitive: '{{count}} минуттан кейін' + } + }, + aboutXHours: { + regular: { + singularNominative: 'шамамен {{count}} сағат', + singularGenitive: 'шамамен {{count}} сағат', + pluralGenitive: 'шамамен {{count}} сағат' + }, + future: { + singularNominative: 'шамамен {{count}} сағаттан кейін', + singularGenitive: 'шамамен {{count}} сағаттан кейін', + pluralGenitive: 'шамамен {{count}} сағаттан кейін' + } + }, + xHours: { + regular: { + singularNominative: '{{count}} сағат', + singularGenitive: '{{count}} сағат', + pluralGenitive: '{{count}} сағат' + } + }, + xDays: { + regular: { + singularNominative: '{{count}} күн', + singularGenitive: '{{count}} күн', + pluralGenitive: '{{count}} күн' + }, + future: { + singularNominative: '{{count}} күннен кейін', + singularGenitive: '{{count}} күннен кейін', + pluralGenitive: '{{count}} күннен кейін' + } + }, + aboutXWeeks: { + type: 'weeks', + one: 'шамамен 1 апта', + other: 'шамамен {{count}} апта' + }, + xWeeks: { + type: 'weeks', + one: '1 апта', + other: '{{count}} апта' + }, + aboutXMonths: { + regular: { + singularNominative: 'шамамен {{count}} ай', + singularGenitive: 'шамамен {{count}} ай', + pluralGenitive: 'шамамен {{count}} ай' + }, + future: { + singularNominative: 'шамамен {{count}} айдан кейін', + singularGenitive: 'шамамен {{count}} айдан кейін', + pluralGenitive: 'шамамен {{count}} айдан кейін' + } + }, + xMonths: { + regular: { + singularNominative: '{{count}} ай', + singularGenitive: '{{count}} ай', + pluralGenitive: '{{count}} ай' + } + }, + aboutXYears: { + regular: { + singularNominative: 'шамамен {{count}} жыл', + singularGenitive: 'шамамен {{count}} жыл', + pluralGenitive: 'шамамен {{count}} жыл' + }, + future: { + singularNominative: 'шамамен {{count}} жылдан кейін', + singularGenitive: 'шамамен {{count}} жылдан кейін', + pluralGenitive: 'шамамен {{count}} жылдан кейін' + } + }, + xYears: { + regular: { + singularNominative: '{{count}} жыл', + singularGenitive: '{{count}} жыл', + pluralGenitive: '{{count}} жыл' + }, + future: { + singularNominative: '{{count}} жылдан кейін', + singularGenitive: '{{count}} жылдан кейін', + pluralGenitive: '{{count}} жылдан кейін' + } + }, + overXYears: { + regular: { + singularNominative: '{{count}} жылдан астам', + singularGenitive: '{{count}} жылдан астам', + pluralGenitive: '{{count}} жылдан астам' + }, + future: { + singularNominative: '{{count}} жылдан астам', + singularGenitive: '{{count}} жылдан астам', + pluralGenitive: '{{count}} жылдан астам' + } + }, + almostXYears: { + regular: { + singularNominative: '{{count}} жылға жақын', + singularGenitive: '{{count}} жылға жақын', + pluralGenitive: '{{count}} жылға жақын' + }, + future: { + singularNominative: '{{count}} жылдан кейін', + singularGenitive: '{{count}} жылдан кейін', + pluralGenitive: '{{count}} жылдан кейін' + } + } +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === 'function') return tokenValue(options); + + if (tokenValue.type === 'weeks') { + return count === 1 ? tokenValue.one : tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + ' кейін'; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + ' бұрын'; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/kk/_lib/formatLong/index.js new file mode 100644 index 00000000..ae92947e --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js new file mode 100644 index 00000000..ad3f9144 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/formatRelative/index.js @@ -0,0 +1,54 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var accusativeWeekdays = ['жексенбіде', 'дүйсенбіде', 'сейсенбіде', 'сәрсенбіде', 'бейсенбіде', 'жұмада', 'сенбіде']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'" + weekday + " сағат' p'-де'"; +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'келесі " + weekday + " сағат' p'-де'"; +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/_lib/localize/index.js b/node_modules/date-fns/esm/locale/kk/_lib/localize/index.js new file mode 100644 index 00000000..2c46a5a3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/localize/index.js @@ -0,0 +1,133 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['б.з.д.', 'б.з.'], + abbreviated: ['б.з.д.', 'б.з.'], + wide: ['біздің заманымызға дейін', 'біздің заманымыз'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ші тоқ.', '2-ші тоқ.', '3-ші тоқ.', '4-ші тоқ.'], + wide: ['1-ші тоқсан', '2-ші тоқсан', '3-ші тоқсан', '4-ші тоқсан'] +}; +var monthValues = { + narrow: ['Қ', 'А', 'Н', 'С', 'М', 'М', 'Ш', 'Т', 'Қ', 'Қ', 'Қ', 'Ж'], + abbreviated: ['қаң', 'ақп', 'нау', 'сәу', 'мам', 'мау', 'шіл', 'там', 'қыр', 'қаз', 'қар', 'жел'], + wide: ['қаңтар', 'ақпан', 'наурыз', 'сәуір', 'мамыр', 'маусым', 'шілде', 'тамыз', 'қыркүйек', 'қазан', 'қараша', 'желтоқсан'] +}; +var formattingMonthValues = { + narrow: ['Қ', 'А', 'Н', 'С', 'М', 'М', 'Ш', 'Т', 'Қ', 'Қ', 'Қ', 'Ж'], + abbreviated: ['қаң', 'ақп', 'нау', 'сәу', 'мам', 'мау', 'шіл', 'там', 'қыр', 'қаз', 'қар', 'жел'], + wide: ['қаңтар', 'ақпан', 'наурыз', 'сәуір', 'мамыр', 'маусым', 'шілде', 'тамыз', 'қыркүйек', 'қазан', 'қараша', 'желтоқсан'] +}; +var dayValues = { + narrow: ['Ж', 'Д', 'С', 'С', 'Б', 'Ж', 'С'], + short: ['жс', 'дс', 'сс', 'ср', 'бс', 'жм', 'сб'], + abbreviated: ['жс', 'дс', 'сс', 'ср', 'бс', 'жм', 'сб'], + wide: ['жексенбі', 'дүйсенбі', 'сейсенбі', 'сәрсенбі', 'бейсенбі', 'жұма', 'сенбі'] +}; +var dayPeriodValues = { + narrow: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасы', + noon: 'түс', + morning: 'таң', + afternoon: 'күндіз', + evening: 'кеш', + night: 'түн' + }, + wide: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасы', + noon: 'түс', + morning: 'таң', + afternoon: 'күндіз', + evening: 'кеш', + night: 'түн' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасында', + noon: 'түс', + morning: 'таң', + afternoon: 'күн', + evening: 'кеш', + night: 'түн' + }, + wide: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасында', + noon: 'түсте', + morning: 'таңертең', + afternoon: 'күндіз', + evening: 'кеште', + night: 'түнде' + } +}; +var suffixes = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші' +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var mod10 = number % 10; + var b = number >= 100 ? 100 : null; + var suffix = suffixes[number] || suffixes[mod10] || b && suffixes[b] || ''; + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/_lib/match/index.js b/node_modules/date-fns/esm/locale/kk/_lib/match/index.js new file mode 100644 index 00000000..51808793 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\s?д\.?)/i, + wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i +}; +var parseEraPatterns = { + any: [/^б/i, /^з/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?ші)? тоқ.?/i, + wide: /^[1234](-?ші)? тоқсан/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, + abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, + wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i +}; +var parseMonthPatterns = { + narrow: [/^қ/i, /^а/i, /^н/i, /^с/i, /^м/i, /^м/i, /^ш/i, /^т/i, /^қ/i, /^қ/i, /^қ/i, /^ж/i], + abbreviated: [/^қаң/i, /^ақп/i, /^нау/i, /^сәу/i, /^мам/i, /^мау/i, /^шіл/i, /^там/i, /^қыр/i, /^қаз/i, /^қар/i, /^жел/i], + any: [/^қ/i, /^а/i, /^н/i, /^с/i, /^м/i, /^м/i, /^ш/i, /^т/i, /^қ/i, /^қ/i, /^қ/i, /^ж/i] +}; +var matchDayPatterns = { + narrow: /^(ж|д|с|с|б|ж|с)/i, + short: /^(жс|дс|сс|ср|бс|жм|сб)/i, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i +}; +var parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [/^ж[ек]/i, /^д[үй]/i, /^сe[й]/i, /^сә[р]/i, /^б[ей]/i, /^ж[ұм]/i, /^се[н]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ТД/i, + pm: /^ТК/i, + midnight: /^түн орта/i, + noon: /^күндіз/i, + morning: /таң/i, + afternoon: /түс/i, + evening: /кеш/i, + night: /түн/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/index.d.ts b/node_modules/date-fns/esm/locale/kk/index.d.ts new file mode 100644 index 00000000..8ccf1a7f --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { kk } from 'date-fns/locale' +export default kk diff --git a/node_modules/date-fns/esm/locale/kk/index.js b/node_modules/date-fns/esm/locale/kk/index.js new file mode 100644 index 00000000..6214c7cb --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi]{@link https://github.com/drugoi} + */ + +var locale = { + code: 'kk', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kk/index.js.flow b/node_modules/date-fns/esm/locale/kk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/kk/package.json b/node_modules/date-fns/esm/locale/kk/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kk/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js new file mode 100644 index 00000000..2bfa41af --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/_lib/formatDistance/index.js @@ -0,0 +1,39 @@ +var formatDistanceLocale = { + lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', + xSeconds: '{{count}} វិនាទី', + halfAMinute: 'កន្លះនាទី', + lessThanXMinutes: 'តិចជាង {{count}} នាទី', + xMinutes: '{{count}} នាទី', + aboutXHours: 'ប្រហែល {{count}} ម៉ោង', + xHours: '{{count}} ម៉ោង', + xDays: '{{count}} ថ្ងៃ', + aboutXWeeks: 'ប្រហែល {{count}} សប្តាហ៍', + xWeeks: '{{count}} សប្តាហ៍', + aboutXMonths: 'ប្រហែល {{count}} ខែ', + xMonths: '{{count}} ខែ', + aboutXYears: 'ប្រហែល {{count}} ឆ្នាំ', + xYears: '{{count}} ឆ្នាំ', + overXYears: 'ជាង {{count}} ឆ្នាំ', + almostXYears: 'ជិត {{count}} ឆ្នាំ' +}; + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = tokenValue; + + if (typeof count === 'number') { + result = result.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'ក្នុងរយៈពេល ' + result; + } else { + return result + 'មុន'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js new file mode 100644 index 00000000..13931835 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a', + long: 'h:mm:ss a', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'ម៉ោង' {{time}}", + long: "{{date}} 'ម៉ោង' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js new file mode 100644 index 00000000..c0200a89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", + yesterday: "'ម្សិលមិញនៅម៉ោង' p", + today: "'ថ្ងៃនេះម៉ោង' p", + tomorrow: "'ថ្ងៃស្អែកម៉ោង' p", + nextWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/_lib/localize/index.js b/node_modules/date-fns/esm/locale/km/_lib/localize/index.js new file mode 100644 index 00000000..8e340c09 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ម.គស', 'គស'], + abbreviated: ['មុនគ.ស', 'គ.ស'], + wide: ['មុនគ្រិស្តសករាជ', 'នៃគ្រិស្តសករាជ'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['ត្រីមាសទី 1', 'ត្រីមាសទី 2', 'ត្រីមាសទី 3', 'ត្រីមាសទី 4'] +}; +var monthValues = { + narrow: ['ម.ក', 'ក.ម', 'មិ', 'ម.ស', 'ឧ.ស', 'ម.ថ', 'ក.ដ', 'សី', 'កញ', 'តុ', 'វិ', 'ធ'], + abbreviated: ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'], + wide: ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'] +}; +var dayValues = { + narrow: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + short: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + abbreviated: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + wide: ['អាទិត្យ', 'ចន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'] +}; +var dayPeriodValues = { + narrow: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + abbreviated: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + wide: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + abbreviated: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + wide: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _) { + var number = Number(dirtyNumber); + return number.toString(); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/_lib/match/index.js b/node_modules/date-fns/esm/locale/km/_lib/match/index.js new file mode 100644 index 00000000..7ce8a983 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ម\.)?គស/i, + abbreviated: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i +}; +var parseEraPatterns = { + any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, + abbreviated: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, + wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i +}; +var parseMonthPatterns = { + narrow: [/^ម\.ក/i, /^ក\.ម/i, /^មិ/i, /^ម\.ស/i, /^ឧ\.ស/i, /^ម\.ថ/i, /^ក\.ដ/i, /^សី/i, /^កញ/i, /^តុ/i, /^វិ/i, /^ធ/i], + any: [/^មក/i, /^កុ/i, /^មីន/i, /^មេ/i, /^ឧស/i, /^មិថ/i, /^កក/i, /^សី/i, /^កញ/i, /^តុ/i, /^វិច/i, /^ធ/i] +}; +var matchDayPatterns = { + narrow: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + short: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + abbreviated: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + wide: /^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i +}; +var parseDayPatterns = { + narrow: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^ស/i], + any: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^សៅ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, + any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ព្រឹក/i, + pm: /^ល្ងាច/i, + midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i, + noon: /^ពេលថ្ងៃត្រង់/i, + morning: /ពេលព្រឹក/i, + afternoon: /ពេលរសៀល/i, + evening: /ពេលល្ងាច/i, + night: /ពេលយប់/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/index.d.ts b/node_modules/date-fns/esm/locale/km/index.d.ts new file mode 100644 index 00000000..82f582cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { km } from 'date-fns/locale' +export default km diff --git a/node_modules/date-fns/esm/locale/km/index.js b/node_modules/date-fns/esm/locale/km/index.js new file mode 100644 index 00000000..6945f933 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay]{@link https://github.com/seanghay} + */ + +var locale = { + code: 'km', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/km/index.js.flow b/node_modules/date-fns/esm/locale/km/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/km/package.json b/node_modules/date-fns/esm/locale/km/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/km/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js new file mode 100644 index 00000000..1a0f048e --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatDistance/index.js @@ -0,0 +1,197 @@ +// note: no implementation for weeks +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + future: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + past: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ' + }, + other: { + default: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + future: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + past: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ' + } + }, + xSeconds: { + one: { + default: '1 ಸೆಕೆಂಡ್', + future: '1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ', + past: '1 ಸೆಕೆಂಡ್ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ಸೆಕೆಂಡುಗಳು', + future: '{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ', + past: '{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ' + } + }, + halfAMinute: { + other: { + default: 'ಅರ್ಧ ನಿಮಿಷ', + future: 'ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ', + past: 'ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ' + } + }, + lessThanXMinutes: { + one: { + default: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + future: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + past: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ' + }, + other: { + default: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + future: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + past: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ' + } + }, + xMinutes: { + one: { + default: '1 ನಿಮಿಷ', + future: '1 ನಿಮಿಷದಲ್ಲಿ', + past: '1 ನಿಮಿಷದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ನಿಮಿಷಗಳು', + future: '{{count}} ನಿಮಿಷಗಳಲ್ಲಿ', + past: '{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ' + } + }, + aboutXHours: { + one: { + default: 'ಸುಮಾರು 1 ಗಂಟೆ', + future: 'ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳು', + future: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ' + } + }, + xHours: { + one: { + default: '1 ಗಂಟೆ', + future: '1 ಗಂಟೆಯಲ್ಲಿ', + past: '1 ಗಂಟೆ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ಗಂಟೆಗಳು', + future: '{{count}} ಗಂಟೆಗಳಲ್ಲಿ', + past: '{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ' + } + }, + xDays: { + one: { + default: '1 ದಿನ', + future: '1 ದಿನದಲ್ಲಿ', + past: '1 ದಿನದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ದಿನಗಳು', + future: '{{count}} ದಿನಗಳಲ್ಲಿ', + past: '{{count}} ದಿನಗಳ ಹಿಂದೆ' + } + }, + // TODO + // aboutXWeeks: {}, + // TODO + // xWeeks: {}, + aboutXMonths: { + one: { + default: 'ಸುಮಾರು 1 ತಿಂಗಳು', + future: 'ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ತಿಂಗಳು', + future: 'ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ' + } + }, + xMonths: { + one: { + default: '1 ತಿಂಗಳು', + future: '1 ತಿಂಗಳಲ್ಲಿ', + past: '1 ತಿಂಗಳ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ತಿಂಗಳು', + future: '{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ', + past: '{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ' + } + }, + aboutXYears: { + one: { + default: 'ಸುಮಾರು 1 ವರ್ಷ', + future: 'ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳು', + future: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ' + } + }, + xYears: { + one: { + default: '1 ವರ್ಷ', + future: '1 ವರ್ಷದಲ್ಲಿ', + past: '1 ವರ್ಷದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ವರ್ಷಗಳು', + future: '{{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: '{{count}} ವರ್ಷಗಳ ಹಿಂದೆ' + } + }, + overXYears: { + one: { + default: '1 ವರ್ಷದ ಮೇಲೆ', + future: '1 ವರ್ಷದ ಮೇಲೆ', + past: '1 ವರ್ಷದ ಮೇಲೆ' + }, + other: { + default: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ', + future: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ', + past: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ' + } + }, + almostXYears: { + one: { + default: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ', + future: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ', + past: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ' + }, + other: { + default: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ', + future: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ' + } + } +}; + +function getResultByTense(parentToken, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + + return parentToken.default; +} + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace('{{count}}', String(count)); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/kn/_lib/formatLong/index.js new file mode 100644 index 00000000..7d13ecb1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatLong/index.js @@ -0,0 +1,47 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +var dateFormats = { + full: 'EEEE, MMMM d, y', + // CLDR 1816 + long: 'MMMM d, y', + // CLDR 1817 + medium: 'MMM d, y', + // CLDR 1818 + short: 'd/M/yy' // CLDR 1819 + +}; +var timeFormats = { + full: 'hh:mm:ss a zzzz', + // CLDR 1820 + long: 'hh:mm:ss a z', + // CLDR 1821 + medium: 'hh:mm:ss a', + // CLDR 1822 + short: 'hh:mm a' // CLDR 1823 + +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + // CLDR 1824 + long: '{{date}} {{time}}', + // CLDR 1825 + medium: '{{date}} {{time}}', + // CLDR 1826 + short: '{{date}} {{time}}' // CLDR 1827 + +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/kn/_lib/formatRelative/index.js new file mode 100644 index 00000000..7f19792e --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/_lib/localize/index.js b/node_modules/date-fns/esm/locale/kn/_lib/localize/index.js new file mode 100644 index 00000000..e485c2ce --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/localize/index.js @@ -0,0 +1,129 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html + +var eraValues = { + narrow: ['ಕ್ರಿ.ಪೂ', 'ಕ್ರಿ.ಶ'], + abbreviated: ['ಕ್ರಿ.ಪೂ', 'ಕ್ರಿ.ಶ'], + // CLDR #1618, #1620 + wide: ['ಕ್ರಿಸ್ತ ಪೂರ್ವ', 'ಕ್ರಿಸ್ತ ಶಕ'] // CLDR #1614, #1616 + +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ತ್ರೈ 1', 'ತ್ರೈ 2', 'ತ್ರೈ 3', 'ತ್ರೈ 4'], + // CLDR #1630 - #1638 + wide: ['1ನೇ ತ್ರೈಮಾಸಿಕ', '2ನೇ ತ್ರೈಮಾಸಿಕ', '3ನೇ ತ್ರೈಮಾಸಿಕ', '4ನೇ ತ್ರೈಮಾಸಿಕ'] // CLDR #1622 - #1629 + +}; // CLDR #1646 - #1717 + +var monthValues = { + narrow: ['ಜ', 'ಫೆ', 'ಮಾ', 'ಏ', 'ಮೇ', 'ಜೂ', 'ಜು', 'ಆ', 'ಸೆ', 'ಅ', 'ನ', 'ಡಿ'], + abbreviated: ['ಜನ', 'ಫೆಬ್ರ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿ', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗ', 'ಸೆಪ್ಟೆಂ', 'ಅಕ್ಟೋ', 'ನವೆಂ', 'ಡಿಸೆಂ'], + wide: ['ಜನವರಿ', 'ಫೆಬ್ರವರಿ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿಲ್', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗಸ್ಟ್', 'ಸೆಪ್ಟೆಂಬರ್', 'ಅಕ್ಟೋಬರ್', 'ನವೆಂಬರ್', 'ಡಿಸೆಂಬರ್'] +}; // CLDR #1718 - #1773 + +var dayValues = { + narrow: ['ಭಾ', 'ಸೋ', 'ಮಂ', 'ಬು', 'ಗು', 'ಶು', 'ಶ'], + short: ['ಭಾನು', 'ಸೋಮ', 'ಮಂಗಳ', 'ಬುಧ', 'ಗುರು', 'ಶುಕ್ರ', 'ಶನಿ'], + abbreviated: ['ಭಾನು', 'ಸೋಮ', 'ಮಂಗಳ', 'ಬುಧ', 'ಗುರು', 'ಶುಕ್ರ', 'ಶನಿ'], + wide: ['ಭಾನುವಾರ', 'ಸೋಮವಾರ', 'ಮಂಗಳವಾರ', 'ಬುಧವಾರ', 'ಗುರುವಾರ', 'ಶುಕ್ರವಾರ', 'ಶನಿವಾರ'] +}; // CLDR #1774 - #1815 + +var dayPeriodValues = { + narrow: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾಹ್ನ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾಹ್ನ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + abbreviated: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + wide: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ಪೂ', + pm: 'ಅ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + abbreviated: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯ ರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + wide: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯ ರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'ನೇ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/_lib/match/index.js b/node_modules/date-fns/esm/locale/kn/_lib/match/index.js new file mode 100644 index 00000000..f248c943 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(ನೇ|ನೆ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i +}; +var parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, + wide: /^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, + abbreviated: /^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, + wide: /^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i +}; +var parseMonthPatterns = { + narrow: [/^ಜ$/i, /^ಫೆ/i, /^ಮಾ/i, /^ಏ/i, /^ಮೇ/i, /^ಜೂ/i, /^ಜು$/i, /^ಆ/i, /^ಸೆ/i, /^ಅ/i, /^ನ/i, /^ಡಿ/i], + any: [/^ಜನ/i, /^ಫೆ/i, /^ಮಾ/i, /^ಏ/i, /^ಮೇ/i, /^ಜೂನ್/i, /^ಜುಲೈ/i, /^ಆ/i, /^ಸೆ/i, /^ಅ/i, /^ನ/i, /^ಡಿ/i] +}; +var matchDayPatterns = { + narrow: /^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, + short: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + abbreviated: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + wide: /^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i +}; +var parseDayPatterns = { + narrow: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], + any: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, + any: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ಪೂ/i, + pm: /^ಅ/i, + midnight: /ಮಧ್ಯರಾತ್ರಿ/i, + noon: /ಮಧ್ಯಾನ್ಹ/i, + morning: /ಬೆಳಗ್ಗೆ/i, + afternoon: /ಮಧ್ಯಾನ್ಹ/i, + evening: /ಸಂಜೆ/i, + night: /ರಾತ್ರಿ/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/index.d.ts b/node_modules/date-fns/esm/locale/kn/index.d.ts new file mode 100644 index 00000000..85a2ed5c --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { kn } from 'date-fns/locale' +export default kn diff --git a/node_modules/date-fns/esm/locale/kn/index.js b/node_modules/date-fns/esm/locale/kn/index.js new file mode 100644 index 00000000..005ed1a0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli]{@link https://github.com/developergouli} + */ + +var locale = { + code: 'kn', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/kn/index.js.flow b/node_modules/date-fns/esm/locale/kn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/kn/package.json b/node_modules/date-fns/esm/locale/kn/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/kn/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.js new file mode 100644 index 00000000..49013511 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1초 미만', + other: '{{count}}초 미만' + }, + xSeconds: { + one: '1초', + other: '{{count}}초' + }, + halfAMinute: '30초', + lessThanXMinutes: { + one: '1분 미만', + other: '{{count}}분 미만' + }, + xMinutes: { + one: '1분', + other: '{{count}}분' + }, + aboutXHours: { + one: '약 1시간', + other: '약 {{count}}시간' + }, + xHours: { + one: '1시간', + other: '{{count}}시간' + }, + xDays: { + one: '1일', + other: '{{count}}일' + }, + aboutXWeeks: { + one: '약 1주', + other: '약 {{count}}주' + }, + xWeeks: { + one: '1주', + other: '{{count}}주' + }, + aboutXMonths: { + one: '약 1개월', + other: '약 {{count}}개월' + }, + xMonths: { + one: '1개월', + other: '{{count}}개월' + }, + aboutXYears: { + one: '약 1년', + other: '약 {{count}}년' + }, + xYears: { + one: '1년', + other: '{{count}}년' + }, + overXYears: { + one: '1년 이상', + other: '{{count}}년 이상' + }, + almostXYears: { + one: '거의 1년', + other: '거의 {{count}}년' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' 후'; + } else { + return result + ' 전'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.js new file mode 100644 index 00000000..2e226072 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'y년 M월 d일 EEEE', + long: 'y년 M월 d일', + medium: 'y.MM.dd', + short: 'y.MM.dd' +}; +var timeFormats = { + full: 'a H시 mm분 ss초 zzzz', + long: 'a H:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.js new file mode 100644 index 00000000..54ebf79d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ko/_lib/localize/index.js new file mode 100644 index 00000000..ef0df6db --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/localize/index.js @@ -0,0 +1,133 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['BC', 'AD'], + abbreviated: ['BC', 'AD'], + wide: ['기원전', '서기'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1분기', '2분기', '3분기', '4분기'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], + wide: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'] +}; +var dayValues = { + narrow: ['일', '월', '화', '수', '목', '금', '토'], + short: ['일', '월', '화', '수', '목', '금', '토'], + abbreviated: ['일', '월', '화', '수', '목', '금', '토'], + wide: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'] +}; +var dayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'minute': + case 'second': + return String(number); + + case 'date': + return number + '일'; + + default: + return number + '번째'; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/_lib/match/index.js b/node_modules/date-fns/esm/locale/ko/_lib/match/index.js new file mode 100644 index 00000000..d1860f26 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/_lib/match/index.js @@ -0,0 +1,95 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i +}; +var parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i +}; +var parseMonthPatterns = { + any: [/^1월?$/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/ +}; +var parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/index.d.ts b/node_modules/date-fns/esm/locale/ko/index.d.ts new file mode 100644 index 00000000..eac82282 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ko } from 'date-fns/locale' +export default ko diff --git a/node_modules/date-fns/esm/locale/ko/index.js b/node_modules/date-fns/esm/locale/ko/index.js new file mode 100644 index 00000000..f691af6b --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev]{@link https://github.com/angdev} + * @author Lee Seoyoen [@iamssen]{@link https://github.com/iamssen} + * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} + */ + +var locale = { + code: 'ko', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ko/index.js.flow b/node_modules/date-fns/esm/locale/ko/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ko/package.json b/node_modules/date-fns/esm/locale/ko/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ko/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/lb/_lib/formatDistance/index.js new file mode 100644 index 00000000..3ae13217 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/formatDistance/index.js @@ -0,0 +1,206 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'manner wéi eng Sekonn', + other: 'manner wéi {{count}} Sekonnen' + }, + withPreposition: { + one: 'manner wéi enger Sekonn', + other: 'manner wéi {{count}} Sekonnen' + } + }, + xSeconds: { + standalone: { + one: 'eng Sekonn', + other: '{{count}} Sekonnen' + }, + withPreposition: { + one: 'enger Sekonn', + other: '{{count}} Sekonnen' + } + }, + halfAMinute: { + standalone: 'eng hallef Minutt', + withPreposition: 'enger hallwer Minutt' + }, + lessThanXMinutes: { + standalone: { + one: 'manner wéi eng Minutt', + other: 'manner wéi {{count}} Minutten' + }, + withPreposition: { + one: 'manner wéi enger Minutt', + other: 'manner wéi {{count}} Minutten' + } + }, + xMinutes: { + standalone: { + one: 'eng Minutt', + other: '{{count}} Minutten' + }, + withPreposition: { + one: 'enger Minutt', + other: '{{count}} Minutten' + } + }, + aboutXHours: { + standalone: { + one: 'ongeféier eng Stonn', + other: 'ongeféier {{count}} Stonnen' + }, + withPreposition: { + one: 'ongeféier enger Stonn', + other: 'ongeféier {{count}} Stonnen' + } + }, + xHours: { + standalone: { + one: 'eng Stonn', + other: '{{count}} Stonnen' + }, + withPreposition: { + one: 'enger Stonn', + other: '{{count}} Stonnen' + } + }, + xDays: { + standalone: { + one: 'een Dag', + other: '{{count}} Deeg' + }, + withPreposition: { + one: 'engem Dag', + other: '{{count}} Deeg' + } + }, + aboutXWeeks: { + standalone: { + one: 'ongeféier eng Woch', + other: 'ongeféier {{count}} Wochen' + }, + withPreposition: { + one: 'ongeféier enger Woche', + other: 'ongeféier {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: 'eng Woch', + other: '{{count}} Wochen' + }, + withPreposition: { + one: 'enger Woch', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'ongeféier ee Mount', + other: 'ongeféier {{count}} Méint' + }, + withPreposition: { + one: 'ongeféier engem Mount', + other: 'ongeféier {{count}} Méint' + } + }, + xMonths: { + standalone: { + one: 'ee Mount', + other: '{{count}} Méint' + }, + withPreposition: { + one: 'engem Mount', + other: '{{count}} Méint' + } + }, + aboutXYears: { + standalone: { + one: 'ongeféier ee Joer', + other: 'ongeféier {{count}} Joer' + }, + withPreposition: { + one: 'ongeféier engem Joer', + other: 'ongeféier {{count}} Joer' + } + }, + xYears: { + standalone: { + one: 'ee Joer', + other: '{{count}} Joer' + }, + withPreposition: { + one: 'engem Joer', + other: '{{count}} Joer' + } + }, + overXYears: { + standalone: { + one: 'méi wéi ee Joer', + other: 'méi wéi {{count}} Joer' + }, + withPreposition: { + one: 'méi wéi engem Joer', + other: 'méi wéi {{count}} Joer' + } + }, + almostXYears: { + standalone: { + one: 'bal ee Joer', + other: 'bal {{count}} Joer' + }, + withPreposition: { + one: 'bal engem Joer', + other: 'bal {{count}} Joer' + } + } +}; +var EXCEPTION_CONSONANTS = ['d', 'h', 'n', 't', 'z']; +var VOWELS = ['a,', 'e', 'i', 'o', 'u']; +var DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; // Eifeler Regel + +function isFinalNNeeded(nextWords) { + var firstLetter = nextWords.charAt(0).toLowerCase(); + + if (VOWELS.indexOf(firstLetter) != -1 || EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1) { + return true; + } // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + + + var firstWord = nextWords.split(' ')[0]; + var number = parseInt(firstWord); + + if (!isNaN(number) && DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0, 2))) == -1) { + return true; + } // Omit other checks as they are not expected here. + + + return false; +} + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? tokenValue.withPreposition : tokenValue.standalone; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'a' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } else { + return 'viru' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/lb/_lib/formatLong/index.js new file mode 100644 index 00000000..4ea1c21b --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/formatLong/index.js @@ -0,0 +1,39 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 + +var dateFormats = { + full: 'EEEE, do MMMM y', + // Méindeg, 7. Januar 2018 + long: 'do MMMM y', + // 7. Januar 2018 + medium: 'do MMM y', + // 7. Jan 2018 + short: 'dd.MM.yy' // 07.01.18 + +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/lb/_lib/formatRelative/index.js new file mode 100644 index 00000000..2d1946a4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/formatRelative/index.js @@ -0,0 +1,31 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + var result = "'läschte"; + + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += 'n'; + } + + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/_lib/localize/index.js b/node_modules/date-fns/esm/locale/lb/_lib/localize/index.js new file mode 100644 index 00000000..54dacb9e --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['viru Christus', 'no Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Januar', 'Februar', 'Mäerz', 'Abrëll', 'Mee', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mé', 'Dë', 'Më', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mé.', 'Dë.', 'Më.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'] +}; +var dayPeriodValues = { + narrow: { + am: 'mo.', + pm: 'nomë.', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + }, + abbreviated: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + }, + wide: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'mo.', + pm: 'nom.', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + }, + abbreviated: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + }, + wide: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/_lib/match/index.js b/node_modules/date-fns/esm/locale/lb/_lib/match/index.js new file mode 100644 index 00000000..682b24cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i +}; +var parseEraPatterns = { + any: [/^v/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mä/i, /^ab/i, /^me/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i +}; +var parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, + // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i // will never be matched. Night is matched by `pm` + + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/index.d.ts b/node_modules/date-fns/esm/locale/lb/index.d.ts new file mode 100644 index 00000000..727529bb --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lb } from 'date-fns/locale' +export default lb diff --git a/node_modules/date-fns/esm/locale/lb/index.js b/node_modules/date-fns/esm/locale/lb/index.js new file mode 100644 index 00000000..94020381 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler]{@link https://github.com/dwaxweiler} + */ + +var locale = { + code: 'lb', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lb/index.js.flow b/node_modules/date-fns/esm/locale/lb/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/lb/package.json b/node_modules/date-fns/esm/locale/lb/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lb/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/lt/_lib/formatDistance/index.js new file mode 100644 index 00000000..6d641651 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/formatDistance/index.js @@ -0,0 +1,153 @@ +var translations = { + xseconds_other: 'sekundė_sekundžių_sekundes', + xminutes_one: 'minutė_minutės_minutę', + xminutes_other: 'minutės_minučių_minutes', + xhours_one: 'valanda_valandos_valandą', + xhours_other: 'valandos_valandų_valandas', + xdays_one: 'diena_dienos_dieną', + xdays_other: 'dienos_dienų_dienas', + xweeks_one: 'savaitė_savaitės_savaitę', + xweeks_other: 'savaitės_savaičių_savaites', + xmonths_one: 'mėnuo_mėnesio_mėnesį', + xmonths_other: 'mėnesiai_mėnesių_mėnesius', + xyears_one: 'metai_metų_metus', + xyears_other: 'metai_metų_metus', + about: 'apie', + over: 'daugiau nei', + almost: 'beveik', + lessthan: 'mažiau nei' +}; + +var translateSeconds = function translateSeconds(_number, addSuffix, _key, isFuture) { + if (!addSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } +}; + +var translateSingular = function translateSingular(_number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +var translate = function translate(number, addSuffix, key, isFuture) { + var result = number + ' '; + + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} + +function forms(key) { + return translations[key].split('_'); +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate + }, + xSeconds: { + one: translateSeconds, + other: translate + }, + halfAMinute: 'pusė minutės', + lessThanXMinutes: { + one: translateSingular, + other: translate + }, + xMinutes: { + one: translateSingular, + other: translate + }, + aboutXHours: { + one: translateSingular, + other: translate + }, + xHours: { + one: translateSingular, + other: translate + }, + xDays: { + one: translateSingular, + other: translate + }, + aboutXWeeks: { + one: translateSingular, + other: translate + }, + xWeeks: { + one: translateSingular, + other: translate + }, + aboutXMonths: { + one: translateSingular, + other: translate + }, + xMonths: { + one: translateSingular, + other: translate + }, + aboutXYears: { + one: translateSingular, + other: translate + }, + xYears: { + one: translateSingular, + other: translate + }, + overXYears: { + one: translateSingular, + other: translate + }, + almostXYears: { + one: translateSingular, + other: translate + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], '') : token; + var isFuture = (options === null || options === void 0 ? void 0 : options.comparison) !== undefined && options.comparison > 0; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + '_one', isFuture); + } else { + result = tokenValue.other(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + '_other', isFuture); + } + + if (adverb) { + var _key2 = adverb[0].toLowerCase(); + + result = translations[_key2] + ' ' + result; + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'po ' + result; + } else { + return 'prieš ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/lt/_lib/formatLong/index.js new file mode 100644 index 00000000..94982a08 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: 'y-MM-dd', + short: 'y-MM-dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/lt/_lib/formatRelative/index.js new file mode 100644 index 00000000..847f0445 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: 'eeee p', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/_lib/localize/index.js b/node_modules/date-fns/esm/locale/lt/_lib/localize/index.js new file mode 100644 index 00000000..f29862d3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/localize/index.js @@ -0,0 +1,143 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['pr. Kr.', 'po Kr.'], + abbreviated: ['pr. Kr.', 'po Kr.'], + wide: ['prieš Kristų', 'po Kristaus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I ketv.', 'II ketv.', 'III ketv.', 'IV ketv.'], + wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I k.', 'II k.', 'III k.', 'IV k.'], + wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] +}; +var monthValues = { + narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], + abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], + wide: ['sausis', 'vasaris', 'kovas', 'balandis', 'gegužė', 'birželis', 'liepa', 'rugpjūtis', 'rugsėjis', 'spalis', 'lapkritis', 'gruodis'] +}; +var formattingMonthValues = { + narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], + abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], + wide: ['sausio', 'vasario', 'kovo', 'balandžio', 'gegužės', 'birželio', 'liepos', 'rugpjūčio', 'rugsėjo', 'spalio', 'lapkričio', 'gruodžio'] +}; +var dayValues = { + narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Š'], + short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Št'], + abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'št'], + wide: ['sekmadienis', 'pirmadienis', 'antradienis', 'trečiadienis', 'ketvirtadienis', 'penktadienis', 'šeštadienis'] +}; +var formattingDayValues = { + narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Š'], + short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Št'], + abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'št'], + wide: ['sekmadienį', 'pirmadienį', 'antradienį', 'trečiadienį', 'ketvirtadienį', 'penktadienį', 'šeštadienį'] +}; +var dayPeriodValues = { + narrow: { + am: 'pr. p.', + pm: 'pop.', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + }, + abbreviated: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + }, + wide: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'pr. p.', + pm: 'pop.', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + }, + abbreviated: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + }, + wide: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '-oji'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/_lib/match/index.js b/node_modules/date-fns/esm/locale/lt/_lib/match/index.js new file mode 100644 index 00000000..617673c4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/_lib/match/index.js @@ -0,0 +1,111 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i +}; +var parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i] +}; +var matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i] +}; +var matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i +}; +var parseMonthPatterns = { + narrow: [/^s/i, /^v/i, /^k/i, /^b/i, /^g/i, /^b/i, /^l/i, /^r/i, /^r/i, /^s/i, /^l/i, /^g/i], + any: [/^saus/i, /^vas/i, /^kov/i, /^bal/i, /^geg/i, /^birž/i, /^liep/i, /^rugp/i, /^rugs/i, /^spal/i, /^lapkr/i, /^gruod/i] +}; +var matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/index.d.ts b/node_modules/date-fns/esm/locale/lt/index.d.ts new file mode 100644 index 00000000..573a8402 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lt } from 'date-fns/locale' +export default lt diff --git a/node_modules/date-fns/esm/locale/lt/index.js b/node_modules/date-fns/esm/locale/lt/index.js new file mode 100644 index 00000000..d7290099 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} + * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} + */ + +var locale = { + code: 'lt', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lt/index.js.flow b/node_modules/date-fns/esm/locale/lt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/lt/package.json b/node_modules/date-fns/esm/locale/lt/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lt/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/lv/_lib/formatDistance/index.js new file mode 100644 index 00000000..1d7a0d36 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/formatDistance/index.js @@ -0,0 +1,106 @@ +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + return schema.one[0].replace('{{time}}', schema.one[2]); + } else { + return schema.one[0].replace('{{time}}', schema.one[1]); + } + } else { + var rem = count % 10 === 1 && count % 100 !== 11; + + if (options !== null && options !== void 0 && options.addSuffix) { + return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', String(count)); + } else { + return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', String(count)); + } + } + }; +} + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ['mazāk par {{time}}', 'sekundi', 'sekundi'], + other: ['mazāk nekā {{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] + }), + xSeconds: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'sekunde', 'sekundes'], + other: ['{{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + return 'pusminūtes'; + } else { + return 'pusminūte'; + } + }, + lessThanXMinutes: buildLocalizeTokenFn({ + one: ['mazāk par {{time}}', 'minūti', 'minūti'], + other: ['mazāk nekā {{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] + }), + xMinutes: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'minūte', 'minūtes'], + other: ['{{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] + }), + aboutXHours: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'stunda', 'stundas'], + other: ['apmēram {{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] + }), + xHours: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'stunda', 'stundas'], + other: ['{{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] + }), + xDays: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'diena', 'dienas'], + other: ['{{count}} {{time}}', 'diena', 'dienas', 'dienas', 'dienām'] + }), + aboutXWeeks: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'nedēļa', 'nedēļas'], + other: ['apmēram {{count}} {{time}}', 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] + }), + xWeeks: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'nedēļa', 'nedēļas'], + other: ['{{count}} {{time}}', // TODO + 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] + }), + aboutXMonths: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'mēnesis', 'mēneša'], + other: ['apmēram {{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] + }), + xMonths: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'mēnesis', 'mēneša'], + other: ['{{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] + }), + aboutXYears: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'gads', 'gada'], + other: ['apmēram {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + xYears: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'gads', 'gada'], + other: ['{{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + overXYears: buildLocalizeTokenFn({ + one: ['ilgāk par 1 {{time}}', 'gadu', 'gadu'], + other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + almostXYears: buildLocalizeTokenFn({ + one: ['gandrīz 1 {{time}}', 'gads', 'gada'], + other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token](count, options); + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'pēc ' + result; + } else { + return 'pirms ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/lv/_lib/formatLong/index.js new file mode 100644 index 00000000..dbf9256f --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: 'dd.MM.y.', + short: 'dd.MM.y.' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/lv/_lib/formatRelative/index.js new file mode 100644 index 00000000..52e09370 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/formatRelative/index.js @@ -0,0 +1,36 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var weekdays = ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā']; +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + if (isSameUTCWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + var weekday = weekdays[date.getUTCDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: function nextWeek(date, baseDate, options) { + if (isSameUTCWeek(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + var weekday = weekdays[date.getUTCDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/_lib/localize/index.js b/node_modules/date-fns/esm/locale/lv/_lib/localize/index.js new file mode 100644 index 00000000..b548b355 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/localize/index.js @@ -0,0 +1,143 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['p.m.ē', 'm.ē'], + abbreviated: ['p. m. ē.', 'm. ē.'], + wide: ['pirms mūsu ēras', 'mūsu ērā'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], + wide: ['pirmais ceturksnis', 'otrais ceturksnis', 'trešais ceturksnis', 'ceturtais ceturksnis'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], + wide: ['pirmajā ceturksnī', 'otrajā ceturksnī', 'trešajā ceturksnī', 'ceturtajā ceturksnī'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'febr.', 'marts', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], + wide: ['janvāris', 'februāris', 'marts', 'aprīlis', 'maijs', 'jūnijs', 'jūlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'] +}; +var formattingMonthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'febr.', 'martā', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], + wide: ['janvārī', 'februārī', 'martā', 'aprīlī', 'maijā', 'jūnijā', 'jūlijā', 'augustā', 'septembrī', 'oktobrī', 'novembrī', 'decembrī'] +}; +var dayValues = { + narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], + short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], + abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], + wide: ['svētdiena', 'pirmdiena', 'otrdiena', 'trešdiena', 'ceturtdiena', 'piektdiena', 'sestdiena'] +}; +var formattingDayValues = { + narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], + short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], + abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], + wide: ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rīts', + afternoon: 'diena', + evening: 'vakars', + night: 'nakts' + }, + abbreviated: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rīts', + afternoon: 'pēcpusd.', + evening: 'vakars', + night: 'nakts' + }, + wide: { + am: 'am', + pm: 'pm', + midnight: 'pusnakts', + noon: 'pusdienlaiks', + morning: 'rīts', + afternoon: 'pēcpusdiena', + evening: 'vakars', + night: 'nakts' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rītā', + afternoon: 'dienā', + evening: 'vakarā', + night: 'naktī' + }, + abbreviated: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rītā', + afternoon: 'pēcpusd.', + evening: 'vakarā', + night: 'naktī' + }, + wide: { + am: 'am', + pm: 'pm', + midnight: 'pusnaktī', + noon: 'pusdienlaikā', + morning: 'rītā', + afternoon: 'pēcpusdienā', + evening: 'vakarā', + night: 'naktī' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/_lib/match/index.js b/node_modules/date-fns/esm/locale/lv/_lib/match/index.js new file mode 100644 index 00000000..219c6a76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i +}; +var parseEraPatterns = { + any: [/^p/i, /^m/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i +}; +var parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jūn/i, /^jūl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'wide', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/index.d.ts b/node_modules/date-fns/esm/locale/lv/index.d.ts new file mode 100644 index 00000000..14686a26 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lv } from 'date-fns/locale' +export default lv diff --git a/node_modules/date-fns/esm/locale/lv/index.js b/node_modules/date-fns/esm/locale/lv/index.js new file mode 100644 index 00000000..46d3d091 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs]{@link https://github.com/prudolfs} + */ + +var locale = { + code: 'lv', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/lv/index.js.flow b/node_modules/date-fns/esm/locale/lv/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/lv/package.json b/node_modules/date-fns/esm/locale/lv/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/lv/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/mk/_lib/formatDistance/index.js new file mode 100644 index 00000000..6028dc8c --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'помалку од секунда', + other: 'помалку од {{count}} секунди' + }, + xSeconds: { + one: '1 секунда', + other: '{{count}} секунди' + }, + halfAMinute: 'половина минута', + lessThanXMinutes: { + one: 'помалку од минута', + other: 'помалку од {{count}} минути' + }, + xMinutes: { + one: '1 минута', + other: '{{count}} минути' + }, + aboutXHours: { + one: 'околу 1 час', + other: 'околу {{count}} часа' + }, + xHours: { + one: '1 час', + other: '{{count}} часа' + }, + xDays: { + one: '1 ден', + other: '{{count}} дена' + }, + aboutXWeeks: { + one: 'околу 1 недела', + other: 'околу {{count}} месеци' + }, + xWeeks: { + one: '1 недела', + other: '{{count}} недели' + }, + aboutXMonths: { + one: 'околу 1 месец', + other: 'околу {{count}} недели' + }, + xMonths: { + one: '1 месец', + other: '{{count}} месеци' + }, + aboutXYears: { + one: 'околу 1 година', + other: 'околу {{count}} години' + }, + xYears: { + one: '1 година', + other: '{{count}} години' + }, + overXYears: { + one: 'повеќе од 1 година', + other: 'повеќе од {{count}} години' + }, + almostXYears: { + one: 'безмалку 1 година', + other: 'безмалку {{count}} години' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за ' + result; + } else { + return 'пред ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/mk/_lib/formatLong/index.js new file mode 100644 index 00000000..fd7da90c --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/mk/_lib/formatRelative/index.js new file mode 100644 index 00000000..741e1cd3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/formatRelative/index.js @@ -0,0 +1,90 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var weekdays = ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота']; + +function _lastWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function _nextWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/_lib/localize/index.js b/node_modules/date-fns/esm/locale/mk/_lib/localize/index.js new file mode 100644 index 00000000..f23d1173 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/localize/index.js @@ -0,0 +1,82 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['пр.н.е.', 'н.е.'], + abbreviated: ['пред н. е.', 'н. е.'], + wide: ['пред нашата ера', 'нашата ера'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ви кв.', '2-ри кв.', '3-ти кв.', '4-ти кв.'], + wide: ['1-ви квартал', '2-ри квартал', '3-ти квартал', '4-ти квартал'] +}; +var monthValues = { + abbreviated: ['јан', 'фев', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'септ', 'окт', 'ноем', 'дек'], + wide: ['јануари', 'февруари', 'март', 'април', 'мај', 'јуни', 'јули', 'август', 'септември', 'октомври', 'ноември', 'декември'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['не', 'по', 'вт', 'ср', 'че', 'пе', 'са'], + abbreviated: ['нед', 'пон', 'вто', 'сре', 'чет', 'пет', 'саб'], + wide: ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота'] +}; +var dayPeriodValues = { + wide: { + am: 'претпладне', + pm: 'попладне', + midnight: 'полноќ', + noon: 'напладне', + morning: 'наутро', + afternoon: 'попладне', + evening: 'навечер', + night: 'ноќе' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + '-ви'; + + case 2: + return number + '-ри'; + + case 7: + case 8: + return number + '-ми'; + } + } + + return number + '-ти'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/_lib/match/index.js b/node_modules/date-fns/esm/locale/mk/_lib/match/index.js new file mode 100644 index 00000000..4846c349 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/_lib/match/index.js @@ -0,0 +1,95 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(пред нашата ера|нашата ера)/i +}; +var parseEraPatterns = { + any: [/^п/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?и?)? кв.?/i, + wide: /^[1234](-?[врт]?и?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(не|по|вт|ср|че|пе|са)/i, + abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i, + wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i] +}; +var matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i +}; +var parseMonthPatterns = { + any: [/^ја/i, /^Ф/i, /^мар/i, /^ап/i, /^мај/i, /^јун/i, /^јул/i, /^ав/i, /^се/i, /^окт/i, /^но/i, /^де/i] +}; +var matchDayPeriodPatterns = { + any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /претпладне/i, + pm: /попладне/i, + midnight: /полноќ/i, + noon: /напладне/i, + morning: /наутро/i, + afternoon: /попладне/i, + evening: /навечер/i, + night: /ноќе/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/index.d.ts b/node_modules/date-fns/esm/locale/mk/index.d.ts new file mode 100644 index 00000000..b845b31d --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mk } from 'date-fns/locale' +export default mk diff --git a/node_modules/date-fns/esm/locale/mk/index.js b/node_modules/date-fns/esm/locale/mk/index.js new file mode 100644 index 00000000..71dcbc79 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar]{@link https://github.com/vlahupetar} + * @author Altrim Beqiri [@altrim]{@link https://github.com/altrim} + */ + +var locale = { + code: 'mk', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mk/index.js.flow b/node_modules/date-fns/esm/locale/mk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/mk/package.json b/node_modules/date-fns/esm/locale/mk/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mk/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/mn/_lib/formatDistance/index.js new file mode 100644 index 00000000..aeda4d4d --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/_lib/formatDistance/index.js @@ -0,0 +1,136 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'секунд хүрэхгүй', + other: '{{count}} секунд хүрэхгүй' + }, + xSeconds: { + one: '1 секунд', + other: '{{count}} секунд' + }, + halfAMinute: 'хагас минут', + lessThanXMinutes: { + one: 'минут хүрэхгүй', + other: '{{count}} минут хүрэхгүй' + }, + xMinutes: { + one: '1 минут', + other: '{{count}} минут' + }, + aboutXHours: { + one: 'ойролцоогоор 1 цаг', + other: 'ойролцоогоор {{count}} цаг' + }, + xHours: { + one: '1 цаг', + other: '{{count}} цаг' + }, + xDays: { + one: '1 өдөр', + other: '{{count}} өдөр' + }, + aboutXWeeks: { + one: 'ойролцоогоор 1 долоо хоног', + other: 'ойролцоогоор {{count}} долоо хоног' + }, + xWeeks: { + one: '1 долоо хоног', + other: '{{count}} долоо хоног' + }, + aboutXMonths: { + one: 'ойролцоогоор 1 сар', + other: 'ойролцоогоор {{count}} сар' + }, + xMonths: { + one: '1 сар', + other: '{{count}} сар' + }, + aboutXYears: { + one: 'ойролцоогоор 1 жил', + other: 'ойролцоогоор {{count}} жил' + }, + xYears: { + one: '1 жил', + other: '{{count}} жил' + }, + overXYears: { + one: '1 жил гаран', + other: '{{count}} жил гаран' + }, + almostXYears: { + one: 'бараг 1 жил', + other: 'бараг {{count}} жил' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + /** + * Append genitive case + */ + var words = result.split(' '); + var lastword = words.pop(); + result = words.join(' '); + + switch (lastword) { + case 'секунд': + result += ' секундийн'; + break; + + case 'минут': + result += ' минутын'; + break; + + case 'цаг': + result += ' цагийн'; + break; + + case 'өдөр': + result += ' өдрийн'; + break; + + case 'сар': + result += ' сарын'; + break; + + case 'жил': + result += ' жилийн'; + break; + + case 'хоног': + result += ' хоногийн'; + break; + + case 'гаран': + result += ' гараны'; + break; + + case 'хүрэхгүй': + result += ' хүрэхгүй хугацааны'; + break; + + default: + result += lastword + '-н'; + } + + if (options.comparison && options.comparison > 0) { + return result + ' дараа'; + } else { + return result + ' өмнө'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/mn/_lib/formatLong/index.js new file mode 100644 index 00000000..991e3731 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "y 'оны' MMMM'ын' d, EEEE 'гараг'", + long: "y 'оны' MMMM'ын' d", + medium: "y 'оны' MMM'ын' d", + short: 'y.MM.dd' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/mn/_lib/formatRelative/index.js new file mode 100644 index 00000000..9ca04195 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'", + yesterday: "'өчигдөр' p 'цагт'", + today: "'өнөөдөр' p 'цагт'", + tomorrow: "'маргааш' p 'цагт'", + nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/_lib/localize/index.js b/node_modules/date-fns/esm/locale/mn/_lib/localize/index.js new file mode 100644 index 00000000..6df9facb --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/_lib/localize/index.js @@ -0,0 +1,105 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['НТӨ', 'НТ'], + abbreviated: ['НТӨ', 'НТ'], + wide: ['нийтийн тооллын өмнөх', 'нийтийн тооллын'] +}; +var quarterValues = { + narrow: ['I', 'II', 'III', 'IV'], + abbreviated: ['I улирал', 'II улирал', 'III улирал', 'IV улирал'], + wide: ['1-р улирал', '2-р улирал', '3-р улирал', '4-р улирал'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'], + abbreviated: ['1-р сар', '2-р сар', '3-р сар', '4-р сар', '5-р сар', '6-р сар', '7-р сар', '8-р сар', '9-р сар', '10-р сар', '11-р сар', '12-р сар'], + wide: ['Нэгдүгээр сар', 'Хоёрдугаар сар', 'Гуравдугаар сар', 'Дөрөвдүгээр сар', 'Тавдугаар сар', 'Зургаадугаар сар', 'Долоодугаар сар', 'Наймдугаар сар', 'Есдүгээр сар', 'Аравдугаар сар', 'Арваннэгдүгээр сар', 'Арван хоёрдугаар сар'] +}; +var formattingMonthValues = { + narrow: ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'], + abbreviated: ['1-р сар', '2-р сар', '3-р сар', '4-р сар', '5-р сар', '6-р сар', '7-р сар', '8-р сар', '9-р сар', '10-р сар', '11-р сар', '12-р сар'], + wide: ['нэгдүгээр сар', 'хоёрдугаар сар', 'гуравдугаар сар', 'дөрөвдүгээр сар', 'тавдугаар сар', 'зургаадугаар сар', 'долоодугаар сар', 'наймдугаар сар', 'есдүгээр сар', 'аравдугаар сар', 'арваннэгдүгээр сар', 'арван хоёрдугаар сар'] +}; +var dayValues = { + narrow: ['Н', 'Д', 'М', 'Л', 'П', 'Б', 'Б'], + short: ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], + abbreviated: ['Ням', 'Дав', 'Мяг', 'Лха', 'Пүр', 'Баа', 'Бям'], + wide: ['Ням', 'Даваа', 'Мягмар', 'Лхагва', 'Пүрэв', 'Баасан', 'Бямба'] +}; +var formattingDayValues = { + narrow: ['Н', 'Д', 'М', 'Л', 'П', 'Б', 'Б'], + short: ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], + abbreviated: ['Ням', 'Дав', 'Мяг', 'Лха', 'Пүр', 'Баа', 'Бям'], + wide: ['ням', 'даваа', 'мягмар', 'лхагва', 'пүрэв', 'баасан', 'бямба'] +}; +var dayPeriodValues = { + narrow: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + }, + abbreviated: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + }, + wide: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/_lib/match/index.js b/node_modules/date-fns/esm/locale/mn/_lib/match/index.js new file mode 100644 index 00000000..d566852d --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /\d+/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i +}; +var parseEraPatterns = { + any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i] +}; +var matchQuarterPatterns = { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i +}; +var parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i] +}; +var matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i +}; +var parseMonthPatterns = { + narrow: [/^i$/i, /^ii$/i, /^iii$/i, /^iv$/i, /^v$/i, /^vi$/i, /^vii$/i, /^viii$/i, /^ix$/i, /^x$/i, /^xi$/i, /^xii$/i], + any: [/^(1|нэгдүгээр)/i, /^(2|хоёрдугаар)/i, /^(3|гуравдугаар)/i, /^(4|дөрөвдүгээр)/i, /^(5|тавдугаар)/i, /^(6|зургаадугаар)/i, /^(7|долоодугаар)/i, /^(8|наймдугаар)/i, /^(9|есдүгээр)/i, /^(10|аравдугаар)/i, /^(11|арван нэгдүгээр)/i, /^(12|арван хоёрдугаар)/i] +}; +var matchDayPatterns = { + narrow: /^[ндмлпбб]/i, + short: /^(ня|да|мя|лх|пү|ба|бя)/i, + abbreviated: /^(ням|дав|мяг|лха|пүр|баа|бям)/i, + wide: /^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^д/i, /^м/i, /^л/i, /^п/i, /^б/i, /^б/i], + any: [/^ня/i, /^да/i, /^мя/i, /^лх/i, /^пү/i, /^ба/i, /^бя/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, + any: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ү\.ө\./i, + pm: /^ү\.х\./i, + midnight: /^шөнө дунд/i, + noon: /^үд дунд/i, + morning: /өглөө/i, + afternoon: /өдөр/i, + evening: /орой/i, + night: /шөнө/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/index.d.ts b/node_modules/date-fns/esm/locale/mn/index.d.ts new file mode 100644 index 00000000..9b27ad91 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mn } from 'date-fns/locale' +export default mn diff --git a/node_modules/date-fns/esm/locale/mn/index.js b/node_modules/date-fns/esm/locale/mn/index.js new file mode 100644 index 00000000..fc784261 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203]{@link https://github.com/bilguun0203} + */ + +var locale = { + code: 'mn', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mn/index.js.flow b/node_modules/date-fns/esm/locale/mn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/mn/package.json b/node_modules/date-fns/esm/locale/mn/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mn/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js new file mode 100644 index 00000000..287480f1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'kurang dari 1 saat', + other: 'kurang dari {{count}} saat' + }, + xSeconds: { + one: '1 saat', + other: '{{count}} saat' + }, + halfAMinute: 'setengah minit', + lessThanXMinutes: { + one: 'kurang dari 1 minit', + other: 'kurang dari {{count}} minit' + }, + xMinutes: { + one: '1 minit', + other: '{{count}} minit' + }, + aboutXHours: { + one: 'sekitar 1 jam', + other: 'sekitar {{count}} jam' + }, + xHours: { + one: '1 jam', + other: '{{count}} jam' + }, + xDays: { + one: '1 hari', + other: '{{count}} hari' + }, + aboutXWeeks: { + one: 'sekitar 1 minggu', + other: 'sekitar {{count}} minggu' + }, + xWeeks: { + one: '1 minggu', + other: '{{count}} minggu' + }, + aboutXMonths: { + one: 'sekitar 1 bulan', + other: 'sekitar {{count}} bulan' + }, + xMonths: { + one: '1 bulan', + other: '{{count}} bulan' + }, + aboutXYears: { + one: 'sekitar 1 tahun', + other: 'sekitar {{count}} tahun' + }, + xYears: { + one: '1 tahun', + other: '{{count}} tahun' + }, + overXYears: { + one: 'lebih dari 1 tahun', + other: 'lebih dari {{count}} tahun' + }, + almostXYears: { + one: 'hampir 1 tahun', + other: 'hampir {{count}} tahun' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dalam masa ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ms/_lib/formatLong/index.js new file mode 100644 index 00000000..6cab5709 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'd/M/yyyy' +}; +var timeFormats = { + full: 'HH.mm.ss', + long: 'HH.mm.ss', + medium: 'HH.mm', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ms/_lib/formatRelative/index.js new file mode 100644 index 00000000..deeafb65 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ms/_lib/localize/index.js new file mode 100644 index 00000000..8d06f778 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/localize/index.js @@ -0,0 +1,127 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html + +var eraValues = { + narrow: ['SM', 'M'], + abbreviated: ['SM', 'M'], + wide: ['Sebelum Masihi', 'Masihi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['S1', 'S2', 'S3', 'S4'], + wide: ['Suku pertama', 'Suku kedua', 'Suku ketiga', 'Suku keempat'] +}; // Note: in Malay, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ogo', 'Sep', 'Okt', 'Nov', 'Dis'], + wide: ['Januari', 'Februari', 'Mac', 'April', 'Mei', 'Jun', 'Julai', 'Ogos', 'September', 'Oktober', 'November', 'Disember'] +}; +var dayValues = { + narrow: ['A', 'I', 'S', 'R', 'K', 'J', 'S'], + short: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], + abbreviated: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], + wide: ['Ahad', 'Isnin', 'Selasa', 'Rabu', 'Khamis', 'Jumaat', 'Sabtu'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'tgh malam', + noon: 'tgh hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + // Can't use "pertama", "kedua" because can't be parsed + return 'ke-' + Number(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/_lib/match/index.js b/node_modules/date-fns/esm/locale/ms/_lib/match/index.js new file mode 100644 index 00000000..6535378e --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^ke-(\d+)?/i; +var parseOrdinalNumberPattern = /petama|\d+/i; +var matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i +}; +var parseEraPatterns = { + any: [/^s/i, /^(m)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i +}; +var parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^og/i, /^s/i, /^ok/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i +}; +var parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/index.d.ts b/node_modules/date-fns/esm/locale/ms/index.d.ts new file mode 100644 index 00000000..d7450bdd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ms } from 'date-fns/locale' +export default ms diff --git a/node_modules/date-fns/esm/locale/ms/index.js b/node_modules/date-fns/esm/locale/ms/index.js new file mode 100644 index 00000000..80746628 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten]{@link https://github.com/Zyten} + */ + +var locale = { + code: 'ms', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ms/index.js.flow b/node_modules/date-fns/esm/locale/ms/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ms/package.json b/node_modules/date-fns/esm/locale/ms/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ms/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/mt/_lib/formatDistance/index.js new file mode 100644 index 00000000..290df65d --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/formatDistance/index.js @@ -0,0 +1,94 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'inqas minn sekonda', + other: 'inqas minn {{count}} sekondi' + }, + xSeconds: { + one: 'sekonda', + other: '{{count}} sekondi' + }, + halfAMinute: 'nofs minuta', + lessThanXMinutes: { + one: 'inqas minn minuta', + other: 'inqas minn {{count}} minuti' + }, + xMinutes: { + one: 'minuta', + other: '{{count}} minuti' + }, + aboutXHours: { + one: 'madwar siegħa', + other: 'madwar {{count}} siegħat' + }, + xHours: { + one: 'siegħa', + other: '{{count}} siegħat' + }, + xDays: { + one: 'ġurnata', + other: '{{count}} ġranet' + }, + aboutXWeeks: { + one: 'madwar ġimgħa', + other: 'madwar {{count}} ġimgħat' + }, + xWeeks: { + one: 'ġimgħa', + other: '{{count}} ġimgħat' + }, + aboutXMonths: { + one: 'madwar xahar', + other: 'madwar {{count}} xhur' + }, + xMonths: { + one: 'xahar', + other: '{{count}} xhur' + }, + aboutXYears: { + one: 'madwar sena', + two: 'madwar sentejn', + other: 'madwar {{count}} snin' + }, + xYears: { + one: 'sena', + two: 'sentejn', + other: '{{count}} snin' + }, + overXYears: { + one: 'aktar minn sena', + two: 'aktar minn sentejn', + other: 'aktar minn {{count}} snin' + }, + almostXYears: { + one: 'kważi sena', + two: 'kważi sentejn', + other: 'kważi {{count}} snin' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + ' ilu'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/mt/_lib/formatLong/index.js new file mode 100644 index 00000000..f08860c3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/mt/_lib/formatRelative/index.js new file mode 100644 index 00000000..87267ff6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/_lib/localize/index.js b/node_modules/date-fns/esm/locale/mt/_lib/localize/index.js new file mode 100644 index 00000000..c1636aa9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['Q', 'W'], + abbreviated: ['QK', 'WK'], + wide: ['qabel Kristu', 'wara Kristu'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1. kwart', '2. kwart', '3. kwart', '4. kwart'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'Ġ', 'L', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Fra', 'Mar', 'Apr', 'Mej', 'Ġun', 'Lul', 'Aww', 'Set', 'Ott', 'Nov', 'Diċ'], + wide: ['Jannar', 'Frar', 'Marzu', 'April', 'Mejju', 'Ġunju', 'Lulju', 'Awwissu', 'Settembru', 'Ottubru', 'Novembru', 'Diċembru'] +}; +var dayValues = { + narrow: ['Ħ', 'T', 'T', 'E', 'Ħ', 'Ġ', 'S'], + short: ['Ħa', 'Tn', 'Tl', 'Er', 'Ħa', 'Ġi', 'Si'], + abbreviated: ['Ħad', 'Tne', 'Tli', 'Erb', 'Ħam', 'Ġim', 'Sib'], + wide: ['Il-Ħadd', 'It-Tnejn', 'It-Tlieta', 'L-Erbgħa', 'Il-Ħamis', 'Il-Ġimgħa', 'Is-Sibt'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/_lib/match/index.js b/node_modules/date-fns/esm/locale/mt/_lib/match/index.js new file mode 100644 index 00000000..24139b96 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i +}; +var parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^ġ/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mej/i, /^ġ/i, /^l/i, /^aw/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i +}; +var parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [/^(il-)?ħad/i, /^(it-)?tn/i, /^(it-)?tl/i, /^(l-)?er/i, /^(il-)?ham/i, /^(il-)?ġi/i, /^(is-)?si/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/index.d.ts b/node_modules/date-fns/esm/locale/mt/index.d.ts new file mode 100644 index 00000000..a845625b --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mt } from 'date-fns/locale' +export default mt diff --git a/node_modules/date-fns/esm/locale/mt/index.js b/node_modules/date-fns/esm/locale/mt/index.js new file mode 100644 index 00000000..4719c50f --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ + +var locale = { + code: 'mt', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/mt/index.js.flow b/node_modules/date-fns/esm/locale/mt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/mt/package.json b/node_modules/date-fns/esm/locale/mt/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/mt/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/nb/_lib/formatDistance/index.js new file mode 100644 index 00000000..7ce2e5ae --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre enn ett sekund', + other: 'mindre enn {{count}} sekunder' + }, + xSeconds: { + one: 'ett sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'et halvt minutt', + lessThanXMinutes: { + one: 'mindre enn ett minutt', + other: 'mindre enn {{count}} minutter' + }, + xMinutes: { + one: 'ett minutt', + other: '{{count}} minutter' + }, + aboutXHours: { + one: 'omtrent en time', + other: 'omtrent {{count}} timer' + }, + xHours: { + one: 'en time', + other: '{{count}} timer' + }, + xDays: { + one: 'en dag', + other: '{{count}} dager' + }, + aboutXWeeks: { + one: 'omtrent en uke', + other: 'omtrent {{count}} uker' + }, + xWeeks: { + one: 'en uke', + other: '{{count}} uker' + }, + aboutXMonths: { + one: 'omtrent en måned', + other: 'omtrent {{count}} måneder' + }, + xMonths: { + one: 'en måned', + other: '{{count}} måneder' + }, + aboutXYears: { + one: 'omtrent ett år', + other: 'omtrent {{count}} år' + }, + xYears: { + one: 'ett år', + other: '{{count}} år' + }, + overXYears: { + one: 'over ett år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'nesten ett år', + other: 'nesten {{count}} år' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/nb/_lib/formatLong/index.js new file mode 100644 index 00000000..eff17baa --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/nb/_lib/formatRelative/index.js new file mode 100644 index 00000000..1f7ced6b --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/_lib/localize/index.js b/node_modules/date-fns/esm/locale/nb/_lib/localize/index.js new file mode 100644 index 00000000..6e8d36e8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['før Kristus', 'etter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], + abbreviated: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'], + wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natten' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natten' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgenen', + afternoon: 'på ettermiddagen', + evening: 'på kvelden', + night: 'på natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/_lib/match/index.js b/node_modules/date-fns/esm/locale/nb/_lib/match/index.js new file mode 100644 index 00000000..47ffe11d --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^e/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/index.d.ts b/node_modules/date-fns/esm/locale/nb/index.d.ts new file mode 100644 index 00000000..75c06bb9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nb } from 'date-fns/locale' +export default nb diff --git a/node_modules/date-fns/esm/locale/nb/index.js b/node_modules/date-fns/esm/locale/nb/index.js new file mode 100644 index 00000000..b3c62ad7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse]{@link https://github.com/Hanse} + * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Dag Stuan [@dagstuan]{@link https://github.com/dagstuan} + */ + +var locale = { + code: 'nb', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nb/index.js.flow b/node_modules/date-fns/esm/locale/nb/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/nb/package.json b/node_modules/date-fns/esm/locale/nb/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nb/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatDistance/index.js new file mode 100644 index 00000000..83ca8c03 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder dan een seconde', + other: 'minder dan {{count}} seconden' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} seconden' + }, + halfAMinute: 'een halve minuut', + lessThanXMinutes: { + one: 'minder dan een minuut', + other: 'minder dan {{count}} minuten' + }, + xMinutes: { + one: 'een minuut', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} uur' + }, + xHours: { + one: '1 uur', + other: '{{count}} uur' + }, + xDays: { + one: '1 dag', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weken' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weken' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maanden' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maanden' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer dan 1 jaar', + other: 'meer dan {{count}} jaar' + }, + almostXYears: { + one: 'bijna 1 jaar', + other: 'bijna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatLong/index.js new file mode 100644 index 00000000..22151486 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatRelative/index.js new file mode 100644 index 00000000..733b4ead --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/_lib/localize/index.js b/node_modules/date-fns/esm/locale/nl-BE/_lib/localize/index.js new file mode 100644 index 00000000..637ba8be --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['v.C.', 'n.C.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], + short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/_lib/match/index.js b/node_modules/date-fns/esm/locale/nl-BE/_lib/match/index.js new file mode 100644 index 00000000..24af1a00 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}; +var parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/index.d.ts b/node_modules/date-fns/esm/locale/nl-BE/index.d.ts new file mode 100644 index 00000000..c2970a4e --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nlBE } from 'date-fns/locale' +export default nlBE diff --git a/node_modules/date-fns/esm/locale/nl-BE/index.js b/node_modules/date-fns/esm/locale/nl-BE/index.js new file mode 100644 index 00000000..a29324e5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/index.js @@ -0,0 +1,32 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} + * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} + * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} + * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} + */ + +var locale = { + code: 'nl-BE', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl-BE/index.js.flow b/node_modules/date-fns/esm/locale/nl-BE/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/nl-BE/package.json b/node_modules/date-fns/esm/locale/nl-BE/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl-BE/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js new file mode 100644 index 00000000..83ca8c03 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder dan een seconde', + other: 'minder dan {{count}} seconden' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} seconden' + }, + halfAMinute: 'een halve minuut', + lessThanXMinutes: { + one: 'minder dan een minuut', + other: 'minder dan {{count}} minuten' + }, + xMinutes: { + one: 'een minuut', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} uur' + }, + xHours: { + one: '1 uur', + other: '{{count}} uur' + }, + xDays: { + one: '1 dag', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weken' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weken' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maanden' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maanden' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer dan 1 jaar', + other: 'meer dan {{count}} jaar' + }, + almostXYears: { + one: 'bijna 1 jaar', + other: 'bijna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js new file mode 100644 index 00000000..1eb3157b --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd-MM-y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js new file mode 100644 index 00000000..31785984 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js b/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js new file mode 100644 index 00000000..93f24049 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['v.C.', 'n.C.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], + short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/_lib/match/index.js b/node_modules/date-fns/esm/locale/nl/_lib/match/index.js new file mode 100644 index 00000000..24af1a00 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}; +var parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/index.d.ts b/node_modules/date-fns/esm/locale/nl/index.d.ts new file mode 100644 index 00000000..eb92f4ea --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nl } from 'date-fns/locale' +export default nl diff --git a/node_modules/date-fns/esm/locale/nl/index.js b/node_modules/date-fns/esm/locale/nl/index.js new file mode 100644 index 00000000..42090690 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/index.js @@ -0,0 +1,34 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} + * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} + * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} + * @author Edo Rivai [@edorivai]{@link https://github.com/edorivai} + * @author Niels Keurentjes [@curry684]{@link https://github.com/curry684} + * @author Stefan Vermaas [@stefanvermaas]{@link https://github.com/stefanvermaas} + */ + +var locale = { + code: 'nl', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nl/index.js.flow b/node_modules/date-fns/esm/locale/nl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/nl/package.json b/node_modules/date-fns/esm/locale/nl/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nl/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/nn/_lib/formatDistance/index.js new file mode 100644 index 00000000..d9faf79f --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre enn eitt sekund', + other: 'mindre enn {{count}} sekund' + }, + xSeconds: { + one: 'eitt sekund', + other: '{{count}} sekund' + }, + halfAMinute: 'eit halvt minutt', + lessThanXMinutes: { + one: 'mindre enn eitt minutt', + other: 'mindre enn {{count}} minutt' + }, + xMinutes: { + one: 'eitt minutt', + other: '{{count}} minutt' + }, + aboutXHours: { + one: 'omtrent ein time', + other: 'omtrent {{count}} timar' + }, + xHours: { + one: 'ein time', + other: '{{count}} timar' + }, + xDays: { + one: 'ein dag', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'omtrent ei veke', + other: 'omtrent {{count}} veker' + }, + xWeeks: { + one: 'ei veke', + other: '{{count}} veker' + }, + aboutXMonths: { + one: 'omtrent ein månad', + other: 'omtrent {{count}} månader' + }, + xMonths: { + one: 'ein månad', + other: '{{count}} månader' + }, + aboutXYears: { + one: 'omtrent eitt år', + other: 'omtrent {{count}} år' + }, + xYears: { + one: 'eitt år', + other: '{{count}} år' + }, + overXYears: { + one: 'over eitt år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'nesten eitt år', + other: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'ein', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + if (options && options.onlyNumeric) { + result = tokenValue.other.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', count < 13 ? wordMapping[count] : String(count)); + } + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sidan'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/nn/_lib/formatLong/index.js new file mode 100644 index 00000000..eff17baa --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/nn/_lib/formatRelative/index.js new file mode 100644 index 00000000..e81a29e9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/_lib/localize/index.js b/node_modules/date-fns/esm/locale/nn/_lib/localize/index.js new file mode 100644 index 00000000..e8f66d82 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/localize/index.js @@ -0,0 +1,87 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['før Kristus', 'etter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['su', 'må', 'ty', 'on', 'to', 'fr', 'lau'], + abbreviated: ['sun', 'mån', 'tys', 'ons', 'tor', 'fre', 'laur'], + wide: ['sundag', 'måndag', 'tysdag', 'onsdag', 'torsdag', 'fredag', 'laurdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natta' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natta' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgonen', + afternoon: 'på ettermiddagen', + evening: 'på kvelden', + night: 'på natta' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/_lib/match/index.js b/node_modules/date-fns/esm/locale/nn/_lib/match/index.js new file mode 100644 index 00000000..6e35ef60 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^e/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/index.d.ts b/node_modules/date-fns/esm/locale/nn/index.d.ts new file mode 100644 index 00000000..08050ed8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nn } from 'date-fns/locale' +export default nn diff --git a/node_modules/date-fns/esm/locale/nn/index.js b/node_modules/date-fns/esm/locale/nn/index.js new file mode 100644 index 00000000..dd14ce5d --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner]{@link https://github.com/draperunner} + */ + +var locale = { + code: 'nn', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/nn/index.js.flow b/node_modules/date-fns/esm/locale/nn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/nn/package.json b/node_modules/date-fns/esm/locale/nn/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/nn/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/oc/_lib/formatDistance/index.js new file mode 100644 index 00000000..93c7e5f0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mens d’una segonda', + other: 'mens de {{count}} segondas' + }, + xSeconds: { + one: '1 segonda', + other: '{{count}} segondas' + }, + halfAMinute: '30 segondas', + lessThanXMinutes: { + one: 'mens d’una minuta', + other: 'mens de {{count}} minutas' + }, + xMinutes: { + one: '1 minuta', + other: '{{count}} minutas' + }, + aboutXHours: { + one: 'environ 1 ora', + other: 'environ {{count}} oras' + }, + xHours: { + one: '1 ora', + other: '{{count}} oras' + }, + xDays: { + one: '1 jorn', + other: '{{count}} jorns' + }, + aboutXWeeks: { + one: 'environ 1 setmana', + other: 'environ {{count}} setmanas' + }, + xWeeks: { + one: '1 setmana', + other: '{{count}} setmanas' + }, + aboutXMonths: { + one: 'environ 1 mes', + other: 'environ {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'environ 1 an', + other: 'environ {{count}} ans' + }, + xYears: { + one: '1 an', + other: '{{count}} ans' + }, + overXYears: { + one: 'mai d’un an', + other: 'mai de {{count}} ans' + }, + almostXYears: { + one: 'gaireben un an', + other: 'gaireben {{count}} ans' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'd’aquí ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/oc/_lib/formatLong/index.js new file mode 100644 index 00000000..982dd7d5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/oc/_lib/formatRelative/index.js new file mode 100644 index 00000000..14325a13 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/_lib/localize/index.js b/node_modules/date-fns/esm/locale/oc/_lib/localize/index.js new file mode 100644 index 00000000..d6d95d62 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/_lib/localize/index.js @@ -0,0 +1,142 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ab. J.C.', 'apr. J.C.'], + abbreviated: ['ab. J.C.', 'apr. J.C.'], + wide: ['abans Jèsus-Crist', 'après Jèsus-Crist'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1èr trim.', '2nd trim.', '3en trim.', '4en trim.'], + wide: ['1èr trimèstre', '2nd trimèstre', '3en trimèstre', '4en trimèstre'] +}; +var monthValues = { + narrow: ['GN', 'FB', 'MÇ', 'AB', 'MA', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DC'], + abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'mai', 'junh', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'dec.'], + wide: ['genièr', 'febrièr', 'març', 'abril', 'mai', 'junh', 'julhet', 'agost', 'setembre', 'octòbre', 'novembre', 'decembre'] +}; +var dayValues = { + narrow: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + short: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + abbreviated: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + wide: ['dimenge', 'diluns', 'dimars', 'dimècres', 'dijòus', 'divendres', 'dissabte'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var ordinal; + + switch (number) { + case 1: + ordinal = 'èr'; + break; + + case 2: + ordinal = 'nd'; + break; + + default: + ordinal = 'en'; + } // feminine for year, week, hour, minute, second + + + if (unit === 'year' || unit === 'week' || unit === 'hour' || unit === 'minute' || unit === 'second') { + ordinal += 'a'; + } + + return number + ordinal; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/_lib/match/index.js b/node_modules/date-fns/esm/locale/oc/_lib/match/index.js new file mode 100644 index 00000000..887d98d7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i +}; +var parseEraPatterns = { + any: [/^ab/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i +}; +var parseMonthPatterns = { + any: [/^g/i, /^f/i, /^ma[r?]|MÇ/i, /^ab/i, /^ma[i?]/i, /^ju[n?]|JN/i, /^ju[l?]|JL/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i +}; +var parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + any: [/^dg|dime/i, /^dl|dil/i, /^dm|dima/i, /^dc|dimè/i, /^dj|dij/i, /^dv|div/i, /^ds|dis/i] +}; +var matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/index.d.ts b/node_modules/date-fns/esm/locale/oc/index.d.ts new file mode 100644 index 00000000..39cb51b3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { oc } from 'date-fns/locale' +export default oc diff --git a/node_modules/date-fns/esm/locale/oc/index.js b/node_modules/date-fns/esm/locale/oc/index.js new file mode 100644 index 00000000..c3649b1b --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ + +var locale = { + code: 'oc', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/oc/index.js.flow b/node_modules/date-fns/esm/locale/oc/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/oc/package.json b/node_modules/date-fns/esm/locale/oc/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/oc/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/package.json b/node_modules/date-fns/esm/locale/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/locale/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/pl/_lib/formatDistance/index.js new file mode 100644 index 00000000..42264a7f --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/formatDistance/index.js @@ -0,0 +1,152 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'mniej niż sekunda', + past: 'mniej niż sekundę', + future: 'mniej niż sekundę' + }, + twoFour: 'mniej niż {{count}} sekundy', + other: 'mniej niż {{count}} sekund' + }, + xSeconds: { + one: { + regular: 'sekunda', + past: 'sekundę', + future: 'sekundę' + }, + twoFour: '{{count}} sekundy', + other: '{{count}} sekund' + }, + halfAMinute: { + one: 'pół minuty', + twoFour: 'pół minuty', + other: 'pół minuty' + }, + lessThanXMinutes: { + one: { + regular: 'mniej niż minuta', + past: 'mniej niż minutę', + future: 'mniej niż minutę' + }, + twoFour: 'mniej niż {{count}} minuty', + other: 'mniej niż {{count}} minut' + }, + xMinutes: { + one: { + regular: 'minuta', + past: 'minutę', + future: 'minutę' + }, + twoFour: '{{count}} minuty', + other: '{{count}} minut' + }, + aboutXHours: { + one: { + regular: 'około godziny', + past: 'około godziny', + future: 'około godzinę' + }, + twoFour: 'około {{count}} godziny', + other: 'około {{count}} godzin' + }, + xHours: { + one: { + regular: 'godzina', + past: 'godzinę', + future: 'godzinę' + }, + twoFour: '{{count}} godziny', + other: '{{count}} godzin' + }, + xDays: { + one: { + regular: 'dzień', + past: 'dzień', + future: '1 dzień' + }, + twoFour: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXWeeks: { + one: 'około tygodnia', + twoFour: 'około {{count}} tygodni', + other: 'około {{count}} tygodni' + }, + xWeeks: { + one: 'tydzień', + twoFour: '{{count}} tygodnie', + other: '{{count}} tygodni' + }, + aboutXMonths: { + one: 'około miesiąc', + twoFour: 'około {{count}} miesiące', + other: 'około {{count}} miesięcy' + }, + xMonths: { + one: 'miesiąc', + twoFour: '{{count}} miesiące', + other: '{{count}} miesięcy' + }, + aboutXYears: { + one: 'około rok', + twoFour: 'około {{count}} lata', + other: 'około {{count}} lat' + }, + xYears: { + one: 'rok', + twoFour: '{{count}} lata', + other: '{{count}} lat' + }, + overXYears: { + one: 'ponad rok', + twoFour: 'ponad {{count}} lata', + other: 'ponad {{count}} lat' + }, + almostXYears: { + one: 'prawie rok', + twoFour: 'prawie {{count}} lata', + other: 'prawie {{count}} lat' + } +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + var rem100 = count % 100; // ends with 11-20 + + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + var rem10 = rem100 % 10; // ends with 2, 3, 4 + + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + var finalText = typeof group === 'string' ? group : group[time]; + return finalText.replace('{{count}}', String(count)); +} + +var formatDistance = function formatDistance(token, count, options) { + var scheme = formatDistanceLocale[token]; + + if (!(options !== null && options !== void 0 && options.addSuffix)) { + return declension(scheme, count, 'regular'); + } + + if (options.comparison && options.comparison > 0) { + return 'za ' + declension(scheme, count, 'future'); + } else { + return declension(scheme, count, 'past') + ' temu'; + } +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/pl/_lib/formatLong/index.js new file mode 100644 index 00000000..25433180 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM y', + long: 'do MMMM y', + medium: 'do MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js new file mode 100644 index 00000000..9d4069b4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/formatRelative/index.js @@ -0,0 +1,62 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var adjectivesLastWeek = { + masculine: 'ostatni', + feminine: 'ostatnia' +}; +var adjectivesThisWeek = { + masculine: 'ten', + feminine: 'ta' +}; +var adjectivesNextWeek = { + masculine: 'następny', + feminine: 'następna' +}; +var dayGrammaticalGender = { + 0: 'feminine', + 1: 'masculine', + 2: 'masculine', + 3: 'feminine', + 4: 'masculine', + 5: 'masculine', + 6: 'feminine' +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjectives; + + if (isSameUTCWeek(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === 'lastWeek') { + adjectives = adjectivesLastWeek; + } else if (token === 'nextWeek') { + adjectives = adjectivesNextWeek; + } else { + throw new Error("Cannot determine adjectives for token ".concat(token)); + } + + var day = date.getUTCDay(); + var grammaticalGender = dayGrammaticalGender[day]; + var adjective = adjectives[grammaticalGender]; + return "'".concat(adjective, "' eeee 'o' p"); +} + +var formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(token, date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/_lib/localize/index.js b/node_modules/date-fns/esm/locale/pl/_lib/localize/index.js new file mode 100644 index 00000000..d9685ee2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/localize/index.js @@ -0,0 +1,135 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['p.n.e.', 'n.e.'], + abbreviated: ['p.n.e.', 'n.e.'], + wide: ['przed naszą erą', 'naszej ery'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I kw.', 'II kw.', 'III kw.', 'IV kw.'], + wide: ['I kwartał', 'II kwartał', 'III kwartał', 'IV kwartał'] +}; +var monthValues = { + narrow: ['S', 'L', 'M', 'K', 'M', 'C', 'L', 'S', 'W', 'P', 'L', 'G'], + abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], + wide: ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'] +}; +var monthFormattingValues = { + narrow: ['s', 'l', 'm', 'k', 'm', 'c', 'l', 's', 'w', 'p', 'l', 'g'], + abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], + wide: ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'września', 'października', 'listopada', 'grudnia'] +}; +var dayValues = { + narrow: ['N', 'P', 'W', 'Ś', 'C', 'P', 'S'], + short: ['nie', 'pon', 'wto', 'śro', 'czw', 'pią', 'sob'], + abbreviated: ['niedz.', 'pon.', 'wt.', 'śr.', 'czw.', 'pt.', 'sob.'], + wide: ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'] +}; +var dayFormattingValues = { + narrow: ['n', 'p', 'w', 'ś', 'c', 'p', 's'], + short: ['nie', 'pon', 'wto', 'śro', 'czw', 'pią', 'sob'], + abbreviated: ['niedz.', 'pon.', 'wt.', 'śr.', 'czw.', 'pt.', 'sob.'], + wide: ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'półn.', + noon: 'poł', + morning: 'rano', + afternoon: 'popoł.', + evening: 'wiecz.', + night: 'noc' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'północ', + noon: 'południe', + morning: 'rano', + afternoon: 'popołudnie', + evening: 'wieczór', + night: 'noc' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'północ', + noon: 'południe', + morning: 'rano', + afternoon: 'popołudnie', + evening: 'wieczór', + night: 'noc' + } +}; +var dayPeriodFormattingValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'o półn.', + noon: 'w poł.', + morning: 'rano', + afternoon: 'po poł.', + evening: 'wiecz.', + night: 'w nocy' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'o północy', + noon: 'w południe', + morning: 'rano', + afternoon: 'po południu', + evening: 'wieczorem', + night: 'w nocy' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'o północy', + noon: 'w południe', + morning: 'rano', + afternoon: 'po południu', + evening: 'wieczorem', + night: 'w nocy' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: monthFormattingValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: dayFormattingValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/_lib/match/index.js b/node_modules/date-fns/esm/locale/pl/_lib/match/index.js new file mode 100644 index 00000000..bd090610 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/_lib/match/index.js @@ -0,0 +1,110 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i +}; +var parseEraPatterns = { + any: [/^p/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i] +}; +var matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i +}; +var parseMonthPatterns = { + narrow: [/^s/i, /^l/i, /^m/i, /^k/i, /^m/i, /^c/i, /^l/i, /^s/i, /^w/i, /^p/i, /^l/i, /^g/i], + any: [/^st/i, /^lu/i, /^mar/i, /^k/i, /^maj/i, /^c/i, /^lip/i, /^si/i, /^w/i, /^p/i, /^lis/i, /^g/i] +}; +var matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/index.d.ts b/node_modules/date-fns/esm/locale/pl/index.d.ts new file mode 100644 index 00000000..1ff8b7d5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { pl } from 'date-fns/locale' +export default pl diff --git a/node_modules/date-fns/esm/locale/pl/index.js b/node_modules/date-fns/esm/locale/pl/index.js new file mode 100644 index 00000000..a5b3972a --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/index.js @@ -0,0 +1,32 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks]{@link https://github.com/ertrzyiks} + * @author Just RAG [@justrag]{@link https://github.com/justrag} + * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Mateusz Tokarski [@mutisz]{@link https://github.com/mutisz} + */ + +var locale = { + code: 'pl', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pl/index.js.flow b/node_modules/date-fns/esm/locale/pl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/pl/package.json b/node_modules/date-fns/esm/locale/pl/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pl/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatDistance/index.js new file mode 100644 index 00000000..6aa106d8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de um segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'meio minuto', + lessThanXMinutes: { + one: 'menos de um minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'cerca de 1 hora', + other: 'cerca de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 dia', + other: '{{count}} dias' + }, + aboutXWeeks: { + one: 'cerca de 1 semana', + other: 'cerca de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'cerca de 1 mês', + other: 'cerca de {{count}} meses' + }, + xMonths: { + one: '1 mês', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'cerca de 1 ano', + other: 'cerca de {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'mais de 1 ano', + other: 'mais de {{count}} anos' + }, + almostXYears: { + one: 'quase 1 ano', + other: 'quase {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'em ' + result; + } else { + return 'há ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatLong/index.js new file mode 100644 index 00000000..44108a1c --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatRelative/index.js new file mode 100644 index 00000000..ec05e47e --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/formatRelative/index.js @@ -0,0 +1,24 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getUTCDay(); + var last = weekday === 0 || weekday === 6 ? 'último' : 'última'; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/_lib/localize/index.js b/node_modules/date-fns/esm/locale/pt-BR/_lib/localize/index.js new file mode 100644 index 00000000..41b9c81a --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/localize/index.js @@ -0,0 +1,126 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'depois de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], + wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] +}; +var dayValues = { + narrow: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'], + short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sab'], + abbreviated: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'], + wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + if ((options === null || options === void 0 ? void 0 : options.unit) === 'week') { + return number + 'ª'; + } + + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/_lib/match/index.js b/node_modules/date-fns/esm/locale/pt-BR/_lib/match/index.js new file mode 100644 index 00000000..aa56a695 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/_lib/match/index.js @@ -0,0 +1,100 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^fev/i, /^mar/i, /^abr/i, /^mai/i, /^jun/i, /^jul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dez/i] +}; +var matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i +}; +var parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/index.d.ts b/node_modules/date-fns/esm/locale/pt-BR/index.d.ts new file mode 100644 index 00000000..e50a0b16 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ptBR } from 'date-fns/locale' +export default ptBR diff --git a/node_modules/date-fns/esm/locale/pt-BR/index.js b/node_modules/date-fns/esm/locale/pt-BR/index.js new file mode 100644 index 00000000..f4b8bb3a --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe]{@link https://github.com/duailibe} + * @author Yago Carballo [@yagocarballo]{@link https://github.com/YagoCarballo} + */ + +var locale = { + code: 'pt-BR', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt-BR/index.js.flow b/node_modules/date-fns/esm/locale/pt-BR/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/pt-BR/package.json b/node_modules/date-fns/esm/locale/pt-BR/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt-BR/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js new file mode 100644 index 00000000..fca5ed60 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de um segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'meio minuto', + lessThanXMinutes: { + one: 'menos de um minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'aproximadamente 1 hora', + other: 'aproximadamente {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 dia', + other: '{{count}} dias' + }, + aboutXWeeks: { + one: 'aproximadamente 1 semana', + other: 'aproximadamente {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'aproximadamente 1 mês', + other: 'aproximadamente {{count}} meses' + }, + xMonths: { + one: '1 mês', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'aproximadamente 1 ano', + other: 'aproximadamente {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'mais de 1 ano', + other: 'mais de {{count}} anos' + }, + almostXYears: { + one: 'quase 1 ano', + other: 'quase {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'daqui a ' + result; + } else { + return 'há ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/pt/_lib/formatLong/index.js new file mode 100644 index 00000000..161d9d08 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d 'de' MMM 'de' y", + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js new file mode 100644 index 00000000..ec05e47e --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/formatRelative/index.js @@ -0,0 +1,24 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getUTCDay(); + var last = weekday === 0 || weekday === 6 ? 'último' : 'última'; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/_lib/localize/index.js b/node_modules/date-fns/esm/locale/pt/_lib/localize/index.js new file mode 100644 index 00000000..0d081526 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a.C.', 'd.C.'], + wide: ['antes de Cristo', 'depois de Cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], + wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] +}; +var dayValues = { + narrow: ['d', 's', 't', 'q', 'q', 's', 's'], + short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], + abbreviated: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], + wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/_lib/match/index.js b/node_modules/date-fns/esm/locale/pt/_lib/match/index.js new file mode 100644 index 00000000..b122cf20 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(º|ª)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º|ª)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ab/i, /^mai/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/index.d.ts b/node_modules/date-fns/esm/locale/pt/index.d.ts new file mode 100644 index 00000000..b848c913 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { pt } from 'date-fns/locale' +export default pt diff --git a/node_modules/date-fns/esm/locale/pt/index.js b/node_modules/date-fns/esm/locale/pt/index.js new file mode 100644 index 00000000..f20e5599 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire]{@link https://github.com/dfreire} + * @author Adrián de la Rosa [@adrm]{@link https://github.com/adrm} + */ + +var locale = { + code: 'pt', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/pt/index.js.flow b/node_modules/date-fns/esm/locale/pt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/pt/package.json b/node_modules/date-fns/esm/locale/pt/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/pt/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js new file mode 100644 index 00000000..6852479f --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mai puțin de o secundă', + other: 'mai puțin de {{count}} secunde' + }, + xSeconds: { + one: '1 secundă', + other: '{{count}} secunde' + }, + halfAMinute: 'jumătate de minut', + lessThanXMinutes: { + one: 'mai puțin de un minut', + other: 'mai puțin de {{count}} minute' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minute' + }, + aboutXHours: { + one: 'circa 1 oră', + other: 'circa {{count}} ore' + }, + xHours: { + one: '1 oră', + other: '{{count}} ore' + }, + xDays: { + one: '1 zi', + other: '{{count}} zile' + }, + aboutXWeeks: { + one: 'circa o săptămână', + other: 'circa {{count}} săptămâni' + }, + xWeeks: { + one: '1 săptămână', + other: '{{count}} săptămâni' + }, + aboutXMonths: { + one: 'circa 1 lună', + other: 'circa {{count}} luni' + }, + xMonths: { + one: '1 lună', + other: '{{count}} luni' + }, + aboutXYears: { + one: 'circa 1 an', + other: 'circa {{count}} ani' + }, + xYears: { + one: '1 an', + other: '{{count}} ani' + }, + overXYears: { + one: 'peste 1 an', + other: 'peste {{count}} ani' + }, + almostXYears: { + one: 'aproape 1 an', + other: 'aproape {{count}} ani' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'în ' + result; + } else { + return result + ' în urmă'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ro/_lib/formatLong/index.js new file mode 100644 index 00000000..59cf83d3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js new file mode 100644 index 00000000..d8fe5397 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ro/_lib/localize/index.js new file mode 100644 index 00000000..f5201f90 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['Î', 'D'], + abbreviated: ['Î.d.C.', 'D.C.'], + wide: ['Înainte de Cristos', 'După Cristos'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['primul trimestru', 'al doilea trimestru', 'al treilea trimestru', 'al patrulea trimestru'] +}; +var monthValues = { + narrow: ['I', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['ian', 'feb', 'mar', 'apr', 'mai', 'iun', 'iul', 'aug', 'sep', 'oct', 'noi', 'dec'], + wide: ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'], + abbreviated: ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'], + wide: ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'ami', + morning: 'dim', + afternoon: 'da', + evening: 's', + night: 'n' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/_lib/match/index.js b/node_modules/date-fns/esm/locale/ro/_lib/match/index.js new file mode 100644 index 00000000..92d6e75c --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i +}; +var parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [/^(Înainte de Cristos|Înaintea erei noastre)/i, /^(După Cristos|Era noastră)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i +}; +var parseMonthPatterns = { + narrow: [/^i/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ia/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^iun/i, /^iul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/index.d.ts b/node_modules/date-fns/esm/locale/ro/index.d.ts new file mode 100644 index 00000000..c19fdecb --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ro } from 'date-fns/locale' +export default ro diff --git a/node_modules/date-fns/esm/locale/ro/index.js b/node_modules/date-fns/esm/locale/ro/index.js new file mode 100644 index 00000000..12ad5b05 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu]{@link https://github.com/jsergiu} + * @author Adrian Ocneanu [@aocneanu]{@link https://github.com/aocneanu} + * @author Mihai Ocneanu [@gandesc]{@link https://github.com/gandesc} + */ + +var locale = { + code: 'ro', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ro/index.js.flow b/node_modules/date-fns/esm/locale/ro/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ro/package.json b/node_modules/date-fns/esm/locale/ro/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ro/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ru/_lib/formatDistance/index.js new file mode 100644 index 00000000..64a0729d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/formatDistance/index.js @@ -0,0 +1,228 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'через ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' назад'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'меньше секунды', + singularNominative: 'меньше {{count}} секунды', + singularGenitive: 'меньше {{count}} секунд', + pluralGenitive: 'меньше {{count}} секунд' + }, + future: { + one: 'меньше, чем через секунду', + singularNominative: 'меньше, чем через {{count}} секунду', + singularGenitive: 'меньше, чем через {{count}} секунды', + pluralGenitive: 'меньше, чем через {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду назад', + singularGenitive: '{{count}} секунды назад', + pluralGenitive: '{{count}} секунд назад' + }, + future: { + singularNominative: 'через {{count}} секунду', + singularGenitive: 'через {{count}} секунды', + pluralGenitive: 'через {{count}} секунд' + } + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'через полминуты'; + } else { + return 'полминуты назад'; + } + } + + return 'полминуты'; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'меньше минуты', + singularNominative: 'меньше {{count}} минуты', + singularGenitive: 'меньше {{count}} минут', + pluralGenitive: 'меньше {{count}} минут' + }, + future: { + one: 'меньше, чем через минуту', + singularNominative: 'меньше, чем через {{count}} минуту', + singularGenitive: 'меньше, чем через {{count}} минуты', + pluralGenitive: 'меньше, чем через {{count}} минут' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} минута', + singularGenitive: '{{count}} минуты', + pluralGenitive: '{{count}} минут' + }, + past: { + singularNominative: '{{count}} минуту назад', + singularGenitive: '{{count}} минуты назад', + pluralGenitive: '{{count}} минут назад' + }, + future: { + singularNominative: 'через {{count}} минуту', + singularGenitive: 'через {{count}} минуты', + pluralGenitive: 'через {{count}} минут' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} часа', + singularGenitive: 'около {{count}} часов', + pluralGenitive: 'около {{count}} часов' + }, + future: { + singularNominative: 'приблизительно через {{count}} час', + singularGenitive: 'приблизительно через {{count}} часа', + pluralGenitive: 'приблизительно через {{count}} часов' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} час', + singularGenitive: '{{count}} часа', + pluralGenitive: '{{count}} часов' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} день', + singularGenitive: '{{count}} дня', + pluralGenitive: '{{count}} дней' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} недели', + singularGenitive: 'около {{count}} недель', + pluralGenitive: 'около {{count}} недель' + }, + future: { + singularNominative: 'приблизительно через {{count}} неделю', + singularGenitive: 'приблизительно через {{count}} недели', + pluralGenitive: 'приблизительно через {{count}} недель' + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} неделя', + singularGenitive: '{{count}} недели', + pluralGenitive: '{{count}} недель' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} месяца', + singularGenitive: 'около {{count}} месяцев', + pluralGenitive: 'около {{count}} месяцев' + }, + future: { + singularNominative: 'приблизительно через {{count}} месяц', + singularGenitive: 'приблизительно через {{count}} месяца', + pluralGenitive: 'приблизительно через {{count}} месяцев' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяца', + pluralGenitive: '{{count}} месяцев' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} года', + singularGenitive: 'около {{count}} лет', + pluralGenitive: 'около {{count}} лет' + }, + future: { + singularNominative: 'приблизительно через {{count}} год', + singularGenitive: 'приблизительно через {{count}} года', + pluralGenitive: 'приблизительно через {{count}} лет' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} года', + pluralGenitive: '{{count}} лет' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больше {{count}} года', + singularGenitive: 'больше {{count}} лет', + pluralGenitive: 'больше {{count}} лет' + }, + future: { + singularNominative: 'больше, чем через {{count}} год', + singularGenitive: 'больше, чем через {{count}} года', + pluralGenitive: 'больше, чем через {{count}} лет' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'почти {{count}} год', + singularGenitive: 'почти {{count}} года', + pluralGenitive: 'почти {{count}} лет' + }, + future: { + singularNominative: 'почти через {{count}} год', + singularGenitive: 'почти через {{count}} года', + pluralGenitive: 'почти через {{count}} лет' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + return formatDistanceLocale[token](count, options); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ru/_lib/formatLong/index.js new file mode 100644 index 00000000..c21b41cd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ru/_lib/formatRelative/index.js new file mode 100644 index 00000000..7b33c359 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/formatRelative/index.js @@ -0,0 +1,89 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var accusativeWeekdays = ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + + if (day === 2 + /* Tue */ + ) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ru/_lib/localize/index.js new file mode 100644 index 00000000..82c1923a --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/localize/index.js @@ -0,0 +1,139 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['до н.э.', 'н.э.'], + abbreviated: ['до н. э.', 'н. э.'], + wide: ['до нашей эры', 'нашей эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], + wide: ['1-й квартал', '2-й квартал', '3-й квартал', '4-й квартал'] +}; +var monthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'март', 'апр.', 'май', 'июнь', 'июль', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'] +}; +var formattingMonthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'мар.', 'апр.', 'мая', 'июн.', 'июл.', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'] +}; +var dayValues = { + narrow: ['В', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['вск', 'пнд', 'втр', 'срд', 'чтв', 'птн', 'суб'], + wide: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утро', + afternoon: 'день', + evening: 'веч.', + night: 'ночь' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утро', + afternoon: 'день', + evening: 'веч.', + night: 'ночь' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'полночь', + noon: 'полдень', + morning: 'утро', + afternoon: 'день', + evening: 'вечер', + night: 'ночь' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утра', + afternoon: 'дня', + evening: 'веч.', + night: 'ночи' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утра', + afternoon: 'дня', + evening: 'веч.', + night: 'ночи' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'полночь', + noon: 'полдень', + morning: 'утра', + afternoon: 'дня', + evening: 'вечера', + night: 'ночи' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + + if (unit === 'date') { + suffix = '-е'; + } else if (unit === 'week' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = '-й'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/_lib/match/index.js b/node_modules/date-fns/esm/locale/ru/_lib/match/index.js new file mode 100644 index 00000000..f6bf5f2a --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\s?э\.?)/i, + wide: /^(до нашей эры|нашей эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, + wide: /^[1234](-?[ыои]?й?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i +}; +var parseMonthPatterns = { + narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^я/i], + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^полн/i, + noon: /^полд/i, + morning: /^у/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/index.d.ts b/node_modules/date-fns/esm/locale/ru/index.d.ts new file mode 100644 index 00000000..1a7f74fd --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ru } from 'date-fns/locale' +export default ru diff --git a/node_modules/date-fns/esm/locale/ru/index.js b/node_modules/date-fns/esm/locale/ru/index.js new file mode 100644 index 00000000..b9268e53 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ + +var locale = { + code: 'ru', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ru/index.js.flow b/node_modules/date-fns/esm/locale/ru/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ru/package.json b/node_modules/date-fns/esm/locale/ru/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ru/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sk/_lib/formatDistance/index.js new file mode 100644 index 00000000..f34a2934 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/formatDistance/index.js @@ -0,0 +1,204 @@ +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } // if count === null || count === 0 || count >= 5 + + + return scheme.other; +} + +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + var finalText = group[time]; + return finalText.replace('{{count}}', String(count)); +} + +function extractPreposition(token) { + var result = ['lessThan', 'about', 'over', 'almost'].filter(function (preposition) { + return !!token.match(new RegExp('^' + preposition)); + }); + return result[0]; +} + +function prefixPreposition(preposition) { + var translation = ''; + + if (preposition === 'almost') { + translation = 'takmer'; + } + + if (preposition === 'about') { + translation = 'približne'; + } + + return translation.length > 0 ? translation + ' ' : ''; +} + +function suffixPreposition(preposition) { + var translation = ''; + + if (preposition === 'lessThan') { + translation = 'menej než'; + } + + if (preposition === 'over') { + translation = 'viac než'; + } + + return translation.length > 0 ? translation + ' ' : ''; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +var formatDistanceLocale = { + xSeconds: { + one: { + present: 'sekunda', + past: 'sekundou', + future: 'sekundu' + }, + twoFour: { + present: '{{count}} sekundy', + past: '{{count}} sekundami', + future: '{{count}} sekundy' + }, + other: { + present: '{{count}} sekúnd', + past: '{{count}} sekundami', + future: '{{count}} sekúnd' + } + }, + halfAMinute: { + other: { + present: 'pol minúty', + past: 'pol minútou', + future: 'pol minúty' + } + }, + xMinutes: { + one: { + present: 'minúta', + past: 'minútou', + future: 'minútu' + }, + twoFour: { + present: '{{count}} minúty', + past: '{{count}} minútami', + future: '{{count}} minúty' + }, + other: { + present: '{{count}} minút', + past: '{{count}} minútami', + future: '{{count}} minút' + } + }, + xHours: { + one: { + present: 'hodina', + past: 'hodinou', + future: 'hodinu' + }, + twoFour: { + present: '{{count}} hodiny', + past: '{{count}} hodinami', + future: '{{count}} hodiny' + }, + other: { + present: '{{count}} hodín', + past: '{{count}} hodinami', + future: '{{count}} hodín' + } + }, + xDays: { + one: { + present: 'deň', + past: 'dňom', + future: 'deň' + }, + twoFour: { + present: '{{count}} dni', + past: '{{count}} dňami', + future: '{{count}} dni' + }, + other: { + present: '{{count}} dní', + past: '{{count}} dňami', + future: '{{count}} dní' + } + }, + xWeeks: { + one: { + present: 'týždeň', + past: 'týždňom', + future: 'týždeň' + }, + twoFour: { + present: '{{count}} týždne', + past: '{{count}} týždňami', + future: '{{count}} týždne' + }, + other: { + present: '{{count}} týždňov', + past: '{{count}} týždňami', + future: '{{count}} týždňov' + } + }, + xMonths: { + one: { + present: 'mesiac', + past: 'mesiacom', + future: 'mesiac' + }, + twoFour: { + present: '{{count}} mesiace', + past: '{{count}} mesiacmi', + future: '{{count}} mesiace' + }, + other: { + present: '{{count}} mesiacov', + past: '{{count}} mesiacmi', + future: '{{count}} mesiacov' + } + }, + xYears: { + one: { + present: 'rok', + past: 'rokom', + future: 'rok' + }, + twoFour: { + present: '{{count}} roky', + past: '{{count}} rokmi', + future: '{{count}} roky' + }, + other: { + present: '{{count}} rokov', + past: '{{count}} rokmi', + future: '{{count}} rokov' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var preposition = extractPreposition(token) || ''; + var key = lowercaseFirstLetter(token.substring(preposition.length)); + var scheme = formatDistanceLocale[key]; + + if (!(options !== null && options !== void 0 && options.addSuffix)) { + return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, 'present'); + } + + if (options.comparison && options.comparison > 0) { + return prefixPreposition(preposition) + 'o ' + suffixPreposition(preposition) + declension(scheme, count, 'future'); + } else { + return prefixPreposition(preposition) + 'pred ' + suffixPreposition(preposition) + declension(scheme, count, 'past'); + } +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sk/_lib/formatLong/index.js new file mode 100644 index 00000000..fbd83d02 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/formatLong/index.js @@ -0,0 +1,37 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 + +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. M. y', + short: 'd. M. y' +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 + +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 + +var dateTimeFormats = { + full: '{{date}}, {{time}}', + long: '{{date}}, {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sk/_lib/formatRelative/index.js new file mode 100644 index 00000000..09359e13 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/formatRelative/index.js @@ -0,0 +1,92 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +var accusativeWeekdays = ['nedeľu', 'pondelok', 'utorok', 'stredu', 'štvrtok', 'piatok', 'sobotu']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + /* Sun */ + + case 3: + /* Wed */ + + case 6 + /* Sat */ + : + return "'minulú " + weekday + " o' p"; + + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + + if (day === 4 + /* Thu */ + ) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + /* Sun */ + + case 4: + /* Wed */ + + case 6 + /* Sat */ + : + return "'budúcu " + weekday + " o' p"; + + default: + return "'budúci' eeee 'o' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sk/_lib/localize/index.js new file mode 100644 index 00000000..2417d283 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/localize/index.js @@ -0,0 +1,133 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 + +var eraValues = { + narrow: ['pred Kr.', 'po Kr.'], + abbreviated: ['pred Kr.', 'po Kr.'], + wide: ['pred Kristom', 'po Kristovi'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. štvrťrok', '2. štvrťrok', '3. štvrťrok', '4. štvrťrok'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 + +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], + wide: ['január', 'február', 'marec', 'apríl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december'] +}; +var formattingMonthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], + wide: ['januára', 'februára', 'marca', 'apríla', 'mája', 'júna', 'júla', 'augusta', 'septembra', 'októbra', 'novembra', 'decembra'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 + +var dayValues = { + narrow: ['n', 'p', 'u', 's', 'š', 'p', 's'], + short: ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'], + abbreviated: ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'], + wide: ['nedeľa', 'pondelok', 'utorok', 'streda', 'štvrtok', 'piatok', 'sobota'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 + +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'poln.', + noon: 'pol.', + morning: 'ráno', + afternoon: 'pop.', + evening: 'več.', + night: 'noc' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'poln.', + noon: 'pol.', + morning: 'ráno', + afternoon: 'popol.', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'polnoc', + noon: 'poludnie', + morning: 'ráno', + afternoon: 'popoludnie', + evening: 'večer', + night: 'noc' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'o poln.', + noon: 'nap.', + morning: 'ráno', + afternoon: 'pop.', + evening: 'več.', + night: 'v n.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'o poln.', + noon: 'napol.', + morning: 'ráno', + afternoon: 'popol.', + evening: 'večer', + night: 'v noci' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'o polnoci', + noon: 'napoludnie', + morning: 'ráno', + afternoon: 'popoludní', + evening: 'večer', + night: 'v noci' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/_lib/match/index.js b/node_modules/date-fns/esm/locale/sk/_lib/match/index.js new file mode 100644 index 00000000..f7a29681 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^m[áa]j/i, /^j[úu]n/i, /^j[úu]l/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/index.d.ts b/node_modules/date-fns/esm/locale/sk/index.d.ts new file mode 100644 index 00000000..362dd321 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sk } from 'date-fns/locale' +export default sk diff --git a/node_modules/date-fns/esm/locale/sk/index.js b/node_modules/date-fns/esm/locale/sk/index.js new file mode 100644 index 00000000..de8ff5dc --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak]{@link https://github.com/mareksuscak} + */ + +var locale = { + code: 'sk', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sk/index.js.flow b/node_modules/date-fns/esm/locale/sk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sk/package.json b/node_modules/date-fns/esm/locale/sk/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sk/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sl/_lib/formatDistance/index.js new file mode 100644 index 00000000..e9e89d4c --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/formatDistance/index.js @@ -0,0 +1,331 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +var formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: 'manj kot {{count}} sekunda', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + past: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundama', + few: 'manj kot {{count}} sekundami', + other: 'manj kot {{count}} sekundami' + }, + future: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + } + }, + xSeconds: { + present: { + one: '{{count}} sekunda', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + past: { + one: '{{count}} sekundo', + two: '{{count}} sekundama', + few: '{{count}} sekundami', + other: '{{count}} sekundami' + }, + future: { + one: '{{count}} sekundo', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + } + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + present: { + one: 'manj kot {{count}} minuta', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + past: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minutama', + few: 'manj kot {{count}} minutami', + other: 'manj kot {{count}} minutami' + }, + future: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + } + }, + xMinutes: { + present: { + one: '{{count}} minuta', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + past: { + one: '{{count}} minuto', + two: '{{count}} minutama', + few: '{{count}} minutami', + other: '{{count}} minutami' + }, + future: { + one: '{{count}} minuto', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + } + }, + aboutXHours: { + present: { + one: 'približno {{count}} ura', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + past: { + one: 'približno {{count}} uro', + two: 'približno {{count}} urama', + few: 'približno {{count}} urami', + other: 'približno {{count}} urami' + }, + future: { + one: 'približno {{count}} uro', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + } + }, + xHours: { + present: { + one: '{{count}} ura', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + past: { + one: '{{count}} uro', + two: '{{count}} urama', + few: '{{count}} urami', + other: '{{count}} urami' + }, + future: { + one: '{{count}} uro', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + } + }, + xDays: { + present: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + past: { + one: '{{count}} dnem', + two: '{{count}} dnevoma', + few: '{{count}} dnevi', + other: '{{count}} dnevi' + }, + future: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + } + }, + // no tenses for weeks? + aboutXWeeks: { + one: 'približno {{count}} teden', + two: 'približno {{count}} tedna', + few: 'približno {{count}} tedne', + other: 'približno {{count}} tednov' + }, + // no tenses for weeks? + xWeeks: { + one: '{{count}} teden', + two: '{{count}} tedna', + few: '{{count}} tedne', + other: '{{count}} tednov' + }, + aboutXMonths: { + present: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + past: { + one: 'približno {{count}} mesecem', + two: 'približno {{count}} mesecema', + few: 'približno {{count}} meseci', + other: 'približno {{count}} meseci' + }, + future: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + } + }, + xMonths: { + present: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} meseci', + other: '{{count}} mesecev' + }, + past: { + one: '{{count}} mesecem', + two: '{{count}} mesecema', + few: '{{count}} meseci', + other: '{{count}} meseci' + }, + future: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} mesece', + other: '{{count}} mesecev' + } + }, + aboutXYears: { + present: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + past: { + one: 'približno {{count}} letom', + two: 'približno {{count}} letoma', + few: 'približno {{count}} leti', + other: 'približno {{count}} leti' + }, + future: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + } + }, + xYears: { + present: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + past: { + one: '{{count}} letom', + two: '{{count}} letoma', + few: '{{count}} leti', + other: '{{count}} leti' + }, + future: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + } + }, + overXYears: { + present: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + past: { + one: 'več kot {{count}} letom', + two: 'več kot {{count}} letoma', + few: 'več kot {{count}} leti', + other: 'več kot {{count}} leti' + }, + future: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + } + }, + almostXYears: { + present: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + }, + past: { + one: 'skoraj {{count}} letom', + two: 'skoraj {{count}} letoma', + few: 'skoraj {{count}} leti', + other: 'skoraj {{count}} leti' + }, + future: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + } + } +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return 'one'; + + case 2: + return 'two'; + + case 3: + case 4: + return 'few'; + + default: + return 'other'; + } +} + +var formatDistance = function formatDistance(token, count, options) { + var result = ''; + var tense = 'present'; + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = 'future'; + result = 'čez '; + } else { + tense = 'past'; + result = 'pred '; + } + } + + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result += tokenValue; + } else { + var form = getFormFromCount(count); + + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace('{{count}}', String(count)); + } else { + result += tokenValue[tense][form].replace('{{count}}', String(count)); + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sl/_lib/formatLong/index.js new file mode 100644 index 00000000..f0073e43 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, dd. MMMM y', + long: 'dd. MMMM y', + medium: 'd. MMM y', + short: 'd. MM. yy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sl/_lib/formatRelative/index.js new file mode 100644 index 00000000..5484bc12 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/formatRelative/index.js @@ -0,0 +1,52 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + + case 3: + return "'prejšnjo sredo ob' p"; + + case 6: + return "'prejšnjo soboto ob' p"; + + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + + case 3: + return "'naslednjo sredo ob' p"; + + case 6: + return "'naslednjo soboto ob' p"; + + default: + return "'naslednji' EEEE 'ob' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sl/_lib/localize/index.js new file mode 100644 index 00000000..18099b2e --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['pr. n. št.', 'po n. št.'], + abbreviated: ['pr. n. št.', 'po n. št.'], + wide: ['pred našim štetjem', 'po našem štetju'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. čet.', '2. čet.', '3. čet.', '4. čet.'], + wide: ['1. četrtletje', '2. četrtletje', '3. četrtletje', '4. četrtletje'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januar', 'februar', 'marec', 'april', 'maj', 'junij', 'julij', 'avgust', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['n', 'p', 't', 's', 'č', 'p', 's'], + short: ['ned.', 'pon.', 'tor.', 'sre.', 'čet.', 'pet.', 'sob.'], + abbreviated: ['ned.', 'pon.', 'tor.', 'sre.', 'čet.', 'pet.', 'sob.'], + wide: ['nedelja', 'ponedeljek', 'torek', 'sreda', 'četrtek', 'petek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'd', + pm: 'p', + midnight: '24.00', + noon: '12.00', + morning: 'j', + afternoon: 'p', + evening: 'v', + night: 'n' + }, + abbreviated: { + am: 'dop.', + pm: 'pop.', + midnight: 'poln.', + noon: 'pold.', + morning: 'jut.', + afternoon: 'pop.', + evening: 'več.', + night: 'noč' + }, + wide: { + am: 'dop.', + pm: 'pop.', + midnight: 'polnoč', + noon: 'poldne', + morning: 'jutro', + afternoon: 'popoldne', + evening: 'večer', + night: 'noč' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'd', + pm: 'p', + midnight: '24.00', + noon: '12.00', + morning: 'zj', + afternoon: 'p', + evening: 'zv', + night: 'po' + }, + abbreviated: { + am: 'dop.', + pm: 'pop.', + midnight: 'opoln.', + noon: 'opold.', + morning: 'zjut.', + afternoon: 'pop.', + evening: 'zveč.', + night: 'ponoči' + }, + wide: { + am: 'dop.', + pm: 'pop.', + midnight: 'opolnoči', + noon: 'opoldne', + morning: 'zjutraj', + afternoon: 'popoldan', + evening: 'zvečer', + night: 'ponoči' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/_lib/match/index.js b/node_modules/date-fns/esm/locale/sl/_lib/match/index.js new file mode 100644 index 00000000..9808c1b8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/_lib/match/index.js @@ -0,0 +1,108 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + abbreviated: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i], + wide: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/index.d.ts b/node_modules/date-fns/esm/locale/sl/index.d.ts new file mode 100644 index 00000000..fbe964aa --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sl } from 'date-fns/locale' +export default sl diff --git a/node_modules/date-fns/esm/locale/sl/index.js b/node_modules/date-fns/esm/locale/sl/index.js new file mode 100644 index 00000000..4278f869 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph]{@link https://github.com/Neoglyph} + * @author Mato Žgajner [@mzgajner]{@link https://github.com/mzgajner} + */ + +var locale = { + code: 'sl', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sl/index.js.flow b/node_modules/date-fns/esm/locale/sl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sl/package.json b/node_modules/date-fns/esm/locale/sl/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sl/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sq/_lib/formatDistance/index.js new file mode 100644 index 00000000..e421b33d --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'më pak se një sekondë', + other: 'më pak se {{count}} sekonda' + }, + xSeconds: { + one: '1 sekondë', + other: '{{count}} sekonda' + }, + halfAMinute: 'gjysëm minuti', + lessThanXMinutes: { + one: 'më pak se një minute', + other: 'më pak se {{count}} minuta' + }, + xMinutes: { + one: '1 minutë', + other: '{{count}} minuta' + }, + aboutXHours: { + one: 'rreth 1 orë', + other: 'rreth {{count}} orë' + }, + xHours: { + one: '1 orë', + other: '{{count}} orë' + }, + xDays: { + one: '1 ditë', + other: '{{count}} ditë' + }, + aboutXWeeks: { + one: 'rreth 1 javë', + other: 'rreth {{count}} javë' + }, + xWeeks: { + one: '1 javë', + other: '{{count}} javë' + }, + aboutXMonths: { + one: 'rreth 1 muaj', + other: 'rreth {{count}} muaj' + }, + xMonths: { + one: '1 muaj', + other: '{{count}} muaj' + }, + aboutXYears: { + one: 'rreth 1 vit', + other: 'rreth {{count}} vite' + }, + xYears: { + one: '1 vit', + other: '{{count}} vite' + }, + overXYears: { + one: 'mbi 1 vit', + other: 'mbi {{count}} vite' + }, + almostXYears: { + one: 'pothuajse 1 vit', + other: 'pothuajse {{count}} vite' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'në ' + result; + } else { + return result + ' më parë'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sq/_lib/formatLong/index.js new file mode 100644 index 00000000..96c238fd --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sq/_lib/formatRelative/index.js new file mode 100644 index 00000000..f2abda76 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sq/_lib/localize/index.js new file mode 100644 index 00000000..13714629 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['P', 'M'], + abbreviated: ['PK', 'MK'], + wide: ['Para Krishtit', 'Mbas Krishtit'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['4-mujori I', '4-mujori II', '4-mujori III', '4-mujori IV'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'S', 'M', 'P', 'M', 'Q', 'K', 'G', 'S', 'T', 'N', 'D'], + abbreviated: ['Jan', 'Shk', 'Mar', 'Pri', 'Maj', 'Qer', 'Kor', 'Gus', 'Sht', 'Tet', 'Nën', 'Dhj'], + wide: ['Janar', 'Shkurt', 'Mars', 'Prill', 'Maj', 'Qershor', 'Korrik', 'Gusht', 'Shtator', 'Tetor', 'Nëntor', 'Dhjetor'] +}; +var dayValues = { + narrow: ['D', 'H', 'M', 'M', 'E', 'P', 'S'], + short: ['Di', 'Hë', 'Ma', 'Më', 'En', 'Pr', 'Sh'], + abbreviated: ['Die', 'Hën', 'Mar', 'Mër', 'Enj', 'Pre', 'Sht'], + wide: ['Dielë', 'Hënë', 'Martë', 'Mërkurë', 'Enjte', 'Premte', 'Shtunë'] +}; +var dayPeriodValues = { + narrow: { + am: 'p', + pm: 'm', + midnight: 'm', + noon: 'd', + morning: 'mëngjes', + afternoon: 'dite', + evening: 'mbrëmje', + night: 'natë' + }, + abbreviated: { + am: 'PD', + pm: 'MD', + midnight: 'mesnëtë', + noon: 'drek', + morning: 'mëngjes', + afternoon: 'mbasdite', + evening: 'mbrëmje', + night: 'natë' + }, + wide: { + am: 'p.d.', + pm: 'm.d.', + midnight: 'mesnëtë', + noon: 'drek', + morning: 'mëngjes', + afternoon: 'mbasdite', + evening: 'mbrëmje', + night: 'natë' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'p', + pm: 'm', + midnight: 'm', + noon: 'd', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + }, + abbreviated: { + am: 'PD', + pm: 'MD', + midnight: 'mesnatë', + noon: 'drek', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + }, + wide: { + am: 'p.d.', + pm: 'm.d.', + midnight: 'mesnatë', + noon: 'drek', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === 'hour') return String(number); + if (number === 1) return number + '-rë'; + if (number === 4) return number + 't'; + return number + '-të'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/_lib/match/index.js b/node_modules/date-fns/esm/locale/sq/_lib/match/index.js new file mode 100644 index 00000000..e9887ccc --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-rë|-të|t|)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(p|m)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^s/i, /^m/i, /^p/i, /^m/i, /^q/i, /^k/i, /^g/i, /^s/i, /^t/i, /^n/i, /^d/i], + any: [/^ja/i, /^shk/i, /^mar/i, /^pri/i, /^maj/i, /^qer/i, /^kor/i, /^gu/i, /^sht/i, /^tet/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/index.d.ts b/node_modules/date-fns/esm/locale/sq/index.d.ts new file mode 100644 index 00000000..d361e22e --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sq } from 'date-fns/locale' +export default sq diff --git a/node_modules/date-fns/esm/locale/sq/index.js b/node_modules/date-fns/esm/locale/sq/index.js new file mode 100644 index 00000000..9714deef --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine]{@link https://github.com/arditdine} + */ + +var locale = { + code: 'sq', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sq/index.js.flow b/node_modules/date-fns/esm/locale/sq/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sq/package.json b/node_modules/date-fns/esm/locale/sq/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sq/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatDistance/index.js new file mode 100644 index 00000000..c8a6d46e --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatDistance/index.js @@ -0,0 +1,175 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 nedelju', + withPrepositionAgo: 'oko 1 nedelju', + withPrepositionIn: 'oko 1 nedelju' + }, + dual: 'oko {{count}} nedelje', + other: 'oko {{count}} nedelje' + }, + xWeeks: { + one: { + standalone: '1 nedelju', + withPrepositionAgo: '1 nedelju', + withPrepositionIn: '1 nedelju' + }, + dual: '{{count}} nedelje', + other: '{{count}} nedelje' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mesec', + withPrepositionAgo: 'oko 1 mesec', + withPrepositionIn: 'oko 1 mesec' + }, + dual: 'oko {{count}} meseca', + other: 'oko {{count}} meseci' + }, + xMonths: { + one: { + standalone: '1 mesec', + withPrepositionAgo: '1 mesec', + withPrepositionIn: '1 mesec' + }, + dual: '{{count}} meseca', + other: '{{count}} meseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'pre ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatLong/index.js new file mode 100644 index 00000000..16ee53dd --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatRelative/index.js new file mode 100644 index 00000000..6b05409c --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/formatRelative/index.js @@ -0,0 +1,48 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošle nedelje u' p"; + + case 3: + return "'prošle srede u' p"; + + case 6: + return "'prošle subote u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'sledeće nedelje u' p"; + + case 3: + return "'sledeću sredu u' p"; + + case 6: + return "'sledeću subotu u' p"; + + default: + return "'sledeći' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sr-Latn/_lib/localize/index.js new file mode 100644 index 00000000..3042ba68 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Pre Hrista', 'Posle Hrista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + wide: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'posle podne', + evening: 'uveče', + night: 'noću' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'posle podne', + evening: 'uveče', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/_lib/match/index.js b/node_modules/date-fns/esm/locale/sr-Latn/_lib/match/index.js new file mode 100644 index 00000000..0e8e1d45 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/index.d.ts b/node_modules/date-fns/esm/locale/sr-Latn/index.d.ts new file mode 100644 index 00000000..f6313cc9 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { srLatn } from 'date-fns/locale' +export default srLatn diff --git a/node_modules/date-fns/esm/locale/sr-Latn/index.js b/node_modules/date-fns/esm/locale/sr-Latn/index.js new file mode 100644 index 00000000..44882e64 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje]{@link https://github.com/rogyvoje} + */ + +var locale = { + code: 'sr-Latn', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr-Latn/index.js.flow b/node_modules/date-fns/esm/locale/sr-Latn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sr-Latn/package.json b/node_modules/date-fns/esm/locale/sr-Latn/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr-Latn/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sr/_lib/formatDistance/index.js new file mode 100644 index 00000000..0eda5088 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/formatDistance/index.js @@ -0,0 +1,175 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'мање од 1 секунде', + withPrepositionAgo: 'мање од 1 секунде', + withPrepositionIn: 'мање од 1 секунду' + }, + dual: 'мање од {{count}} секунде', + other: 'мање од {{count}} секунди' + }, + xSeconds: { + one: { + standalone: '1 секунда', + withPrepositionAgo: '1 секунде', + withPrepositionIn: '1 секунду' + }, + dual: '{{count}} секунде', + other: '{{count}} секунди' + }, + halfAMinute: 'пола минуте', + lessThanXMinutes: { + one: { + standalone: 'мање од 1 минуте', + withPrepositionAgo: 'мање од 1 минуте', + withPrepositionIn: 'мање од 1 минуту' + }, + dual: 'мање од {{count}} минуте', + other: 'мање од {{count}} минута' + }, + xMinutes: { + one: { + standalone: '1 минута', + withPrepositionAgo: '1 минуте', + withPrepositionIn: '1 минуту' + }, + dual: '{{count}} минуте', + other: '{{count}} минута' + }, + aboutXHours: { + one: { + standalone: 'око 1 сат', + withPrepositionAgo: 'око 1 сат', + withPrepositionIn: 'око 1 сат' + }, + dual: 'око {{count}} сата', + other: 'око {{count}} сати' + }, + xHours: { + one: { + standalone: '1 сат', + withPrepositionAgo: '1 сат', + withPrepositionIn: '1 сат' + }, + dual: '{{count}} сата', + other: '{{count}} сати' + }, + xDays: { + one: { + standalone: '1 дан', + withPrepositionAgo: '1 дан', + withPrepositionIn: '1 дан' + }, + dual: '{{count}} дана', + other: '{{count}} дана' + }, + aboutXWeeks: { + one: { + standalone: 'око 1 недељу', + withPrepositionAgo: 'око 1 недељу', + withPrepositionIn: 'око 1 недељу' + }, + dual: 'око {{count}} недеље', + other: 'око {{count}} недеље' + }, + xWeeks: { + one: { + standalone: '1 недељу', + withPrepositionAgo: '1 недељу', + withPrepositionIn: '1 недељу' + }, + dual: '{{count}} недеље', + other: '{{count}} недеље' + }, + aboutXMonths: { + one: { + standalone: 'око 1 месец', + withPrepositionAgo: 'око 1 месец', + withPrepositionIn: 'око 1 месец' + }, + dual: 'око {{count}} месеца', + other: 'око {{count}} месеци' + }, + xMonths: { + one: { + standalone: '1 месец', + withPrepositionAgo: '1 месец', + withPrepositionIn: '1 месец' + }, + dual: '{{count}} месеца', + other: '{{count}} месеци' + }, + aboutXYears: { + one: { + standalone: 'око 1 годину', + withPrepositionAgo: 'око 1 годину', + withPrepositionIn: 'око 1 годину' + }, + dual: 'око {{count}} године', + other: 'око {{count}} година' + }, + xYears: { + one: { + standalone: '1 година', + withPrepositionAgo: '1 године', + withPrepositionIn: '1 годину' + }, + dual: '{{count}} године', + other: '{{count}} година' + }, + overXYears: { + one: { + standalone: 'преко 1 годину', + withPrepositionAgo: 'преко 1 годину', + withPrepositionIn: 'преко 1 годину' + }, + dual: 'преко {{count}} године', + other: 'преко {{count}} година' + }, + almostXYears: { + one: { + standalone: 'готово 1 годину', + withPrepositionAgo: 'готово 1 годину', + withPrepositionIn: 'готово 1 годину' + }, + dual: 'готово {{count}} године', + other: 'готово {{count}} година' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за ' + result; + } else { + return 'пре ' + result; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sr/_lib/formatLong/index.js new file mode 100644 index 00000000..e7586d83 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'у' {{time}}", + long: "{{date}} 'у' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sr/_lib/formatRelative/index.js new file mode 100644 index 00000000..92b12e1f --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/formatRelative/index.js @@ -0,0 +1,52 @@ +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + + case 3: + return "'прошле среде у' p"; + + case 6: + return "'прошле суботе у' p"; + + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + + case 3: + return "'следећу среду у' p"; + + case 6: + return "'следећу суботу у' p"; + + default: + return "'следећи' EEEE 'у' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sr/_lib/localize/index.js new file mode 100644 index 00000000..8b35b1e2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['пр.н.е.', 'АД'], + abbreviated: ['пр. Хр.', 'по. Хр.'], + wide: ['Пре Христа', 'После Христа'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. кв.', '2. кв.', '3. кв.', '4. кв.'], + wide: ['1. квартал', '2. квартал', '3. квартал', '4. квартал'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['јан', 'феб', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'нов', 'дец'], + wide: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['јан', 'феб', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'нов', 'дец'], + wide: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'] +}; +var dayValues = { + narrow: ['Н', 'П', 'У', 'С', 'Ч', 'П', 'С'], + short: ['нед', 'пон', 'уто', 'сре', 'чет', 'пет', 'суб'], + abbreviated: ['нед', 'пон', 'уто', 'сре', 'чет', 'пет', 'суб'], + wide: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'АМ', + pm: 'ПМ', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + abbreviated: { + am: 'АМ', + pm: 'ПМ', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'после подне', + evening: 'увече', + night: 'ноћу' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'после подне', + evening: 'увече', + night: 'ноћу' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/_lib/match/index.js b/node_modules/date-fns/esm/locale/sr/_lib/match/index.js new file mode 100644 index 00000000..d4733126 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(пр\.н\.е\.|АД)/i, + abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i +}; +var parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ја/i, /^ф/i, /^мар/i, /^ап/i, /^мај/i, /^јун/i, /^јул/i, /^авг/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[пусчн]/i, + short: /^(нед|пон|уто|сре|чет|пет|суб)/i, + abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i, + wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i +}; +var parseDayPatterns = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i] +}; +var matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/index.d.ts b/node_modules/date-fns/esm/locale/sr/index.d.ts new file mode 100644 index 00000000..aaede59e --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sr } from 'date-fns/locale' +export default sr diff --git a/node_modules/date-fns/esm/locale/sr/index.js b/node_modules/date-fns/esm/locale/sr/index.js new file mode 100644 index 00000000..18df11f8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje]{@link https://github.com/rogyvoje} + */ + +var locale = { + code: 'sr', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sr/index.js.flow b/node_modules/date-fns/esm/locale/sr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sr/package.json b/node_modules/date-fns/esm/locale/sr/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sr/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/sv/_lib/formatDistance/index.js new file mode 100644 index 00000000..87ea49e3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/formatDistance/index.js @@ -0,0 +1,93 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre än en sekund', + other: 'mindre än {{count}} sekunder' + }, + xSeconds: { + one: 'en sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'en halv minut', + lessThanXMinutes: { + one: 'mindre än en minut', + other: 'mindre än {{count}} minuter' + }, + xMinutes: { + one: 'en minut', + other: '{{count}} minuter' + }, + aboutXHours: { + one: 'ungefär en timme', + other: 'ungefär {{count}} timmar' + }, + xHours: { + one: 'en timme', + other: '{{count}} timmar' + }, + xDays: { + one: 'en dag', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'ungefär en vecka', + other: 'ungefär {{count}} vecka' + }, + xWeeks: { + one: 'en vecka', + other: '{{count}} vecka' + }, + aboutXMonths: { + one: 'ungefär en månad', + other: 'ungefär {{count}} månader' + }, + xMonths: { + one: 'en månad', + other: '{{count}} månader' + }, + aboutXYears: { + one: 'ungefär ett år', + other: 'ungefär {{count}} år' + }, + xYears: { + one: 'ett år', + other: '{{count}} år' + }, + overXYears: { + one: 'över ett år', + other: 'över {{count}} år' + }, + almostXYears: { + one: 'nästan ett år', + other: 'nästan {{count}} år' + } +}; +var wordMapping = ['noll', 'en', 'två', 'tre', 'fyra', 'fem', 'sex', 'sju', 'åtta', 'nio', 'tio', 'elva', 'tolv']; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + if (options && options.onlyNumeric) { + result = tokenValue.other.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', count < 13 ? wordMapping[count] : String(count)); + } + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sedan'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/sv/_lib/formatLong/index.js new file mode 100644 index 00000000..17aca45a --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'y-MM-dd' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/sv/_lib/formatRelative/index.js new file mode 100644 index 00000000..d30bd659 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/_lib/localize/index.js b/node_modules/date-fns/esm/locale/sv/_lib/localize/index.js new file mode 100644 index 00000000..8580a830 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/localize/index.js @@ -0,0 +1,132 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['före Kristus', 'efter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1:a kvartalet', '2:a kvartalet', '3:e kvartalet', '4:e kvartalet'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'maj', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'], + abbreviated: ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'], + wide: ['söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'] +}; // https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 + +var dayPeriodValues = { + narrow: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'morg.', + afternoon: 'efterm.', + evening: 'kväll', + night: 'natt' + }, + abbreviated: { + am: 'f.m.', + pm: 'e.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'morgon', + afternoon: 'efterm.', + evening: 'kväll', + night: 'natt' + }, + wide: { + am: 'förmiddag', + pm: 'eftermiddag', + midnight: 'midnatt', + noon: 'middag', + morning: 'morgon', + afternoon: 'eftermiddag', + evening: 'kväll', + night: 'natt' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på efterm.', + evening: 'på kvällen', + night: 'på natten' + }, + abbreviated: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på efterm.', + evening: 'på kvällen', + night: 'på natten' + }, + wide: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgonen', + afternoon: 'på eftermiddagen', + evening: 'på kvällen', + night: 'på natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ':a'; + } + } + + return number + ':e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/_lib/match/index.js b/node_modules/date-fns/esm/locale/sv/_lib/match/index.js new file mode 100644 index 00000000..5b63e7c5 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^[ev]/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/index.d.ts b/node_modules/date-fns/esm/locale/sv/index.d.ts new file mode 100644 index 00000000..2a7405bf --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sv } from 'date-fns/locale' +export default sv diff --git a/node_modules/date-fns/esm/locale/sv/index.js b/node_modules/date-fns/esm/locale/sv/index.js new file mode 100644 index 00000000..7056d0a1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen]{@link https://github.com/ejulen} + * @author Alexander Nanberg [@alexandernanberg]{@link https://github.com/alexandernanberg} + * @author Henrik Andersson [@limelights]{@link https://github.com/limelights} + */ + +var locale = { + code: 'sv', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/sv/index.js.flow b/node_modules/date-fns/esm/locale/sv/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/sv/package.json b/node_modules/date-fns/esm/locale/sv/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/sv/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ta/_lib/formatDistance/index.js new file mode 100644 index 00000000..4fbd55df --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatDistance/index.js @@ -0,0 +1,205 @@ +function isPluralType(val) { + return val.one !== undefined; +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: 'ஒரு வினாடிக்கு குறைவாக', + in: 'ஒரு வினாடிக்குள்', + ago: 'ஒரு வினாடிக்கு முன்பு' + }, + other: { + default: '{{count}} வினாடிகளுக்கு குறைவாக', + in: '{{count}} வினாடிகளுக்குள்', + ago: '{{count}} வினாடிகளுக்கு முன்பு' + } + }, + xSeconds: { + one: { + default: '1 வினாடி', + in: '1 வினாடியில்', + ago: '1 வினாடி முன்பு' + }, + other: { + default: '{{count}} விநாடிகள்', + in: '{{count}} வினாடிகளில்', + ago: '{{count}} விநாடிகளுக்கு முன்பு' + } + }, + halfAMinute: { + default: 'அரை நிமிடம்', + in: 'அரை நிமிடத்தில்', + ago: 'அரை நிமிடம் முன்பு' + }, + lessThanXMinutes: { + one: { + default: 'ஒரு நிமிடத்திற்கும் குறைவாக', + in: 'ஒரு நிமிடத்திற்குள்', + ago: 'ஒரு நிமிடத்திற்கு முன்பு' + }, + other: { + default: '{{count}} நிமிடங்களுக்கும் குறைவாக', + in: '{{count}} நிமிடங்களுக்குள்', + ago: '{{count}} நிமிடங்களுக்கு முன்பு' + } + }, + xMinutes: { + one: { + default: '1 நிமிடம்', + in: '1 நிமிடத்தில்', + ago: '1 நிமிடம் முன்பு' + }, + other: { + default: '{{count}} நிமிடங்கள்', + in: '{{count}} நிமிடங்களில்', + ago: '{{count}} நிமிடங்களுக்கு முன்பு' + } + }, + aboutXHours: { + one: { + default: 'சுமார் 1 மணி நேரம்', + in: 'சுமார் 1 மணி நேரத்தில்', + ago: 'சுமார் 1 மணி நேரத்திற்கு முன்பு' + }, + other: { + default: 'சுமார் {{count}} மணி நேரம்', + in: 'சுமார் {{count}} மணி நேரத்திற்கு முன்பு', + ago: 'சுமார் {{count}} மணி நேரத்தில்' + } + }, + xHours: { + one: { + default: '1 மணி நேரம்', + in: '1 மணி நேரத்தில்', + ago: '1 மணி நேரத்திற்கு முன்பு' + }, + other: { + default: '{{count}} மணி நேரம்', + in: '{{count}} மணி நேரத்தில்', + ago: '{{count}} மணி நேரத்திற்கு முன்பு' + } + }, + xDays: { + one: { + default: '1 நாள்', + in: '1 நாளில்', + ago: '1 நாள் முன்பு' + }, + other: { + default: '{{count}} நாட்கள்', + in: '{{count}} நாட்களில்', + ago: '{{count}} நாட்களுக்கு முன்பு' + } + }, + aboutXWeeks: { + one: { + default: 'சுமார் 1 வாரம்', + in: 'சுமார் 1 வாரத்தில்', + ago: 'சுமார் 1 வாரம் முன்பு' + }, + other: { + default: 'சுமார் {{count}} வாரங்கள்', + in: 'சுமார் {{count}} வாரங்களில்', + ago: 'சுமார் {{count}} வாரங்களுக்கு முன்பு' + } + }, + xWeeks: { + one: { + default: '1 வாரம்', + in: '1 வாரத்தில்', + ago: '1 வாரம் முன்பு' + }, + other: { + default: '{{count}} வாரங்கள்', + in: '{{count}} வாரங்களில்', + ago: '{{count}} வாரங்களுக்கு முன்பு' + } + }, + aboutXMonths: { + one: { + default: 'சுமார் 1 மாதம்', + in: 'சுமார் 1 மாதத்தில்', + ago: 'சுமார் 1 மாதத்திற்கு முன்பு' + }, + other: { + default: 'சுமார் {{count}} மாதங்கள்', + in: 'சுமார் {{count}} மாதங்களில்', + ago: 'சுமார் {{count}} மாதங்களுக்கு முன்பு' + } + }, + xMonths: { + one: { + default: '1 மாதம்', + in: '1 மாதத்தில்', + ago: '1 மாதம் முன்பு' + }, + other: { + default: '{{count}} மாதங்கள்', + in: '{{count}} மாதங்களில்', + ago: '{{count}} மாதங்களுக்கு முன்பு' + } + }, + aboutXYears: { + one: { + default: 'சுமார் 1 வருடம்', + in: 'சுமார் 1 ஆண்டில்', + ago: 'சுமார் 1 வருடம் முன்பு' + }, + other: { + default: 'சுமார் {{count}} ஆண்டுகள்', + in: 'சுமார் {{count}} ஆண்டுகளில்', + ago: 'சுமார் {{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + xYears: { + one: { + default: '1 வருடம்', + in: '1 ஆண்டில்', + ago: '1 வருடம் முன்பு' + }, + other: { + default: '{{count}} ஆண்டுகள்', + in: '{{count}} ஆண்டுகளில்', + ago: '{{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + overXYears: { + one: { + default: '1 வருடத்திற்கு மேல்', + in: '1 வருடத்திற்கும் மேலாக', + ago: '1 வருடம் முன்பு' + }, + other: { + default: '{{count}} ஆண்டுகளுக்கும் மேலாக', + in: '{{count}} ஆண்டுகளில்', + ago: '{{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + almostXYears: { + one: { + default: 'கிட்டத்தட்ட 1 வருடம்', + in: 'கிட்டத்தட்ட 1 ஆண்டில்', + ago: 'கிட்டத்தட்ட 1 வருடம் முன்பு' + }, + other: { + default: 'கிட்டத்தட்ட {{count}} ஆண்டுகள்', + in: 'கிட்டத்தட்ட {{count}} ஆண்டுகளில்', + ago: 'கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var tense = options !== null && options !== void 0 && options.addSuffix ? options.comparison && options.comparison > 0 ? 'in' : 'ago' : 'default'; + var tokenValue = formatDistanceLocale[token]; + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace('{{count}}', String(count)); + } +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ta/_lib/formatLong/index.js new file mode 100644 index 00000000..03d8b4fa --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatLong/index.js @@ -0,0 +1,37 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html +// CLDR #1846 - #1849 + +var dateFormats = { + full: 'EEEE, d MMMM, y', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'd/M/yy' +}; // CLDR #1850 - #1853 + +var timeFormats = { + full: 'a h:mm:ss zzzz', + long: 'a h:mm:ss z', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ta/_lib/formatRelative/index.js new file mode 100644 index 00000000..3df3d771 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ta/_lib/localize/index.js new file mode 100644 index 00000000..0a24f80d --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/localize/index.js @@ -0,0 +1,154 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html + +var eraValues = { + narrow: ['கி.மு.', 'கி.பி.'], + abbreviated: ['கி.மு.', 'கி.பி.'], + // CLDR #1624, #1626 + wide: ['கிறிஸ்துவுக்கு முன்', 'அன்னோ டோமினி'] // CLDR #1620, #1622 + +}; +var quarterValues = { + // CLDR #1644 - #1647 + narrow: ['1', '2', '3', '4'], + // CLDR #1636 - #1639 + abbreviated: ['காலா.1', 'காலா.2', 'காலா.3', 'காலா.4'], + // CLDR #1628 - #1631 + wide: ['ஒன்றாம் காலாண்டு', 'இரண்டாம் காலாண்டு', 'மூன்றாம் காலாண்டு', 'நான்காம் காலாண்டு'] +}; +var monthValues = { + // CLDR #700 - #711 + narrow: ['ஜ', 'பி', 'மா', 'ஏ', 'மே', 'ஜூ', 'ஜூ', 'ஆ', 'செ', 'அ', 'ந', 'டி'], + // CLDR #1676 - #1687 + abbreviated: ['ஜன.', 'பிப்.', 'மார்.', 'ஏப்.', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக.', 'செப்.', 'அக்.', 'நவ.', 'டிச.'], + // CLDR #1652 - #1663 + wide: ['ஜனவரி', // January + 'பிப்ரவரி', // February + 'மார்ச்', // March + 'ஏப்ரல்', // April + 'மே', // May + 'ஜூன்', // June + 'ஜூலை', // July + 'ஆகஸ்ட்', // August + 'செப்டம்பர்', // September + 'அக்டோபர்', // October + 'நவம்பர்', // November + 'டிசம்பர்' // December + ] +}; +var dayValues = { + // CLDR #1766 - #1772 + narrow: ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], + // CLDR #1752 - #1758 + short: ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], + // CLDR #1738 - #1744 + abbreviated: ['ஞாயி.', 'திங்.', 'செவ்.', 'புத.', 'வியா.', 'வெள்.', 'சனி'], + // CLDR #1724 - #1730 + wide: ['ஞாயிறு', // Sunday + 'திங்கள்', // Monday + 'செவ்வாய்', // Tuesday + 'புதன்', // Wednesday + 'வியாழன்', // Thursday + 'வெள்ளி', // Friday + 'சனி' // Saturday + ] +}; // CLDR #1780 - #1845 + +var dayPeriodValues = { + narrow: { + am: 'மு.ப', + pm: 'பி.ப', + midnight: 'நள்.', + noon: 'நண்.', + morning: 'கா.', + afternoon: 'மதி.', + evening: 'மா.', + night: 'இர.' + }, + abbreviated: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + }, + wide: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + } +}; // CLDR #1780 - #1845 + +var formattingDayPeriodValues = { + narrow: { + am: 'மு.ப', + pm: 'பி.ப', + midnight: 'நள்.', + noon: 'நண்.', + morning: 'கா.', + afternoon: 'மதி.', + evening: 'மா.', + night: 'இர.' + }, + abbreviated: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + }, + wide: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/_lib/match/index.js b/node_modules/date-fns/esm/locale/ta/_lib/match/index.js new file mode 100644 index 00000000..93481f31 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(வது)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(கி.மு.|கி.பி.)/i, + abbreviated: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i +}; +var parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/(1|காலா.1|ஒன்றாம்)/i, /(2|காலா.2|இரண்டாம்)/i, /(3|காலா.3|மூன்றாம்)/i, /(4|காலா.4|நான்காம்)/i] +}; +var matchMonthPatterns = { + narrow: /^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, + abbreviated: /^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, + wide: /^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i +}; +var parseMonthPatterns = { + narrow: [/^ஜ$/i, /^பி/i, /^மா/i, /^ஏ/i, /^மே/i, /^ஜூ/i, /^ஜூ/i, /^ஆ/i, /^செ/i, /^அ/i, /^ந/i, /^டி/i], + any: [/^ஜன/i, /^பி/i, /^மா/i, /^ஏ/i, /^மே/i, /^ஜூன்/i, /^ஜூலை/i, /^ஆ/i, /^செ/i, /^அ/i, /^ந/i, /^டி/i] +}; +var matchDayPatterns = { + narrow: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + short: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + abbreviated: /^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, + wide: /^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i +}; +var parseDayPatterns = { + narrow: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], + any: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, + any: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^மு/i, + pm: /^பி/i, + midnight: /^நள்/i, + noon: /^நண்/i, + morning: /காலை/i, + afternoon: /மதியம்/i, + evening: /மாலை/i, + night: /இரவு/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/index.d.ts b/node_modules/date-fns/esm/locale/ta/index.d.ts new file mode 100644 index 00000000..fb9a06a7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ta } from 'date-fns/locale' +export default ta diff --git a/node_modules/date-fns/esm/locale/ta/index.js b/node_modules/date-fns/esm/locale/ta/index.js new file mode 100644 index 00000000..0453f1f1 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s]{@link https://github.com/sibiraj-s} + */ + +var locale = { + code: 'ta', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ta/index.js.flow b/node_modules/date-fns/esm/locale/ta/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ta/package.json b/node_modules/date-fns/esm/locale/ta/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ta/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/te/_lib/formatDistance/index.js new file mode 100644 index 00000000..321e8570 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/formatDistance/index.js @@ -0,0 +1,189 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'సెకను కన్నా తక్కువ', + other: '{{count}} సెకన్ల కన్నా తక్కువ' + }, + withPreposition: { + one: 'సెకను', + other: '{{count}} సెకన్ల' + } + }, + xSeconds: { + standalone: { + one: 'ఒక సెకను', + // CLDR #1314 + other: '{{count}} సెకన్ల' + }, + withPreposition: { + one: 'ఒక సెకను', + other: '{{count}} సెకన్ల' + } + }, + halfAMinute: { + standalone: 'అర నిమిషం', + withPreposition: 'అర నిమిషం' + }, + lessThanXMinutes: { + standalone: { + one: 'ఒక నిమిషం కన్నా తక్కువ', + other: '{{count}} నిమిషాల కన్నా తక్కువ' + }, + withPreposition: { + one: 'ఒక నిమిషం', + other: '{{count}} నిమిషాల' + } + }, + xMinutes: { + standalone: { + one: 'ఒక నిమిషం', + // CLDR #1311 + other: '{{count}} నిమిషాలు' + }, + withPreposition: { + one: 'ఒక నిమిషం', + // CLDR #1311 + other: '{{count}} నిమిషాల' + } + }, + aboutXHours: { + standalone: { + one: 'సుమారు ఒక గంట', + other: 'సుమారు {{count}} గంటలు' + }, + withPreposition: { + one: 'సుమారు ఒక గంట', + other: 'సుమారు {{count}} గంటల' + } + }, + xHours: { + standalone: { + one: 'ఒక గంట', + // CLDR #1308 + other: '{{count}} గంటలు' + }, + withPreposition: { + one: 'ఒక గంట', + other: '{{count}} గంటల' + } + }, + xDays: { + standalone: { + one: 'ఒక రోజు', + // CLDR #1292 + other: '{{count}} రోజులు' + }, + withPreposition: { + one: 'ఒక రోజు', + other: '{{count}} రోజుల' + } + }, + aboutXWeeks: { + standalone: { + one: 'సుమారు ఒక వారం', + other: 'సుమారు {{count}} వారాలు' + }, + withPreposition: { + one: 'సుమారు ఒక వారం', + other: 'సుమారు {{count}} వారాలల' + } + }, + xWeeks: { + standalone: { + one: 'ఒక వారం', + other: '{{count}} వారాలు' + }, + withPreposition: { + one: 'ఒక వారం', + other: '{{count}} వారాలల' + } + }, + aboutXMonths: { + standalone: { + one: 'సుమారు ఒక నెల', + other: 'సుమారు {{count}} నెలలు' + }, + withPreposition: { + one: 'సుమారు ఒక నెల', + other: 'సుమారు {{count}} నెలల' + } + }, + xMonths: { + standalone: { + one: 'ఒక నెల', + // CLDR #1281 + other: '{{count}} నెలలు' + }, + withPreposition: { + one: 'ఒక నెల', + other: '{{count}} నెలల' + } + }, + aboutXYears: { + standalone: { + one: 'సుమారు ఒక సంవత్సరం', + other: 'సుమారు {{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'సుమారు ఒక సంవత్సరం', + other: 'సుమారు {{count}} సంవత్సరాల' + } + }, + xYears: { + standalone: { + one: 'ఒక సంవత్సరం', + // CLDR #1275 + other: '{{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'ఒక సంవత్సరం', + other: '{{count}} సంవత్సరాల' + } + }, + overXYears: { + standalone: { + one: 'ఒక సంవత్సరం పైగా', + other: '{{count}} సంవత్సరాలకు పైగా' + }, + withPreposition: { + one: 'ఒక సంవత్సరం', + other: '{{count}} సంవత్సరాల' + } + }, + almostXYears: { + standalone: { + one: 'దాదాపు ఒక సంవత్సరం', + other: 'దాదాపు {{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'దాదాపు ఒక సంవత్సరం', + other: 'దాదాపు {{count}} సంవత్సరాల' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'లో'; + } else { + return result + ' క్రితం'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/te/_lib/formatLong/index.js new file mode 100644 index 00000000..363b4c0c --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/formatLong/index.js @@ -0,0 +1,38 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; // Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// CLDR #1807 - #1811 + +var dateFormats = { + full: 'd, MMMM y, EEEE', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'dd-MM-yy' +}; // CLDR #1807 - #1811 + +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; // CLDR #1815 - #1818 + +var dateTimeFormats = { + full: "{{date}} {{time}}'కి'", + long: "{{date}} {{time}}'కి'", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/te/_lib/formatRelative/index.js new file mode 100644 index 00000000..3bec3b31 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/formatRelative/index.js @@ -0,0 +1,20 @@ +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +var formatRelativeLocale = { + lastWeek: "'గత' eeee p", + // CLDR #1384 + yesterday: "'నిన్న' p", + // CLDR #1393 + today: "'ఈ రోజు' p", + // CLDR #1394 + tomorrow: "'రేపు' p", + // CLDR #1395 + nextWeek: "'తదుపరి' eeee p", + // CLDR #1386 + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/_lib/localize/index.js b/node_modules/date-fns/esm/locale/te/_lib/localize/index.js new file mode 100644 index 00000000..9f1ba676 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/localize/index.js @@ -0,0 +1,128 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ +// CLDR #1605 - #1608 + +var eraValues = { + narrow: ['క్రీ.పూ.', 'క్రీ.శ.'], + abbreviated: ['క్రీ.పూ.', 'క్రీ.శ.'], + wide: ['క్రీస్తు పూర్వం', 'క్రీస్తుశకం'] +}; // CLDR #1613 - #1628 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['త్రై1', 'త్రై2', 'త్రై3', 'త్రై4'], + wide: ['1వ త్రైమాసికం', '2వ త్రైమాసికం', '3వ త్రైమాసికం', '4వ త్రైమాసికం'] +}; // CLDR #1637 - #1708 + +var monthValues = { + narrow: ['జ', 'ఫి', 'మా', 'ఏ', 'మే', 'జూ', 'జు', 'ఆ', 'సె', 'అ', 'న', 'డి'], + abbreviated: ['జన', 'ఫిబ్ర', 'మార్చి', 'ఏప్రి', 'మే', 'జూన్', 'జులై', 'ఆగ', 'సెప్టెం', 'అక్టో', 'నవం', 'డిసెం'], + wide: ['జనవరి', 'ఫిబ్రవరి', 'మార్చి', 'ఏప్రిల్', 'మే', 'జూన్', 'జులై', 'ఆగస్టు', 'సెప్టెంబర్', 'అక్టోబర్', 'నవంబర్', 'డిసెంబర్'] +}; // CLDR #1709 - #1764 + +var dayValues = { + narrow: ['ఆ', 'సో', 'మ', 'బు', 'గు', 'శు', 'శ'], + short: ['ఆది', 'సోమ', 'మంగళ', 'బుధ', 'గురు', 'శుక్ర', 'శని'], + abbreviated: ['ఆది', 'సోమ', 'మంగళ', 'బుధ', 'గురు', 'శుక్ర', 'శని'], + wide: ['ఆదివారం', 'సోమవారం', 'మంగళవారం', 'బుధవారం', 'గురువారం', 'శుక్రవారం', 'శనివారం'] +}; // CLDR #1767 - #1806 + +var dayPeriodValues = { + narrow: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + abbreviated: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + wide: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + abbreviated: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + wide: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'వ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/_lib/match/index.js b/node_modules/date-fns/esm/locale/te/_lib/match/index.js new file mode 100644 index 00000000..edee6bd4 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(వ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, + abbreviated: /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, + wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i +}; +var parseEraPatterns = { + any: [/^(పూ|శ)/i, /^సా/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^త్రై[1234]/i, + wide: /^[1234](వ)? త్రైమాసికం/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, + abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, + wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i +}; +var parseMonthPatterns = { + narrow: [/^జ/i, /^ఫి/i, /^మా/i, /^ఏ/i, /^మే/i, /^జూ/i, /^జు/i, /^ఆ/i, /^సె/i, /^అ/i, /^న/i, /^డి/i], + any: [/^జన/i, /^ఫి/i, /^మా/i, /^ఏ/i, /^మే/i, /^జూన్/i, /^జులై/i, /^ఆగ/i, /^సె/i, /^అ/i, /^న/i, /^డి/i] +}; +var matchDayPatterns = { + narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i, + short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i +}; +var parseDayPatterns = { + narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i], + any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, + any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^పూర్వాహ్నం/i, + pm: /^అపరాహ్నం/i, + midnight: /^అర్ధ/i, + noon: /^మిట్ట/i, + morning: /ఉదయం/i, + afternoon: /మధ్యాహ్నం/i, + evening: /సాయంత్రం/i, + night: /రాత్రి/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/index.d.ts b/node_modules/date-fns/esm/locale/te/index.d.ts new file mode 100644 index 00000000..2dab4a83 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { te } from 'date-fns/locale' +export default te diff --git a/node_modules/date-fns/esm/locale/te/index.js b/node_modules/date-fns/esm/locale/te/index.js new file mode 100644 index 00000000..7b2b8854 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum]{@link https://github.com/kranthilakum} + */ + +var locale = { + code: 'te', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/te/index.js.flow b/node_modules/date-fns/esm/locale/te/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/te/package.json b/node_modules/date-fns/esm/locale/te/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/te/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js new file mode 100644 index 00000000..e72d10e6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/formatDistance/index.js @@ -0,0 +1,92 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'น้อยกว่า 1 วินาที', + other: 'น้อยกว่า {{count}} วินาที' + }, + xSeconds: { + one: '1 วินาที', + other: '{{count}} วินาที' + }, + halfAMinute: 'ครึ่งนาที', + lessThanXMinutes: { + one: 'น้อยกว่า 1 นาที', + other: 'น้อยกว่า {{count}} นาที' + }, + xMinutes: { + one: '1 นาที', + other: '{{count}} นาที' + }, + aboutXHours: { + one: 'ประมาณ 1 ชั่วโมง', + other: 'ประมาณ {{count}} ชั่วโมง' + }, + xHours: { + one: '1 ชั่วโมง', + other: '{{count}} ชั่วโมง' + }, + xDays: { + one: '1 วัน', + other: '{{count}} วัน' + }, + aboutXWeeks: { + one: 'ประมาณ 1 สัปดาห์', + other: 'ประมาณ {{count}} สัปดาห์' + }, + xWeeks: { + one: '1 สัปดาห์', + other: '{{count}} สัปดาห์' + }, + aboutXMonths: { + one: 'ประมาณ 1 เดือน', + other: 'ประมาณ {{count}} เดือน' + }, + xMonths: { + one: '1 เดือน', + other: '{{count}} เดือน' + }, + aboutXYears: { + one: 'ประมาณ 1 ปี', + other: 'ประมาณ {{count}} ปี' + }, + xYears: { + one: '1 ปี', + other: '{{count}} ปี' + }, + overXYears: { + one: 'มากกว่า 1 ปี', + other: 'มากกว่า {{count}} ปี' + }, + almostXYears: { + one: 'เกือบ 1 ปี', + other: 'เกือบ {{count}} ปี' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (token === 'halfAMinute') { + return 'ใน' + result; + } else { + return 'ใน ' + result; + } + } else { + return result + 'ที่ผ่านมา'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js new file mode 100644 index 00000000..2fe62260 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'วันEEEEที่ do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'H:mm:ss น. zzzz', + long: 'H:mm:ss น. z', + medium: 'H:mm:ss น.', + short: 'H:mm น.' +}; +var dateTimeFormats = { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'medium' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js new file mode 100644 index 00000000..d997af10 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/_lib/localize/index.js b/node_modules/date-fns/esm/locale/th/_lib/localize/index.js new file mode 100644 index 00000000..b11fdfe3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/localize/index.js @@ -0,0 +1,120 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['B', 'คศ'], + abbreviated: ['BC', 'ค.ศ.'], + wide: ['ปีก่อนคริสตกาล', 'คริสต์ศักราช'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['ไตรมาสแรก', 'ไตรมาสที่สอง', 'ไตรมาสที่สาม', 'ไตรมาสที่สี่'] +}; +var dayValues = { + narrow: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + short: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + abbreviated: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + wide: ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์'] +}; +var monthValues = { + narrow: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'], + abbreviated: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'], + wide: ['มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'] +}; +var dayPeriodValues = { + narrow: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + }, + abbreviated: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + }, + wide: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + }, + abbreviated: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + }, + wide: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/_lib/match/index.js b/node_modules/date-fns/esm/locale/th/_lib/match/index.js new file mode 100644 index 00000000..f0f7c7e8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^\d+/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([bB]|[aA]|คศ)/i, + abbreviated: /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i +}; +var parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^ไตรมาส(ที่)? ?[1234]/i +}; +var parseQuarterPatterns = { + any: [/(1|แรก|หนึ่ง)/i, /(2|สอง)/i, /(3|สาม)/i, /(4|สี่)/i] +}; +var matchMonthPatterns = { + narrow: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i +}; +var parseMonthPatterns = { + wide: [/^มก/i, /^กุม/i, /^มี/i, /^เม/i, /^พฤษ/i, /^มิ/i, /^กรก/i, /^ส/i, /^กัน/i, /^ต/i, /^พฤศ/i, /^ธ/i], + any: [/^ม\.?ค\.?/i, /^ก\.?พ\.?/i, /^มี\.?ค\.?/i, /^เม\.?ย\.?/i, /^พ\.?ค\.?/i, /^มิ\.?ย\.?/i, /^ก\.?ค\.?/i, /^ส\.?ค\.?/i, /^ก\.?ย\.?/i, /^ต\.?ค\.?/i, /^พ\.?ย\.?/i, /^ธ\.?ค\.?/i] +}; +var matchDayPatterns = { + narrow: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + short: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + abbreviated: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + wide: /^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i +}; +var parseDayPatterns = { + wide: [/^อา/i, /^จั/i, /^อั/i, /^พุธ/i, /^พฤ/i, /^ศ/i, /^เส/i], + any: [/^อา/i, /^จ/i, /^อ/i, /^พ(?!ฤ)/i, /^พฤ/i, /^ศ/i, /^ส/i] +}; +var matchDayPeriodPatterns = { + any: /^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ก่อนเที่ยง/i, + pm: /^หลังเที่ยง/i, + midnight: /^เที่ยงคืน/i, + noon: /^เที่ยง/i, + morning: /เช้า/i, + afternoon: /บ่าย/i, + evening: /เย็น/i, + night: /กลางคืน/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/index.d.ts b/node_modules/date-fns/esm/locale/th/index.d.ts new file mode 100644 index 00000000..944dd874 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { th } from 'date-fns/locale' +export default th diff --git a/node_modules/date-fns/esm/locale/th/index.js b/node_modules/date-fns/esm/locale/th/index.js new file mode 100644 index 00000000..6585e5c6 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat]{@link https://github.com/athivvat} + * @author [@hawkup]{@link https://github.com/hawkup} + * @author Jirawat I. [@nodtem66]{@link https://github.com/nodtem66} + */ + +var locale = { + code: 'th', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/th/index.js.flow b/node_modules/date-fns/esm/locale/th/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/th/package.json b/node_modules/date-fns/esm/locale/th/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/th/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js new file mode 100644 index 00000000..ba4e989b --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'bir saniyeden az', + other: '{{count}} saniyeden az' + }, + xSeconds: { + one: '1 saniye', + other: '{{count}} saniye' + }, + halfAMinute: 'yarım dakika', + lessThanXMinutes: { + one: 'bir dakikadan az', + other: '{{count}} dakikadan az' + }, + xMinutes: { + one: '1 dakika', + other: '{{count}} dakika' + }, + aboutXHours: { + one: 'yaklaşık 1 saat', + other: 'yaklaşık {{count}} saat' + }, + xHours: { + one: '1 saat', + other: '{{count}} saat' + }, + xDays: { + one: '1 gün', + other: '{{count}} gün' + }, + aboutXWeeks: { + one: 'yaklaşık 1 hafta', + other: 'yaklaşık {{count}} hafta' + }, + xWeeks: { + one: '1 hafta', + other: '{{count}} hafta' + }, + aboutXMonths: { + one: 'yaklaşık 1 ay', + other: 'yaklaşık {{count}} ay' + }, + xMonths: { + one: '1 ay', + other: '{{count}} ay' + }, + aboutXYears: { + one: 'yaklaşık 1 yıl', + other: 'yaklaşık {{count}} yıl' + }, + xYears: { + one: '1 yıl', + other: '{{count}} yıl' + }, + overXYears: { + one: '1 yıldan fazla', + other: '{{count}} yıldan fazla' + }, + almostXYears: { + one: 'neredeyse 1 yıl', + other: 'neredeyse {{count}} yıl' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' önce'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js new file mode 100644 index 00000000..4f14c577 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'd MMMM y EEEE', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js new file mode 100644 index 00000000..bcff1bc2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js b/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js new file mode 100644 index 00000000..f02409dc --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/localize/index.js @@ -0,0 +1,121 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['MÖ', 'MS'], + abbreviated: ['MÖ', 'MS'], + wide: ['Milattan Önce', 'Milattan Sonra'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1Ç', '2Ç', '3Ç', '4Ç'], + wide: ['İlk çeyrek', 'İkinci Çeyrek', 'Üçüncü çeyrek', 'Son çeyrek'] +}; +var monthValues = { + narrow: ['O', 'Ş', 'M', 'N', 'M', 'H', 'T', 'A', 'E', 'E', 'K', 'A'], + abbreviated: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'], + wide: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'] +}; +var dayValues = { + narrow: ['P', 'P', 'S', 'Ç', 'P', 'C', 'C'], + short: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'], + abbreviated: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'], + wide: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'] +}; +var dayPeriodValues = { + narrow: { + am: 'öö', + pm: 'ös', + midnight: 'gy', + noon: 'ö', + morning: 'sa', + afternoon: 'ös', + evening: 'ak', + night: 'ge' + }, + abbreviated: { + am: 'ÖÖ', + pm: 'ÖS', + midnight: 'gece yarısı', + noon: 'öğle', + morning: 'sabah', + afternoon: 'öğleden sonra', + evening: 'akşam', + night: 'gece' + }, + wide: { + am: 'Ö.Ö.', + pm: 'Ö.S.', + midnight: 'gece yarısı', + noon: 'öğle', + morning: 'sabah', + afternoon: 'öğleden sonra', + evening: 'akşam', + night: 'gece' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'öö', + pm: 'ös', + midnight: 'gy', + noon: 'ö', + morning: 'sa', + afternoon: 'ös', + evening: 'ak', + night: 'ge' + }, + abbreviated: { + am: 'ÖÖ', + pm: 'ÖS', + midnight: 'gece yarısı', + noon: 'öğlen', + morning: 'sabahleyin', + afternoon: 'öğleden sonra', + evening: 'akşamleyin', + night: 'geceleyin' + }, + wide: { + am: 'ö.ö.', + pm: 'ö.s.', + midnight: 'gece yarısı', + noon: 'öğlen', + morning: 'sabahleyin', + afternoon: 'öğleden sonra', + evening: 'akşamleyin', + night: 'geceleyin' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/_lib/match/index.js b/node_modules/date-fns/esm/locale/tr/_lib/match/index.js new file mode 100644 index 00000000..7a2525bc --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/_lib/match/index.js @@ -0,0 +1,101 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i +}; +var parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [/^(i|İ)lk çeyrek/i, /(i|İ)kinci çeyrek/i, /üçüncü çeyrek/i, /son çeyrek/i] +}; +var matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i +}; +var parseMonthPatterns = { + narrow: [/^o/i, /^ş/i, /^m/i, /^n/i, /^m/i, /^h/i, /^t/i, /^a/i, /^e/i, /^e/i, /^k/i, /^a/i], + any: [/^o/i, /^ş/i, /^mar/i, /^n/i, /^may/i, /^h/i, /^t/i, /^ağ/i, /^ey/i, /^ek/i, /^k/i, /^ar/i] +}; +var matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i +}; +var parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [/^pazar(?!tesi)/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma(?!rtesi)/i, /^cumartesi/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/index.d.ts b/node_modules/date-fns/esm/locale/tr/index.d.ts new file mode 100644 index 00000000..d4c2e0ad --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { tr } from 'date-fns/locale' +export default tr diff --git a/node_modules/date-fns/esm/locale/tr/index.js b/node_modules/date-fns/esm/locale/tr/index.js new file mode 100644 index 00000000..d339733e --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/index.js @@ -0,0 +1,35 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin]{@link https://github.com/alpcanaydin} + * @author Berkay Sargın [@berkaey]{@link https://github.com/berkaey} + * @author Fatih Bulut [@bulutfatih]{@link https://github.com/bulutfatih} + * @author Ismail Demirbilek [@dbtek]{@link https://github.com/dbtek} + * @author İsmail Kayar [@ikayar]{@link https://github.com/ikayar} + * + * + */ + +var locale = { + code: 'tr', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/tr/index.js.flow b/node_modules/date-fns/esm/locale/tr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/tr/package.json b/node_modules/date-fns/esm/locale/tr/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/tr/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/types.js b/node_modules/date-fns/esm/locale/types.js new file mode 100644 index 00000000..8cec2e9c --- /dev/null +++ b/node_modules/date-fns/esm/locale/types.js @@ -0,0 +1 @@ +export {}; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/ug/_lib/formatDistance/index.js new file mode 100644 index 00000000..e45e60a7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'بىر سىكۇنت ئىچىدە', + other: 'سىكۇنت ئىچىدە {{count}}' + }, + xSeconds: { + one: 'بىر سىكۇنت', + other: 'سىكۇنت {{count}}' + }, + halfAMinute: 'يىرىم مىنۇت', + lessThanXMinutes: { + one: 'بىر مىنۇت ئىچىدە', + other: 'مىنۇت ئىچىدە {{count}}' + }, + xMinutes: { + one: 'بىر مىنۇت', + other: 'مىنۇت {{count}}' + }, + aboutXHours: { + one: 'تەخمىنەن بىر سائەت', + other: 'سائەت {{count}} تەخمىنەن' + }, + xHours: { + one: 'بىر سائەت', + other: 'سائەت {{count}}' + }, + xDays: { + one: 'بىر كۈن', + other: 'كۈن {{count}}' + }, + aboutXWeeks: { + one: 'تەخمىنەن بىرھەپتە', + other: 'ھەپتە {{count}} تەخمىنەن' + }, + xWeeks: { + one: 'بىرھەپتە', + other: 'ھەپتە {{count}}' + }, + aboutXMonths: { + one: 'تەخمىنەن بىر ئاي', + other: 'ئاي {{count}} تەخمىنەن' + }, + xMonths: { + one: 'بىر ئاي', + other: 'ئاي {{count}}' + }, + aboutXYears: { + one: 'تەخمىنەن بىر يىل', + other: 'يىل {{count}} تەخمىنەن' + }, + xYears: { + one: 'بىر يىل', + other: 'يىل {{count}}' + }, + overXYears: { + one: 'بىر يىلدىن ئارتۇق', + other: 'يىلدىن ئارتۇق {{count}}' + }, + almostXYears: { + one: 'ئاساسەن بىر يىل', + other: 'يىل {{count}} ئاساسەن' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result; + } else { + return result + ' بولدى'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/ug/_lib/formatLong/index.js new file mode 100644 index 00000000..3a626b71 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'دە' {{time}}", + long: "{{date}} 'دە' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/ug/_lib/formatRelative/index.js new file mode 100644 index 00000000..3348b356 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'ئ‍ۆتكەن' eeee 'دە' p", + yesterday: "'تۈنۈگۈن دە' p", + today: "'بۈگۈن دە' p", + tomorrow: "'ئەتە دە' p", + nextWeek: "eeee 'دە' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/_lib/localize/index.js b/node_modules/date-fns/esm/locale/ug/_lib/localize/index.js new file mode 100644 index 00000000..6ad5bdaf --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/localize/index.js @@ -0,0 +1,124 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['ب', 'ك'], + abbreviated: ['ب', 'ك'], + wide: ['مىيلادىدىن بۇرۇن', 'مىيلادىدىن كىيىن'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1', '2', '3', '4'], + wide: ['بىرىنجى چارەك', 'ئىككىنجى چارەك', 'ئۈچىنجى چارەك', 'تۆتىنجى چارەك'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ي', 'ف', 'م', 'ا', 'م', 'ى', 'ى', 'ا', 'س', 'ۆ', 'ن', 'د'], + abbreviated: ['يانۋار', 'فېۋىرال', 'مارت', 'ئاپرىل', 'ماي', 'ئىيۇن', 'ئىيول', 'ئاۋغۇست', 'سىنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دىكابىر'], + wide: ['يانۋار', 'فېۋىرال', 'مارت', 'ئاپرىل', 'ماي', 'ئىيۇن', 'ئىيول', 'ئاۋغۇست', 'سىنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دىكابىر'] +}; +var dayValues = { + narrow: ['ي', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + short: ['ي', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + abbreviated: ['يەكشەنبە', 'دۈشەنبە', 'سەيشەنبە', 'چارشەنبە', 'پەيشەنبە', 'جۈمە', 'شەنبە'], + wide: ['يەكشەنبە', 'دۈشەنبە', 'سەيشەنبە', 'چارشەنبە', 'پەيشەنبە', 'جۈمە', 'شەنبە'] +}; +var dayPeriodValues = { + narrow: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + }, + abbreviated: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + }, + wide: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + }, + abbreviated: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + }, + wide: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/_lib/match/index.js b/node_modules/date-fns/esm/locale/ug/_lib/match/index.js new file mode 100644 index 00000000..37f92732 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ب|ك)/i, + wide: /^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i +}; +var parseEraPatterns = { + any: [/^بۇرۇن/i, /^كىيىن/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^چ[1234]/i, + wide: /^چارەك [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[يفمئامئ‍ئاسۆند]/i, + abbreviated: /^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i, + wide: /^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^ا/i, /^م/i, /^ى‍/i, /^ى‍/i, /^ا‍/i, /^س/i, /^ۆ/i, /^ن/i, /^د/i], + any: [/^يان/i, /^فېۋ/i, /^مار/i, /^ئاپ/i, /^ماي/i, /^ئىيۇن/i, /^ئىيول/i, /^ئاۋ/i, /^سىن/i, /^ئۆك/i, /^نوي/i, /^دىك/i] +}; +var matchDayPatterns = { + narrow: /^[دسچپجشي]/i, + short: /^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, + abbreviated: /^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, + wide: /^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i +}; +var parseDayPatterns = { + narrow: [/^ي/i, /^د/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [/^ي/i, /^د/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i, + any: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ئە/i, + pm: /^چ/i, + midnight: /^ك/i, + noon: /^چ/i, + morning: /ئەتىگەن/i, + afternoon: /چۈشتىن كىيىن/i, + evening: /ئاخشىم/i, + night: /كىچە/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/index.d.ts b/node_modules/date-fns/esm/locale/ug/index.d.ts new file mode 100644 index 00000000..a67a6795 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ug } from 'date-fns/locale' +export default ug diff --git a/node_modules/date-fns/esm/locale/ug/index.js b/node_modules/date-fns/esm/locale/ug/index.js new file mode 100644 index 00000000..7a30d6be --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Uighur locale + * @language Uighur + * @iso-639-2 uig + * @author Abduwaly M. [@abduwaly]{@link https://github.com/abduwaly} + */ + +var locale = { + code: 'ug', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/ug/index.js.flow b/node_modules/date-fns/esm/locale/ug/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/ug/package.json b/node_modules/date-fns/esm/locale/ug/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/ug/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/uk/_lib/formatDistance/index.js new file mode 100644 index 00000000..bc7ef209 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/formatDistance/index.js @@ -0,0 +1,231 @@ +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'за ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' тому'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAtMinute = function halfAtMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за півхвилини'; + } else { + return 'півхвилини тому'; + } + } + + return 'півхвилини'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менше секунди', + singularNominative: 'менше {{count}} секунди', + singularGenitive: 'менше {{count}} секунд', + pluralGenitive: 'менше {{count}} секунд' + }, + future: { + one: 'менше, ніж за секунду', + singularNominative: 'менше, ніж за {{count}} секунду', + singularGenitive: 'менше, ніж за {{count}} секунди', + pluralGenitive: 'менше, ніж за {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунди', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду тому', + singularGenitive: '{{count}} секунди тому', + pluralGenitive: '{{count}} секунд тому' + }, + future: { + singularNominative: 'за {{count}} секунду', + singularGenitive: 'за {{count}} секунди', + pluralGenitive: 'за {{count}} секунд' + } + }), + halfAMinute: halfAtMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менше хвилини', + singularNominative: 'менше {{count}} хвилини', + singularGenitive: 'менше {{count}} хвилин', + pluralGenitive: 'менше {{count}} хвилин' + }, + future: { + one: 'менше, ніж за хвилину', + singularNominative: 'менше, ніж за {{count}} хвилину', + singularGenitive: 'менше, ніж за {{count}} хвилини', + pluralGenitive: 'менше, ніж за {{count}} хвилин' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвилина', + singularGenitive: '{{count}} хвилини', + pluralGenitive: '{{count}} хвилин' + }, + past: { + singularNominative: '{{count}} хвилину тому', + singularGenitive: '{{count}} хвилини тому', + pluralGenitive: '{{count}} хвилин тому' + }, + future: { + singularNominative: 'за {{count}} хвилину', + singularGenitive: 'за {{count}} хвилини', + pluralGenitive: 'за {{count}} хвилин' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} години', + singularGenitive: 'близько {{count}} годин', + pluralGenitive: 'близько {{count}} годин' + }, + future: { + singularNominative: 'приблизно за {{count}} годину', + singularGenitive: 'приблизно за {{count}} години', + pluralGenitive: 'приблизно за {{count}} годин' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} годину', + singularGenitive: '{{count}} години', + pluralGenitive: '{{count}} годин' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} день', + singularGenitive: '{{count}} днi', + pluralGenitive: '{{count}} днів' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} тижня', + singularGenitive: 'близько {{count}} тижнів', + pluralGenitive: 'близько {{count}} тижнів' + }, + future: { + singularNominative: 'приблизно за {{count}} тиждень', + singularGenitive: 'приблизно за {{count}} тижні', + pluralGenitive: 'приблизно за {{count}} тижнів' + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} тиждень', + singularGenitive: '{{count}} тижні', + pluralGenitive: '{{count}} тижнів' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} місяця', + singularGenitive: 'близько {{count}} місяців', + pluralGenitive: 'близько {{count}} місяців' + }, + future: { + singularNominative: 'приблизно за {{count}} місяць', + singularGenitive: 'приблизно за {{count}} місяці', + pluralGenitive: 'приблизно за {{count}} місяців' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} місяць', + singularGenitive: '{{count}} місяці', + pluralGenitive: '{{count}} місяців' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} року', + singularGenitive: 'близько {{count}} років', + pluralGenitive: 'близько {{count}} років' + }, + future: { + singularNominative: 'приблизно за {{count}} рік', + singularGenitive: 'приблизно за {{count}} роки', + pluralGenitive: 'приблизно за {{count}} років' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} рік', + singularGenitive: '{{count}} роки', + pluralGenitive: '{{count}} років' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'більше {{count}} року', + singularGenitive: 'більше {{count}} років', + pluralGenitive: 'більше {{count}} років' + }, + future: { + singularNominative: 'більше, ніж за {{count}} рік', + singularGenitive: 'більше, ніж за {{count}} роки', + pluralGenitive: 'більше, ніж за {{count}} років' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'майже {{count}} рік', + singularGenitive: 'майже {{count}} роки', + pluralGenitive: 'майже {{count}} років' + }, + future: { + singularNominative: 'майже за {{count}} рік', + singularGenitive: 'майже за {{count}} роки', + pluralGenitive: 'майже за {{count}} років' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/uk/_lib/formatLong/index.js new file mode 100644 index 00000000..0dad8b42 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "EEEE, do MMMM y 'р.'", + long: "do MMMM y 'р.'", + medium: "d MMM y 'р.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'о' {{time}}", + long: "{{date}} 'о' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/uk/_lib/formatRelative/index.js new file mode 100644 index 00000000..1fbf693f --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/formatRelative/index.js @@ -0,0 +1,85 @@ +import { toDate } from "../../../../index.js"; +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; +var accusativeWeekdays = ['неділю', 'понеділок', 'вівторок', 'середу', 'четвер', 'п’ятницю', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у минулу " + weekday + " о' p"; + + case 1: + case 2: + case 4: + return "'у минулий " + weekday + " о' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " о' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступну " + weekday + " о' p"; + + case 1: + case 2: + case 4: + return "'у наступний " + weekday + " о' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = toDate(dirtyDate); + var day = date.getUTCDay(); + + if (isSameUTCWeek(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'вчора о' p", + today: "'сьогодні о' p", + tomorrow: "'завтра о' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/_lib/localize/index.js b/node_modules/date-fns/esm/locale/uk/_lib/localize/index.js new file mode 100644 index 00000000..103595d0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/localize/index.js @@ -0,0 +1,144 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['до н.е.', 'н.е.'], + abbreviated: ['до н. е.', 'н. е.'], + wide: ['до нашої ери', 'нашої ери'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], + wide: ['1-й квартал', '2-й квартал', '3-й квартал', '4-й квартал'] +}; +var monthValues = { + // ДСТУ 3582:2013 + narrow: ['С', 'Л', 'Б', 'К', 'Т', 'Ч', 'Л', 'С', 'В', 'Ж', 'Л', 'Г'], + abbreviated: ['січ.', 'лют.', 'берез.', 'квіт.', 'трав.', 'черв.', 'лип.', 'серп.', 'верес.', 'жовт.', 'листоп.', 'груд.'], + wide: ['січень', 'лютий', 'березень', 'квітень', 'травень', 'червень', 'липень', 'серпень', 'вересень', 'жовтень', 'листопад', 'грудень'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'Б', 'К', 'Т', 'Ч', 'Л', 'С', 'В', 'Ж', 'Л', 'Г'], + abbreviated: ['січ.', 'лют.', 'берез.', 'квіт.', 'трав.', 'черв.', 'лип.', 'серп.', 'верес.', 'жовт.', 'листоп.', 'груд.'], + wide: ['січня', 'лютого', 'березня', 'квітня', 'травня', 'червня', 'липня', 'серпня', 'вересня', 'жовтня', 'листопада', 'грудня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['нед', 'пон', 'вів', 'сер', 'чтв', 'птн', 'суб'], + wide: ['неділя', 'понеділок', 'вівторок', 'середа', 'четвер', 'п’ятниця', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранок', + afternoon: 'день', + evening: 'веч.', + night: 'ніч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранок', + afternoon: 'день', + evening: 'веч.', + night: 'ніч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'північ', + noon: 'полудень', + morning: 'ранок', + afternoon: 'день', + evening: 'вечір', + night: 'ніч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'північ', + noon: 'полудень', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + + if (unit === 'date') { + if (number === 3 || number === 23) { + suffix = '-є'; + } else { + suffix = '-е'; + } + } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { + suffix = '-а'; + } else { + suffix = '-й'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/_lib/match/index.js b/node_modules/date-fns/esm/locale/uk/_lib/match/index.js new file mode 100644 index 00000000..c48a4ad8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/_lib/match/index.js @@ -0,0 +1,99 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(-?(е|й|є|а|я))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((до )?н\.?\s?е\.?)/i, + abbreviated: /^((до )?н\.?\s?е\.?)/i, + wide: /^(до нашої ери|нашої ери|наша ера)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[иі]?й?)? кв.?/i, + wide: /^[1234](-?[иі]?й?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слбктчвжг]/i, + abbreviated: /^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i, + wide: /^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^б/i, /^к/i, /^т/i, /^ч/i, /^л/i, /^с/i, /^в/i, /^ж/i, /^л/i, /^г/i], + any: [/^сі/i, /^лю/i, /^б/i, /^к/i, /^т/i, /^ч/i, /^лип/i, /^се/i, /^в/i, /^ж/i, /^лис/i, /^г/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)\.?/i, + abbreviated: /^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i, + wide: /^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[он]/i, /^в/i, /^с[ер]/i, /^ч/i, /^п\W*?[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, + abbreviated: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, + wide: /^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^півн/i, + noon: /^пол/i, + morning: /^р/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/index.d.ts b/node_modules/date-fns/esm/locale/uk/index.d.ts new file mode 100644 index 00000000..972da889 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uk } from 'date-fns/locale' +export default uk diff --git a/node_modules/date-fns/esm/locale/uk/index.js b/node_modules/date-fns/esm/locale/uk/index.js new file mode 100644 index 00000000..04fdb02a --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/index.js @@ -0,0 +1,30 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Ukrainian locale. + * @language Ukrainian + * @iso-639-2 ukr + * @author Andrii Korzh [@korzhyk]{@link https://github.com/korzhyk} + * @author Andriy Shcherbyak [@shcherbyakdev]{@link https://github.com/shcherbyakdev} + */ + +var locale = { + code: 'uk', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uk/index.js.flow b/node_modules/date-fns/esm/locale/uk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/uk/package.json b/node_modules/date-fns/esm/locale/uk/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uk/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatDistance/index.js new file mode 100644 index 00000000..1abcd597 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1 сониядан кам', + other: '{{count}} сониядан кам' + }, + xSeconds: { + one: '1 сония', + other: '{{count}} сония' + }, + halfAMinute: 'ярим дақиқа', + lessThanXMinutes: { + one: '1 дақиқадан кам', + other: '{{count}} дақиқадан кам' + }, + xMinutes: { + one: '1 дақиқа', + other: '{{count}} дақиқа' + }, + aboutXHours: { + one: 'тахминан 1 соат', + other: 'тахминан {{count}} соат' + }, + xHours: { + one: '1 соат', + other: '{{count}} соат' + }, + xDays: { + one: '1 кун', + other: '{{count}} кун' + }, + aboutXWeeks: { + one: 'тахминан 1 хафта', + other: 'тахминан {{count}} хафта' + }, + xWeeks: { + one: '1 хафта', + other: '{{count}} хафта' + }, + aboutXMonths: { + one: 'тахминан 1 ой', + other: 'тахминан {{count}} ой' + }, + xMonths: { + one: '1 ой', + other: '{{count}} ой' + }, + aboutXYears: { + one: 'тахминан 1 йил', + other: 'тахминан {{count}} йил' + }, + xYears: { + one: '1 йил', + other: '{{count}} йил' + }, + overXYears: { + one: '1 йилдан кўп', + other: '{{count}} йилдан кўп' + }, + almostXYears: { + one: 'деярли 1 йил', + other: 'деярли {{count}} йил' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'дан кейин'; + } else { + return result + ' олдин'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatLong/index.js new file mode 100644 index 00000000..c650ed50 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do MMMM, y', + medium: 'd MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatRelative/index.js new file mode 100644 index 00000000..23fda0f7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'ўтган' eeee p 'да'", + yesterday: "'кеча' p 'да'", + today: "'бугун' p 'да'", + tomorrow: "'эртага' p 'да'", + nextWeek: "eeee p 'да'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/localize/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/localize/index.js new file mode 100644 index 00000000..56444d7b --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/localize/index.js @@ -0,0 +1,80 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['М.А', 'М'], + abbreviated: ['М.А', 'М'], + wide: ['Милоддан Аввалги', 'Милодий'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-чор.', '2-чор.', '3-чор.', '4-чор.'], + wide: ['1-чорак', '2-чорак', '3-чорак', '4-чорак'] +}; +var monthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], + wide: ['январ', 'феврал', 'март', 'апрел', 'май', 'июн', 'июл', 'август', 'сентабр', 'октабр', 'ноябр', 'декабр'] +}; +var dayValues = { + narrow: ['Я', 'Д', 'С', 'Ч', 'П', 'Ж', 'Ш'], + short: ['як', 'ду', 'се', 'чо', 'па', 'жу', 'ша'], + abbreviated: ['якш', 'душ', 'сеш', 'чор', 'пай', 'жум', 'шан'], + wide: ['якшанба', 'душанба', 'сешанба', 'чоршанба', 'пайшанба', 'жума', 'шанба'] +}; +var dayPeriodValues = { + any: { + am: 'П.О.', + pm: 'П.К.', + midnight: 'ярим тун', + noon: 'пешин', + morning: 'эрталаб', + afternoon: 'пешиндан кейин', + evening: 'кечаси', + night: 'тун' + } +}; +var formattingDayPeriodValues = { + any: { + am: 'П.О.', + pm: 'П.К.', + midnight: 'ярим тун', + noon: 'пешин', + morning: 'эрталаб', + afternoon: 'пешиндан кейин', + evening: 'кечаси', + night: 'тун' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'any' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/match/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/match/index.js new file mode 100644 index 00000000..7e524c00 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/_lib/match/index.js @@ -0,0 +1,97 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(чи)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(м\.а|м\.)/i, + abbreviated: /^(м\.а|м\.)/i, + wide: /^(милоддан аввал|милоддан кейин)/i +}; +var parseEraPatterns = { + any: [/^м/i, /^а/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-чор./i, + wide: /^[1234]-чорак/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[яфмамииасонд]/i, + abbreviated: /^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i, + wide: /^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i +}; +var parseMonthPatterns = { + narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^д/i], + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^май/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[ядсчпжш]/i, + short: /^(як|ду|се|чо|па|жу|ша)/i, + abbreviated: /^(якш|душ|сеш|чор|пай|жум|шан)/i, + wide: /^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i +}; +var parseDayPatterns = { + narrow: [/^я/i, /^д/i, /^с/i, /^ч/i, /^п/i, /^ж/i, /^ш/i], + any: [/^як/i, /^ду/i, /^се/i, /^чор/i, /^пай/i, /^жу/i, /^шан/i] +}; +var matchDayPeriodPatterns = { + any: /^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^п\.о\./i, + pm: /^п\.к\./i, + midnight: /^ярим тун/i, + noon: /^пешиндан кейин/i, + morning: /эрталаб/i, + afternoon: /пешиндан кейин/i, + evening: /кечаси/i, + night: /тун/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/index.d.ts b/node_modules/date-fns/esm/locale/uz-Cyrl/index.d.ts new file mode 100644 index 00000000..0b0ba8d2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uzCyrl } from 'date-fns/locale' +export default uzCyrl diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/index.js b/node_modules/date-fns/esm/locale/uz-Cyrl/index.js new file mode 100644 index 00000000..c90a967e --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Uzbek Cyrillic locale. + * @language Uzbek + * @iso-639-2 uzb + * @author Kamronbek Shodmonov [@kamronbek28]{@link https://github.com/kamronbek28} + */ + +var locale = { + code: 'uz-Cyrl', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/index.js.flow b/node_modules/date-fns/esm/locale/uz-Cyrl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/uz-Cyrl/package.json b/node_modules/date-fns/esm/locale/uz-Cyrl/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz-Cyrl/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js new file mode 100644 index 00000000..48b02dc2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'sekunddan kam', + other: '{{count}} sekunddan kam' + }, + xSeconds: { + one: '1 sekund', + other: '{{count}} sekund' + }, + halfAMinute: 'yarim minut', + lessThanXMinutes: { + one: 'bir minutdan kam', + other: '{{count}} minutdan kam' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'tahminan 1 soat', + other: 'tahminan {{count}} soat' + }, + xHours: { + one: '1 soat', + other: '{{count}} soat' + }, + xDays: { + one: '1 kun', + other: '{{count}} kun' + }, + aboutXWeeks: { + one: 'tahminan 1 hafta', + other: 'tahminan {{count}} hafta' + }, + xWeeks: { + one: '1 hafta', + other: '{{count}} hafta' + }, + aboutXMonths: { + one: 'tahminan 1 oy', + other: 'tahminan {{count}} oy' + }, + xMonths: { + one: '1 oy', + other: '{{count}} oy' + }, + aboutXYears: { + one: 'tahminan 1 yil', + other: 'tahminan {{count}} yil' + }, + xYears: { + one: '1 yil', + other: '{{count}} yil' + }, + overXYears: { + one: "1 yildan ko'p", + other: "{{count}} yildan ko'p" + }, + almostXYears: { + one: 'deyarli 1 yil', + other: 'deyarli {{count}} yil' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' dan keyin'; + } else { + return result + ' oldin'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/uz/_lib/formatLong/index.js new file mode 100644 index 00000000..72e63d9c --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/formatLong/index.js @@ -0,0 +1,31 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do MMMM, y', + medium: 'd MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss zzzz', + long: 'h:mm:ss z', + medium: 'h:mm:ss', + short: 'h:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/uz/_lib/formatRelative/index.js new file mode 100644 index 00000000..6f25f7e0 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'oldingi' eeee p 'da'", + yesterday: "'kecha' p 'da'", + today: "'bugun' p 'da'", + tomorrow: "'ertaga' p 'da'", + nextWeek: "eeee p 'da'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/_lib/localize/index.js b/node_modules/date-fns/esm/locale/uz/_lib/localize/index.js new file mode 100644 index 00000000..ff54577b --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/localize/index.js @@ -0,0 +1,124 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['M.A', 'M.'], + abbreviated: ['M.A', 'M.'], + wide: ['Miloddan Avvalgi', 'Milodiy'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['CH.1', 'CH.2', 'CH.3', 'CH.4'], + wide: ['1-chi chorak', '2-chi chorak', '3-chi chorak', '4-chi chorak'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['Y', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'Iyun', 'Iyul', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], + wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'Iyun', 'Iyul', 'Avgust', 'Sentabr', 'Oktabr', 'Noyabr', 'Dekabr'] +}; +var dayValues = { + narrow: ['Y', 'D', 'S', 'CH', 'P', 'J', 'SH'], + short: ['Ya', 'Du', 'Se', 'Cho', 'Pa', 'Ju', 'Sha'], + abbreviated: ['Yak', 'Dush', 'Sesh', 'Chor', 'Pay', 'Jum', 'Shan'], + wide: ['Yakshanba', 'Dushanba', 'Seshanba', 'Chorshanba', 'Payshanba', 'Juma', 'Shanba'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'y.t', + noon: 'p.', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'y.t', + noon: 'p.', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/_lib/match/index.js b/node_modules/date-fns/esm/locale/uz/_lib/match/index.js new file mode 100644 index 00000000..ff180463 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/_lib/match/index.js @@ -0,0 +1,98 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)(chi)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(m\.a|m\.)/i, + abbreviated: /^(m\.a\.?\s?m\.?)/i, + wide: /^(miloddan avval|miloddan keyin)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](chi)? chorak/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[yfmasond]/i, + abbreviated: /^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i, + wide: /^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i +}; +var parseMonthPatterns = { + narrow: [/^y/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ya/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^iyun/i, /^iyul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[ydschj]/i, + short: /^(ya|du|se|cho|pa|ju|sha)/i, + abbreviated: /^(yak|dush|sesh|chor|pay|jum|shan)/i, + wide: /^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i +}; +var parseDayPatterns = { + narrow: [/^y/i, /^d/i, /^s/i, /^ch/i, /^p/i, /^j/i, /^sh/i], + any: [/^ya/i, /^d/i, /^se/i, /^ch/i, /^p/i, /^j/i, /^sh/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i, + any: /^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^y\.t/i, + noon: /^pe/i, + morning: /ertalab/i, + afternoon: /tushdan keyin/i, + evening: /kechqurun/i, + night: /tun/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/index.d.ts b/node_modules/date-fns/esm/locale/uz/index.d.ts new file mode 100644 index 00000000..e10b1f6a --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uz } from 'date-fns/locale' +export default uz diff --git a/node_modules/date-fns/esm/locale/uz/index.js b/node_modules/date-fns/esm/locale/uz/index.js new file mode 100644 index 00000000..d455f9f3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Uzbek locale. + * @language Uzbek + * @iso-639-2 uzb + * @author Mukhammadali [@mukhammadali]{@link https://github.com/Mukhammadali} + */ + +var locale = { + code: 'uz', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/uz/index.js.flow b/node_modules/date-fns/esm/locale/uz/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/uz/package.json b/node_modules/date-fns/esm/locale/uz/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/uz/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/vi/_lib/formatDistance/index.js new file mode 100644 index 00000000..7d9bf374 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'dưới 1 giây', + other: 'dưới {{count}} giây' + }, + xSeconds: { + one: '1 giây', + other: '{{count}} giây' + }, + halfAMinute: 'nửa phút', + lessThanXMinutes: { + one: 'dưới 1 phút', + other: 'dưới {{count}} phút' + }, + xMinutes: { + one: '1 phút', + other: '{{count}} phút' + }, + aboutXHours: { + one: 'khoảng 1 giờ', + other: 'khoảng {{count}} giờ' + }, + xHours: { + one: '1 giờ', + other: '{{count}} giờ' + }, + xDays: { + one: '1 ngày', + other: '{{count}} ngày' + }, + aboutXWeeks: { + one: 'khoảng 1 tuần', + other: 'khoảng {{count}} tuần' + }, + xWeeks: { + one: '1 tuần', + other: '{{count}} tuần' + }, + aboutXMonths: { + one: 'khoảng 1 tháng', + other: 'khoảng {{count}} tháng' + }, + xMonths: { + one: '1 tháng', + other: '{{count}} tháng' + }, + aboutXYears: { + one: 'khoảng 1 năm', + other: 'khoảng {{count}} năm' + }, + xYears: { + one: '1 năm', + other: '{{count}} năm' + }, + overXYears: { + one: 'hơn 1 năm', + other: 'hơn {{count}} năm' + }, + almostXYears: { + one: 'gần 1 năm', + other: 'gần {{count}} năm' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' nữa'; + } else { + return result + ' trước'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/vi/_lib/formatLong/index.js new file mode 100644 index 00000000..ddb2a80f --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/formatLong/index.js @@ -0,0 +1,40 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + // thứ Sáu, ngày 25 tháng 08 năm 2017 + full: "EEEE, 'ngày' d MMMM 'năm' y", + // ngày 25 tháng 08 năm 2017 + long: "'ngày' d MMMM 'năm' y", + // 25 thg 08 năm 2017 + medium: "d MMM 'năm' y", + // 25/08/2017 + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + // thứ Sáu, ngày 25 tháng 08 năm 2017 23:25:59 + full: '{{date}} {{time}}', + // ngày 25 tháng 08 năm 2017 23:25 + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/vi/_lib/formatRelative/index.js new file mode 100644 index 00000000..a05d9585 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "eeee 'tuần trước vào lúc' p", + yesterday: "'hôm qua vào lúc' p", + today: "'hôm nay vào lúc' p", + tomorrow: "'ngày mai vào lúc' p", + nextWeek: "eeee 'tới vào lúc' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/_lib/localize/index.js b/node_modules/date-fns/esm/locale/vi/_lib/localize/index.js new file mode 100644 index 00000000..c690f13a --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/localize/index.js @@ -0,0 +1,211 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; // Vietnamese locale reference: http://www.localeplanet.com/icu/vi-VN/index.html +// Capitalization reference: http://hcmup.edu.vn/index.php?option=com_content&view=article&id=4106%3Avit-hoa-trong-vn-bn-hanh-chinh&catid=2345%3Atham-kho&Itemid=4103&lang=vi&site=134 + +var eraValues = { + narrow: ['TCN', 'SCN'], + abbreviated: ['trước CN', 'sau CN'], + wide: ['trước Công Nguyên', 'sau Công Nguyên'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['Quý 1', 'Quý 2', 'Quý 3', 'Quý 4'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + // I notice many news outlet use this "quý II/2018" + wide: ['quý I', 'quý II', 'quý III', 'quý IV'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['Thg 1', 'Thg 2', 'Thg 3', 'Thg 4', 'Thg 5', 'Thg 6', 'Thg 7', 'Thg 8', 'Thg 9', 'Thg 10', 'Thg 11', 'Thg 12'], + wide: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', 'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'] +}; // In Vietnamese date formatting, month number less than 10 expected to have leading zero + +var formattingMonthValues = { + narrow: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], + abbreviated: ['thg 1', 'thg 2', 'thg 3', 'thg 4', 'thg 5', 'thg 6', 'thg 7', 'thg 8', 'thg 9', 'thg 10', 'thg 11', 'thg 12'], + wide: ['tháng 01', 'tháng 02', 'tháng 03', 'tháng 04', 'tháng 05', 'tháng 06', 'tháng 07', 'tháng 08', 'tháng 09', 'tháng 10', 'tháng 11', 'tháng 12'] +}; +var dayValues = { + narrow: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], + short: ['CN', 'Th 2', 'Th 3', 'Th 4', 'Th 5', 'Th 6', 'Th 7'], + abbreviated: ['CN', 'Thứ 2', 'Thứ 3', 'Thứ 4', 'Thứ 5', 'Thứ 6', 'Thứ 7'], + wide: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'] +}; // Vietnamese are used to AM/PM borrowing from English, hence `narrow` and +// `abbreviated` are just like English but I'm leaving the `wide` +// format being localized with abbreviations found in some systems (SÁng / CHiều); +// however, personally, I don't think `Chiều` sounds appropriate for `PM` + +var dayPeriodValues = { + // narrow date period is extremely rare in Vietnamese + // I used abbreviated form for noon, morning and afternoon + // which are regconizable by Vietnamese, others cannot be any shorter + narrow: { + am: 'am', + pm: 'pm', + midnight: 'nửa đêm', + noon: 'tr', + morning: 'sg', + afternoon: 'ch', + evening: 'tối', + night: 'đêm' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + }, + wide: { + am: 'SA', + pm: 'CH', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'nửa đêm', + noon: 'tr', + morning: 'sg', + afternoon: 'ch', + evening: 'tối', + night: 'đêm' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + }, + wide: { + am: 'SA', + pm: 'CH', + midnight: 'nửa đêm', + noon: 'giữa trưa', + morning: 'vào buổi sáng', + afternoon: 'vào buổi chiều', + evening: 'vào buổi tối', + night: 'vào ban đêm' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'quarter') { + // many news outlets use "quý I"... + switch (number) { + case 1: + return 'I'; + + case 2: + return 'II'; + + case 3: + return 'III'; + + case 4: + return 'IV'; + } + } else if (unit === 'day') { + // day of week in Vietnamese has ordinal number meaning, + // so we should use them, else it'll sound weird + switch (number) { + case 1: + return 'thứ 2'; + // meaning 2nd day but it's the first day of the week :D + + case 2: + return 'thứ 3'; + // meaning 3rd day + + case 3: + return 'thứ 4'; + // meaning 4th day and so on + + case 4: + return 'thứ 5'; + + case 5: + return 'thứ 6'; + + case 6: + return 'thứ 7'; + + case 7: + return 'chủ nhật'; + // meaning Sunday, there's no 8th day :D + } + } else if (unit === 'week') { + if (number === 1) { + return 'thứ nhất'; + } else { + return 'thứ ' + number; + } + } else if (unit === 'dayOfYear') { + if (number === 1) { + return 'đầu tiên'; + } else { + return 'thứ ' + number; + } + } // there are no different forms of ordinal numbers in Vietnamese + + + return String(number); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/_lib/match/index.js b/node_modules/date-fns/esm/locale/vi/_lib/match/index.js new file mode 100644 index 00000000..aa098e0d --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/_lib/match/index.js @@ -0,0 +1,106 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(\d+)/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(tcn|scn)/i, + abbreviated: /^(trước CN|sau CN)/i, + wide: /^(trước Công Nguyên|sau Công Nguyên)/i +}; +var parseEraPatterns = { + any: [/^t/i, /^s/i] +}; +var matchQuarterPatterns = { + narrow: /^([1234]|i{1,3}v?)/i, + abbreviated: /^q([1234]|i{1,3}v?)/i, + wide: /^quý ([1234]|i{1,3}v?)/i +}; +var parseQuarterPatterns = { + any: [/(1|i)$/i, /(2|ii)$/i, /(3|iii)$/i, /(4|iv)$/i] +}; +var matchMonthPatterns = { + // month number may contain leading 0, 'thg' prefix may have space, underscore or empty before number + // note the order of '1' since it is a sub-string of '10', so must be lower priority + narrow: /^(0?[2-9]|10|11|12|0?1)/i, + // note the order of 'thg 1' since it is sub-string of 'thg 10', so must be lower priority + abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i, + // note the order of 'Mười' since it is sub-string of Mười Một, so must be lower priority + wide: /^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i +}; +var parseMonthPatterns = { + narrow: [/0?1$/i, /0?2/i, /3/, /4/, /5/, /6/, /7/, /8/, /9/, /10/, /11/, /12/], + abbreviated: [/^thg[ _]?0?1(?!\d)/i, /^thg[ _]?0?2/i, /^thg[ _]?0?3/i, /^thg[ _]?0?4/i, /^thg[ _]?0?5/i, /^thg[ _]?0?6/i, /^thg[ _]?0?7/i, /^thg[ _]?0?8/i, /^thg[ _]?0?9/i, /^thg[ _]?10/i, /^thg[ _]?11/i, /^thg[ _]?12/i], + wide: [/^tháng ?(Một|0?1(?!\d))/i, /^tháng ?(Hai|0?2)/i, /^tháng ?(Ba|0?3)/i, /^tháng ?(Tư|0?4)/i, /^tháng ?(Năm|0?5)/i, /^tháng ?(Sáu|0?6)/i, /^tháng ?(Bảy|0?7)/i, /^tháng ?(Tám|0?8)/i, /^tháng ?(Chín|0?9)/i, /^tháng ?(Mười|10)/i, /^tháng ?(Mười ?Một|11)/i, /^tháng ?(Mười ?Hai|12)/i] +}; +var matchDayPatterns = { + narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i, + short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, + abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, + wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i +}; +var parseDayPatterns = { + narrow: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + short: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + abbreviated: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + wide: [/(Chủ|Chúa) ?Nhật/i, /Hai/i, /Ba/i, /Tư/i, /Năm/i, /Sáu/i, /Bảy/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, + abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, + wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(a|sa)/i, + pm: /^(p|ch[^i]*)/i, + midnight: /nửa đêm/i, + noon: /trưa/i, + morning: /sáng/i, + afternoon: /chiều/i, + evening: /tối/i, + night: /^đêm/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/index.d.ts b/node_modules/date-fns/esm/locale/vi/index.d.ts new file mode 100644 index 00000000..17be5cae --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { vi } from 'date-fns/locale' +export default vi diff --git a/node_modules/date-fns/esm/locale/vi/index.js b/node_modules/date-fns/esm/locale/vi/index.js new file mode 100644 index 00000000..c47bba54 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/index.js @@ -0,0 +1,32 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Vietnamese locale (Vietnam). + * @language Vietnamese + * @iso-639-2 vie + * @author Thanh Tran [@trongthanh]{@link https://github.com/trongthanh} + * @author Leroy Hopson [@lihop]{@link https://github.com/lihop} + */ + +var locale = { + code: 'vi', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + /* First week of new year contains Jan 1st */ + + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/vi/index.js.flow b/node_modules/date-fns/esm/locale/vi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/vi/package.json b/node_modules/date-fns/esm/locale/vi/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/vi/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js new file mode 100644 index 00000000..efac0696 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '不到 1 秒', + other: '不到 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分钟', + lessThanXMinutes: { + one: '不到 1 分钟', + other: '不到 {{count}} 分钟' + }, + xMinutes: { + one: '1 分钟', + other: '{{count}} 分钟' + }, + xHours: { + one: '1 小时', + other: '{{count}} 小时' + }, + aboutXHours: { + one: '大约 1 小时', + other: '大约 {{count}} 小时' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大约 1 个星期', + other: '大约 {{count}} 个星期' + }, + xWeeks: { + one: '1 个星期', + other: '{{count}} 个星期' + }, + aboutXMonths: { + one: '大约 1 个月', + other: '大约 {{count}} 个月' + }, + xMonths: { + one: '1 个月', + other: '{{count}} 个月' + }, + aboutXYears: { + one: '大约 1 年', + other: '大约 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超过 1 年', + other: '超过 {{count}} 年' + }, + almostXYears: { + one: '将近 1 年', + other: '将近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '内'; + } else { + return result + '前'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js new file mode 100644 index 00000000..be681335 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js new file mode 100644 index 00000000..fc6091b3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/formatRelative/index.js @@ -0,0 +1,36 @@ +import isSameUTCWeek from "../../../../_lib/isSameUTCWeek/index.js"; + +function checkWeek(date, baseDate, options) { + var baseFormat = 'eeee p'; + + if (isSameUTCWeek(date, baseDate, options)) { + return baseFormat; // in same week + } else if (date.getTime() > baseDate.getTime()) { + return "'下个'" + baseFormat; // in next week + } + + return "'上个'" + baseFormat; // in last week +} + +var formatRelativeLocale = { + lastWeek: checkWeek, + // days before yesterday, maybe in this week or last week + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: checkWeek, + // days after tomorrow, maybe in this week or next week + other: 'PP p' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js b/node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js new file mode 100644 index 00000000..b82294b2 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/localize/index.js @@ -0,0 +1,137 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一季', '第二季', '第三季', '第四季'], + wide: ['第一季度', '第二季度', '第三季度', '第四季度'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number.toString() + '日'; + + case 'hour': + return number.toString() + '时'; + + case 'minute': + return number.toString() + '分'; + + case 'second': + return number.toString() + '秒'; + + default: + return '第 ' + number.toString(); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js b/node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js new file mode 100644 index 00000000..8be30cdc --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]刻/i, + wide: /^第[一二三四]刻钟/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^周[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/index.d.ts b/node_modules/date-fns/esm/locale/zh-CN/index.d.ts new file mode 100644 index 00000000..ffe2f2eb --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhCN } from 'date-fns/locale' +export default zhCN diff --git a/node_modules/date-fns/esm/locale/zh-CN/index.js b/node_modules/date-fns/esm/locale/zh-CN/index.js new file mode 100644 index 00000000..4111dcf3 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/index.js @@ -0,0 +1,33 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Chinese Simplified locale. + * @language Chinese Simplified + * @iso-639-2 zho + * @author Changyu Geng [@KingMario]{@link https://github.com/KingMario} + * @author Song Shuoyun [@fnlctrl]{@link https://github.com/fnlctrl} + * @author sabrinaM [@sabrinamiao]{@link https://github.com/sabrinamiao} + * @author Carney Wu [@cubicwork]{@link https://github.com/cubicwork} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + */ + +var locale = { + code: 'zh-CN', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-CN/index.js.flow b/node_modules/date-fns/esm/locale/zh-CN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/zh-CN/package.json b/node_modules/date-fns/esm/locale/zh-CN/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-CN/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatDistance/index.js new file mode 100644 index 00000000..ed922943 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '少於 1 秒', + other: '少於 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分鐘', + lessThanXMinutes: { + one: '少於 1 分鐘', + other: '少於 {{count}} 分鐘' + }, + xMinutes: { + one: '1 分鐘', + other: '{{count}} 分鐘' + }, + xHours: { + one: '1 小時', + other: '{{count}} 小時' + }, + aboutXHours: { + one: '大約 1 小時', + other: '大約 {{count}} 小時' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大約 1 個星期', + other: '大約 {{count}} 個星期' + }, + xWeeks: { + one: '1 個星期', + other: '{{count}} 個星期' + }, + aboutXMonths: { + one: '大約 1 個月', + other: '大約 {{count}} 個月' + }, + xMonths: { + one: '1 個月', + other: '{{count}} 個月' + }, + aboutXYears: { + one: '大約 1 年', + other: '大約 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超過 1 年', + other: '超過 {{count}} 年' + }, + almostXYears: { + one: '將近 1 年', + other: '將近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatLong/index.js new file mode 100644 index 00000000..be681335 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatRelative/index.js new file mode 100644 index 00000000..9c1d4500 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'上個'eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個'eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/_lib/localize/index.js b/node_modules/date-fns/esm/locale/zh-HK/_lib/localize/index.js new file mode 100644 index 00000000..abe1f714 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/_lib/localize/index.js @@ -0,0 +1,137 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一季', '第二季', '第三季', '第四季'], + wide: ['第一季度', '第二季度', '第三季度', '第四季度'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '午夜', + noon: '晌', + morning: '早', + afternoon: '午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '午夜', + noon: '晌', + morning: '早', + afternoon: '午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number + '日'; + + case 'hour': + return number + '時'; + + case 'minute': + return number + '分'; + + case 'second': + return number + '秒'; + + default: + return '第 ' + number; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/_lib/match/index.js b/node_modules/date-fns/esm/locale/zh-HK/_lib/match/index.js new file mode 100644 index 00000000..20b6e0df --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]季/i, + wide: /^第[一二三四]季度/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^週[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/index.d.ts b/node_modules/date-fns/esm/locale/zh-HK/index.d.ts new file mode 100644 index 00000000..81552b87 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhHK } from 'date-fns/locale' +export default zhHK diff --git a/node_modules/date-fns/esm/locale/zh-HK/index.js b/node_modules/date-fns/esm/locale/zh-HK/index.js new file mode 100644 index 00000000..5fb28cb7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/index.js @@ -0,0 +1,29 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Chinese Traditional locale. + * @language Chinese Traditional + * @iso-639-2 zho + * @author Gary Ip [@gaplo]{@link https://github.com/gaplo} + */ + +var locale = { + code: 'zh-HK', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-HK/index.js.flow b/node_modules/date-fns/esm/locale/zh-HK/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/zh-HK/package.json b/node_modules/date-fns/esm/locale/zh-HK/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-HK/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js new file mode 100644 index 00000000..ed922943 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatDistance/index.js @@ -0,0 +1,88 @@ +var formatDistanceLocale = { + lessThanXSeconds: { + one: '少於 1 秒', + other: '少於 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分鐘', + lessThanXMinutes: { + one: '少於 1 分鐘', + other: '少於 {{count}} 分鐘' + }, + xMinutes: { + one: '1 分鐘', + other: '{{count}} 分鐘' + }, + xHours: { + one: '1 小時', + other: '{{count}} 小時' + }, + aboutXHours: { + one: '大約 1 小時', + other: '大約 {{count}} 小時' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大約 1 個星期', + other: '大約 {{count}} 個星期' + }, + xWeeks: { + one: '1 個星期', + other: '{{count}} 個星期' + }, + aboutXMonths: { + one: '大約 1 個月', + other: '大約 {{count}} 個月' + }, + xMonths: { + one: '1 個月', + other: '{{count}} 個月' + }, + aboutXYears: { + one: '大約 1 年', + other: '大約 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超過 1 年', + other: '超過 {{count}} 年' + }, + almostXYears: { + one: '將近 1 年', + other: '將近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +}; + +export default formatDistance; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/_lib/formatLong/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatLong/index.js new file mode 100644 index 00000000..be681335 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatLong/index.js @@ -0,0 +1,34 @@ +import buildFormatLongFn from "../../../_lib/buildFormatLongFn/index.js"; +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: buildFormatLongFn({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: buildFormatLongFn({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: buildFormatLongFn({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +export default formatLong; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/_lib/formatRelative/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatRelative/index.js new file mode 100644 index 00000000..9c1d4500 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/formatRelative/index.js @@ -0,0 +1,14 @@ +var formatRelativeLocale = { + lastWeek: "'上個'eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個'eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +export default formatRelative; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/_lib/localize/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/localize/index.js new file mode 100644 index 00000000..62db493d --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/localize/index.js @@ -0,0 +1,137 @@ +import buildLocalizeFn from "../../../_lib/buildLocalizeFn/index.js"; +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一刻', '第二刻', '第三刻', '第四刻'], + wide: ['第一刻鐘', '第二刻鐘', '第三刻鐘', '第四刻鐘'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number + '日'; + + case 'hour': + return number + '時'; + + case 'minute': + return number + '分'; + + case 'second': + return number + '秒'; + + default: + return '第 ' + number; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: buildLocalizeFn({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: buildLocalizeFn({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: buildLocalizeFn({ + values: monthValues, + defaultWidth: 'wide' + }), + day: buildLocalizeFn({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: buildLocalizeFn({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +export default localize; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/_lib/match/index.js b/node_modules/date-fns/esm/locale/zh-TW/_lib/match/index.js new file mode 100644 index 00000000..3d2b51e7 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/_lib/match/index.js @@ -0,0 +1,96 @@ +import buildMatchFn from "../../../_lib/buildMatchFn/index.js"; +import buildMatchPatternFn from "../../../_lib/buildMatchPatternFn/index.js"; +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]刻/i, + wide: /^第[一二三四]刻鐘/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^週[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: buildMatchPatternFn({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: buildMatchFn({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: buildMatchFn({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: buildMatchFn({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: buildMatchFn({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: buildMatchFn({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +export default match; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/index.d.ts b/node_modules/date-fns/esm/locale/zh-TW/index.d.ts new file mode 100644 index 00000000..745a08f8 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhTW } from 'date-fns/locale' +export default zhTW diff --git a/node_modules/date-fns/esm/locale/zh-TW/index.js b/node_modules/date-fns/esm/locale/zh-TW/index.js new file mode 100644 index 00000000..6b60d526 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/index.js @@ -0,0 +1,31 @@ +import formatDistance from "./_lib/formatDistance/index.js"; +import formatLong from "./_lib/formatLong/index.js"; +import formatRelative from "./_lib/formatRelative/index.js"; +import localize from "./_lib/localize/index.js"; +import match from "./_lib/match/index.js"; +/** + * @type {Locale} + * @category Locales + * @summary Chinese Traditional locale. + * @language Chinese Traditional + * @iso-639-2 zho + * @author tonypai [@tpai]{@link https://github.com/tpai} + * @author Jack Hsu [@jackhsu978]{@link https://github.com/jackhsu978} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + */ + +var locale = { + code: 'zh-TW', + formatDistance: formatDistance, + formatLong: formatLong, + formatRelative: formatRelative, + localize: localize, + match: match, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +export default locale; \ No newline at end of file diff --git a/node_modules/date-fns/esm/locale/zh-TW/index.js.flow b/node_modules/date-fns/esm/locale/zh-TW/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/esm/locale/zh-TW/package.json b/node_modules/date-fns/esm/locale/zh-TW/package.json new file mode 100644 index 00000000..a7398d89 --- /dev/null +++ b/node_modules/date-fns/esm/locale/zh-TW/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/max/index.d.ts b/node_modules/date-fns/esm/max/index.d.ts new file mode 100644 index 00000000..733a96e3 --- /dev/null +++ b/node_modules/date-fns/esm/max/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { max } from 'date-fns' +export default max diff --git a/node_modules/date-fns/esm/max/index.js b/node_modules/date-fns/esm/max/index.js new file mode 100644 index 00000000..30466a39 --- /dev/null +++ b/node_modules/date-fns/esm/max/index.js @@ -0,0 +1,50 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name max + * @category Common Helpers + * @summary Return the latest of the given dates. + * + * @description + * Return the latest of the given dates. + * + * @param {Date[]|Number[]} datesArray - the dates to compare + * @returns {Date} the latest of the dates + * @throws {TypeError} 1 argument required + * + * @example + * // Which of these dates is the latest? + * const result = max([ + * new Date(1989, 6, 10), + * new Date(1987, 1, 11), + * new Date(1995, 6, 2), + * new Date(1990, 0, 1) + * ]) + * //=> Sun Jul 02 1995 00:00:00 + */ + +export default function max(dirtyDatesArray) { + requiredArgs(1, arguments); + var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + + if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. + } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } else { + // `dirtyDatesArray` is non-iterable, return Invalid Date + return new Date(NaN); + } + + var result; + datesArray.forEach(function (dirtyDate) { + var currentDate = toDate(dirtyDate); + + if (result === undefined || result < currentDate || isNaN(Number(currentDate))) { + result = currentDate; + } + }); + return result || new Date(NaN); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/max/index.js.flow b/node_modules/date-fns/esm/max/index.js.flow new file mode 100644 index 00000000..85439094 --- /dev/null +++ b/node_modules/date-fns/esm/max/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (datesArray: (Date | number)[]) => Date diff --git a/node_modules/date-fns/esm/max/package.json b/node_modules/date-fns/esm/max/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/max/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/milliseconds/index.d.ts b/node_modules/date-fns/esm/milliseconds/index.d.ts new file mode 100644 index 00000000..6927b520 --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { milliseconds } from 'date-fns' +export default milliseconds diff --git a/node_modules/date-fns/esm/milliseconds/index.js b/node_modules/date-fns/esm/milliseconds/index.js new file mode 100644 index 00000000..2b675618 --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/index.js @@ -0,0 +1,54 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +// Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. +// 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +var daysInYear = 365.2425; +/** + * @name milliseconds + * @category Millisecond Helpers + * @summary + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * @description + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + * + * One month is a year divided by 12. + * + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {number} the milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // 1 year in milliseconds + * milliseconds({ years: 1 }) + * //=> 31556952000 + * + * // 3 months in milliseconds + * milliseconds({ months: 3 }) + * //=> 7889238000 + */ + +export default function milliseconds(_ref) { + var years = _ref.years, + months = _ref.months, + weeks = _ref.weeks, + days = _ref.days, + hours = _ref.hours, + minutes = _ref.minutes, + seconds = _ref.seconds; + requiredArgs(1, arguments); + var totalDays = 0; + if (years) totalDays += years * daysInYear; + if (months) totalDays += months * (daysInYear / 12); + if (weeks) totalDays += weeks * 7; + if (days) totalDays += days; + var totalSeconds = totalDays * 24 * 60 * 60; + if (hours) totalSeconds += hours * 60 * 60; + if (minutes) totalSeconds += minutes * 60; + if (seconds) totalSeconds += seconds; + return Math.round(totalSeconds * 1000); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/milliseconds/index.js.flow b/node_modules/date-fns/esm/milliseconds/index.js.flow new file mode 100644 index 00000000..5ca1b36c --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (duration: Duration) => number diff --git a/node_modules/date-fns/esm/milliseconds/package.json b/node_modules/date-fns/esm/milliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/milliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToHours/index.d.ts b/node_modules/date-fns/esm/millisecondsToHours/index.d.ts new file mode 100644 index 00000000..af90bf83 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToHours } from 'date-fns' +export default millisecondsToHours diff --git a/node_modules/date-fns/esm/millisecondsToHours/index.js b/node_modules/date-fns/esm/millisecondsToHours/index.js new file mode 100644 index 00000000..bd579906 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToHours/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInHour } from "../constants/index.js"; +/** + * @name millisecondsToHours + * @category Conversion Helpers + * @summary Convert milliseconds to hours. + * + * @description + * Convert a number of milliseconds to a full number of hours. + * + * @param {number} milliseconds - number of milliseconds to be converted + * + * @returns {number} the number of milliseconds converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 7200000 milliseconds to hours: + * const result = millisecondsToHours(7200000) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToHours(7199999) + * //=> 1 + */ + +export default function millisecondsToHours(milliseconds) { + requiredArgs(1, arguments); + var hours = milliseconds / millisecondsInHour; + return Math.floor(hours); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToHours/index.js.flow b/node_modules/date-fns/esm/millisecondsToHours/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/esm/millisecondsToHours/package.json b/node_modules/date-fns/esm/millisecondsToHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToMinutes/index.d.ts b/node_modules/date-fns/esm/millisecondsToMinutes/index.d.ts new file mode 100644 index 00000000..ea008090 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToMinutes } from 'date-fns' +export default millisecondsToMinutes diff --git a/node_modules/date-fns/esm/millisecondsToMinutes/index.js b/node_modules/date-fns/esm/millisecondsToMinutes/index.js new file mode 100644 index 00000000..e4a86dff --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToMinutes/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInMinute } from "../constants/index.js"; +/** + * @name millisecondsToMinutes + * @category Conversion Helpers + * @summary Convert milliseconds to minutes. + * + * @description + * Convert a number of milliseconds to a full number of minutes. + * + * @param {number} milliseconds - number of milliseconds to be converted. + * + * @returns {number} the number of milliseconds converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 60000 milliseconds to minutes: + * const result = millisecondsToMinutes(60000) + * //=> 1 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToMinutes(119999) + * //=> 1 + */ + +export default function millisecondsToMinutes(milliseconds) { + requiredArgs(1, arguments); + var minutes = milliseconds / millisecondsInMinute; + return Math.floor(minutes); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToMinutes/index.js.flow b/node_modules/date-fns/esm/millisecondsToMinutes/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/esm/millisecondsToMinutes/package.json b/node_modules/date-fns/esm/millisecondsToMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToSeconds/index.d.ts b/node_modules/date-fns/esm/millisecondsToSeconds/index.d.ts new file mode 100644 index 00000000..d761abd6 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToSeconds } from 'date-fns' +export default millisecondsToSeconds diff --git a/node_modules/date-fns/esm/millisecondsToSeconds/index.js b/node_modules/date-fns/esm/millisecondsToSeconds/index.js new file mode 100644 index 00000000..773a0416 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToSeconds/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInSecond } from "../constants/index.js"; +/** + * @name millisecondsToSeconds + * @category Conversion Helpers + * @summary Convert milliseconds to seconds. + * + * @description + * Convert a number of milliseconds to a full number of seconds. + * + * @param {number} milliseconds - number of milliseconds to be converted + * + * @returns {number} the number of milliseconds converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 1000 miliseconds to seconds: + * const result = millisecondsToSeconds(1000) + * //=> 1 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToSeconds(1999) + * //=> 1 + */ + +export default function millisecondsToSeconds(milliseconds) { + requiredArgs(1, arguments); + var seconds = milliseconds / millisecondsInSecond; + return Math.floor(seconds); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/millisecondsToSeconds/index.js.flow b/node_modules/date-fns/esm/millisecondsToSeconds/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/esm/millisecondsToSeconds/package.json b/node_modules/date-fns/esm/millisecondsToSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/millisecondsToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/min/index.d.ts b/node_modules/date-fns/esm/min/index.d.ts new file mode 100644 index 00000000..f7227e7d --- /dev/null +++ b/node_modules/date-fns/esm/min/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { min } from 'date-fns' +export default min diff --git a/node_modules/date-fns/esm/min/index.js b/node_modules/date-fns/esm/min/index.js new file mode 100644 index 00000000..6c24b1cd --- /dev/null +++ b/node_modules/date-fns/esm/min/index.js @@ -0,0 +1,50 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name min + * @category Common Helpers + * @summary Returns the earliest of the given dates. + * + * @description + * Returns the earliest of the given dates. + * + * @param {Date[]|Number[]} datesArray - the dates to compare + * @returns {Date} - the earliest of the dates + * @throws {TypeError} 1 argument required + * + * @example + * // Which of these dates is the earliest? + * const result = min([ + * new Date(1989, 6, 10), + * new Date(1987, 1, 11), + * new Date(1995, 6, 2), + * new Date(1990, 0, 1) + * ]) + * //=> Wed Feb 11 1987 00:00:00 + */ + +export default function min(dirtyDatesArray) { + requiredArgs(1, arguments); + var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + + if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. + } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } else { + // `dirtyDatesArray` is non-iterable, return Invalid Date + return new Date(NaN); + } + + var result; + datesArray.forEach(function (dirtyDate) { + var currentDate = toDate(dirtyDate); + + if (result === undefined || result > currentDate || isNaN(currentDate.getDate())) { + result = currentDate; + } + }); + return result || new Date(NaN); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/min/index.js.flow b/node_modules/date-fns/esm/min/index.js.flow new file mode 100644 index 00000000..85439094 --- /dev/null +++ b/node_modules/date-fns/esm/min/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (datesArray: (Date | number)[]) => Date diff --git a/node_modules/date-fns/esm/min/package.json b/node_modules/date-fns/esm/min/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/min/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToHours/index.d.ts b/node_modules/date-fns/esm/minutesToHours/index.d.ts new file mode 100644 index 00000000..d29fb020 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToHours } from 'date-fns' +export default minutesToHours diff --git a/node_modules/date-fns/esm/minutesToHours/index.js b/node_modules/date-fns/esm/minutesToHours/index.js new file mode 100644 index 00000000..1a2caebe --- /dev/null +++ b/node_modules/date-fns/esm/minutesToHours/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { minutesInHour } from "../constants/index.js"; +/** + * @name minutesToHours + * @category Conversion Helpers + * @summary Convert minutes to hours. + * + * @description + * Convert a number of minutes to a full number of hours. + * + * @param {number} minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 140 minutes to hours: + * const result = minutesToHours(120) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = minutesToHours(179) + * //=> 2 + */ + +export default function minutesToHours(minutes) { + requiredArgs(1, arguments); + var hours = minutes / minutesInHour; + return Math.floor(hours); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToHours/index.js.flow b/node_modules/date-fns/esm/minutesToHours/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/esm/minutesToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/esm/minutesToHours/package.json b/node_modules/date-fns/esm/minutesToHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToMilliseconds/index.d.ts b/node_modules/date-fns/esm/minutesToMilliseconds/index.d.ts new file mode 100644 index 00000000..14b55130 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToMilliseconds } from 'date-fns' +export default minutesToMilliseconds diff --git a/node_modules/date-fns/esm/minutesToMilliseconds/index.js b/node_modules/date-fns/esm/minutesToMilliseconds/index.js new file mode 100644 index 00000000..3b2c7f87 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToMilliseconds/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInMinute } from "../constants/index.js"; +/** + * @name minutesToMilliseconds + * @category Conversion Helpers + * @summary Convert minutes to milliseconds. + * + * @description + * Convert a number of minutes to a full number of milliseconds. + * + * @param {number} minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 minutes to milliseconds + * const result = minutesToMilliseconds(2) + * //=> 120000 + */ + +export default function minutesToMilliseconds(minutes) { + requiredArgs(1, arguments); + return Math.floor(minutes * millisecondsInMinute); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToMilliseconds/index.js.flow b/node_modules/date-fns/esm/minutesToMilliseconds/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/esm/minutesToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/esm/minutesToMilliseconds/package.json b/node_modules/date-fns/esm/minutesToMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToSeconds/index.d.ts b/node_modules/date-fns/esm/minutesToSeconds/index.d.ts new file mode 100644 index 00000000..7998c9b3 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToSeconds } from 'date-fns' +export default minutesToSeconds diff --git a/node_modules/date-fns/esm/minutesToSeconds/index.js b/node_modules/date-fns/esm/minutesToSeconds/index.js new file mode 100644 index 00000000..6c821b5e --- /dev/null +++ b/node_modules/date-fns/esm/minutesToSeconds/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { secondsInMinute } from "../constants/index.js"; +/** + * @name minutesToSeconds + * @category Conversion Helpers + * @summary Convert minutes to seconds. + * + * @description + * Convert a number of minutes to a full number of seconds. + * + * @param { number } minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 minutes to seconds + * const result = minutesToSeconds(2) + * //=> 120 + */ + +export default function minutesToSeconds(minutes) { + requiredArgs(1, arguments); + return Math.floor(minutes * secondsInMinute); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/minutesToSeconds/index.js.flow b/node_modules/date-fns/esm/minutesToSeconds/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/esm/minutesToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/esm/minutesToSeconds/package.json b/node_modules/date-fns/esm/minutesToSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/minutesToSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/monthsToQuarters/index.d.ts b/node_modules/date-fns/esm/monthsToQuarters/index.d.ts new file mode 100644 index 00000000..895b1a96 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToQuarters } from 'date-fns' +export default monthsToQuarters diff --git a/node_modules/date-fns/esm/monthsToQuarters/index.js b/node_modules/date-fns/esm/monthsToQuarters/index.js new file mode 100644 index 00000000..6683afd2 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToQuarters/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { monthsInQuarter } from "../constants/index.js"; +/** + * @name monthsToQuarters + * @category Conversion Helpers + * @summary Convert number of months to quarters. + * + * @description + * Convert a number of months to a full number of quarters. + * + * @param {number} months - number of months to be converted. + * + * @returns {number} the number of months converted in quarters + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 6 months to quarters: + * const result = monthsToQuarters(6) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = monthsToQuarters(7) + * //=> 2 + */ + +export default function monthsToQuarters(months) { + requiredArgs(1, arguments); + var quarters = months / monthsInQuarter; + return Math.floor(quarters); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/monthsToQuarters/index.js.flow b/node_modules/date-fns/esm/monthsToQuarters/index.js.flow new file mode 100644 index 00000000..de9ea9b1 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (months: number) => number diff --git a/node_modules/date-fns/esm/monthsToQuarters/package.json b/node_modules/date-fns/esm/monthsToQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/monthsToYears/index.d.ts b/node_modules/date-fns/esm/monthsToYears/index.d.ts new file mode 100644 index 00000000..16c41fb0 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToYears } from 'date-fns' +export default monthsToYears diff --git a/node_modules/date-fns/esm/monthsToYears/index.js b/node_modules/date-fns/esm/monthsToYears/index.js new file mode 100644 index 00000000..8577f0a6 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToYears/index.js @@ -0,0 +1,30 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { monthsInYear } from "../constants/index.js"; +/** + * @name monthsToYears + * @category Conversion Helpers + * @summary Convert number of months to years. + * + * @description + * Convert a number of months to a full number of years. + * + * @param {number} months - number of months to be converted + * + * @returns {number} the number of months converted in years + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 36 months to years: + * const result = monthsToYears(36) + * //=> 3 + * + * // It uses floor rounding: + * const result = monthsToYears(40) + * //=> 3 + */ + +export default function monthsToYears(months) { + requiredArgs(1, arguments); + var years = months / monthsInYear; + return Math.floor(years); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/monthsToYears/index.js.flow b/node_modules/date-fns/esm/monthsToYears/index.js.flow new file mode 100644 index 00000000..de9ea9b1 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (months: number) => number diff --git a/node_modules/date-fns/esm/monthsToYears/package.json b/node_modules/date-fns/esm/monthsToYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/monthsToYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextDay/index.d.ts b/node_modules/date-fns/esm/nextDay/index.d.ts new file mode 100644 index 00000000..ed096730 --- /dev/null +++ b/node_modules/date-fns/esm/nextDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextDay } from 'date-fns' +export default nextDay diff --git a/node_modules/date-fns/esm/nextDay/index.js b/node_modules/date-fns/esm/nextDay/index.js new file mode 100644 index 00000000..a8a77167 --- /dev/null +++ b/node_modules/date-fns/esm/nextDay/index.js @@ -0,0 +1,33 @@ +import addDays from "../addDays/index.js"; +import getDay from "../getDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextDay + * @category Weekday Helpers + * @summary When is the next day of the week? + * + * @description + * When is the next day of the week? 0-6 the day of the week, 0 represents Sunday. + * + * @param {Date | number} date - the date to check + * @param {Day} day - day of the week + * @returns {Date} - the date is the next day of week + * @throws {TypeError} - 2 arguments required + * + * @example + * // When is the next Monday after Mar, 20, 2020? + * const result = nextDay(new Date(2020, 2, 20), 1) + * //=> Mon Mar 23 2020 00:00:00 + * + * @example + * // When is the next Tuesday after Mar, 21, 2020? + * const result = nextDay(new Date(2020, 2, 21), 2) + * //=> Tue Mar 24 2020 00:00:00 + */ + +export default function nextDay(date, day) { + requiredArgs(2, arguments); + var delta = day - getDay(date); + if (delta <= 0) delta += 7; + return addDays(date, delta); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextDay/index.js.flow b/node_modules/date-fns/esm/nextDay/index.js.flow new file mode 100644 index 00000000..4b45d7f7 --- /dev/null +++ b/node_modules/date-fns/esm/nextDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: Day) => Date diff --git a/node_modules/date-fns/esm/nextDay/package.json b/node_modules/date-fns/esm/nextDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextFriday/index.d.ts b/node_modules/date-fns/esm/nextFriday/index.d.ts new file mode 100644 index 00000000..1ea773cd --- /dev/null +++ b/node_modules/date-fns/esm/nextFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextFriday } from 'date-fns' +export default nextFriday diff --git a/node_modules/date-fns/esm/nextFriday/index.js b/node_modules/date-fns/esm/nextFriday/index.js new file mode 100644 index 00000000..de7c6c31 --- /dev/null +++ b/node_modules/date-fns/esm/nextFriday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextFriday + * @category Weekday Helpers + * @summary When is the next Friday? + * + * @description + * When is the next Friday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Friday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Friday after Mar, 22, 2020? + * const result = nextFriday(new Date(2020, 2, 22)) + * //=> Fri Mar 27 2020 00:00:00 + */ + +export default function nextFriday(date) { + requiredArgs(1, arguments); + return nextDay(date, 5); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextFriday/index.js.flow b/node_modules/date-fns/esm/nextFriday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextFriday/package.json b/node_modules/date-fns/esm/nextFriday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextMonday/index.d.ts b/node_modules/date-fns/esm/nextMonday/index.d.ts new file mode 100644 index 00000000..d2668868 --- /dev/null +++ b/node_modules/date-fns/esm/nextMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextMonday } from 'date-fns' +export default nextMonday diff --git a/node_modules/date-fns/esm/nextMonday/index.js b/node_modules/date-fns/esm/nextMonday/index.js new file mode 100644 index 00000000..7c5fb21d --- /dev/null +++ b/node_modules/date-fns/esm/nextMonday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextMonday + * @category Weekday Helpers + * @summary When is the next Monday? + * + * @description + * When is the next Monday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Monday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Monday after Mar, 22, 2020? + * const result = nextMonday(new Date(2020, 2, 22)) + * //=> Mon Mar 23 2020 00:00:00 + */ + +export default function nextMonday(date) { + requiredArgs(1, arguments); + return nextDay(date, 1); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextMonday/index.js.flow b/node_modules/date-fns/esm/nextMonday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextMonday/package.json b/node_modules/date-fns/esm/nextMonday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextSaturday/index.d.ts b/node_modules/date-fns/esm/nextSaturday/index.d.ts new file mode 100644 index 00000000..20532f75 --- /dev/null +++ b/node_modules/date-fns/esm/nextSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSaturday } from 'date-fns' +export default nextSaturday diff --git a/node_modules/date-fns/esm/nextSaturday/index.js b/node_modules/date-fns/esm/nextSaturday/index.js new file mode 100644 index 00000000..92d8fef6 --- /dev/null +++ b/node_modules/date-fns/esm/nextSaturday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextSaturday + * @category Weekday Helpers + * @summary When is the next Saturday? + * + * @description + * When is the next Saturday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Saturday after Mar, 22, 2020? + * const result = nextSaturday(new Date(2020, 2, 22)) + * //=> Sat Mar 28 2020 00:00:00 + */ + +export default function nextSaturday(date) { + requiredArgs(1, arguments); + return nextDay(date, 6); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextSaturday/index.js.flow b/node_modules/date-fns/esm/nextSaturday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextSaturday/package.json b/node_modules/date-fns/esm/nextSaturday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextSunday/index.d.ts b/node_modules/date-fns/esm/nextSunday/index.d.ts new file mode 100644 index 00000000..e0a7965f --- /dev/null +++ b/node_modules/date-fns/esm/nextSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSunday } from 'date-fns' +export default nextSunday diff --git a/node_modules/date-fns/esm/nextSunday/index.js b/node_modules/date-fns/esm/nextSunday/index.js new file mode 100644 index 00000000..0d0959d2 --- /dev/null +++ b/node_modules/date-fns/esm/nextSunday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextSunday + * @category Weekday Helpers + * @summary When is the next Sunday? + * + * @description + * When is the next Sunday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Sunday after Mar, 22, 2020? + * const result = nextSunday(new Date(2020, 2, 22)) + * //=> Sun Mar 29 2020 00:00:00 + */ + +export default function nextSunday(date) { + requiredArgs(1, arguments); + return nextDay(date, 0); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextSunday/index.js.flow b/node_modules/date-fns/esm/nextSunday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextSunday/package.json b/node_modules/date-fns/esm/nextSunday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextThursday/index.d.ts b/node_modules/date-fns/esm/nextThursday/index.d.ts new file mode 100644 index 00000000..092c3ba9 --- /dev/null +++ b/node_modules/date-fns/esm/nextThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextThursday } from 'date-fns' +export default nextThursday diff --git a/node_modules/date-fns/esm/nextThursday/index.js b/node_modules/date-fns/esm/nextThursday/index.js new file mode 100644 index 00000000..72b549c8 --- /dev/null +++ b/node_modules/date-fns/esm/nextThursday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextThursday + * @category Weekday Helpers + * @summary When is the next Thursday? + * + * @description + * When is the next Thursday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Thursday after Mar, 22, 2020? + * const result = nextThursday(new Date(2020, 2, 22)) + * //=> Thur Mar 26 2020 00:00:00 + */ + +export default function nextThursday(date) { + requiredArgs(1, arguments); + return nextDay(date, 4); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextThursday/index.js.flow b/node_modules/date-fns/esm/nextThursday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextThursday/package.json b/node_modules/date-fns/esm/nextThursday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextTuesday/index.d.ts b/node_modules/date-fns/esm/nextTuesday/index.d.ts new file mode 100644 index 00000000..0e332acf --- /dev/null +++ b/node_modules/date-fns/esm/nextTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextTuesday } from 'date-fns' +export default nextTuesday diff --git a/node_modules/date-fns/esm/nextTuesday/index.js b/node_modules/date-fns/esm/nextTuesday/index.js new file mode 100644 index 00000000..c7e1dad8 --- /dev/null +++ b/node_modules/date-fns/esm/nextTuesday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextTuesday + * @category Weekday Helpers + * @summary When is the next Tuesday? + * + * @description + * When is the next Tuesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Tuesday after Mar, 22, 2020? + * const result = nextTuesday(new Date(2020, 2, 22)) + * //=> Tue Mar 24 2020 00:00:00 + */ + +export default function nextTuesday(date) { + requiredArgs(1, arguments); + return nextDay(date, 2); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextTuesday/index.js.flow b/node_modules/date-fns/esm/nextTuesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextTuesday/package.json b/node_modules/date-fns/esm/nextTuesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextWednesday/index.d.ts b/node_modules/date-fns/esm/nextWednesday/index.d.ts new file mode 100644 index 00000000..42f7eb3c --- /dev/null +++ b/node_modules/date-fns/esm/nextWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextWednesday } from 'date-fns' +export default nextWednesday diff --git a/node_modules/date-fns/esm/nextWednesday/index.js b/node_modules/date-fns/esm/nextWednesday/index.js new file mode 100644 index 00000000..db67599d --- /dev/null +++ b/node_modules/date-fns/esm/nextWednesday/index.js @@ -0,0 +1,24 @@ +import nextDay from "../nextDay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name nextWednesday + * @category Weekday Helpers + * @summary When is the next Wednesday? + * + * @description + * When is the next Wednesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Wednesday after Mar, 22, 2020? + * const result = nextWednesday(new Date(2020, 2, 22)) + * //=> Wed Mar 25 2020 00:00:00 + */ + +export default function nextWednesday(date) { + requiredArgs(1, arguments); + return nextDay(date, 3); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/nextWednesday/index.js.flow b/node_modules/date-fns/esm/nextWednesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/nextWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/nextWednesday/package.json b/node_modules/date-fns/esm/nextWednesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/nextWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/Parser.js b/node_modules/date-fns/esm/parse/_lib/Parser.js new file mode 100644 index 00000000..b73b8acd --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/Parser.js @@ -0,0 +1,35 @@ +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +import { ValueSetter } from "./Setter.js"; +export var Parser = /*#__PURE__*/function () { + function Parser() { + _classCallCheck(this, Parser); + } + + _createClass(Parser, [{ + key: "run", + value: function run(dateString, token, match, options) { + var result = this.parse(dateString, token, match, options); + + if (!result) { + return null; + } + + return { + setter: new ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), + rest: result.rest + }; + } + }, { + key: "validate", + value: function validate(_utcDate, _value, _options) { + return true; + } + }]); + + return Parser; +}(); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/Setter.js b/node_modules/date-fns/esm/parse/_lib/Setter.js new file mode 100644 index 00000000..dc1fc43a --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/Setter.js @@ -0,0 +1,117 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var TIMEZONE_UNIT_PRIORITY = 10; +export var Setter = /*#__PURE__*/function () { + function Setter() { + _classCallCheck(this, Setter); + + _defineProperty(this, "subPriority", 0); + } + + _createClass(Setter, [{ + key: "validate", + value: function validate(_utcDate, _options) { + return true; + } + }]); + + return Setter; +}(); +export var ValueSetter = /*#__PURE__*/function (_Setter) { + _inherits(ValueSetter, _Setter); + + var _super = _createSuper(ValueSetter); + + function ValueSetter(value, validateValue, setValue, priority, subPriority) { + var _this; + + _classCallCheck(this, ValueSetter); + + _this = _super.call(this); + _this.value = value; + _this.validateValue = validateValue; + _this.setValue = setValue; + _this.priority = priority; + + if (subPriority) { + _this.subPriority = subPriority; + } + + return _this; + } + + _createClass(ValueSetter, [{ + key: "validate", + value: function validate(utcDate, options) { + return this.validateValue(utcDate, this.value, options); + } + }, { + key: "set", + value: function set(utcDate, flags, options) { + return this.setValue(utcDate, flags, this.value, options); + } + }]); + + return ValueSetter; +}(Setter); +export var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) { + _inherits(DateToSystemTimezoneSetter, _Setter2); + + var _super2 = _createSuper(DateToSystemTimezoneSetter); + + function DateToSystemTimezoneSetter() { + var _this2; + + _classCallCheck(this, DateToSystemTimezoneSetter); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this2 = _super2.call.apply(_super2, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this2), "priority", TIMEZONE_UNIT_PRIORITY); + + _defineProperty(_assertThisInitialized(_this2), "subPriority", -1); + + return _this2; + } + + _createClass(DateToSystemTimezoneSetter, [{ + key: "set", + value: function set(date, flags) { + if (flags.timestampIsSet) { + return date; + } + + var convertedDate = new Date(0); + convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); + convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); + return convertedDate; + } + }]); + + return DateToSystemTimezoneSetter; +}(Setter); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/constants.js b/node_modules/date-fns/esm/parse/_lib/constants.js new file mode 100644 index 00000000..e86388ca --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/constants.js @@ -0,0 +1,46 @@ +export var numericPatterns = { + month: /^(1[0-2]|0?\d)/, + // 0 to 12 + date: /^(3[0-1]|[0-2]?\d)/, + // 0 to 31 + dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, + // 0 to 366 + week: /^(5[0-3]|[0-4]?\d)/, + // 0 to 53 + hour23h: /^(2[0-3]|[0-1]?\d)/, + // 0 to 23 + hour24h: /^(2[0-4]|[0-1]?\d)/, + // 0 to 24 + hour11h: /^(1[0-1]|0?\d)/, + // 0 to 11 + hour12h: /^(1[0-2]|0?\d)/, + // 0 to 12 + minute: /^[0-5]?\d/, + // 0 to 59 + second: /^[0-5]?\d/, + // 0 to 59 + singleDigit: /^\d/, + // 0 to 9 + twoDigits: /^\d{1,2}/, + // 0 to 99 + threeDigits: /^\d{1,3}/, + // 0 to 999 + fourDigits: /^\d{1,4}/, + // 0 to 9999 + anyDigitsSigned: /^-?\d+/, + singleDigitSigned: /^-?\d/, + // 0 to 9, -0 to -9 + twoDigitsSigned: /^-?\d{1,2}/, + // 0 to 99, -0 to -99 + threeDigitsSigned: /^-?\d{1,3}/, + // 0 to 999, -0 to -999 + fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 + +}; +export var timezonePatterns = { + basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, + basic: /^([+-])(\d{2})(\d{2})|Z/, + basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, + extended: /^([+-])(\d{2}):(\d{2})|Z/, + extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ +}; \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js new file mode 100644 index 00000000..b6c354e6 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js @@ -0,0 +1,94 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { dayPeriodEnumToHours } from "../utils.js"; +export var AMPMMidnightParser = /*#__PURE__*/function (_Parser) { + _inherits(AMPMMidnightParser, _Parser); + + var _super = _createSuper(AMPMMidnightParser); + + function AMPMMidnightParser() { + var _this; + + _classCallCheck(this, AMPMMidnightParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(AMPMMidnightParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'b': + case 'bb': + case 'bbb': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbbb': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + } + }]); + + return AMPMMidnightParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js new file mode 100644 index 00000000..9903f6f4 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js @@ -0,0 +1,94 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { dayPeriodEnumToHours } from "../utils.js"; +export var AMPMParser = /*#__PURE__*/function (_Parser) { + _inherits(AMPMParser, _Parser); + + var _super = _createSuper(AMPMParser); + + function AMPMParser() { + var _this; + + _classCallCheck(this, AMPMParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(AMPMParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'a': + case 'aa': + case 'aaa': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaaa': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + } + }]); + + return AMPMParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js new file mode 100644 index 00000000..d3f313cd --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js @@ -0,0 +1,95 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { isLeapYearIndex, parseNDigits, parseNumericPattern } from "../utils.js"; +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month + +export var DateParser = /*#__PURE__*/function (_Parser) { + _inherits(DateParser, _Parser); + + var _super = _createSuper(DateParser); + + function DateParser() { + var _this; + + _classCallCheck(this, DateParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "subPriority", 1); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DateParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'd': + return parseNumericPattern(numericPatterns.date, dateString); + + case 'do': + return match.ordinalNumber(dateString, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(date, value) { + var year = date.getUTCFullYear(); + var isLeapYear = isLeapYearIndex(year); + var month = date.getUTCMonth(); + + if (isLeapYear) { + return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; + } else { + return value >= 1 && value <= DAYS_IN_MONTH[month]; + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCDate(value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DateParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js new file mode 100644 index 00000000..4db155b8 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js @@ -0,0 +1,92 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits, isLeapYearIndex } from "../utils.js"; +export var DayOfYearParser = /*#__PURE__*/function (_Parser) { + _inherits(DayOfYearParser, _Parser); + + var _super = _createSuper(DayOfYearParser); + + function DayOfYearParser() { + var _this; + + _classCallCheck(this, DayOfYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "subpriority", 1); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DayOfYearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'D': + case 'DD': + return parseNumericPattern(numericPatterns.dayOfYear, dateString); + + case 'Do': + return match.ordinalNumber(dateString, { + unit: 'date' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(date, value) { + var year = date.getUTCFullYear(); + var isLeapYear = isLeapYearIndex(year); + + if (isLeapYear) { + return value >= 1 && value <= 366; + } else { + return value >= 1 && value <= 365; + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(0, value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DayOfYearParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js new file mode 100644 index 00000000..ec4f2806 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js @@ -0,0 +1,120 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import setUTCDay from "../../../_lib/setUTCDay/index.js"; // Day of week + +export var DayParser = /*#__PURE__*/function (_Parser) { + _inherits(DayParser, _Parser); + + var _super = _createSuper(DayParser); + + function DayParser() { + var _this; + + _classCallCheck(this, DayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DayParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'EEEEE': + return match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DayParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js new file mode 100644 index 00000000..fd924bab --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js @@ -0,0 +1,95 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { dayPeriodEnumToHours } from "../utils.js"; // in the morning, in the afternoon, in the evening, at night + +export var DayPeriodParser = /*#__PURE__*/function (_Parser) { + _inherits(DayPeriodParser, _Parser); + + var _super = _createSuper(DayPeriodParser); + + function DayPeriodParser() { + var _this; + + _classCallCheck(this, DayPeriodParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 't', 'T']); + + return _this; + } + + _createClass(DayPeriodParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBBB': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0); + return date; + } + }]); + + return DayPeriodParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js new file mode 100644 index 00000000..9139905f --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js @@ -0,0 +1,92 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +export var EraParser = /*#__PURE__*/function (_Parser) { + _inherits(EraParser, _Parser); + + var _super = _createSuper(EraParser); + + function EraParser() { + var _this; + + _classCallCheck(this, EraParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 140); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['R', 'u', 't', 'T']); + + return _this; + } + + _createClass(EraParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return match.era(dateString, { + width: 'abbreviated' + }) || match.era(dateString, { + width: 'narrow' + }); + // A, B + + case 'GGGGG': + return match.era(dateString, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return match.era(dateString, { + width: 'wide' + }) || match.era(dateString, { + width: 'abbreviated' + }) || match.era(dateString, { + width: 'narrow' + }); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + flags.era = value; + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return EraParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js new file mode 100644 index 00000000..00969e47 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js @@ -0,0 +1,69 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseNDigitsSigned } from "../utils.js"; +export var ExtendedYearParser = /*#__PURE__*/function (_Parser) { + _inherits(ExtendedYearParser, _Parser); + + var _super = _createSuper(ExtendedYearParser); + + function ExtendedYearParser() { + var _this; + + _classCallCheck(this, ExtendedYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ExtendedYearParser, [{ + key: "parse", + value: function parse(dateString, token) { + if (token === 'u') { + return parseNDigitsSigned(4, dateString); + } + + return parseNDigitsSigned(token.length, dateString); + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return ExtendedYearParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js new file mode 100644 index 00000000..dcd80270 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js @@ -0,0 +1,68 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { mapValue, parseNDigits } from "../utils.js"; +export var FractionOfSecondParser = /*#__PURE__*/function (_Parser) { + _inherits(FractionOfSecondParser, _Parser); + + var _super = _createSuper(FractionOfSecondParser); + + function FractionOfSecondParser() { + var _this; + + _classCallCheck(this, FractionOfSecondParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 30); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(FractionOfSecondParser, [{ + key: "parse", + value: function parse(dateString, token) { + var valueCallback = function valueCallback(value) { + return Math.floor(value * Math.pow(10, -token.length + 3)); + }; + + return mapValue(parseNDigits(token.length, dateString), valueCallback); + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMilliseconds(value); + return date; + } + }]); + + return FractionOfSecondParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js b/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js new file mode 100644 index 00000000..dc0f2cca --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js @@ -0,0 +1,88 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var Hour0To11Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour0To11Parser, _Parser); + + var _super = _createSuper(Hour0To11Parser); + + function Hour0To11Parser() { + var _this; + + _classCallCheck(this, Hour0To11Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour0To11Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'K': + return parseNumericPattern(numericPatterns.hour11h, dateString); + + case 'Ko': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var isPM = date.getUTCHours() >= 12; + + if (isPM && value < 12) { + date.setUTCHours(value + 12, 0, 0, 0); + } else { + date.setUTCHours(value, 0, 0, 0); + } + + return date; + } + }]); + + return Hour0To11Parser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js b/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js new file mode 100644 index 00000000..a9539522 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js @@ -0,0 +1,81 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var Hour0to23Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour0to23Parser, _Parser); + + var _super = _createSuper(Hour0to23Parser); + + function Hour0to23Parser() { + var _this; + + _classCallCheck(this, Hour0to23Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour0to23Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'H': + return parseNumericPattern(numericPatterns.hour23h, dateString); + + case 'Ho': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 23; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours(value, 0, 0, 0); + return date; + } + }]); + + return Hour0to23Parser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js b/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js new file mode 100644 index 00000000..f32fb070 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js @@ -0,0 +1,82 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var Hour1To24Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour1To24Parser, _Parser); + + var _super = _createSuper(Hour1To24Parser); + + function Hour1To24Parser() { + var _this; + + _classCallCheck(this, Hour1To24Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']); + + return _this; + } + + _createClass(Hour1To24Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'k': + return parseNumericPattern(numericPatterns.hour24h, dateString); + + case 'ko': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 24; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var hours = value <= 24 ? value % 24 : value; + date.setUTCHours(hours, 0, 0, 0); + return date; + } + }]); + + return Hour1To24Parser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js b/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js new file mode 100644 index 00000000..f3c36305 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js @@ -0,0 +1,90 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var Hour1to12Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour1to12Parser, _Parser); + + var _super = _createSuper(Hour1to12Parser); + + function Hour1to12Parser() { + var _this; + + _classCallCheck(this, Hour1to12Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour1to12Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'h': + return parseNumericPattern(numericPatterns.hour12h, dateString); + + case 'ho': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 12; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var isPM = date.getUTCHours() >= 12; + + if (isPM && value < 12) { + date.setUTCHours(value + 12, 0, 0, 0); + } else if (!isPM && value === 12) { + date.setUTCHours(0, 0, 0, 0); + } else { + date.setUTCHours(value, 0, 0, 0); + } + + return date; + } + }]); + + return Hour1to12Parser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js new file mode 100644 index 00000000..3232ba83 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js @@ -0,0 +1,139 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { mapValue, parseNDigits } from "../utils.js"; +import setUTCISODay from "../../../_lib/setUTCISODay/index.js"; // ISO day of week + +export var ISODayParser = /*#__PURE__*/function (_Parser) { + _inherits(ISODayParser, _Parser); + + var _super = _createSuper(ISODayParser); + + function ISODayParser() { + var _this; + + _classCallCheck(this, ISODayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISODayParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + if (value === 0) { + return 7; + } + + return value; + }; + + switch (token) { + // 2 + case 'i': + case 'ii': + // 02 + return parseNDigits(token.length, dateString); + // 2nd + + case 'io': + return match.ordinalNumber(dateString, { + unit: 'day' + }); + // Tue + + case 'iii': + return mapValue(match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // T + + case 'iiiii': + return mapValue(match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // Tu + + case 'iiiiii': + return mapValue(match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // Tuesday + + case 'iiii': + default: + return mapValue(match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 7; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date = setUTCISODay(date, value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return ISODayParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js new file mode 100644 index 00000000..a7c3a29d --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js @@ -0,0 +1,85 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { timezonePatterns } from "../constants.js"; +import { parseTimezonePattern } from "../utils.js"; // Timezone (ISO-8601) + +export var ISOTimezoneParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOTimezoneParser, _Parser); + + var _super = _createSuper(ISOTimezoneParser); + + function ISOTimezoneParser() { + var _this; + + _classCallCheck(this, ISOTimezoneParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 10); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'X']); + + return _this; + } + + _createClass(ISOTimezoneParser, [{ + key: "parse", + value: function parse(dateString, token) { + switch (token) { + case 'x': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString); + + case 'xx': + return parseTimezonePattern(timezonePatterns.basic, dateString); + + case 'xxxx': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString); + + case 'xxxxx': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString); + + case 'xxx': + default: + return parseTimezonePattern(timezonePatterns.extended, dateString); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + } + }]); + + return ISOTimezoneParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js new file mode 100644 index 00000000..1f206e07 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js @@ -0,0 +1,85 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { timezonePatterns } from "../constants.js"; +import { parseTimezonePattern } from "../utils.js"; // Timezone (ISO-8601. +00:00 is `'Z'`) + +export var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOTimezoneWithZParser, _Parser); + + var _super = _createSuper(ISOTimezoneWithZParser); + + function ISOTimezoneWithZParser() { + var _this; + + _classCallCheck(this, ISOTimezoneWithZParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 10); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'x']); + + return _this; + } + + _createClass(ISOTimezoneWithZParser, [{ + key: "parse", + value: function parse(dateString, token) { + switch (token) { + case 'X': + return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, dateString); + + case 'XX': + return parseTimezonePattern(timezonePatterns.basic, dateString); + + case 'XXXX': + return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, dateString); + + case 'XXXXX': + return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, dateString); + + case 'XXX': + default: + return parseTimezonePattern(timezonePatterns.extended, dateString); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + } + }]); + + return ISOTimezoneWithZParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js new file mode 100644 index 00000000..b0cc6e1b --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js @@ -0,0 +1,83 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +import setUTCISOWeek from "../../../_lib/setUTCISOWeek/index.js"; +import startOfUTCISOWeek from "../../../_lib/startOfUTCISOWeek/index.js"; // ISO week of year + +export var ISOWeekParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOWeekParser, _Parser); + + var _super = _createSuper(ISOWeekParser); + + function ISOWeekParser() { + var _this; + + _classCallCheck(this, ISOWeekParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 100); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISOWeekParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'I': + return parseNumericPattern(numericPatterns.week, dateString); + + case 'Io': + return match.ordinalNumber(dateString, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 53; + } + }, { + key: "set", + value: function set(date, _flags, value) { + return startOfUTCISOWeek(setUTCISOWeek(date, value)); + } + }]); + + return ISOWeekParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js new file mode 100644 index 00000000..1e5b15de --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js @@ -0,0 +1,72 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseNDigitsSigned } from "../utils.js"; +import startOfUTCISOWeek from "../../../_lib/startOfUTCISOWeek/index.js"; // ISO week-numbering year + +export var ISOWeekYearParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOWeekYearParser, _Parser); + + var _super = _createSuper(ISOWeekYearParser); + + function ISOWeekYearParser() { + var _this; + + _classCallCheck(this, ISOWeekYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISOWeekYearParser, [{ + key: "parse", + value: function parse(dateString, token) { + if (token === 'R') { + return parseNDigitsSigned(4, dateString); + } + + return parseNDigitsSigned(token.length, dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + var firstWeekOfYear = new Date(0); + firstWeekOfYear.setUTCFullYear(value, 0, 4); + firstWeekOfYear.setUTCHours(0, 0, 0, 0); + return startOfUTCISOWeek(firstWeekOfYear); + } + }]); + + return ISOWeekYearParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js new file mode 100644 index 00000000..54e5cde5 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js @@ -0,0 +1,136 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { mapValue, parseNDigits } from "../utils.js"; +import setUTCDay from "../../../_lib/setUTCDay/index.js"; // Local day of week + +export var LocalDayParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalDayParser, _Parser); + + var _super = _createSuper(LocalDayParser); + + function LocalDayParser() { + var _this; + + _classCallCheck(this, LocalDayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']); + + return _this; + } + + _createClass(LocalDayParser, [{ + key: "parse", + value: function parse(dateString, token, match, options) { + var valueCallback = function valueCallback(value) { + var wholeWeekDays = Math.floor((value - 1) / 7) * 7; + return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; + }; + + switch (token) { + // 3 + case 'e': + case 'ee': + // 03 + return mapValue(parseNDigits(token.length, dateString), valueCallback); + // 3rd + + case 'eo': + return mapValue(match.ordinalNumber(dateString, { + unit: 'day' + }), valueCallback); + // Tue + + case 'eee': + return match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'eeeee': + return match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return LocalDayParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js new file mode 100644 index 00000000..15b7182e --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js @@ -0,0 +1,83 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +import setUTCWeek from "../../../_lib/setUTCWeek/index.js"; +import startOfUTCWeek from "../../../_lib/startOfUTCWeek/index.js"; // Local week of year + +export var LocalWeekParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalWeekParser, _Parser); + + var _super = _createSuper(LocalWeekParser); + + function LocalWeekParser() { + var _this; + + _classCallCheck(this, LocalWeekParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 100); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); + + return _this; + } + + _createClass(LocalWeekParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'w': + return parseNumericPattern(numericPatterns.week, dateString); + + case 'wo': + return match.ordinalNumber(dateString, { + unit: 'week' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 53; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + return startOfUTCWeek(setUTCWeek(date, value, options), options); + } + }]); + + return LocalWeekParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js new file mode 100644 index 00000000..c5f37391 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js @@ -0,0 +1,101 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseNDigits, normalizeTwoDigitYear, mapValue } from "../utils.js"; +import getUTCWeekYear from "../../../_lib/getUTCWeekYear/index.js"; +import startOfUTCWeek from "../../../_lib/startOfUTCWeek/index.js"; +// Local week-numbering year +export var LocalWeekYearParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalWeekYearParser, _Parser); + + var _super = _createSuper(LocalWeekYearParser); + + function LocalWeekYearParser() { + var _this; + + _classCallCheck(this, LocalWeekYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); + + return _this; + } + + _createClass(LocalWeekYearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) { + return { + year: year, + isTwoDigitYear: token === 'YY' + }; + }; + + switch (token) { + case 'Y': + return mapValue(parseNDigits(4, dateString), valueCallback); + + case 'Yo': + return mapValue(match.ordinalNumber(dateString, { + unit: 'year' + }), valueCallback); + + default: + return mapValue(parseNDigits(token.length, dateString), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } + }, { + key: "set", + value: function set(date, flags, value, options) { + var currentYear = getUTCWeekYear(date, options); + + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); + date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); + date.setUTCHours(0, 0, 0, 0); + return startOfUTCWeek(date, options); + } + + var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setUTCFullYear(year, 0, options.firstWeekContainsDate); + date.setUTCHours(0, 0, 0, 0); + return startOfUTCWeek(date, options); + } + }]); + + return LocalWeekYearParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js new file mode 100644 index 00000000..a7774c52 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js @@ -0,0 +1,81 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var MinuteParser = /*#__PURE__*/function (_Parser) { + _inherits(MinuteParser, _Parser); + + var _super = _createSuper(MinuteParser); + + function MinuteParser() { + var _this; + + _classCallCheck(this, MinuteParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 60); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(MinuteParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'm': + return parseNumericPattern(numericPatterns.minute, dateString); + + case 'mo': + return match.ordinalNumber(dateString, { + unit: 'minute' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 59; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMinutes(value, 0, 0); + return date; + } + }]); + + return MinuteParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js new file mode 100644 index 00000000..d4d71f03 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js @@ -0,0 +1,120 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { mapValue, parseNDigits, parseNumericPattern } from "../utils.js"; +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +export var MonthParser = /*#__PURE__*/function (_Parser) { + _inherits(MonthParser, _Parser); + + var _super = _createSuper(MonthParser); + + function MonthParser() { + var _this; + + _classCallCheck(this, MonthParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + _defineProperty(_assertThisInitialized(_this), "priority", 110); + + return _this; + } + + _createClass(MonthParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'M': + return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback); + // 01, 02, ..., 12 + + case 'MM': + return mapValue(parseNDigits(2, dateString), valueCallback); + // 1st, 2nd, ..., 12th + + case 'Mo': + return mapValue(match.ordinalNumber(dateString, { + unit: 'month' + }), valueCallback); + // Jan, Feb, ..., Dec + + case 'MMM': + return match.month(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return match.month(dateString, { + width: 'wide', + context: 'formatting' + }) || match.month(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return MonthParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js new file mode 100644 index 00000000..631217f6 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js @@ -0,0 +1,113 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseNDigits } from "../utils.js"; +export var QuarterParser = /*#__PURE__*/function (_Parser) { + _inherits(QuarterParser, _Parser); + + var _super = _createSuper(QuarterParser); + + function QuarterParser() { + var _this; + + _classCallCheck(this, QuarterParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 120); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(QuarterParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // 1, 2, 3, 4 + case 'Q': + case 'QQ': + // 01, 02, 03, 04 + return parseNDigits(token.length, dateString); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return match.ordinalNumber(dateString, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return match.quarter(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return match.quarter(dateString, { + width: 'wide', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 4; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return QuarterParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js new file mode 100644 index 00000000..0dc8195b --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js @@ -0,0 +1,81 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits } from "../utils.js"; +export var SecondParser = /*#__PURE__*/function (_Parser) { + _inherits(SecondParser, _Parser); + + var _super = _createSuper(SecondParser); + + function SecondParser() { + var _this; + + _classCallCheck(this, SecondParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 50); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(SecondParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 's': + return parseNumericPattern(numericPatterns.second, dateString); + + case 'so': + return match.ordinalNumber(dateString, { + unit: 'second' + }); + + default: + return parseNDigits(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 59; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCSeconds(value, 0); + return date; + } + }]); + + return SecondParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js new file mode 100644 index 00000000..0428d363 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js @@ -0,0 +1,136 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { mapValue, parseNDigits } from "../utils.js"; +import setUTCDay from "../../../_lib/setUTCDay/index.js"; // Stand-alone local day of week + +export var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneLocalDayParser, _Parser); + + var _super = _createSuper(StandAloneLocalDayParser); + + function StandAloneLocalDayParser() { + var _this; + + _classCallCheck(this, StandAloneLocalDayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']); + + return _this; + } + + _createClass(StandAloneLocalDayParser, [{ + key: "parse", + value: function parse(dateString, token, match, options) { + var valueCallback = function valueCallback(value) { + var wholeWeekDays = Math.floor((value - 1) / 7) * 7; + return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; + }; + + switch (token) { + // 3 + case 'c': + case 'cc': + // 03 + return mapValue(parseNDigits(token.length, dateString), valueCallback); + // 3rd + + case 'co': + return mapValue(match.ordinalNumber(dateString, { + unit: 'day' + }), valueCallback); + // Tue + + case 'ccc': + return match.day(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // T + + case 'ccccc': + return match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return match.day(dateString, { + width: 'wide', + context: 'standalone' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = setUTCDay(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneLocalDayParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js new file mode 100644 index 00000000..ba326be6 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js @@ -0,0 +1,120 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { numericPatterns } from "../constants.js"; +import { parseNumericPattern, parseNDigits, mapValue } from "../utils.js"; +export var StandAloneMonthParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneMonthParser, _Parser); + + var _super = _createSuper(StandAloneMonthParser); + + function StandAloneMonthParser() { + var _this; + + _classCallCheck(this, StandAloneMonthParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 110); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(StandAloneMonthParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return mapValue(parseNumericPattern(numericPatterns.month, dateString), valueCallback); + // 01, 02, ..., 12 + + case 'LL': + return mapValue(parseNDigits(2, dateString), valueCallback); + // 1st, 2nd, ..., 12th + + case 'Lo': + return mapValue(match.ordinalNumber(dateString, { + unit: 'month' + }), valueCallback); + // Jan, Feb, ..., Dec + + case 'LLL': + return match.month(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return match.month(dateString, { + width: 'wide', + context: 'standalone' + }) || match.month(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneMonthParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js new file mode 100644 index 00000000..9fe0b2c8 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js @@ -0,0 +1,113 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseNDigits } from "../utils.js"; +export var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneQuarterParser, _Parser); + + var _super = _createSuper(StandAloneQuarterParser); + + function StandAloneQuarterParser() { + var _this; + + _classCallCheck(this, StandAloneQuarterParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 120); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(StandAloneQuarterParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // 1, 2, 3, 4 + case 'q': + case 'qq': + // 01, 02, 03, 04 + return parseNDigits(token.length, dateString); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return match.ordinalNumber(dateString, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return match.quarter(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return match.quarter(dateString, { + width: 'wide', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 4; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneQuarterParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js new file mode 100644 index 00000000..8931ef85 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js @@ -0,0 +1,65 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseAnyDigitsSigned } from "../utils.js"; +export var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) { + _inherits(TimestampMillisecondsParser, _Parser); + + var _super = _createSuper(TimestampMillisecondsParser); + + function TimestampMillisecondsParser() { + var _this; + + _classCallCheck(this, TimestampMillisecondsParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 20); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); + + return _this; + } + + _createClass(TimestampMillisecondsParser, [{ + key: "parse", + value: function parse(dateString) { + return parseAnyDigitsSigned(dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + return [new Date(value), { + timestampIsSet: true + }]; + } + }]); + + return TimestampMillisecondsParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js new file mode 100644 index 00000000..263d8606 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js @@ -0,0 +1,65 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { parseAnyDigitsSigned } from "../utils.js"; +export var TimestampSecondsParser = /*#__PURE__*/function (_Parser) { + _inherits(TimestampSecondsParser, _Parser); + + var _super = _createSuper(TimestampSecondsParser); + + function TimestampSecondsParser() { + var _this; + + _classCallCheck(this, TimestampSecondsParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 40); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); + + return _this; + } + + _createClass(TimestampSecondsParser, [{ + key: "parse", + value: function parse(dateString) { + return parseAnyDigitsSigned(dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + return [new Date(value * 1000), { + timestampIsSet: true + }]; + } + }]); + + return TimestampSecondsParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js b/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js new file mode 100644 index 00000000..5f26d443 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js @@ -0,0 +1,106 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +import { Parser } from "../Parser.js"; +import { mapValue, normalizeTwoDigitYear, parseNDigits } from "../utils.js"; +// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns +// | Year | y | yy | yyy | yyyy | yyyyy | +// |----------|-------|----|-------|-------|-------| +// | AD 1 | 1 | 01 | 001 | 0001 | 00001 | +// | AD 12 | 12 | 12 | 012 | 0012 | 00012 | +// | AD 123 | 123 | 23 | 123 | 0123 | 00123 | +// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | +// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | +export var YearParser = /*#__PURE__*/function (_Parser) { + _inherits(YearParser, _Parser); + + var _super = _createSuper(YearParser); + + function YearParser() { + var _this; + + _classCallCheck(this, YearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(YearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) { + return { + year: year, + isTwoDigitYear: token === 'yy' + }; + }; + + switch (token) { + case 'y': + return mapValue(parseNDigits(4, dateString), valueCallback); + + case 'yo': + return mapValue(match.ordinalNumber(dateString, { + unit: 'year' + }), valueCallback); + + default: + return mapValue(parseNDigits(token.length, dateString), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } + }, { + key: "set", + value: function set(date, flags, value) { + var currentYear = date.getUTCFullYear(); + + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear); + date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + + var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setUTCFullYear(year, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return YearParser; +}(Parser); \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/parsers/index.js b/node_modules/date-fns/esm/parse/_lib/parsers/index.js new file mode 100644 index 00000000..c988be14 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/parsers/index.js @@ -0,0 +1,108 @@ +import { EraParser } from "./EraParser.js"; +import { YearParser } from "./YearParser.js"; +import { LocalWeekYearParser } from "./LocalWeekYearParser.js"; +import { ISOWeekYearParser } from "./ISOWeekYearParser.js"; +import { ExtendedYearParser } from "./ExtendedYearParser.js"; +import { QuarterParser } from "./QuarterParser.js"; +import { StandAloneQuarterParser } from "./StandAloneQuarterParser.js"; +import { MonthParser } from "./MonthParser.js"; +import { StandAloneMonthParser } from "./StandAloneMonthParser.js"; +import { LocalWeekParser } from "./LocalWeekParser.js"; +import { ISOWeekParser } from "./ISOWeekParser.js"; +import { DateParser } from "./DateParser.js"; +import { DayOfYearParser } from "./DayOfYearParser.js"; +import { DayParser } from "./DayParser.js"; +import { LocalDayParser } from "./LocalDayParser.js"; +import { StandAloneLocalDayParser } from "./StandAloneLocalDayParser.js"; +import { ISODayParser } from "./ISODayParser.js"; +import { AMPMParser } from "./AMPMParser.js"; +import { AMPMMidnightParser } from "./AMPMMidnightParser.js"; +import { DayPeriodParser } from "./DayPeriodParser.js"; +import { Hour1to12Parser } from "./Hour1to12Parser.js"; +import { Hour0to23Parser } from "./Hour0to23Parser.js"; +import { Hour0To11Parser } from "./Hour0To11Parser.js"; +import { Hour1To24Parser } from "./Hour1To24Parser.js"; +import { MinuteParser } from "./MinuteParser.js"; +import { SecondParser } from "./SecondParser.js"; +import { FractionOfSecondParser } from "./FractionOfSecondParser.js"; +import { ISOTimezoneWithZParser } from "./ISOTimezoneWithZParser.js"; +import { ISOTimezoneParser } from "./ISOTimezoneParser.js"; +import { TimestampSecondsParser } from "./TimestampSecondsParser.js"; +import { TimestampMillisecondsParser } from "./TimestampMillisecondsParser.js"; +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O* | Timezone (GMT) | + * | p | | P | | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + */ + +export var parsers = { + G: new EraParser(), + y: new YearParser(), + Y: new LocalWeekYearParser(), + R: new ISOWeekYearParser(), + u: new ExtendedYearParser(), + Q: new QuarterParser(), + q: new StandAloneQuarterParser(), + M: new MonthParser(), + L: new StandAloneMonthParser(), + w: new LocalWeekParser(), + I: new ISOWeekParser(), + d: new DateParser(), + D: new DayOfYearParser(), + E: new DayParser(), + e: new LocalDayParser(), + c: new StandAloneLocalDayParser(), + i: new ISODayParser(), + a: new AMPMParser(), + b: new AMPMMidnightParser(), + B: new DayPeriodParser(), + h: new Hour1to12Parser(), + H: new Hour0to23Parser(), + K: new Hour0To11Parser(), + k: new Hour1To24Parser(), + m: new MinuteParser(), + s: new SecondParser(), + S: new FractionOfSecondParser(), + X: new ISOTimezoneWithZParser(), + x: new ISOTimezoneParser(), + t: new TimestampSecondsParser(), + T: new TimestampMillisecondsParser() +}; \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/types.js b/node_modules/date-fns/esm/parse/_lib/types.js new file mode 100644 index 00000000..8cec2e9c --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/types.js @@ -0,0 +1 @@ +export {}; \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/_lib/utils.js b/node_modules/date-fns/esm/parse/_lib/utils.js new file mode 100644 index 00000000..0f0271b7 --- /dev/null +++ b/node_modules/date-fns/esm/parse/_lib/utils.js @@ -0,0 +1,130 @@ +import { millisecondsInHour, millisecondsInMinute, millisecondsInSecond } from "../../constants/index.js"; +import { numericPatterns } from "./constants.js"; +export function mapValue(parseFnResult, mapFn) { + if (!parseFnResult) { + return parseFnResult; + } + + return { + value: mapFn(parseFnResult.value), + rest: parseFnResult.rest + }; +} +export function parseNumericPattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + + if (!matchResult) { + return null; + } + + return { + value: parseInt(matchResult[0], 10), + rest: dateString.slice(matchResult[0].length) + }; +} +export function parseTimezonePattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + + if (!matchResult) { + return null; + } // Input is 'Z' + + + if (matchResult[0] === 'Z') { + return { + value: 0, + rest: dateString.slice(1) + }; + } + + var sign = matchResult[1] === '+' ? 1 : -1; + var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; + var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; + var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; + return { + value: sign * (hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * millisecondsInSecond), + rest: dateString.slice(matchResult[0].length) + }; +} +export function parseAnyDigitsSigned(dateString) { + return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString); +} +export function parseNDigits(n, dateString) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigit, dateString); + + case 2: + return parseNumericPattern(numericPatterns.twoDigits, dateString); + + case 3: + return parseNumericPattern(numericPatterns.threeDigits, dateString); + + case 4: + return parseNumericPattern(numericPatterns.fourDigits, dateString); + + default: + return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString); + } +} +export function parseNDigitsSigned(n, dateString) { + switch (n) { + case 1: + return parseNumericPattern(numericPatterns.singleDigitSigned, dateString); + + case 2: + return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString); + + case 3: + return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString); + + case 4: + return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString); + + default: + return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString); + } +} +export function dayPeriodEnumToHours(dayPeriod) { + switch (dayPeriod) { + case 'morning': + return 4; + + case 'evening': + return 17; + + case 'pm': + case 'noon': + case 'afternoon': + return 12; + + case 'am': + case 'midnight': + case 'night': + default: + return 0; + } +} +export function normalizeTwoDigitYear(twoDigitYear, currentYear) { + var isCommonEra = currentYear > 0; // Absolute number of the current year: + // 1 -> 1 AC + // 0 -> 1 BC + // -1 -> 2 BC + + var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; + var result; + + if (absCurrentYear <= 50) { + result = twoDigitYear || 100; + } else { + var rangeEnd = absCurrentYear + 50; + var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; + var isPreviousCentury = twoDigitYear >= rangeEnd % 100; + result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); + } + + return isCommonEra ? result : 1 - result; +} +export function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/index.d.ts b/node_modules/date-fns/esm/parse/index.d.ts new file mode 100644 index 00000000..2c5eb60d --- /dev/null +++ b/node_modules/date-fns/esm/parse/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parse } from 'date-fns' +export default parse diff --git a/node_modules/date-fns/esm/parse/index.js b/node_modules/date-fns/esm/parse/index.js new file mode 100644 index 00000000..0470c6b9 --- /dev/null +++ b/node_modules/date-fns/esm/parse/index.js @@ -0,0 +1,536 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +import defaultLocale from "../_lib/defaultLocale/index.js"; +import subMilliseconds from "../subMilliseconds/index.js"; +import toDate from "../toDate/index.js"; +import assign from "../_lib/assign/index.js"; +import longFormatters from "../_lib/format/longFormatters/index.js"; +import getTimezoneOffsetInMilliseconds from "../_lib/getTimezoneOffsetInMilliseconds/index.js"; +import { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from "../_lib/protectedTokens/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { DateToSystemTimezoneSetter } from "./_lib/Setter.js"; +import { parsers } from "./_lib/parsers/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; // This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps + +var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` + +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var notWhitespaceRegExp = /\S/; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name parse + * @category Common Helpers + * @summary Parse the date. + * + * @description + * Return the date parsed from string using the given format string. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * parse('23 AM', 'HH a', new Date()) + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Sun | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `parse` will try to match both formatting and stand-alone units interchangably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `parse` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` + * + * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` + * + * while `uu` will just assign the year as is: + * + * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` + * + * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} + * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be assigned to the date in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), + * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. + * + * `referenceDate` must be passed for correct work of the function. + * If you're not sure which `referenceDate` to supply, create a new instance of Date: + * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` + * In this case parsing will be done in the context of the current date. + * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, + * then `Invalid Date` will be returned. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * If parsing failed, `Invalid Date` will be returned. + * Invalid Date is a Date, whose time value is NaN. + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {String} dateString - the string to parse + * @param {String} formatString - the string of tokens + * @param {Date|Number} referenceDate - defines values missing from the parsed dateString + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {Date} the parsed date + * @throws {TypeError} 3 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} `options.locale` must contain `match` property + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Parse 11 February 2014 from middle-endian format: + * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) + * //=> Tue Feb 11 2014 00:00:00 + * + * @example + * // Parse 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { + * locale: eo + * }) + * //=> Sun Feb 28 2010 00:00:00 + */ + +export default function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; + + requiredArgs(3, arguments); + var dateString = String(dirtyDateString); + var formatString = String(dirtyFormatString); + var defaultOptions = getDefaultOptions(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale; + + if (!locale.match) { + throw new RangeError('locale must contain match property'); + } + + var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + if (formatString === '') { + if (dateString === '') { + return toDate(dirtyReferenceDate); + } else { + return new Date(NaN); + } + } + + var subFnOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; // If timezone isn't specified, it will be set to the system timezone + + var setters = [new DateToSystemTimezoneSetter()]; + var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter in longFormatters) { + var longFormatter = longFormatters[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + + return substring; + }).join('').match(formattingTokensRegExp); + var usedTokens = []; + + var _iterator = _createForOfIteratorHelper(tokens), + _step; + + try { + var _loop = function _loop() { + var token = _step.value; + + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(token)) { + throwProtectedError(token, formatString, dirtyDateString); + } + + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(token)) { + throwProtectedError(token, formatString, dirtyDateString); + } + + var firstCharacter = token[0]; + var parser = parsers[firstCharacter]; + + if (parser) { + var incompatibleTokens = parser.incompatibleTokens; + + if (Array.isArray(incompatibleTokens)) { + var incompatibleToken = usedTokens.find(function (usedToken) { + return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter; + }); + + if (incompatibleToken) { + throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); + } + } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) { + throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); + } + + usedTokens.push({ + token: firstCharacter, + fullToken: token + }); + var parseResult = parser.run(dateString, token, locale.match, subFnOptions); + + if (!parseResult) { + return { + v: new Date(NaN) + }; + } + + setters.push(parseResult.setter); + dateString = parseResult.rest; + } else { + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } // Replace two single quote characters with one single quote character + + + if (token === "''") { + token = "'"; + } else if (firstCharacter === "'") { + token = cleanEscapedString(token); + } // Cut token from string, or, if string doesn't match the token, return Invalid Date + + + if (dateString.indexOf(token) === 0) { + dateString = dateString.slice(token.length); + } else { + return { + v: new Date(NaN) + }; + } + } + }; + + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var _ret = _loop(); + + if (_typeof(_ret) === "object") return _ret.v; + } // Check if the remaining input contains something other than whitespace + + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { + return new Date(NaN); + } + + var uniquePrioritySetters = setters.map(function (setter) { + return setter.priority; + }).sort(function (a, b) { + return b - a; + }).filter(function (priority, index, array) { + return array.indexOf(priority) === index; + }).map(function (priority) { + return setters.filter(function (setter) { + return setter.priority === priority; + }).sort(function (a, b) { + return b.subPriority - a.subPriority; + }); + }).map(function (setterArray) { + return setterArray[0]; + }); + var date = toDate(dirtyReferenceDate); + + if (isNaN(date.getTime())) { + return new Date(NaN); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + + + var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date)); + var flags = {}; + + var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters), + _step2; + + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var setter = _step2.value; + + if (!setter.validate(utcDate, subFnOptions)) { + return new Date(NaN); + } + + var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags) + + if (Array.isArray(result)) { + utcDate = result[0]; + assign(flags, result[1]); // Result is date + } else { + utcDate = result; + } + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + + return utcDate; +} + +function cleanEscapedString(input) { + return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parse/index.js.flow b/node_modules/date-fns/esm/parse/index.js.flow new file mode 100644 index 00000000..f8e1cfe9 --- /dev/null +++ b/node_modules/date-fns/esm/parse/index.js.flow @@ -0,0 +1,63 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => Date diff --git a/node_modules/date-fns/esm/parse/package.json b/node_modules/date-fns/esm/parse/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/parse/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parseISO/index.d.ts b/node_modules/date-fns/esm/parseISO/index.d.ts new file mode 100644 index 00000000..ee06fe62 --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISO } from 'date-fns' +export default parseISO diff --git a/node_modules/date-fns/esm/parseISO/index.js b/node_modules/date-fns/esm/parseISO/index.js new file mode 100644 index 00000000..832225d1 --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/index.js @@ -0,0 +1,266 @@ +import { millisecondsInHour, millisecondsInMinute } from "../constants/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name parseISO + * @category Common Helpers + * @summary Parse ISO string + * + * @description + * Parse the given string in ISO 8601 format and return an instance of Date. + * + * Function accepts complete ISO 8601 formats as well as partial implementations. + * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 + * + * If the argument isn't a string, the function cannot parse the string or + * the values are invalid, it returns Invalid Date. + * + * @param {String} argument - the value to convert + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // Convert string '2014-02-11T11:30:30' to date: + * const result = parseISO('2014-02-11T11:30:30') + * //=> Tue Feb 11 2014 11:30:30 + * + * @example + * // Convert string '+02014101' to date, + * // if the additional number of digits in the extended year format is 1: + * const result = parseISO('+02014101', { additionalDigits: 1 }) + * //=> Fri Apr 11 2014 00:00:00 + */ + +export default function parseISO(argument, options) { + var _options$additionalDi; + + requiredArgs(1, arguments); + var additionalDigits = toInteger((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2); + + if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { + throw new RangeError('additionalDigits must be 0, 1 or 2'); + } + + if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) { + return new Date(NaN); + } + + var dateStrings = splitDateString(argument); + var date; + + if (dateStrings.date) { + var parseYearResult = parseYear(dateStrings.date, additionalDigits); + date = parseDate(parseYearResult.restDateString, parseYearResult.year); + } + + if (!date || isNaN(date.getTime())) { + return new Date(NaN); + } + + var timestamp = date.getTime(); + var time = 0; + var offset; + + if (dateStrings.time) { + time = parseTime(dateStrings.time); + + if (isNaN(time)) { + return new Date(NaN); + } + } + + if (dateStrings.timezone) { + offset = parseTimezone(dateStrings.timezone); + + if (isNaN(offset)) { + return new Date(NaN); + } + } else { + var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone + // but we need it to be parsed in our timezone + // so we use utc values to build date in our timezone. + // Year values from 0 to 99 map to the years 1900 to 1999 + // so set year explicitly with setFullYear. + + var result = new Date(0); + result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate()); + result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); + return result; + } + + return new Date(timestamp + time + offset); +} +var patterns = { + dateTimeDelimiter: /[T ]/, + timeZoneDelimiter: /[Z ]/i, + timezone: /([Z+-].*)$/ +}; +var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; +var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; +var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; + +function splitDateString(dateString) { + var dateStrings = {}; + var array = dateString.split(patterns.dateTimeDelimiter); + var timeString; // The regex match should only return at maximum two array elements. + // [date], [time], or [date, time]. + + if (array.length > 2) { + return dateStrings; + } + + if (/:/.test(array[0])) { + timeString = array[0]; + } else { + dateStrings.date = array[0]; + timeString = array[1]; + + if (patterns.timeZoneDelimiter.test(dateStrings.date)) { + dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; + timeString = dateString.substr(dateStrings.date.length, dateString.length); + } + } + + if (timeString) { + var token = patterns.timezone.exec(timeString); + + if (token) { + dateStrings.time = timeString.replace(token[1], ''); + dateStrings.timezone = token[1]; + } else { + dateStrings.time = timeString; + } + } + + return dateStrings; +} + +function parseYear(dateString, additionalDigits) { + var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)'); + var captures = dateString.match(regex); // Invalid ISO-formatted year + + if (!captures) return { + year: NaN, + restDateString: '' + }; + var year = captures[1] ? parseInt(captures[1]) : null; + var century = captures[2] ? parseInt(captures[2]) : null; // either year or century is null, not both + + return { + year: century === null ? year : century * 100, + restDateString: dateString.slice((captures[1] || captures[2]).length) + }; +} + +function parseDate(dateString, year) { + // Invalid ISO-formatted year + if (year === null) return new Date(NaN); + var captures = dateString.match(dateRegex); // Invalid ISO-formatted string + + if (!captures) return new Date(NaN); + var isWeekDate = !!captures[4]; + var dayOfYear = parseDateUnit(captures[1]); + var month = parseDateUnit(captures[2]) - 1; + var day = parseDateUnit(captures[3]); + var week = parseDateUnit(captures[4]); + var dayOfWeek = parseDateUnit(captures[5]) - 1; + + if (isWeekDate) { + if (!validateWeekDate(year, week, dayOfWeek)) { + return new Date(NaN); + } + + return dayOfISOWeekYear(year, week, dayOfWeek); + } else { + var date = new Date(0); + + if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { + return new Date(NaN); + } + + date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); + return date; + } +} + +function parseDateUnit(value) { + return value ? parseInt(value) : 1; +} + +function parseTime(timeString) { + var captures = timeString.match(timeRegex); + if (!captures) return NaN; // Invalid ISO-formatted time + + var hours = parseTimeUnit(captures[1]); + var minutes = parseTimeUnit(captures[2]); + var seconds = parseTimeUnit(captures[3]); + + if (!validateTime(hours, minutes, seconds)) { + return NaN; + } + + return hours * millisecondsInHour + minutes * millisecondsInMinute + seconds * 1000; +} + +function parseTimeUnit(value) { + return value && parseFloat(value.replace(',', '.')) || 0; +} + +function parseTimezone(timezoneString) { + if (timezoneString === 'Z') return 0; + var captures = timezoneString.match(timezoneRegex); + if (!captures) return 0; + var sign = captures[1] === '+' ? -1 : 1; + var hours = parseInt(captures[2]); + var minutes = captures[3] && parseInt(captures[3]) || 0; + + if (!validateTimezone(hours, minutes)) { + return NaN; + } + + return sign * (hours * millisecondsInHour + minutes * millisecondsInMinute); +} + +function dayOfISOWeekYear(isoWeekYear, week, day) { + var date = new Date(0); + date.setUTCFullYear(isoWeekYear, 0, 4); + var fourthOfJanuaryDay = date.getUTCDay() || 7; + var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} // Validation functions +// February is null to handle the leap year (using ||) + + +var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} + +function validateDate(year, month, date) { + return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); +} + +function validateDayOfYearDate(year, dayOfYear) { + return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); +} + +function validateWeekDate(_year, week, day) { + return week >= 1 && week <= 53 && day >= 0 && day <= 6; +} + +function validateTime(hours, minutes, seconds) { + if (hours === 24) { + return minutes === 0 && seconds === 0; + } + + return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; +} + +function validateTimezone(_hours, minutes) { + return minutes >= 0 && minutes <= 59; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parseISO/index.js.flow b/node_modules/date-fns/esm/parseISO/index.js.flow new file mode 100644 index 00000000..951a222e --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/esm/parseISO/package.json b/node_modules/date-fns/esm/parseISO/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/parseISO/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parseJSON/index.d.ts b/node_modules/date-fns/esm/parseJSON/index.d.ts new file mode 100644 index 00000000..b6b186d8 --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseJSON } from 'date-fns' +export default parseJSON diff --git a/node_modules/date-fns/esm/parseJSON/index.js b/node_modules/date-fns/esm/parseJSON/index.js new file mode 100644 index 00000000..76d3ca87 --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/index.js @@ -0,0 +1,53 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name parseJSON + * @category Common Helpers + * @summary Parse a JSON date string + * + * @description + * Converts a complete ISO date string in UTC time, the typical format for transmitting + * a date in JSON, to a JavaScript `Date` instance. + * + * This is a minimal implementation for converting dates retrieved from a JSON API to + * a `Date` instance which can be used with other functions in the `date-fns` library. + * The following formats are supported: + * + * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())` + * - `2000-03-15T05:20:10Z`: Without milliseconds + * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages + * - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages + * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon + * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol + * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds + * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting + * + * For convenience and ease of use these other input types are also supported + * via [toDate]{@link https://date-fns.org/docs/toDate}: + * + * - A `Date` instance will be cloned + * - A `number` will be treated as a timestamp + * + * Any other input type or invalid date strings will return an `Invalid Date`. + * + * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + */ + +export default function parseJSON(argument) { + requiredArgs(1, arguments); + + if (typeof argument === 'string') { + var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/); + + if (parts) { + // Group 8 matches the sign + return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4] - (+parts[9] || 0) * (parts[8] == '-' ? -1 : 1), +parts[5] - (+parts[10] || 0) * (parts[8] == '-' ? -1 : 1), +parts[6], +((parts[7] || '0') + '00').substring(0, 3))); + } + + return new Date(NaN); + } + + return toDate(argument); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/parseJSON/index.js.flow b/node_modules/date-fns/esm/parseJSON/index.js.flow new file mode 100644 index 00000000..c4801bf3 --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (argument: string | number | Date) => Date diff --git a/node_modules/date-fns/esm/parseJSON/package.json b/node_modules/date-fns/esm/parseJSON/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/parseJSON/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousDay/index.d.ts b/node_modules/date-fns/esm/previousDay/index.d.ts new file mode 100644 index 00000000..0e6a8c99 --- /dev/null +++ b/node_modules/date-fns/esm/previousDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousDay } from 'date-fns' +export default previousDay diff --git a/node_modules/date-fns/esm/previousDay/index.js b/node_modules/date-fns/esm/previousDay/index.js new file mode 100755 index 00000000..277e70b7 --- /dev/null +++ b/node_modules/date-fns/esm/previousDay/index.js @@ -0,0 +1,33 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import getDay from "../getDay/index.js"; +import subDays from "../subDays/index.js"; + +/** + * @name previousDay + * @category Weekday Helpers + * @summary When is the previous day of the week? + * + * @description + * When is the previous day of the week? 0-6 the day of the week, 0 represents Sunday. + * + * @param {Date | number} date - the date to check + * @param {number} day - day of the week + * @returns {Date} - the date is the previous day of week + * @throws {TypeError} - 2 arguments required + * + * @example + * // When is the previous Monday before Mar, 20, 2020? + * const result = previousDay(new Date(2020, 2, 20), 1) + * //=> Mon Mar 16 2020 00:00:00 + * + * @example + * // When is the previous Tuesday before Mar, 21, 2020? + * const result = previousDay(new Date(2020, 2, 21), 2) + * //=> Tue Mar 17 2020 00:00:00 + */ +export default function previousDay(date, day) { + requiredArgs(2, arguments); + var delta = getDay(date) - day; + if (delta <= 0) delta += 7; + return subDays(date, delta); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousDay/index.js.flow b/node_modules/date-fns/esm/previousDay/index.js.flow new file mode 100644 index 00000000..07b06297 --- /dev/null +++ b/node_modules/date-fns/esm/previousDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: number) => Date diff --git a/node_modules/date-fns/esm/previousDay/package.json b/node_modules/date-fns/esm/previousDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousFriday/index.d.ts b/node_modules/date-fns/esm/previousFriday/index.d.ts new file mode 100644 index 00000000..1d68bdfc --- /dev/null +++ b/node_modules/date-fns/esm/previousFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousFriday } from 'date-fns' +export default previousFriday diff --git a/node_modules/date-fns/esm/previousFriday/index.js b/node_modules/date-fns/esm/previousFriday/index.js new file mode 100755 index 00000000..30fd12a3 --- /dev/null +++ b/node_modules/date-fns/esm/previousFriday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousFriday + * @category Weekday Helpers + * @summary When is the previous Friday? + * + * @description + * When is the previous Friday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Friday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Friday before Jun, 19, 2021? + * const result = previousFriday(new Date(2021, 5, 19)) + * //=> Fri June 18 2021 00:00:00 + */ + +export default function previousFriday(date) { + requiredArgs(1, arguments); + return previousDay(date, 5); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousFriday/index.js.flow b/node_modules/date-fns/esm/previousFriday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousFriday/package.json b/node_modules/date-fns/esm/previousFriday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousFriday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousMonday/index.d.ts b/node_modules/date-fns/esm/previousMonday/index.d.ts new file mode 100644 index 00000000..2bebd14b --- /dev/null +++ b/node_modules/date-fns/esm/previousMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousMonday } from 'date-fns' +export default previousMonday diff --git a/node_modules/date-fns/esm/previousMonday/index.js b/node_modules/date-fns/esm/previousMonday/index.js new file mode 100755 index 00000000..ccc5cafd --- /dev/null +++ b/node_modules/date-fns/esm/previousMonday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousMonday + * @category Weekday Helpers + * @summary When is the previous Monday? + * + * @description + * When is the previous Monday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Monday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Monday before Jun, 18, 2021? + * const result = previousMonday(new Date(2021, 5, 18)) + * //=> Mon June 14 2021 00:00:00 + */ + +export default function previousMonday(date) { + requiredArgs(1, arguments); + return previousDay(date, 1); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousMonday/index.js.flow b/node_modules/date-fns/esm/previousMonday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousMonday/package.json b/node_modules/date-fns/esm/previousMonday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousMonday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousSaturday/index.d.ts b/node_modules/date-fns/esm/previousSaturday/index.d.ts new file mode 100644 index 00000000..a0c92895 --- /dev/null +++ b/node_modules/date-fns/esm/previousSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSaturday } from 'date-fns' +export default previousSaturday diff --git a/node_modules/date-fns/esm/previousSaturday/index.js b/node_modules/date-fns/esm/previousSaturday/index.js new file mode 100755 index 00000000..b413df86 --- /dev/null +++ b/node_modules/date-fns/esm/previousSaturday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousSaturday + * @category Weekday Helpers + * @summary When is the previous Saturday? + * + * @description + * When is the previous Saturday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Saturday before Jun, 20, 2021? + * const result = previousSaturday(new Date(2021, 5, 20)) + * //=> Sat June 19 2021 00:00:00 + */ + +export default function previousSaturday(date) { + requiredArgs(1, arguments); + return previousDay(date, 6); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousSaturday/index.js.flow b/node_modules/date-fns/esm/previousSaturday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousSaturday/package.json b/node_modules/date-fns/esm/previousSaturday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousSaturday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousSunday/index.d.ts b/node_modules/date-fns/esm/previousSunday/index.d.ts new file mode 100644 index 00000000..79ba9a43 --- /dev/null +++ b/node_modules/date-fns/esm/previousSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSunday } from 'date-fns' +export default previousSunday diff --git a/node_modules/date-fns/esm/previousSunday/index.js b/node_modules/date-fns/esm/previousSunday/index.js new file mode 100755 index 00000000..ff6f2fcf --- /dev/null +++ b/node_modules/date-fns/esm/previousSunday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousSunday + * @category Weekday Helpers + * @summary When is the previous Sunday? + * + * @description + * When is the previous Sunday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Sunday before Jun, 21, 2021? + * const result = previousSunday(new Date(2021, 5, 21)) + * //=> Sun June 20 2021 00:00:00 + */ + +export default function previousSunday(date) { + requiredArgs(1, arguments); + return previousDay(date, 0); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousSunday/index.js.flow b/node_modules/date-fns/esm/previousSunday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousSunday/package.json b/node_modules/date-fns/esm/previousSunday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousSunday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousThursday/index.d.ts b/node_modules/date-fns/esm/previousThursday/index.d.ts new file mode 100644 index 00000000..ba1d22ab --- /dev/null +++ b/node_modules/date-fns/esm/previousThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousThursday } from 'date-fns' +export default previousThursday diff --git a/node_modules/date-fns/esm/previousThursday/index.js b/node_modules/date-fns/esm/previousThursday/index.js new file mode 100755 index 00000000..2157c8bb --- /dev/null +++ b/node_modules/date-fns/esm/previousThursday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousThursday + * @category Weekday Helpers + * @summary When is the previous Thursday? + * + * @description + * When is the previous Thursday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Thursday before Jun, 18, 2021? + * const result = previousThursday(new Date(2021, 5, 18)) + * //=> Thu June 17 2021 00:00:00 + */ + +export default function previousThursday(date) { + requiredArgs(1, arguments); + return previousDay(date, 4); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousThursday/index.js.flow b/node_modules/date-fns/esm/previousThursday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousThursday/package.json b/node_modules/date-fns/esm/previousThursday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousThursday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousTuesday/index.d.ts b/node_modules/date-fns/esm/previousTuesday/index.d.ts new file mode 100644 index 00000000..4c7094d1 --- /dev/null +++ b/node_modules/date-fns/esm/previousTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousTuesday } from 'date-fns' +export default previousTuesday diff --git a/node_modules/date-fns/esm/previousTuesday/index.js b/node_modules/date-fns/esm/previousTuesday/index.js new file mode 100755 index 00000000..1992c285 --- /dev/null +++ b/node_modules/date-fns/esm/previousTuesday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousTuesday + * @category Weekday Helpers + * @summary When is the previous Tuesday? + * + * @description + * When is the previous Tuesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Tuesday before Jun, 18, 2021? + * const result = previousTuesday(new Date(2021, 5, 18)) + * //=> Tue June 15 2021 00:00:00 + */ + +export default function previousTuesday(date) { + requiredArgs(1, arguments); + return previousDay(date, 2); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousTuesday/index.js.flow b/node_modules/date-fns/esm/previousTuesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousTuesday/package.json b/node_modules/date-fns/esm/previousTuesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousTuesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousWednesday/index.d.ts b/node_modules/date-fns/esm/previousWednesday/index.d.ts new file mode 100644 index 00000000..28010ea3 --- /dev/null +++ b/node_modules/date-fns/esm/previousWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousWednesday } from 'date-fns' +export default previousWednesday diff --git a/node_modules/date-fns/esm/previousWednesday/index.js b/node_modules/date-fns/esm/previousWednesday/index.js new file mode 100755 index 00000000..ecdf25d3 --- /dev/null +++ b/node_modules/date-fns/esm/previousWednesday/index.js @@ -0,0 +1,24 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import previousDay from "../previousDay/index.js"; +/** + * @name previousWednesday + * @category Weekday Helpers + * @summary When is the previous Wednesday? + * + * @description + * When is the previous Wednesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Wednesday before Jun, 18, 2021? + * const result = previousWednesday(new Date(2021, 5, 18)) + * //=> Wed June 16 2021 00:00:00 + */ + +export default function previousWednesday(date) { + requiredArgs(1, arguments); + return previousDay(date, 3); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/previousWednesday/index.js.flow b/node_modules/date-fns/esm/previousWednesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/previousWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/previousWednesday/package.json b/node_modules/date-fns/esm/previousWednesday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/previousWednesday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/quartersToMonths/index.d.ts b/node_modules/date-fns/esm/quartersToMonths/index.d.ts new file mode 100644 index 00000000..d2df2e17 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToMonths } from 'date-fns' +export default quartersToMonths diff --git a/node_modules/date-fns/esm/quartersToMonths/index.js b/node_modules/date-fns/esm/quartersToMonths/index.js new file mode 100644 index 00000000..5c76b1f5 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToMonths/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { monthsInQuarter } from "../constants/index.js"; +/** + * @name quartersToMonths + * @category Conversion Helpers + * @summary Convert number of quarters to months. + * + * @description + * Convert a number of quarters to a full number of months. + * + * @param {number} quarters - number of quarters to be converted + * + * @returns {number} the number of quarters converted in months + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 quarters to months + * const result = quartersToMonths(2) + * //=> 6 + */ + +export default function quartersToMonths(quarters) { + requiredArgs(1, arguments); + return Math.floor(quarters * monthsInQuarter); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/quartersToMonths/index.js.flow b/node_modules/date-fns/esm/quartersToMonths/index.js.flow new file mode 100644 index 00000000..82259233 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (quarters: number) => number diff --git a/node_modules/date-fns/esm/quartersToMonths/package.json b/node_modules/date-fns/esm/quartersToMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/quartersToYears/index.d.ts b/node_modules/date-fns/esm/quartersToYears/index.d.ts new file mode 100644 index 00000000..12490378 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToYears } from 'date-fns' +export default quartersToYears diff --git a/node_modules/date-fns/esm/quartersToYears/index.js b/node_modules/date-fns/esm/quartersToYears/index.js new file mode 100644 index 00000000..b47cfd3f --- /dev/null +++ b/node_modules/date-fns/esm/quartersToYears/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { quartersInYear } from "../constants/index.js"; +/** + * @name quartersToYears + * @category Conversion Helpers + * @summary Convert number of quarters to years. + * + * @description + * Convert a number of quarters to a full number of years. + * + * @param {number} quarters - number of quarters to be converted + * + * @returns {number} the number of quarters converted in years + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 8 quarters to years + * const result = quartersToYears(8) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = quartersToYears(11) + * //=> 2 + */ + +export default function quartersToYears(quarters) { + requiredArgs(1, arguments); + var years = quarters / quartersInYear; + return Math.floor(years); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/quartersToYears/index.js.flow b/node_modules/date-fns/esm/quartersToYears/index.js.flow new file mode 100644 index 00000000..82259233 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (quarters: number) => number diff --git a/node_modules/date-fns/esm/quartersToYears/package.json b/node_modules/date-fns/esm/quartersToYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/quartersToYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/roundToNearestMinutes/index.d.ts b/node_modules/date-fns/esm/roundToNearestMinutes/index.d.ts new file mode 100644 index 00000000..8e564916 --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutes } from 'date-fns' +export default roundToNearestMinutes diff --git a/node_modules/date-fns/esm/roundToNearestMinutes/index.js b/node_modules/date-fns/esm/roundToNearestMinutes/index.js new file mode 100644 index 00000000..ef256add --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/index.js @@ -0,0 +1,55 @@ +import toDate from "../toDate/index.js"; +import { getRoundingMethod } from "../_lib/roundingMethods/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name roundToNearestMinutes + * @category Minute Helpers + * @summary Rounds the given date to the nearest minute + * + * @description + * Rounds the given date to the nearest minute (or number of minutes). + * Rounds up when the given date is exactly between the nearest round minutes. + * + * @param {Date|Number} date - the date to round + * @param {Object} [options] - an object with options. + * @param {Number} [options.nearestTo=1] - nearest number of minutes to round to. E.g. `15` to round to quarter hours. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Date} the new date rounded to the closest minute + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.nearestTo` must be between 1 and 30 + * + * @example + * // Round 10 July 2014 12:12:34 to nearest minute: + * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) + * //=> Thu Jul 10 2014 12:13:00 + * + * @example + * // Round 10 July 2014 12:07:30 to nearest quarter hour: + * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 }) + * // rounds up because given date is exactly between 12:00:00 and 12:15:00 + * //=> Thu Jul 10 2014 12:15:00 + */ + +export default function roundToNearestMinutes(dirtyDate, options) { + var _options$nearestTo; + + if (arguments.length < 1) { + throw new TypeError('1 argument required, but only none provided present'); + } + + var nearestTo = toInteger((_options$nearestTo = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1); + + if (nearestTo < 1 || nearestTo > 30) { + throw new RangeError('`options.nearestTo` must be between 1 and 30'); + } + + var date = toDate(dirtyDate); + var seconds = date.getSeconds(); // relevant if nearestTo is 1, which is the default case + + var minutes = date.getMinutes() + seconds / 60; + var roundingMethod = getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod); + var roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo; + var remainderMinutes = minutes % nearestTo; + var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo; + return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/roundToNearestMinutes/index.js.flow b/node_modules/date-fns/esm/roundToNearestMinutes/index.js.flow new file mode 100644 index 00000000..41b3dfa3 --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + nearestTo?: number, + roundingMethod?: string, + } +) => Date diff --git a/node_modules/date-fns/esm/roundToNearestMinutes/package.json b/node_modules/date-fns/esm/roundToNearestMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/roundToNearestMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToHours/index.d.ts b/node_modules/date-fns/esm/secondsToHours/index.d.ts new file mode 100644 index 00000000..89fcc9a4 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToHours } from 'date-fns' +export default secondsToHours diff --git a/node_modules/date-fns/esm/secondsToHours/index.js b/node_modules/date-fns/esm/secondsToHours/index.js new file mode 100644 index 00000000..c8787a3b --- /dev/null +++ b/node_modules/date-fns/esm/secondsToHours/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { secondsInHour } from "../constants/index.js"; +/** + * @name secondsToHours + * @category Conversion Helpers + * @summary Convert seconds to hours. + * + * @description + * Convert a number of seconds to a full number of hours. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 7200 seconds into hours + * const result = secondsToHours(7200) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = secondsToHours(7199) + * //=> 1 + */ + +export default function secondsToHours(seconds) { + requiredArgs(1, arguments); + var hours = seconds / secondsInHour; + return Math.floor(hours); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToHours/index.js.flow b/node_modules/date-fns/esm/secondsToHours/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/esm/secondsToHours/package.json b/node_modules/date-fns/esm/secondsToHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToMilliseconds/index.d.ts b/node_modules/date-fns/esm/secondsToMilliseconds/index.d.ts new file mode 100644 index 00000000..a2080374 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMilliseconds } from 'date-fns' +export default secondsToMilliseconds diff --git a/node_modules/date-fns/esm/secondsToMilliseconds/index.js b/node_modules/date-fns/esm/secondsToMilliseconds/index.js new file mode 100644 index 00000000..1c33131f --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMilliseconds/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { millisecondsInSecond } from "../constants/index.js"; +/** + * @name secondsToMilliseconds + * @category Conversion Helpers + * @summary Convert seconds to milliseconds. + * + * @description + * Convert a number of seconds to a full number of milliseconds. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 seconds into milliseconds + * const result = secondsToMilliseconds(2) + * //=> 2000 + */ + +export default function secondsToMilliseconds(seconds) { + requiredArgs(1, arguments); + return seconds * millisecondsInSecond; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToMilliseconds/index.js.flow b/node_modules/date-fns/esm/secondsToMilliseconds/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/esm/secondsToMilliseconds/package.json b/node_modules/date-fns/esm/secondsToMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToMinutes/index.d.ts b/node_modules/date-fns/esm/secondsToMinutes/index.d.ts new file mode 100644 index 00000000..22846dd3 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMinutes } from 'date-fns' +export default secondsToMinutes diff --git a/node_modules/date-fns/esm/secondsToMinutes/index.js b/node_modules/date-fns/esm/secondsToMinutes/index.js new file mode 100644 index 00000000..5e8ed47b --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMinutes/index.js @@ -0,0 +1,31 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { secondsInMinute } from "../constants/index.js"; +/** + * @name secondsToMinutes + * @category Conversion Helpers + * @summary Convert seconds to minutes. + * + * @description + * Convert a number of seconds to a full number of minutes. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 120 seconds into minutes + * const result = secondsToMinutes(120) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = secondsToMinutes(119) + * //=> 1 + */ + +export default function secondsToMinutes(seconds) { + requiredArgs(1, arguments); + var minutes = seconds / secondsInMinute; + return Math.floor(minutes); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/secondsToMinutes/index.js.flow b/node_modules/date-fns/esm/secondsToMinutes/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/esm/secondsToMinutes/package.json b/node_modules/date-fns/esm/secondsToMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/secondsToMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/set/index.d.ts b/node_modules/date-fns/esm/set/index.d.ts new file mode 100644 index 00000000..d30347b6 --- /dev/null +++ b/node_modules/date-fns/esm/set/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { set } from 'date-fns' +export default set diff --git a/node_modules/date-fns/esm/set/index.js b/node_modules/date-fns/esm/set/index.js new file mode 100644 index 00000000..7cf17c1c --- /dev/null +++ b/node_modules/date-fns/esm/set/index.js @@ -0,0 +1,88 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import toDate from "../toDate/index.js"; +import setMonth from "../setMonth/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; + +/** + * @name set + * @category Common Helpers + * @summary Set date values to a given date. + * + * @description + * Set date values to a given date. + * + * Sets time values to date from object `values`. + * A value is not set if it is undefined or null or doesn't exist in `values`. + * + * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts + * to use native `Date#setX` methods. If you use this function, you may not want to include the + * other `setX` functions that date-fns provides if you are concerned about the bundle size. + * + * @param {Date|Number} date - the date to be changed + * @param {Object} values - an object with options + * @param {Number} [values.year] - the number of years to be set + * @param {Number} [values.month] - the number of months to be set + * @param {Number} [values.date] - the number of days to be set + * @param {Number} [values.hours] - the number of hours to be set + * @param {Number} [values.minutes] - the number of minutes to be set + * @param {Number} [values.seconds] - the number of seconds to be set + * @param {Number} [values.milliseconds] - the number of milliseconds to be set + * @returns {Date} the new date with options set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `values` must be an object + * + * @example + * // Transform 1 September 2014 into 20 October 2015 in a single line: + * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) + * //=> Tue Oct 20 2015 00:00:00 + * + * @example + * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: + * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) + * //=> Mon Sep 01 2014 12:23:45 + */ +export default function set(dirtyDate, values) { + requiredArgs(2, arguments); + + if (_typeof(values) !== 'object' || values === null) { + throw new RangeError('values parameter must be an object'); + } + + var date = toDate(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date + + if (isNaN(date.getTime())) { + return new Date(NaN); + } + + if (values.year != null) { + date.setFullYear(values.year); + } + + if (values.month != null) { + date = setMonth(date, values.month); + } + + if (values.date != null) { + date.setDate(toInteger(values.date)); + } + + if (values.hours != null) { + date.setHours(toInteger(values.hours)); + } + + if (values.minutes != null) { + date.setMinutes(toInteger(values.minutes)); + } + + if (values.seconds != null) { + date.setSeconds(toInteger(values.seconds)); + } + + if (values.milliseconds != null) { + date.setMilliseconds(toInteger(values.milliseconds)); + } + + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/set/index.js.flow b/node_modules/date-fns/esm/set/index.js.flow new file mode 100644 index 00000000..384f137c --- /dev/null +++ b/node_modules/date-fns/esm/set/index.js.flow @@ -0,0 +1,63 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + values: { + year?: number, + month?: number, + date?: number, + hours?: number, + minutes?: number, + seconds?: number, + milliseconds?: number, + } +) => Date diff --git a/node_modules/date-fns/esm/set/package.json b/node_modules/date-fns/esm/set/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/set/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDate/index.d.ts b/node_modules/date-fns/esm/setDate/index.d.ts new file mode 100644 index 00000000..677ea304 --- /dev/null +++ b/node_modules/date-fns/esm/setDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDate } from 'date-fns' +export default setDate diff --git a/node_modules/date-fns/esm/setDate/index.js b/node_modules/date-fns/esm/setDate/index.js new file mode 100644 index 00000000..18fd9699 --- /dev/null +++ b/node_modules/date-fns/esm/setDate/index.js @@ -0,0 +1,29 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setDate + * @category Day Helpers + * @summary Set the day of the month to the given date. + * + * @description + * Set the day of the month to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} dayOfMonth - the day of the month of the new date + * @returns {Date} the new date with the day of the month set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 30th day of the month to 1 September 2014: + * const result = setDate(new Date(2014, 8, 1), 30) + * //=> Tue Sep 30 2014 00:00:00 + */ + +export default function setDate(dirtyDate, dirtyDayOfMonth) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var dayOfMonth = toInteger(dirtyDayOfMonth); + date.setDate(dayOfMonth); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDate/index.js.flow b/node_modules/date-fns/esm/setDate/index.js.flow new file mode 100644 index 00000000..8c9b8072 --- /dev/null +++ b/node_modules/date-fns/esm/setDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, dayOfMonth: number) => Date diff --git a/node_modules/date-fns/esm/setDate/package.json b/node_modules/date-fns/esm/setDate/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDay/index.d.ts b/node_modules/date-fns/esm/setDay/index.d.ts new file mode 100644 index 00000000..5b3d9d18 --- /dev/null +++ b/node_modules/date-fns/esm/setDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDay } from 'date-fns' +export default setDay diff --git a/node_modules/date-fns/esm/setDay/index.js b/node_modules/date-fns/esm/setDay/index.js new file mode 100644 index 00000000..8427ae1e --- /dev/null +++ b/node_modules/date-fns/esm/setDay/index.js @@ -0,0 +1,53 @@ +import addDays from "../addDays/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name setDay + * @category Weekday Helpers + * @summary Set the day of the week to the given date. + * + * @description + * Set the day of the week to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} day - the day of the week of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the new date with the day of the week set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // Set week day to Sunday, with the default weekStartsOn of Sunday: + * const result = setDay(new Date(2014, 8, 1), 0) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Set week day to Sunday, with a weekStartsOn of Monday: + * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function setDay(dirtyDate, dirtyDay, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(2, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = toDate(dirtyDate); + var day = toInteger(dirtyDay); + var currentDay = date.getDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var delta = 7 - weekStartsOn; + var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; + return addDays(date, diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDay/index.js.flow b/node_modules/date-fns/esm/setDay/index.js.flow new file mode 100644 index 00000000..4a2d43d2 --- /dev/null +++ b/node_modules/date-fns/esm/setDay/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + day: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/esm/setDay/package.json b/node_modules/date-fns/esm/setDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDayOfYear/index.d.ts b/node_modules/date-fns/esm/setDayOfYear/index.d.ts new file mode 100644 index 00000000..5536c572 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayOfYear } from 'date-fns' +export default setDayOfYear diff --git a/node_modules/date-fns/esm/setDayOfYear/index.js b/node_modules/date-fns/esm/setDayOfYear/index.js new file mode 100644 index 00000000..c7ca75b6 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/index.js @@ -0,0 +1,30 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setDayOfYear + * @category Day Helpers + * @summary Set the day of the year to the given date. + * + * @description + * Set the day of the year to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} dayOfYear - the day of the year of the new date + * @returns {Date} the new date with the day of the year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 2nd day of the year to 2 July 2014: + * const result = setDayOfYear(new Date(2014, 6, 2), 2) + * //=> Thu Jan 02 2014 00:00:00 + */ + +export default function setDayOfYear(dirtyDate, dirtyDayOfYear) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var dayOfYear = toInteger(dirtyDayOfYear); + date.setMonth(0); + date.setDate(dayOfYear); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDayOfYear/index.js.flow b/node_modules/date-fns/esm/setDayOfYear/index.js.flow new file mode 100644 index 00000000..fc974d45 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, dayOfYear: number) => Date diff --git a/node_modules/date-fns/esm/setDayOfYear/package.json b/node_modules/date-fns/esm/setDayOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setDayOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDefaultOptions/index.d.ts b/node_modules/date-fns/esm/setDefaultOptions/index.d.ts new file mode 100644 index 00000000..35cf7c8c --- /dev/null +++ b/node_modules/date-fns/esm/setDefaultOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDefaultOptions } from 'date-fns' +export default setDefaultOptions diff --git a/node_modules/date-fns/esm/setDefaultOptions/index.js b/node_modules/date-fns/esm/setDefaultOptions/index.js new file mode 100644 index 00000000..ed60f033 --- /dev/null +++ b/node_modules/date-fns/esm/setDefaultOptions/index.js @@ -0,0 +1,77 @@ +import { getDefaultOptions, setDefaultOptions as setInternalDefaultOptions } from "../_lib/defaultOptions/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setDefaultOptions + * @category Common Helpers + * @summary Set default options including locale. + * @pure false + * + * @description + * Sets the defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * @param {Object} newOptions - an object with options. + * @param {Locale} [newOptions.locale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [newOptions.weekStartsOn] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [newOptions.firstWeekContainsDate] - the day of January, which is always in the first week of the year + * @throws {TypeError} 1 argument required + * + * @example + * // Set global locale: + * import { es } from 'date-fns/locale' + * setDefaultOptions({ locale: es }) + * const result = format(new Date(2014, 8, 2), 'PPPP') + * //=> 'martes, 2 de septiembre de 2014' + * + * @example + * // Start of the week for 2 September 2014: + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Start of the week for 2 September 2014, + * // when we set that week starts on Monday by default: + * setDefaultOptions({ weekStartsOn: 1 }) + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Mon Sep 01 2014 00:00:00 + * + * @example + * // Manually set options take priority over default options: + * setDefaultOptions({ weekStartsOn: 1 }) + * const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 }) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Remove the option by setting it to `undefined`: + * setDefaultOptions({ weekStartsOn: 1 }) + * setDefaultOptions({ weekStartsOn: undefined }) + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Sun Aug 31 2014 00:00:00 + */ + +export default function setDefaultOptions(newOptions) { + requiredArgs(1, arguments); + var result = {}; + var defaultOptions = getDefaultOptions(); + + for (var property in defaultOptions) { + if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) { + ; + result[property] = defaultOptions[property]; + } + } + + for (var _property in newOptions) { + if (Object.prototype.hasOwnProperty.call(newOptions, _property)) { + if (newOptions[_property] === undefined) { + delete result[_property]; + } else { + ; + result[_property] = newOptions[_property]; + } + } + } + + setInternalDefaultOptions(result); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setDefaultOptions/index.js.flow b/node_modules/date-fns/esm/setDefaultOptions/index.js.flow new file mode 100644 index 00000000..99f1582a --- /dev/null +++ b/node_modules/date-fns/esm/setDefaultOptions/index.js.flow @@ -0,0 +1,56 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (newOptions: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, +}) => void diff --git a/node_modules/date-fns/esm/setDefaultOptions/package.json b/node_modules/date-fns/esm/setDefaultOptions/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setDefaultOptions/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setHours/index.d.ts b/node_modules/date-fns/esm/setHours/index.d.ts new file mode 100644 index 00000000..2709a321 --- /dev/null +++ b/node_modules/date-fns/esm/setHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setHours } from 'date-fns' +export default setHours diff --git a/node_modules/date-fns/esm/setHours/index.js b/node_modules/date-fns/esm/setHours/index.js new file mode 100644 index 00000000..86f38e2d --- /dev/null +++ b/node_modules/date-fns/esm/setHours/index.js @@ -0,0 +1,29 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setHours + * @category Hour Helpers + * @summary Set the hours to the given date. + * + * @description + * Set the hours to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} hours - the hours of the new date + * @returns {Date} the new date with the hours set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 4 hours to 1 September 2014 11:30:00: + * const result = setHours(new Date(2014, 8, 1, 11, 30), 4) + * //=> Mon Sep 01 2014 04:30:00 + */ + +export default function setHours(dirtyDate, dirtyHours) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var hours = toInteger(dirtyHours); + date.setHours(hours); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setHours/index.js.flow b/node_modules/date-fns/esm/setHours/index.js.flow new file mode 100644 index 00000000..c9003bcd --- /dev/null +++ b/node_modules/date-fns/esm/setHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, hours: number) => Date diff --git a/node_modules/date-fns/esm/setHours/package.json b/node_modules/date-fns/esm/setHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISODay/index.d.ts b/node_modules/date-fns/esm/setISODay/index.d.ts new file mode 100644 index 00000000..63fb67a8 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISODay } from 'date-fns' +export default setISODay diff --git a/node_modules/date-fns/esm/setISODay/index.js b/node_modules/date-fns/esm/setISODay/index.js new file mode 100644 index 00000000..bb020a27 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/index.js @@ -0,0 +1,34 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import addDays from "../addDays/index.js"; +import getISODay from "../getISODay/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setISODay + * @category Weekday Helpers + * @summary Set the day of the ISO week to the given date. + * + * @description + * Set the day of the ISO week to the given date. + * ISO week starts with Monday. + * 7 is the index of Sunday, 1 is the index of Monday etc. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} day - the day of the ISO week of the new date + * @returns {Date} the new date with the day of the ISO week set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set Sunday to 1 September 2014: + * const result = setISODay(new Date(2014, 8, 1), 7) + * //=> Sun Sep 07 2014 00:00:00 + */ + +export default function setISODay(dirtyDate, dirtyDay) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var day = toInteger(dirtyDay); + var currentDay = getISODay(date); + var diff = day - currentDay; + return addDays(date, diff); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISODay/index.js.flow b/node_modules/date-fns/esm/setISODay/index.js.flow new file mode 100644 index 00000000..07b06297 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: number) => Date diff --git a/node_modules/date-fns/esm/setISODay/package.json b/node_modules/date-fns/esm/setISODay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setISODay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISOWeek/index.d.ts b/node_modules/date-fns/esm/setISOWeek/index.d.ts new file mode 100644 index 00000000..a2e79701 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeek } from 'date-fns' +export default setISOWeek diff --git a/node_modules/date-fns/esm/setISOWeek/index.js b/node_modules/date-fns/esm/setISOWeek/index.js new file mode 100644 index 00000000..c2466845 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/index.js @@ -0,0 +1,33 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import getISOWeek from "../getISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setISOWeek + * @category ISO Week Helpers + * @summary Set the ISO week to the given date. + * + * @description + * Set the ISO week to the given date, saving the weekday number. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} isoWeek - the ISO week of the new date + * @returns {Date} the new date with the ISO week set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 53rd ISO week to 7 August 2004: + * const result = setISOWeek(new Date(2004, 7, 7), 53) + * //=> Sat Jan 01 2005 00:00:00 + */ + +export default function setISOWeek(dirtyDate, dirtyISOWeek) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var isoWeek = toInteger(dirtyISOWeek); + var diff = getISOWeek(date) - isoWeek; + date.setDate(date.getDate() - diff * 7); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISOWeek/index.js.flow b/node_modules/date-fns/esm/setISOWeek/index.js.flow new file mode 100644 index 00000000..cf1ccb89 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, isoWeek: number) => Date diff --git a/node_modules/date-fns/esm/setISOWeek/package.json b/node_modules/date-fns/esm/setISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISOWeekYear/index.d.ts b/node_modules/date-fns/esm/setISOWeekYear/index.d.ts new file mode 100644 index 00000000..ab8ea95b --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeekYear } from 'date-fns' +export default setISOWeekYear diff --git a/node_modules/date-fns/esm/setISOWeekYear/index.js b/node_modules/date-fns/esm/setISOWeekYear/index.js new file mode 100644 index 00000000..0942b95b --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/index.js @@ -0,0 +1,39 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import startOfISOWeekYear from "../startOfISOWeekYear/index.js"; +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Set the ISO week-numbering year to the given date. + * + * @description + * Set the ISO week-numbering year to the given date, + * saving the week number and the weekday number. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} isoWeekYear - the ISO week-numbering year of the new date + * @returns {Date} the new date with the ISO week-numbering year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set ISO week-numbering year 2007 to 29 December 2008: + * const result = setISOWeekYear(new Date(2008, 11, 29), 2007) + * //=> Mon Jan 01 2007 00:00:00 + */ + +export default function setISOWeekYear(dirtyDate, dirtyISOWeekYear) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var isoWeekYear = toInteger(dirtyISOWeekYear); + var diff = differenceInCalendarDays(date, startOfISOWeekYear(date)); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(isoWeekYear, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + date = startOfISOWeekYear(fourthOfJanuary); + date.setDate(date.getDate() + diff); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setISOWeekYear/index.js.flow b/node_modules/date-fns/esm/setISOWeekYear/index.js.flow new file mode 100644 index 00000000..43beb651 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, isoWeekYear: number) => Date diff --git a/node_modules/date-fns/esm/setISOWeekYear/package.json b/node_modules/date-fns/esm/setISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMilliseconds/index.d.ts b/node_modules/date-fns/esm/setMilliseconds/index.d.ts new file mode 100644 index 00000000..04743a04 --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMilliseconds } from 'date-fns' +export default setMilliseconds diff --git a/node_modules/date-fns/esm/setMilliseconds/index.js b/node_modules/date-fns/esm/setMilliseconds/index.js new file mode 100644 index 00000000..7d6eb0da --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/index.js @@ -0,0 +1,29 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setMilliseconds + * @category Millisecond Helpers + * @summary Set the milliseconds to the given date. + * + * @description + * Set the milliseconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} milliseconds - the milliseconds of the new date + * @returns {Date} the new date with the milliseconds set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 300 milliseconds to 1 September 2014 11:30:40.500: + * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) + * //=> Mon Sep 01 2014 11:30:40.300 + */ + +export default function setMilliseconds(dirtyDate, dirtyMilliseconds) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var milliseconds = toInteger(dirtyMilliseconds); + date.setMilliseconds(milliseconds); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMilliseconds/index.js.flow b/node_modules/date-fns/esm/setMilliseconds/index.js.flow new file mode 100644 index 00000000..d9bc57fa --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, milliseconds: number) => Date diff --git a/node_modules/date-fns/esm/setMilliseconds/package.json b/node_modules/date-fns/esm/setMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMinutes/index.d.ts b/node_modules/date-fns/esm/setMinutes/index.d.ts new file mode 100644 index 00000000..2732d479 --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMinutes } from 'date-fns' +export default setMinutes diff --git a/node_modules/date-fns/esm/setMinutes/index.js b/node_modules/date-fns/esm/setMinutes/index.js new file mode 100644 index 00000000..fd2c2b3e --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/index.js @@ -0,0 +1,29 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setMinutes + * @category Minute Helpers + * @summary Set the minutes to the given date. + * + * @description + * Set the minutes to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} minutes - the minutes of the new date + * @returns {Date} the new date with the minutes set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 45 minutes to 1 September 2014 11:30:40: + * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) + * //=> Mon Sep 01 2014 11:45:40 + */ + +export default function setMinutes(dirtyDate, dirtyMinutes) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var minutes = toInteger(dirtyMinutes); + date.setMinutes(minutes); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMinutes/index.js.flow b/node_modules/date-fns/esm/setMinutes/index.js.flow new file mode 100644 index 00000000..5231232c --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, minutes: number) => Date diff --git a/node_modules/date-fns/esm/setMinutes/package.json b/node_modules/date-fns/esm/setMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMonth/index.d.ts b/node_modules/date-fns/esm/setMonth/index.d.ts new file mode 100644 index 00000000..720d61c9 --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMonth } from 'date-fns' +export default setMonth diff --git a/node_modules/date-fns/esm/setMonth/index.js b/node_modules/date-fns/esm/setMonth/index.js new file mode 100644 index 00000000..be2fc9df --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/index.js @@ -0,0 +1,38 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import getDaysInMonth from "../getDaysInMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setMonth + * @category Month Helpers + * @summary Set the month to the given date. + * + * @description + * Set the month to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} month - the month of the new date + * @returns {Date} the new date with the month set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set February to 1 September 2014: + * const result = setMonth(new Date(2014, 8, 1), 1) + * //=> Sat Feb 01 2014 00:00:00 + */ + +export default function setMonth(dirtyDate, dirtyMonth) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var month = toInteger(dirtyMonth); + var year = date.getFullYear(); + var day = date.getDate(); + var dateWithDesiredMonth = new Date(0); + dateWithDesiredMonth.setFullYear(year, month, 15); + dateWithDesiredMonth.setHours(0, 0, 0, 0); + var daysInMonth = getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month + // if the original date was the last day of the longer month + + date.setMonth(month, Math.min(day, daysInMonth)); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setMonth/index.js.flow b/node_modules/date-fns/esm/setMonth/index.js.flow new file mode 100644 index 00000000..29bd4de2 --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, month: number) => Date diff --git a/node_modules/date-fns/esm/setMonth/package.json b/node_modules/date-fns/esm/setMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setQuarter/index.d.ts b/node_modules/date-fns/esm/setQuarter/index.d.ts new file mode 100644 index 00000000..7e98fc9e --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setQuarter } from 'date-fns' +export default setQuarter diff --git a/node_modules/date-fns/esm/setQuarter/index.js b/node_modules/date-fns/esm/setQuarter/index.js new file mode 100644 index 00000000..216fd656 --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/index.js @@ -0,0 +1,31 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import setMonth from "../setMonth/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setQuarter + * @category Quarter Helpers + * @summary Set the year quarter to the given date. + * + * @description + * Set the year quarter to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} quarter - the quarter of the new date + * @returns {Date} the new date with the quarter set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 2nd quarter to 2 July 2014: + * const result = setQuarter(new Date(2014, 6, 2), 2) + * //=> Wed Apr 02 2014 00:00:00 + */ + +export default function setQuarter(dirtyDate, dirtyQuarter) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var quarter = toInteger(dirtyQuarter); + var oldQuarter = Math.floor(date.getMonth() / 3) + 1; + var diff = quarter - oldQuarter; + return setMonth(date, date.getMonth() + diff * 3); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setQuarter/index.js.flow b/node_modules/date-fns/esm/setQuarter/index.js.flow new file mode 100644 index 00000000..d0e4d51c --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, quarter: number) => Date diff --git a/node_modules/date-fns/esm/setQuarter/package.json b/node_modules/date-fns/esm/setQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setSeconds/index.d.ts b/node_modules/date-fns/esm/setSeconds/index.d.ts new file mode 100644 index 00000000..a67a07f2 --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setSeconds } from 'date-fns' +export default setSeconds diff --git a/node_modules/date-fns/esm/setSeconds/index.js b/node_modules/date-fns/esm/setSeconds/index.js new file mode 100644 index 00000000..dfd9ab08 --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/index.js @@ -0,0 +1,29 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setSeconds + * @category Second Helpers + * @summary Set the seconds to the given date. + * + * @description + * Set the seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} seconds - the seconds of the new date + * @returns {Date} the new date with the seconds set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 45 seconds to 1 September 2014 11:30:40: + * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) + * //=> Mon Sep 01 2014 11:30:45 + */ + +export default function setSeconds(dirtyDate, dirtySeconds) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var seconds = toInteger(dirtySeconds); + date.setSeconds(seconds); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setSeconds/index.js.flow b/node_modules/date-fns/esm/setSeconds/index.js.flow new file mode 100644 index 00000000..056c0682 --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, seconds: number) => Date diff --git a/node_modules/date-fns/esm/setSeconds/package.json b/node_modules/date-fns/esm/setSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setWeek/index.d.ts b/node_modules/date-fns/esm/setWeek/index.d.ts new file mode 100644 index 00000000..b6c90f34 --- /dev/null +++ b/node_modules/date-fns/esm/setWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeek } from 'date-fns' +export default setWeek diff --git a/node_modules/date-fns/esm/setWeek/index.js b/node_modules/date-fns/esm/setWeek/index.js new file mode 100644 index 00000000..233257f6 --- /dev/null +++ b/node_modules/date-fns/esm/setWeek/index.js @@ -0,0 +1,53 @@ +import getWeek from "../getWeek/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name setWeek + * @category Week Helpers + * @summary Set the local week to the given date. + * + * @description + * Set the local week to the given date, saving the weekday number. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the date to be changed + * @param {Number} week - the week of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the new date with the local week set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Set the 1st week to 2 January 2005 with default options: + * const result = setWeek(new Date(2005, 0, 2), 1) + * //=> Sun Dec 26 2004 00:00:00 + * + * @example + * // Set the 1st week to 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January: + * const result = setWeek(new Date(2005, 0, 2), 1, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sun Jan 4 2004 00:00:00 + */ + +export default function setWeek(dirtyDate, dirtyWeek, options) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var week = toInteger(dirtyWeek); + var diff = getWeek(date, options) - week; + date.setDate(date.getDate() - diff * 7); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setWeek/index.js.flow b/node_modules/date-fns/esm/setWeek/index.js.flow new file mode 100644 index 00000000..59b7eb30 --- /dev/null +++ b/node_modules/date-fns/esm/setWeek/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + week: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/esm/setWeek/package.json b/node_modules/date-fns/esm/setWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setWeekYear/index.d.ts b/node_modules/date-fns/esm/setWeekYear/index.d.ts new file mode 100644 index 00000000..af02252f --- /dev/null +++ b/node_modules/date-fns/esm/setWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYear } from 'date-fns' +export default setWeekYear diff --git a/node_modules/date-fns/esm/setWeekYear/index.js b/node_modules/date-fns/esm/setWeekYear/index.js new file mode 100644 index 00000000..1616b2a7 --- /dev/null +++ b/node_modules/date-fns/esm/setWeekYear/index.js @@ -0,0 +1,64 @@ +import differenceInCalendarDays from "../differenceInCalendarDays/index.js"; +import startOfWeekYear from "../startOfWeekYear/index.js"; +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name setWeekYear + * @category Week-Numbering Year Helpers + * @summary Set the local week-numbering year to the given date. + * + * @description + * Set the local week-numbering year to the given date, + * saving the week number and the weekday number. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the date to be changed + * @param {Number} weekYear - the local week-numbering year of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the new date with the local week-numbering year set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Set the local week-numbering year 2004 to 2 January 2010 with default options: + * const result = setWeekYear(new Date(2010, 0, 2), 2004) + * //=> Sat Jan 03 2004 00:00:00 + * + * @example + * // Set the local week-numbering year 2004 to 2 January 2010, + * // if Monday is the first day of week + * // and 4 January is always in the first week of the year: + * const result = setWeekYear(new Date(2010, 0, 2), 2004, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sat Jan 01 2005 00:00:00 + */ + +export default function setWeekYear(dirtyDate, dirtyWeekYear, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(2, arguments); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var date = toDate(dirtyDate); + var weekYear = toInteger(dirtyWeekYear); + var diff = differenceInCalendarDays(date, startOfWeekYear(date, options)); + var firstWeek = new Date(0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + date = startOfWeekYear(firstWeek, options); + date.setDate(date.getDate() + diff); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setWeekYear/index.js.flow b/node_modules/date-fns/esm/setWeekYear/index.js.flow new file mode 100644 index 00000000..12a9d84f --- /dev/null +++ b/node_modules/date-fns/esm/setWeekYear/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/esm/setWeekYear/package.json b/node_modules/date-fns/esm/setWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setYear/index.d.ts b/node_modules/date-fns/esm/setYear/index.d.ts new file mode 100644 index 00000000..e0a76fb4 --- /dev/null +++ b/node_modules/date-fns/esm/setYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setYear } from 'date-fns' +export default setYear diff --git a/node_modules/date-fns/esm/setYear/index.js b/node_modules/date-fns/esm/setYear/index.js new file mode 100644 index 00000000..a8e4353c --- /dev/null +++ b/node_modules/date-fns/esm/setYear/index.js @@ -0,0 +1,34 @@ +import toInteger from "../_lib/toInteger/index.js"; +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name setYear + * @category Year Helpers + * @summary Set the year to the given date. + * + * @description + * Set the year to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} year - the year of the new date + * @returns {Date} the new date with the year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set year 2013 to 1 September 2014: + * const result = setYear(new Date(2014, 8, 1), 2013) + * //=> Sun Sep 01 2013 00:00:00 + */ + +export default function setYear(dirtyDate, dirtyYear) { + requiredArgs(2, arguments); + var date = toDate(dirtyDate); + var year = toInteger(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date + + if (isNaN(date.getTime())) { + return new Date(NaN); + } + + date.setFullYear(year); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/setYear/index.js.flow b/node_modules/date-fns/esm/setYear/index.js.flow new file mode 100644 index 00000000..ebdcafed --- /dev/null +++ b/node_modules/date-fns/esm/setYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, year: number) => Date diff --git a/node_modules/date-fns/esm/setYear/package.json b/node_modules/date-fns/esm/setYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/setYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfDay/index.d.ts b/node_modules/date-fns/esm/startOfDay/index.d.ts new file mode 100644 index 00000000..4463069a --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDay } from 'date-fns' +export default startOfDay diff --git a/node_modules/date-fns/esm/startOfDay/index.js b/node_modules/date-fns/esm/startOfDay/index.js new file mode 100644 index 00000000..f61950cf --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfDay + * @category Day Helpers + * @summary Return the start of a day for the given date. + * + * @description + * Return the start of a day for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a day + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a day for 2 September 2014 11:55:00: + * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 00:00:00 + */ + +export default function startOfDay(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfDay/index.js.flow b/node_modules/date-fns/esm/startOfDay/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfDay/package.json b/node_modules/date-fns/esm/startOfDay/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfDay/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfDecade/index.d.ts b/node_modules/date-fns/esm/startOfDecade/index.d.ts new file mode 100644 index 00000000..c4309c3a --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDecade } from 'date-fns' +export default startOfDecade diff --git a/node_modules/date-fns/esm/startOfDecade/index.js b/node_modules/date-fns/esm/startOfDecade/index.js new file mode 100644 index 00000000..5264242d --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfDecade + * @category Decade Helpers + * @summary Return the start of a decade for the given date. + * + * @description + * Return the start of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a decade + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a decade for 21 October 2015 00:00:00: + * const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) + * //=> Jan 01 2010 00:00:00 + */ + +export default function startOfDecade(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var year = date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + date.setFullYear(decade, 0, 1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfDecade/index.js.flow b/node_modules/date-fns/esm/startOfDecade/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfDecade/package.json b/node_modules/date-fns/esm/startOfDecade/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfDecade/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfHour/index.d.ts b/node_modules/date-fns/esm/startOfHour/index.d.ts new file mode 100644 index 00000000..d1cc5033 --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfHour } from 'date-fns' +export default startOfHour diff --git a/node_modules/date-fns/esm/startOfHour/index.js b/node_modules/date-fns/esm/startOfHour/index.js new file mode 100644 index 00000000..7ba292c4 --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfHour + * @category Hour Helpers + * @summary Return the start of an hour for the given date. + * + * @description + * Return the start of an hour for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an hour + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an hour for 2 September 2014 11:55:00: + * const result = startOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:00:00 + */ + +export default function startOfHour(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setMinutes(0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfHour/index.js.flow b/node_modules/date-fns/esm/startOfHour/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfHour/package.json b/node_modules/date-fns/esm/startOfHour/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfHour/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfISOWeek/index.d.ts b/node_modules/date-fns/esm/startOfISOWeek/index.d.ts new file mode 100644 index 00000000..93e573a6 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeek } from 'date-fns' +export default startOfISOWeek diff --git a/node_modules/date-fns/esm/startOfISOWeek/index.js b/node_modules/date-fns/esm/startOfISOWeek/index.js new file mode 100644 index 00000000..53feafbb --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/index.js @@ -0,0 +1,29 @@ +import startOfWeek from "../startOfWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfISOWeek + * @category ISO Week Helpers + * @summary Return the start of an ISO week for the given date. + * + * @description + * Return the start of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an ISO week for 2 September 2014 11:55:00: + * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ + +export default function startOfISOWeek(dirtyDate) { + requiredArgs(1, arguments); + return startOfWeek(dirtyDate, { + weekStartsOn: 1 + }); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfISOWeek/index.js.flow b/node_modules/date-fns/esm/startOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfISOWeek/package.json b/node_modules/date-fns/esm/startOfISOWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfISOWeekYear/index.d.ts b/node_modules/date-fns/esm/startOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..c29d7d06 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeekYear } from 'date-fns' +export default startOfISOWeekYear diff --git a/node_modules/date-fns/esm/startOfISOWeekYear/index.js b/node_modules/date-fns/esm/startOfISOWeekYear/index.js new file mode 100644 index 00000000..efdac631 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/index.js @@ -0,0 +1,34 @@ +import getISOWeekYear from "../getISOWeekYear/index.js"; +import startOfISOWeek from "../startOfISOWeek/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the start of an ISO week-numbering year for the given date. + * + * @description + * Return the start of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an ISO week-numbering year for 2 July 2005: + * const result = startOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Mon Jan 03 2005 00:00:00 + */ + +export default function startOfISOWeekYear(dirtyDate) { + requiredArgs(1, arguments); + var year = getISOWeekYear(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(year, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date = startOfISOWeek(fourthOfJanuary); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfISOWeekYear/index.js.flow b/node_modules/date-fns/esm/startOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfISOWeekYear/package.json b/node_modules/date-fns/esm/startOfISOWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfISOWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfMinute/index.d.ts b/node_modules/date-fns/esm/startOfMinute/index.d.ts new file mode 100644 index 00000000..1b966837 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMinute } from 'date-fns' +export default startOfMinute diff --git a/node_modules/date-fns/esm/startOfMinute/index.js b/node_modules/date-fns/esm/startOfMinute/index.js new file mode 100644 index 00000000..d3388adc --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfMinute + * @category Minute Helpers + * @summary Return the start of a minute for the given date. + * + * @description + * Return the start of a minute for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a minute + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a minute for 1 December 2014 22:15:45.400: + * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:00 + */ + +export default function startOfMinute(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setSeconds(0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfMinute/index.js.flow b/node_modules/date-fns/esm/startOfMinute/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfMinute/package.json b/node_modules/date-fns/esm/startOfMinute/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMinute/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfMonth/index.d.ts b/node_modules/date-fns/esm/startOfMonth/index.d.ts new file mode 100644 index 00000000..08de436d --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMonth } from 'date-fns' +export default startOfMonth diff --git a/node_modules/date-fns/esm/startOfMonth/index.js b/node_modules/date-fns/esm/startOfMonth/index.js new file mode 100644 index 00000000..80ccfc54 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/index.js @@ -0,0 +1,28 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfMonth + * @category Month Helpers + * @summary Return the start of a month for the given date. + * + * @description + * Return the start of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a month for 2 September 2014 11:55:00: + * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ + +export default function startOfMonth(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setDate(1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfMonth/index.js.flow b/node_modules/date-fns/esm/startOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfMonth/package.json b/node_modules/date-fns/esm/startOfMonth/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfMonth/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfQuarter/index.d.ts b/node_modules/date-fns/esm/startOfQuarter/index.d.ts new file mode 100644 index 00000000..7afa7270 --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfQuarter } from 'date-fns' +export default startOfQuarter diff --git a/node_modules/date-fns/esm/startOfQuarter/index.js b/node_modules/date-fns/esm/startOfQuarter/index.js new file mode 100644 index 00000000..8cc89b39 --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/index.js @@ -0,0 +1,30 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfQuarter + * @category Quarter Helpers + * @summary Return the start of a year quarter for the given date. + * + * @description + * Return the start of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a quarter + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a quarter for 2 September 2014 11:55:00: + * const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Jul 01 2014 00:00:00 + */ + +export default function startOfQuarter(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3; + date.setMonth(month, 1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfQuarter/index.js.flow b/node_modules/date-fns/esm/startOfQuarter/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfQuarter/package.json b/node_modules/date-fns/esm/startOfQuarter/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfQuarter/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfSecond/index.d.ts b/node_modules/date-fns/esm/startOfSecond/index.d.ts new file mode 100644 index 00000000..b3b40174 --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfSecond } from 'date-fns' +export default startOfSecond diff --git a/node_modules/date-fns/esm/startOfSecond/index.js b/node_modules/date-fns/esm/startOfSecond/index.js new file mode 100644 index 00000000..d7d3ac3d --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/index.js @@ -0,0 +1,27 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfSecond + * @category Second Helpers + * @summary Return the start of a second for the given date. + * + * @description + * Return the start of a second for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a second + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a second for 1 December 2014 22:15:45.400: + * const result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.000 + */ + +export default function startOfSecond(dirtyDate) { + requiredArgs(1, arguments); + var date = toDate(dirtyDate); + date.setMilliseconds(0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfSecond/index.js.flow b/node_modules/date-fns/esm/startOfSecond/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfSecond/package.json b/node_modules/date-fns/esm/startOfSecond/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfSecond/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfToday/index.d.ts b/node_modules/date-fns/esm/startOfToday/index.d.ts new file mode 100644 index 00000000..8a0615e3 --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfToday } from 'date-fns' +export default startOfToday diff --git a/node_modules/date-fns/esm/startOfToday/index.js b/node_modules/date-fns/esm/startOfToday/index.js new file mode 100644 index 00000000..321f9b88 --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/index.js @@ -0,0 +1,24 @@ +import startOfDay from "../startOfDay/index.js"; +/** + * @name startOfToday + * @category Day Helpers + * @summary Return the start of today. + * @pure false + * + * @description + * Return the start of today. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of today + * + * @example + * // If today is 6 October 2014: + * const result = startOfToday() + * //=> Mon Oct 6 2014 00:00:00 + */ + +export default function startOfToday() { + return startOfDay(Date.now()); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfToday/index.js.flow b/node_modules/date-fns/esm/startOfToday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/startOfToday/package.json b/node_modules/date-fns/esm/startOfToday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfToday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfTomorrow/index.d.ts b/node_modules/date-fns/esm/startOfTomorrow/index.d.ts new file mode 100644 index 00000000..464ad5b0 --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfTomorrow } from 'date-fns' +export default startOfTomorrow diff --git a/node_modules/date-fns/esm/startOfTomorrow/index.js b/node_modules/date-fns/esm/startOfTomorrow/index.js new file mode 100644 index 00000000..b9498e24 --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/index.js @@ -0,0 +1,29 @@ +/** + * @name startOfTomorrow + * @category Day Helpers + * @summary Return the start of tomorrow. + * @pure false + * + * @description + * Return the start of tomorrow. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = startOfTomorrow() + * //=> Tue Oct 7 2014 00:00:00 + */ +export default function startOfTomorrow() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day + 1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfTomorrow/index.js.flow b/node_modules/date-fns/esm/startOfTomorrow/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/startOfTomorrow/package.json b/node_modules/date-fns/esm/startOfTomorrow/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfTomorrow/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfWeek/index.d.ts b/node_modules/date-fns/esm/startOfWeek/index.d.ts new file mode 100644 index 00000000..4a45d11a --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeek } from 'date-fns' +export default startOfWeek diff --git a/node_modules/date-fns/esm/startOfWeek/index.js b/node_modules/date-fns/esm/startOfWeek/index.js new file mode 100644 index 00000000..04c3f12d --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/index.js @@ -0,0 +1,50 @@ +import toDate from "../toDate/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name startOfWeek + * @category Week Helpers + * @summary Return the start of a week for the given date. + * + * @description + * Return the start of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the start of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The start of a week for 2 September 2014 11:55:00: + * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: + * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Mon Sep 01 2014 00:00:00 + */ + +export default function startOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = toDate(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setDate(date.getDate() - diff); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfWeek/index.js.flow b/node_modules/date-fns/esm/startOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/esm/startOfWeek/package.json b/node_modules/date-fns/esm/startOfWeek/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeek/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfWeekYear/index.d.ts b/node_modules/date-fns/esm/startOfWeekYear/index.d.ts new file mode 100644 index 00000000..95b48513 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYear } from 'date-fns' +export default startOfWeekYear diff --git a/node_modules/date-fns/esm/startOfWeekYear/index.js b/node_modules/date-fns/esm/startOfWeekYear/index.js new file mode 100644 index 00000000..7f7c1fd0 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/index.js @@ -0,0 +1,58 @@ +import getWeekYear from "../getWeekYear/index.js"; +import startOfWeek from "../startOfWeek/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { getDefaultOptions } from "../_lib/defaultOptions/index.js"; +/** + * @name startOfWeekYear + * @category Week-Numbering Year Helpers + * @summary Return the start of a local week-numbering year for the given date. + * + * @description + * Return the start of a local week-numbering year. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the start of a week-numbering year + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // The start of an a week-numbering year for 2 July 2005 with default settings: + * const result = startOfWeekYear(new Date(2005, 6, 2)) + * //=> Sun Dec 26 2004 00:00:00 + * + * @example + * // The start of a week-numbering year for 2 July 2005 + * // if Monday is the first day of week + * // and 4 January is always in the first week of the year: + * const result = startOfWeekYear(new Date(2005, 6, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Mon Jan 03 2005 00:00:00 + */ + +export default function startOfWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + requiredArgs(1, arguments); + var defaultOptions = getDefaultOptions(); + var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var year = getWeekYear(dirtyDate, options); + var firstWeek = new Date(0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date = startOfWeek(firstWeek, options); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfWeekYear/index.js.flow b/node_modules/date-fns/esm/startOfWeekYear/index.js.flow new file mode 100644 index 00000000..49cecb6e --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/esm/startOfWeekYear/package.json b/node_modules/date-fns/esm/startOfWeekYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfWeekYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfYear/index.d.ts b/node_modules/date-fns/esm/startOfYear/index.d.ts new file mode 100644 index 00000000..669ffc9b --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYear } from 'date-fns' +export default startOfYear diff --git a/node_modules/date-fns/esm/startOfYear/index.js b/node_modules/date-fns/esm/startOfYear/index.js new file mode 100644 index 00000000..3f3c1c77 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/index.js @@ -0,0 +1,29 @@ +import toDate from "../toDate/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name startOfYear + * @category Year Helpers + * @summary Return the start of a year for the given date. + * + * @description + * Return the start of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a year for 2 September 2014 11:55:00: + * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Jan 01 2014 00:00:00 + */ + +export default function startOfYear(dirtyDate) { + requiredArgs(1, arguments); + var cleanDate = toDate(dirtyDate); + var date = new Date(0); + date.setFullYear(cleanDate.getFullYear(), 0, 1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfYear/index.js.flow b/node_modules/date-fns/esm/startOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/esm/startOfYear/package.json b/node_modules/date-fns/esm/startOfYear/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYear/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfYesterday/index.d.ts b/node_modules/date-fns/esm/startOfYesterday/index.d.ts new file mode 100644 index 00000000..0342a28e --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYesterday } from 'date-fns' +export default startOfYesterday diff --git a/node_modules/date-fns/esm/startOfYesterday/index.js b/node_modules/date-fns/esm/startOfYesterday/index.js new file mode 100644 index 00000000..4ada2bb6 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/index.js @@ -0,0 +1,29 @@ +/** + * @name startOfYesterday + * @category Day Helpers + * @summary Return the start of yesterday. + * @pure false + * + * @description + * Return the start of yesterday. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = startOfYesterday() + * //=> Sun Oct 5 2014 00:00:00 + */ +export default function startOfYesterday() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day - 1); + date.setHours(0, 0, 0, 0); + return date; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/startOfYesterday/index.js.flow b/node_modules/date-fns/esm/startOfYesterday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/esm/startOfYesterday/package.json b/node_modules/date-fns/esm/startOfYesterday/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/startOfYesterday/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/sub/index.d.ts b/node_modules/date-fns/esm/sub/index.d.ts new file mode 100644 index 00000000..7a4f3ecc --- /dev/null +++ b/node_modules/date-fns/esm/sub/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sub } from 'date-fns' +export default sub diff --git a/node_modules/date-fns/esm/sub/index.js b/node_modules/date-fns/esm/sub/index.js new file mode 100644 index 00000000..521adb65 --- /dev/null +++ b/node_modules/date-fns/esm/sub/index.js @@ -0,0 +1,67 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import subDays from "../subDays/index.js"; +import subMonths from "../subMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name sub + * @category Common Helpers + * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. + * + * @description + * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted + * + * | Key | Description | + * |---------|------------------------------------| + * | years | Amount of years to be subtracted | + * | months | Amount of months to be subtracted | + * | weeks | Amount of weeks to be subtracted | + * | days | Amount of days to be subtracted | + * | hours | Amount of hours to be subtracted | + * | minutes | Amount of minutes to be subtracted | + * | seconds | Amount of seconds to be subtracted | + * + * All values default to 0 + * + * @returns {Date} the new date with the seconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract the following duration from 15 June 2017 15:29:20 + * const result = sub(new Date(2017, 5, 15, 15, 29, 20), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> Mon Sep 1 2014 10:19:50 + */ + +export default function sub(date, duration) { + requiredArgs(2, arguments); + if (!duration || _typeof(duration) !== 'object') return new Date(NaN); + var years = duration.years ? toInteger(duration.years) : 0; + var months = duration.months ? toInteger(duration.months) : 0; + var weeks = duration.weeks ? toInteger(duration.weeks) : 0; + var days = duration.days ? toInteger(duration.days) : 0; + var hours = duration.hours ? toInteger(duration.hours) : 0; + var minutes = duration.minutes ? toInteger(duration.minutes) : 0; + var seconds = duration.seconds ? toInteger(duration.seconds) : 0; // Subtract years and months + + var dateWithoutMonths = subMonths(date, months + years * 12); // Subtract weeks and days + + var dateWithoutDays = subDays(dateWithoutMonths, days + weeks * 7); // Subtract hours, minutes and seconds + + var minutestoSub = minutes + hours * 60; + var secondstoSub = seconds + minutestoSub * 60; + var mstoSub = secondstoSub * 1000; + var finalDate = new Date(dateWithoutDays.getTime() - mstoSub); + return finalDate; +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/sub/index.js.flow b/node_modules/date-fns/esm/sub/index.js.flow new file mode 100644 index 00000000..e79df7ca --- /dev/null +++ b/node_modules/date-fns/esm/sub/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, duration: Duration) => Date diff --git a/node_modules/date-fns/esm/sub/package.json b/node_modules/date-fns/esm/sub/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/sub/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subBusinessDays/index.d.ts b/node_modules/date-fns/esm/subBusinessDays/index.d.ts new file mode 100644 index 00000000..7a0549aa --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subBusinessDays } from 'date-fns' +export default subBusinessDays diff --git a/node_modules/date-fns/esm/subBusinessDays/index.js b/node_modules/date-fns/esm/subBusinessDays/index.js new file mode 100644 index 00000000..48154f87 --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/index.js @@ -0,0 +1,27 @@ +import addBusinessDays from "../addBusinessDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subBusinessDays + * @category Day Helpers + * @summary Substract the specified number of business days (mon - fri) to the given date. + * + * @description + * Substract the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of business days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the business days subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Substract 10 business days from 1 September 2014: + * const result = subBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) + */ + +export default function subBusinessDays(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addBusinessDays(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subBusinessDays/index.js.flow b/node_modules/date-fns/esm/subBusinessDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subBusinessDays/package.json b/node_modules/date-fns/esm/subBusinessDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subBusinessDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subDays/index.d.ts b/node_modules/date-fns/esm/subDays/index.d.ts new file mode 100644 index 00000000..0b2fe65f --- /dev/null +++ b/node_modules/date-fns/esm/subDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subDays } from 'date-fns' +export default subDays diff --git a/node_modules/date-fns/esm/subDays/index.js b/node_modules/date-fns/esm/subDays/index.js new file mode 100644 index 00000000..40d857a2 --- /dev/null +++ b/node_modules/date-fns/esm/subDays/index.js @@ -0,0 +1,27 @@ +import addDays from "../addDays/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subDays + * @category Day Helpers + * @summary Subtract the specified number of days from the given date. + * + * @description + * Subtract the specified number of days from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the days subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 10 days from 1 September 2014: + * const result = subDays(new Date(2014, 8, 1), 10) + * //=> Fri Aug 22 2014 00:00:00 + */ + +export default function subDays(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addDays(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subDays/index.js.flow b/node_modules/date-fns/esm/subDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subDays/package.json b/node_modules/date-fns/esm/subDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subHours/index.d.ts b/node_modules/date-fns/esm/subHours/index.d.ts new file mode 100644 index 00000000..9b9a0d24 --- /dev/null +++ b/node_modules/date-fns/esm/subHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subHours } from 'date-fns' +export default subHours diff --git a/node_modules/date-fns/esm/subHours/index.js b/node_modules/date-fns/esm/subHours/index.js new file mode 100644 index 00000000..5631edca --- /dev/null +++ b/node_modules/date-fns/esm/subHours/index.js @@ -0,0 +1,27 @@ +import addHours from "../addHours/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subHours + * @category Hour Helpers + * @summary Subtract the specified number of hours from the given date. + * + * @description + * Subtract the specified number of hours from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the hours subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 2 hours from 11 July 2014 01:00:00: + * const result = subHours(new Date(2014, 6, 11, 1, 0), 2) + * //=> Thu Jul 10 2014 23:00:00 + */ + +export default function subHours(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addHours(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subHours/index.js.flow b/node_modules/date-fns/esm/subHours/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subHours/package.json b/node_modules/date-fns/esm/subHours/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subHours/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subISOWeekYears/index.d.ts b/node_modules/date-fns/esm/subISOWeekYears/index.d.ts new file mode 100644 index 00000000..78018ea0 --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subISOWeekYears } from 'date-fns' +export default subISOWeekYears diff --git a/node_modules/date-fns/esm/subISOWeekYears/index.js b/node_modules/date-fns/esm/subISOWeekYears/index.js new file mode 100644 index 00000000..54c0512e --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/index.js @@ -0,0 +1,29 @@ +import addISOWeekYears from "../addISOWeekYears/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Subtract the specified number of ISO week-numbering years from the given date. + * + * @description + * Subtract the specified number of ISO week-numbering years from the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of ISO week-numbering years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the ISO week-numbering years subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 ISO week-numbering years from 1 September 2014: + * const result = subISOWeekYears(new Date(2014, 8, 1), 5) + * //=> Mon Aug 31 2009 00:00:00 + */ + +export default function subISOWeekYears(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addISOWeekYears(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subISOWeekYears/index.js.flow b/node_modules/date-fns/esm/subISOWeekYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subISOWeekYears/package.json b/node_modules/date-fns/esm/subISOWeekYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subISOWeekYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMilliseconds/index.d.ts b/node_modules/date-fns/esm/subMilliseconds/index.d.ts new file mode 100644 index 00000000..ffc51f16 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMilliseconds } from 'date-fns' +export default subMilliseconds diff --git a/node_modules/date-fns/esm/subMilliseconds/index.js b/node_modules/date-fns/esm/subMilliseconds/index.js new file mode 100644 index 00000000..a51f91c8 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/index.js @@ -0,0 +1,27 @@ +import addMilliseconds from "../addMilliseconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subMilliseconds + * @category Millisecond Helpers + * @summary Subtract the specified number of milliseconds from the given date. + * + * @description + * Subtract the specified number of milliseconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: + * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:29.250 + */ + +export default function subMilliseconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMilliseconds(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMilliseconds/index.js.flow b/node_modules/date-fns/esm/subMilliseconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subMilliseconds/package.json b/node_modules/date-fns/esm/subMilliseconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subMilliseconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMinutes/index.d.ts b/node_modules/date-fns/esm/subMinutes/index.d.ts new file mode 100644 index 00000000..43c32229 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMinutes } from 'date-fns' +export default subMinutes diff --git a/node_modules/date-fns/esm/subMinutes/index.js b/node_modules/date-fns/esm/subMinutes/index.js new file mode 100644 index 00000000..06702786 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/index.js @@ -0,0 +1,27 @@ +import addMinutes from "../addMinutes/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +import toInteger from "../_lib/toInteger/index.js"; +/** + * @name subMinutes + * @category Minute Helpers + * @summary Subtract the specified number of minutes from the given date. + * + * @description + * Subtract the specified number of minutes from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the minutes subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 30 minutes from 10 July 2014 12:00:00: + * const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 11:30:00 + */ + +export default function subMinutes(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMinutes(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMinutes/index.js.flow b/node_modules/date-fns/esm/subMinutes/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subMinutes/package.json b/node_modules/date-fns/esm/subMinutes/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subMinutes/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMonths/index.d.ts b/node_modules/date-fns/esm/subMonths/index.d.ts new file mode 100644 index 00000000..dd963a14 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMonths } from 'date-fns' +export default subMonths diff --git a/node_modules/date-fns/esm/subMonths/index.js b/node_modules/date-fns/esm/subMonths/index.js new file mode 100644 index 00000000..be99a2d2 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addMonths from "../addMonths/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name subMonths + * @category Month Helpers + * @summary Subtract the specified number of months from the given date. + * + * @description + * Subtract the specified number of months from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the months subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 months from 1 February 2015: + * const result = subMonths(new Date(2015, 1, 1), 5) + * //=> Mon Sep 01 2014 00:00:00 + */ + +export default function subMonths(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addMonths(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subMonths/index.js.flow b/node_modules/date-fns/esm/subMonths/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subMonths/package.json b/node_modules/date-fns/esm/subMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subQuarters/index.d.ts b/node_modules/date-fns/esm/subQuarters/index.d.ts new file mode 100644 index 00000000..216a1f39 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subQuarters } from 'date-fns' +export default subQuarters diff --git a/node_modules/date-fns/esm/subQuarters/index.js b/node_modules/date-fns/esm/subQuarters/index.js new file mode 100644 index 00000000..3e650679 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addQuarters from "../addQuarters/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name subQuarters + * @category Quarter Helpers + * @summary Subtract the specified number of year quarters from the given date. + * + * @description + * Subtract the specified number of year quarters from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of quarters to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the quarters subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 3 quarters from 1 September 2014: + * const result = subQuarters(new Date(2014, 8, 1), 3) + * //=> Sun Dec 01 2013 00:00:00 + */ + +export default function subQuarters(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addQuarters(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subQuarters/index.js.flow b/node_modules/date-fns/esm/subQuarters/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subQuarters/package.json b/node_modules/date-fns/esm/subQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subSeconds/index.d.ts b/node_modules/date-fns/esm/subSeconds/index.d.ts new file mode 100644 index 00000000..f718279a --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subSeconds } from 'date-fns' +export default subSeconds diff --git a/node_modules/date-fns/esm/subSeconds/index.js b/node_modules/date-fns/esm/subSeconds/index.js new file mode 100644 index 00000000..81a6163a --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addSeconds from "../addSeconds/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name subSeconds + * @category Second Helpers + * @summary Subtract the specified number of seconds from the given date. + * + * @description + * Subtract the specified number of seconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of seconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the seconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 30 seconds from 10 July 2014 12:45:00: + * const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:44:30 + */ + +export default function subSeconds(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addSeconds(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subSeconds/index.js.flow b/node_modules/date-fns/esm/subSeconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subSeconds/package.json b/node_modules/date-fns/esm/subSeconds/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subSeconds/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subWeeks/index.d.ts b/node_modules/date-fns/esm/subWeeks/index.d.ts new file mode 100644 index 00000000..b6e3c827 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subWeeks } from 'date-fns' +export default subWeeks diff --git a/node_modules/date-fns/esm/subWeeks/index.js b/node_modules/date-fns/esm/subWeeks/index.js new file mode 100644 index 00000000..22571d74 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addWeeks from "../addWeeks/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name subWeeks + * @category Week Helpers + * @summary Subtract the specified number of weeks from the given date. + * + * @description + * Subtract the specified number of weeks from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the weeks subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 4 weeks from 1 September 2014: + * const result = subWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Aug 04 2014 00:00:00 + */ + +export default function subWeeks(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addWeeks(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subWeeks/index.js.flow b/node_modules/date-fns/esm/subWeeks/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subWeeks/package.json b/node_modules/date-fns/esm/subWeeks/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subWeeks/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subYears/index.d.ts b/node_modules/date-fns/esm/subYears/index.d.ts new file mode 100644 index 00000000..5edf4821 --- /dev/null +++ b/node_modules/date-fns/esm/subYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subYears } from 'date-fns' +export default subYears diff --git a/node_modules/date-fns/esm/subYears/index.js b/node_modules/date-fns/esm/subYears/index.js new file mode 100644 index 00000000..a48622f0 --- /dev/null +++ b/node_modules/date-fns/esm/subYears/index.js @@ -0,0 +1,27 @@ +import toInteger from "../_lib/toInteger/index.js"; +import addYears from "../addYears/index.js"; +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name subYears + * @category Year Helpers + * @summary Subtract the specified number of years from the given date. + * + * @description + * Subtract the specified number of years from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the years subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 years from 1 September 2014: + * const result = subYears(new Date(2014, 8, 1), 5) + * //=> Tue Sep 01 2009 00:00:00 + */ + +export default function subYears(dirtyDate, dirtyAmount) { + requiredArgs(2, arguments); + var amount = toInteger(dirtyAmount); + return addYears(dirtyDate, -amount); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/subYears/index.js.flow b/node_modules/date-fns/esm/subYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/esm/subYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/esm/subYears/package.json b/node_modules/date-fns/esm/subYears/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/subYears/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/toDate/index.d.ts b/node_modules/date-fns/esm/toDate/index.d.ts new file mode 100644 index 00000000..0231ae7d --- /dev/null +++ b/node_modules/date-fns/esm/toDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { toDate } from 'date-fns' +export default toDate diff --git a/node_modules/date-fns/esm/toDate/index.js b/node_modules/date-fns/esm/toDate/index.js new file mode 100644 index 00000000..81c098e8 --- /dev/null +++ b/node_modules/date-fns/esm/toDate/index.js @@ -0,0 +1,54 @@ +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +import requiredArgs from "../_lib/requiredArgs/index.js"; +/** + * @name toDate + * @category Common Helpers + * @summary Convert the given argument to an instance of Date. + * + * @description + * Convert the given argument to an instance of Date. + * + * If the argument is an instance of Date, the function returns its clone. + * + * If the argument is a number, it is treated as a timestamp. + * + * If the argument is none of the above, the function returns Invalid Date. + * + * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. + * + * @param {Date|Number} argument - the value to convert + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + * + * @example + * // Clone the date: + * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) + * //=> Tue Feb 11 2014 11:30:30 + * + * @example + * // Convert the timestamp to date: + * const result = toDate(1392098430000) + * //=> Tue Feb 11 2014 11:30:30 + */ + +export default function toDate(argument) { + requiredArgs(1, arguments); + var argStr = Object.prototype.toString.call(argument); // Clone the date + + if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') { + // Prevent the date to lose the milliseconds when passed to new Date() in IE10 + return new Date(argument.getTime()); + } else if (typeof argument === 'number' || argStr === '[object Number]') { + return new Date(argument); + } else { + if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { + // eslint-disable-next-line no-console + console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console + + console.warn(new Error().stack); + } + + return new Date(NaN); + } +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/toDate/index.js.flow b/node_modules/date-fns/esm/toDate/index.js.flow new file mode 100644 index 00000000..19292c70 --- /dev/null +++ b/node_modules/date-fns/esm/toDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (argument: Date | number) => Date diff --git a/node_modules/date-fns/esm/toDate/package.json b/node_modules/date-fns/esm/toDate/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/toDate/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/types.js b/node_modules/date-fns/esm/types.js new file mode 100644 index 00000000..8cec2e9c --- /dev/null +++ b/node_modules/date-fns/esm/types.js @@ -0,0 +1 @@ +export {}; \ No newline at end of file diff --git a/node_modules/date-fns/esm/weeksToDays/index.d.ts b/node_modules/date-fns/esm/weeksToDays/index.d.ts new file mode 100644 index 00000000..dd8c1fe0 --- /dev/null +++ b/node_modules/date-fns/esm/weeksToDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { weeksToDays } from 'date-fns' +export default weeksToDays diff --git a/node_modules/date-fns/esm/weeksToDays/index.js b/node_modules/date-fns/esm/weeksToDays/index.js new file mode 100644 index 00000000..b10d3b5d --- /dev/null +++ b/node_modules/date-fns/esm/weeksToDays/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { daysInWeek } from "../constants/index.js"; +/** + * @name weeksToDays + * @category Conversion Helpers + * @summary Convert weeks to days. + * + * @description + * Convert a number of weeks to a full number of days. + * + * @param {number} weeks - number of weeks to be converted + * + * @returns {number} the number of weeks converted in days + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 weeks into days + * const result = weeksToDays(2) + * //=> 14 + */ + +export default function weeksToDays(weeks) { + requiredArgs(1, arguments); + return Math.floor(weeks * daysInWeek); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/weeksToDays/index.js.flow b/node_modules/date-fns/esm/weeksToDays/index.js.flow new file mode 100644 index 00000000..257c1ccf --- /dev/null +++ b/node_modules/date-fns/esm/weeksToDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (weeks: number) => number diff --git a/node_modules/date-fns/esm/weeksToDays/package.json b/node_modules/date-fns/esm/weeksToDays/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/weeksToDays/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/yearsToMonths/index.d.ts b/node_modules/date-fns/esm/yearsToMonths/index.d.ts new file mode 100644 index 00000000..9e9126d6 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToMonths } from 'date-fns' +export default yearsToMonths diff --git a/node_modules/date-fns/esm/yearsToMonths/index.js b/node_modules/date-fns/esm/yearsToMonths/index.js new file mode 100644 index 00000000..66affde6 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToMonths/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { monthsInYear } from "../constants/index.js"; +/** + * @name yearsToMonths + * @category Conversion Helpers + * @summary Convert years to months. + * + * @description + * Convert a number of years to a full number of months. + * + * @param {number} years - number of years to be converted + * + * @returns {number} the number of years converted in months + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 years into months + * const result = yearsToMonths(2) + * //=> 24 + */ + +export default function yearsToMonths(years) { + requiredArgs(1, arguments); + return Math.floor(years * monthsInYear); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/yearsToMonths/index.js.flow b/node_modules/date-fns/esm/yearsToMonths/index.js.flow new file mode 100644 index 00000000..d0819197 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (years: number) => number diff --git a/node_modules/date-fns/esm/yearsToMonths/package.json b/node_modules/date-fns/esm/yearsToMonths/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToMonths/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/yearsToQuarters/index.d.ts b/node_modules/date-fns/esm/yearsToQuarters/index.d.ts new file mode 100644 index 00000000..e3ebc705 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToQuarters } from 'date-fns' +export default yearsToQuarters diff --git a/node_modules/date-fns/esm/yearsToQuarters/index.js b/node_modules/date-fns/esm/yearsToQuarters/index.js new file mode 100644 index 00000000..bd1dd008 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToQuarters/index.js @@ -0,0 +1,25 @@ +import requiredArgs from "../_lib/requiredArgs/index.js"; +import { quartersInYear } from "../constants/index.js"; +/** + * @name yearsToQuarters + * @category Conversion Helpers + * @summary Convert years to quarters. + * + * @description + * Convert a number of years to a full number of quarters. + * + * @param {number} years - number of years to be converted + * + * @returns {number} the number of years converted in quarters + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 years to quarters + * const result = yearsToQuarters(2) + * //=> 8 + */ + +export default function yearsToQuarters(years) { + requiredArgs(1, arguments); + return Math.floor(years * quartersInYear); +} \ No newline at end of file diff --git a/node_modules/date-fns/esm/yearsToQuarters/index.js.flow b/node_modules/date-fns/esm/yearsToQuarters/index.js.flow new file mode 100644 index 00000000..d0819197 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (years: number) => number diff --git a/node_modules/date-fns/esm/yearsToQuarters/package.json b/node_modules/date-fns/esm/yearsToQuarters/package.json new file mode 100644 index 00000000..b109f053 --- /dev/null +++ b/node_modules/date-fns/esm/yearsToQuarters/package.json @@ -0,0 +1,4 @@ +{ + "sideEffects": false, + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/format/index.d.ts b/node_modules/date-fns/format/index.d.ts new file mode 100644 index 00000000..06d38ce2 --- /dev/null +++ b/node_modules/date-fns/format/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { format } from 'date-fns' +export default format diff --git a/node_modules/date-fns/format/index.js b/node_modules/date-fns/format/index.js new file mode 100644 index 00000000..2cc0558e --- /dev/null +++ b/node_modules/date-fns/format/index.js @@ -0,0 +1,440 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = format; + +var _index = _interopRequireDefault(require("../isValid/index.js")); + +var _index2 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/format/formatters/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/format/longFormatters/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index7 = require("../_lib/protectedTokens/index.js"); + +var _index8 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index9 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index10 = require("../_lib/defaultOptions/index.js"); + +var _index11 = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` + +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name format + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. The result may vary by locale. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * (see the last example) + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 7 below the table). + * + * Accepted patterns: + * | Unit | Pattern | Result examples | Notes | + * |---------------------------------|---------|-----------------------------------|-------| + * | Era | G..GGG | AD, BC | | + * | | GGGG | Anno Domini, Before Christ | 2 | + * | | GGGGG | A, B | | + * | Calendar year | y | 44, 1, 1900, 2017 | 5 | + * | | yo | 44th, 1st, 0th, 17th | 5,7 | + * | | yy | 44, 01, 00, 17 | 5 | + * | | yyy | 044, 001, 1900, 2017 | 5 | + * | | yyyy | 0044, 0001, 1900, 2017 | 5 | + * | | yyyyy | ... | 3,5 | + * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | + * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | + * | | YY | 44, 01, 00, 17 | 5,8 | + * | | YYY | 044, 001, 1900, 2017 | 5 | + * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | + * | | YYYYY | ... | 3,5 | + * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | + * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | + * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | + * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | + * | | RRRRR | ... | 3,5,7 | + * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | + * | | uu | -43, 01, 1900, 2017 | 5 | + * | | uuu | -043, 001, 1900, 2017 | 5 | + * | | uuuu | -0043, 0001, 1900, 2017 | 5 | + * | | uuuuu | ... | 3,5 | + * | Quarter (formatting) | Q | 1, 2, 3, 4 | | + * | | Qo | 1st, 2nd, 3rd, 4th | 7 | + * | | QQ | 01, 02, 03, 04 | | + * | | QQQ | Q1, Q2, Q3, Q4 | | + * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | + * | | qo | 1st, 2nd, 3rd, 4th | 7 | + * | | qq | 01, 02, 03, 04 | | + * | | qqq | Q1, Q2, Q3, Q4 | | + * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | qqqqq | 1, 2, 3, 4 | 4 | + * | Month (formatting) | M | 1, 2, ..., 12 | | + * | | Mo | 1st, 2nd, ..., 12th | 7 | + * | | MM | 01, 02, ..., 12 | | + * | | MMM | Jan, Feb, ..., Dec | | + * | | MMMM | January, February, ..., December | 2 | + * | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | L | 1, 2, ..., 12 | | + * | | Lo | 1st, 2nd, ..., 12th | 7 | + * | | LL | 01, 02, ..., 12 | | + * | | LLL | Jan, Feb, ..., Dec | | + * | | LLLL | January, February, ..., December | 2 | + * | | LLLLL | J, F, ..., D | | + * | Local week of year | w | 1, 2, ..., 53 | | + * | | wo | 1st, 2nd, ..., 53th | 7 | + * | | ww | 01, 02, ..., 53 | | + * | ISO week of year | I | 1, 2, ..., 53 | 7 | + * | | Io | 1st, 2nd, ..., 53th | 7 | + * | | II | 01, 02, ..., 53 | 7 | + * | Day of month | d | 1, 2, ..., 31 | | + * | | do | 1st, 2nd, ..., 31st | 7 | + * | | dd | 01, 02, ..., 31 | | + * | Day of year | D | 1, 2, ..., 365, 366 | 9 | + * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | + * | | DD | 01, 02, ..., 365, 366 | 9 | + * | | DDD | 001, 002, ..., 365, 366 | | + * | | DDDD | ... | 3 | + * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | EEEEE | M, T, W, T, F, S, S | | + * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | + * | | io | 1st, 2nd, ..., 7th | 7 | + * | | ii | 01, 02, ..., 07 | 7 | + * | | iii | Mon, Tue, Wed, ..., Sun | 7 | + * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | + * | | iiiii | M, T, W, T, F, S, S | 7 | + * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | + * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | + * | | eo | 2nd, 3rd, ..., 1st | 7 | + * | | ee | 02, 03, ..., 01 | | + * | | eee | Mon, Tue, Wed, ..., Sun | | + * | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | eeeee | M, T, W, T, F, S, S | | + * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | + * | | co | 2nd, 3rd, ..., 1st | 7 | + * | | cc | 02, 03, ..., 01 | | + * | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | ccccc | M, T, W, T, F, S, S | | + * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | a..aa | AM, PM | | + * | | aaa | am, pm | | + * | | aaaa | a.m., p.m. | 2 | + * | | aaaaa | a, p | | + * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | + * | | bbb | am, pm, noon, midnight | | + * | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | bbbbb | a, p, n, mi | | + * | Flexible day period | B..BBB | at night, in the morning, ... | | + * | | BBBB | at night, in the morning, ... | 2 | + * | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | + * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | + * | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | + * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | + * | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | + * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | + * | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | + * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | + * | | kk | 24, 01, 02, ..., 23 | | + * | Minute | m | 0, 1, ..., 59 | | + * | | mo | 0th, 1st, ..., 59th | 7 | + * | | mm | 00, 01, ..., 59 | | + * | Second | s | 0, 1, ..., 59 | | + * | | so | 0th, 1st, ..., 59th | 7 | + * | | ss | 00, 01, ..., 59 | | + * | Fraction of second | S | 0, 1, ..., 9 | | + * | | SS | 00, 01, ..., 99 | | + * | | SSS | 000, 001, ..., 999 | | + * | | SSSS | ... | 3 | + * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | + * | | XX | -0800, +0530, Z | | + * | | XXX | -08:00, +05:30, Z | | + * | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | + * | | xx | -0800, +0530, +0000 | | + * | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | xxxx | -0800, +0530, +0000, +123456 | | + * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | + * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | + * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | + * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | + * | Seconds timestamp | t | 512969520 | 7 | + * | | tt | ... | 3,7 | + * | Milliseconds timestamp | T | 512969520900 | 7 | + * | | TT | ... | 3,7 | + * | Long localized date | P | 04/29/1453 | 7 | + * | | PP | Apr 29, 1453 | 7 | + * | | PPP | April 29th, 1453 | 7 | + * | | PPPP | Friday, April 29th, 1453 | 2,7 | + * | Long localized time | p | 12:00 AM | 7 | + * | | pp | 12:00:00 AM | 7 | + * | | ppp | 12:00:00 AM GMT+2 | 7 | + * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | + * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | + * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | + * | | PPPppp | April 29th, 1453 at ... | 7 | + * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) + * the output will be the same as default pattern for this unit, usually + * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units + * are marked with "2" in the last column of the table. + * + * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` + * + * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` + * + * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` + * + * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` + * + * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). + * The output will be padded with zeros to match the length of the pattern. + * + * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` + * + * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 5. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` always returns the last two digits of a year, + * while `uu` pads single digit years to 2 characters and returns other years unchanged: + * + * | Year | `yy` | `uu` | + * |------|------|------| + * | 1 | 01 | 01 | + * | 14 | 14 | 14 | + * | 376 | 76 | 376 | + * | 1453 | 53 | 1453 | + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} + * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). + * + * 6. Specific non-location timezones are currently unavailable in `date-fns`, + * so right now these tokens fall back to GMT timezones. + * + * 7. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `t`: seconds timestamp + * - `T`: milliseconds timestamp + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * @param {Date|Number} date - the original date + * @param {String} format - the string of tokens + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {String} the formatted date string + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `localize` property + * @throws {RangeError} `options.locale` must contain `formatLong` property + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Represent 11 February 2014 in middle-endian format: + * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') + * //=> '02/11/2014' + * + * @example + * // Represent 2 July 2014 in Esperanto: + * import { eoLocale } from 'date-fns/locale/eo' + * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { + * locale: eoLocale + * }) + * //=> '2-a de julio 2014' + * + * @example + * // Escape string by single quote characters: + * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") + * //=> "3 o'clock" + */ + +function format(dirtyDate, dirtyFormatStr, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; + + (0, _index9.default)(2, arguments); + var formatStr = String(dirtyFormatStr); + var defaultOptions = (0, _index10.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index11.default; + var firstWeekContainsDate = (0, _index8.default)((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var weekStartsOn = (0, _index8.default)((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + if (!locale.localize) { + throw new RangeError('locale must contain localize property'); + } + + if (!locale.formatLong) { + throw new RangeError('locale must contain formatLong property'); + } + + var originalDate = (0, _index3.default)(dirtyDate); + + if (!(0, _index.default)(originalDate)) { + throw new RangeError('Invalid time value'); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + // This ensures that when UTC functions will be implemented, locales will be compatible with them. + // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 + + + var timezoneOffset = (0, _index6.default)(originalDate); + var utcDate = (0, _index2.default)(originalDate, timezoneOffset); + var formatterOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale, + _originalDate: originalDate + }; + var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter === 'p' || firstCharacter === 'P') { + var longFormatter = _index5.default[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + + return substring; + }).join('').match(formattingTokensRegExp).map(function (substring) { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + var firstCharacter = substring[0]; + + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + var formatter = _index4.default[firstCharacter]; + + if (formatter) { + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && (0, _index7.isProtectedWeekYearToken)(substring)) { + (0, _index7.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); + } + + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && (0, _index7.isProtectedDayOfYearToken)(substring)) { + (0, _index7.throwProtectedError)(substring, dirtyFormatStr, String(dirtyDate)); + } + + return formatter(utcDate, substring, locale.localize, formatterOptions); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +function cleanEscapedString(input) { + var matched = input.match(escapedStringRegExp); + + if (!matched) { + return input; + } + + return matched[1].replace(doubleQuoteRegExp, "'"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/format/index.js.flow b/node_modules/date-fns/format/index.js.flow new file mode 100644 index 00000000..ca793937 --- /dev/null +++ b/node_modules/date-fns/format/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + format: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: number, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => string diff --git a/node_modules/date-fns/format/package.json b/node_modules/date-fns/format/package.json new file mode 100644 index 00000000..b6a6e244 --- /dev/null +++ b/node_modules/date-fns/format/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/format/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatDistance/index.d.ts b/node_modules/date-fns/formatDistance/index.d.ts new file mode 100644 index 00000000..656c64ac --- /dev/null +++ b/node_modules/date-fns/formatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistance } from 'date-fns' +export default formatDistance diff --git a/node_modules/date-fns/formatDistance/index.js b/node_modules/date-fns/formatDistance/index.js new file mode 100644 index 00000000..280978a2 --- /dev/null +++ b/node_modules/date-fns/formatDistance/index.js @@ -0,0 +1,211 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistance; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInMonths/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +var _index6 = _interopRequireDefault(require("../toDate/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/cloneObject/index.js")); + +var _index8 = _interopRequireDefault(require("../_lib/assign/index.js")); + +var _index9 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index10 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MINUTES_IN_DAY = 1440; +var MINUTES_IN_ALMOST_TWO_DAYS = 2520; +var MINUTES_IN_MONTH = 43200; +var MINUTES_IN_TWO_MONTHS = 86400; +/** + * @name formatDistance + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words. + * + * | Distance between dates | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance between dates | Result | + * |------------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00, including seconds? + * const result = formatDistance( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0), + * { includeSeconds: true } + * ) + * //=> 'less than 20 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> 'about 1 year ago' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> 'pli ol 1 jaro' + */ + +function formatDistance(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale; + + (0, _index10.default)(2, arguments); + var defaultOptions = (0, _index.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index5.default; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain formatDistance property'); + } + + var comparison = (0, _index2.default)(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = (0, _index8.default)((0, _index7.default)(options), { + addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix), + comparison: comparison + }); + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = (0, _index6.default)(dirtyBaseDate); + dateRight = (0, _index6.default)(dirtyDate); + } else { + dateLeft = (0, _index6.default)(dirtyDate); + dateRight = (0, _index6.default)(dirtyBaseDate); + } + + var seconds = (0, _index4.default)(dateRight, dateLeft); + var offsetInSeconds = ((0, _index9.default)(dateRight) - (0, _index9.default)(dateLeft)) / 1000; + var minutes = Math.round((seconds - offsetInSeconds) / 60); + var months; // 0 up to 2 mins + + if (minutes < 2) { + if (options !== null && options !== void 0 && options.includeSeconds) { + if (seconds < 5) { + return locale.formatDistance('lessThanXSeconds', 5, localizeOptions); + } else if (seconds < 10) { + return locale.formatDistance('lessThanXSeconds', 10, localizeOptions); + } else if (seconds < 20) { + return locale.formatDistance('lessThanXSeconds', 20, localizeOptions); + } else if (seconds < 40) { + return locale.formatDistance('halfAMinute', 0, localizeOptions); + } else if (seconds < 60) { + return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); + } else { + return locale.formatDistance('xMinutes', 1, localizeOptions); + } + } else { + if (minutes === 0) { + return locale.formatDistance('lessThanXMinutes', 1, localizeOptions); + } else { + return locale.formatDistance('xMinutes', minutes, localizeOptions); + } + } // 2 mins up to 0.75 hrs + + } else if (minutes < 45) { + return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs + } else if (minutes < 90) { + return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs + } else if (minutes < MINUTES_IN_DAY) { + var hours = Math.round(minutes / 60); + return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days + } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) { + return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days + } else if (minutes < MINUTES_IN_MONTH) { + var days = Math.round(minutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months + } else if (minutes < MINUTES_IN_TWO_MONTHS) { + months = Math.round(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('aboutXMonths', months, localizeOptions); + } + + months = (0, _index3.default)(dateRight, dateLeft); // 2 months up to 12 months + + if (months < 12) { + var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH); + return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date + } else { + var monthsSinceStartOfYear = months % 12; + var years = Math.floor(months / 12); // N years up to 1 years 3 months + + if (monthsSinceStartOfYear < 3) { + return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months + } else if (monthsSinceStartOfYear < 9) { + return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months + } else { + return locale.formatDistance('almostXYears', years + 1, localizeOptions); + } + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDistance/index.js.flow b/node_modules/date-fns/formatDistance/index.js.flow new file mode 100644 index 00000000..b18d1ba1 --- /dev/null +++ b/node_modules/date-fns/formatDistance/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/formatDistance/package.json b/node_modules/date-fns/formatDistance/package.json new file mode 100644 index 00000000..b58177f0 --- /dev/null +++ b/node_modules/date-fns/formatDistance/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatDistance/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceStrict/index.d.ts b/node_modules/date-fns/formatDistanceStrict/index.d.ts new file mode 100644 index 00000000..89cce205 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrict } from 'date-fns' +export default formatDistanceStrict diff --git a/node_modules/date-fns/formatDistanceStrict/index.js b/node_modules/date-fns/formatDistanceStrict/index.js new file mode 100644 index 00000000..e0d697fc --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/index.js @@ -0,0 +1,208 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistanceStrict; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index4 = _interopRequireDefault(require("../toDate/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/cloneObject/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/assign/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +var _index8 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_MINUTE = 1000 * 60; +var MINUTES_IN_DAY = 60 * 24; +var MINUTES_IN_MONTH = MINUTES_IN_DAY * 30; +var MINUTES_IN_YEAR = MINUTES_IN_DAY * 365; +/** + * @name formatDistanceStrict + * @category Common Helpers + * @summary Return the distance between the given dates in words. + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit + * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round' + * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year' + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // What is the distance between 2 July 2014 and 1 January 2015? + * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2)) + * //=> '6 months' + * + * @example + * // What is the distance between 1 January 2015 00:00:15 + * // and 1 January 2015 00:00:00? + * const result = formatDistanceStrict( + * new Date(2015, 0, 1, 0, 0, 15), + * new Date(2015, 0, 1, 0, 0, 0) + * ) + * //=> '15 seconds' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, with a suffix? + * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), { + * addSuffix: true + * }) + * //=> '1 year ago' + * + * @example + * // What is the distance from 1 January 2016 + * // to 1 January 2015, in minutes? + * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), { + * unit: 'minute' + * }) + * //=> '525600 minutes' + * + * @example + * // What is the distance from 1 January 2015 + * // to 28 January 2015, in months, rounded up? + * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto? + * import { eoLocale } from 'date-fns/locale/eo' + * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), { + * locale: eoLocale + * }) + * //=> '1 jaro' + */ + +function formatDistanceStrict(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale, _options$roundingMeth; + + (0, _index8.default)(2, arguments); + var defaultOptions = (0, _index.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index7.default; + + if (!locale.formatDistance) { + throw new RangeError('locale must contain localize.formatDistance property'); + } + + var comparison = (0, _index3.default)(dirtyDate, dirtyBaseDate); + + if (isNaN(comparison)) { + throw new RangeError('Invalid time value'); + } + + var localizeOptions = (0, _index6.default)((0, _index5.default)(options), { + addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix), + comparison: comparison + }); + var dateLeft; + var dateRight; + + if (comparison > 0) { + dateLeft = (0, _index4.default)(dirtyBaseDate); + dateRight = (0, _index4.default)(dirtyDate); + } else { + dateLeft = (0, _index4.default)(dirtyDate); + dateRight = (0, _index4.default)(dirtyBaseDate); + } + + var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round'); + var roundingMethodFn; + + if (roundingMethod === 'floor') { + roundingMethodFn = Math.floor; + } else if (roundingMethod === 'ceil') { + roundingMethodFn = Math.ceil; + } else if (roundingMethod === 'round') { + roundingMethodFn = Math.round; + } else { + throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'"); + } + + var milliseconds = dateRight.getTime() - dateLeft.getTime(); + var minutes = milliseconds / MILLISECONDS_IN_MINUTE; + var timezoneOffset = (0, _index2.default)(dateRight) - (0, _index2.default)(dateLeft); // Use DST-normalized difference in minutes for years, months and days; + // use regular difference in minutes for hours, minutes and seconds. + + var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE; + var defaultUnit = options === null || options === void 0 ? void 0 : options.unit; + var unit; + + if (!defaultUnit) { + if (minutes < 1) { + unit = 'second'; + } else if (minutes < 60) { + unit = 'minute'; + } else if (minutes < MINUTES_IN_DAY) { + unit = 'hour'; + } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) { + unit = 'day'; + } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) { + unit = 'month'; + } else { + unit = 'year'; + } + } else { + unit = String(defaultUnit); + } // 0 up to 60 seconds + + + if (unit === 'second') { + var seconds = roundingMethodFn(milliseconds / 1000); + return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins + } else if (unit === 'minute') { + var roundedMinutes = roundingMethodFn(minutes); + return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions); // 1 up to 24 hours + } else if (unit === 'hour') { + var hours = roundingMethodFn(minutes / 60); + return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days + } else if (unit === 'day') { + var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY); + return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months + } else if (unit === 'month') { + var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH); + return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date + } else if (unit === 'year') { + var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR); + return locale.formatDistance('xYears', years, localizeOptions); + } + + throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceStrict/index.js.flow b/node_modules/date-fns/formatDistanceStrict/index.js.flow new file mode 100644 index 00000000..26c4b152 --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/index.js.flow @@ -0,0 +1,61 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/formatDistanceStrict/package.json b/node_modules/date-fns/formatDistanceStrict/package.json new file mode 100644 index 00000000..61693beb --- /dev/null +++ b/node_modules/date-fns/formatDistanceStrict/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatDistanceStrict/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceToNow/index.d.ts b/node_modules/date-fns/formatDistanceToNow/index.d.ts new file mode 100644 index 00000000..1d8b7501 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceToNow } from 'date-fns' +export default formatDistanceToNow diff --git a/node_modules/date-fns/formatDistanceToNow/index.js b/node_modules/date-fns/formatDistanceToNow/index.js new file mode 100644 index 00000000..c9edb814 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/index.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistanceToNow; + +var _index = _interopRequireDefault(require("../formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatDistanceToNow + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given date and now in words. + * + * | Distance to now | Result | + * |-------------------------------------------------------------------|---------------------| + * | 0 ... 30 secs | less than a minute | + * | 30 secs ... 1 min 30 secs | 1 minute | + * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes | + * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour | + * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours | + * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day | + * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days | + * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month | + * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months | + * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months | + * | 1 yr ... 1 yr 3 months | about 1 year | + * | 1 yr 3 months ... 1 yr 9 month s | over 1 year | + * | 1 yr 9 months ... 2 yrs | almost 2 years | + * | N yrs ... N yrs 3 months | about N years | + * | N yrs 3 months ... N yrs 9 months | over N years | + * | N yrs 9 months ... N+1 yrs | almost N+1 years | + * + * With `options.includeSeconds == true`: + * | Distance to now | Result | + * |---------------------|----------------------| + * | 0 secs ... 5 secs | less than 5 seconds | + * | 5 secs ... 10 secs | less than 10 seconds | + * | 10 secs ... 20 secs | less than 20 seconds | + * | 20 secs ... 40 secs | half a minute | + * | 40 secs ... 60 secs | less than a minute | + * | 60 secs ... 90 secs | 1 minute | + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - the object with options + * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed + * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNow( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNow( + * new Date(2015, 0, 1, 0, 0, 15), + * {includeSeconds: true} + * ) + * //=> 'less than 20 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNow( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in about 1 year' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 August 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNow( + * new Date(2016, 7, 1), + * {locale: eoLocale} + * ) + * //=> 'pli ol 1 jaro' + */ +function formatDistanceToNow(dirtyDate, options) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now(), options); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceToNow/index.js.flow b/node_modules/date-fns/formatDistanceToNow/index.js.flow new file mode 100644 index 00000000..08687be0 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/formatDistanceToNow/package.json b/node_modules/date-fns/formatDistanceToNow/package.json new file mode 100644 index 00000000..c45b3a34 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNow/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatDistanceToNow/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceToNowStrict/index.d.ts b/node_modules/date-fns/formatDistanceToNowStrict/index.d.ts new file mode 100644 index 00000000..4f00e65c --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceToNowStrict } from 'date-fns' +export default formatDistanceToNowStrict diff --git a/node_modules/date-fns/formatDistanceToNowStrict/index.js b/node_modules/date-fns/formatDistanceToNowStrict/index.js new file mode 100644 index 00000000..4d1d8684 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict/index.js @@ -0,0 +1,93 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDistanceToNowStrict; + +var _index = _interopRequireDefault(require("../formatDistanceStrict/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatDistanceToNowStrict + * @category Common Helpers + * @summary Return the distance between the given date and now in words. + * @pure false + * + * @description + * Return the distance between the given dates in words, using strict units. + * This is like `formatDistance`, but does not use helpers like 'almost', 'over', + * 'less than' and the like. + * + * | Distance between dates | Result | + * |------------------------|---------------------| + * | 0 ... 59 secs | [0..59] seconds | + * | 1 ... 59 mins | [1..59] minutes | + * | 1 ... 23 hrs | [1..23] hours | + * | 1 ... 29 days | [1..29] days | + * | 1 ... 11 months | [1..11] months | + * | 1 ... N years | [1..N] years | + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first + * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit + * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {String} the distance in words + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.locale` must contain `formatDistance` property + * + * @example + * // If today is 1 January 2015, what is the distance to 2 July 2014? + * const result = formatDistanceToNowStrict( + * new Date(2014, 6, 2) + * ) + * //=> '6 months' + * + * @example + * // If now is 1 January 2015 00:00:00, + * // what is the distance to 1 January 2015 00:00:15, including seconds? + * const result = formatDistanceToNowStrict( + * new Date(2015, 0, 1, 0, 0, 15) + * ) + * //=> '15 seconds' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016, with a suffix? + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {addSuffix: true} + * ) + * //=> 'in 1 year' + * + * @example + * // If today is 28 January 2015, + * // what is the distance to 1 January 2015, in months, rounded up?? + * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), { + * unit: 'month', + * roundingMethod: 'ceil' + * }) + * //=> '1 month' + * + * @example + * // If today is 1 January 2015, + * // what is the distance to 1 January 2016 in Esperanto? + * const eoLocale = require('date-fns/locale/eo') + * const result = formatDistanceToNowStrict( + * new Date(2016, 0, 1), + * {locale: eoLocale} + * ) + * //=> '1 jaro' + */ +function formatDistanceToNowStrict(dirtyDate, options) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now(), options); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDistanceToNowStrict/index.js.flow b/node_modules/date-fns/formatDistanceToNowStrict/index.js.flow new file mode 100644 index 00000000..49fbade0 --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/formatDistanceToNowStrict/package.json b/node_modules/date-fns/formatDistanceToNowStrict/package.json new file mode 100644 index 00000000..e9bb166a --- /dev/null +++ b/node_modules/date-fns/formatDistanceToNowStrict/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatDistanceToNowStrict/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatDuration/index.d.ts b/node_modules/date-fns/formatDuration/index.d.ts new file mode 100644 index 00000000..be96776f --- /dev/null +++ b/node_modules/date-fns/formatDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDuration } from 'date-fns' +export default formatDuration diff --git a/node_modules/date-fns/formatDuration/index.js b/node_modules/date-fns/formatDuration/index.js new file mode 100644 index 00000000..cf3da284 --- /dev/null +++ b/node_modules/date-fns/formatDuration/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatDuration; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']; +/** + * @name formatDuration + * @category Common Helpers + * @summary Formats a duration in human-readable format + * + * @description + * Return human-readable duration string i.e. "9 months 2 days" + * + * @param {Duration} duration - the duration to format + * @param {Object} [options] - an object with options. + * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format + * @param {boolean} [options.zero=false] - should zeros be included in the output? + * @param {string} [options.delimiter=' '] - delimiter string + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @returns {string} the formatted date string + * @throws {TypeError} 1 argument required + * + * @example + * // Format full duration + * formatDuration({ + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds' + * + * @example + * // Format partial duration + * formatDuration({ months: 9, days: 2 }) + * //=> '9 months 2 days' + * + * @example + * // Customize the format + * formatDuration( + * { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }, + * { format: ['months', 'weeks'] } + * ) === '9 months 1 week' + * + * @example + * // Customize the zeros presence + * formatDuration({ years: 0, months: 9 }) + * //=> '9 months' + * formatDuration({ years: 0, months: 9 }, { zero: true }) + * //=> '0 years 9 months' + * + * @example + * // Customize the delimiter + * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' }) + * //=> '2 years, 9 months, 3 weeks' + */ + +function formatDuration(duration, options) { + var _ref, _options$locale, _options$format, _options$zero, _options$delimiter; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var defaultOptions = (0, _index.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index2.default; + var format = (_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : defaultFormat; + var zero = (_options$zero = options === null || options === void 0 ? void 0 : options.zero) !== null && _options$zero !== void 0 ? _options$zero : false; + var delimiter = (_options$delimiter = options === null || options === void 0 ? void 0 : options.delimiter) !== null && _options$delimiter !== void 0 ? _options$delimiter : ' '; + + if (!locale.formatDistance) { + return ''; + } + + var result = format.reduce(function (acc, unit) { + var token = "x".concat(unit.replace(/(^.)/, function (m) { + return m.toUpperCase(); + })); + var value = duration[unit]; + + if (typeof value === 'number' && (zero || duration[unit])) { + return acc.concat(locale.formatDistance(token, value)); + } + + return acc; + }, []).join(delimiter); + return result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatDuration/index.js.flow b/node_modules/date-fns/formatDuration/index.js.flow new file mode 100644 index 00000000..022ea8ec --- /dev/null +++ b/node_modules/date-fns/formatDuration/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + duration: Duration, + options?: { + format?: string[], + zero?: boolean, + delimiter?: string, + locale?: Locale, + } +) => string diff --git a/node_modules/date-fns/formatDuration/package.json b/node_modules/date-fns/formatDuration/package.json new file mode 100644 index 00000000..97f663ff --- /dev/null +++ b/node_modules/date-fns/formatDuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatDuration/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatISO/index.d.ts b/node_modules/date-fns/formatISO/index.d.ts new file mode 100644 index 00000000..4ed5a009 --- /dev/null +++ b/node_modules/date-fns/formatISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO } from 'date-fns' +export default formatISO diff --git a/node_modules/date-fns/formatISO/index.js b/node_modules/date-fns/formatISO/index.js new file mode 100644 index 00000000..6ee461aa --- /dev/null +++ b/node_modules/date-fns/formatISO/index.js @@ -0,0 +1,118 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatISO; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/addLeadingZeros/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatISO + * @category Common Helpers + * @summary Format the date according to the ISO 8601 standard (https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm). + * + * @description + * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. + * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with local time zone, or both. + * @returns {String} the formatted date string (in local time zone) + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.format` must be 'extended' or 'basic' + * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in ISO 8601, short format (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918T190052' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, date only: + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 8601 format, time only (local time zone is UTC): + * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52Z' + */ +function formatISO(date, options) { + var _options$format, _options$representati; + + (0, _index3.default)(1, arguments); + var originalDate = (0, _index.default)(date); + + if (isNaN(originalDate.getTime())) { + throw new RangeError('Invalid time value'); + } + + var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended'); + var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete'); + + if (format !== 'extended' && format !== 'basic') { + throw new RangeError("format must be 'extended' or 'basic'"); + } + + if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { + throw new RangeError("representation must be 'date', 'time', or 'complete'"); + } + + var result = ''; + var tzOffset = ''; + var dateDelimiter = format === 'extended' ? '-' : ''; + var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' + + if (representation !== 'time') { + var day = (0, _index2.default)(originalDate.getDate(), 2); + var month = (0, _index2.default)(originalDate.getMonth() + 1, 2); + var year = (0, _index2.default)(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. + + result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } // Representation is either 'time' or 'complete' + + + if (representation !== 'date') { + // Add the timezone. + var offset = originalDate.getTimezoneOffset(); + + if (offset !== 0) { + var absoluteOffset = Math.abs(offset); + var hourOffset = (0, _index2.default)(Math.floor(absoluteOffset / 60), 2); + var minuteOffset = (0, _index2.default)(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = offset < 0 ? '+' : '-'; + tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + tzOffset = 'Z'; + } + + var hour = (0, _index2.default)(originalDate.getHours(), 2); + var minute = (0, _index2.default)(originalDate.getMinutes(), 2); + var second = (0, _index2.default)(originalDate.getSeconds(), 2); // If there's also date, separate it with time with 'T' + + var separator = result === '' ? '' : 'T'; // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined. + + var time = [hour, minute, second].join(timeDelimiter); // HHmmss or HH:mm:ss. + + result = "".concat(result).concat(separator).concat(time).concat(tzOffset); + } + + return result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatISO/index.js.flow b/node_modules/date-fns/formatISO/index.js.flow new file mode 100644 index 00000000..5d1e860c --- /dev/null +++ b/node_modules/date-fns/formatISO/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } +) => string diff --git a/node_modules/date-fns/formatISO/package.json b/node_modules/date-fns/formatISO/package.json new file mode 100644 index 00000000..f0c509b8 --- /dev/null +++ b/node_modules/date-fns/formatISO/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatISO/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatISO9075/index.d.ts b/node_modules/date-fns/formatISO9075/index.d.ts new file mode 100644 index 00000000..cc8dc895 --- /dev/null +++ b/node_modules/date-fns/formatISO9075/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075 } from 'date-fns' +export default formatISO9075 diff --git a/node_modules/date-fns/formatISO9075/index.js b/node_modules/date-fns/formatISO9075/index.js new file mode 100644 index 00000000..fda4be93 --- /dev/null +++ b/node_modules/date-fns/formatISO9075/index.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatISO9075; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../isValid/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/addLeadingZeros/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatISO9075 + * @category Common Helpers + * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format). + * + * @description + * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values. + * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time, or both. + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.format` must be 'extended' or 'basic' + * @throws {RangeError} `options.representation` must be 'date', 'time' or 'complete' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18 19:00:52' + * + * @example + * // Represent 18 September 2019 in ISO 9075, short format: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' }) + * //=> '20190918 190052' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, date only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' }) + * //=> '2019-09-18' + * + * @example + * // Represent 18 September 2019 in ISO 9075 format, time only: + * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' }) + * //=> '19:00:52' + */ +function formatISO9075(dirtyDate, options) { + var _options$format, _options$representati; + + if (arguments.length < 1) { + throw new TypeError("1 argument required, but only ".concat(arguments.length, " present")); + } + + var originalDate = (0, _index.default)(dirtyDate); + + if (!(0, _index2.default)(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var format = String((_options$format = options === null || options === void 0 ? void 0 : options.format) !== null && _options$format !== void 0 ? _options$format : 'extended'); + var representation = String((_options$representati = options === null || options === void 0 ? void 0 : options.representation) !== null && _options$representati !== void 0 ? _options$representati : 'complete'); + + if (format !== 'extended' && format !== 'basic') { + throw new RangeError("format must be 'extended' or 'basic'"); + } + + if (representation !== 'date' && representation !== 'time' && representation !== 'complete') { + throw new RangeError("representation must be 'date', 'time', or 'complete'"); + } + + var result = ''; + var dateDelimiter = format === 'extended' ? '-' : ''; + var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete' + + if (representation !== 'time') { + var day = (0, _index3.default)(originalDate.getDate(), 2); + var month = (0, _index3.default)(originalDate.getMonth() + 1, 2); + var year = (0, _index3.default)(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd. + + result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day); + } // Representation is either 'time' or 'complete' + + + if (representation !== 'date') { + var hour = (0, _index3.default)(originalDate.getHours(), 2); + var minute = (0, _index3.default)(originalDate.getMinutes(), 2); + var second = (0, _index3.default)(originalDate.getSeconds(), 2); // If there's also date, separate it with time with a space + + var separator = result === '' ? '' : ' '; // HHmmss or HH:mm:ss. + + result = "".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second); + } + + return result; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatISO9075/index.js.flow b/node_modules/date-fns/formatISO9075/index.js.flow new file mode 100644 index 00000000..5d1e860c --- /dev/null +++ b/node_modules/date-fns/formatISO9075/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } +) => string diff --git a/node_modules/date-fns/formatISO9075/package.json b/node_modules/date-fns/formatISO9075/package.json new file mode 100644 index 00000000..ffae4ca2 --- /dev/null +++ b/node_modules/date-fns/formatISO9075/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatISO9075/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatISODuration/index.d.ts b/node_modules/date-fns/formatISODuration/index.d.ts new file mode 100644 index 00000000..dfbd3336 --- /dev/null +++ b/node_modules/date-fns/formatISODuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISODuration } from 'date-fns' +export default formatISODuration diff --git a/node_modules/date-fns/formatISODuration/index.js b/node_modules/date-fns/formatISODuration/index.js new file mode 100644 index 00000000..5a442c8e --- /dev/null +++ b/node_modules/date-fns/formatISODuration/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatISODuration; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name formatISODuration + * @category Common Helpers + * @summary Format a duration object according as ISO 8601 duration string + * + * @description + * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm) + * + * @param {Duration} duration - the duration to format + * + * @returns {String} The ISO 8601 duration string + * @throws {TypeError} Requires 1 argument + * @throws {Error} Argument must be an object + * + * @example + * // Format the given duration as ISO 8601 string + * const result = formatISODuration({ + * years: 39, + * months: 2, + * days: 20, + * hours: 7, + * minutes: 5, + * seconds: 0 + * }) + * //=> 'P39Y2M20DT0H0M0S' + */ +function formatISODuration(duration) { + (0, _index.default)(1, arguments); + if (_typeof(duration) !== 'object') throw new Error('Duration must be an object'); + var _duration$years = duration.years, + years = _duration$years === void 0 ? 0 : _duration$years, + _duration$months = duration.months, + months = _duration$months === void 0 ? 0 : _duration$months, + _duration$days = duration.days, + days = _duration$days === void 0 ? 0 : _duration$days, + _duration$hours = duration.hours, + hours = _duration$hours === void 0 ? 0 : _duration$hours, + _duration$minutes = duration.minutes, + minutes = _duration$minutes === void 0 ? 0 : _duration$minutes, + _duration$seconds = duration.seconds, + seconds = _duration$seconds === void 0 ? 0 : _duration$seconds; + return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatISODuration/index.js.flow b/node_modules/date-fns/formatISODuration/index.js.flow new file mode 100644 index 00000000..3f8bb2c6 --- /dev/null +++ b/node_modules/date-fns/formatISODuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (duration: Duration) => string diff --git a/node_modules/date-fns/formatISODuration/package.json b/node_modules/date-fns/formatISODuration/package.json new file mode 100644 index 00000000..b02a549b --- /dev/null +++ b/node_modules/date-fns/formatISODuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatISODuration/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatRFC3339/index.d.ts b/node_modules/date-fns/formatRFC3339/index.d.ts new file mode 100644 index 00000000..2454cd21 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339 } from 'date-fns' +export default formatRFC3339 diff --git a/node_modules/date-fns/formatRFC3339/index.js b/node_modules/date-fns/formatRFC3339/index.js new file mode 100644 index 00000000..754183a9 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRFC3339; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../isValid/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/addLeadingZeros/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatRFC3339 + * @category Common Helpers + * @summary Format the date according to the RFC 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6). + * + * @description + * Return the formatted date string in RFC 3339 format. Options may be passed to control the parts and notations of the date. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {0|1|2|3} [options.fractionDigits=0] - number of digits after the decimal point after seconds + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `options.fractionDigits` must be between 0 and 3 + * + * @example + * // Represent 18 September 2019 in RFC 3339 format: + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52)) + * //=> '2019-09-18T19:00:52Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 2 digits of second fraction: + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 2 }) + * //=> '2019-09-18T19:00:52.23Z' + * + * @example + * // Represent 18 September 2019 in RFC 3339 format, 3 digits of second fraction + * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 3 }) + * //=> '2019-09-18T19:00:52.234Z' + */ +function formatRFC3339(dirtyDate, options) { + var _options$fractionDigi; + + if (arguments.length < 1) { + throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); + } + + var originalDate = (0, _index.default)(dirtyDate); + + if (!(0, _index2.default)(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var fractionDigits = Number((_options$fractionDigi = options === null || options === void 0 ? void 0 : options.fractionDigits) !== null && _options$fractionDigi !== void 0 ? _options$fractionDigi : 0); // Test if fractionDigits is between 0 and 3 _and_ is not NaN + + if (!(fractionDigits >= 0 && fractionDigits <= 3)) { + throw new RangeError('fractionDigits must be between 0 and 3 inclusively'); + } + + var day = (0, _index3.default)(originalDate.getDate(), 2); + var month = (0, _index3.default)(originalDate.getMonth() + 1, 2); + var year = originalDate.getFullYear(); + var hour = (0, _index3.default)(originalDate.getHours(), 2); + var minute = (0, _index3.default)(originalDate.getMinutes(), 2); + var second = (0, _index3.default)(originalDate.getSeconds(), 2); + var fractionalSecond = ''; + + if (fractionDigits > 0) { + var milliseconds = originalDate.getMilliseconds(); + var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3)); + fractionalSecond = '.' + (0, _index3.default)(fractionalSeconds, fractionDigits); + } + + var offset = ''; + var tzOffset = originalDate.getTimezoneOffset(); + + if (tzOffset !== 0) { + var absoluteOffset = Math.abs(tzOffset); + var hourOffset = (0, _index3.default)((0, _index4.default)(absoluteOffset / 60), 2); + var minuteOffset = (0, _index3.default)(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time. + + var sign = tzOffset < 0 ? '+' : '-'; + offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset); + } else { + offset = 'Z'; + } + + return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatRFC3339/index.js.flow b/node_modules/date-fns/formatRFC3339/index.js.flow new file mode 100644 index 00000000..9bb27482 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3, + } +) => string diff --git a/node_modules/date-fns/formatRFC3339/package.json b/node_modules/date-fns/formatRFC3339/package.json new file mode 100644 index 00000000..2e126759 --- /dev/null +++ b/node_modules/date-fns/formatRFC3339/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatRFC3339/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatRFC7231/index.d.ts b/node_modules/date-fns/formatRFC7231/index.d.ts new file mode 100644 index 00000000..2caa7140 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC7231 } from 'date-fns' +export default formatRFC7231 diff --git a/node_modules/date-fns/formatRFC7231/index.js b/node_modules/date-fns/formatRFC7231/index.js new file mode 100644 index 00000000..bfd3628b --- /dev/null +++ b/node_modules/date-fns/formatRFC7231/index.js @@ -0,0 +1,60 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRFC7231; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../isValid/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/addLeadingZeros/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; +var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; +/** + * @name formatRFC7231 + * @category Common Helpers + * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1). + * + * @description + * Return the formatted date string in RFC 7231 format. + * The result will always be in UTC timezone. + * + * @param {Date|Number} date - the original date + * @returns {String} the formatted date string + * @throws {TypeError} 1 argument required + * @throws {RangeError} `date` must not be Invalid Date + * + * @example + * // Represent 18 September 2019 in RFC 7231 format: + * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52)) + * //=> 'Wed, 18 Sep 2019 19:00:52 GMT' + */ + +function formatRFC7231(dirtyDate) { + if (arguments.length < 1) { + throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present")); + } + + var originalDate = (0, _index.default)(dirtyDate); + + if (!(0, _index2.default)(originalDate)) { + throw new RangeError('Invalid time value'); + } + + var dayName = days[originalDate.getUTCDay()]; + var dayOfMonth = (0, _index3.default)(originalDate.getUTCDate(), 2); + var monthName = months[originalDate.getUTCMonth()]; + var year = originalDate.getUTCFullYear(); + var hour = (0, _index3.default)(originalDate.getUTCHours(), 2); + var minute = (0, _index3.default)(originalDate.getUTCMinutes(), 2); + var second = (0, _index3.default)(originalDate.getUTCSeconds(), 2); // Result variables. + + return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatRFC7231/index.js.flow b/node_modules/date-fns/formatRFC7231/index.js.flow new file mode 100644 index 00000000..8462b251 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => string diff --git a/node_modules/date-fns/formatRFC7231/package.json b/node_modules/date-fns/formatRFC7231/package.json new file mode 100644 index 00000000..97541088 --- /dev/null +++ b/node_modules/date-fns/formatRFC7231/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatRFC7231/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/formatRelative/index.d.ts b/node_modules/date-fns/formatRelative/index.d.ts new file mode 100644 index 00000000..1c5c7392 --- /dev/null +++ b/node_modules/date-fns/formatRelative/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelative } from 'date-fns' +export default formatRelative diff --git a/node_modules/date-fns/formatRelative/index.js b/node_modules/date-fns/formatRelative/index.js new file mode 100644 index 00000000..316824be --- /dev/null +++ b/node_modules/date-fns/formatRelative/index.js @@ -0,0 +1,122 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = formatRelative; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index3 = _interopRequireDefault(require("../format/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +var _index5 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index6 = _interopRequireDefault(require("../toDate/index.js")); + +var _index7 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index8 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index9 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name formatRelative + * @category Common Helpers + * @summary Represent the date in words relative to the given base date. + * + * @description + * Represent the date in words relative to the given base date. + * + * | Distance to the base date | Result | + * |---------------------------|---------------------------| + * | Previous 6 days | last Sunday at 04:30 AM | + * | Last day | yesterday at 04:30 AM | + * | Same day | today at 04:30 AM | + * | Next day | tomorrow at 04:30 AM | + * | Next 6 days | Sunday at 04:30 AM | + * | Other | 12/31/2017 | + * + * @param {Date|Number} date - the date to format + * @param {Date|Number} baseDate - the date to compare with + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {String} the date in words + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.locale` must contain `localize` property + * @throws {RangeError} `options.locale` must contain `formatLong` property + * @throws {RangeError} `options.locale` must contain `formatRelative` property + * + * @example + * // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday + * const result = formatRelative(addDays(new Date(), -6), new Date()) + * //=> "last Thursday at 12:45 AM" + */ +function formatRelative(dirtyDate, dirtyBaseDate, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$weekStartsOn, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2; + + (0, _index8.default)(2, arguments); + var date = (0, _index6.default)(dirtyDate); + var baseDate = (0, _index6.default)(dirtyBaseDate); + var defaultOptions = (0, _index.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index4.default; + var weekStartsOn = (0, _index9.default)((_ref2 = (_ref3 = (_ref4 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.weekStartsOn) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : 0); + + if (!locale.localize) { + throw new RangeError('locale must contain localize property'); + } + + if (!locale.formatLong) { + throw new RangeError('locale must contain formatLong property'); + } + + if (!locale.formatRelative) { + throw new RangeError('locale must contain formatRelative property'); + } + + var diff = (0, _index2.default)(date, baseDate); + + if (isNaN(diff)) { + throw new RangeError('Invalid time value'); + } + + var token; + + if (diff < -6) { + token = 'other'; + } else if (diff < -1) { + token = 'lastWeek'; + } else if (diff < 0) { + token = 'yesterday'; + } else if (diff < 1) { + token = 'today'; + } else if (diff < 2) { + token = 'tomorrow'; + } else if (diff < 7) { + token = 'nextWeek'; + } else { + token = 'other'; + } + + var utcDate = (0, _index5.default)(date, (0, _index7.default)(date)); + var utcBaseDate = (0, _index5.default)(baseDate, (0, _index7.default)(baseDate)); + var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, { + locale: locale, + weekStartsOn: weekStartsOn + }); + return (0, _index3.default)(date, formatStr, { + locale: locale, + weekStartsOn: weekStartsOn + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/formatRelative/index.js.flow b/node_modules/date-fns/formatRelative/index.js.flow new file mode 100644 index 00000000..00280b21 --- /dev/null +++ b/node_modules/date-fns/formatRelative/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => string diff --git a/node_modules/date-fns/formatRelative/package.json b/node_modules/date-fns/formatRelative/package.json new file mode 100644 index 00000000..179e386e --- /dev/null +++ b/node_modules/date-fns/formatRelative/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/formatRelative/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/_lib/convertToFP/index.js b/node_modules/date-fns/fp/_lib/convertToFP/index.js new file mode 100644 index 00000000..7d63ad25 --- /dev/null +++ b/node_modules/date-fns/fp/_lib/convertToFP/index.js @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = convertToFP; + +function convertToFP(fn, arity) { + var a = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : []; + + if (a.length >= arity) { + return fn.apply(null, a.slice(0, arity).reverse()); + } + + return function () { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + return convertToFP(fn, arity, a.concat(args)); + }; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/add/index.d.ts b/node_modules/date-fns/fp/add/index.d.ts new file mode 100644 index 00000000..f05edaac --- /dev/null +++ b/node_modules/date-fns/fp/add/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { add } from 'date-fns/fp' +export default add diff --git a/node_modules/date-fns/fp/add/index.js b/node_modules/date-fns/fp/add/index.js new file mode 100644 index 00000000..812f266a --- /dev/null +++ b/node_modules/date-fns/fp/add/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../add/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/add/index.js.flow b/node_modules/date-fns/fp/add/index.js.flow new file mode 100644 index 00000000..3d4363b3 --- /dev/null +++ b/node_modules/date-fns/fp/add/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/add/package.json b/node_modules/date-fns/fp/add/package.json new file mode 100644 index 00000000..cb8fb009 --- /dev/null +++ b/node_modules/date-fns/fp/add/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/add/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addBusinessDays/index.d.ts b/node_modules/date-fns/fp/addBusinessDays/index.d.ts new file mode 100644 index 00000000..dd3b8696 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addBusinessDays } from 'date-fns/fp' +export default addBusinessDays diff --git a/node_modules/date-fns/fp/addBusinessDays/index.js b/node_modules/date-fns/fp/addBusinessDays/index.js new file mode 100644 index 00000000..7650beef --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addBusinessDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addBusinessDays/index.js.flow b/node_modules/date-fns/fp/addBusinessDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addBusinessDays/package.json b/node_modules/date-fns/fp/addBusinessDays/package.json new file mode 100644 index 00000000..8952c982 --- /dev/null +++ b/node_modules/date-fns/fp/addBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addBusinessDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addDays/index.d.ts b/node_modules/date-fns/fp/addDays/index.d.ts new file mode 100644 index 00000000..7ba1ace6 --- /dev/null +++ b/node_modules/date-fns/fp/addDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addDays } from 'date-fns/fp' +export default addDays diff --git a/node_modules/date-fns/fp/addDays/index.js b/node_modules/date-fns/fp/addDays/index.js new file mode 100644 index 00000000..7e32531d --- /dev/null +++ b/node_modules/date-fns/fp/addDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addDays/index.js.flow b/node_modules/date-fns/fp/addDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addDays/package.json b/node_modules/date-fns/fp/addDays/package.json new file mode 100644 index 00000000..38e408dc --- /dev/null +++ b/node_modules/date-fns/fp/addDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addHours/index.d.ts b/node_modules/date-fns/fp/addHours/index.d.ts new file mode 100644 index 00000000..9b66a881 --- /dev/null +++ b/node_modules/date-fns/fp/addHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addHours } from 'date-fns/fp' +export default addHours diff --git a/node_modules/date-fns/fp/addHours/index.js b/node_modules/date-fns/fp/addHours/index.js new file mode 100644 index 00000000..d15aaed8 --- /dev/null +++ b/node_modules/date-fns/fp/addHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addHours/index.js.flow b/node_modules/date-fns/fp/addHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addHours/package.json b/node_modules/date-fns/fp/addHours/package.json new file mode 100644 index 00000000..f8ce94d7 --- /dev/null +++ b/node_modules/date-fns/fp/addHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addISOWeekYears/index.d.ts b/node_modules/date-fns/fp/addISOWeekYears/index.d.ts new file mode 100644 index 00000000..01dab9b4 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addISOWeekYears } from 'date-fns/fp' +export default addISOWeekYears diff --git a/node_modules/date-fns/fp/addISOWeekYears/index.js b/node_modules/date-fns/fp/addISOWeekYears/index.js new file mode 100644 index 00000000..378e16e7 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addISOWeekYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addISOWeekYears/index.js.flow b/node_modules/date-fns/fp/addISOWeekYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addISOWeekYears/package.json b/node_modules/date-fns/fp/addISOWeekYears/package.json new file mode 100644 index 00000000..f4c26e20 --- /dev/null +++ b/node_modules/date-fns/fp/addISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addISOWeekYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMilliseconds/index.d.ts b/node_modules/date-fns/fp/addMilliseconds/index.d.ts new file mode 100644 index 00000000..7a93c907 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMilliseconds } from 'date-fns/fp' +export default addMilliseconds diff --git a/node_modules/date-fns/fp/addMilliseconds/index.js b/node_modules/date-fns/fp/addMilliseconds/index.js new file mode 100644 index 00000000..397b2ab4 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMilliseconds/index.js.flow b/node_modules/date-fns/fp/addMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addMilliseconds/package.json b/node_modules/date-fns/fp/addMilliseconds/package.json new file mode 100644 index 00000000..d9281899 --- /dev/null +++ b/node_modules/date-fns/fp/addMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMinutes/index.d.ts b/node_modules/date-fns/fp/addMinutes/index.d.ts new file mode 100644 index 00000000..fc7b6702 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMinutes } from 'date-fns/fp' +export default addMinutes diff --git a/node_modules/date-fns/fp/addMinutes/index.js b/node_modules/date-fns/fp/addMinutes/index.js new file mode 100644 index 00000000..48e9e725 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMinutes/index.js.flow b/node_modules/date-fns/fp/addMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addMinutes/package.json b/node_modules/date-fns/fp/addMinutes/package.json new file mode 100644 index 00000000..50adbaf4 --- /dev/null +++ b/node_modules/date-fns/fp/addMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMonths/index.d.ts b/node_modules/date-fns/fp/addMonths/index.d.ts new file mode 100644 index 00000000..01f0e2df --- /dev/null +++ b/node_modules/date-fns/fp/addMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addMonths } from 'date-fns/fp' +export default addMonths diff --git a/node_modules/date-fns/fp/addMonths/index.js b/node_modules/date-fns/fp/addMonths/index.js new file mode 100644 index 00000000..16adf9a1 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addMonths/index.js.flow b/node_modules/date-fns/fp/addMonths/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addMonths/package.json b/node_modules/date-fns/fp/addMonths/package.json new file mode 100644 index 00000000..f4700c57 --- /dev/null +++ b/node_modules/date-fns/fp/addMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addQuarters/index.d.ts b/node_modules/date-fns/fp/addQuarters/index.d.ts new file mode 100644 index 00000000..f766d567 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addQuarters } from 'date-fns/fp' +export default addQuarters diff --git a/node_modules/date-fns/fp/addQuarters/index.js b/node_modules/date-fns/fp/addQuarters/index.js new file mode 100644 index 00000000..4c24e424 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addQuarters/index.js.flow b/node_modules/date-fns/fp/addQuarters/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addQuarters/package.json b/node_modules/date-fns/fp/addQuarters/package.json new file mode 100644 index 00000000..431ea412 --- /dev/null +++ b/node_modules/date-fns/fp/addQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addSeconds/index.d.ts b/node_modules/date-fns/fp/addSeconds/index.d.ts new file mode 100644 index 00000000..5c7c41c6 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addSeconds } from 'date-fns/fp' +export default addSeconds diff --git a/node_modules/date-fns/fp/addSeconds/index.js b/node_modules/date-fns/fp/addSeconds/index.js new file mode 100644 index 00000000..3b7174aa --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addSeconds/index.js.flow b/node_modules/date-fns/fp/addSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addSeconds/package.json b/node_modules/date-fns/fp/addSeconds/package.json new file mode 100644 index 00000000..bac5c188 --- /dev/null +++ b/node_modules/date-fns/fp/addSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addWeeks/index.d.ts b/node_modules/date-fns/fp/addWeeks/index.d.ts new file mode 100644 index 00000000..2703fefe --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addWeeks } from 'date-fns/fp' +export default addWeeks diff --git a/node_modules/date-fns/fp/addWeeks/index.js b/node_modules/date-fns/fp/addWeeks/index.js new file mode 100644 index 00000000..bc6ace5d --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addWeeks/index.js.flow b/node_modules/date-fns/fp/addWeeks/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addWeeks/package.json b/node_modules/date-fns/fp/addWeeks/package.json new file mode 100644 index 00000000..d39cdff9 --- /dev/null +++ b/node_modules/date-fns/fp/addWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/addYears/index.d.ts b/node_modules/date-fns/fp/addYears/index.d.ts new file mode 100644 index 00000000..ff907d45 --- /dev/null +++ b/node_modules/date-fns/fp/addYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { addYears } from 'date-fns/fp' +export default addYears diff --git a/node_modules/date-fns/fp/addYears/index.js b/node_modules/date-fns/fp/addYears/index.js new file mode 100644 index 00000000..6fb08946 --- /dev/null +++ b/node_modules/date-fns/fp/addYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../addYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/addYears/index.js.flow b/node_modules/date-fns/fp/addYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/addYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/addYears/package.json b/node_modules/date-fns/fp/addYears/package.json new file mode 100644 index 00000000..a1b0f744 --- /dev/null +++ b/node_modules/date-fns/fp/addYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/addYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping/index.d.ts b/node_modules/date-fns/fp/areIntervalsOverlapping/index.d.ts new file mode 100644 index 00000000..870f26b9 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlapping } from 'date-fns/fp' +export default areIntervalsOverlapping diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping/index.js b/node_modules/date-fns/fp/areIntervalsOverlapping/index.js new file mode 100644 index 00000000..4d94c473 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../areIntervalsOverlapping/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping/index.js.flow b/node_modules/date-fns/fp/areIntervalsOverlapping/index.js.flow new file mode 100644 index 00000000..cd396333 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/areIntervalsOverlapping/package.json b/node_modules/date-fns/fp/areIntervalsOverlapping/package.json new file mode 100644 index 00000000..6e7aa673 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlapping/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/areIntervalsOverlapping/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.d.ts b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.d.ts new file mode 100644 index 00000000..010890a8 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { areIntervalsOverlappingWithOptions } from 'date-fns/fp' +export default areIntervalsOverlappingWithOptions diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js new file mode 100644 index 00000000..4698c27e --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../areIntervalsOverlapping/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js.flow b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js.flow new file mode 100644 index 00000000..67e7396b --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + inclusive?: boolean, + }, + Interval, + Interval, + boolean +> diff --git a/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/package.json b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/package.json new file mode 100644 index 00000000..cfe6bd16 --- /dev/null +++ b/node_modules/date-fns/fp/areIntervalsOverlappingWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/areIntervalsOverlappingWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/clamp/index.d.ts b/node_modules/date-fns/fp/clamp/index.d.ts new file mode 100644 index 00000000..036e70a4 --- /dev/null +++ b/node_modules/date-fns/fp/clamp/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { clamp } from 'date-fns/fp' +export default clamp diff --git a/node_modules/date-fns/fp/clamp/index.js b/node_modules/date-fns/fp/clamp/index.js new file mode 100644 index 00000000..57da4ec5 --- /dev/null +++ b/node_modules/date-fns/fp/clamp/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../clamp/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/clamp/index.js.flow b/node_modules/date-fns/fp/clamp/index.js.flow new file mode 100644 index 00000000..6bd42638 --- /dev/null +++ b/node_modules/date-fns/fp/clamp/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/clamp/package.json b/node_modules/date-fns/fp/clamp/package.json new file mode 100644 index 00000000..5e3bf1c9 --- /dev/null +++ b/node_modules/date-fns/fp/clamp/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/clamp/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/closestIndexTo/index.d.ts b/node_modules/date-fns/fp/closestIndexTo/index.d.ts new file mode 100644 index 00000000..562180df --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestIndexTo } from 'date-fns/fp' +export default closestIndexTo diff --git a/node_modules/date-fns/fp/closestIndexTo/index.js b/node_modules/date-fns/fp/closestIndexTo/index.js new file mode 100644 index 00000000..cf4380f5 --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../closestIndexTo/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/closestIndexTo/index.js.flow b/node_modules/date-fns/fp/closestIndexTo/index.js.flow new file mode 100644 index 00000000..d7c060ba --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2<(Date | number)[], Date | number, ?number> diff --git a/node_modules/date-fns/fp/closestIndexTo/package.json b/node_modules/date-fns/fp/closestIndexTo/package.json new file mode 100644 index 00000000..4097dca7 --- /dev/null +++ b/node_modules/date-fns/fp/closestIndexTo/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/closestIndexTo/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/closestTo/index.d.ts b/node_modules/date-fns/fp/closestTo/index.d.ts new file mode 100644 index 00000000..44d10c3a --- /dev/null +++ b/node_modules/date-fns/fp/closestTo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { closestTo } from 'date-fns/fp' +export default closestTo diff --git a/node_modules/date-fns/fp/closestTo/index.js b/node_modules/date-fns/fp/closestTo/index.js new file mode 100644 index 00000000..8b19cf97 --- /dev/null +++ b/node_modules/date-fns/fp/closestTo/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../closestTo/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/closestTo/index.js.flow b/node_modules/date-fns/fp/closestTo/index.js.flow new file mode 100644 index 00000000..61487d9e --- /dev/null +++ b/node_modules/date-fns/fp/closestTo/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2<(Date | number)[], Date | number, ?Date> diff --git a/node_modules/date-fns/fp/closestTo/package.json b/node_modules/date-fns/fp/closestTo/package.json new file mode 100644 index 00000000..5b49d44e --- /dev/null +++ b/node_modules/date-fns/fp/closestTo/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/closestTo/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/compareAsc/index.d.ts b/node_modules/date-fns/fp/compareAsc/index.d.ts new file mode 100644 index 00000000..77d5c612 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareAsc } from 'date-fns/fp' +export default compareAsc diff --git a/node_modules/date-fns/fp/compareAsc/index.js b/node_modules/date-fns/fp/compareAsc/index.js new file mode 100644 index 00000000..a031acd8 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../compareAsc/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/compareAsc/index.js.flow b/node_modules/date-fns/fp/compareAsc/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/compareAsc/package.json b/node_modules/date-fns/fp/compareAsc/package.json new file mode 100644 index 00000000..62cafbd6 --- /dev/null +++ b/node_modules/date-fns/fp/compareAsc/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/compareAsc/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/compareDesc/index.d.ts b/node_modules/date-fns/fp/compareDesc/index.d.ts new file mode 100644 index 00000000..df01367c --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { compareDesc } from 'date-fns/fp' +export default compareDesc diff --git a/node_modules/date-fns/fp/compareDesc/index.js b/node_modules/date-fns/fp/compareDesc/index.js new file mode 100644 index 00000000..dfb96f8a --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../compareDesc/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/compareDesc/index.js.flow b/node_modules/date-fns/fp/compareDesc/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/compareDesc/package.json b/node_modules/date-fns/fp/compareDesc/package.json new file mode 100644 index 00000000..b6a8412c --- /dev/null +++ b/node_modules/date-fns/fp/compareDesc/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/compareDesc/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/daysToWeeks/index.d.ts b/node_modules/date-fns/fp/daysToWeeks/index.d.ts new file mode 100644 index 00000000..798a9e15 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { daysToWeeks } from 'date-fns/fp' +export default daysToWeeks diff --git a/node_modules/date-fns/fp/daysToWeeks/index.js b/node_modules/date-fns/fp/daysToWeeks/index.js new file mode 100644 index 00000000..ad0a5151 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../daysToWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/daysToWeeks/index.js.flow b/node_modules/date-fns/fp/daysToWeeks/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/daysToWeeks/package.json b/node_modules/date-fns/fp/daysToWeeks/package.json new file mode 100644 index 00000000..9e538a01 --- /dev/null +++ b/node_modules/date-fns/fp/daysToWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/daysToWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInBusinessDays/index.d.ts b/node_modules/date-fns/fp/differenceInBusinessDays/index.d.ts new file mode 100644 index 00000000..4ff98906 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInBusinessDays } from 'date-fns/fp' +export default differenceInBusinessDays diff --git a/node_modules/date-fns/fp/differenceInBusinessDays/index.js b/node_modules/date-fns/fp/differenceInBusinessDays/index.js new file mode 100644 index 00000000..da09b80c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInBusinessDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInBusinessDays/index.js.flow b/node_modules/date-fns/fp/differenceInBusinessDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInBusinessDays/package.json b/node_modules/date-fns/fp/differenceInBusinessDays/package.json new file mode 100644 index 00000000..02f12e80 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInBusinessDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarDays/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarDays/index.d.ts new file mode 100644 index 00000000..b6ae5f5a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarDays } from 'date-fns/fp' +export default differenceInCalendarDays diff --git a/node_modules/date-fns/fp/differenceInCalendarDays/index.js b/node_modules/date-fns/fp/differenceInCalendarDays/index.js new file mode 100644 index 00000000..5688340c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarDays/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarDays/package.json b/node_modules/date-fns/fp/differenceInCalendarDays/package.json new file mode 100644 index 00000000..e3148b94 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.d.ts new file mode 100644 index 00000000..4e21998d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeekYears } from 'date-fns/fp' +export default differenceInCalendarISOWeekYears diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js new file mode 100644 index 00000000..9df379c3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarISOWeekYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/package.json b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/package.json new file mode 100644 index 00000000..e1ce6447 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarISOWeekYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.d.ts new file mode 100644 index 00000000..7751c6f2 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarISOWeeks } from 'date-fns/fp' +export default differenceInCalendarISOWeeks diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js new file mode 100644 index 00000000..35315b0e --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarISOWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarISOWeeks/package.json b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/package.json new file mode 100644 index 00000000..1107c79a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarISOWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarISOWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarMonths/index.d.ts new file mode 100644 index 00000000..080ac92d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarMonths } from 'date-fns/fp' +export default differenceInCalendarMonths diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths/index.js b/node_modules/date-fns/fp/differenceInCalendarMonths/index.js new file mode 100644 index 00000000..244a21ab --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarMonths/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarMonths/package.json b/node_modules/date-fns/fp/differenceInCalendarMonths/package.json new file mode 100644 index 00000000..c80073f1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.d.ts new file mode 100644 index 00000000..7b9208ba --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarQuarters } from 'date-fns/fp' +export default differenceInCalendarQuarters diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js new file mode 100644 index 00000000..3b8d92e1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarQuarters/package.json b/node_modules/date-fns/fp/differenceInCalendarQuarters/package.json new file mode 100644 index 00000000..5917509b --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.d.ts new file mode 100644 index 00000000..c64709a1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeks } from 'date-fns/fp' +export default differenceInCalendarWeeks diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js new file mode 100644 index 00000000..d210cdba --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeks/package.json b/node_modules/date-fns/fp/differenceInCalendarWeeks/package.json new file mode 100644 index 00000000..4d4fe5d3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.d.ts new file mode 100644 index 00000000..344e205f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarWeeksWithOptions } from 'date-fns/fp' +export default differenceInCalendarWeeksWithOptions diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js new file mode 100644 index 00000000..e8184232 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js.flow new file mode 100644 index 00000000..9ee18fd5 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/package.json b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/package.json new file mode 100644 index 00000000..8b86fdf2 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarWeeksWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarWeeksWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarYears/index.d.ts b/node_modules/date-fns/fp/differenceInCalendarYears/index.d.ts new file mode 100644 index 00000000..1390b1fd --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInCalendarYears } from 'date-fns/fp' +export default differenceInCalendarYears diff --git a/node_modules/date-fns/fp/differenceInCalendarYears/index.js b/node_modules/date-fns/fp/differenceInCalendarYears/index.js new file mode 100644 index 00000000..7faef30a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInCalendarYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInCalendarYears/index.js.flow b/node_modules/date-fns/fp/differenceInCalendarYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInCalendarYears/package.json b/node_modules/date-fns/fp/differenceInCalendarYears/package.json new file mode 100644 index 00000000..fee18f37 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInCalendarYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInCalendarYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInDays/index.d.ts b/node_modules/date-fns/fp/differenceInDays/index.d.ts new file mode 100644 index 00000000..b240c6e3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInDays } from 'date-fns/fp' +export default differenceInDays diff --git a/node_modules/date-fns/fp/differenceInDays/index.js b/node_modules/date-fns/fp/differenceInDays/index.js new file mode 100644 index 00000000..a6ee4b7a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInDays/index.js.flow b/node_modules/date-fns/fp/differenceInDays/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInDays/package.json b/node_modules/date-fns/fp/differenceInDays/package.json new file mode 100644 index 00000000..0ccf6cbc --- /dev/null +++ b/node_modules/date-fns/fp/differenceInDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInHours/index.d.ts b/node_modules/date-fns/fp/differenceInHours/index.d.ts new file mode 100644 index 00000000..4cc27978 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHours } from 'date-fns/fp' +export default differenceInHours diff --git a/node_modules/date-fns/fp/differenceInHours/index.js b/node_modules/date-fns/fp/differenceInHours/index.js new file mode 100644 index 00000000..5f0b0f60 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInHours/index.js.flow b/node_modules/date-fns/fp/differenceInHours/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInHours/package.json b/node_modules/date-fns/fp/differenceInHours/package.json new file mode 100644 index 00000000..b1386116 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.d.ts new file mode 100644 index 00000000..0b4cc304 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInHoursWithOptions } from 'date-fns/fp' +export default differenceInHoursWithOptions diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js new file mode 100644 index 00000000..3cd9bfe0 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInHoursWithOptions/package.json b/node_modules/date-fns/fp/differenceInHoursWithOptions/package.json new file mode 100644 index 00000000..824accb8 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInHoursWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInHoursWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears/index.d.ts b/node_modules/date-fns/fp/differenceInISOWeekYears/index.d.ts new file mode 100644 index 00000000..634591ad --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInISOWeekYears } from 'date-fns/fp' +export default differenceInISOWeekYears diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears/index.js b/node_modules/date-fns/fp/differenceInISOWeekYears/index.js new file mode 100644 index 00000000..42d0c2e1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInISOWeekYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears/index.js.flow b/node_modules/date-fns/fp/differenceInISOWeekYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInISOWeekYears/package.json b/node_modules/date-fns/fp/differenceInISOWeekYears/package.json new file mode 100644 index 00000000..59531a6c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInISOWeekYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMilliseconds/index.d.ts b/node_modules/date-fns/fp/differenceInMilliseconds/index.d.ts new file mode 100644 index 00000000..23924cbd --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMilliseconds } from 'date-fns/fp' +export default differenceInMilliseconds diff --git a/node_modules/date-fns/fp/differenceInMilliseconds/index.js b/node_modules/date-fns/fp/differenceInMilliseconds/index.js new file mode 100644 index 00000000..99935518 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMilliseconds/index.js.flow b/node_modules/date-fns/fp/differenceInMilliseconds/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInMilliseconds/package.json b/node_modules/date-fns/fp/differenceInMilliseconds/package.json new file mode 100644 index 00000000..576214d1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMinutes/index.d.ts b/node_modules/date-fns/fp/differenceInMinutes/index.d.ts new file mode 100644 index 00000000..6d00d342 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutes } from 'date-fns/fp' +export default differenceInMinutes diff --git a/node_modules/date-fns/fp/differenceInMinutes/index.js b/node_modules/date-fns/fp/differenceInMinutes/index.js new file mode 100644 index 00000000..c151ef8d --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMinutes/index.js.flow b/node_modules/date-fns/fp/differenceInMinutes/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInMinutes/package.json b/node_modules/date-fns/fp/differenceInMinutes/package.json new file mode 100644 index 00000000..fe7b9e7e --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.d.ts new file mode 100644 index 00000000..33037c96 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMinutesWithOptions } from 'date-fns/fp' +export default differenceInMinutesWithOptions diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js new file mode 100644 index 00000000..ef8f5a8b --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInMinutesWithOptions/package.json b/node_modules/date-fns/fp/differenceInMinutesWithOptions/package.json new file mode 100644 index 00000000..46a36055 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMinutesWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInMinutesWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMonths/index.d.ts b/node_modules/date-fns/fp/differenceInMonths/index.d.ts new file mode 100644 index 00000000..17bdd4ea --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInMonths } from 'date-fns/fp' +export default differenceInMonths diff --git a/node_modules/date-fns/fp/differenceInMonths/index.js b/node_modules/date-fns/fp/differenceInMonths/index.js new file mode 100644 index 00000000..9ec92f68 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInMonths/index.js.flow b/node_modules/date-fns/fp/differenceInMonths/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInMonths/package.json b/node_modules/date-fns/fp/differenceInMonths/package.json new file mode 100644 index 00000000..748a57be --- /dev/null +++ b/node_modules/date-fns/fp/differenceInMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInQuarters/index.d.ts b/node_modules/date-fns/fp/differenceInQuarters/index.d.ts new file mode 100644 index 00000000..649f21d4 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuarters } from 'date-fns/fp' +export default differenceInQuarters diff --git a/node_modules/date-fns/fp/differenceInQuarters/index.js b/node_modules/date-fns/fp/differenceInQuarters/index.js new file mode 100644 index 00000000..2f673ead --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInQuarters/index.js.flow b/node_modules/date-fns/fp/differenceInQuarters/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInQuarters/package.json b/node_modules/date-fns/fp/differenceInQuarters/package.json new file mode 100644 index 00000000..7ef97707 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.d.ts new file mode 100644 index 00000000..a456bf1e --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInQuartersWithOptions } from 'date-fns/fp' +export default differenceInQuartersWithOptions diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js new file mode 100644 index 00000000..15d400d6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInQuartersWithOptions/package.json b/node_modules/date-fns/fp/differenceInQuartersWithOptions/package.json new file mode 100644 index 00000000..15ea2765 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInQuartersWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInQuartersWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInSeconds/index.d.ts b/node_modules/date-fns/fp/differenceInSeconds/index.d.ts new file mode 100644 index 00000000..1dded51c --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSeconds } from 'date-fns/fp' +export default differenceInSeconds diff --git a/node_modules/date-fns/fp/differenceInSeconds/index.js b/node_modules/date-fns/fp/differenceInSeconds/index.js new file mode 100644 index 00000000..17277760 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInSeconds/index.js.flow b/node_modules/date-fns/fp/differenceInSeconds/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInSeconds/package.json b/node_modules/date-fns/fp/differenceInSeconds/package.json new file mode 100644 index 00000000..bff2f6cf --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.d.ts new file mode 100644 index 00000000..da59f3f1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInSecondsWithOptions } from 'date-fns/fp' +export default differenceInSecondsWithOptions diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js new file mode 100644 index 00000000..e594f789 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInSecondsWithOptions/package.json b/node_modules/date-fns/fp/differenceInSecondsWithOptions/package.json new file mode 100644 index 00000000..db706710 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInSecondsWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInSecondsWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInWeeks/index.d.ts b/node_modules/date-fns/fp/differenceInWeeks/index.d.ts new file mode 100644 index 00000000..52d52209 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeks } from 'date-fns/fp' +export default differenceInWeeks diff --git a/node_modules/date-fns/fp/differenceInWeeks/index.js b/node_modules/date-fns/fp/differenceInWeeks/index.js new file mode 100644 index 00000000..91e1e22f --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInWeeks/index.js.flow b/node_modules/date-fns/fp/differenceInWeeks/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInWeeks/package.json b/node_modules/date-fns/fp/differenceInWeeks/package.json new file mode 100644 index 00000000..dd3b8bb1 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.d.ts b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.d.ts new file mode 100644 index 00000000..30165024 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInWeeksWithOptions } from 'date-fns/fp' +export default differenceInWeeksWithOptions diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js new file mode 100644 index 00000000..5b2ffb1a --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js.flow b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js.flow new file mode 100644 index 00000000..8befafa6 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions/index.js.flow @@ -0,0 +1,74 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/differenceInWeeksWithOptions/package.json b/node_modules/date-fns/fp/differenceInWeeksWithOptions/package.json new file mode 100644 index 00000000..793a1064 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInWeeksWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInWeeksWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInYears/index.d.ts b/node_modules/date-fns/fp/differenceInYears/index.d.ts new file mode 100644 index 00000000..20fd1640 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { differenceInYears } from 'date-fns/fp' +export default differenceInYears diff --git a/node_modules/date-fns/fp/differenceInYears/index.js b/node_modules/date-fns/fp/differenceInYears/index.js new file mode 100644 index 00000000..9011f856 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../differenceInYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/differenceInYears/index.js.flow b/node_modules/date-fns/fp/differenceInYears/index.js.flow new file mode 100644 index 00000000..78c45ae3 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/differenceInYears/package.json b/node_modules/date-fns/fp/differenceInYears/package.json new file mode 100644 index 00000000..bfd1a576 --- /dev/null +++ b/node_modules/date-fns/fp/differenceInYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/differenceInYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachDayOfInterval/index.d.ts b/node_modules/date-fns/fp/eachDayOfInterval/index.d.ts new file mode 100644 index 00000000..e878e768 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfInterval } from 'date-fns/fp' +export default eachDayOfInterval diff --git a/node_modules/date-fns/fp/eachDayOfInterval/index.js b/node_modules/date-fns/fp/eachDayOfInterval/index.js new file mode 100644 index 00000000..a5a5b6a1 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachDayOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachDayOfInterval/index.js.flow b/node_modules/date-fns/fp/eachDayOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachDayOfInterval/package.json b/node_modules/date-fns/fp/eachDayOfInterval/package.json new file mode 100644 index 00000000..03fcbcbe --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachDayOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..58622840 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachDayOfIntervalWithOptions } from 'date-fns/fp' +export default eachDayOfIntervalWithOptions diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js new file mode 100644 index 00000000..cf13afdd --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachDayOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/package.json b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/package.json new file mode 100644 index 00000000..72d0c640 --- /dev/null +++ b/node_modules/date-fns/fp/eachDayOfIntervalWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachDayOfIntervalWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachHourOfInterval/index.d.ts b/node_modules/date-fns/fp/eachHourOfInterval/index.d.ts new file mode 100644 index 00000000..055ab320 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfInterval } from 'date-fns/fp' +export default eachHourOfInterval diff --git a/node_modules/date-fns/fp/eachHourOfInterval/index.js b/node_modules/date-fns/fp/eachHourOfInterval/index.js new file mode 100644 index 00000000..de256f4d --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachHourOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachHourOfInterval/index.js.flow b/node_modules/date-fns/fp/eachHourOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachHourOfInterval/package.json b/node_modules/date-fns/fp/eachHourOfInterval/package.json new file mode 100644 index 00000000..5408d889 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachHourOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..7b781f90 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachHourOfIntervalWithOptions } from 'date-fns/fp' +export default eachHourOfIntervalWithOptions diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js new file mode 100644 index 00000000..d7e72fb7 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachHourOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/package.json b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/package.json new file mode 100644 index 00000000..8bbaa802 --- /dev/null +++ b/node_modules/date-fns/fp/eachHourOfIntervalWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachHourOfIntervalWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval/index.d.ts b/node_modules/date-fns/fp/eachMinuteOfInterval/index.d.ts new file mode 100644 index 00000000..243185fb --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfInterval } from 'date-fns/fp' +export default eachMinuteOfInterval diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval/index.js b/node_modules/date-fns/fp/eachMinuteOfInterval/index.js new file mode 100644 index 00000000..adc25a0c --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachMinuteOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval/index.js.flow b/node_modules/date-fns/fp/eachMinuteOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachMinuteOfInterval/package.json b/node_modules/date-fns/fp/eachMinuteOfInterval/package.json new file mode 100644 index 00000000..7c06721a --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachMinuteOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..716aa441 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMinuteOfIntervalWithOptions } from 'date-fns/fp' +export default eachMinuteOfIntervalWithOptions diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js new file mode 100644 index 00000000..cc2a84af --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachMinuteOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..bedeb213 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/package.json b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/package.json new file mode 100644 index 00000000..e184cea4 --- /dev/null +++ b/node_modules/date-fns/fp/eachMinuteOfIntervalWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachMinuteOfIntervalWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMonthOfInterval/index.d.ts b/node_modules/date-fns/fp/eachMonthOfInterval/index.d.ts new file mode 100644 index 00000000..1f3cae5a --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachMonthOfInterval } from 'date-fns/fp' +export default eachMonthOfInterval diff --git a/node_modules/date-fns/fp/eachMonthOfInterval/index.js b/node_modules/date-fns/fp/eachMonthOfInterval/index.js new file mode 100644 index 00000000..8792cd06 --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachMonthOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachMonthOfInterval/index.js.flow b/node_modules/date-fns/fp/eachMonthOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachMonthOfInterval/package.json b/node_modules/date-fns/fp/eachMonthOfInterval/package.json new file mode 100644 index 00000000..44092e8a --- /dev/null +++ b/node_modules/date-fns/fp/eachMonthOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachMonthOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval/index.d.ts b/node_modules/date-fns/fp/eachQuarterOfInterval/index.d.ts new file mode 100644 index 00000000..8a81f636 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachQuarterOfInterval } from 'date-fns/fp' +export default eachQuarterOfInterval diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval/index.js b/node_modules/date-fns/fp/eachQuarterOfInterval/index.js new file mode 100644 index 00000000..c2a7255d --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachQuarterOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval/index.js.flow b/node_modules/date-fns/fp/eachQuarterOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachQuarterOfInterval/package.json b/node_modules/date-fns/fp/eachQuarterOfInterval/package.json new file mode 100644 index 00000000..06544204 --- /dev/null +++ b/node_modules/date-fns/fp/eachQuarterOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachQuarterOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekOfInterval/index.d.ts b/node_modules/date-fns/fp/eachWeekOfInterval/index.d.ts new file mode 100644 index 00000000..ab5d4b46 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfInterval } from 'date-fns/fp' +export default eachWeekOfInterval diff --git a/node_modules/date-fns/fp/eachWeekOfInterval/index.js b/node_modules/date-fns/fp/eachWeekOfInterval/index.js new file mode 100644 index 00000000..47922555 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachWeekOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekOfInterval/index.js.flow b/node_modules/date-fns/fp/eachWeekOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachWeekOfInterval/package.json b/node_modules/date-fns/fp/eachWeekOfInterval/package.json new file mode 100644 index 00000000..29ebc74d --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachWeekOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.d.ts b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.d.ts new file mode 100644 index 00000000..def43ab8 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekOfIntervalWithOptions } from 'date-fns/fp' +export default eachWeekOfIntervalWithOptions diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js new file mode 100644 index 00000000..a28a53e0 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachWeekOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js.flow b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js.flow new file mode 100644 index 00000000..3aca2180 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Interval, + Date[] +> diff --git a/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/package.json b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/package.json new file mode 100644 index 00000000..568fe1e8 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekOfIntervalWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachWeekOfIntervalWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval/index.d.ts b/node_modules/date-fns/fp/eachWeekendOfInterval/index.d.ts new file mode 100644 index 00000000..961eff70 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfInterval } from 'date-fns/fp' +export default eachWeekendOfInterval diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval/index.js b/node_modules/date-fns/fp/eachWeekendOfInterval/index.js new file mode 100644 index 00000000..f9f37f9d --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachWeekendOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval/index.js.flow b/node_modules/date-fns/fp/eachWeekendOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachWeekendOfInterval/package.json b/node_modules/date-fns/fp/eachWeekendOfInterval/package.json new file mode 100644 index 00000000..548d51f2 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachWeekendOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth/index.d.ts b/node_modules/date-fns/fp/eachWeekendOfMonth/index.d.ts new file mode 100644 index 00000000..2501a05e --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfMonth } from 'date-fns/fp' +export default eachWeekendOfMonth diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth/index.js b/node_modules/date-fns/fp/eachWeekendOfMonth/index.js new file mode 100644 index 00000000..751cd5f8 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachWeekendOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth/index.js.flow b/node_modules/date-fns/fp/eachWeekendOfMonth/index.js.flow new file mode 100644 index 00000000..9736b40c --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachWeekendOfMonth/package.json b/node_modules/date-fns/fp/eachWeekendOfMonth/package.json new file mode 100644 index 00000000..7e7a1160 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachWeekendOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfYear/index.d.ts b/node_modules/date-fns/fp/eachWeekendOfYear/index.d.ts new file mode 100644 index 00000000..8554541d --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachWeekendOfYear } from 'date-fns/fp' +export default eachWeekendOfYear diff --git a/node_modules/date-fns/fp/eachWeekendOfYear/index.js b/node_modules/date-fns/fp/eachWeekendOfYear/index.js new file mode 100644 index 00000000..460d5c94 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachWeekendOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachWeekendOfYear/index.js.flow b/node_modules/date-fns/fp/eachWeekendOfYear/index.js.flow new file mode 100644 index 00000000..9736b40c --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachWeekendOfYear/package.json b/node_modules/date-fns/fp/eachWeekendOfYear/package.json new file mode 100644 index 00000000..c47b1687 --- /dev/null +++ b/node_modules/date-fns/fp/eachWeekendOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachWeekendOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachYearOfInterval/index.d.ts b/node_modules/date-fns/fp/eachYearOfInterval/index.d.ts new file mode 100644 index 00000000..51e093b5 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eachYearOfInterval } from 'date-fns/fp' +export default eachYearOfInterval diff --git a/node_modules/date-fns/fp/eachYearOfInterval/index.js b/node_modules/date-fns/fp/eachYearOfInterval/index.js new file mode 100644 index 00000000..de013ef4 --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../eachYearOfInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/eachYearOfInterval/index.js.flow b/node_modules/date-fns/fp/eachYearOfInterval/index.js.flow new file mode 100644 index 00000000..c5f2d6ac --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/eachYearOfInterval/package.json b/node_modules/date-fns/fp/eachYearOfInterval/package.json new file mode 100644 index 00000000..52b0944c --- /dev/null +++ b/node_modules/date-fns/fp/eachYearOfInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/eachYearOfInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDay/index.d.ts b/node_modules/date-fns/fp/endOfDay/index.d.ts new file mode 100644 index 00000000..2db665f3 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDay } from 'date-fns/fp' +export default endOfDay diff --git a/node_modules/date-fns/fp/endOfDay/index.js b/node_modules/date-fns/fp/endOfDay/index.js new file mode 100644 index 00000000..f132cd33 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDay/index.js.flow b/node_modules/date-fns/fp/endOfDay/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfDay/package.json b/node_modules/date-fns/fp/endOfDay/package.json new file mode 100644 index 00000000..61905031 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDecade/index.d.ts b/node_modules/date-fns/fp/endOfDecade/index.d.ts new file mode 100644 index 00000000..f3a7e8c8 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecade } from 'date-fns/fp' +export default endOfDecade diff --git a/node_modules/date-fns/fp/endOfDecade/index.js b/node_modules/date-fns/fp/endOfDecade/index.js new file mode 100644 index 00000000..d2a66f6d --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfDecade/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDecade/index.js.flow b/node_modules/date-fns/fp/endOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfDecade/package.json b/node_modules/date-fns/fp/endOfDecade/package.json new file mode 100644 index 00000000..91c2046e --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfDecade/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions/index.d.ts b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.d.ts new file mode 100644 index 00000000..cad60dac --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfDecadeWithOptions } from 'date-fns/fp' +export default endOfDecadeWithOptions diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js new file mode 100644 index 00000000..b5010414 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfDecade/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js.flow b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js.flow new file mode 100644 index 00000000..4b6d0d46 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/endOfDecadeWithOptions/package.json b/node_modules/date-fns/fp/endOfDecadeWithOptions/package.json new file mode 100644 index 00000000..69340729 --- /dev/null +++ b/node_modules/date-fns/fp/endOfDecadeWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfDecadeWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfHour/index.d.ts b/node_modules/date-fns/fp/endOfHour/index.d.ts new file mode 100644 index 00000000..fb7b3190 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfHour } from 'date-fns/fp' +export default endOfHour diff --git a/node_modules/date-fns/fp/endOfHour/index.js b/node_modules/date-fns/fp/endOfHour/index.js new file mode 100644 index 00000000..51405c9d --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfHour/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfHour/index.js.flow b/node_modules/date-fns/fp/endOfHour/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfHour/package.json b/node_modules/date-fns/fp/endOfHour/package.json new file mode 100644 index 00000000..59c107d7 --- /dev/null +++ b/node_modules/date-fns/fp/endOfHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfHour/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfISOWeek/index.d.ts b/node_modules/date-fns/fp/endOfISOWeek/index.d.ts new file mode 100644 index 00000000..64f0b2e3 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeek } from 'date-fns/fp' +export default endOfISOWeek diff --git a/node_modules/date-fns/fp/endOfISOWeek/index.js b/node_modules/date-fns/fp/endOfISOWeek/index.js new file mode 100644 index 00000000..a25f51a5 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfISOWeek/index.js.flow b/node_modules/date-fns/fp/endOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfISOWeek/package.json b/node_modules/date-fns/fp/endOfISOWeek/package.json new file mode 100644 index 00000000..4cb73452 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfISOWeekYear/index.d.ts b/node_modules/date-fns/fp/endOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..9782d7fe --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfISOWeekYear } from 'date-fns/fp' +export default endOfISOWeekYear diff --git a/node_modules/date-fns/fp/endOfISOWeekYear/index.js b/node_modules/date-fns/fp/endOfISOWeekYear/index.js new file mode 100644 index 00000000..8e251c80 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfISOWeekYear/index.js.flow b/node_modules/date-fns/fp/endOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfISOWeekYear/package.json b/node_modules/date-fns/fp/endOfISOWeekYear/package.json new file mode 100644 index 00000000..86a41902 --- /dev/null +++ b/node_modules/date-fns/fp/endOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfMinute/index.d.ts b/node_modules/date-fns/fp/endOfMinute/index.d.ts new file mode 100644 index 00000000..78e8a192 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMinute } from 'date-fns/fp' +export default endOfMinute diff --git a/node_modules/date-fns/fp/endOfMinute/index.js b/node_modules/date-fns/fp/endOfMinute/index.js new file mode 100644 index 00000000..be6c0285 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfMinute/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfMinute/index.js.flow b/node_modules/date-fns/fp/endOfMinute/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfMinute/package.json b/node_modules/date-fns/fp/endOfMinute/package.json new file mode 100644 index 00000000..29618b5e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfMinute/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfMonth/index.d.ts b/node_modules/date-fns/fp/endOfMonth/index.d.ts new file mode 100644 index 00000000..0c23957e --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfMonth } from 'date-fns/fp' +export default endOfMonth diff --git a/node_modules/date-fns/fp/endOfMonth/index.js b/node_modules/date-fns/fp/endOfMonth/index.js new file mode 100644 index 00000000..9325749a --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfMonth/index.js.flow b/node_modules/date-fns/fp/endOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfMonth/package.json b/node_modules/date-fns/fp/endOfMonth/package.json new file mode 100644 index 00000000..195904ea --- /dev/null +++ b/node_modules/date-fns/fp/endOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfQuarter/index.d.ts b/node_modules/date-fns/fp/endOfQuarter/index.d.ts new file mode 100644 index 00000000..24e729ba --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfQuarter } from 'date-fns/fp' +export default endOfQuarter diff --git a/node_modules/date-fns/fp/endOfQuarter/index.js b/node_modules/date-fns/fp/endOfQuarter/index.js new file mode 100644 index 00000000..ad5893f0 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfQuarter/index.js.flow b/node_modules/date-fns/fp/endOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfQuarter/package.json b/node_modules/date-fns/fp/endOfQuarter/package.json new file mode 100644 index 00000000..114a311d --- /dev/null +++ b/node_modules/date-fns/fp/endOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfSecond/index.d.ts b/node_modules/date-fns/fp/endOfSecond/index.d.ts new file mode 100644 index 00000000..6b5d624e --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfSecond } from 'date-fns/fp' +export default endOfSecond diff --git a/node_modules/date-fns/fp/endOfSecond/index.js b/node_modules/date-fns/fp/endOfSecond/index.js new file mode 100644 index 00000000..46485ced --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfSecond/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfSecond/index.js.flow b/node_modules/date-fns/fp/endOfSecond/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfSecond/package.json b/node_modules/date-fns/fp/endOfSecond/package.json new file mode 100644 index 00000000..191b1a9d --- /dev/null +++ b/node_modules/date-fns/fp/endOfSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfSecond/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfWeek/index.d.ts b/node_modules/date-fns/fp/endOfWeek/index.d.ts new file mode 100644 index 00000000..0aa4d102 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeek } from 'date-fns/fp' +export default endOfWeek diff --git a/node_modules/date-fns/fp/endOfWeek/index.js b/node_modules/date-fns/fp/endOfWeek/index.js new file mode 100644 index 00000000..fb053d69 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfWeek/index.js.flow b/node_modules/date-fns/fp/endOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfWeek/package.json b/node_modules/date-fns/fp/endOfWeek/package.json new file mode 100644 index 00000000..fb45547c --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/endOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..0ddcbf60 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfWeekWithOptions } from 'date-fns/fp' +export default endOfWeekWithOptions diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions/index.js b/node_modules/date-fns/fp/endOfWeekWithOptions/index.js new file mode 100644 index 00000000..f732c821 --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/endOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/endOfWeekWithOptions/package.json b/node_modules/date-fns/fp/endOfWeekWithOptions/package.json new file mode 100644 index 00000000..bc196a2d --- /dev/null +++ b/node_modules/date-fns/fp/endOfWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfYear/index.d.ts b/node_modules/date-fns/fp/endOfYear/index.d.ts new file mode 100644 index 00000000..b4e5904e --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { endOfYear } from 'date-fns/fp' +export default endOfYear diff --git a/node_modules/date-fns/fp/endOfYear/index.js b/node_modules/date-fns/fp/endOfYear/index.js new file mode 100644 index 00000000..c58231c7 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../endOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/endOfYear/index.js.flow b/node_modules/date-fns/fp/endOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/endOfYear/package.json b/node_modules/date-fns/fp/endOfYear/package.json new file mode 100644 index 00000000..fc8d7ced --- /dev/null +++ b/node_modules/date-fns/fp/endOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/endOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/format/index.d.ts b/node_modules/date-fns/fp/format/index.d.ts new file mode 100644 index 00000000..bf0c948e --- /dev/null +++ b/node_modules/date-fns/fp/format/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { format } from 'date-fns/fp' +export default format diff --git a/node_modules/date-fns/fp/format/index.js b/node_modules/date-fns/fp/format/index.js new file mode 100644 index 00000000..fefee559 --- /dev/null +++ b/node_modules/date-fns/fp/format/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../format/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/format/index.js.flow b/node_modules/date-fns/fp/format/index.js.flow new file mode 100644 index 00000000..013f277c --- /dev/null +++ b/node_modules/date-fns/fp/format/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/format/package.json b/node_modules/date-fns/fp/format/package.json new file mode 100644 index 00000000..b284f04c --- /dev/null +++ b/node_modules/date-fns/fp/format/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/format/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistance/index.d.ts b/node_modules/date-fns/fp/formatDistance/index.d.ts new file mode 100644 index 00000000..029daa42 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistance } from 'date-fns/fp' +export default formatDistance diff --git a/node_modules/date-fns/fp/formatDistance/index.js b/node_modules/date-fns/fp/formatDistance/index.js new file mode 100644 index 00000000..f539ac7e --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistance/index.js.flow b/node_modules/date-fns/fp/formatDistance/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/formatDistance/package.json b/node_modules/date-fns/fp/formatDistance/package.json new file mode 100644 index 00000000..612f6232 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistance/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDistance/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceStrict/index.d.ts b/node_modules/date-fns/fp/formatDistanceStrict/index.d.ts new file mode 100644 index 00000000..dd41fb8a --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrict } from 'date-fns/fp' +export default formatDistanceStrict diff --git a/node_modules/date-fns/fp/formatDistanceStrict/index.js b/node_modules/date-fns/fp/formatDistanceStrict/index.js new file mode 100644 index 00000000..4cf05760 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDistanceStrict/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceStrict/index.js.flow b/node_modules/date-fns/fp/formatDistanceStrict/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/formatDistanceStrict/package.json b/node_modules/date-fns/fp/formatDistanceStrict/package.json new file mode 100644 index 00000000..92b0d8ea --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrict/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDistanceStrict/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.d.ts b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.d.ts new file mode 100644 index 00000000..2e626c40 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceStrictWithOptions } from 'date-fns/fp' +export default formatDistanceStrictWithOptions diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js new file mode 100644 index 00000000..597924c3 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDistanceStrict/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js.flow b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js.flow new file mode 100644 index 00000000..b021da2f --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/index.js.flow @@ -0,0 +1,77 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: Locale, + roundingMethod?: 'floor' | 'ceil' | 'round', + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + addSuffix?: boolean, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatDistanceStrictWithOptions/package.json b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/package.json new file mode 100644 index 00000000..7766738a --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceStrictWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDistanceStrictWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions/index.d.ts b/node_modules/date-fns/fp/formatDistanceWithOptions/index.d.ts new file mode 100644 index 00000000..62f08496 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDistanceWithOptions } from 'date-fns/fp' +export default formatDistanceWithOptions diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions/index.js b/node_modules/date-fns/fp/formatDistanceWithOptions/index.js new file mode 100644 index 00000000..8e5cf0f0 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions/index.js.flow b/node_modules/date-fns/fp/formatDistanceWithOptions/index.js.flow new file mode 100644 index 00000000..59043117 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: Locale, + addSuffix?: boolean, + includeSeconds?: boolean, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatDistanceWithOptions/package.json b/node_modules/date-fns/fp/formatDistanceWithOptions/package.json new file mode 100644 index 00000000..9fd20c75 --- /dev/null +++ b/node_modules/date-fns/fp/formatDistanceWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDistanceWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDuration/index.d.ts b/node_modules/date-fns/fp/formatDuration/index.d.ts new file mode 100644 index 00000000..3b184ccf --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDuration } from 'date-fns/fp' +export default formatDuration diff --git a/node_modules/date-fns/fp/formatDuration/index.js b/node_modules/date-fns/fp/formatDuration/index.js new file mode 100644 index 00000000..8d5be6ef --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDuration/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDuration/index.js.flow b/node_modules/date-fns/fp/formatDuration/index.js.flow new file mode 100644 index 00000000..da715644 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatDuration/package.json b/node_modules/date-fns/fp/formatDuration/package.json new file mode 100644 index 00000000..d99ac7e3 --- /dev/null +++ b/node_modules/date-fns/fp/formatDuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDuration/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDurationWithOptions/index.d.ts b/node_modules/date-fns/fp/formatDurationWithOptions/index.d.ts new file mode 100644 index 00000000..63315177 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatDurationWithOptions } from 'date-fns/fp' +export default formatDurationWithOptions diff --git a/node_modules/date-fns/fp/formatDurationWithOptions/index.js b/node_modules/date-fns/fp/formatDurationWithOptions/index.js new file mode 100644 index 00000000..c74e7f4e --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatDuration/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatDurationWithOptions/index.js.flow b/node_modules/date-fns/fp/formatDurationWithOptions/index.js.flow new file mode 100644 index 00000000..72f29103 --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + locale?: Locale, + delimiter?: string, + zero?: boolean, + format?: string[], + }, + Duration, + string +> diff --git a/node_modules/date-fns/fp/formatDurationWithOptions/package.json b/node_modules/date-fns/fp/formatDurationWithOptions/package.json new file mode 100644 index 00000000..f45d7e7c --- /dev/null +++ b/node_modules/date-fns/fp/formatDurationWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatDurationWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO/index.d.ts b/node_modules/date-fns/fp/formatISO/index.d.ts new file mode 100644 index 00000000..6f3ba60e --- /dev/null +++ b/node_modules/date-fns/fp/formatISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO } from 'date-fns/fp' +export default formatISO diff --git a/node_modules/date-fns/fp/formatISO/index.js b/node_modules/date-fns/fp/formatISO/index.js new file mode 100644 index 00000000..d374d08b --- /dev/null +++ b/node_modules/date-fns/fp/formatISO/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatISO/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO/index.js.flow b/node_modules/date-fns/fp/formatISO/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatISO/package.json b/node_modules/date-fns/fp/formatISO/package.json new file mode 100644 index 00000000..2a36cb3f --- /dev/null +++ b/node_modules/date-fns/fp/formatISO/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatISO/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO9075/index.d.ts b/node_modules/date-fns/fp/formatISO9075/index.d.ts new file mode 100644 index 00000000..171e2b74 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075 } from 'date-fns/fp' +export default formatISO9075 diff --git a/node_modules/date-fns/fp/formatISO9075/index.js b/node_modules/date-fns/fp/formatISO9075/index.js new file mode 100644 index 00000000..272604c7 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatISO9075/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO9075/index.js.flow b/node_modules/date-fns/fp/formatISO9075/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatISO9075/package.json b/node_modules/date-fns/fp/formatISO9075/package.json new file mode 100644 index 00000000..cbe5845b --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatISO9075/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions/index.d.ts b/node_modules/date-fns/fp/formatISO9075WithOptions/index.d.ts new file mode 100644 index 00000000..3000885a --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISO9075WithOptions } from 'date-fns/fp' +export default formatISO9075WithOptions diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions/index.js b/node_modules/date-fns/fp/formatISO9075WithOptions/index.js new file mode 100644 index 00000000..9a72df9d --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatISO9075/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions/index.js.flow b/node_modules/date-fns/fp/formatISO9075WithOptions/index.js.flow new file mode 100644 index 00000000..fd294f17 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatISO9075WithOptions/package.json b/node_modules/date-fns/fp/formatISO9075WithOptions/package.json new file mode 100644 index 00000000..bd0af2e5 --- /dev/null +++ b/node_modules/date-fns/fp/formatISO9075WithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatISO9075WithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISODuration/index.d.ts b/node_modules/date-fns/fp/formatISODuration/index.d.ts new file mode 100644 index 00000000..aedd0869 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISODuration } from 'date-fns/fp' +export default formatISODuration diff --git a/node_modules/date-fns/fp/formatISODuration/index.js b/node_modules/date-fns/fp/formatISODuration/index.js new file mode 100644 index 00000000..c77e8217 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatISODuration/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISODuration/index.js.flow b/node_modules/date-fns/fp/formatISODuration/index.js.flow new file mode 100644 index 00000000..da715644 --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatISODuration/package.json b/node_modules/date-fns/fp/formatISODuration/package.json new file mode 100644 index 00000000..e545fdbb --- /dev/null +++ b/node_modules/date-fns/fp/formatISODuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatISODuration/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISOWithOptions/index.d.ts b/node_modules/date-fns/fp/formatISOWithOptions/index.d.ts new file mode 100644 index 00000000..286813e2 --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatISOWithOptions } from 'date-fns/fp' +export default formatISOWithOptions diff --git a/node_modules/date-fns/fp/formatISOWithOptions/index.js b/node_modules/date-fns/fp/formatISOWithOptions/index.js new file mode 100644 index 00000000..f46b7227 --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatISO/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatISOWithOptions/index.js.flow b/node_modules/date-fns/fp/formatISOWithOptions/index.js.flow new file mode 100644 index 00000000..fd294f17 --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatISOWithOptions/package.json b/node_modules/date-fns/fp/formatISOWithOptions/package.json new file mode 100644 index 00000000..b9cb9cdb --- /dev/null +++ b/node_modules/date-fns/fp/formatISOWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatISOWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC3339/index.d.ts b/node_modules/date-fns/fp/formatRFC3339/index.d.ts new file mode 100644 index 00000000..c1ac8272 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339 } from 'date-fns/fp' +export default formatRFC3339 diff --git a/node_modules/date-fns/fp/formatRFC3339/index.js b/node_modules/date-fns/fp/formatRFC3339/index.js new file mode 100644 index 00000000..5f14c58f --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatRFC3339/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC3339/index.js.flow b/node_modules/date-fns/fp/formatRFC3339/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatRFC3339/package.json b/node_modules/date-fns/fp/formatRFC3339/package.json new file mode 100644 index 00000000..7dd565d5 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatRFC3339/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions/index.d.ts b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.d.ts new file mode 100644 index 00000000..b274531d --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC3339WithOptions } from 'date-fns/fp' +export default formatRFC3339WithOptions diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js new file mode 100644 index 00000000..66c6ab5c --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatRFC3339/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js.flow b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js.flow new file mode 100644 index 00000000..77fba595 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3, + }, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatRFC3339WithOptions/package.json b/node_modules/date-fns/fp/formatRFC3339WithOptions/package.json new file mode 100644 index 00000000..1dba5ee9 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC3339WithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatRFC3339WithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC7231/index.d.ts b/node_modules/date-fns/fp/formatRFC7231/index.d.ts new file mode 100644 index 00000000..ca45e433 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRFC7231 } from 'date-fns/fp' +export default formatRFC7231 diff --git a/node_modules/date-fns/fp/formatRFC7231/index.js b/node_modules/date-fns/fp/formatRFC7231/index.js new file mode 100644 index 00000000..bbd43c2a --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatRFC7231/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRFC7231/index.js.flow b/node_modules/date-fns/fp/formatRFC7231/index.js.flow new file mode 100644 index 00000000..a2b1a3a7 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/formatRFC7231/package.json b/node_modules/date-fns/fp/formatRFC7231/package.json new file mode 100644 index 00000000..f1517e62 --- /dev/null +++ b/node_modules/date-fns/fp/formatRFC7231/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatRFC7231/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRelative/index.d.ts b/node_modules/date-fns/fp/formatRelative/index.d.ts new file mode 100644 index 00000000..927a3001 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelative } from 'date-fns/fp' +export default formatRelative diff --git a/node_modules/date-fns/fp/formatRelative/index.js b/node_modules/date-fns/fp/formatRelative/index.js new file mode 100644 index 00000000..011b40ba --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatRelative/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRelative/index.js.flow b/node_modules/date-fns/fp/formatRelative/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/formatRelative/package.json b/node_modules/date-fns/fp/formatRelative/package.json new file mode 100644 index 00000000..a1a30f18 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelative/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatRelative/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions/index.d.ts b/node_modules/date-fns/fp/formatRelativeWithOptions/index.d.ts new file mode 100644 index 00000000..5bea41aa --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatRelativeWithOptions } from 'date-fns/fp' +export default formatRelativeWithOptions diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions/index.js b/node_modules/date-fns/fp/formatRelativeWithOptions/index.js new file mode 100644 index 00000000..5318713d --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../formatRelative/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions/index.js.flow b/node_modules/date-fns/fp/formatRelativeWithOptions/index.js.flow new file mode 100644 index 00000000..cb51d97a --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatRelativeWithOptions/package.json b/node_modules/date-fns/fp/formatRelativeWithOptions/package.json new file mode 100644 index 00000000..0befc290 --- /dev/null +++ b/node_modules/date-fns/fp/formatRelativeWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatRelativeWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatWithOptions/index.d.ts b/node_modules/date-fns/fp/formatWithOptions/index.d.ts new file mode 100644 index 00000000..cd59897d --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { formatWithOptions } from 'date-fns/fp' +export default formatWithOptions diff --git a/node_modules/date-fns/fp/formatWithOptions/index.js b/node_modules/date-fns/fp/formatWithOptions/index.js new file mode 100644 index 00000000..891213c5 --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../format/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/formatWithOptions/index.js.flow b/node_modules/date-fns/fp/formatWithOptions/index.js.flow new file mode 100644 index 00000000..757f95ad --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: number, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/formatWithOptions/package.json b/node_modules/date-fns/fp/formatWithOptions/package.json new file mode 100644 index 00000000..cad37547 --- /dev/null +++ b/node_modules/date-fns/fp/formatWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/formatWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/fromUnixTime/index.d.ts b/node_modules/date-fns/fp/fromUnixTime/index.d.ts new file mode 100644 index 00000000..e6cbce37 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fromUnixTime } from 'date-fns/fp' +export default fromUnixTime diff --git a/node_modules/date-fns/fp/fromUnixTime/index.js b/node_modules/date-fns/fp/fromUnixTime/index.js new file mode 100644 index 00000000..c49cbe5d --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../fromUnixTime/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/fromUnixTime/index.js.flow b/node_modules/date-fns/fp/fromUnixTime/index.js.flow new file mode 100644 index 00000000..27fa8867 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/fromUnixTime/package.json b/node_modules/date-fns/fp/fromUnixTime/package.json new file mode 100644 index 00000000..89c00783 --- /dev/null +++ b/node_modules/date-fns/fp/fromUnixTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/fromUnixTime/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDate/index.d.ts b/node_modules/date-fns/fp/getDate/index.d.ts new file mode 100644 index 00000000..879f12cf --- /dev/null +++ b/node_modules/date-fns/fp/getDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDate } from 'date-fns/fp' +export default getDate diff --git a/node_modules/date-fns/fp/getDate/index.js b/node_modules/date-fns/fp/getDate/index.js new file mode 100644 index 00000000..21c4f40b --- /dev/null +++ b/node_modules/date-fns/fp/getDate/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDate/index.js.flow b/node_modules/date-fns/fp/getDate/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDate/package.json b/node_modules/date-fns/fp/getDate/package.json new file mode 100644 index 00000000..91e0e119 --- /dev/null +++ b/node_modules/date-fns/fp/getDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDate/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDay/index.d.ts b/node_modules/date-fns/fp/getDay/index.d.ts new file mode 100644 index 00000000..e1bccbbe --- /dev/null +++ b/node_modules/date-fns/fp/getDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDay } from 'date-fns/fp' +export default getDay diff --git a/node_modules/date-fns/fp/getDay/index.js b/node_modules/date-fns/fp/getDay/index.js new file mode 100644 index 00000000..2c8d219c --- /dev/null +++ b/node_modules/date-fns/fp/getDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDay/index.js.flow b/node_modules/date-fns/fp/getDay/index.js.flow new file mode 100644 index 00000000..8971f41f --- /dev/null +++ b/node_modules/date-fns/fp/getDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDay/package.json b/node_modules/date-fns/fp/getDay/package.json new file mode 100644 index 00000000..995404c2 --- /dev/null +++ b/node_modules/date-fns/fp/getDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDayOfYear/index.d.ts b/node_modules/date-fns/fp/getDayOfYear/index.d.ts new file mode 100644 index 00000000..ccc88e16 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDayOfYear } from 'date-fns/fp' +export default getDayOfYear diff --git a/node_modules/date-fns/fp/getDayOfYear/index.js b/node_modules/date-fns/fp/getDayOfYear/index.js new file mode 100644 index 00000000..ca0fdbe6 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDayOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDayOfYear/index.js.flow b/node_modules/date-fns/fp/getDayOfYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDayOfYear/package.json b/node_modules/date-fns/fp/getDayOfYear/package.json new file mode 100644 index 00000000..1f6d6696 --- /dev/null +++ b/node_modules/date-fns/fp/getDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDayOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDaysInMonth/index.d.ts b/node_modules/date-fns/fp/getDaysInMonth/index.d.ts new file mode 100644 index 00000000..2ca84459 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInMonth } from 'date-fns/fp' +export default getDaysInMonth diff --git a/node_modules/date-fns/fp/getDaysInMonth/index.js b/node_modules/date-fns/fp/getDaysInMonth/index.js new file mode 100644 index 00000000..805cc974 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDaysInMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDaysInMonth/index.js.flow b/node_modules/date-fns/fp/getDaysInMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDaysInMonth/package.json b/node_modules/date-fns/fp/getDaysInMonth/package.json new file mode 100644 index 00000000..954ecce3 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDaysInMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDaysInYear/index.d.ts b/node_modules/date-fns/fp/getDaysInYear/index.d.ts new file mode 100644 index 00000000..599213fa --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInYear } from 'date-fns/fp' +export default getDaysInYear diff --git a/node_modules/date-fns/fp/getDaysInYear/index.js b/node_modules/date-fns/fp/getDaysInYear/index.js new file mode 100644 index 00000000..1d8ce37b --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDaysInYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDaysInYear/index.js.flow b/node_modules/date-fns/fp/getDaysInYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDaysInYear/package.json b/node_modules/date-fns/fp/getDaysInYear/package.json new file mode 100644 index 00000000..cbde1b99 --- /dev/null +++ b/node_modules/date-fns/fp/getDaysInYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDaysInYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDecade/index.d.ts b/node_modules/date-fns/fp/getDecade/index.d.ts new file mode 100644 index 00000000..ca1c9c5c --- /dev/null +++ b/node_modules/date-fns/fp/getDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDecade } from 'date-fns/fp' +export default getDecade diff --git a/node_modules/date-fns/fp/getDecade/index.js b/node_modules/date-fns/fp/getDecade/index.js new file mode 100644 index 00000000..e9b72c42 --- /dev/null +++ b/node_modules/date-fns/fp/getDecade/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getDecade/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getDecade/index.js.flow b/node_modules/date-fns/fp/getDecade/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getDecade/package.json b/node_modules/date-fns/fp/getDecade/package.json new file mode 100644 index 00000000..0c7ffa78 --- /dev/null +++ b/node_modules/date-fns/fp/getDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getDecade/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getHours/index.d.ts b/node_modules/date-fns/fp/getHours/index.d.ts new file mode 100644 index 00000000..9daea8a7 --- /dev/null +++ b/node_modules/date-fns/fp/getHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getHours } from 'date-fns/fp' +export default getHours diff --git a/node_modules/date-fns/fp/getHours/index.js b/node_modules/date-fns/fp/getHours/index.js new file mode 100644 index 00000000..f8d3069e --- /dev/null +++ b/node_modules/date-fns/fp/getHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getHours/index.js.flow b/node_modules/date-fns/fp/getHours/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getHours/package.json b/node_modules/date-fns/fp/getHours/package.json new file mode 100644 index 00000000..6d3fdc9a --- /dev/null +++ b/node_modules/date-fns/fp/getHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISODay/index.d.ts b/node_modules/date-fns/fp/getISODay/index.d.ts new file mode 100644 index 00000000..c85663ee --- /dev/null +++ b/node_modules/date-fns/fp/getISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISODay } from 'date-fns/fp' +export default getISODay diff --git a/node_modules/date-fns/fp/getISODay/index.js b/node_modules/date-fns/fp/getISODay/index.js new file mode 100644 index 00000000..dea47a2c --- /dev/null +++ b/node_modules/date-fns/fp/getISODay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getISODay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISODay/index.js.flow b/node_modules/date-fns/fp/getISODay/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getISODay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getISODay/package.json b/node_modules/date-fns/fp/getISODay/package.json new file mode 100644 index 00000000..225f594a --- /dev/null +++ b/node_modules/date-fns/fp/getISODay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getISODay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeek/index.d.ts b/node_modules/date-fns/fp/getISOWeek/index.d.ts new file mode 100644 index 00000000..2574d715 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeek } from 'date-fns/fp' +export default getISOWeek diff --git a/node_modules/date-fns/fp/getISOWeek/index.js b/node_modules/date-fns/fp/getISOWeek/index.js new file mode 100644 index 00000000..76fd56ac --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeek/index.js.flow b/node_modules/date-fns/fp/getISOWeek/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getISOWeek/package.json b/node_modules/date-fns/fp/getISOWeek/package.json new file mode 100644 index 00000000..395b160f --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeekYear/index.d.ts b/node_modules/date-fns/fp/getISOWeekYear/index.d.ts new file mode 100644 index 00000000..b0cfad87 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeekYear } from 'date-fns/fp' +export default getISOWeekYear diff --git a/node_modules/date-fns/fp/getISOWeekYear/index.js b/node_modules/date-fns/fp/getISOWeekYear/index.js new file mode 100644 index 00000000..03999b29 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeekYear/index.js.flow b/node_modules/date-fns/fp/getISOWeekYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getISOWeekYear/package.json b/node_modules/date-fns/fp/getISOWeekYear/package.json new file mode 100644 index 00000000..ce9c1b2c --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeeksInYear/index.d.ts b/node_modules/date-fns/fp/getISOWeeksInYear/index.d.ts new file mode 100644 index 00000000..3a1d6af6 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeeksInYear } from 'date-fns/fp' +export default getISOWeeksInYear diff --git a/node_modules/date-fns/fp/getISOWeeksInYear/index.js b/node_modules/date-fns/fp/getISOWeeksInYear/index.js new file mode 100644 index 00000000..05798708 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getISOWeeksInYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getISOWeeksInYear/index.js.flow b/node_modules/date-fns/fp/getISOWeeksInYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getISOWeeksInYear/package.json b/node_modules/date-fns/fp/getISOWeeksInYear/package.json new file mode 100644 index 00000000..ba448524 --- /dev/null +++ b/node_modules/date-fns/fp/getISOWeeksInYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getISOWeeksInYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMilliseconds/index.d.ts b/node_modules/date-fns/fp/getMilliseconds/index.d.ts new file mode 100644 index 00000000..c1259627 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMilliseconds } from 'date-fns/fp' +export default getMilliseconds diff --git a/node_modules/date-fns/fp/getMilliseconds/index.js b/node_modules/date-fns/fp/getMilliseconds/index.js new file mode 100644 index 00000000..63ba7335 --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMilliseconds/index.js.flow b/node_modules/date-fns/fp/getMilliseconds/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getMilliseconds/package.json b/node_modules/date-fns/fp/getMilliseconds/package.json new file mode 100644 index 00000000..d4b0900f --- /dev/null +++ b/node_modules/date-fns/fp/getMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMinutes/index.d.ts b/node_modules/date-fns/fp/getMinutes/index.d.ts new file mode 100644 index 00000000..14b6b049 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMinutes } from 'date-fns/fp' +export default getMinutes diff --git a/node_modules/date-fns/fp/getMinutes/index.js b/node_modules/date-fns/fp/getMinutes/index.js new file mode 100644 index 00000000..2ee8a712 --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMinutes/index.js.flow b/node_modules/date-fns/fp/getMinutes/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getMinutes/package.json b/node_modules/date-fns/fp/getMinutes/package.json new file mode 100644 index 00000000..aa69ddba --- /dev/null +++ b/node_modules/date-fns/fp/getMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMonth/index.d.ts b/node_modules/date-fns/fp/getMonth/index.d.ts new file mode 100644 index 00000000..a7c696a0 --- /dev/null +++ b/node_modules/date-fns/fp/getMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMonth } from 'date-fns/fp' +export default getMonth diff --git a/node_modules/date-fns/fp/getMonth/index.js b/node_modules/date-fns/fp/getMonth/index.js new file mode 100644 index 00000000..bd4f8759 --- /dev/null +++ b/node_modules/date-fns/fp/getMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getMonth/index.js.flow b/node_modules/date-fns/fp/getMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getMonth/package.json b/node_modules/date-fns/fp/getMonth/package.json new file mode 100644 index 00000000..90774e79 --- /dev/null +++ b/node_modules/date-fns/fp/getMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.d.ts b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.d.ts new file mode 100644 index 00000000..de0b970a --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getOverlappingDaysInIntervals } from 'date-fns/fp' +export default getOverlappingDaysInIntervals diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js new file mode 100644 index 00000000..4b33f299 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getOverlappingDaysInIntervals/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js.flow b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js.flow new file mode 100644 index 00000000..f640837e --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/getOverlappingDaysInIntervals/package.json b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/package.json new file mode 100644 index 00000000..ca05c669 --- /dev/null +++ b/node_modules/date-fns/fp/getOverlappingDaysInIntervals/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getOverlappingDaysInIntervals/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getQuarter/index.d.ts b/node_modules/date-fns/fp/getQuarter/index.d.ts new file mode 100644 index 00000000..50f13f60 --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getQuarter } from 'date-fns/fp' +export default getQuarter diff --git a/node_modules/date-fns/fp/getQuarter/index.js b/node_modules/date-fns/fp/getQuarter/index.js new file mode 100644 index 00000000..6f0504cd --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getQuarter/index.js.flow b/node_modules/date-fns/fp/getQuarter/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getQuarter/package.json b/node_modules/date-fns/fp/getQuarter/package.json new file mode 100644 index 00000000..1d7193ca --- /dev/null +++ b/node_modules/date-fns/fp/getQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getSeconds/index.d.ts b/node_modules/date-fns/fp/getSeconds/index.d.ts new file mode 100644 index 00000000..1f6c2337 --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getSeconds } from 'date-fns/fp' +export default getSeconds diff --git a/node_modules/date-fns/fp/getSeconds/index.js b/node_modules/date-fns/fp/getSeconds/index.js new file mode 100644 index 00000000..c31e2fd8 --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getSeconds/index.js.flow b/node_modules/date-fns/fp/getSeconds/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getSeconds/package.json b/node_modules/date-fns/fp/getSeconds/package.json new file mode 100644 index 00000000..b8a98bbf --- /dev/null +++ b/node_modules/date-fns/fp/getSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getTime/index.d.ts b/node_modules/date-fns/fp/getTime/index.d.ts new file mode 100644 index 00000000..7bfc8cec --- /dev/null +++ b/node_modules/date-fns/fp/getTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getTime } from 'date-fns/fp' +export default getTime diff --git a/node_modules/date-fns/fp/getTime/index.js b/node_modules/date-fns/fp/getTime/index.js new file mode 100644 index 00000000..eaf7d63f --- /dev/null +++ b/node_modules/date-fns/fp/getTime/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getTime/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getTime/index.js.flow b/node_modules/date-fns/fp/getTime/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getTime/package.json b/node_modules/date-fns/fp/getTime/package.json new file mode 100644 index 00000000..aea6206b --- /dev/null +++ b/node_modules/date-fns/fp/getTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getTime/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getUnixTime/index.d.ts b/node_modules/date-fns/fp/getUnixTime/index.d.ts new file mode 100644 index 00000000..7fb0dac3 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getUnixTime } from 'date-fns/fp' +export default getUnixTime diff --git a/node_modules/date-fns/fp/getUnixTime/index.js b/node_modules/date-fns/fp/getUnixTime/index.js new file mode 100644 index 00000000..3c680b87 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getUnixTime/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getUnixTime/index.js.flow b/node_modules/date-fns/fp/getUnixTime/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getUnixTime/package.json b/node_modules/date-fns/fp/getUnixTime/package.json new file mode 100644 index 00000000..be669747 --- /dev/null +++ b/node_modules/date-fns/fp/getUnixTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getUnixTime/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeek/index.d.ts b/node_modules/date-fns/fp/getWeek/index.d.ts new file mode 100644 index 00000000..2b3b4eea --- /dev/null +++ b/node_modules/date-fns/fp/getWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeek } from 'date-fns/fp' +export default getWeek diff --git a/node_modules/date-fns/fp/getWeek/index.js b/node_modules/date-fns/fp/getWeek/index.js new file mode 100644 index 00000000..15f47212 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeek/index.js.flow b/node_modules/date-fns/fp/getWeek/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getWeek/package.json b/node_modules/date-fns/fp/getWeek/package.json new file mode 100644 index 00000000..7e7f27d6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekOfMonth/index.d.ts b/node_modules/date-fns/fp/getWeekOfMonth/index.d.ts new file mode 100644 index 00000000..1fd925fe --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonth } from 'date-fns/fp' +export default getWeekOfMonth diff --git a/node_modules/date-fns/fp/getWeekOfMonth/index.js b/node_modules/date-fns/fp/getWeekOfMonth/index.js new file mode 100644 index 00000000..4183aa42 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeekOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekOfMonth/index.js.flow b/node_modules/date-fns/fp/getWeekOfMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getWeekOfMonth/package.json b/node_modules/date-fns/fp/getWeekOfMonth/package.json new file mode 100644 index 00000000..14c19c57 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeekOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.d.ts b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.d.ts new file mode 100644 index 00000000..0bcf9e4c --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonthWithOptions } from 'date-fns/fp' +export default getWeekOfMonthWithOptions diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js new file mode 100644 index 00000000..b74d5f47 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeekOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js.flow b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js.flow new file mode 100644 index 00000000..d1b5c201 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/getWeekOfMonthWithOptions/package.json b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/package.json new file mode 100644 index 00000000..82a8f67d --- /dev/null +++ b/node_modules/date-fns/fp/getWeekOfMonthWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeekOfMonthWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/getWeekWithOptions/index.d.ts new file mode 100644 index 00000000..6f2de404 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekWithOptions } from 'date-fns/fp' +export default getWeekWithOptions diff --git a/node_modules/date-fns/fp/getWeekWithOptions/index.js b/node_modules/date-fns/fp/getWeekWithOptions/index.js new file mode 100644 index 00000000..e62f327f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/getWeekWithOptions/index.js.flow new file mode 100644 index 00000000..970a659f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/getWeekWithOptions/package.json b/node_modules/date-fns/fp/getWeekWithOptions/package.json new file mode 100644 index 00000000..da71947d --- /dev/null +++ b/node_modules/date-fns/fp/getWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekYear/index.d.ts b/node_modules/date-fns/fp/getWeekYear/index.d.ts new file mode 100644 index 00000000..7cf37e0f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYear } from 'date-fns/fp' +export default getWeekYear diff --git a/node_modules/date-fns/fp/getWeekYear/index.js b/node_modules/date-fns/fp/getWeekYear/index.js new file mode 100644 index 00000000..de6d1e5e --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekYear/index.js.flow b/node_modules/date-fns/fp/getWeekYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getWeekYear/package.json b/node_modules/date-fns/fp/getWeekYear/package.json new file mode 100644 index 00000000..ae1420f9 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions/index.d.ts b/node_modules/date-fns/fp/getWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..d33a37a0 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYearWithOptions } from 'date-fns/fp' +export default getWeekYearWithOptions diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions/index.js b/node_modules/date-fns/fp/getWeekYearWithOptions/index.js new file mode 100644 index 00000000..0cbc64d5 --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions/index.js.flow b/node_modules/date-fns/fp/getWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..970a659f --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/getWeekYearWithOptions/package.json b/node_modules/date-fns/fp/getWeekYearWithOptions/package.json new file mode 100644 index 00000000..a75b597d --- /dev/null +++ b/node_modules/date-fns/fp/getWeekYearWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeekYearWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeeksInMonth/index.d.ts b/node_modules/date-fns/fp/getWeeksInMonth/index.d.ts new file mode 100644 index 00000000..2de5a9ce --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonth } from 'date-fns/fp' +export default getWeeksInMonth diff --git a/node_modules/date-fns/fp/getWeeksInMonth/index.js b/node_modules/date-fns/fp/getWeeksInMonth/index.js new file mode 100644 index 00000000..26cf33e6 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeeksInMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeeksInMonth/index.js.flow b/node_modules/date-fns/fp/getWeeksInMonth/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getWeeksInMonth/package.json b/node_modules/date-fns/fp/getWeeksInMonth/package.json new file mode 100644 index 00000000..5fdf5f2c --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeeksInMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.d.ts b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.d.ts new file mode 100644 index 00000000..9016970f --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonthWithOptions } from 'date-fns/fp' +export default getWeeksInMonthWithOptions diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js new file mode 100644 index 00000000..20186b06 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getWeeksInMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js.flow b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js.flow new file mode 100644 index 00000000..d1b5c201 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number +> diff --git a/node_modules/date-fns/fp/getWeeksInMonthWithOptions/package.json b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/package.json new file mode 100644 index 00000000..48e7dda8 --- /dev/null +++ b/node_modules/date-fns/fp/getWeeksInMonthWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getWeeksInMonthWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/getYear/index.d.ts b/node_modules/date-fns/fp/getYear/index.d.ts new file mode 100644 index 00000000..603dc711 --- /dev/null +++ b/node_modules/date-fns/fp/getYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getYear } from 'date-fns/fp' +export default getYear diff --git a/node_modules/date-fns/fp/getYear/index.js b/node_modules/date-fns/fp/getYear/index.js new file mode 100644 index 00000000..c6dc1cb5 --- /dev/null +++ b/node_modules/date-fns/fp/getYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../getYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/getYear/index.js.flow b/node_modules/date-fns/fp/getYear/index.js.flow new file mode 100644 index 00000000..7a34c65b --- /dev/null +++ b/node_modules/date-fns/fp/getYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/getYear/package.json b/node_modules/date-fns/fp/getYear/package.json new file mode 100644 index 00000000..98ebac3f --- /dev/null +++ b/node_modules/date-fns/fp/getYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/getYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToMilliseconds/index.d.ts b/node_modules/date-fns/fp/hoursToMilliseconds/index.d.ts new file mode 100644 index 00000000..14caeace --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMilliseconds } from 'date-fns/fp' +export default hoursToMilliseconds diff --git a/node_modules/date-fns/fp/hoursToMilliseconds/index.js b/node_modules/date-fns/fp/hoursToMilliseconds/index.js new file mode 100644 index 00000000..18f45eff --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../hoursToMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToMilliseconds/index.js.flow b/node_modules/date-fns/fp/hoursToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/hoursToMilliseconds/package.json b/node_modules/date-fns/fp/hoursToMilliseconds/package.json new file mode 100644 index 00000000..7a639e59 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/hoursToMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToMinutes/index.d.ts b/node_modules/date-fns/fp/hoursToMinutes/index.d.ts new file mode 100644 index 00000000..e834de44 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMinutes } from 'date-fns/fp' +export default hoursToMinutes diff --git a/node_modules/date-fns/fp/hoursToMinutes/index.js b/node_modules/date-fns/fp/hoursToMinutes/index.js new file mode 100644 index 00000000..7ecab553 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../hoursToMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToMinutes/index.js.flow b/node_modules/date-fns/fp/hoursToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/hoursToMinutes/package.json b/node_modules/date-fns/fp/hoursToMinutes/package.json new file mode 100644 index 00000000..5db202c2 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/hoursToMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToSeconds/index.d.ts b/node_modules/date-fns/fp/hoursToSeconds/index.d.ts new file mode 100644 index 00000000..35a5bfdd --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToSeconds } from 'date-fns/fp' +export default hoursToSeconds diff --git a/node_modules/date-fns/fp/hoursToSeconds/index.js b/node_modules/date-fns/fp/hoursToSeconds/index.js new file mode 100644 index 00000000..537e4c16 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../hoursToSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/hoursToSeconds/index.js.flow b/node_modules/date-fns/fp/hoursToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/hoursToSeconds/package.json b/node_modules/date-fns/fp/hoursToSeconds/package.json new file mode 100644 index 00000000..17af908f --- /dev/null +++ b/node_modules/date-fns/fp/hoursToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/hoursToSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/index.js b/node_modules/date-fns/fp/index.js new file mode 100644 index 00000000..d104227b --- /dev/null +++ b/node_modules/date-fns/fp/index.js @@ -0,0 +1,2309 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _exportNames = { + add: true, + addBusinessDays: true, + addDays: true, + addHours: true, + addISOWeekYears: true, + addMilliseconds: true, + addMinutes: true, + addMonths: true, + addQuarters: true, + addSeconds: true, + addWeeks: true, + addYears: true, + areIntervalsOverlapping: true, + areIntervalsOverlappingWithOptions: true, + clamp: true, + closestIndexTo: true, + closestTo: true, + compareAsc: true, + compareDesc: true, + daysToWeeks: true, + differenceInBusinessDays: true, + differenceInCalendarDays: true, + differenceInCalendarISOWeekYears: true, + differenceInCalendarISOWeeks: true, + differenceInCalendarMonths: true, + differenceInCalendarQuarters: true, + differenceInCalendarWeeks: true, + differenceInCalendarWeeksWithOptions: true, + differenceInCalendarYears: true, + differenceInDays: true, + differenceInHours: true, + differenceInHoursWithOptions: true, + differenceInISOWeekYears: true, + differenceInMilliseconds: true, + differenceInMinutes: true, + differenceInMinutesWithOptions: true, + differenceInMonths: true, + differenceInQuarters: true, + differenceInQuartersWithOptions: true, + differenceInSeconds: true, + differenceInSecondsWithOptions: true, + differenceInWeeks: true, + differenceInWeeksWithOptions: true, + differenceInYears: true, + eachDayOfInterval: true, + eachDayOfIntervalWithOptions: true, + eachHourOfInterval: true, + eachHourOfIntervalWithOptions: true, + eachMinuteOfInterval: true, + eachMinuteOfIntervalWithOptions: true, + eachMonthOfInterval: true, + eachQuarterOfInterval: true, + eachWeekOfInterval: true, + eachWeekOfIntervalWithOptions: true, + eachWeekendOfInterval: true, + eachWeekendOfMonth: true, + eachWeekendOfYear: true, + eachYearOfInterval: true, + endOfDay: true, + endOfDecade: true, + endOfDecadeWithOptions: true, + endOfHour: true, + endOfISOWeek: true, + endOfISOWeekYear: true, + endOfMinute: true, + endOfMonth: true, + endOfQuarter: true, + endOfSecond: true, + endOfWeek: true, + endOfWeekWithOptions: true, + endOfYear: true, + format: true, + formatDistance: true, + formatDistanceStrict: true, + formatDistanceStrictWithOptions: true, + formatDistanceWithOptions: true, + formatDuration: true, + formatDurationWithOptions: true, + formatISO: true, + formatISO9075: true, + formatISO9075WithOptions: true, + formatISODuration: true, + formatISOWithOptions: true, + formatRFC3339: true, + formatRFC3339WithOptions: true, + formatRFC7231: true, + formatRelative: true, + formatRelativeWithOptions: true, + formatWithOptions: true, + fromUnixTime: true, + getDate: true, + getDay: true, + getDayOfYear: true, + getDaysInMonth: true, + getDaysInYear: true, + getDecade: true, + getHours: true, + getISODay: true, + getISOWeek: true, + getISOWeekYear: true, + getISOWeeksInYear: true, + getMilliseconds: true, + getMinutes: true, + getMonth: true, + getOverlappingDaysInIntervals: true, + getQuarter: true, + getSeconds: true, + getTime: true, + getUnixTime: true, + getWeek: true, + getWeekOfMonth: true, + getWeekOfMonthWithOptions: true, + getWeekWithOptions: true, + getWeekYear: true, + getWeekYearWithOptions: true, + getWeeksInMonth: true, + getWeeksInMonthWithOptions: true, + getYear: true, + hoursToMilliseconds: true, + hoursToMinutes: true, + hoursToSeconds: true, + intervalToDuration: true, + intlFormat: true, + intlFormatDistance: true, + intlFormatDistanceWithOptions: true, + isAfter: true, + isBefore: true, + isDate: true, + isEqual: true, + isExists: true, + isFirstDayOfMonth: true, + isFriday: true, + isLastDayOfMonth: true, + isLeapYear: true, + isMatch: true, + isMatchWithOptions: true, + isMonday: true, + isSameDay: true, + isSameHour: true, + isSameISOWeek: true, + isSameISOWeekYear: true, + isSameMinute: true, + isSameMonth: true, + isSameQuarter: true, + isSameSecond: true, + isSameWeek: true, + isSameWeekWithOptions: true, + isSameYear: true, + isSaturday: true, + isSunday: true, + isThursday: true, + isTuesday: true, + isValid: true, + isWednesday: true, + isWeekend: true, + isWithinInterval: true, + lastDayOfDecade: true, + lastDayOfISOWeek: true, + lastDayOfISOWeekYear: true, + lastDayOfMonth: true, + lastDayOfQuarter: true, + lastDayOfQuarterWithOptions: true, + lastDayOfWeek: true, + lastDayOfWeekWithOptions: true, + lastDayOfYear: true, + lightFormat: true, + max: true, + milliseconds: true, + millisecondsToHours: true, + millisecondsToMinutes: true, + millisecondsToSeconds: true, + min: true, + minutesToHours: true, + minutesToMilliseconds: true, + minutesToSeconds: true, + monthsToQuarters: true, + monthsToYears: true, + nextDay: true, + nextFriday: true, + nextMonday: true, + nextSaturday: true, + nextSunday: true, + nextThursday: true, + nextTuesday: true, + nextWednesday: true, + parse: true, + parseISO: true, + parseISOWithOptions: true, + parseJSON: true, + parseWithOptions: true, + previousDay: true, + previousFriday: true, + previousMonday: true, + previousSaturday: true, + previousSunday: true, + previousThursday: true, + previousTuesday: true, + previousWednesday: true, + quartersToMonths: true, + quartersToYears: true, + roundToNearestMinutes: true, + roundToNearestMinutesWithOptions: true, + secondsToHours: true, + secondsToMilliseconds: true, + secondsToMinutes: true, + set: true, + setDate: true, + setDay: true, + setDayOfYear: true, + setDayWithOptions: true, + setHours: true, + setISODay: true, + setISOWeek: true, + setISOWeekYear: true, + setMilliseconds: true, + setMinutes: true, + setMonth: true, + setQuarter: true, + setSeconds: true, + setWeek: true, + setWeekWithOptions: true, + setWeekYear: true, + setWeekYearWithOptions: true, + setYear: true, + startOfDay: true, + startOfDecade: true, + startOfHour: true, + startOfISOWeek: true, + startOfISOWeekYear: true, + startOfMinute: true, + startOfMonth: true, + startOfQuarter: true, + startOfSecond: true, + startOfWeek: true, + startOfWeekWithOptions: true, + startOfWeekYear: true, + startOfWeekYearWithOptions: true, + startOfYear: true, + sub: true, + subBusinessDays: true, + subDays: true, + subHours: true, + subISOWeekYears: true, + subMilliseconds: true, + subMinutes: true, + subMonths: true, + subQuarters: true, + subSeconds: true, + subWeeks: true, + subYears: true, + toDate: true, + weeksToDays: true, + yearsToMonths: true, + yearsToQuarters: true +}; +Object.defineProperty(exports, "add", { + enumerable: true, + get: function get() { + return _index.default; + } +}); +Object.defineProperty(exports, "addBusinessDays", { + enumerable: true, + get: function get() { + return _index2.default; + } +}); +Object.defineProperty(exports, "addDays", { + enumerable: true, + get: function get() { + return _index3.default; + } +}); +Object.defineProperty(exports, "addHours", { + enumerable: true, + get: function get() { + return _index4.default; + } +}); +Object.defineProperty(exports, "addISOWeekYears", { + enumerable: true, + get: function get() { + return _index5.default; + } +}); +Object.defineProperty(exports, "addMilliseconds", { + enumerable: true, + get: function get() { + return _index6.default; + } +}); +Object.defineProperty(exports, "addMinutes", { + enumerable: true, + get: function get() { + return _index7.default; + } +}); +Object.defineProperty(exports, "addMonths", { + enumerable: true, + get: function get() { + return _index8.default; + } +}); +Object.defineProperty(exports, "addQuarters", { + enumerable: true, + get: function get() { + return _index9.default; + } +}); +Object.defineProperty(exports, "addSeconds", { + enumerable: true, + get: function get() { + return _index10.default; + } +}); +Object.defineProperty(exports, "addWeeks", { + enumerable: true, + get: function get() { + return _index11.default; + } +}); +Object.defineProperty(exports, "addYears", { + enumerable: true, + get: function get() { + return _index12.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlapping", { + enumerable: true, + get: function get() { + return _index13.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlappingWithOptions", { + enumerable: true, + get: function get() { + return _index14.default; + } +}); +Object.defineProperty(exports, "clamp", { + enumerable: true, + get: function get() { + return _index15.default; + } +}); +Object.defineProperty(exports, "closestIndexTo", { + enumerable: true, + get: function get() { + return _index16.default; + } +}); +Object.defineProperty(exports, "closestTo", { + enumerable: true, + get: function get() { + return _index17.default; + } +}); +Object.defineProperty(exports, "compareAsc", { + enumerable: true, + get: function get() { + return _index18.default; + } +}); +Object.defineProperty(exports, "compareDesc", { + enumerable: true, + get: function get() { + return _index19.default; + } +}); +Object.defineProperty(exports, "daysToWeeks", { + enumerable: true, + get: function get() { + return _index20.default; + } +}); +Object.defineProperty(exports, "differenceInBusinessDays", { + enumerable: true, + get: function get() { + return _index21.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarDays", { + enumerable: true, + get: function get() { + return _index22.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeekYears", { + enumerable: true, + get: function get() { + return _index23.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeeks", { + enumerable: true, + get: function get() { + return _index24.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarMonths", { + enumerable: true, + get: function get() { + return _index25.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarQuarters", { + enumerable: true, + get: function get() { + return _index26.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeks", { + enumerable: true, + get: function get() { + return _index27.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeksWithOptions", { + enumerable: true, + get: function get() { + return _index28.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarYears", { + enumerable: true, + get: function get() { + return _index29.default; + } +}); +Object.defineProperty(exports, "differenceInDays", { + enumerable: true, + get: function get() { + return _index30.default; + } +}); +Object.defineProperty(exports, "differenceInHours", { + enumerable: true, + get: function get() { + return _index31.default; + } +}); +Object.defineProperty(exports, "differenceInHoursWithOptions", { + enumerable: true, + get: function get() { + return _index32.default; + } +}); +Object.defineProperty(exports, "differenceInISOWeekYears", { + enumerable: true, + get: function get() { + return _index33.default; + } +}); +Object.defineProperty(exports, "differenceInMilliseconds", { + enumerable: true, + get: function get() { + return _index34.default; + } +}); +Object.defineProperty(exports, "differenceInMinutes", { + enumerable: true, + get: function get() { + return _index35.default; + } +}); +Object.defineProperty(exports, "differenceInMinutesWithOptions", { + enumerable: true, + get: function get() { + return _index36.default; + } +}); +Object.defineProperty(exports, "differenceInMonths", { + enumerable: true, + get: function get() { + return _index37.default; + } +}); +Object.defineProperty(exports, "differenceInQuarters", { + enumerable: true, + get: function get() { + return _index38.default; + } +}); +Object.defineProperty(exports, "differenceInQuartersWithOptions", { + enumerable: true, + get: function get() { + return _index39.default; + } +}); +Object.defineProperty(exports, "differenceInSeconds", { + enumerable: true, + get: function get() { + return _index40.default; + } +}); +Object.defineProperty(exports, "differenceInSecondsWithOptions", { + enumerable: true, + get: function get() { + return _index41.default; + } +}); +Object.defineProperty(exports, "differenceInWeeks", { + enumerable: true, + get: function get() { + return _index42.default; + } +}); +Object.defineProperty(exports, "differenceInWeeksWithOptions", { + enumerable: true, + get: function get() { + return _index43.default; + } +}); +Object.defineProperty(exports, "differenceInYears", { + enumerable: true, + get: function get() { + return _index44.default; + } +}); +Object.defineProperty(exports, "eachDayOfInterval", { + enumerable: true, + get: function get() { + return _index45.default; + } +}); +Object.defineProperty(exports, "eachDayOfIntervalWithOptions", { + enumerable: true, + get: function get() { + return _index46.default; + } +}); +Object.defineProperty(exports, "eachHourOfInterval", { + enumerable: true, + get: function get() { + return _index47.default; + } +}); +Object.defineProperty(exports, "eachHourOfIntervalWithOptions", { + enumerable: true, + get: function get() { + return _index48.default; + } +}); +Object.defineProperty(exports, "eachMinuteOfInterval", { + enumerable: true, + get: function get() { + return _index49.default; + } +}); +Object.defineProperty(exports, "eachMinuteOfIntervalWithOptions", { + enumerable: true, + get: function get() { + return _index50.default; + } +}); +Object.defineProperty(exports, "eachMonthOfInterval", { + enumerable: true, + get: function get() { + return _index51.default; + } +}); +Object.defineProperty(exports, "eachQuarterOfInterval", { + enumerable: true, + get: function get() { + return _index52.default; + } +}); +Object.defineProperty(exports, "eachWeekOfInterval", { + enumerable: true, + get: function get() { + return _index53.default; + } +}); +Object.defineProperty(exports, "eachWeekOfIntervalWithOptions", { + enumerable: true, + get: function get() { + return _index54.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfInterval", { + enumerable: true, + get: function get() { + return _index55.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfMonth", { + enumerable: true, + get: function get() { + return _index56.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfYear", { + enumerable: true, + get: function get() { + return _index57.default; + } +}); +Object.defineProperty(exports, "eachYearOfInterval", { + enumerable: true, + get: function get() { + return _index58.default; + } +}); +Object.defineProperty(exports, "endOfDay", { + enumerable: true, + get: function get() { + return _index59.default; + } +}); +Object.defineProperty(exports, "endOfDecade", { + enumerable: true, + get: function get() { + return _index60.default; + } +}); +Object.defineProperty(exports, "endOfDecadeWithOptions", { + enumerable: true, + get: function get() { + return _index61.default; + } +}); +Object.defineProperty(exports, "endOfHour", { + enumerable: true, + get: function get() { + return _index62.default; + } +}); +Object.defineProperty(exports, "endOfISOWeek", { + enumerable: true, + get: function get() { + return _index63.default; + } +}); +Object.defineProperty(exports, "endOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index64.default; + } +}); +Object.defineProperty(exports, "endOfMinute", { + enumerable: true, + get: function get() { + return _index65.default; + } +}); +Object.defineProperty(exports, "endOfMonth", { + enumerable: true, + get: function get() { + return _index66.default; + } +}); +Object.defineProperty(exports, "endOfQuarter", { + enumerable: true, + get: function get() { + return _index67.default; + } +}); +Object.defineProperty(exports, "endOfSecond", { + enumerable: true, + get: function get() { + return _index68.default; + } +}); +Object.defineProperty(exports, "endOfWeek", { + enumerable: true, + get: function get() { + return _index69.default; + } +}); +Object.defineProperty(exports, "endOfWeekWithOptions", { + enumerable: true, + get: function get() { + return _index70.default; + } +}); +Object.defineProperty(exports, "endOfYear", { + enumerable: true, + get: function get() { + return _index71.default; + } +}); +Object.defineProperty(exports, "format", { + enumerable: true, + get: function get() { + return _index72.default; + } +}); +Object.defineProperty(exports, "formatDistance", { + enumerable: true, + get: function get() { + return _index73.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrict", { + enumerable: true, + get: function get() { + return _index74.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrictWithOptions", { + enumerable: true, + get: function get() { + return _index75.default; + } +}); +Object.defineProperty(exports, "formatDistanceWithOptions", { + enumerable: true, + get: function get() { + return _index76.default; + } +}); +Object.defineProperty(exports, "formatDuration", { + enumerable: true, + get: function get() { + return _index77.default; + } +}); +Object.defineProperty(exports, "formatDurationWithOptions", { + enumerable: true, + get: function get() { + return _index78.default; + } +}); +Object.defineProperty(exports, "formatISO", { + enumerable: true, + get: function get() { + return _index79.default; + } +}); +Object.defineProperty(exports, "formatISO9075", { + enumerable: true, + get: function get() { + return _index80.default; + } +}); +Object.defineProperty(exports, "formatISO9075WithOptions", { + enumerable: true, + get: function get() { + return _index81.default; + } +}); +Object.defineProperty(exports, "formatISODuration", { + enumerable: true, + get: function get() { + return _index82.default; + } +}); +Object.defineProperty(exports, "formatISOWithOptions", { + enumerable: true, + get: function get() { + return _index83.default; + } +}); +Object.defineProperty(exports, "formatRFC3339", { + enumerable: true, + get: function get() { + return _index84.default; + } +}); +Object.defineProperty(exports, "formatRFC3339WithOptions", { + enumerable: true, + get: function get() { + return _index85.default; + } +}); +Object.defineProperty(exports, "formatRFC7231", { + enumerable: true, + get: function get() { + return _index86.default; + } +}); +Object.defineProperty(exports, "formatRelative", { + enumerable: true, + get: function get() { + return _index87.default; + } +}); +Object.defineProperty(exports, "formatRelativeWithOptions", { + enumerable: true, + get: function get() { + return _index88.default; + } +}); +Object.defineProperty(exports, "formatWithOptions", { + enumerable: true, + get: function get() { + return _index89.default; + } +}); +Object.defineProperty(exports, "fromUnixTime", { + enumerable: true, + get: function get() { + return _index90.default; + } +}); +Object.defineProperty(exports, "getDate", { + enumerable: true, + get: function get() { + return _index91.default; + } +}); +Object.defineProperty(exports, "getDay", { + enumerable: true, + get: function get() { + return _index92.default; + } +}); +Object.defineProperty(exports, "getDayOfYear", { + enumerable: true, + get: function get() { + return _index93.default; + } +}); +Object.defineProperty(exports, "getDaysInMonth", { + enumerable: true, + get: function get() { + return _index94.default; + } +}); +Object.defineProperty(exports, "getDaysInYear", { + enumerable: true, + get: function get() { + return _index95.default; + } +}); +Object.defineProperty(exports, "getDecade", { + enumerable: true, + get: function get() { + return _index96.default; + } +}); +Object.defineProperty(exports, "getHours", { + enumerable: true, + get: function get() { + return _index97.default; + } +}); +Object.defineProperty(exports, "getISODay", { + enumerable: true, + get: function get() { + return _index98.default; + } +}); +Object.defineProperty(exports, "getISOWeek", { + enumerable: true, + get: function get() { + return _index99.default; + } +}); +Object.defineProperty(exports, "getISOWeekYear", { + enumerable: true, + get: function get() { + return _index100.default; + } +}); +Object.defineProperty(exports, "getISOWeeksInYear", { + enumerable: true, + get: function get() { + return _index101.default; + } +}); +Object.defineProperty(exports, "getMilliseconds", { + enumerable: true, + get: function get() { + return _index102.default; + } +}); +Object.defineProperty(exports, "getMinutes", { + enumerable: true, + get: function get() { + return _index103.default; + } +}); +Object.defineProperty(exports, "getMonth", { + enumerable: true, + get: function get() { + return _index104.default; + } +}); +Object.defineProperty(exports, "getOverlappingDaysInIntervals", { + enumerable: true, + get: function get() { + return _index105.default; + } +}); +Object.defineProperty(exports, "getQuarter", { + enumerable: true, + get: function get() { + return _index106.default; + } +}); +Object.defineProperty(exports, "getSeconds", { + enumerable: true, + get: function get() { + return _index107.default; + } +}); +Object.defineProperty(exports, "getTime", { + enumerable: true, + get: function get() { + return _index108.default; + } +}); +Object.defineProperty(exports, "getUnixTime", { + enumerable: true, + get: function get() { + return _index109.default; + } +}); +Object.defineProperty(exports, "getWeek", { + enumerable: true, + get: function get() { + return _index110.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonth", { + enumerable: true, + get: function get() { + return _index111.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonthWithOptions", { + enumerable: true, + get: function get() { + return _index112.default; + } +}); +Object.defineProperty(exports, "getWeekWithOptions", { + enumerable: true, + get: function get() { + return _index113.default; + } +}); +Object.defineProperty(exports, "getWeekYear", { + enumerable: true, + get: function get() { + return _index114.default; + } +}); +Object.defineProperty(exports, "getWeekYearWithOptions", { + enumerable: true, + get: function get() { + return _index115.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonth", { + enumerable: true, + get: function get() { + return _index116.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonthWithOptions", { + enumerable: true, + get: function get() { + return _index117.default; + } +}); +Object.defineProperty(exports, "getYear", { + enumerable: true, + get: function get() { + return _index118.default; + } +}); +Object.defineProperty(exports, "hoursToMilliseconds", { + enumerable: true, + get: function get() { + return _index119.default; + } +}); +Object.defineProperty(exports, "hoursToMinutes", { + enumerable: true, + get: function get() { + return _index120.default; + } +}); +Object.defineProperty(exports, "hoursToSeconds", { + enumerable: true, + get: function get() { + return _index121.default; + } +}); +Object.defineProperty(exports, "intervalToDuration", { + enumerable: true, + get: function get() { + return _index122.default; + } +}); +Object.defineProperty(exports, "intlFormat", { + enumerable: true, + get: function get() { + return _index123.default; + } +}); +Object.defineProperty(exports, "intlFormatDistance", { + enumerable: true, + get: function get() { + return _index124.default; + } +}); +Object.defineProperty(exports, "intlFormatDistanceWithOptions", { + enumerable: true, + get: function get() { + return _index125.default; + } +}); +Object.defineProperty(exports, "isAfter", { + enumerable: true, + get: function get() { + return _index126.default; + } +}); +Object.defineProperty(exports, "isBefore", { + enumerable: true, + get: function get() { + return _index127.default; + } +}); +Object.defineProperty(exports, "isDate", { + enumerable: true, + get: function get() { + return _index128.default; + } +}); +Object.defineProperty(exports, "isEqual", { + enumerable: true, + get: function get() { + return _index129.default; + } +}); +Object.defineProperty(exports, "isExists", { + enumerable: true, + get: function get() { + return _index130.default; + } +}); +Object.defineProperty(exports, "isFirstDayOfMonth", { + enumerable: true, + get: function get() { + return _index131.default; + } +}); +Object.defineProperty(exports, "isFriday", { + enumerable: true, + get: function get() { + return _index132.default; + } +}); +Object.defineProperty(exports, "isLastDayOfMonth", { + enumerable: true, + get: function get() { + return _index133.default; + } +}); +Object.defineProperty(exports, "isLeapYear", { + enumerable: true, + get: function get() { + return _index134.default; + } +}); +Object.defineProperty(exports, "isMatch", { + enumerable: true, + get: function get() { + return _index135.default; + } +}); +Object.defineProperty(exports, "isMatchWithOptions", { + enumerable: true, + get: function get() { + return _index136.default; + } +}); +Object.defineProperty(exports, "isMonday", { + enumerable: true, + get: function get() { + return _index137.default; + } +}); +Object.defineProperty(exports, "isSameDay", { + enumerable: true, + get: function get() { + return _index138.default; + } +}); +Object.defineProperty(exports, "isSameHour", { + enumerable: true, + get: function get() { + return _index139.default; + } +}); +Object.defineProperty(exports, "isSameISOWeek", { + enumerable: true, + get: function get() { + return _index140.default; + } +}); +Object.defineProperty(exports, "isSameISOWeekYear", { + enumerable: true, + get: function get() { + return _index141.default; + } +}); +Object.defineProperty(exports, "isSameMinute", { + enumerable: true, + get: function get() { + return _index142.default; + } +}); +Object.defineProperty(exports, "isSameMonth", { + enumerable: true, + get: function get() { + return _index143.default; + } +}); +Object.defineProperty(exports, "isSameQuarter", { + enumerable: true, + get: function get() { + return _index144.default; + } +}); +Object.defineProperty(exports, "isSameSecond", { + enumerable: true, + get: function get() { + return _index145.default; + } +}); +Object.defineProperty(exports, "isSameWeek", { + enumerable: true, + get: function get() { + return _index146.default; + } +}); +Object.defineProperty(exports, "isSameWeekWithOptions", { + enumerable: true, + get: function get() { + return _index147.default; + } +}); +Object.defineProperty(exports, "isSameYear", { + enumerable: true, + get: function get() { + return _index148.default; + } +}); +Object.defineProperty(exports, "isSaturday", { + enumerable: true, + get: function get() { + return _index149.default; + } +}); +Object.defineProperty(exports, "isSunday", { + enumerable: true, + get: function get() { + return _index150.default; + } +}); +Object.defineProperty(exports, "isThursday", { + enumerable: true, + get: function get() { + return _index151.default; + } +}); +Object.defineProperty(exports, "isTuesday", { + enumerable: true, + get: function get() { + return _index152.default; + } +}); +Object.defineProperty(exports, "isValid", { + enumerable: true, + get: function get() { + return _index153.default; + } +}); +Object.defineProperty(exports, "isWednesday", { + enumerable: true, + get: function get() { + return _index154.default; + } +}); +Object.defineProperty(exports, "isWeekend", { + enumerable: true, + get: function get() { + return _index155.default; + } +}); +Object.defineProperty(exports, "isWithinInterval", { + enumerable: true, + get: function get() { + return _index156.default; + } +}); +Object.defineProperty(exports, "lastDayOfDecade", { + enumerable: true, + get: function get() { + return _index157.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeek", { + enumerable: true, + get: function get() { + return _index158.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index159.default; + } +}); +Object.defineProperty(exports, "lastDayOfMonth", { + enumerable: true, + get: function get() { + return _index160.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarter", { + enumerable: true, + get: function get() { + return _index161.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarterWithOptions", { + enumerable: true, + get: function get() { + return _index162.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeek", { + enumerable: true, + get: function get() { + return _index163.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeekWithOptions", { + enumerable: true, + get: function get() { + return _index164.default; + } +}); +Object.defineProperty(exports, "lastDayOfYear", { + enumerable: true, + get: function get() { + return _index165.default; + } +}); +Object.defineProperty(exports, "lightFormat", { + enumerable: true, + get: function get() { + return _index166.default; + } +}); +Object.defineProperty(exports, "max", { + enumerable: true, + get: function get() { + return _index167.default; + } +}); +Object.defineProperty(exports, "milliseconds", { + enumerable: true, + get: function get() { + return _index168.default; + } +}); +Object.defineProperty(exports, "millisecondsToHours", { + enumerable: true, + get: function get() { + return _index169.default; + } +}); +Object.defineProperty(exports, "millisecondsToMinutes", { + enumerable: true, + get: function get() { + return _index170.default; + } +}); +Object.defineProperty(exports, "millisecondsToSeconds", { + enumerable: true, + get: function get() { + return _index171.default; + } +}); +Object.defineProperty(exports, "min", { + enumerable: true, + get: function get() { + return _index172.default; + } +}); +Object.defineProperty(exports, "minutesToHours", { + enumerable: true, + get: function get() { + return _index173.default; + } +}); +Object.defineProperty(exports, "minutesToMilliseconds", { + enumerable: true, + get: function get() { + return _index174.default; + } +}); +Object.defineProperty(exports, "minutesToSeconds", { + enumerable: true, + get: function get() { + return _index175.default; + } +}); +Object.defineProperty(exports, "monthsToQuarters", { + enumerable: true, + get: function get() { + return _index176.default; + } +}); +Object.defineProperty(exports, "monthsToYears", { + enumerable: true, + get: function get() { + return _index177.default; + } +}); +Object.defineProperty(exports, "nextDay", { + enumerable: true, + get: function get() { + return _index178.default; + } +}); +Object.defineProperty(exports, "nextFriday", { + enumerable: true, + get: function get() { + return _index179.default; + } +}); +Object.defineProperty(exports, "nextMonday", { + enumerable: true, + get: function get() { + return _index180.default; + } +}); +Object.defineProperty(exports, "nextSaturday", { + enumerable: true, + get: function get() { + return _index181.default; + } +}); +Object.defineProperty(exports, "nextSunday", { + enumerable: true, + get: function get() { + return _index182.default; + } +}); +Object.defineProperty(exports, "nextThursday", { + enumerable: true, + get: function get() { + return _index183.default; + } +}); +Object.defineProperty(exports, "nextTuesday", { + enumerable: true, + get: function get() { + return _index184.default; + } +}); +Object.defineProperty(exports, "nextWednesday", { + enumerable: true, + get: function get() { + return _index185.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function get() { + return _index186.default; + } +}); +Object.defineProperty(exports, "parseISO", { + enumerable: true, + get: function get() { + return _index187.default; + } +}); +Object.defineProperty(exports, "parseISOWithOptions", { + enumerable: true, + get: function get() { + return _index188.default; + } +}); +Object.defineProperty(exports, "parseJSON", { + enumerable: true, + get: function get() { + return _index189.default; + } +}); +Object.defineProperty(exports, "parseWithOptions", { + enumerable: true, + get: function get() { + return _index190.default; + } +}); +Object.defineProperty(exports, "previousDay", { + enumerable: true, + get: function get() { + return _index191.default; + } +}); +Object.defineProperty(exports, "previousFriday", { + enumerable: true, + get: function get() { + return _index192.default; + } +}); +Object.defineProperty(exports, "previousMonday", { + enumerable: true, + get: function get() { + return _index193.default; + } +}); +Object.defineProperty(exports, "previousSaturday", { + enumerable: true, + get: function get() { + return _index194.default; + } +}); +Object.defineProperty(exports, "previousSunday", { + enumerable: true, + get: function get() { + return _index195.default; + } +}); +Object.defineProperty(exports, "previousThursday", { + enumerable: true, + get: function get() { + return _index196.default; + } +}); +Object.defineProperty(exports, "previousTuesday", { + enumerable: true, + get: function get() { + return _index197.default; + } +}); +Object.defineProperty(exports, "previousWednesday", { + enumerable: true, + get: function get() { + return _index198.default; + } +}); +Object.defineProperty(exports, "quartersToMonths", { + enumerable: true, + get: function get() { + return _index199.default; + } +}); +Object.defineProperty(exports, "quartersToYears", { + enumerable: true, + get: function get() { + return _index200.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutes", { + enumerable: true, + get: function get() { + return _index201.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutesWithOptions", { + enumerable: true, + get: function get() { + return _index202.default; + } +}); +Object.defineProperty(exports, "secondsToHours", { + enumerable: true, + get: function get() { + return _index203.default; + } +}); +Object.defineProperty(exports, "secondsToMilliseconds", { + enumerable: true, + get: function get() { + return _index204.default; + } +}); +Object.defineProperty(exports, "secondsToMinutes", { + enumerable: true, + get: function get() { + return _index205.default; + } +}); +Object.defineProperty(exports, "set", { + enumerable: true, + get: function get() { + return _index206.default; + } +}); +Object.defineProperty(exports, "setDate", { + enumerable: true, + get: function get() { + return _index207.default; + } +}); +Object.defineProperty(exports, "setDay", { + enumerable: true, + get: function get() { + return _index208.default; + } +}); +Object.defineProperty(exports, "setDayOfYear", { + enumerable: true, + get: function get() { + return _index209.default; + } +}); +Object.defineProperty(exports, "setDayWithOptions", { + enumerable: true, + get: function get() { + return _index210.default; + } +}); +Object.defineProperty(exports, "setHours", { + enumerable: true, + get: function get() { + return _index211.default; + } +}); +Object.defineProperty(exports, "setISODay", { + enumerable: true, + get: function get() { + return _index212.default; + } +}); +Object.defineProperty(exports, "setISOWeek", { + enumerable: true, + get: function get() { + return _index213.default; + } +}); +Object.defineProperty(exports, "setISOWeekYear", { + enumerable: true, + get: function get() { + return _index214.default; + } +}); +Object.defineProperty(exports, "setMilliseconds", { + enumerable: true, + get: function get() { + return _index215.default; + } +}); +Object.defineProperty(exports, "setMinutes", { + enumerable: true, + get: function get() { + return _index216.default; + } +}); +Object.defineProperty(exports, "setMonth", { + enumerable: true, + get: function get() { + return _index217.default; + } +}); +Object.defineProperty(exports, "setQuarter", { + enumerable: true, + get: function get() { + return _index218.default; + } +}); +Object.defineProperty(exports, "setSeconds", { + enumerable: true, + get: function get() { + return _index219.default; + } +}); +Object.defineProperty(exports, "setWeek", { + enumerable: true, + get: function get() { + return _index220.default; + } +}); +Object.defineProperty(exports, "setWeekWithOptions", { + enumerable: true, + get: function get() { + return _index221.default; + } +}); +Object.defineProperty(exports, "setWeekYear", { + enumerable: true, + get: function get() { + return _index222.default; + } +}); +Object.defineProperty(exports, "setWeekYearWithOptions", { + enumerable: true, + get: function get() { + return _index223.default; + } +}); +Object.defineProperty(exports, "setYear", { + enumerable: true, + get: function get() { + return _index224.default; + } +}); +Object.defineProperty(exports, "startOfDay", { + enumerable: true, + get: function get() { + return _index225.default; + } +}); +Object.defineProperty(exports, "startOfDecade", { + enumerable: true, + get: function get() { + return _index226.default; + } +}); +Object.defineProperty(exports, "startOfHour", { + enumerable: true, + get: function get() { + return _index227.default; + } +}); +Object.defineProperty(exports, "startOfISOWeek", { + enumerable: true, + get: function get() { + return _index228.default; + } +}); +Object.defineProperty(exports, "startOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index229.default; + } +}); +Object.defineProperty(exports, "startOfMinute", { + enumerable: true, + get: function get() { + return _index230.default; + } +}); +Object.defineProperty(exports, "startOfMonth", { + enumerable: true, + get: function get() { + return _index231.default; + } +}); +Object.defineProperty(exports, "startOfQuarter", { + enumerable: true, + get: function get() { + return _index232.default; + } +}); +Object.defineProperty(exports, "startOfSecond", { + enumerable: true, + get: function get() { + return _index233.default; + } +}); +Object.defineProperty(exports, "startOfWeek", { + enumerable: true, + get: function get() { + return _index234.default; + } +}); +Object.defineProperty(exports, "startOfWeekWithOptions", { + enumerable: true, + get: function get() { + return _index235.default; + } +}); +Object.defineProperty(exports, "startOfWeekYear", { + enumerable: true, + get: function get() { + return _index236.default; + } +}); +Object.defineProperty(exports, "startOfWeekYearWithOptions", { + enumerable: true, + get: function get() { + return _index237.default; + } +}); +Object.defineProperty(exports, "startOfYear", { + enumerable: true, + get: function get() { + return _index238.default; + } +}); +Object.defineProperty(exports, "sub", { + enumerable: true, + get: function get() { + return _index239.default; + } +}); +Object.defineProperty(exports, "subBusinessDays", { + enumerable: true, + get: function get() { + return _index240.default; + } +}); +Object.defineProperty(exports, "subDays", { + enumerable: true, + get: function get() { + return _index241.default; + } +}); +Object.defineProperty(exports, "subHours", { + enumerable: true, + get: function get() { + return _index242.default; + } +}); +Object.defineProperty(exports, "subISOWeekYears", { + enumerable: true, + get: function get() { + return _index243.default; + } +}); +Object.defineProperty(exports, "subMilliseconds", { + enumerable: true, + get: function get() { + return _index244.default; + } +}); +Object.defineProperty(exports, "subMinutes", { + enumerable: true, + get: function get() { + return _index245.default; + } +}); +Object.defineProperty(exports, "subMonths", { + enumerable: true, + get: function get() { + return _index246.default; + } +}); +Object.defineProperty(exports, "subQuarters", { + enumerable: true, + get: function get() { + return _index247.default; + } +}); +Object.defineProperty(exports, "subSeconds", { + enumerable: true, + get: function get() { + return _index248.default; + } +}); +Object.defineProperty(exports, "subWeeks", { + enumerable: true, + get: function get() { + return _index249.default; + } +}); +Object.defineProperty(exports, "subYears", { + enumerable: true, + get: function get() { + return _index250.default; + } +}); +Object.defineProperty(exports, "toDate", { + enumerable: true, + get: function get() { + return _index251.default; + } +}); +Object.defineProperty(exports, "weeksToDays", { + enumerable: true, + get: function get() { + return _index252.default; + } +}); +Object.defineProperty(exports, "yearsToMonths", { + enumerable: true, + get: function get() { + return _index253.default; + } +}); +Object.defineProperty(exports, "yearsToQuarters", { + enumerable: true, + get: function get() { + return _index254.default; + } +}); + +var _index = _interopRequireDefault(require("./add/index.js")); + +var _index2 = _interopRequireDefault(require("./addBusinessDays/index.js")); + +var _index3 = _interopRequireDefault(require("./addDays/index.js")); + +var _index4 = _interopRequireDefault(require("./addHours/index.js")); + +var _index5 = _interopRequireDefault(require("./addISOWeekYears/index.js")); + +var _index6 = _interopRequireDefault(require("./addMilliseconds/index.js")); + +var _index7 = _interopRequireDefault(require("./addMinutes/index.js")); + +var _index8 = _interopRequireDefault(require("./addMonths/index.js")); + +var _index9 = _interopRequireDefault(require("./addQuarters/index.js")); + +var _index10 = _interopRequireDefault(require("./addSeconds/index.js")); + +var _index11 = _interopRequireDefault(require("./addWeeks/index.js")); + +var _index12 = _interopRequireDefault(require("./addYears/index.js")); + +var _index13 = _interopRequireDefault(require("./areIntervalsOverlapping/index.js")); + +var _index14 = _interopRequireDefault(require("./areIntervalsOverlappingWithOptions/index.js")); + +var _index15 = _interopRequireDefault(require("./clamp/index.js")); + +var _index16 = _interopRequireDefault(require("./closestIndexTo/index.js")); + +var _index17 = _interopRequireDefault(require("./closestTo/index.js")); + +var _index18 = _interopRequireDefault(require("./compareAsc/index.js")); + +var _index19 = _interopRequireDefault(require("./compareDesc/index.js")); + +var _index20 = _interopRequireDefault(require("./daysToWeeks/index.js")); + +var _index21 = _interopRequireDefault(require("./differenceInBusinessDays/index.js")); + +var _index22 = _interopRequireDefault(require("./differenceInCalendarDays/index.js")); + +var _index23 = _interopRequireDefault(require("./differenceInCalendarISOWeekYears/index.js")); + +var _index24 = _interopRequireDefault(require("./differenceInCalendarISOWeeks/index.js")); + +var _index25 = _interopRequireDefault(require("./differenceInCalendarMonths/index.js")); + +var _index26 = _interopRequireDefault(require("./differenceInCalendarQuarters/index.js")); + +var _index27 = _interopRequireDefault(require("./differenceInCalendarWeeks/index.js")); + +var _index28 = _interopRequireDefault(require("./differenceInCalendarWeeksWithOptions/index.js")); + +var _index29 = _interopRequireDefault(require("./differenceInCalendarYears/index.js")); + +var _index30 = _interopRequireDefault(require("./differenceInDays/index.js")); + +var _index31 = _interopRequireDefault(require("./differenceInHours/index.js")); + +var _index32 = _interopRequireDefault(require("./differenceInHoursWithOptions/index.js")); + +var _index33 = _interopRequireDefault(require("./differenceInISOWeekYears/index.js")); + +var _index34 = _interopRequireDefault(require("./differenceInMilliseconds/index.js")); + +var _index35 = _interopRequireDefault(require("./differenceInMinutes/index.js")); + +var _index36 = _interopRequireDefault(require("./differenceInMinutesWithOptions/index.js")); + +var _index37 = _interopRequireDefault(require("./differenceInMonths/index.js")); + +var _index38 = _interopRequireDefault(require("./differenceInQuarters/index.js")); + +var _index39 = _interopRequireDefault(require("./differenceInQuartersWithOptions/index.js")); + +var _index40 = _interopRequireDefault(require("./differenceInSeconds/index.js")); + +var _index41 = _interopRequireDefault(require("./differenceInSecondsWithOptions/index.js")); + +var _index42 = _interopRequireDefault(require("./differenceInWeeks/index.js")); + +var _index43 = _interopRequireDefault(require("./differenceInWeeksWithOptions/index.js")); + +var _index44 = _interopRequireDefault(require("./differenceInYears/index.js")); + +var _index45 = _interopRequireDefault(require("./eachDayOfInterval/index.js")); + +var _index46 = _interopRequireDefault(require("./eachDayOfIntervalWithOptions/index.js")); + +var _index47 = _interopRequireDefault(require("./eachHourOfInterval/index.js")); + +var _index48 = _interopRequireDefault(require("./eachHourOfIntervalWithOptions/index.js")); + +var _index49 = _interopRequireDefault(require("./eachMinuteOfInterval/index.js")); + +var _index50 = _interopRequireDefault(require("./eachMinuteOfIntervalWithOptions/index.js")); + +var _index51 = _interopRequireDefault(require("./eachMonthOfInterval/index.js")); + +var _index52 = _interopRequireDefault(require("./eachQuarterOfInterval/index.js")); + +var _index53 = _interopRequireDefault(require("./eachWeekOfInterval/index.js")); + +var _index54 = _interopRequireDefault(require("./eachWeekOfIntervalWithOptions/index.js")); + +var _index55 = _interopRequireDefault(require("./eachWeekendOfInterval/index.js")); + +var _index56 = _interopRequireDefault(require("./eachWeekendOfMonth/index.js")); + +var _index57 = _interopRequireDefault(require("./eachWeekendOfYear/index.js")); + +var _index58 = _interopRequireDefault(require("./eachYearOfInterval/index.js")); + +var _index59 = _interopRequireDefault(require("./endOfDay/index.js")); + +var _index60 = _interopRequireDefault(require("./endOfDecade/index.js")); + +var _index61 = _interopRequireDefault(require("./endOfDecadeWithOptions/index.js")); + +var _index62 = _interopRequireDefault(require("./endOfHour/index.js")); + +var _index63 = _interopRequireDefault(require("./endOfISOWeek/index.js")); + +var _index64 = _interopRequireDefault(require("./endOfISOWeekYear/index.js")); + +var _index65 = _interopRequireDefault(require("./endOfMinute/index.js")); + +var _index66 = _interopRequireDefault(require("./endOfMonth/index.js")); + +var _index67 = _interopRequireDefault(require("./endOfQuarter/index.js")); + +var _index68 = _interopRequireDefault(require("./endOfSecond/index.js")); + +var _index69 = _interopRequireDefault(require("./endOfWeek/index.js")); + +var _index70 = _interopRequireDefault(require("./endOfWeekWithOptions/index.js")); + +var _index71 = _interopRequireDefault(require("./endOfYear/index.js")); + +var _index72 = _interopRequireDefault(require("./format/index.js")); + +var _index73 = _interopRequireDefault(require("./formatDistance/index.js")); + +var _index74 = _interopRequireDefault(require("./formatDistanceStrict/index.js")); + +var _index75 = _interopRequireDefault(require("./formatDistanceStrictWithOptions/index.js")); + +var _index76 = _interopRequireDefault(require("./formatDistanceWithOptions/index.js")); + +var _index77 = _interopRequireDefault(require("./formatDuration/index.js")); + +var _index78 = _interopRequireDefault(require("./formatDurationWithOptions/index.js")); + +var _index79 = _interopRequireDefault(require("./formatISO/index.js")); + +var _index80 = _interopRequireDefault(require("./formatISO9075/index.js")); + +var _index81 = _interopRequireDefault(require("./formatISO9075WithOptions/index.js")); + +var _index82 = _interopRequireDefault(require("./formatISODuration/index.js")); + +var _index83 = _interopRequireDefault(require("./formatISOWithOptions/index.js")); + +var _index84 = _interopRequireDefault(require("./formatRFC3339/index.js")); + +var _index85 = _interopRequireDefault(require("./formatRFC3339WithOptions/index.js")); + +var _index86 = _interopRequireDefault(require("./formatRFC7231/index.js")); + +var _index87 = _interopRequireDefault(require("./formatRelative/index.js")); + +var _index88 = _interopRequireDefault(require("./formatRelativeWithOptions/index.js")); + +var _index89 = _interopRequireDefault(require("./formatWithOptions/index.js")); + +var _index90 = _interopRequireDefault(require("./fromUnixTime/index.js")); + +var _index91 = _interopRequireDefault(require("./getDate/index.js")); + +var _index92 = _interopRequireDefault(require("./getDay/index.js")); + +var _index93 = _interopRequireDefault(require("./getDayOfYear/index.js")); + +var _index94 = _interopRequireDefault(require("./getDaysInMonth/index.js")); + +var _index95 = _interopRequireDefault(require("./getDaysInYear/index.js")); + +var _index96 = _interopRequireDefault(require("./getDecade/index.js")); + +var _index97 = _interopRequireDefault(require("./getHours/index.js")); + +var _index98 = _interopRequireDefault(require("./getISODay/index.js")); + +var _index99 = _interopRequireDefault(require("./getISOWeek/index.js")); + +var _index100 = _interopRequireDefault(require("./getISOWeekYear/index.js")); + +var _index101 = _interopRequireDefault(require("./getISOWeeksInYear/index.js")); + +var _index102 = _interopRequireDefault(require("./getMilliseconds/index.js")); + +var _index103 = _interopRequireDefault(require("./getMinutes/index.js")); + +var _index104 = _interopRequireDefault(require("./getMonth/index.js")); + +var _index105 = _interopRequireDefault(require("./getOverlappingDaysInIntervals/index.js")); + +var _index106 = _interopRequireDefault(require("./getQuarter/index.js")); + +var _index107 = _interopRequireDefault(require("./getSeconds/index.js")); + +var _index108 = _interopRequireDefault(require("./getTime/index.js")); + +var _index109 = _interopRequireDefault(require("./getUnixTime/index.js")); + +var _index110 = _interopRequireDefault(require("./getWeek/index.js")); + +var _index111 = _interopRequireDefault(require("./getWeekOfMonth/index.js")); + +var _index112 = _interopRequireDefault(require("./getWeekOfMonthWithOptions/index.js")); + +var _index113 = _interopRequireDefault(require("./getWeekWithOptions/index.js")); + +var _index114 = _interopRequireDefault(require("./getWeekYear/index.js")); + +var _index115 = _interopRequireDefault(require("./getWeekYearWithOptions/index.js")); + +var _index116 = _interopRequireDefault(require("./getWeeksInMonth/index.js")); + +var _index117 = _interopRequireDefault(require("./getWeeksInMonthWithOptions/index.js")); + +var _index118 = _interopRequireDefault(require("./getYear/index.js")); + +var _index119 = _interopRequireDefault(require("./hoursToMilliseconds/index.js")); + +var _index120 = _interopRequireDefault(require("./hoursToMinutes/index.js")); + +var _index121 = _interopRequireDefault(require("./hoursToSeconds/index.js")); + +var _index122 = _interopRequireDefault(require("./intervalToDuration/index.js")); + +var _index123 = _interopRequireDefault(require("./intlFormat/index.js")); + +var _index124 = _interopRequireDefault(require("./intlFormatDistance/index.js")); + +var _index125 = _interopRequireDefault(require("./intlFormatDistanceWithOptions/index.js")); + +var _index126 = _interopRequireDefault(require("./isAfter/index.js")); + +var _index127 = _interopRequireDefault(require("./isBefore/index.js")); + +var _index128 = _interopRequireDefault(require("./isDate/index.js")); + +var _index129 = _interopRequireDefault(require("./isEqual/index.js")); + +var _index130 = _interopRequireDefault(require("./isExists/index.js")); + +var _index131 = _interopRequireDefault(require("./isFirstDayOfMonth/index.js")); + +var _index132 = _interopRequireDefault(require("./isFriday/index.js")); + +var _index133 = _interopRequireDefault(require("./isLastDayOfMonth/index.js")); + +var _index134 = _interopRequireDefault(require("./isLeapYear/index.js")); + +var _index135 = _interopRequireDefault(require("./isMatch/index.js")); + +var _index136 = _interopRequireDefault(require("./isMatchWithOptions/index.js")); + +var _index137 = _interopRequireDefault(require("./isMonday/index.js")); + +var _index138 = _interopRequireDefault(require("./isSameDay/index.js")); + +var _index139 = _interopRequireDefault(require("./isSameHour/index.js")); + +var _index140 = _interopRequireDefault(require("./isSameISOWeek/index.js")); + +var _index141 = _interopRequireDefault(require("./isSameISOWeekYear/index.js")); + +var _index142 = _interopRequireDefault(require("./isSameMinute/index.js")); + +var _index143 = _interopRequireDefault(require("./isSameMonth/index.js")); + +var _index144 = _interopRequireDefault(require("./isSameQuarter/index.js")); + +var _index145 = _interopRequireDefault(require("./isSameSecond/index.js")); + +var _index146 = _interopRequireDefault(require("./isSameWeek/index.js")); + +var _index147 = _interopRequireDefault(require("./isSameWeekWithOptions/index.js")); + +var _index148 = _interopRequireDefault(require("./isSameYear/index.js")); + +var _index149 = _interopRequireDefault(require("./isSaturday/index.js")); + +var _index150 = _interopRequireDefault(require("./isSunday/index.js")); + +var _index151 = _interopRequireDefault(require("./isThursday/index.js")); + +var _index152 = _interopRequireDefault(require("./isTuesday/index.js")); + +var _index153 = _interopRequireDefault(require("./isValid/index.js")); + +var _index154 = _interopRequireDefault(require("./isWednesday/index.js")); + +var _index155 = _interopRequireDefault(require("./isWeekend/index.js")); + +var _index156 = _interopRequireDefault(require("./isWithinInterval/index.js")); + +var _index157 = _interopRequireDefault(require("./lastDayOfDecade/index.js")); + +var _index158 = _interopRequireDefault(require("./lastDayOfISOWeek/index.js")); + +var _index159 = _interopRequireDefault(require("./lastDayOfISOWeekYear/index.js")); + +var _index160 = _interopRequireDefault(require("./lastDayOfMonth/index.js")); + +var _index161 = _interopRequireDefault(require("./lastDayOfQuarter/index.js")); + +var _index162 = _interopRequireDefault(require("./lastDayOfQuarterWithOptions/index.js")); + +var _index163 = _interopRequireDefault(require("./lastDayOfWeek/index.js")); + +var _index164 = _interopRequireDefault(require("./lastDayOfWeekWithOptions/index.js")); + +var _index165 = _interopRequireDefault(require("./lastDayOfYear/index.js")); + +var _index166 = _interopRequireDefault(require("./lightFormat/index.js")); + +var _index167 = _interopRequireDefault(require("./max/index.js")); + +var _index168 = _interopRequireDefault(require("./milliseconds/index.js")); + +var _index169 = _interopRequireDefault(require("./millisecondsToHours/index.js")); + +var _index170 = _interopRequireDefault(require("./millisecondsToMinutes/index.js")); + +var _index171 = _interopRequireDefault(require("./millisecondsToSeconds/index.js")); + +var _index172 = _interopRequireDefault(require("./min/index.js")); + +var _index173 = _interopRequireDefault(require("./minutesToHours/index.js")); + +var _index174 = _interopRequireDefault(require("./minutesToMilliseconds/index.js")); + +var _index175 = _interopRequireDefault(require("./minutesToSeconds/index.js")); + +var _index176 = _interopRequireDefault(require("./monthsToQuarters/index.js")); + +var _index177 = _interopRequireDefault(require("./monthsToYears/index.js")); + +var _index178 = _interopRequireDefault(require("./nextDay/index.js")); + +var _index179 = _interopRequireDefault(require("./nextFriday/index.js")); + +var _index180 = _interopRequireDefault(require("./nextMonday/index.js")); + +var _index181 = _interopRequireDefault(require("./nextSaturday/index.js")); + +var _index182 = _interopRequireDefault(require("./nextSunday/index.js")); + +var _index183 = _interopRequireDefault(require("./nextThursday/index.js")); + +var _index184 = _interopRequireDefault(require("./nextTuesday/index.js")); + +var _index185 = _interopRequireDefault(require("./nextWednesday/index.js")); + +var _index186 = _interopRequireDefault(require("./parse/index.js")); + +var _index187 = _interopRequireDefault(require("./parseISO/index.js")); + +var _index188 = _interopRequireDefault(require("./parseISOWithOptions/index.js")); + +var _index189 = _interopRequireDefault(require("./parseJSON/index.js")); + +var _index190 = _interopRequireDefault(require("./parseWithOptions/index.js")); + +var _index191 = _interopRequireDefault(require("./previousDay/index.js")); + +var _index192 = _interopRequireDefault(require("./previousFriday/index.js")); + +var _index193 = _interopRequireDefault(require("./previousMonday/index.js")); + +var _index194 = _interopRequireDefault(require("./previousSaturday/index.js")); + +var _index195 = _interopRequireDefault(require("./previousSunday/index.js")); + +var _index196 = _interopRequireDefault(require("./previousThursday/index.js")); + +var _index197 = _interopRequireDefault(require("./previousTuesday/index.js")); + +var _index198 = _interopRequireDefault(require("./previousWednesday/index.js")); + +var _index199 = _interopRequireDefault(require("./quartersToMonths/index.js")); + +var _index200 = _interopRequireDefault(require("./quartersToYears/index.js")); + +var _index201 = _interopRequireDefault(require("./roundToNearestMinutes/index.js")); + +var _index202 = _interopRequireDefault(require("./roundToNearestMinutesWithOptions/index.js")); + +var _index203 = _interopRequireDefault(require("./secondsToHours/index.js")); + +var _index204 = _interopRequireDefault(require("./secondsToMilliseconds/index.js")); + +var _index205 = _interopRequireDefault(require("./secondsToMinutes/index.js")); + +var _index206 = _interopRequireDefault(require("./set/index.js")); + +var _index207 = _interopRequireDefault(require("./setDate/index.js")); + +var _index208 = _interopRequireDefault(require("./setDay/index.js")); + +var _index209 = _interopRequireDefault(require("./setDayOfYear/index.js")); + +var _index210 = _interopRequireDefault(require("./setDayWithOptions/index.js")); + +var _index211 = _interopRequireDefault(require("./setHours/index.js")); + +var _index212 = _interopRequireDefault(require("./setISODay/index.js")); + +var _index213 = _interopRequireDefault(require("./setISOWeek/index.js")); + +var _index214 = _interopRequireDefault(require("./setISOWeekYear/index.js")); + +var _index215 = _interopRequireDefault(require("./setMilliseconds/index.js")); + +var _index216 = _interopRequireDefault(require("./setMinutes/index.js")); + +var _index217 = _interopRequireDefault(require("./setMonth/index.js")); + +var _index218 = _interopRequireDefault(require("./setQuarter/index.js")); + +var _index219 = _interopRequireDefault(require("./setSeconds/index.js")); + +var _index220 = _interopRequireDefault(require("./setWeek/index.js")); + +var _index221 = _interopRequireDefault(require("./setWeekWithOptions/index.js")); + +var _index222 = _interopRequireDefault(require("./setWeekYear/index.js")); + +var _index223 = _interopRequireDefault(require("./setWeekYearWithOptions/index.js")); + +var _index224 = _interopRequireDefault(require("./setYear/index.js")); + +var _index225 = _interopRequireDefault(require("./startOfDay/index.js")); + +var _index226 = _interopRequireDefault(require("./startOfDecade/index.js")); + +var _index227 = _interopRequireDefault(require("./startOfHour/index.js")); + +var _index228 = _interopRequireDefault(require("./startOfISOWeek/index.js")); + +var _index229 = _interopRequireDefault(require("./startOfISOWeekYear/index.js")); + +var _index230 = _interopRequireDefault(require("./startOfMinute/index.js")); + +var _index231 = _interopRequireDefault(require("./startOfMonth/index.js")); + +var _index232 = _interopRequireDefault(require("./startOfQuarter/index.js")); + +var _index233 = _interopRequireDefault(require("./startOfSecond/index.js")); + +var _index234 = _interopRequireDefault(require("./startOfWeek/index.js")); + +var _index235 = _interopRequireDefault(require("./startOfWeekWithOptions/index.js")); + +var _index236 = _interopRequireDefault(require("./startOfWeekYear/index.js")); + +var _index237 = _interopRequireDefault(require("./startOfWeekYearWithOptions/index.js")); + +var _index238 = _interopRequireDefault(require("./startOfYear/index.js")); + +var _index239 = _interopRequireDefault(require("./sub/index.js")); + +var _index240 = _interopRequireDefault(require("./subBusinessDays/index.js")); + +var _index241 = _interopRequireDefault(require("./subDays/index.js")); + +var _index242 = _interopRequireDefault(require("./subHours/index.js")); + +var _index243 = _interopRequireDefault(require("./subISOWeekYears/index.js")); + +var _index244 = _interopRequireDefault(require("./subMilliseconds/index.js")); + +var _index245 = _interopRequireDefault(require("./subMinutes/index.js")); + +var _index246 = _interopRequireDefault(require("./subMonths/index.js")); + +var _index247 = _interopRequireDefault(require("./subQuarters/index.js")); + +var _index248 = _interopRequireDefault(require("./subSeconds/index.js")); + +var _index249 = _interopRequireDefault(require("./subWeeks/index.js")); + +var _index250 = _interopRequireDefault(require("./subYears/index.js")); + +var _index251 = _interopRequireDefault(require("./toDate/index.js")); + +var _index252 = _interopRequireDefault(require("./weeksToDays/index.js")); + +var _index253 = _interopRequireDefault(require("./yearsToMonths/index.js")); + +var _index254 = _interopRequireDefault(require("./yearsToQuarters/index.js")); + +var _index255 = require("../constants/index.js"); + +Object.keys(_index255).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _index255[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _index255[key]; + } + }); +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/date-fns/fp/index.js.flow b/node_modules/date-fns/fp/index.js.flow new file mode 100644 index 00000000..0c481761 --- /dev/null +++ b/node_modules/date-fns/fp/index.js.flow @@ -0,0 +1,694 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +type CurriedFn4 = ( + a: A +) => + | CurriedFn3 + | (( + a: A, + b: B + ) => + | CurriedFn2 + | (( + a: A, + b: B, + c: C + ) => CurriedFn1 | ((a: A, b: B, c: C, d: D) => R))) + +declare module.exports: { + add: CurriedFn2, + addBusinessDays: CurriedFn2, + addDays: CurriedFn2, + addHours: CurriedFn2, + addISOWeekYears: CurriedFn2, + addMilliseconds: CurriedFn2, + addMinutes: CurriedFn2, + addMonths: CurriedFn2, + addQuarters: CurriedFn2, + addSeconds: CurriedFn2, + addWeeks: CurriedFn2, + addYears: CurriedFn2, + areIntervalsOverlapping: CurriedFn2, + areIntervalsOverlappingWithOptions: CurriedFn3< + { + inclusive?: boolean, + }, + Interval, + Interval, + boolean + >, + clamp: CurriedFn2, + closestIndexTo: CurriedFn2<(Date | number)[], Date | number, ?number>, + closestTo: CurriedFn2<(Date | number)[], Date | number, ?Date>, + compareAsc: CurriedFn2, + compareDesc: CurriedFn2, + daysToWeeks: CurriedFn1, + differenceInBusinessDays: CurriedFn2, + differenceInCalendarDays: CurriedFn2, + differenceInCalendarISOWeeks: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarMonths: CurriedFn2, + differenceInCalendarQuarters: CurriedFn2< + Date | number, + Date | number, + number + >, + differenceInCalendarWeeks: CurriedFn2, + differenceInCalendarWeeksWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + number + >, + differenceInCalendarYears: CurriedFn2, + differenceInDays: CurriedFn2, + differenceInHours: CurriedFn2, + differenceInHoursWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInISOWeekYears: CurriedFn2, + differenceInMilliseconds: CurriedFn2, + differenceInMinutes: CurriedFn2, + differenceInMinutesWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInMonths: CurriedFn2, + differenceInQuarters: CurriedFn2, + differenceInQuartersWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInSeconds: CurriedFn2, + differenceInSecondsWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInWeeks: CurriedFn2, + differenceInWeeksWithOptions: CurriedFn3< + { + roundingMethod?: string, + }, + Date | number, + Date | number, + number + >, + differenceInYears: CurriedFn2, + eachDayOfInterval: CurriedFn1, + eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachHourOfInterval: CurriedFn1, + eachHourOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachMinuteOfInterval: CurriedFn1, + eachMinuteOfIntervalWithOptions: CurriedFn2< + { + step?: number, + }, + Interval, + Date[] + >, + eachMonthOfInterval: CurriedFn1, + eachQuarterOfInterval: CurriedFn1, + eachWeekendOfInterval: CurriedFn1, + eachWeekendOfMonth: CurriedFn1, + eachWeekendOfYear: CurriedFn1, + eachWeekOfInterval: CurriedFn1, + eachWeekOfIntervalWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Interval, + Date[] + >, + eachYearOfInterval: CurriedFn1, + endOfDay: CurriedFn1, + endOfDecade: CurriedFn1, + endOfDecadeWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date + >, + endOfHour: CurriedFn1, + endOfISOWeek: CurriedFn1, + endOfISOWeekYear: CurriedFn1, + endOfMinute: CurriedFn1, + endOfMonth: CurriedFn1, + endOfQuarter: CurriedFn1, + endOfSecond: CurriedFn1, + endOfWeek: CurriedFn1, + endOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + endOfYear: CurriedFn1, + format: CurriedFn2, + formatDistance: CurriedFn2, + formatDistanceStrict: CurriedFn2, + formatDistanceStrictWithOptions: CurriedFn3< + { + locale?: Locale, + roundingMethod?: 'floor' | 'ceil' | 'round', + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + addSuffix?: boolean, + }, + Date | number, + Date | number, + string + >, + formatDistanceWithOptions: CurriedFn3< + { + locale?: Locale, + addSuffix?: boolean, + includeSeconds?: boolean, + }, + Date | number, + Date | number, + string + >, + formatDuration: CurriedFn1, + formatDurationWithOptions: CurriedFn2< + { + locale?: Locale, + delimiter?: string, + zero?: boolean, + format?: string[], + }, + Duration, + string + >, + formatISO: CurriedFn1, + formatISO9075: CurriedFn1, + formatISO9075WithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string + >, + formatISODuration: CurriedFn1, + formatISOWithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time', + format?: 'extended' | 'basic', + }, + Date | number, + string + >, + formatRelative: CurriedFn2, + formatRelativeWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + string + >, + formatRFC3339: CurriedFn1, + formatRFC3339WithOptions: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3, + }, + Date | number, + string + >, + formatRFC7231: CurriedFn1, + formatWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: number, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + Date | number, + string + >, + fromUnixTime: CurriedFn1, + getDate: CurriedFn1, + getDay: CurriedFn1, + getDayOfYear: CurriedFn1, + getDaysInMonth: CurriedFn1, + getDaysInYear: CurriedFn1, + getDecade: CurriedFn1, + getHours: CurriedFn1, + getISODay: CurriedFn1, + getISOWeek: CurriedFn1, + getISOWeeksInYear: CurriedFn1, + getISOWeekYear: CurriedFn1, + getMilliseconds: CurriedFn1, + getMinutes: CurriedFn1, + getMonth: CurriedFn1, + getOverlappingDaysInIntervals: CurriedFn2, + getQuarter: CurriedFn1, + getSeconds: CurriedFn1, + getTime: CurriedFn1, + getUnixTime: CurriedFn1, + getWeek: CurriedFn1, + getWeekOfMonth: CurriedFn1, + getWeekOfMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeeksInMonth: CurriedFn1, + getWeeksInMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeekWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getWeekYear: CurriedFn1, + getWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + number + >, + getYear: CurriedFn1, + hoursToMilliseconds: CurriedFn1, + hoursToMinutes: CurriedFn1, + hoursToSeconds: CurriedFn1, + intervalToDuration: CurriedFn1, + intlFormat: CurriedFn3< + { + locale?: string | string[], + }, + { + timeZone?: string, + hour12?: boolean, + formatMatcher?: 'basic' | 'best fit', + timeZoneName?: 'short' | 'long', + second?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + day?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + era?: 'narrow' | 'short' | 'long', + weekday?: 'narrow' | 'short' | 'long', + localeMatcher?: 'lookup' | 'best fit', + }, + Date | number, + string + >, + intlFormatDistance: CurriedFn2, + intlFormatDistanceWithOptions: CurriedFn3< + { + style?: string, + numeric?: string, + localeMatcher?: string, + locale?: string | string[], + unit?: string, + }, + Date | number, + Date | number, + string + >, + isAfter: CurriedFn2, + isBefore: CurriedFn2, + isDate: CurriedFn1, + isEqual: CurriedFn2, + isExists: CurriedFn3, + isFirstDayOfMonth: CurriedFn1, + isFriday: CurriedFn1, + isLastDayOfMonth: CurriedFn1, + isLeapYear: CurriedFn1, + isMatch: CurriedFn2, + isMatchWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + string, + boolean + >, + isMonday: CurriedFn1, + isSameDay: CurriedFn2, + isSameHour: CurriedFn2, + isSameISOWeek: CurriedFn2, + isSameISOWeekYear: CurriedFn2, + isSameMinute: CurriedFn2, + isSameMonth: CurriedFn2, + isSameQuarter: CurriedFn2, + isSameSecond: CurriedFn2, + isSameWeek: CurriedFn2, + isSameWeekWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + boolean + >, + isSameYear: CurriedFn2, + isSaturday: CurriedFn1, + isSunday: CurriedFn1, + isThursday: CurriedFn1, + isTuesday: CurriedFn1, + isValid: CurriedFn1, + isWednesday: CurriedFn1, + isWeekend: CurriedFn1, + isWithinInterval: CurriedFn2, + lastDayOfDecade: CurriedFn1, + lastDayOfISOWeek: CurriedFn1, + lastDayOfISOWeekYear: CurriedFn1, + lastDayOfMonth: CurriedFn1, + lastDayOfQuarter: CurriedFn1, + lastDayOfQuarterWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date + >, + lastDayOfWeek: CurriedFn1, + lastDayOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + lastDayOfYear: CurriedFn1, + lightFormat: CurriedFn2, + max: CurriedFn1<(Date | number)[], Date>, + milliseconds: CurriedFn1, + millisecondsToHours: CurriedFn1, + millisecondsToMinutes: CurriedFn1, + millisecondsToSeconds: CurriedFn1, + min: CurriedFn1<(Date | number)[], Date>, + minutesToHours: CurriedFn1, + minutesToMilliseconds: CurriedFn1, + minutesToSeconds: CurriedFn1, + monthsToQuarters: CurriedFn1, + monthsToYears: CurriedFn1, + nextDay: CurriedFn2, + nextFriday: CurriedFn1, + nextMonday: CurriedFn1, + nextSaturday: CurriedFn1, + nextSunday: CurriedFn1, + nextThursday: CurriedFn1, + nextTuesday: CurriedFn1, + nextWednesday: CurriedFn1, + parse: CurriedFn3, + parseISO: CurriedFn1, + parseISOWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + string, + Date + >, + parseJSON: CurriedFn1, + parseWithOptions: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + string, + string, + Date + >, + previousDay: CurriedFn2, + previousFriday: CurriedFn1, + previousMonday: CurriedFn1, + previousSaturday: CurriedFn1, + previousSunday: CurriedFn1, + previousThursday: CurriedFn1, + previousTuesday: CurriedFn1, + previousWednesday: CurriedFn1, + quartersToMonths: CurriedFn1, + quartersToYears: CurriedFn1, + roundToNearestMinutes: CurriedFn1, + roundToNearestMinutesWithOptions: CurriedFn2< + { + roundingMethod?: string, + nearestTo?: number, + }, + Date | number, + Date + >, + secondsToHours: CurriedFn1, + secondsToMilliseconds: CurriedFn1, + secondsToMinutes: CurriedFn1, + set: CurriedFn2< + { + milliseconds?: number, + seconds?: number, + minutes?: number, + hours?: number, + date?: number, + month?: number, + year?: number, + }, + Date | number, + Date + >, + setDate: CurriedFn2, + setDay: CurriedFn2, + setDayOfYear: CurriedFn2, + setDayWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setHours: CurriedFn2, + setISODay: CurriedFn2, + setISOWeek: CurriedFn2, + setISOWeekYear: CurriedFn2, + setMilliseconds: CurriedFn2, + setMinutes: CurriedFn2, + setMonth: CurriedFn2, + setQuarter: CurriedFn2, + setSeconds: CurriedFn2, + setWeek: CurriedFn2, + setWeekWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setWeekYear: CurriedFn2, + setWeekYearWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date + >, + setYear: CurriedFn2, + startOfDay: CurriedFn1, + startOfDecade: CurriedFn1, + startOfHour: CurriedFn1, + startOfISOWeek: CurriedFn1, + startOfISOWeekYear: CurriedFn1, + startOfMinute: CurriedFn1, + startOfMonth: CurriedFn1, + startOfQuarter: CurriedFn1, + startOfSecond: CurriedFn1, + startOfWeek: CurriedFn1, + startOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + startOfWeekYear: CurriedFn1, + startOfWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date + >, + startOfYear: CurriedFn1, + sub: CurriedFn2, + subBusinessDays: CurriedFn2, + subDays: CurriedFn2, + subHours: CurriedFn2, + subISOWeekYears: CurriedFn2, + subMilliseconds: CurriedFn2, + subMinutes: CurriedFn2, + subMonths: CurriedFn2, + subQuarters: CurriedFn2, + subSeconds: CurriedFn2, + subWeeks: CurriedFn2, + subYears: CurriedFn2, + toDate: CurriedFn1, + weeksToDays: CurriedFn1, + yearsToMonths: CurriedFn1, + yearsToQuarters: CurriedFn1, + daysInWeek: number, + daysInYear: number, + maxTime: number, + millisecondsInMinute: number, + millisecondsInHour: number, + millisecondsInSecond: number, + minTime: number, + minutesInHour: number, + monthsInQuarter: number, + monthsInYear: number, + quartersInYear: number, + secondsInHour: number, + secondsInMinute: number, + secondsInDay: number, + secondsInWeek: number, + secondsInYear: number, + secondsInMonth: number, + secondsInQuarter: number, +} diff --git a/node_modules/date-fns/fp/intervalToDuration/index.d.ts b/node_modules/date-fns/fp/intervalToDuration/index.d.ts new file mode 100644 index 00000000..4b2381d8 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intervalToDuration } from 'date-fns/fp' +export default intervalToDuration diff --git a/node_modules/date-fns/fp/intervalToDuration/index.js b/node_modules/date-fns/fp/intervalToDuration/index.js new file mode 100644 index 00000000..6467da16 --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../intervalToDuration/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/intervalToDuration/index.js.flow b/node_modules/date-fns/fp/intervalToDuration/index.js.flow new file mode 100644 index 00000000..88f6ff0b --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/intervalToDuration/package.json b/node_modules/date-fns/fp/intervalToDuration/package.json new file mode 100644 index 00000000..7e3fe0ca --- /dev/null +++ b/node_modules/date-fns/fp/intervalToDuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/intervalToDuration/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormat/index.d.ts b/node_modules/date-fns/fp/intlFormat/index.d.ts new file mode 100644 index 00000000..38f78a72 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormat } from 'date-fns/fp' +export default intlFormat diff --git a/node_modules/date-fns/fp/intlFormat/index.js b/node_modules/date-fns/fp/intlFormat/index.js new file mode 100644 index 00000000..cc94b970 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../intlFormat/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormat/index.js.flow b/node_modules/date-fns/fp/intlFormat/index.js.flow new file mode 100644 index 00000000..c104dcf9 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat/index.js.flow @@ -0,0 +1,88 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + locale?: string | string[], + }, + { + timeZone?: string, + hour12?: boolean, + formatMatcher?: 'basic' | 'best fit', + timeZoneName?: 'short' | 'long', + second?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + day?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + era?: 'narrow' | 'short' | 'long', + weekday?: 'narrow' | 'short' | 'long', + localeMatcher?: 'lookup' | 'best fit', + }, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/intlFormat/package.json b/node_modules/date-fns/fp/intlFormat/package.json new file mode 100644 index 00000000..daeef8f9 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormat/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/intlFormat/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormatDistance/index.d.ts b/node_modules/date-fns/fp/intlFormatDistance/index.d.ts new file mode 100644 index 00000000..4ce1b022 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistance } from 'date-fns/fp' +export default intlFormatDistance diff --git a/node_modules/date-fns/fp/intlFormatDistance/index.js b/node_modules/date-fns/fp/intlFormatDistance/index.js new file mode 100644 index 00000000..b26020a9 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../intlFormatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormatDistance/index.js.flow b/node_modules/date-fns/fp/intlFormatDistance/index.js.flow new file mode 100644 index 00000000..c4ef9a8d --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/intlFormatDistance/package.json b/node_modules/date-fns/fp/intlFormatDistance/package.json new file mode 100644 index 00000000..8f6e4edd --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistance/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/intlFormatDistance/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.d.ts b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.d.ts new file mode 100644 index 00000000..2b227f5f --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistanceWithOptions } from 'date-fns/fp' +export default intlFormatDistanceWithOptions diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js new file mode 100644 index 00000000..8a438005 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../intlFormatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js.flow b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js.flow new file mode 100644 index 00000000..1edd039f --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + style?: string, + numeric?: string, + localeMatcher?: string, + locale?: string | string[], + unit?: string, + }, + Date | number, + Date | number, + string +> diff --git a/node_modules/date-fns/fp/intlFormatDistanceWithOptions/package.json b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/package.json new file mode 100644 index 00000000..8df9a705 --- /dev/null +++ b/node_modules/date-fns/fp/intlFormatDistanceWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/intlFormatDistanceWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isAfter/index.d.ts b/node_modules/date-fns/fp/isAfter/index.d.ts new file mode 100644 index 00000000..de8ba729 --- /dev/null +++ b/node_modules/date-fns/fp/isAfter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isAfter } from 'date-fns/fp' +export default isAfter diff --git a/node_modules/date-fns/fp/isAfter/index.js b/node_modules/date-fns/fp/isAfter/index.js new file mode 100644 index 00000000..af809635 --- /dev/null +++ b/node_modules/date-fns/fp/isAfter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isAfter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isAfter/index.js.flow b/node_modules/date-fns/fp/isAfter/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isAfter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isAfter/package.json b/node_modules/date-fns/fp/isAfter/package.json new file mode 100644 index 00000000..3dbc8574 --- /dev/null +++ b/node_modules/date-fns/fp/isAfter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isAfter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isBefore/index.d.ts b/node_modules/date-fns/fp/isBefore/index.d.ts new file mode 100644 index 00000000..d2891982 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isBefore } from 'date-fns/fp' +export default isBefore diff --git a/node_modules/date-fns/fp/isBefore/index.js b/node_modules/date-fns/fp/isBefore/index.js new file mode 100644 index 00000000..b7a17968 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isBefore/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isBefore/index.js.flow b/node_modules/date-fns/fp/isBefore/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isBefore/package.json b/node_modules/date-fns/fp/isBefore/package.json new file mode 100644 index 00000000..91b75359 --- /dev/null +++ b/node_modules/date-fns/fp/isBefore/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isBefore/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isDate/index.d.ts b/node_modules/date-fns/fp/isDate/index.d.ts new file mode 100644 index 00000000..6f120ce9 --- /dev/null +++ b/node_modules/date-fns/fp/isDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isDate } from 'date-fns/fp' +export default isDate diff --git a/node_modules/date-fns/fp/isDate/index.js b/node_modules/date-fns/fp/isDate/index.js new file mode 100644 index 00000000..ed8c43fe --- /dev/null +++ b/node_modules/date-fns/fp/isDate/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isDate/index.js.flow b/node_modules/date-fns/fp/isDate/index.js.flow new file mode 100644 index 00000000..62e70e24 --- /dev/null +++ b/node_modules/date-fns/fp/isDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isDate/package.json b/node_modules/date-fns/fp/isDate/package.json new file mode 100644 index 00000000..3a6d7bd0 --- /dev/null +++ b/node_modules/date-fns/fp/isDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isDate/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isEqual/index.d.ts b/node_modules/date-fns/fp/isEqual/index.d.ts new file mode 100644 index 00000000..b21d3989 --- /dev/null +++ b/node_modules/date-fns/fp/isEqual/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isEqual } from 'date-fns/fp' +export default isEqual diff --git a/node_modules/date-fns/fp/isEqual/index.js b/node_modules/date-fns/fp/isEqual/index.js new file mode 100644 index 00000000..ea5f5924 --- /dev/null +++ b/node_modules/date-fns/fp/isEqual/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isEqual/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isEqual/index.js.flow b/node_modules/date-fns/fp/isEqual/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isEqual/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isEqual/package.json b/node_modules/date-fns/fp/isEqual/package.json new file mode 100644 index 00000000..ef9027c7 --- /dev/null +++ b/node_modules/date-fns/fp/isEqual/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isEqual/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isExists/index.d.ts b/node_modules/date-fns/fp/isExists/index.d.ts new file mode 100644 index 00000000..e4ccb78e --- /dev/null +++ b/node_modules/date-fns/fp/isExists/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isExists } from 'date-fns/fp' +export default isExists diff --git a/node_modules/date-fns/fp/isExists/index.js b/node_modules/date-fns/fp/isExists/index.js new file mode 100644 index 00000000..001cd812 --- /dev/null +++ b/node_modules/date-fns/fp/isExists/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isExists/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isExists/index.js.flow b/node_modules/date-fns/fp/isExists/index.js.flow new file mode 100644 index 00000000..2af9fe9a --- /dev/null +++ b/node_modules/date-fns/fp/isExists/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3 diff --git a/node_modules/date-fns/fp/isExists/package.json b/node_modules/date-fns/fp/isExists/package.json new file mode 100644 index 00000000..a5885cea --- /dev/null +++ b/node_modules/date-fns/fp/isExists/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isExists/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth/index.d.ts b/node_modules/date-fns/fp/isFirstDayOfMonth/index.d.ts new file mode 100644 index 00000000..e097310d --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFirstDayOfMonth } from 'date-fns/fp' +export default isFirstDayOfMonth diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth/index.js b/node_modules/date-fns/fp/isFirstDayOfMonth/index.js new file mode 100644 index 00000000..57d8b55b --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isFirstDayOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth/index.js.flow b/node_modules/date-fns/fp/isFirstDayOfMonth/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isFirstDayOfMonth/package.json b/node_modules/date-fns/fp/isFirstDayOfMonth/package.json new file mode 100644 index 00000000..f7ec9e5a --- /dev/null +++ b/node_modules/date-fns/fp/isFirstDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isFirstDayOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isFriday/index.d.ts b/node_modules/date-fns/fp/isFriday/index.d.ts new file mode 100644 index 00000000..cdab1b14 --- /dev/null +++ b/node_modules/date-fns/fp/isFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFriday } from 'date-fns/fp' +export default isFriday diff --git a/node_modules/date-fns/fp/isFriday/index.js b/node_modules/date-fns/fp/isFriday/index.js new file mode 100644 index 00000000..0fb469f1 --- /dev/null +++ b/node_modules/date-fns/fp/isFriday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isFriday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isFriday/index.js.flow b/node_modules/date-fns/fp/isFriday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isFriday/package.json b/node_modules/date-fns/fp/isFriday/package.json new file mode 100644 index 00000000..5c78fdcd --- /dev/null +++ b/node_modules/date-fns/fp/isFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isFriday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isLastDayOfMonth/index.d.ts b/node_modules/date-fns/fp/isLastDayOfMonth/index.d.ts new file mode 100644 index 00000000..33750f0b --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLastDayOfMonth } from 'date-fns/fp' +export default isLastDayOfMonth diff --git a/node_modules/date-fns/fp/isLastDayOfMonth/index.js b/node_modules/date-fns/fp/isLastDayOfMonth/index.js new file mode 100644 index 00000000..e3e0560d --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isLastDayOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isLastDayOfMonth/index.js.flow b/node_modules/date-fns/fp/isLastDayOfMonth/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isLastDayOfMonth/package.json b/node_modules/date-fns/fp/isLastDayOfMonth/package.json new file mode 100644 index 00000000..f48ee0d0 --- /dev/null +++ b/node_modules/date-fns/fp/isLastDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isLastDayOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isLeapYear/index.d.ts b/node_modules/date-fns/fp/isLeapYear/index.d.ts new file mode 100644 index 00000000..c92bce33 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLeapYear } from 'date-fns/fp' +export default isLeapYear diff --git a/node_modules/date-fns/fp/isLeapYear/index.js b/node_modules/date-fns/fp/isLeapYear/index.js new file mode 100644 index 00000000..4ec4df0f --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isLeapYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isLeapYear/index.js.flow b/node_modules/date-fns/fp/isLeapYear/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isLeapYear/package.json b/node_modules/date-fns/fp/isLeapYear/package.json new file mode 100644 index 00000000..cf9f161b --- /dev/null +++ b/node_modules/date-fns/fp/isLeapYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isLeapYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMatch/index.d.ts b/node_modules/date-fns/fp/isMatch/index.d.ts new file mode 100644 index 00000000..5085afac --- /dev/null +++ b/node_modules/date-fns/fp/isMatch/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatch } from 'date-fns/fp' +export default isMatch diff --git a/node_modules/date-fns/fp/isMatch/index.js b/node_modules/date-fns/fp/isMatch/index.js new file mode 100644 index 00000000..2009217c --- /dev/null +++ b/node_modules/date-fns/fp/isMatch/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isMatch/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMatch/index.js.flow b/node_modules/date-fns/fp/isMatch/index.js.flow new file mode 100644 index 00000000..9eb7ae04 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isMatch/package.json b/node_modules/date-fns/fp/isMatch/package.json new file mode 100644 index 00000000..3394bed7 --- /dev/null +++ b/node_modules/date-fns/fp/isMatch/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isMatch/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMatchWithOptions/index.d.ts b/node_modules/date-fns/fp/isMatchWithOptions/index.d.ts new file mode 100644 index 00000000..4645250d --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatchWithOptions } from 'date-fns/fp' +export default isMatchWithOptions diff --git a/node_modules/date-fns/fp/isMatchWithOptions/index.js b/node_modules/date-fns/fp/isMatchWithOptions/index.js new file mode 100644 index 00000000..ee911a32 --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isMatch/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMatchWithOptions/index.js.flow b/node_modules/date-fns/fp/isMatchWithOptions/index.js.flow new file mode 100644 index 00000000..5b2b8693 --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions/index.js.flow @@ -0,0 +1,78 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + string, + string, + boolean +> diff --git a/node_modules/date-fns/fp/isMatchWithOptions/package.json b/node_modules/date-fns/fp/isMatchWithOptions/package.json new file mode 100644 index 00000000..47618ada --- /dev/null +++ b/node_modules/date-fns/fp/isMatchWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isMatchWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMonday/index.d.ts b/node_modules/date-fns/fp/isMonday/index.d.ts new file mode 100644 index 00000000..550bbb0d --- /dev/null +++ b/node_modules/date-fns/fp/isMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMonday } from 'date-fns/fp' +export default isMonday diff --git a/node_modules/date-fns/fp/isMonday/index.js b/node_modules/date-fns/fp/isMonday/index.js new file mode 100644 index 00000000..31690a99 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isMonday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isMonday/index.js.flow b/node_modules/date-fns/fp/isMonday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isMonday/package.json b/node_modules/date-fns/fp/isMonday/package.json new file mode 100644 index 00000000..177e3c51 --- /dev/null +++ b/node_modules/date-fns/fp/isMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isMonday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameDay/index.d.ts b/node_modules/date-fns/fp/isSameDay/index.d.ts new file mode 100644 index 00000000..d7c74c72 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameDay } from 'date-fns/fp' +export default isSameDay diff --git a/node_modules/date-fns/fp/isSameDay/index.js b/node_modules/date-fns/fp/isSameDay/index.js new file mode 100644 index 00000000..b6c14bde --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameDay/index.js.flow b/node_modules/date-fns/fp/isSameDay/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameDay/package.json b/node_modules/date-fns/fp/isSameDay/package.json new file mode 100644 index 00000000..924882b5 --- /dev/null +++ b/node_modules/date-fns/fp/isSameDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameHour/index.d.ts b/node_modules/date-fns/fp/isSameHour/index.d.ts new file mode 100644 index 00000000..ff4dacbb --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameHour } from 'date-fns/fp' +export default isSameHour diff --git a/node_modules/date-fns/fp/isSameHour/index.js b/node_modules/date-fns/fp/isSameHour/index.js new file mode 100644 index 00000000..da408d99 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameHour/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameHour/index.js.flow b/node_modules/date-fns/fp/isSameHour/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameHour/package.json b/node_modules/date-fns/fp/isSameHour/package.json new file mode 100644 index 00000000..79b32d74 --- /dev/null +++ b/node_modules/date-fns/fp/isSameHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameHour/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameISOWeek/index.d.ts b/node_modules/date-fns/fp/isSameISOWeek/index.d.ts new file mode 100644 index 00000000..41c5426b --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeek } from 'date-fns/fp' +export default isSameISOWeek diff --git a/node_modules/date-fns/fp/isSameISOWeek/index.js b/node_modules/date-fns/fp/isSameISOWeek/index.js new file mode 100644 index 00000000..a92cae28 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameISOWeek/index.js.flow b/node_modules/date-fns/fp/isSameISOWeek/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameISOWeek/package.json b/node_modules/date-fns/fp/isSameISOWeek/package.json new file mode 100644 index 00000000..3784c8ee --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameISOWeekYear/index.d.ts b/node_modules/date-fns/fp/isSameISOWeekYear/index.d.ts new file mode 100644 index 00000000..f9f65c0b --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeekYear } from 'date-fns/fp' +export default isSameISOWeekYear diff --git a/node_modules/date-fns/fp/isSameISOWeekYear/index.js b/node_modules/date-fns/fp/isSameISOWeekYear/index.js new file mode 100644 index 00000000..c5d0f8a7 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameISOWeekYear/index.js.flow b/node_modules/date-fns/fp/isSameISOWeekYear/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameISOWeekYear/package.json b/node_modules/date-fns/fp/isSameISOWeekYear/package.json new file mode 100644 index 00000000..c46e15ed --- /dev/null +++ b/node_modules/date-fns/fp/isSameISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameMinute/index.d.ts b/node_modules/date-fns/fp/isSameMinute/index.d.ts new file mode 100644 index 00000000..b19be2ae --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMinute } from 'date-fns/fp' +export default isSameMinute diff --git a/node_modules/date-fns/fp/isSameMinute/index.js b/node_modules/date-fns/fp/isSameMinute/index.js new file mode 100644 index 00000000..4253b8f6 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameMinute/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameMinute/index.js.flow b/node_modules/date-fns/fp/isSameMinute/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameMinute/package.json b/node_modules/date-fns/fp/isSameMinute/package.json new file mode 100644 index 00000000..9ea516a9 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameMinute/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameMonth/index.d.ts b/node_modules/date-fns/fp/isSameMonth/index.d.ts new file mode 100644 index 00000000..1c29c87a --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMonth } from 'date-fns/fp' +export default isSameMonth diff --git a/node_modules/date-fns/fp/isSameMonth/index.js b/node_modules/date-fns/fp/isSameMonth/index.js new file mode 100644 index 00000000..867a5483 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameMonth/index.js.flow b/node_modules/date-fns/fp/isSameMonth/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameMonth/package.json b/node_modules/date-fns/fp/isSameMonth/package.json new file mode 100644 index 00000000..adaeb531 --- /dev/null +++ b/node_modules/date-fns/fp/isSameMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameQuarter/index.d.ts b/node_modules/date-fns/fp/isSameQuarter/index.d.ts new file mode 100644 index 00000000..6fe36a58 --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameQuarter } from 'date-fns/fp' +export default isSameQuarter diff --git a/node_modules/date-fns/fp/isSameQuarter/index.js b/node_modules/date-fns/fp/isSameQuarter/index.js new file mode 100644 index 00000000..c199924d --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameQuarter/index.js.flow b/node_modules/date-fns/fp/isSameQuarter/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameQuarter/package.json b/node_modules/date-fns/fp/isSameQuarter/package.json new file mode 100644 index 00000000..3d70daba --- /dev/null +++ b/node_modules/date-fns/fp/isSameQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameSecond/index.d.ts b/node_modules/date-fns/fp/isSameSecond/index.d.ts new file mode 100644 index 00000000..b65413a7 --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameSecond } from 'date-fns/fp' +export default isSameSecond diff --git a/node_modules/date-fns/fp/isSameSecond/index.js b/node_modules/date-fns/fp/isSameSecond/index.js new file mode 100644 index 00000000..825c52ba --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameSecond/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameSecond/index.js.flow b/node_modules/date-fns/fp/isSameSecond/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameSecond/package.json b/node_modules/date-fns/fp/isSameSecond/package.json new file mode 100644 index 00000000..7ed1e5dc --- /dev/null +++ b/node_modules/date-fns/fp/isSameSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameSecond/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameWeek/index.d.ts b/node_modules/date-fns/fp/isSameWeek/index.d.ts new file mode 100644 index 00000000..e6b37fa5 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeek } from 'date-fns/fp' +export default isSameWeek diff --git a/node_modules/date-fns/fp/isSameWeek/index.js b/node_modules/date-fns/fp/isSameWeek/index.js new file mode 100644 index 00000000..f80666b1 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameWeek/index.js.flow b/node_modules/date-fns/fp/isSameWeek/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameWeek/package.json b/node_modules/date-fns/fp/isSameWeek/package.json new file mode 100644 index 00000000..aee7db98 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/isSameWeekWithOptions/index.d.ts new file mode 100644 index 00000000..240b654b --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeekWithOptions } from 'date-fns/fp' +export default isSameWeekWithOptions diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions/index.js b/node_modules/date-fns/fp/isSameWeekWithOptions/index.js new file mode 100644 index 00000000..7bdbe9ca --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/isSameWeekWithOptions/index.js.flow new file mode 100644 index 00000000..154b8949 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date | number, + boolean +> diff --git a/node_modules/date-fns/fp/isSameWeekWithOptions/package.json b/node_modules/date-fns/fp/isSameWeekWithOptions/package.json new file mode 100644 index 00000000..c201ac99 --- /dev/null +++ b/node_modules/date-fns/fp/isSameWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameYear/index.d.ts b/node_modules/date-fns/fp/isSameYear/index.d.ts new file mode 100644 index 00000000..da9db072 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameYear } from 'date-fns/fp' +export default isSameYear diff --git a/node_modules/date-fns/fp/isSameYear/index.js b/node_modules/date-fns/fp/isSameYear/index.js new file mode 100644 index 00000000..bb86fb43 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSameYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSameYear/index.js.flow b/node_modules/date-fns/fp/isSameYear/index.js.flow new file mode 100644 index 00000000..38638c40 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isSameYear/package.json b/node_modules/date-fns/fp/isSameYear/package.json new file mode 100644 index 00000000..297d7799 --- /dev/null +++ b/node_modules/date-fns/fp/isSameYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSameYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSaturday/index.d.ts b/node_modules/date-fns/fp/isSaturday/index.d.ts new file mode 100644 index 00000000..d6c100aa --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSaturday } from 'date-fns/fp' +export default isSaturday diff --git a/node_modules/date-fns/fp/isSaturday/index.js b/node_modules/date-fns/fp/isSaturday/index.js new file mode 100644 index 00000000..1201261d --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSaturday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSaturday/index.js.flow b/node_modules/date-fns/fp/isSaturday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isSaturday/package.json b/node_modules/date-fns/fp/isSaturday/package.json new file mode 100644 index 00000000..ab6efa35 --- /dev/null +++ b/node_modules/date-fns/fp/isSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSaturday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSunday/index.d.ts b/node_modules/date-fns/fp/isSunday/index.d.ts new file mode 100644 index 00000000..d5ff84fa --- /dev/null +++ b/node_modules/date-fns/fp/isSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSunday } from 'date-fns/fp' +export default isSunday diff --git a/node_modules/date-fns/fp/isSunday/index.js b/node_modules/date-fns/fp/isSunday/index.js new file mode 100644 index 00000000..cf14fd77 --- /dev/null +++ b/node_modules/date-fns/fp/isSunday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isSunday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isSunday/index.js.flow b/node_modules/date-fns/fp/isSunday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isSunday/package.json b/node_modules/date-fns/fp/isSunday/package.json new file mode 100644 index 00000000..44b2f277 --- /dev/null +++ b/node_modules/date-fns/fp/isSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isSunday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isThursday/index.d.ts b/node_modules/date-fns/fp/isThursday/index.d.ts new file mode 100644 index 00000000..5f7c57c4 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThursday } from 'date-fns/fp' +export default isThursday diff --git a/node_modules/date-fns/fp/isThursday/index.js b/node_modules/date-fns/fp/isThursday/index.js new file mode 100644 index 00000000..40f2ed32 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isThursday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isThursday/index.js.flow b/node_modules/date-fns/fp/isThursday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isThursday/package.json b/node_modules/date-fns/fp/isThursday/package.json new file mode 100644 index 00000000..e7802a5b --- /dev/null +++ b/node_modules/date-fns/fp/isThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isThursday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isTuesday/index.d.ts b/node_modules/date-fns/fp/isTuesday/index.d.ts new file mode 100644 index 00000000..3a652b6d --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTuesday } from 'date-fns/fp' +export default isTuesday diff --git a/node_modules/date-fns/fp/isTuesday/index.js b/node_modules/date-fns/fp/isTuesday/index.js new file mode 100644 index 00000000..51f39400 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isTuesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isTuesday/index.js.flow b/node_modules/date-fns/fp/isTuesday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isTuesday/package.json b/node_modules/date-fns/fp/isTuesday/package.json new file mode 100644 index 00000000..79cd0eed --- /dev/null +++ b/node_modules/date-fns/fp/isTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isTuesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isValid/index.d.ts b/node_modules/date-fns/fp/isValid/index.d.ts new file mode 100644 index 00000000..42a84322 --- /dev/null +++ b/node_modules/date-fns/fp/isValid/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isValid } from 'date-fns/fp' +export default isValid diff --git a/node_modules/date-fns/fp/isValid/index.js b/node_modules/date-fns/fp/isValid/index.js new file mode 100644 index 00000000..a5d75267 --- /dev/null +++ b/node_modules/date-fns/fp/isValid/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isValid/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isValid/index.js.flow b/node_modules/date-fns/fp/isValid/index.js.flow new file mode 100644 index 00000000..62e70e24 --- /dev/null +++ b/node_modules/date-fns/fp/isValid/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isValid/package.json b/node_modules/date-fns/fp/isValid/package.json new file mode 100644 index 00000000..8bd7796d --- /dev/null +++ b/node_modules/date-fns/fp/isValid/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isValid/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWednesday/index.d.ts b/node_modules/date-fns/fp/isWednesday/index.d.ts new file mode 100644 index 00000000..9752d6a9 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWednesday } from 'date-fns/fp' +export default isWednesday diff --git a/node_modules/date-fns/fp/isWednesday/index.js b/node_modules/date-fns/fp/isWednesday/index.js new file mode 100644 index 00000000..7eaae096 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isWednesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWednesday/index.js.flow b/node_modules/date-fns/fp/isWednesday/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isWednesday/package.json b/node_modules/date-fns/fp/isWednesday/package.json new file mode 100644 index 00000000..ff83af4c --- /dev/null +++ b/node_modules/date-fns/fp/isWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isWednesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWeekend/index.d.ts b/node_modules/date-fns/fp/isWeekend/index.d.ts new file mode 100644 index 00000000..ff6c8a3e --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWeekend } from 'date-fns/fp' +export default isWeekend diff --git a/node_modules/date-fns/fp/isWeekend/index.js b/node_modules/date-fns/fp/isWeekend/index.js new file mode 100644 index 00000000..1587c74c --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isWeekend/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWeekend/index.js.flow b/node_modules/date-fns/fp/isWeekend/index.js.flow new file mode 100644 index 00000000..8f53be61 --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/isWeekend/package.json b/node_modules/date-fns/fp/isWeekend/package.json new file mode 100644 index 00000000..97cd751b --- /dev/null +++ b/node_modules/date-fns/fp/isWeekend/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isWeekend/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWithinInterval/index.d.ts b/node_modules/date-fns/fp/isWithinInterval/index.d.ts new file mode 100644 index 00000000..c3b3c9b3 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWithinInterval } from 'date-fns/fp' +export default isWithinInterval diff --git a/node_modules/date-fns/fp/isWithinInterval/index.js b/node_modules/date-fns/fp/isWithinInterval/index.js new file mode 100644 index 00000000..696a6a64 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../isWithinInterval/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/isWithinInterval/index.js.flow b/node_modules/date-fns/fp/isWithinInterval/index.js.flow new file mode 100644 index 00000000..8b45a5e1 --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/isWithinInterval/package.json b/node_modules/date-fns/fp/isWithinInterval/package.json new file mode 100644 index 00000000..ea9be81e --- /dev/null +++ b/node_modules/date-fns/fp/isWithinInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/isWithinInterval/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfDecade/index.d.ts b/node_modules/date-fns/fp/lastDayOfDecade/index.d.ts new file mode 100644 index 00000000..6b32f463 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfDecade } from 'date-fns/fp' +export default lastDayOfDecade diff --git a/node_modules/date-fns/fp/lastDayOfDecade/index.js b/node_modules/date-fns/fp/lastDayOfDecade/index.js new file mode 100644 index 00000000..64ca916d --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfDecade/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfDecade/index.js.flow b/node_modules/date-fns/fp/lastDayOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfDecade/package.json b/node_modules/date-fns/fp/lastDayOfDecade/package.json new file mode 100644 index 00000000..ba0ce496 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfDecade/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek/index.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeek/index.d.ts new file mode 100644 index 00000000..13d7cbe0 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeek } from 'date-fns/fp' +export default lastDayOfISOWeek diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek/index.js b/node_modules/date-fns/fp/lastDayOfISOWeek/index.js new file mode 100644 index 00000000..203bf274 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek/index.js.flow b/node_modules/date-fns/fp/lastDayOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfISOWeek/package.json b/node_modules/date-fns/fp/lastDayOfISOWeek/package.json new file mode 100644 index 00000000..7f91835b --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.d.ts b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..8e75ca7f --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeekYear } from 'date-fns/fp' +export default lastDayOfISOWeekYear diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js new file mode 100644 index 00000000..9263cb6a --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js.flow b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfISOWeekYear/package.json b/node_modules/date-fns/fp/lastDayOfISOWeekYear/package.json new file mode 100644 index 00000000..fb0e10d0 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfMonth/index.d.ts b/node_modules/date-fns/fp/lastDayOfMonth/index.d.ts new file mode 100644 index 00000000..1a65a147 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfMonth } from 'date-fns/fp' +export default lastDayOfMonth diff --git a/node_modules/date-fns/fp/lastDayOfMonth/index.js b/node_modules/date-fns/fp/lastDayOfMonth/index.js new file mode 100644 index 00000000..80c2ab76 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfMonth/index.js.flow b/node_modules/date-fns/fp/lastDayOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfMonth/package.json b/node_modules/date-fns/fp/lastDayOfMonth/package.json new file mode 100644 index 00000000..a9cbc806 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfQuarter/index.d.ts b/node_modules/date-fns/fp/lastDayOfQuarter/index.d.ts new file mode 100644 index 00000000..27f41a81 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarter } from 'date-fns/fp' +export default lastDayOfQuarter diff --git a/node_modules/date-fns/fp/lastDayOfQuarter/index.js b/node_modules/date-fns/fp/lastDayOfQuarter/index.js new file mode 100644 index 00000000..2d548099 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfQuarter/index.js.flow b/node_modules/date-fns/fp/lastDayOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfQuarter/package.json b/node_modules/date-fns/fp/lastDayOfQuarter/package.json new file mode 100644 index 00000000..576786b6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.d.ts b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.d.ts new file mode 100644 index 00000000..4327d12c --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarterWithOptions } from 'date-fns/fp' +export default lastDayOfQuarterWithOptions diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js new file mode 100644 index 00000000..3c7d624e --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js.flow b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js.flow new file mode 100644 index 00000000..4b6d0d46 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/package.json b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/package.json new file mode 100644 index 00000000..1d69732f --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfQuarterWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfQuarterWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfWeek/index.d.ts b/node_modules/date-fns/fp/lastDayOfWeek/index.d.ts new file mode 100644 index 00000000..0d79da71 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeek } from 'date-fns/fp' +export default lastDayOfWeek diff --git a/node_modules/date-fns/fp/lastDayOfWeek/index.js b/node_modules/date-fns/fp/lastDayOfWeek/index.js new file mode 100644 index 00000000..befb2ab0 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfWeek/index.js.flow b/node_modules/date-fns/fp/lastDayOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfWeek/package.json b/node_modules/date-fns/fp/lastDayOfWeek/package.json new file mode 100644 index 00000000..88f2d1d4 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..57195246 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeekWithOptions } from 'date-fns/fp' +export default lastDayOfWeekWithOptions diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js new file mode 100644 index 00000000..cf67c9a4 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/lastDayOfWeekWithOptions/package.json b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/package.json new file mode 100644 index 00000000..6d9195f7 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfYear/index.d.ts b/node_modules/date-fns/fp/lastDayOfYear/index.d.ts new file mode 100644 index 00000000..340473ee --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfYear } from 'date-fns/fp' +export default lastDayOfYear diff --git a/node_modules/date-fns/fp/lastDayOfYear/index.js b/node_modules/date-fns/fp/lastDayOfYear/index.js new file mode 100644 index 00000000..b3584715 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lastDayOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lastDayOfYear/index.js.flow b/node_modules/date-fns/fp/lastDayOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/lastDayOfYear/package.json b/node_modules/date-fns/fp/lastDayOfYear/package.json new file mode 100644 index 00000000..c49d3346 --- /dev/null +++ b/node_modules/date-fns/fp/lastDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lastDayOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/lightFormat/index.d.ts b/node_modules/date-fns/fp/lightFormat/index.d.ts new file mode 100644 index 00000000..843b7fdf --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lightFormat } from 'date-fns/fp' +export default lightFormat diff --git a/node_modules/date-fns/fp/lightFormat/index.js b/node_modules/date-fns/fp/lightFormat/index.js new file mode 100644 index 00000000..0b550b26 --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../lightFormat/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/lightFormat/index.js.flow b/node_modules/date-fns/fp/lightFormat/index.js.flow new file mode 100644 index 00000000..013f277c --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/lightFormat/package.json b/node_modules/date-fns/fp/lightFormat/package.json new file mode 100644 index 00000000..cc914e51 --- /dev/null +++ b/node_modules/date-fns/fp/lightFormat/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/lightFormat/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/max/index.d.ts b/node_modules/date-fns/fp/max/index.d.ts new file mode 100644 index 00000000..000bf1dc --- /dev/null +++ b/node_modules/date-fns/fp/max/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { max } from 'date-fns/fp' +export default max diff --git a/node_modules/date-fns/fp/max/index.js b/node_modules/date-fns/fp/max/index.js new file mode 100644 index 00000000..562db232 --- /dev/null +++ b/node_modules/date-fns/fp/max/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../max/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/max/index.js.flow b/node_modules/date-fns/fp/max/index.js.flow new file mode 100644 index 00000000..dc666896 --- /dev/null +++ b/node_modules/date-fns/fp/max/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1<(Date | number)[], Date> diff --git a/node_modules/date-fns/fp/max/package.json b/node_modules/date-fns/fp/max/package.json new file mode 100644 index 00000000..b887c1d3 --- /dev/null +++ b/node_modules/date-fns/fp/max/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/max/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/milliseconds/index.d.ts b/node_modules/date-fns/fp/milliseconds/index.d.ts new file mode 100644 index 00000000..2552885b --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { milliseconds } from 'date-fns/fp' +export default milliseconds diff --git a/node_modules/date-fns/fp/milliseconds/index.js b/node_modules/date-fns/fp/milliseconds/index.js new file mode 100644 index 00000000..db411c5b --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../milliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/milliseconds/index.js.flow b/node_modules/date-fns/fp/milliseconds/index.js.flow new file mode 100644 index 00000000..a025a673 --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/milliseconds/package.json b/node_modules/date-fns/fp/milliseconds/package.json new file mode 100644 index 00000000..f50e3dd2 --- /dev/null +++ b/node_modules/date-fns/fp/milliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/milliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToHours/index.d.ts b/node_modules/date-fns/fp/millisecondsToHours/index.d.ts new file mode 100644 index 00000000..0ee68633 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToHours } from 'date-fns/fp' +export default millisecondsToHours diff --git a/node_modules/date-fns/fp/millisecondsToHours/index.js b/node_modules/date-fns/fp/millisecondsToHours/index.js new file mode 100644 index 00000000..d742cc5f --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../millisecondsToHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToHours/index.js.flow b/node_modules/date-fns/fp/millisecondsToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/millisecondsToHours/package.json b/node_modules/date-fns/fp/millisecondsToHours/package.json new file mode 100644 index 00000000..2de8a7d4 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/millisecondsToHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToMinutes/index.d.ts b/node_modules/date-fns/fp/millisecondsToMinutes/index.d.ts new file mode 100644 index 00000000..de847006 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToMinutes } from 'date-fns/fp' +export default millisecondsToMinutes diff --git a/node_modules/date-fns/fp/millisecondsToMinutes/index.js b/node_modules/date-fns/fp/millisecondsToMinutes/index.js new file mode 100644 index 00000000..cabda23b --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../millisecondsToMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToMinutes/index.js.flow b/node_modules/date-fns/fp/millisecondsToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/millisecondsToMinutes/package.json b/node_modules/date-fns/fp/millisecondsToMinutes/package.json new file mode 100644 index 00000000..7ba40fb0 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/millisecondsToMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToSeconds/index.d.ts b/node_modules/date-fns/fp/millisecondsToSeconds/index.d.ts new file mode 100644 index 00000000..99736c4b --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToSeconds } from 'date-fns/fp' +export default millisecondsToSeconds diff --git a/node_modules/date-fns/fp/millisecondsToSeconds/index.js b/node_modules/date-fns/fp/millisecondsToSeconds/index.js new file mode 100644 index 00000000..c4d077cd --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../millisecondsToSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/millisecondsToSeconds/index.js.flow b/node_modules/date-fns/fp/millisecondsToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/millisecondsToSeconds/package.json b/node_modules/date-fns/fp/millisecondsToSeconds/package.json new file mode 100644 index 00000000..bf3f77ef --- /dev/null +++ b/node_modules/date-fns/fp/millisecondsToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/millisecondsToSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/min/index.d.ts b/node_modules/date-fns/fp/min/index.d.ts new file mode 100644 index 00000000..b6661656 --- /dev/null +++ b/node_modules/date-fns/fp/min/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { min } from 'date-fns/fp' +export default min diff --git a/node_modules/date-fns/fp/min/index.js b/node_modules/date-fns/fp/min/index.js new file mode 100644 index 00000000..723b6bdf --- /dev/null +++ b/node_modules/date-fns/fp/min/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../min/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/min/index.js.flow b/node_modules/date-fns/fp/min/index.js.flow new file mode 100644 index 00000000..dc666896 --- /dev/null +++ b/node_modules/date-fns/fp/min/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1<(Date | number)[], Date> diff --git a/node_modules/date-fns/fp/min/package.json b/node_modules/date-fns/fp/min/package.json new file mode 100644 index 00000000..d282394e --- /dev/null +++ b/node_modules/date-fns/fp/min/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/min/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToHours/index.d.ts b/node_modules/date-fns/fp/minutesToHours/index.d.ts new file mode 100644 index 00000000..15aeb30c --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToHours } from 'date-fns/fp' +export default minutesToHours diff --git a/node_modules/date-fns/fp/minutesToHours/index.js b/node_modules/date-fns/fp/minutesToHours/index.js new file mode 100644 index 00000000..2ca6cdc8 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../minutesToHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToHours/index.js.flow b/node_modules/date-fns/fp/minutesToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/minutesToHours/package.json b/node_modules/date-fns/fp/minutesToHours/package.json new file mode 100644 index 00000000..83c65b7b --- /dev/null +++ b/node_modules/date-fns/fp/minutesToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/minutesToHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToMilliseconds/index.d.ts b/node_modules/date-fns/fp/minutesToMilliseconds/index.d.ts new file mode 100644 index 00000000..0b19d018 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToMilliseconds } from 'date-fns/fp' +export default minutesToMilliseconds diff --git a/node_modules/date-fns/fp/minutesToMilliseconds/index.js b/node_modules/date-fns/fp/minutesToMilliseconds/index.js new file mode 100644 index 00000000..9479610a --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../minutesToMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToMilliseconds/index.js.flow b/node_modules/date-fns/fp/minutesToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/minutesToMilliseconds/package.json b/node_modules/date-fns/fp/minutesToMilliseconds/package.json new file mode 100644 index 00000000..fb959db8 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/minutesToMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToSeconds/index.d.ts b/node_modules/date-fns/fp/minutesToSeconds/index.d.ts new file mode 100644 index 00000000..bc47b3f7 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToSeconds } from 'date-fns/fp' +export default minutesToSeconds diff --git a/node_modules/date-fns/fp/minutesToSeconds/index.js b/node_modules/date-fns/fp/minutesToSeconds/index.js new file mode 100644 index 00000000..ba5459ec --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../minutesToSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/minutesToSeconds/index.js.flow b/node_modules/date-fns/fp/minutesToSeconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/minutesToSeconds/package.json b/node_modules/date-fns/fp/minutesToSeconds/package.json new file mode 100644 index 00000000..0d8e5e6c --- /dev/null +++ b/node_modules/date-fns/fp/minutesToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/minutesToSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/monthsToQuarters/index.d.ts b/node_modules/date-fns/fp/monthsToQuarters/index.d.ts new file mode 100644 index 00000000..05ae53ce --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToQuarters } from 'date-fns/fp' +export default monthsToQuarters diff --git a/node_modules/date-fns/fp/monthsToQuarters/index.js b/node_modules/date-fns/fp/monthsToQuarters/index.js new file mode 100644 index 00000000..c9679c67 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../monthsToQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/monthsToQuarters/index.js.flow b/node_modules/date-fns/fp/monthsToQuarters/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/monthsToQuarters/package.json b/node_modules/date-fns/fp/monthsToQuarters/package.json new file mode 100644 index 00000000..68bc9a51 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/monthsToQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/monthsToYears/index.d.ts b/node_modules/date-fns/fp/monthsToYears/index.d.ts new file mode 100644 index 00000000..bc5f1134 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToYears } from 'date-fns/fp' +export default monthsToYears diff --git a/node_modules/date-fns/fp/monthsToYears/index.js b/node_modules/date-fns/fp/monthsToYears/index.js new file mode 100644 index 00000000..15c95adb --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../monthsToYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/monthsToYears/index.js.flow b/node_modules/date-fns/fp/monthsToYears/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/monthsToYears/package.json b/node_modules/date-fns/fp/monthsToYears/package.json new file mode 100644 index 00000000..10afb196 --- /dev/null +++ b/node_modules/date-fns/fp/monthsToYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/monthsToYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextDay/index.d.ts b/node_modules/date-fns/fp/nextDay/index.d.ts new file mode 100644 index 00000000..dc6cd80c --- /dev/null +++ b/node_modules/date-fns/fp/nextDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextDay } from 'date-fns/fp' +export default nextDay diff --git a/node_modules/date-fns/fp/nextDay/index.js b/node_modules/date-fns/fp/nextDay/index.js new file mode 100644 index 00000000..8538e50e --- /dev/null +++ b/node_modules/date-fns/fp/nextDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextDay/index.js.flow b/node_modules/date-fns/fp/nextDay/index.js.flow new file mode 100644 index 00000000..3d001b25 --- /dev/null +++ b/node_modules/date-fns/fp/nextDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/nextDay/package.json b/node_modules/date-fns/fp/nextDay/package.json new file mode 100644 index 00000000..9962ad2b --- /dev/null +++ b/node_modules/date-fns/fp/nextDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextFriday/index.d.ts b/node_modules/date-fns/fp/nextFriday/index.d.ts new file mode 100644 index 00000000..48e88ccf --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextFriday } from 'date-fns/fp' +export default nextFriday diff --git a/node_modules/date-fns/fp/nextFriday/index.js b/node_modules/date-fns/fp/nextFriday/index.js new file mode 100644 index 00000000..48578f40 --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextFriday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextFriday/index.js.flow b/node_modules/date-fns/fp/nextFriday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextFriday/package.json b/node_modules/date-fns/fp/nextFriday/package.json new file mode 100644 index 00000000..99a7fb1b --- /dev/null +++ b/node_modules/date-fns/fp/nextFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextFriday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextMonday/index.d.ts b/node_modules/date-fns/fp/nextMonday/index.d.ts new file mode 100644 index 00000000..50926c46 --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextMonday } from 'date-fns/fp' +export default nextMonday diff --git a/node_modules/date-fns/fp/nextMonday/index.js b/node_modules/date-fns/fp/nextMonday/index.js new file mode 100644 index 00000000..f0fa2058 --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextMonday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextMonday/index.js.flow b/node_modules/date-fns/fp/nextMonday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextMonday/package.json b/node_modules/date-fns/fp/nextMonday/package.json new file mode 100644 index 00000000..bcdaea38 --- /dev/null +++ b/node_modules/date-fns/fp/nextMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextMonday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextSaturday/index.d.ts b/node_modules/date-fns/fp/nextSaturday/index.d.ts new file mode 100644 index 00000000..5774aa57 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSaturday } from 'date-fns/fp' +export default nextSaturday diff --git a/node_modules/date-fns/fp/nextSaturday/index.js b/node_modules/date-fns/fp/nextSaturday/index.js new file mode 100644 index 00000000..748358e8 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextSaturday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextSaturday/index.js.flow b/node_modules/date-fns/fp/nextSaturday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextSaturday/package.json b/node_modules/date-fns/fp/nextSaturday/package.json new file mode 100644 index 00000000..83ab4e7a --- /dev/null +++ b/node_modules/date-fns/fp/nextSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextSaturday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextSunday/index.d.ts b/node_modules/date-fns/fp/nextSunday/index.d.ts new file mode 100644 index 00000000..acd1202d --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSunday } from 'date-fns/fp' +export default nextSunday diff --git a/node_modules/date-fns/fp/nextSunday/index.js b/node_modules/date-fns/fp/nextSunday/index.js new file mode 100644 index 00000000..caf24367 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextSunday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextSunday/index.js.flow b/node_modules/date-fns/fp/nextSunday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextSunday/package.json b/node_modules/date-fns/fp/nextSunday/package.json new file mode 100644 index 00000000..3916a904 --- /dev/null +++ b/node_modules/date-fns/fp/nextSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextSunday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextThursday/index.d.ts b/node_modules/date-fns/fp/nextThursday/index.d.ts new file mode 100644 index 00000000..1f2dcf06 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextThursday } from 'date-fns/fp' +export default nextThursday diff --git a/node_modules/date-fns/fp/nextThursday/index.js b/node_modules/date-fns/fp/nextThursday/index.js new file mode 100644 index 00000000..b9b41d60 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextThursday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextThursday/index.js.flow b/node_modules/date-fns/fp/nextThursday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextThursday/package.json b/node_modules/date-fns/fp/nextThursday/package.json new file mode 100644 index 00000000..8614b703 --- /dev/null +++ b/node_modules/date-fns/fp/nextThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextThursday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextTuesday/index.d.ts b/node_modules/date-fns/fp/nextTuesday/index.d.ts new file mode 100644 index 00000000..4842cc0c --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextTuesday } from 'date-fns/fp' +export default nextTuesday diff --git a/node_modules/date-fns/fp/nextTuesday/index.js b/node_modules/date-fns/fp/nextTuesday/index.js new file mode 100644 index 00000000..cf48e915 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextTuesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextTuesday/index.js.flow b/node_modules/date-fns/fp/nextTuesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextTuesday/package.json b/node_modules/date-fns/fp/nextTuesday/package.json new file mode 100644 index 00000000..27ccea06 --- /dev/null +++ b/node_modules/date-fns/fp/nextTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextTuesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextWednesday/index.d.ts b/node_modules/date-fns/fp/nextWednesday/index.d.ts new file mode 100644 index 00000000..800d5a50 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextWednesday } from 'date-fns/fp' +export default nextWednesday diff --git a/node_modules/date-fns/fp/nextWednesday/index.js b/node_modules/date-fns/fp/nextWednesday/index.js new file mode 100644 index 00000000..2878dee8 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../nextWednesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/nextWednesday/index.js.flow b/node_modules/date-fns/fp/nextWednesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/nextWednesday/package.json b/node_modules/date-fns/fp/nextWednesday/package.json new file mode 100644 index 00000000..6713c5e2 --- /dev/null +++ b/node_modules/date-fns/fp/nextWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/nextWednesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/package.json b/node_modules/date-fns/fp/package.json new file mode 100644 index 00000000..4bcc2413 --- /dev/null +++ b/node_modules/date-fns/fp/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/fp/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/parse/index.d.ts b/node_modules/date-fns/fp/parse/index.d.ts new file mode 100644 index 00000000..0d42228b --- /dev/null +++ b/node_modules/date-fns/fp/parse/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parse } from 'date-fns/fp' +export default parse diff --git a/node_modules/date-fns/fp/parse/index.js b/node_modules/date-fns/fp/parse/index.js new file mode 100644 index 00000000..639c2a27 --- /dev/null +++ b/node_modules/date-fns/fp/parse/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../parse/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/parse/index.js.flow b/node_modules/date-fns/fp/parse/index.js.flow new file mode 100644 index 00000000..7146666f --- /dev/null +++ b/node_modules/date-fns/fp/parse/index.js.flow @@ -0,0 +1,67 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3 diff --git a/node_modules/date-fns/fp/parse/package.json b/node_modules/date-fns/fp/parse/package.json new file mode 100644 index 00000000..d2088d10 --- /dev/null +++ b/node_modules/date-fns/fp/parse/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/parse/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseISO/index.d.ts b/node_modules/date-fns/fp/parseISO/index.d.ts new file mode 100644 index 00000000..f89741c4 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISO } from 'date-fns/fp' +export default parseISO diff --git a/node_modules/date-fns/fp/parseISO/index.js b/node_modules/date-fns/fp/parseISO/index.js new file mode 100644 index 00000000..eebe63e5 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../parseISO/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseISO/index.js.flow b/node_modules/date-fns/fp/parseISO/index.js.flow new file mode 100644 index 00000000..4d845937 --- /dev/null +++ b/node_modules/date-fns/fp/parseISO/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/parseISO/package.json b/node_modules/date-fns/fp/parseISO/package.json new file mode 100644 index 00000000..8c6745ca --- /dev/null +++ b/node_modules/date-fns/fp/parseISO/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/parseISO/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseISOWithOptions/index.d.ts b/node_modules/date-fns/fp/parseISOWithOptions/index.d.ts new file mode 100644 index 00000000..b90cbd3b --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISOWithOptions } from 'date-fns/fp' +export default parseISOWithOptions diff --git a/node_modules/date-fns/fp/parseISOWithOptions/index.js b/node_modules/date-fns/fp/parseISOWithOptions/index.js new file mode 100644 index 00000000..602e2c55 --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../parseISO/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseISOWithOptions/index.js.flow b/node_modules/date-fns/fp/parseISOWithOptions/index.js.flow new file mode 100644 index 00000000..d2d80caa --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions/index.js.flow @@ -0,0 +1,64 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2, + }, + string, + Date +> diff --git a/node_modules/date-fns/fp/parseISOWithOptions/package.json b/node_modules/date-fns/fp/parseISOWithOptions/package.json new file mode 100644 index 00000000..316d54f1 --- /dev/null +++ b/node_modules/date-fns/fp/parseISOWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/parseISOWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseJSON/index.d.ts b/node_modules/date-fns/fp/parseJSON/index.d.ts new file mode 100644 index 00000000..dd64334e --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseJSON } from 'date-fns/fp' +export default parseJSON diff --git a/node_modules/date-fns/fp/parseJSON/index.js b/node_modules/date-fns/fp/parseJSON/index.js new file mode 100644 index 00000000..a58fbcf2 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../parseJSON/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseJSON/index.js.flow b/node_modules/date-fns/fp/parseJSON/index.js.flow new file mode 100644 index 00000000..9b7f47a4 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/parseJSON/package.json b/node_modules/date-fns/fp/parseJSON/package.json new file mode 100644 index 00000000..6ccd2fb0 --- /dev/null +++ b/node_modules/date-fns/fp/parseJSON/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/parseJSON/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseWithOptions/index.d.ts b/node_modules/date-fns/fp/parseWithOptions/index.d.ts new file mode 100644 index 00000000..d33b4ae1 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseWithOptions } from 'date-fns/fp' +export default parseWithOptions diff --git a/node_modules/date-fns/fp/parseWithOptions/index.js b/node_modules/date-fns/fp/parseWithOptions/index.js new file mode 100644 index 00000000..578dca11 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../parse/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 4); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/parseWithOptions/index.js.flow b/node_modules/date-fns/fp/parseWithOptions/index.js.flow new file mode 100644 index 00000000..e767e62c --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions/index.js.flow @@ -0,0 +1,94 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +type CurriedFn4 = ( + a: A +) => + | CurriedFn3 + | (( + a: A, + b: B + ) => + | CurriedFn2 + | (( + a: A, + b: B, + c: C + ) => CurriedFn1 | ((a: A, b: B, c: C, d: D) => R))) + +declare module.exports: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean, + useAdditionalWeekYearTokens?: boolean, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + string, + string, + Date +> diff --git a/node_modules/date-fns/fp/parseWithOptions/package.json b/node_modules/date-fns/fp/parseWithOptions/package.json new file mode 100644 index 00000000..ae08f009 --- /dev/null +++ b/node_modules/date-fns/fp/parseWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/parseWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousDay/index.d.ts b/node_modules/date-fns/fp/previousDay/index.d.ts new file mode 100644 index 00000000..753808c2 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousDay } from 'date-fns/fp' +export default previousDay diff --git a/node_modules/date-fns/fp/previousDay/index.js b/node_modules/date-fns/fp/previousDay/index.js new file mode 100644 index 00000000..7a6ca10d --- /dev/null +++ b/node_modules/date-fns/fp/previousDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousDay/index.js.flow b/node_modules/date-fns/fp/previousDay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/previousDay/package.json b/node_modules/date-fns/fp/previousDay/package.json new file mode 100644 index 00000000..73c1af87 --- /dev/null +++ b/node_modules/date-fns/fp/previousDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousFriday/index.d.ts b/node_modules/date-fns/fp/previousFriday/index.d.ts new file mode 100644 index 00000000..847fd924 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousFriday } from 'date-fns/fp' +export default previousFriday diff --git a/node_modules/date-fns/fp/previousFriday/index.js b/node_modules/date-fns/fp/previousFriday/index.js new file mode 100644 index 00000000..8c648bce --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousFriday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousFriday/index.js.flow b/node_modules/date-fns/fp/previousFriday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousFriday/package.json b/node_modules/date-fns/fp/previousFriday/package.json new file mode 100644 index 00000000..7dada696 --- /dev/null +++ b/node_modules/date-fns/fp/previousFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousFriday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousMonday/index.d.ts b/node_modules/date-fns/fp/previousMonday/index.d.ts new file mode 100644 index 00000000..dd742b86 --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousMonday } from 'date-fns/fp' +export default previousMonday diff --git a/node_modules/date-fns/fp/previousMonday/index.js b/node_modules/date-fns/fp/previousMonday/index.js new file mode 100644 index 00000000..64d644cf --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousMonday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousMonday/index.js.flow b/node_modules/date-fns/fp/previousMonday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousMonday/package.json b/node_modules/date-fns/fp/previousMonday/package.json new file mode 100644 index 00000000..988d4bf1 --- /dev/null +++ b/node_modules/date-fns/fp/previousMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousMonday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousSaturday/index.d.ts b/node_modules/date-fns/fp/previousSaturday/index.d.ts new file mode 100644 index 00000000..61b0b785 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSaturday } from 'date-fns/fp' +export default previousSaturday diff --git a/node_modules/date-fns/fp/previousSaturday/index.js b/node_modules/date-fns/fp/previousSaturday/index.js new file mode 100644 index 00000000..0313305e --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousSaturday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousSaturday/index.js.flow b/node_modules/date-fns/fp/previousSaturday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousSaturday/package.json b/node_modules/date-fns/fp/previousSaturday/package.json new file mode 100644 index 00000000..da731ced --- /dev/null +++ b/node_modules/date-fns/fp/previousSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousSaturday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousSunday/index.d.ts b/node_modules/date-fns/fp/previousSunday/index.d.ts new file mode 100644 index 00000000..c52f02d9 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSunday } from 'date-fns/fp' +export default previousSunday diff --git a/node_modules/date-fns/fp/previousSunday/index.js b/node_modules/date-fns/fp/previousSunday/index.js new file mode 100644 index 00000000..fdb24a46 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousSunday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousSunday/index.js.flow b/node_modules/date-fns/fp/previousSunday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousSunday/package.json b/node_modules/date-fns/fp/previousSunday/package.json new file mode 100644 index 00000000..51500a32 --- /dev/null +++ b/node_modules/date-fns/fp/previousSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousSunday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousThursday/index.d.ts b/node_modules/date-fns/fp/previousThursday/index.d.ts new file mode 100644 index 00000000..8f54518e --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousThursday } from 'date-fns/fp' +export default previousThursday diff --git a/node_modules/date-fns/fp/previousThursday/index.js b/node_modules/date-fns/fp/previousThursday/index.js new file mode 100644 index 00000000..70ff5187 --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousThursday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousThursday/index.js.flow b/node_modules/date-fns/fp/previousThursday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousThursday/package.json b/node_modules/date-fns/fp/previousThursday/package.json new file mode 100644 index 00000000..4c3920e4 --- /dev/null +++ b/node_modules/date-fns/fp/previousThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousThursday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousTuesday/index.d.ts b/node_modules/date-fns/fp/previousTuesday/index.d.ts new file mode 100644 index 00000000..f801ca2b --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousTuesday } from 'date-fns/fp' +export default previousTuesday diff --git a/node_modules/date-fns/fp/previousTuesday/index.js b/node_modules/date-fns/fp/previousTuesday/index.js new file mode 100644 index 00000000..22b3ce2d --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousTuesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousTuesday/index.js.flow b/node_modules/date-fns/fp/previousTuesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousTuesday/package.json b/node_modules/date-fns/fp/previousTuesday/package.json new file mode 100644 index 00000000..84c24ca4 --- /dev/null +++ b/node_modules/date-fns/fp/previousTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousTuesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousWednesday/index.d.ts b/node_modules/date-fns/fp/previousWednesday/index.d.ts new file mode 100644 index 00000000..ac6226e9 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousWednesday } from 'date-fns/fp' +export default previousWednesday diff --git a/node_modules/date-fns/fp/previousWednesday/index.js b/node_modules/date-fns/fp/previousWednesday/index.js new file mode 100644 index 00000000..67dc313c --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../previousWednesday/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/previousWednesday/index.js.flow b/node_modules/date-fns/fp/previousWednesday/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/previousWednesday/package.json b/node_modules/date-fns/fp/previousWednesday/package.json new file mode 100644 index 00000000..b6915f0c --- /dev/null +++ b/node_modules/date-fns/fp/previousWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/previousWednesday/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/quartersToMonths/index.d.ts b/node_modules/date-fns/fp/quartersToMonths/index.d.ts new file mode 100644 index 00000000..07220e87 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToMonths } from 'date-fns/fp' +export default quartersToMonths diff --git a/node_modules/date-fns/fp/quartersToMonths/index.js b/node_modules/date-fns/fp/quartersToMonths/index.js new file mode 100644 index 00000000..3a7e78f2 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../quartersToMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/quartersToMonths/index.js.flow b/node_modules/date-fns/fp/quartersToMonths/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/quartersToMonths/package.json b/node_modules/date-fns/fp/quartersToMonths/package.json new file mode 100644 index 00000000..5efa8ea9 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/quartersToMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/quartersToYears/index.d.ts b/node_modules/date-fns/fp/quartersToYears/index.d.ts new file mode 100644 index 00000000..6613aeb1 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToYears } from 'date-fns/fp' +export default quartersToYears diff --git a/node_modules/date-fns/fp/quartersToYears/index.js b/node_modules/date-fns/fp/quartersToYears/index.js new file mode 100644 index 00000000..f2e83365 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../quartersToYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/quartersToYears/index.js.flow b/node_modules/date-fns/fp/quartersToYears/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/quartersToYears/package.json b/node_modules/date-fns/fp/quartersToYears/package.json new file mode 100644 index 00000000..1b528ee0 --- /dev/null +++ b/node_modules/date-fns/fp/quartersToYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/quartersToYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/roundToNearestMinutes/index.d.ts b/node_modules/date-fns/fp/roundToNearestMinutes/index.d.ts new file mode 100644 index 00000000..7777ce20 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutes } from 'date-fns/fp' +export default roundToNearestMinutes diff --git a/node_modules/date-fns/fp/roundToNearestMinutes/index.js b/node_modules/date-fns/fp/roundToNearestMinutes/index.js new file mode 100644 index 00000000..c718f60d --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../roundToNearestMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/roundToNearestMinutes/index.js.flow b/node_modules/date-fns/fp/roundToNearestMinutes/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/roundToNearestMinutes/package.json b/node_modules/date-fns/fp/roundToNearestMinutes/package.json new file mode 100644 index 00000000..ebde3a84 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/roundToNearestMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.d.ts b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.d.ts new file mode 100644 index 00000000..fcd4df49 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutesWithOptions } from 'date-fns/fp' +export default roundToNearestMinutesWithOptions diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js new file mode 100644 index 00000000..76a56d09 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../roundToNearestMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js.flow b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js.flow new file mode 100644 index 00000000..44085b1a --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + roundingMethod?: string, + nearestTo?: number, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/package.json b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/package.json new file mode 100644 index 00000000..0f39eea6 --- /dev/null +++ b/node_modules/date-fns/fp/roundToNearestMinutesWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/roundToNearestMinutesWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToHours/index.d.ts b/node_modules/date-fns/fp/secondsToHours/index.d.ts new file mode 100644 index 00000000..931f3a78 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToHours } from 'date-fns/fp' +export default secondsToHours diff --git a/node_modules/date-fns/fp/secondsToHours/index.js b/node_modules/date-fns/fp/secondsToHours/index.js new file mode 100644 index 00000000..7112455b --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../secondsToHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToHours/index.js.flow b/node_modules/date-fns/fp/secondsToHours/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/secondsToHours/package.json b/node_modules/date-fns/fp/secondsToHours/package.json new file mode 100644 index 00000000..a8802945 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/secondsToHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToMilliseconds/index.d.ts b/node_modules/date-fns/fp/secondsToMilliseconds/index.d.ts new file mode 100644 index 00000000..98df8f21 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMilliseconds } from 'date-fns/fp' +export default secondsToMilliseconds diff --git a/node_modules/date-fns/fp/secondsToMilliseconds/index.js b/node_modules/date-fns/fp/secondsToMilliseconds/index.js new file mode 100644 index 00000000..d3dc3758 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../secondsToMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToMilliseconds/index.js.flow b/node_modules/date-fns/fp/secondsToMilliseconds/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/secondsToMilliseconds/package.json b/node_modules/date-fns/fp/secondsToMilliseconds/package.json new file mode 100644 index 00000000..f79adf48 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/secondsToMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToMinutes/index.d.ts b/node_modules/date-fns/fp/secondsToMinutes/index.d.ts new file mode 100644 index 00000000..e22b5287 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMinutes } from 'date-fns/fp' +export default secondsToMinutes diff --git a/node_modules/date-fns/fp/secondsToMinutes/index.js b/node_modules/date-fns/fp/secondsToMinutes/index.js new file mode 100644 index 00000000..b212b1f9 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../secondsToMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/secondsToMinutes/index.js.flow b/node_modules/date-fns/fp/secondsToMinutes/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/secondsToMinutes/package.json b/node_modules/date-fns/fp/secondsToMinutes/package.json new file mode 100644 index 00000000..fc0f8fef --- /dev/null +++ b/node_modules/date-fns/fp/secondsToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/secondsToMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/set/index.d.ts b/node_modules/date-fns/fp/set/index.d.ts new file mode 100644 index 00000000..601f00b8 --- /dev/null +++ b/node_modules/date-fns/fp/set/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { set } from 'date-fns/fp' +export default set diff --git a/node_modules/date-fns/fp/set/index.js b/node_modules/date-fns/fp/set/index.js new file mode 100644 index 00000000..f5334743 --- /dev/null +++ b/node_modules/date-fns/fp/set/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../set/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/set/index.js.flow b/node_modules/date-fns/fp/set/index.js.flow new file mode 100644 index 00000000..ccc5aca5 --- /dev/null +++ b/node_modules/date-fns/fp/set/index.js.flow @@ -0,0 +1,70 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + milliseconds?: number, + seconds?: number, + minutes?: number, + hours?: number, + date?: number, + month?: number, + year?: number, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/set/package.json b/node_modules/date-fns/fp/set/package.json new file mode 100644 index 00000000..b180d700 --- /dev/null +++ b/node_modules/date-fns/fp/set/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/set/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDate/index.d.ts b/node_modules/date-fns/fp/setDate/index.d.ts new file mode 100644 index 00000000..1d6343e1 --- /dev/null +++ b/node_modules/date-fns/fp/setDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDate } from 'date-fns/fp' +export default setDate diff --git a/node_modules/date-fns/fp/setDate/index.js b/node_modules/date-fns/fp/setDate/index.js new file mode 100644 index 00000000..c456b3b1 --- /dev/null +++ b/node_modules/date-fns/fp/setDate/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDate/index.js.flow b/node_modules/date-fns/fp/setDate/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setDate/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setDate/package.json b/node_modules/date-fns/fp/setDate/package.json new file mode 100644 index 00000000..a5ef6de6 --- /dev/null +++ b/node_modules/date-fns/fp/setDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setDate/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDay/index.d.ts b/node_modules/date-fns/fp/setDay/index.d.ts new file mode 100644 index 00000000..aa37dd91 --- /dev/null +++ b/node_modules/date-fns/fp/setDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDay } from 'date-fns/fp' +export default setDay diff --git a/node_modules/date-fns/fp/setDay/index.js b/node_modules/date-fns/fp/setDay/index.js new file mode 100644 index 00000000..ca9e74ad --- /dev/null +++ b/node_modules/date-fns/fp/setDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDay/index.js.flow b/node_modules/date-fns/fp/setDay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setDay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setDay/package.json b/node_modules/date-fns/fp/setDay/package.json new file mode 100644 index 00000000..7619e1e8 --- /dev/null +++ b/node_modules/date-fns/fp/setDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDayOfYear/index.d.ts b/node_modules/date-fns/fp/setDayOfYear/index.d.ts new file mode 100644 index 00000000..4453a591 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayOfYear } from 'date-fns/fp' +export default setDayOfYear diff --git a/node_modules/date-fns/fp/setDayOfYear/index.js b/node_modules/date-fns/fp/setDayOfYear/index.js new file mode 100644 index 00000000..360432ef --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setDayOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDayOfYear/index.js.flow b/node_modules/date-fns/fp/setDayOfYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setDayOfYear/package.json b/node_modules/date-fns/fp/setDayOfYear/package.json new file mode 100644 index 00000000..7bb39ddd --- /dev/null +++ b/node_modules/date-fns/fp/setDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setDayOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDayWithOptions/index.d.ts b/node_modules/date-fns/fp/setDayWithOptions/index.d.ts new file mode 100644 index 00000000..537c230a --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayWithOptions } from 'date-fns/fp' +export default setDayWithOptions diff --git a/node_modules/date-fns/fp/setDayWithOptions/index.js b/node_modules/date-fns/fp/setDayWithOptions/index.js new file mode 100644 index 00000000..f250a3d1 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setDayWithOptions/index.js.flow b/node_modules/date-fns/fp/setDayWithOptions/index.js.flow new file mode 100644 index 00000000..62d0e5ef --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions/index.js.flow @@ -0,0 +1,75 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/setDayWithOptions/package.json b/node_modules/date-fns/fp/setDayWithOptions/package.json new file mode 100644 index 00000000..3b5056f5 --- /dev/null +++ b/node_modules/date-fns/fp/setDayWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setDayWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setHours/index.d.ts b/node_modules/date-fns/fp/setHours/index.d.ts new file mode 100644 index 00000000..4ca8a065 --- /dev/null +++ b/node_modules/date-fns/fp/setHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setHours } from 'date-fns/fp' +export default setHours diff --git a/node_modules/date-fns/fp/setHours/index.js b/node_modules/date-fns/fp/setHours/index.js new file mode 100644 index 00000000..4ec597da --- /dev/null +++ b/node_modules/date-fns/fp/setHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setHours/index.js.flow b/node_modules/date-fns/fp/setHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setHours/package.json b/node_modules/date-fns/fp/setHours/package.json new file mode 100644 index 00000000..69cfcfd3 --- /dev/null +++ b/node_modules/date-fns/fp/setHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISODay/index.d.ts b/node_modules/date-fns/fp/setISODay/index.d.ts new file mode 100644 index 00000000..7319d5af --- /dev/null +++ b/node_modules/date-fns/fp/setISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISODay } from 'date-fns/fp' +export default setISODay diff --git a/node_modules/date-fns/fp/setISODay/index.js b/node_modules/date-fns/fp/setISODay/index.js new file mode 100644 index 00000000..04e7c707 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setISODay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISODay/index.js.flow b/node_modules/date-fns/fp/setISODay/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setISODay/package.json b/node_modules/date-fns/fp/setISODay/package.json new file mode 100644 index 00000000..85fbdac6 --- /dev/null +++ b/node_modules/date-fns/fp/setISODay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setISODay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISOWeek/index.d.ts b/node_modules/date-fns/fp/setISOWeek/index.d.ts new file mode 100644 index 00000000..ca354ce0 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeek } from 'date-fns/fp' +export default setISOWeek diff --git a/node_modules/date-fns/fp/setISOWeek/index.js b/node_modules/date-fns/fp/setISOWeek/index.js new file mode 100644 index 00000000..ae8ee835 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISOWeek/index.js.flow b/node_modules/date-fns/fp/setISOWeek/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setISOWeek/package.json b/node_modules/date-fns/fp/setISOWeek/package.json new file mode 100644 index 00000000..ecf74116 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISOWeekYear/index.d.ts b/node_modules/date-fns/fp/setISOWeekYear/index.d.ts new file mode 100644 index 00000000..7e1fc21b --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeekYear } from 'date-fns/fp' +export default setISOWeekYear diff --git a/node_modules/date-fns/fp/setISOWeekYear/index.js b/node_modules/date-fns/fp/setISOWeekYear/index.js new file mode 100644 index 00000000..784ceddd --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setISOWeekYear/index.js.flow b/node_modules/date-fns/fp/setISOWeekYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setISOWeekYear/package.json b/node_modules/date-fns/fp/setISOWeekYear/package.json new file mode 100644 index 00000000..3dc257c7 --- /dev/null +++ b/node_modules/date-fns/fp/setISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMilliseconds/index.d.ts b/node_modules/date-fns/fp/setMilliseconds/index.d.ts new file mode 100644 index 00000000..0ee89fab --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMilliseconds } from 'date-fns/fp' +export default setMilliseconds diff --git a/node_modules/date-fns/fp/setMilliseconds/index.js b/node_modules/date-fns/fp/setMilliseconds/index.js new file mode 100644 index 00000000..307f33d4 --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMilliseconds/index.js.flow b/node_modules/date-fns/fp/setMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setMilliseconds/package.json b/node_modules/date-fns/fp/setMilliseconds/package.json new file mode 100644 index 00000000..e03adade --- /dev/null +++ b/node_modules/date-fns/fp/setMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMinutes/index.d.ts b/node_modules/date-fns/fp/setMinutes/index.d.ts new file mode 100644 index 00000000..9e8d6360 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMinutes } from 'date-fns/fp' +export default setMinutes diff --git a/node_modules/date-fns/fp/setMinutes/index.js b/node_modules/date-fns/fp/setMinutes/index.js new file mode 100644 index 00000000..d94cc461 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMinutes/index.js.flow b/node_modules/date-fns/fp/setMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setMinutes/package.json b/node_modules/date-fns/fp/setMinutes/package.json new file mode 100644 index 00000000..2b2bd8b3 --- /dev/null +++ b/node_modules/date-fns/fp/setMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMonth/index.d.ts b/node_modules/date-fns/fp/setMonth/index.d.ts new file mode 100644 index 00000000..c9647b17 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMonth } from 'date-fns/fp' +export default setMonth diff --git a/node_modules/date-fns/fp/setMonth/index.js b/node_modules/date-fns/fp/setMonth/index.js new file mode 100644 index 00000000..fcc3f2d1 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setMonth/index.js.flow b/node_modules/date-fns/fp/setMonth/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setMonth/package.json b/node_modules/date-fns/fp/setMonth/package.json new file mode 100644 index 00000000..2cf28e33 --- /dev/null +++ b/node_modules/date-fns/fp/setMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setQuarter/index.d.ts b/node_modules/date-fns/fp/setQuarter/index.d.ts new file mode 100644 index 00000000..b94ff08e --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setQuarter } from 'date-fns/fp' +export default setQuarter diff --git a/node_modules/date-fns/fp/setQuarter/index.js b/node_modules/date-fns/fp/setQuarter/index.js new file mode 100644 index 00000000..0dacb174 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setQuarter/index.js.flow b/node_modules/date-fns/fp/setQuarter/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setQuarter/package.json b/node_modules/date-fns/fp/setQuarter/package.json new file mode 100644 index 00000000..b6a8b592 --- /dev/null +++ b/node_modules/date-fns/fp/setQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setSeconds/index.d.ts b/node_modules/date-fns/fp/setSeconds/index.d.ts new file mode 100644 index 00000000..fbfa77e6 --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setSeconds } from 'date-fns/fp' +export default setSeconds diff --git a/node_modules/date-fns/fp/setSeconds/index.js b/node_modules/date-fns/fp/setSeconds/index.js new file mode 100644 index 00000000..b1786cfa --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setSeconds/index.js.flow b/node_modules/date-fns/fp/setSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setSeconds/package.json b/node_modules/date-fns/fp/setSeconds/package.json new file mode 100644 index 00000000..98b0c622 --- /dev/null +++ b/node_modules/date-fns/fp/setSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeek/index.d.ts b/node_modules/date-fns/fp/setWeek/index.d.ts new file mode 100644 index 00000000..d9edcaa4 --- /dev/null +++ b/node_modules/date-fns/fp/setWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeek } from 'date-fns/fp' +export default setWeek diff --git a/node_modules/date-fns/fp/setWeek/index.js b/node_modules/date-fns/fp/setWeek/index.js new file mode 100644 index 00000000..97a0560d --- /dev/null +++ b/node_modules/date-fns/fp/setWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeek/index.js.flow b/node_modules/date-fns/fp/setWeek/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setWeek/package.json b/node_modules/date-fns/fp/setWeek/package.json new file mode 100644 index 00000000..48423ed4 --- /dev/null +++ b/node_modules/date-fns/fp/setWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/setWeekWithOptions/index.d.ts new file mode 100644 index 00000000..2971c7af --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekWithOptions } from 'date-fns/fp' +export default setWeekWithOptions diff --git a/node_modules/date-fns/fp/setWeekWithOptions/index.js b/node_modules/date-fns/fp/setWeekWithOptions/index.js new file mode 100644 index 00000000..d8650f4d --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/setWeekWithOptions/index.js.flow new file mode 100644 index 00000000..ffea29c5 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/setWeekWithOptions/package.json b/node_modules/date-fns/fp/setWeekWithOptions/package.json new file mode 100644 index 00000000..e12b9fe0 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekYear/index.d.ts b/node_modules/date-fns/fp/setWeekYear/index.d.ts new file mode 100644 index 00000000..7d2c6cca --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYear } from 'date-fns/fp' +export default setWeekYear diff --git a/node_modules/date-fns/fp/setWeekYear/index.js b/node_modules/date-fns/fp/setWeekYear/index.js new file mode 100644 index 00000000..2d3a6886 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekYear/index.js.flow b/node_modules/date-fns/fp/setWeekYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setWeekYear/package.json b/node_modules/date-fns/fp/setWeekYear/package.json new file mode 100644 index 00000000..1efd506e --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions/index.d.ts b/node_modules/date-fns/fp/setWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..5d52f8f3 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYearWithOptions } from 'date-fns/fp' +export default setWeekYearWithOptions diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions/index.js b/node_modules/date-fns/fp/setWeekYearWithOptions/index.js new file mode 100644 index 00000000..a9700181 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 3); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions/index.js.flow b/node_modules/date-fns/fp/setWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..ffea29c5 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions/index.js.flow @@ -0,0 +1,76 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +type CurriedFn3 = ( + a: A +) => + | CurriedFn2 + | (( + a: A, + b: B + ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) + +declare module.exports: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + number, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/setWeekYearWithOptions/package.json b/node_modules/date-fns/fp/setWeekYearWithOptions/package.json new file mode 100644 index 00000000..3686a025 --- /dev/null +++ b/node_modules/date-fns/fp/setWeekYearWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setWeekYearWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/setYear/index.d.ts b/node_modules/date-fns/fp/setYear/index.d.ts new file mode 100644 index 00000000..be24ce0b --- /dev/null +++ b/node_modules/date-fns/fp/setYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setYear } from 'date-fns/fp' +export default setYear diff --git a/node_modules/date-fns/fp/setYear/index.js b/node_modules/date-fns/fp/setYear/index.js new file mode 100644 index 00000000..b1e529fa --- /dev/null +++ b/node_modules/date-fns/fp/setYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../setYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/setYear/index.js.flow b/node_modules/date-fns/fp/setYear/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/setYear/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/setYear/package.json b/node_modules/date-fns/fp/setYear/package.json new file mode 100644 index 00000000..cf794574 --- /dev/null +++ b/node_modules/date-fns/fp/setYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/setYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfDay/index.d.ts b/node_modules/date-fns/fp/startOfDay/index.d.ts new file mode 100644 index 00000000..fed6b052 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDay } from 'date-fns/fp' +export default startOfDay diff --git a/node_modules/date-fns/fp/startOfDay/index.js b/node_modules/date-fns/fp/startOfDay/index.js new file mode 100644 index 00000000..d8f50fc0 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfDay/index.js.flow b/node_modules/date-fns/fp/startOfDay/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfDay/package.json b/node_modules/date-fns/fp/startOfDay/package.json new file mode 100644 index 00000000..d9a09104 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfDay/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfDecade/index.d.ts b/node_modules/date-fns/fp/startOfDecade/index.d.ts new file mode 100644 index 00000000..127c1563 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDecade } from 'date-fns/fp' +export default startOfDecade diff --git a/node_modules/date-fns/fp/startOfDecade/index.js b/node_modules/date-fns/fp/startOfDecade/index.js new file mode 100644 index 00000000..967f750d --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfDecade/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfDecade/index.js.flow b/node_modules/date-fns/fp/startOfDecade/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfDecade/package.json b/node_modules/date-fns/fp/startOfDecade/package.json new file mode 100644 index 00000000..286d353f --- /dev/null +++ b/node_modules/date-fns/fp/startOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfDecade/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfHour/index.d.ts b/node_modules/date-fns/fp/startOfHour/index.d.ts new file mode 100644 index 00000000..9a1905e0 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfHour } from 'date-fns/fp' +export default startOfHour diff --git a/node_modules/date-fns/fp/startOfHour/index.js b/node_modules/date-fns/fp/startOfHour/index.js new file mode 100644 index 00000000..8731c527 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfHour/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfHour/index.js.flow b/node_modules/date-fns/fp/startOfHour/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfHour/package.json b/node_modules/date-fns/fp/startOfHour/package.json new file mode 100644 index 00000000..ed010837 --- /dev/null +++ b/node_modules/date-fns/fp/startOfHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfHour/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfISOWeek/index.d.ts b/node_modules/date-fns/fp/startOfISOWeek/index.d.ts new file mode 100644 index 00000000..008f896c --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeek } from 'date-fns/fp' +export default startOfISOWeek diff --git a/node_modules/date-fns/fp/startOfISOWeek/index.js b/node_modules/date-fns/fp/startOfISOWeek/index.js new file mode 100644 index 00000000..02fdf449 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfISOWeek/index.js.flow b/node_modules/date-fns/fp/startOfISOWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfISOWeek/package.json b/node_modules/date-fns/fp/startOfISOWeek/package.json new file mode 100644 index 00000000..ba8524ab --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfISOWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfISOWeekYear/index.d.ts b/node_modules/date-fns/fp/startOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..aab0b5a7 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeekYear } from 'date-fns/fp' +export default startOfISOWeekYear diff --git a/node_modules/date-fns/fp/startOfISOWeekYear/index.js b/node_modules/date-fns/fp/startOfISOWeekYear/index.js new file mode 100644 index 00000000..c85c4b3f --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfISOWeekYear/index.js.flow b/node_modules/date-fns/fp/startOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfISOWeekYear/package.json b/node_modules/date-fns/fp/startOfISOWeekYear/package.json new file mode 100644 index 00000000..1b0fa3a0 --- /dev/null +++ b/node_modules/date-fns/fp/startOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfISOWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfMinute/index.d.ts b/node_modules/date-fns/fp/startOfMinute/index.d.ts new file mode 100644 index 00000000..013f3a46 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMinute } from 'date-fns/fp' +export default startOfMinute diff --git a/node_modules/date-fns/fp/startOfMinute/index.js b/node_modules/date-fns/fp/startOfMinute/index.js new file mode 100644 index 00000000..ff042c5c --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfMinute/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfMinute/index.js.flow b/node_modules/date-fns/fp/startOfMinute/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfMinute/package.json b/node_modules/date-fns/fp/startOfMinute/package.json new file mode 100644 index 00000000..0b05d724 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfMinute/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfMonth/index.d.ts b/node_modules/date-fns/fp/startOfMonth/index.d.ts new file mode 100644 index 00000000..edbb15ff --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMonth } from 'date-fns/fp' +export default startOfMonth diff --git a/node_modules/date-fns/fp/startOfMonth/index.js b/node_modules/date-fns/fp/startOfMonth/index.js new file mode 100644 index 00000000..9f0c0a8d --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfMonth/index.js.flow b/node_modules/date-fns/fp/startOfMonth/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfMonth/package.json b/node_modules/date-fns/fp/startOfMonth/package.json new file mode 100644 index 00000000..73788e16 --- /dev/null +++ b/node_modules/date-fns/fp/startOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfMonth/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfQuarter/index.d.ts b/node_modules/date-fns/fp/startOfQuarter/index.d.ts new file mode 100644 index 00000000..1c3b6020 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfQuarter } from 'date-fns/fp' +export default startOfQuarter diff --git a/node_modules/date-fns/fp/startOfQuarter/index.js b/node_modules/date-fns/fp/startOfQuarter/index.js new file mode 100644 index 00000000..1bac7215 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfQuarter/index.js.flow b/node_modules/date-fns/fp/startOfQuarter/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfQuarter/package.json b/node_modules/date-fns/fp/startOfQuarter/package.json new file mode 100644 index 00000000..ef21bb91 --- /dev/null +++ b/node_modules/date-fns/fp/startOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfQuarter/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfSecond/index.d.ts b/node_modules/date-fns/fp/startOfSecond/index.d.ts new file mode 100644 index 00000000..866aa6f9 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfSecond } from 'date-fns/fp' +export default startOfSecond diff --git a/node_modules/date-fns/fp/startOfSecond/index.js b/node_modules/date-fns/fp/startOfSecond/index.js new file mode 100644 index 00000000..f1bcdc19 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfSecond/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfSecond/index.js.flow b/node_modules/date-fns/fp/startOfSecond/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfSecond/package.json b/node_modules/date-fns/fp/startOfSecond/package.json new file mode 100644 index 00000000..d56e4a71 --- /dev/null +++ b/node_modules/date-fns/fp/startOfSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfSecond/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeek/index.d.ts b/node_modules/date-fns/fp/startOfWeek/index.d.ts new file mode 100644 index 00000000..ab178410 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeek } from 'date-fns/fp' +export default startOfWeek diff --git a/node_modules/date-fns/fp/startOfWeek/index.js b/node_modules/date-fns/fp/startOfWeek/index.js new file mode 100644 index 00000000..1b5cfe1c --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeek/index.js.flow b/node_modules/date-fns/fp/startOfWeek/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfWeek/package.json b/node_modules/date-fns/fp/startOfWeek/package.json new file mode 100644 index 00000000..2e5d020a --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfWeek/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions/index.d.ts b/node_modules/date-fns/fp/startOfWeekWithOptions/index.d.ts new file mode 100644 index 00000000..0bd5568f --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekWithOptions } from 'date-fns/fp' +export default startOfWeekWithOptions diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions/index.js b/node_modules/date-fns/fp/startOfWeekWithOptions/index.js new file mode 100644 index 00000000..94d73614 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions/index.js.flow b/node_modules/date-fns/fp/startOfWeekWithOptions/index.js.flow new file mode 100644 index 00000000..9821646c --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions/index.js.flow @@ -0,0 +1,65 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/startOfWeekWithOptions/package.json b/node_modules/date-fns/fp/startOfWeekWithOptions/package.json new file mode 100644 index 00000000..3482c5e9 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfWeekWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekYear/index.d.ts b/node_modules/date-fns/fp/startOfWeekYear/index.d.ts new file mode 100644 index 00000000..17ce1cbe --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYear } from 'date-fns/fp' +export default startOfWeekYear diff --git a/node_modules/date-fns/fp/startOfWeekYear/index.js b/node_modules/date-fns/fp/startOfWeekYear/index.js new file mode 100644 index 00000000..9fb373d1 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekYear/index.js.flow b/node_modules/date-fns/fp/startOfWeekYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfWeekYear/package.json b/node_modules/date-fns/fp/startOfWeekYear/package.json new file mode 100644 index 00000000..4ff4d003 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfWeekYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.d.ts b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.d.ts new file mode 100644 index 00000000..26f9e804 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYearWithOptions } from 'date-fns/fp' +export default startOfWeekYearWithOptions diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js new file mode 100644 index 00000000..2d3bdd1b --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js.flow b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js.flow new file mode 100644 index 00000000..236eaa53 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions/index.js.flow @@ -0,0 +1,66 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + locale?: Locale, + }, + Date | number, + Date +> diff --git a/node_modules/date-fns/fp/startOfWeekYearWithOptions/package.json b/node_modules/date-fns/fp/startOfWeekYearWithOptions/package.json new file mode 100644 index 00000000..34f9d607 --- /dev/null +++ b/node_modules/date-fns/fp/startOfWeekYearWithOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfWeekYearWithOptions/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfYear/index.d.ts b/node_modules/date-fns/fp/startOfYear/index.d.ts new file mode 100644 index 00000000..6e94924d --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYear } from 'date-fns/fp' +export default startOfYear diff --git a/node_modules/date-fns/fp/startOfYear/index.js b/node_modules/date-fns/fp/startOfYear/index.js new file mode 100644 index 00000000..bebb403f --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../startOfYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/startOfYear/index.js.flow b/node_modules/date-fns/fp/startOfYear/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/startOfYear/package.json b/node_modules/date-fns/fp/startOfYear/package.json new file mode 100644 index 00000000..6dca1d30 --- /dev/null +++ b/node_modules/date-fns/fp/startOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/startOfYear/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/sub/index.d.ts b/node_modules/date-fns/fp/sub/index.d.ts new file mode 100644 index 00000000..c50f32f0 --- /dev/null +++ b/node_modules/date-fns/fp/sub/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sub } from 'date-fns/fp' +export default sub diff --git a/node_modules/date-fns/fp/sub/index.js b/node_modules/date-fns/fp/sub/index.js new file mode 100644 index 00000000..bf9d5616 --- /dev/null +++ b/node_modules/date-fns/fp/sub/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../sub/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/sub/index.js.flow b/node_modules/date-fns/fp/sub/index.js.flow new file mode 100644 index 00000000..3d4363b3 --- /dev/null +++ b/node_modules/date-fns/fp/sub/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/sub/package.json b/node_modules/date-fns/fp/sub/package.json new file mode 100644 index 00000000..d7e63559 --- /dev/null +++ b/node_modules/date-fns/fp/sub/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/sub/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subBusinessDays/index.d.ts b/node_modules/date-fns/fp/subBusinessDays/index.d.ts new file mode 100644 index 00000000..6f7c95a5 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subBusinessDays } from 'date-fns/fp' +export default subBusinessDays diff --git a/node_modules/date-fns/fp/subBusinessDays/index.js b/node_modules/date-fns/fp/subBusinessDays/index.js new file mode 100644 index 00000000..359b54ea --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subBusinessDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subBusinessDays/index.js.flow b/node_modules/date-fns/fp/subBusinessDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subBusinessDays/package.json b/node_modules/date-fns/fp/subBusinessDays/package.json new file mode 100644 index 00000000..b60ff46a --- /dev/null +++ b/node_modules/date-fns/fp/subBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subBusinessDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subDays/index.d.ts b/node_modules/date-fns/fp/subDays/index.d.ts new file mode 100644 index 00000000..8a72d43a --- /dev/null +++ b/node_modules/date-fns/fp/subDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subDays } from 'date-fns/fp' +export default subDays diff --git a/node_modules/date-fns/fp/subDays/index.js b/node_modules/date-fns/fp/subDays/index.js new file mode 100644 index 00000000..d8811314 --- /dev/null +++ b/node_modules/date-fns/fp/subDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subDays/index.js.flow b/node_modules/date-fns/fp/subDays/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subDays/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subDays/package.json b/node_modules/date-fns/fp/subDays/package.json new file mode 100644 index 00000000..4c0ee791 --- /dev/null +++ b/node_modules/date-fns/fp/subDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subHours/index.d.ts b/node_modules/date-fns/fp/subHours/index.d.ts new file mode 100644 index 00000000..6fcfa1f5 --- /dev/null +++ b/node_modules/date-fns/fp/subHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subHours } from 'date-fns/fp' +export default subHours diff --git a/node_modules/date-fns/fp/subHours/index.js b/node_modules/date-fns/fp/subHours/index.js new file mode 100644 index 00000000..658ff16c --- /dev/null +++ b/node_modules/date-fns/fp/subHours/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subHours/index.js.flow b/node_modules/date-fns/fp/subHours/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subHours/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subHours/package.json b/node_modules/date-fns/fp/subHours/package.json new file mode 100644 index 00000000..778ea177 --- /dev/null +++ b/node_modules/date-fns/fp/subHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subHours/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subISOWeekYears/index.d.ts b/node_modules/date-fns/fp/subISOWeekYears/index.d.ts new file mode 100644 index 00000000..430fca40 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subISOWeekYears } from 'date-fns/fp' +export default subISOWeekYears diff --git a/node_modules/date-fns/fp/subISOWeekYears/index.js b/node_modules/date-fns/fp/subISOWeekYears/index.js new file mode 100644 index 00000000..b2fe6790 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subISOWeekYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subISOWeekYears/index.js.flow b/node_modules/date-fns/fp/subISOWeekYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subISOWeekYears/package.json b/node_modules/date-fns/fp/subISOWeekYears/package.json new file mode 100644 index 00000000..2495c1c1 --- /dev/null +++ b/node_modules/date-fns/fp/subISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subISOWeekYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMilliseconds/index.d.ts b/node_modules/date-fns/fp/subMilliseconds/index.d.ts new file mode 100644 index 00000000..9310a1c3 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMilliseconds } from 'date-fns/fp' +export default subMilliseconds diff --git a/node_modules/date-fns/fp/subMilliseconds/index.js b/node_modules/date-fns/fp/subMilliseconds/index.js new file mode 100644 index 00000000..51fb0d1f --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMilliseconds/index.js.flow b/node_modules/date-fns/fp/subMilliseconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subMilliseconds/package.json b/node_modules/date-fns/fp/subMilliseconds/package.json new file mode 100644 index 00000000..e6e28929 --- /dev/null +++ b/node_modules/date-fns/fp/subMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subMilliseconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMinutes/index.d.ts b/node_modules/date-fns/fp/subMinutes/index.d.ts new file mode 100644 index 00000000..0b7db105 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMinutes } from 'date-fns/fp' +export default subMinutes diff --git a/node_modules/date-fns/fp/subMinutes/index.js b/node_modules/date-fns/fp/subMinutes/index.js new file mode 100644 index 00000000..6c44c8b1 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMinutes/index.js.flow b/node_modules/date-fns/fp/subMinutes/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subMinutes/package.json b/node_modules/date-fns/fp/subMinutes/package.json new file mode 100644 index 00000000..f977b8da --- /dev/null +++ b/node_modules/date-fns/fp/subMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subMinutes/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMonths/index.d.ts b/node_modules/date-fns/fp/subMonths/index.d.ts new file mode 100644 index 00000000..3d03d27e --- /dev/null +++ b/node_modules/date-fns/fp/subMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMonths } from 'date-fns/fp' +export default subMonths diff --git a/node_modules/date-fns/fp/subMonths/index.js b/node_modules/date-fns/fp/subMonths/index.js new file mode 100644 index 00000000..a7bd1227 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subMonths/index.js.flow b/node_modules/date-fns/fp/subMonths/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subMonths/package.json b/node_modules/date-fns/fp/subMonths/package.json new file mode 100644 index 00000000..2d80ede0 --- /dev/null +++ b/node_modules/date-fns/fp/subMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subQuarters/index.d.ts b/node_modules/date-fns/fp/subQuarters/index.d.ts new file mode 100644 index 00000000..6362ceca --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subQuarters } from 'date-fns/fp' +export default subQuarters diff --git a/node_modules/date-fns/fp/subQuarters/index.js b/node_modules/date-fns/fp/subQuarters/index.js new file mode 100644 index 00000000..bb402d6d --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subQuarters/index.js.flow b/node_modules/date-fns/fp/subQuarters/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subQuarters/package.json b/node_modules/date-fns/fp/subQuarters/package.json new file mode 100644 index 00000000..b86e3f8d --- /dev/null +++ b/node_modules/date-fns/fp/subQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subSeconds/index.d.ts b/node_modules/date-fns/fp/subSeconds/index.d.ts new file mode 100644 index 00000000..c5c6635b --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subSeconds } from 'date-fns/fp' +export default subSeconds diff --git a/node_modules/date-fns/fp/subSeconds/index.js b/node_modules/date-fns/fp/subSeconds/index.js new file mode 100644 index 00000000..2d34a29b --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subSeconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subSeconds/index.js.flow b/node_modules/date-fns/fp/subSeconds/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subSeconds/package.json b/node_modules/date-fns/fp/subSeconds/package.json new file mode 100644 index 00000000..147616ab --- /dev/null +++ b/node_modules/date-fns/fp/subSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subSeconds/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subWeeks/index.d.ts b/node_modules/date-fns/fp/subWeeks/index.d.ts new file mode 100644 index 00000000..18eebcb0 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subWeeks } from 'date-fns/fp' +export default subWeeks diff --git a/node_modules/date-fns/fp/subWeeks/index.js b/node_modules/date-fns/fp/subWeeks/index.js new file mode 100644 index 00000000..248acb93 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subWeeks/index.js.flow b/node_modules/date-fns/fp/subWeeks/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subWeeks/package.json b/node_modules/date-fns/fp/subWeeks/package.json new file mode 100644 index 00000000..e4b2aaa8 --- /dev/null +++ b/node_modules/date-fns/fp/subWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subWeeks/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/subYears/index.d.ts b/node_modules/date-fns/fp/subYears/index.d.ts new file mode 100644 index 00000000..55abb01d --- /dev/null +++ b/node_modules/date-fns/fp/subYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subYears } from 'date-fns/fp' +export default subYears diff --git a/node_modules/date-fns/fp/subYears/index.js b/node_modules/date-fns/fp/subYears/index.js new file mode 100644 index 00000000..8b77c171 --- /dev/null +++ b/node_modules/date-fns/fp/subYears/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../subYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 2); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/subYears/index.js.flow b/node_modules/date-fns/fp/subYears/index.js.flow new file mode 100644 index 00000000..75c22e23 --- /dev/null +++ b/node_modules/date-fns/fp/subYears/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +type CurriedFn2 = ( + a: A +) => CurriedFn1 | ((a: A, b: B) => R) + +declare module.exports: CurriedFn2 diff --git a/node_modules/date-fns/fp/subYears/package.json b/node_modules/date-fns/fp/subYears/package.json new file mode 100644 index 00000000..961ee2e3 --- /dev/null +++ b/node_modules/date-fns/fp/subYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/subYears/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/toDate/index.d.ts b/node_modules/date-fns/fp/toDate/index.d.ts new file mode 100644 index 00000000..2bbca808 --- /dev/null +++ b/node_modules/date-fns/fp/toDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { toDate } from 'date-fns/fp' +export default toDate diff --git a/node_modules/date-fns/fp/toDate/index.js b/node_modules/date-fns/fp/toDate/index.js new file mode 100644 index 00000000..00f4b71b --- /dev/null +++ b/node_modules/date-fns/fp/toDate/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/toDate/index.js.flow b/node_modules/date-fns/fp/toDate/index.js.flow new file mode 100644 index 00000000..1fc072e6 --- /dev/null +++ b/node_modules/date-fns/fp/toDate/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/toDate/package.json b/node_modules/date-fns/fp/toDate/package.json new file mode 100644 index 00000000..25085a88 --- /dev/null +++ b/node_modules/date-fns/fp/toDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/toDate/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/weeksToDays/index.d.ts b/node_modules/date-fns/fp/weeksToDays/index.d.ts new file mode 100644 index 00000000..df682391 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { weeksToDays } from 'date-fns/fp' +export default weeksToDays diff --git a/node_modules/date-fns/fp/weeksToDays/index.js b/node_modules/date-fns/fp/weeksToDays/index.js new file mode 100644 index 00000000..c7856e69 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../weeksToDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/weeksToDays/index.js.flow b/node_modules/date-fns/fp/weeksToDays/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/weeksToDays/package.json b/node_modules/date-fns/fp/weeksToDays/package.json new file mode 100644 index 00000000..3a479d99 --- /dev/null +++ b/node_modules/date-fns/fp/weeksToDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/weeksToDays/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/yearsToMonths/index.d.ts b/node_modules/date-fns/fp/yearsToMonths/index.d.ts new file mode 100644 index 00000000..39cd7738 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToMonths } from 'date-fns/fp' +export default yearsToMonths diff --git a/node_modules/date-fns/fp/yearsToMonths/index.js b/node_modules/date-fns/fp/yearsToMonths/index.js new file mode 100644 index 00000000..0c229fd8 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../yearsToMonths/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/yearsToMonths/index.js.flow b/node_modules/date-fns/fp/yearsToMonths/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/yearsToMonths/package.json b/node_modules/date-fns/fp/yearsToMonths/package.json new file mode 100644 index 00000000..fff64d2d --- /dev/null +++ b/node_modules/date-fns/fp/yearsToMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/yearsToMonths/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fp/yearsToQuarters/index.d.ts b/node_modules/date-fns/fp/yearsToQuarters/index.d.ts new file mode 100644 index 00000000..cbb664df --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToQuarters } from 'date-fns/fp' +export default yearsToQuarters diff --git a/node_modules/date-fns/fp/yearsToQuarters/index.js b/node_modules/date-fns/fp/yearsToQuarters/index.js new file mode 100644 index 00000000..77deb55c --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../yearsToQuarters/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/convertToFP/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it. +var _default = (0, _index2.default)(_index.default, 1); + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fp/yearsToQuarters/index.js.flow b/node_modules/date-fns/fp/yearsToQuarters/index.js.flow new file mode 100644 index 00000000..aa51b5f1 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters/index.js.flow @@ -0,0 +1,54 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +type CurriedFn1 = (a: A) => R + +declare module.exports: CurriedFn1 diff --git a/node_modules/date-fns/fp/yearsToQuarters/package.json b/node_modules/date-fns/fp/yearsToQuarters/package.json new file mode 100644 index 00000000..174c27a8 --- /dev/null +++ b/node_modules/date-fns/fp/yearsToQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/fp/yearsToQuarters/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/fromUnixTime/index.d.ts b/node_modules/date-fns/fromUnixTime/index.d.ts new file mode 100644 index 00000000..a88920d8 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fromUnixTime } from 'date-fns' +export default fromUnixTime diff --git a/node_modules/date-fns/fromUnixTime/index.js b/node_modules/date-fns/fromUnixTime/index.js new file mode 100644 index 00000000..fd49d54f --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = fromUnixTime; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name fromUnixTime + * @category Timestamp Helpers + * @summary Create a date from a Unix timestamp. + * + * @description + * Create a date from a Unix timestamp (in seconds). Decimal values will be discarded. + * + * @param {Number} unixTime - the given Unix timestamp (in seconds) + * @returns {Date} the date + * @throws {TypeError} 1 argument required + * + * @example + * // Create the date 29 February 2012 11:45:05: + * const result = fromUnixTime(1330515905) + * //=> Wed Feb 29 2012 11:45:05 + */ +function fromUnixTime(dirtyUnixTime) { + (0, _index3.default)(1, arguments); + var unixTime = (0, _index2.default)(dirtyUnixTime); + return (0, _index.default)(unixTime * 1000); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/fromUnixTime/index.js.flow b/node_modules/date-fns/fromUnixTime/index.js.flow new file mode 100644 index 00000000..a286bdf0 --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (unixTime: number) => Date diff --git a/node_modules/date-fns/fromUnixTime/package.json b/node_modules/date-fns/fromUnixTime/package.json new file mode 100644 index 00000000..6ef2a8ed --- /dev/null +++ b/node_modules/date-fns/fromUnixTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/fromUnixTime/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDate/index.d.ts b/node_modules/date-fns/getDate/index.d.ts new file mode 100644 index 00000000..cb864411 --- /dev/null +++ b/node_modules/date-fns/getDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDate } from 'date-fns' +export default getDate diff --git a/node_modules/date-fns/getDate/index.js b/node_modules/date-fns/getDate/index.js new file mode 100644 index 00000000..802ad1ed --- /dev/null +++ b/node_modules/date-fns/getDate/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDate; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDate + * @category Day Helpers + * @summary Get the day of the month of the given date. + * + * @description + * Get the day of the month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of month + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the month is 29 February 2012? + * const result = getDate(new Date(2012, 1, 29)) + * //=> 29 + */ +function getDate(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var dayOfMonth = date.getDate(); + return dayOfMonth; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDate/index.js.flow b/node_modules/date-fns/getDate/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getDate/package.json b/node_modules/date-fns/getDate/package.json new file mode 100644 index 00000000..d1dbd4ee --- /dev/null +++ b/node_modules/date-fns/getDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDate/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDay/index.d.ts b/node_modules/date-fns/getDay/index.d.ts new file mode 100644 index 00000000..5ea22c01 --- /dev/null +++ b/node_modules/date-fns/getDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDay } from 'date-fns' +export default getDay diff --git a/node_modules/date-fns/getDay/index.js b/node_modules/date-fns/getDay/index.js new file mode 100644 index 00000000..a600913c --- /dev/null +++ b/node_modules/date-fns/getDay/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDay; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDay + * @category Weekday Helpers + * @summary Get the day of the week of the given date. + * + * @description + * Get the day of the week of the given date. + * + * @param {Date|Number} date - the given date + * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the week is 29 February 2012? + * const result = getDay(new Date(2012, 1, 29)) + * //=> 3 + */ +function getDay(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var day = date.getDay(); + return day; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDay/index.js.flow b/node_modules/date-fns/getDay/index.js.flow new file mode 100644 index 00000000..6ff2a545 --- /dev/null +++ b/node_modules/date-fns/getDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => 0 | 1 | 2 | 3 | 4 | 5 | 6 diff --git a/node_modules/date-fns/getDay/package.json b/node_modules/date-fns/getDay/package.json new file mode 100644 index 00000000..d5418e1c --- /dev/null +++ b/node_modules/date-fns/getDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDayOfYear/index.d.ts b/node_modules/date-fns/getDayOfYear/index.d.ts new file mode 100644 index 00000000..ec58442b --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDayOfYear } from 'date-fns' +export default getDayOfYear diff --git a/node_modules/date-fns/getDayOfYear/index.js b/node_modules/date-fns/getDayOfYear/index.js new file mode 100644 index 00000000..baa6c32b --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDayOfYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfYear/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDayOfYear + * @category Day Helpers + * @summary Get the day of the year of the given date. + * + * @description + * Get the day of the year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of year + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the year is 2 July 2014? + * const result = getDayOfYear(new Date(2014, 6, 2)) + * //=> 183 + */ +function getDayOfYear(dirtyDate) { + (0, _index4.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var diff = (0, _index3.default)(date, (0, _index2.default)(date)); + var dayOfYear = diff + 1; + return dayOfYear; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDayOfYear/index.js.flow b/node_modules/date-fns/getDayOfYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getDayOfYear/package.json b/node_modules/date-fns/getDayOfYear/package.json new file mode 100644 index 00000000..476f563c --- /dev/null +++ b/node_modules/date-fns/getDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDayOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDaysInMonth/index.d.ts b/node_modules/date-fns/getDaysInMonth/index.d.ts new file mode 100644 index 00000000..6b69daec --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInMonth } from 'date-fns' +export default getDaysInMonth diff --git a/node_modules/date-fns/getDaysInMonth/index.js b/node_modules/date-fns/getDaysInMonth/index.js new file mode 100644 index 00000000..ca739c32 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDaysInMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDaysInMonth + * @category Month Helpers + * @summary Get the number of days in a month of the given date. + * + * @description + * Get the number of days in a month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of days in a month + * @throws {TypeError} 1 argument required + * + * @example + * // How many days are in February 2000? + * const result = getDaysInMonth(new Date(2000, 1)) + * //=> 29 + */ +function getDaysInMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var monthIndex = date.getMonth(); + var lastDayOfMonth = new Date(0); + lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); + lastDayOfMonth.setHours(0, 0, 0, 0); + return lastDayOfMonth.getDate(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDaysInMonth/index.js.flow b/node_modules/date-fns/getDaysInMonth/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getDaysInMonth/package.json b/node_modules/date-fns/getDaysInMonth/package.json new file mode 100644 index 00000000..4013ccd9 --- /dev/null +++ b/node_modules/date-fns/getDaysInMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDaysInMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDaysInYear/index.d.ts b/node_modules/date-fns/getDaysInYear/index.d.ts new file mode 100644 index 00000000..053d44bd --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDaysInYear } from 'date-fns' +export default getDaysInYear diff --git a/node_modules/date-fns/getDaysInYear/index.js b/node_modules/date-fns/getDaysInYear/index.js new file mode 100644 index 00000000..d445c265 --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDaysInYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../isLeapYear/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDaysInYear + * @category Year Helpers + * @summary Get the number of days in a year of the given date. + * + * @description + * Get the number of days in a year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of days in a year + * @throws {TypeError} 1 argument required + * + * @example + * // How many days are in 2012? + * const result = getDaysInYear(new Date(2012, 0, 1)) + * //=> 366 + */ +function getDaysInYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + + if (String(new Date(date)) === 'Invalid Date') { + return NaN; + } + + return (0, _index2.default)(date) ? 366 : 365; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDaysInYear/index.js.flow b/node_modules/date-fns/getDaysInYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getDaysInYear/package.json b/node_modules/date-fns/getDaysInYear/package.json new file mode 100644 index 00000000..88ddf89e --- /dev/null +++ b/node_modules/date-fns/getDaysInYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDaysInYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDecade/index.d.ts b/node_modules/date-fns/getDecade/index.d.ts new file mode 100644 index 00000000..dfa8961c --- /dev/null +++ b/node_modules/date-fns/getDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDecade } from 'date-fns' +export default getDecade diff --git a/node_modules/date-fns/getDecade/index.js b/node_modules/date-fns/getDecade/index.js new file mode 100644 index 00000000..e612d64a --- /dev/null +++ b/node_modules/date-fns/getDecade/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDecade; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDecade + * @category Decade Helpers + * @summary Get the decade of the given date. + * + * @description + * Get the decade of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the year of decade + * @throws {TypeError} 1 argument required + * + * @example + * // Which decade belongs 27 November 1942? + * const result = getDecade(new Date(1942, 10, 27)) + * //=> 1940 + */ +function getDecade(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + return decade; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDecade/index.js.flow b/node_modules/date-fns/getDecade/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getDecade/package.json b/node_modules/date-fns/getDecade/package.json new file mode 100644 index 00000000..b472865a --- /dev/null +++ b/node_modules/date-fns/getDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDecade/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getDefaultOptions/index.d.ts b/node_modules/date-fns/getDefaultOptions/index.d.ts new file mode 100644 index 00000000..43e2dea0 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getDefaultOptions } from 'date-fns' +export default getDefaultOptions diff --git a/node_modules/date-fns/getDefaultOptions/index.js b/node_modules/date-fns/getDefaultOptions/index.js new file mode 100644 index 00000000..9bcef396 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getDefaultOptions; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../_lib/assign/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getDefaultOptions + * @category Common Helpers + * @summary Get default options. + * @pure false + * + * @description + * Returns an object that contains defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * You can change these with [setDefaultOptions]{@link https://date-fns.org/docs/setDefaultOptions}. + * + * @returns {Object} default options + * + * @example + * const result = getDefaultOptions() + * //=> {} + * + * @example + * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 }) + * const result = getDefaultOptions() + * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 } + */ +function getDefaultOptions() { + return (0, _index2.default)({}, (0, _index.getDefaultOptions)()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getDefaultOptions/index.js.flow b/node_modules/date-fns/getDefaultOptions/index.js.flow new file mode 100644 index 00000000..2a0fd28f --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Object diff --git a/node_modules/date-fns/getDefaultOptions/package.json b/node_modules/date-fns/getDefaultOptions/package.json new file mode 100644 index 00000000..d18eece1 --- /dev/null +++ b/node_modules/date-fns/getDefaultOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getDefaultOptions/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getHours/index.d.ts b/node_modules/date-fns/getHours/index.d.ts new file mode 100644 index 00000000..1ef49091 --- /dev/null +++ b/node_modules/date-fns/getHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getHours } from 'date-fns' +export default getHours diff --git a/node_modules/date-fns/getHours/index.js b/node_modules/date-fns/getHours/index.js new file mode 100644 index 00000000..c1935a73 --- /dev/null +++ b/node_modules/date-fns/getHours/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getHours; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getHours + * @category Hour Helpers + * @summary Get the hours of the given date. + * + * @description + * Get the hours of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the hours + * @throws {TypeError} 1 argument required + * + * @example + * // Get the hours of 29 February 2012 11:45:00: + * const result = getHours(new Date(2012, 1, 29, 11, 45)) + * //=> 11 + */ +function getHours(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var hours = date.getHours(); + return hours; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getHours/index.js.flow b/node_modules/date-fns/getHours/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getHours/package.json b/node_modules/date-fns/getHours/package.json new file mode 100644 index 00000000..76830996 --- /dev/null +++ b/node_modules/date-fns/getHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getISODay/index.d.ts b/node_modules/date-fns/getISODay/index.d.ts new file mode 100644 index 00000000..fef75877 --- /dev/null +++ b/node_modules/date-fns/getISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISODay } from 'date-fns' +export default getISODay diff --git a/node_modules/date-fns/getISODay/index.js b/node_modules/date-fns/getISODay/index.js new file mode 100644 index 00000000..ace7ebcc --- /dev/null +++ b/node_modules/date-fns/getISODay/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getISODay; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getISODay + * @category Weekday Helpers + * @summary Get the day of the ISO week of the given date. + * + * @description + * Get the day of the ISO week of the given date, + * which is 7 for Sunday, 1 for Monday etc. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the day of ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // Which day of the ISO week is 26 February 2012? + * const result = getISODay(new Date(2012, 1, 26)) + * //=> 7 + */ +function getISODay(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var day = date.getDay(); + + if (day === 0) { + day = 7; + } + + return day; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getISODay/index.js.flow b/node_modules/date-fns/getISODay/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getISODay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getISODay/package.json b/node_modules/date-fns/getISODay/package.json new file mode 100644 index 00000000..6f1ada79 --- /dev/null +++ b/node_modules/date-fns/getISODay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getISODay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeek/index.d.ts b/node_modules/date-fns/getISOWeek/index.d.ts new file mode 100644 index 00000000..f24419b6 --- /dev/null +++ b/node_modules/date-fns/getISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeek } from 'date-fns' +export default getISOWeek diff --git a/node_modules/date-fns/getISOWeek/index.js b/node_modules/date-fns/getISOWeek/index.js new file mode 100644 index 00000000..5704a96a --- /dev/null +++ b/node_modules/date-fns/getISOWeek/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getISOWeek; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfISOWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getISOWeek + * @category ISO Week Helpers + * @summary Get the ISO week of the given date. + * + * @description + * Get the ISO week of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // Which week of the ISO-week numbering year is 2 January 2005? + * const result = getISOWeek(new Date(2005, 0, 2)) + * //=> 53 + */ + +function getISOWeek(dirtyDate) { + (0, _index4.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var diff = (0, _index2.default)(date).getTime() - (0, _index3.default)(date).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeek/index.js.flow b/node_modules/date-fns/getISOWeek/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getISOWeek/package.json b/node_modules/date-fns/getISOWeek/package.json new file mode 100644 index 00000000..0b6f71b2 --- /dev/null +++ b/node_modules/date-fns/getISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeekYear/index.d.ts b/node_modules/date-fns/getISOWeekYear/index.d.ts new file mode 100644 index 00000000..018d0c81 --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeekYear } from 'date-fns' +export default getISOWeekYear diff --git a/node_modules/date-fns/getISOWeekYear/index.js b/node_modules/date-fns/getISOWeekYear/index.js new file mode 100644 index 00000000..f3c578ba --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getISOWeekYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the ISO week-numbering year of the given date. + * + * @description + * Get the ISO week-numbering year of the given date, + * which always starts 3 days before the year's first Thursday. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // Which ISO-week numbering year is 2 January 2005? + * const result = getISOWeekYear(new Date(2005, 0, 2)) + * //=> 2004 + */ +function getISOWeekYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var fourthOfJanuaryOfNextYear = new Date(0); + fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); + fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = (0, _index2.default)(fourthOfJanuaryOfNextYear); + var fourthOfJanuaryOfThisYear = new Date(0); + fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); + fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = (0, _index2.default)(fourthOfJanuaryOfThisYear); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeekYear/index.js.flow b/node_modules/date-fns/getISOWeekYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getISOWeekYear/package.json b/node_modules/date-fns/getISOWeekYear/package.json new file mode 100644 index 00000000..ff5d730b --- /dev/null +++ b/node_modules/date-fns/getISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeeksInYear/index.d.ts b/node_modules/date-fns/getISOWeeksInYear/index.d.ts new file mode 100644 index 00000000..5d3ee66a --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getISOWeeksInYear } from 'date-fns' +export default getISOWeeksInYear diff --git a/node_modules/date-fns/getISOWeeksInYear/index.js b/node_modules/date-fns/getISOWeeksInYear/index.js new file mode 100644 index 00000000..5d72cb82 --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getISOWeeksInYear; + +var _index = _interopRequireDefault(require("../startOfISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../addWeeks/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getISOWeeksInYear + * @category ISO Week-Numbering Year Helpers + * @summary Get the number of weeks in an ISO week-numbering year of the given date. + * + * @description + * Get the number of weeks in an ISO week-numbering year of the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the given date + * @returns {Number} the number of ISO weeks in a year + * @throws {TypeError} 1 argument required + * + * @example + * // How many weeks are in ISO week-numbering year 2015? + * const result = getISOWeeksInYear(new Date(2015, 1, 11)) + * //=> 53 + */ + +function getISOWeeksInYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var thisYear = (0, _index.default)(dirtyDate); + var nextYear = (0, _index.default)((0, _index2.default)(thisYear, 60)); + var diff = nextYear.valueOf() - thisYear.valueOf(); // Round the number of weeks to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getISOWeeksInYear/index.js.flow b/node_modules/date-fns/getISOWeeksInYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getISOWeeksInYear/package.json b/node_modules/date-fns/getISOWeeksInYear/package.json new file mode 100644 index 00000000..9796b179 --- /dev/null +++ b/node_modules/date-fns/getISOWeeksInYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getISOWeeksInYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getMilliseconds/index.d.ts b/node_modules/date-fns/getMilliseconds/index.d.ts new file mode 100644 index 00000000..7476168c --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMilliseconds } from 'date-fns' +export default getMilliseconds diff --git a/node_modules/date-fns/getMilliseconds/index.js b/node_modules/date-fns/getMilliseconds/index.js new file mode 100644 index 00000000..dce6f976 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getMilliseconds; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getMilliseconds + * @category Millisecond Helpers + * @summary Get the milliseconds of the given date. + * + * @description + * Get the milliseconds of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Get the milliseconds of 29 February 2012 11:45:05.123: + * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 123 + */ +function getMilliseconds(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var milliseconds = date.getMilliseconds(); + return milliseconds; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getMilliseconds/index.js.flow b/node_modules/date-fns/getMilliseconds/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getMilliseconds/package.json b/node_modules/date-fns/getMilliseconds/package.json new file mode 100644 index 00000000..be8fa3ee --- /dev/null +++ b/node_modules/date-fns/getMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getMinutes/index.d.ts b/node_modules/date-fns/getMinutes/index.d.ts new file mode 100644 index 00000000..e6a92842 --- /dev/null +++ b/node_modules/date-fns/getMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMinutes } from 'date-fns' +export default getMinutes diff --git a/node_modules/date-fns/getMinutes/index.js b/node_modules/date-fns/getMinutes/index.js new file mode 100644 index 00000000..8e7603c0 --- /dev/null +++ b/node_modules/date-fns/getMinutes/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getMinutes; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getMinutes + * @category Minute Helpers + * @summary Get the minutes of the given date. + * + * @description + * Get the minutes of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Get the minutes of 29 February 2012 11:45:05: + * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 45 + */ +function getMinutes(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var minutes = date.getMinutes(); + return minutes; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getMinutes/index.js.flow b/node_modules/date-fns/getMinutes/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getMinutes/package.json b/node_modules/date-fns/getMinutes/package.json new file mode 100644 index 00000000..6c8a4f78 --- /dev/null +++ b/node_modules/date-fns/getMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getMonth/index.d.ts b/node_modules/date-fns/getMonth/index.d.ts new file mode 100644 index 00000000..e0b62173 --- /dev/null +++ b/node_modules/date-fns/getMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getMonth } from 'date-fns' +export default getMonth diff --git a/node_modules/date-fns/getMonth/index.js b/node_modules/date-fns/getMonth/index.js new file mode 100644 index 00000000..74a884a8 --- /dev/null +++ b/node_modules/date-fns/getMonth/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getMonth + * @category Month Helpers + * @summary Get the month of the given date. + * + * @description + * Get the month of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the month + * @throws {TypeError} 1 argument required + * + * @example + * // Which month is 29 February 2012? + * const result = getMonth(new Date(2012, 1, 29)) + * //=> 1 + */ +function getMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var month = date.getMonth(); + return month; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getMonth/index.js.flow b/node_modules/date-fns/getMonth/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getMonth/package.json b/node_modules/date-fns/getMonth/package.json new file mode 100644 index 00000000..0539a9f9 --- /dev/null +++ b/node_modules/date-fns/getMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals/index.d.ts b/node_modules/date-fns/getOverlappingDaysInIntervals/index.d.ts new file mode 100644 index 00000000..e309ff91 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getOverlappingDaysInIntervals } from 'date-fns' +export default getOverlappingDaysInIntervals diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals/index.js b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js new file mode 100644 index 00000000..f37e2416 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js @@ -0,0 +1,72 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getOverlappingDaysInIntervals; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000; +/** + * @name getOverlappingDaysInIntervals + * @category Interval Helpers + * @summary Get the number of days that overlap in two time intervals + * + * @description + * Get the number of days that overlap in two time intervals + * + * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/Interval} + * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/Interval} + * @returns {Number} the number of days that overlap in two time intervals + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For overlapping time intervals adds 1 for each started overlapping day: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) } + * ) + * //=> 3 + * + * @example + * // For non-overlapping time intervals returns 0: + * getOverlappingDaysInIntervals( + * { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }, + * { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) } + * ) + * //=> 0 + */ + +function getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) { + (0, _index2.default)(2, arguments); + var intervalLeft = dirtyIntervalLeft || {}; + var intervalRight = dirtyIntervalRight || {}; + var leftStartTime = (0, _index.default)(intervalLeft.start).getTime(); + var leftEndTime = (0, _index.default)(intervalLeft.end).getTime(); + var rightStartTime = (0, _index.default)(intervalRight.start).getTime(); + var rightEndTime = (0, _index.default)(intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) { + throw new RangeError('Invalid interval'); + } + + var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime; + + if (!isOverlapping) { + return 0; + } + + var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime; + var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime; + var differenceInMs = overlapEndDate - overlapStartDate; + return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals/index.js.flow b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js.flow new file mode 100644 index 00000000..9c0f272c --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + intervalLeft: Interval, + intervalRight: Interval +) => number diff --git a/node_modules/date-fns/getOverlappingDaysInIntervals/package.json b/node_modules/date-fns/getOverlappingDaysInIntervals/package.json new file mode 100644 index 00000000..62dd26b6 --- /dev/null +++ b/node_modules/date-fns/getOverlappingDaysInIntervals/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getOverlappingDaysInIntervals/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getQuarter/index.d.ts b/node_modules/date-fns/getQuarter/index.d.ts new file mode 100644 index 00000000..6434ba0b --- /dev/null +++ b/node_modules/date-fns/getQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getQuarter } from 'date-fns' +export default getQuarter diff --git a/node_modules/date-fns/getQuarter/index.js b/node_modules/date-fns/getQuarter/index.js new file mode 100644 index 00000000..c4760fae --- /dev/null +++ b/node_modules/date-fns/getQuarter/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getQuarter; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getQuarter + * @category Quarter Helpers + * @summary Get the year quarter of the given date. + * + * @description + * Get the year quarter of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the quarter + * @throws {TypeError} 1 argument required + * + * @example + * // Which quarter is 2 July 2014? + * const result = getQuarter(new Date(2014, 6, 2)) + * //=> 3 + */ +function getQuarter(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var quarter = Math.floor(date.getMonth() / 3) + 1; + return quarter; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getQuarter/index.js.flow b/node_modules/date-fns/getQuarter/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getQuarter/package.json b/node_modules/date-fns/getQuarter/package.json new file mode 100644 index 00000000..56ffce60 --- /dev/null +++ b/node_modules/date-fns/getQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getSeconds/index.d.ts b/node_modules/date-fns/getSeconds/index.d.ts new file mode 100644 index 00000000..7b609441 --- /dev/null +++ b/node_modules/date-fns/getSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getSeconds } from 'date-fns' +export default getSeconds diff --git a/node_modules/date-fns/getSeconds/index.js b/node_modules/date-fns/getSeconds/index.js new file mode 100644 index 00000000..97f57c2d --- /dev/null +++ b/node_modules/date-fns/getSeconds/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getSeconds; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getSeconds + * @category Second Helpers + * @summary Get the seconds of the given date. + * + * @description + * Get the seconds of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Get the seconds of 29 February 2012 11:45:05.123: + * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 5 + */ +function getSeconds(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var seconds = date.getSeconds(); + return seconds; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getSeconds/index.js.flow b/node_modules/date-fns/getSeconds/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getSeconds/package.json b/node_modules/date-fns/getSeconds/package.json new file mode 100644 index 00000000..f76ee542 --- /dev/null +++ b/node_modules/date-fns/getSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getTime/index.d.ts b/node_modules/date-fns/getTime/index.d.ts new file mode 100644 index 00000000..87c958e6 --- /dev/null +++ b/node_modules/date-fns/getTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getTime } from 'date-fns' +export default getTime diff --git a/node_modules/date-fns/getTime/index.js b/node_modules/date-fns/getTime/index.js new file mode 100644 index 00000000..31eae292 --- /dev/null +++ b/node_modules/date-fns/getTime/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getTime; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getTime + * @category Timestamp Helpers + * @summary Get the milliseconds timestamp of the given date. + * + * @description + * Get the milliseconds timestamp of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the timestamp + * @throws {TypeError} 1 argument required + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05.123: + * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) + * //=> 1330515905123 + */ +function getTime(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var timestamp = date.getTime(); + return timestamp; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getTime/index.js.flow b/node_modules/date-fns/getTime/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getTime/package.json b/node_modules/date-fns/getTime/package.json new file mode 100644 index 00000000..d9e138cb --- /dev/null +++ b/node_modules/date-fns/getTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getTime/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getUnixTime/index.d.ts b/node_modules/date-fns/getUnixTime/index.d.ts new file mode 100644 index 00000000..8f85a122 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getUnixTime } from 'date-fns' +export default getUnixTime diff --git a/node_modules/date-fns/getUnixTime/index.js b/node_modules/date-fns/getUnixTime/index.js new file mode 100644 index 00000000..6c9f2ff8 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getUnixTime; + +var _index = _interopRequireDefault(require("../getTime/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getUnixTime + * @category Timestamp Helpers + * @summary Get the seconds timestamp of the given date. + * + * @description + * Get the seconds timestamp of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the timestamp + * @throws {TypeError} 1 argument required + * + * @example + * // Get the timestamp of 29 February 2012 11:45:05 CET: + * const result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5)) + * //=> 1330512305 + */ +function getUnixTime(dirtyDate) { + (0, _index2.default)(1, arguments); + return Math.floor((0, _index.default)(dirtyDate) / 1000); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getUnixTime/index.js.flow b/node_modules/date-fns/getUnixTime/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getUnixTime/package.json b/node_modules/date-fns/getUnixTime/package.json new file mode 100644 index 00000000..bc24ccb7 --- /dev/null +++ b/node_modules/date-fns/getUnixTime/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getUnixTime/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getWeek/index.d.ts b/node_modules/date-fns/getWeek/index.d.ts new file mode 100644 index 00000000..dfa1327e --- /dev/null +++ b/node_modules/date-fns/getWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeek } from 'date-fns' +export default getWeek diff --git a/node_modules/date-fns/getWeek/index.js b/node_modules/date-fns/getWeek/index.js new file mode 100644 index 00000000..174ad1f5 --- /dev/null +++ b/node_modules/date-fns/getWeek/index.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWeek; + +var _index = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfWeekYear/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var MILLISECONDS_IN_WEEK = 604800000; +/** + * @name getWeek + * @category Week Helpers + * @summary Get the local week index of the given date. + * + * @description + * Get the local week index of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Number} the week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Which week of the local week numbering year is 2 January 2005 with default options? + * const result = getWeek(new Date(2005, 0, 2)) + * //=> 2 + * + * // Which week of the local week numbering year is 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January? + * const result = getWeek(new Date(2005, 0, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> 53 + */ + +function getWeek(dirtyDate, options) { + (0, _index4.default)(1, arguments); + var date = (0, _index3.default)(dirtyDate); + var diff = (0, _index.default)(date, options).getTime() - (0, _index2.default)(date, options).getTime(); // Round the number of days to the nearest integer + // because the number of milliseconds in a week is not constant + // (e.g. it's different in the week of the daylight saving time clock shift) + + return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getWeek/index.js.flow b/node_modules/date-fns/getWeek/index.js.flow new file mode 100644 index 00000000..2c948ae2 --- /dev/null +++ b/node_modules/date-fns/getWeek/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => number diff --git a/node_modules/date-fns/getWeek/package.json b/node_modules/date-fns/getWeek/package.json new file mode 100644 index 00000000..deb1966c --- /dev/null +++ b/node_modules/date-fns/getWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getWeekOfMonth/index.d.ts b/node_modules/date-fns/getWeekOfMonth/index.d.ts new file mode 100644 index 00000000..781b2add --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekOfMonth } from 'date-fns' +export default getWeekOfMonth diff --git a/node_modules/date-fns/getWeekOfMonth/index.js b/node_modules/date-fns/getWeekOfMonth/index.js new file mode 100644 index 00000000..45c0557b --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/index.js @@ -0,0 +1,63 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWeekOfMonth; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../getDate/index.js")); + +var _index3 = _interopRequireDefault(require("../getDay/index.js")); + +var _index4 = _interopRequireDefault(require("../startOfMonth/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getWeekOfMonth + * @category Week Helpers + * @summary Get the week of the month of the given date. + * + * @description + * Get the week of the month of the given date. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the week of month + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 inclusively + * + * @example + * // Which week of the month is 9 November 2017? + * const result = getWeekOfMonth(new Date(2017, 10, 9)) + * //=> 2 + */ +function getWeekOfMonth(date, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index5.default)(1, arguments); + var defaultOptions = (0, _index.getDefaultOptions)(); + var weekStartsOn = (0, _index6.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var currentDayOfMonth = (0, _index2.default)(date); + if (isNaN(currentDayOfMonth)) return NaN; + var startWeekDay = (0, _index3.default)((0, _index4.default)(date)); + var lastDayOfFirstWeek = weekStartsOn - startWeekDay; + if (lastDayOfFirstWeek <= 0) lastDayOfFirstWeek += 7; + var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek; + return Math.ceil(remainingDaysAfterFirstWeek / 7) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getWeekOfMonth/index.js.flow b/node_modules/date-fns/getWeekOfMonth/index.js.flow new file mode 100644 index 00000000..1115f28e --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/getWeekOfMonth/package.json b/node_modules/date-fns/getWeekOfMonth/package.json new file mode 100644 index 00000000..51da61c6 --- /dev/null +++ b/node_modules/date-fns/getWeekOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getWeekOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getWeekYear/index.d.ts b/node_modules/date-fns/getWeekYear/index.d.ts new file mode 100644 index 00000000..c8fc5289 --- /dev/null +++ b/node_modules/date-fns/getWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeekYear } from 'date-fns' +export default getWeekYear diff --git a/node_modules/date-fns/getWeekYear/index.js b/node_modules/date-fns/getWeekYear/index.js new file mode 100644 index 00000000..cacdc3b6 --- /dev/null +++ b/node_modules/date-fns/getWeekYear/index.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWeekYear; + +var _index = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getWeekYear + * @category Week-Numbering Year Helpers + * @summary Get the local week-numbering year of the given date. + * + * @description + * Get the local week-numbering year of the given date. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Number} the local week-numbering year + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Which week numbering year is 26 December 2004 with the default settings? + * const result = getWeekYear(new Date(2004, 11, 26)) + * //=> 2005 + * + * @example + * // Which week numbering year is 26 December 2004 if week starts on Saturday? + * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 }) + * //=> 2004 + * + * @example + * // Which week numbering year is 26 December 2004 if the first week contains 4 January? + * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 }) + * //=> 2004 + */ +function getWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index4.default)(1, arguments); + var date = (0, _index2.default)(dirtyDate); + var year = date.getFullYear(); + var defaultOptions = (0, _index5.getDefaultOptions)(); + var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var firstWeekOfNextYear = new Date(0); + firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate); + firstWeekOfNextYear.setHours(0, 0, 0, 0); + var startOfNextYear = (0, _index.default)(firstWeekOfNextYear, options); + var firstWeekOfThisYear = new Date(0); + firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate); + firstWeekOfThisYear.setHours(0, 0, 0, 0); + var startOfThisYear = (0, _index.default)(firstWeekOfThisYear, options); + + if (date.getTime() >= startOfNextYear.getTime()) { + return year + 1; + } else if (date.getTime() >= startOfThisYear.getTime()) { + return year; + } else { + return year - 1; + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getWeekYear/index.js.flow b/node_modules/date-fns/getWeekYear/index.js.flow new file mode 100644 index 00000000..2c948ae2 --- /dev/null +++ b/node_modules/date-fns/getWeekYear/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => number diff --git a/node_modules/date-fns/getWeekYear/package.json b/node_modules/date-fns/getWeekYear/package.json new file mode 100644 index 00000000..e53b02cc --- /dev/null +++ b/node_modules/date-fns/getWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getWeeksInMonth/index.d.ts b/node_modules/date-fns/getWeeksInMonth/index.d.ts new file mode 100644 index 00000000..e6ffaaaa --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getWeeksInMonth } from 'date-fns' +export default getWeeksInMonth diff --git a/node_modules/date-fns/getWeeksInMonth/index.js b/node_modules/date-fns/getWeeksInMonth/index.js new file mode 100644 index 00000000..04c9264b --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getWeeksInMonth; + +var _index = _interopRequireDefault(require("../differenceInCalendarWeeks/index.js")); + +var _index2 = _interopRequireDefault(require("../lastDayOfMonth/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getWeeksInMonth + * @category Week Helpers + * @summary Get the number of calendar weeks a month spans. + * + * @description + * Get the number of calendar weeks the month in the given date spans. + * + * @param {Date|Number} date - the given date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Number} the number of calendar weeks + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // How many calendar weeks does February 2015 span? + * const result = getWeeksInMonth(new Date(2015, 1, 8)) + * //=> 4 + * + * @example + * // If the week starts on Monday, + * // how many calendar weeks does July 2017 span? + * const result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 }) + * //=> 6 + */ +function getWeeksInMonth(date, options) { + (0, _index4.default)(1, arguments); + return (0, _index.default)((0, _index2.default)(date), (0, _index3.default)(date), options) + 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getWeeksInMonth/index.js.flow b/node_modules/date-fns/getWeeksInMonth/index.js.flow new file mode 100644 index 00000000..1115f28e --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => number diff --git a/node_modules/date-fns/getWeeksInMonth/package.json b/node_modules/date-fns/getWeeksInMonth/package.json new file mode 100644 index 00000000..aaff5d2b --- /dev/null +++ b/node_modules/date-fns/getWeeksInMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getWeeksInMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/getYear/index.d.ts b/node_modules/date-fns/getYear/index.d.ts new file mode 100644 index 00000000..3ef8154a --- /dev/null +++ b/node_modules/date-fns/getYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { getYear } from 'date-fns' +export default getYear diff --git a/node_modules/date-fns/getYear/index.js b/node_modules/date-fns/getYear/index.js new file mode 100644 index 00000000..ba532ab8 --- /dev/null +++ b/node_modules/date-fns/getYear/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name getYear + * @category Year Helpers + * @summary Get the year of the given date. + * + * @description + * Get the year of the given date. + * + * @param {Date|Number} date - the given date + * @returns {Number} the year + * @throws {TypeError} 1 argument required + * + * @example + * // Which year is 2 July 2014? + * const result = getYear(new Date(2014, 6, 2)) + * //=> 2014 + */ +function getYear(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getFullYear(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/getYear/index.js.flow b/node_modules/date-fns/getYear/index.js.flow new file mode 100644 index 00000000..07bb0121 --- /dev/null +++ b/node_modules/date-fns/getYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => number diff --git a/node_modules/date-fns/getYear/package.json b/node_modules/date-fns/getYear/package.json new file mode 100644 index 00000000..cb4a6dc3 --- /dev/null +++ b/node_modules/date-fns/getYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/getYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/hoursToMilliseconds/index.d.ts b/node_modules/date-fns/hoursToMilliseconds/index.d.ts new file mode 100644 index 00000000..ed24a0d6 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMilliseconds } from 'date-fns' +export default hoursToMilliseconds diff --git a/node_modules/date-fns/hoursToMilliseconds/index.js b/node_modules/date-fns/hoursToMilliseconds/index.js new file mode 100644 index 00000000..0c56c587 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = hoursToMilliseconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name hoursToMilliseconds + * @category Conversion Helpers + * @summary Convert hours to milliseconds. + * + * @description + * Convert a number of hours to a full number of milliseconds. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted to milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to milliseconds: + * const result = hoursToMilliseconds(2) + * //=> 7200000 + */ +function hoursToMilliseconds(hours) { + (0, _index.default)(1, arguments); + return Math.floor(hours * _index2.millisecondsInHour); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/hoursToMilliseconds/index.js.flow b/node_modules/date-fns/hoursToMilliseconds/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/hoursToMilliseconds/package.json b/node_modules/date-fns/hoursToMilliseconds/package.json new file mode 100644 index 00000000..1216b900 --- /dev/null +++ b/node_modules/date-fns/hoursToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/hoursToMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/hoursToMinutes/index.d.ts b/node_modules/date-fns/hoursToMinutes/index.d.ts new file mode 100644 index 00000000..d0fbbbf4 --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToMinutes } from 'date-fns' +export default hoursToMinutes diff --git a/node_modules/date-fns/hoursToMinutes/index.js b/node_modules/date-fns/hoursToMinutes/index.js new file mode 100644 index 00000000..e1f3ed31 --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = hoursToMinutes; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name hoursToMinutes + * @category Conversion Helpers + * @summary Convert hours to minutes. + * + * @description + * Convert a number of hours to a full number of minutes. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to minutes: + * const result = hoursToMinutes(2) + * //=> 120 + */ +function hoursToMinutes(hours) { + (0, _index.default)(1, arguments); + return Math.floor(hours * _index2.minutesInHour); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/hoursToMinutes/index.js.flow b/node_modules/date-fns/hoursToMinutes/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/hoursToMinutes/package.json b/node_modules/date-fns/hoursToMinutes/package.json new file mode 100644 index 00000000..47912c8e --- /dev/null +++ b/node_modules/date-fns/hoursToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/hoursToMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/hoursToSeconds/index.d.ts b/node_modules/date-fns/hoursToSeconds/index.d.ts new file mode 100644 index 00000000..8544afb7 --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hoursToSeconds } from 'date-fns' +export default hoursToSeconds diff --git a/node_modules/date-fns/hoursToSeconds/index.js b/node_modules/date-fns/hoursToSeconds/index.js new file mode 100644 index 00000000..bc0c39c7 --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = hoursToSeconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name hoursToSeconds + * @category Conversion Helpers + * @summary Convert hours to seconds. + * + * @description + * Convert a number of hours to a full number of seconds. + * + * @param {number} hours - number of hours to be converted + * + * @returns {number} the number of hours converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 hours to seconds: + * const result = hoursToSeconds(2) + * //=> 7200 + */ +function hoursToSeconds(hours) { + (0, _index.default)(1, arguments); + return Math.floor(hours * _index2.secondsInHour); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/hoursToSeconds/index.js.flow b/node_modules/date-fns/hoursToSeconds/index.js.flow new file mode 100644 index 00000000..950ac71e --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (hours: number) => number diff --git a/node_modules/date-fns/hoursToSeconds/package.json b/node_modules/date-fns/hoursToSeconds/package.json new file mode 100644 index 00000000..795b4e00 --- /dev/null +++ b/node_modules/date-fns/hoursToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/hoursToSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/index.js b/node_modules/date-fns/index.js new file mode 100755 index 00000000..6d6f5ec1 --- /dev/null +++ b/node_modules/date-fns/index.js @@ -0,0 +1,2174 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _exportNames = { + add: true, + addBusinessDays: true, + addDays: true, + addHours: true, + addISOWeekYears: true, + addMilliseconds: true, + addMinutes: true, + addMonths: true, + addQuarters: true, + addSeconds: true, + addWeeks: true, + addYears: true, + areIntervalsOverlapping: true, + clamp: true, + closestIndexTo: true, + closestTo: true, + compareAsc: true, + compareDesc: true, + daysToWeeks: true, + differenceInBusinessDays: true, + differenceInCalendarDays: true, + differenceInCalendarISOWeekYears: true, + differenceInCalendarISOWeeks: true, + differenceInCalendarMonths: true, + differenceInCalendarQuarters: true, + differenceInCalendarWeeks: true, + differenceInCalendarYears: true, + differenceInDays: true, + differenceInHours: true, + differenceInISOWeekYears: true, + differenceInMilliseconds: true, + differenceInMinutes: true, + differenceInMonths: true, + differenceInQuarters: true, + differenceInSeconds: true, + differenceInWeeks: true, + differenceInYears: true, + eachDayOfInterval: true, + eachHourOfInterval: true, + eachMinuteOfInterval: true, + eachMonthOfInterval: true, + eachQuarterOfInterval: true, + eachWeekOfInterval: true, + eachWeekendOfInterval: true, + eachWeekendOfMonth: true, + eachWeekendOfYear: true, + eachYearOfInterval: true, + endOfDay: true, + endOfDecade: true, + endOfHour: true, + endOfISOWeek: true, + endOfISOWeekYear: true, + endOfMinute: true, + endOfMonth: true, + endOfQuarter: true, + endOfSecond: true, + endOfToday: true, + endOfTomorrow: true, + endOfWeek: true, + endOfYear: true, + endOfYesterday: true, + format: true, + formatDistance: true, + formatDistanceStrict: true, + formatDistanceToNow: true, + formatDistanceToNowStrict: true, + formatDuration: true, + formatISO: true, + formatISO9075: true, + formatISODuration: true, + formatRFC3339: true, + formatRFC7231: true, + formatRelative: true, + fromUnixTime: true, + getDate: true, + getDay: true, + getDayOfYear: true, + getDaysInMonth: true, + getDaysInYear: true, + getDecade: true, + getDefaultOptions: true, + getHours: true, + getISODay: true, + getISOWeek: true, + getISOWeekYear: true, + getISOWeeksInYear: true, + getMilliseconds: true, + getMinutes: true, + getMonth: true, + getOverlappingDaysInIntervals: true, + getQuarter: true, + getSeconds: true, + getTime: true, + getUnixTime: true, + getWeek: true, + getWeekOfMonth: true, + getWeekYear: true, + getWeeksInMonth: true, + getYear: true, + hoursToMilliseconds: true, + hoursToMinutes: true, + hoursToSeconds: true, + intervalToDuration: true, + intlFormat: true, + intlFormatDistance: true, + isAfter: true, + isBefore: true, + isDate: true, + isEqual: true, + isExists: true, + isFirstDayOfMonth: true, + isFriday: true, + isFuture: true, + isLastDayOfMonth: true, + isLeapYear: true, + isMatch: true, + isMonday: true, + isPast: true, + isSameDay: true, + isSameHour: true, + isSameISOWeek: true, + isSameISOWeekYear: true, + isSameMinute: true, + isSameMonth: true, + isSameQuarter: true, + isSameSecond: true, + isSameWeek: true, + isSameYear: true, + isSaturday: true, + isSunday: true, + isThisHour: true, + isThisISOWeek: true, + isThisMinute: true, + isThisMonth: true, + isThisQuarter: true, + isThisSecond: true, + isThisWeek: true, + isThisYear: true, + isThursday: true, + isToday: true, + isTomorrow: true, + isTuesday: true, + isValid: true, + isWednesday: true, + isWeekend: true, + isWithinInterval: true, + isYesterday: true, + lastDayOfDecade: true, + lastDayOfISOWeek: true, + lastDayOfISOWeekYear: true, + lastDayOfMonth: true, + lastDayOfQuarter: true, + lastDayOfWeek: true, + lastDayOfYear: true, + lightFormat: true, + max: true, + milliseconds: true, + millisecondsToHours: true, + millisecondsToMinutes: true, + millisecondsToSeconds: true, + min: true, + minutesToHours: true, + minutesToMilliseconds: true, + minutesToSeconds: true, + monthsToQuarters: true, + monthsToYears: true, + nextDay: true, + nextFriday: true, + nextMonday: true, + nextSaturday: true, + nextSunday: true, + nextThursday: true, + nextTuesday: true, + nextWednesday: true, + parse: true, + parseISO: true, + parseJSON: true, + previousDay: true, + previousFriday: true, + previousMonday: true, + previousSaturday: true, + previousSunday: true, + previousThursday: true, + previousTuesday: true, + previousWednesday: true, + quartersToMonths: true, + quartersToYears: true, + roundToNearestMinutes: true, + secondsToHours: true, + secondsToMilliseconds: true, + secondsToMinutes: true, + set: true, + setDate: true, + setDay: true, + setDayOfYear: true, + setDefaultOptions: true, + setHours: true, + setISODay: true, + setISOWeek: true, + setISOWeekYear: true, + setMilliseconds: true, + setMinutes: true, + setMonth: true, + setQuarter: true, + setSeconds: true, + setWeek: true, + setWeekYear: true, + setYear: true, + startOfDay: true, + startOfDecade: true, + startOfHour: true, + startOfISOWeek: true, + startOfISOWeekYear: true, + startOfMinute: true, + startOfMonth: true, + startOfQuarter: true, + startOfSecond: true, + startOfToday: true, + startOfTomorrow: true, + startOfWeek: true, + startOfWeekYear: true, + startOfYear: true, + startOfYesterday: true, + sub: true, + subBusinessDays: true, + subDays: true, + subHours: true, + subISOWeekYears: true, + subMilliseconds: true, + subMinutes: true, + subMonths: true, + subQuarters: true, + subSeconds: true, + subWeeks: true, + subYears: true, + toDate: true, + weeksToDays: true, + yearsToMonths: true, + yearsToQuarters: true +}; +Object.defineProperty(exports, "add", { + enumerable: true, + get: function get() { + return _index.default; + } +}); +Object.defineProperty(exports, "addBusinessDays", { + enumerable: true, + get: function get() { + return _index2.default; + } +}); +Object.defineProperty(exports, "addDays", { + enumerable: true, + get: function get() { + return _index3.default; + } +}); +Object.defineProperty(exports, "addHours", { + enumerable: true, + get: function get() { + return _index4.default; + } +}); +Object.defineProperty(exports, "addISOWeekYears", { + enumerable: true, + get: function get() { + return _index5.default; + } +}); +Object.defineProperty(exports, "addMilliseconds", { + enumerable: true, + get: function get() { + return _index6.default; + } +}); +Object.defineProperty(exports, "addMinutes", { + enumerable: true, + get: function get() { + return _index7.default; + } +}); +Object.defineProperty(exports, "addMonths", { + enumerable: true, + get: function get() { + return _index8.default; + } +}); +Object.defineProperty(exports, "addQuarters", { + enumerable: true, + get: function get() { + return _index9.default; + } +}); +Object.defineProperty(exports, "addSeconds", { + enumerable: true, + get: function get() { + return _index10.default; + } +}); +Object.defineProperty(exports, "addWeeks", { + enumerable: true, + get: function get() { + return _index11.default; + } +}); +Object.defineProperty(exports, "addYears", { + enumerable: true, + get: function get() { + return _index12.default; + } +}); +Object.defineProperty(exports, "areIntervalsOverlapping", { + enumerable: true, + get: function get() { + return _index13.default; + } +}); +Object.defineProperty(exports, "clamp", { + enumerable: true, + get: function get() { + return _index14.default; + } +}); +Object.defineProperty(exports, "closestIndexTo", { + enumerable: true, + get: function get() { + return _index15.default; + } +}); +Object.defineProperty(exports, "closestTo", { + enumerable: true, + get: function get() { + return _index16.default; + } +}); +Object.defineProperty(exports, "compareAsc", { + enumerable: true, + get: function get() { + return _index17.default; + } +}); +Object.defineProperty(exports, "compareDesc", { + enumerable: true, + get: function get() { + return _index18.default; + } +}); +Object.defineProperty(exports, "daysToWeeks", { + enumerable: true, + get: function get() { + return _index19.default; + } +}); +Object.defineProperty(exports, "differenceInBusinessDays", { + enumerable: true, + get: function get() { + return _index20.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarDays", { + enumerable: true, + get: function get() { + return _index21.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeekYears", { + enumerable: true, + get: function get() { + return _index22.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarISOWeeks", { + enumerable: true, + get: function get() { + return _index23.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarMonths", { + enumerable: true, + get: function get() { + return _index24.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarQuarters", { + enumerable: true, + get: function get() { + return _index25.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarWeeks", { + enumerable: true, + get: function get() { + return _index26.default; + } +}); +Object.defineProperty(exports, "differenceInCalendarYears", { + enumerable: true, + get: function get() { + return _index27.default; + } +}); +Object.defineProperty(exports, "differenceInDays", { + enumerable: true, + get: function get() { + return _index28.default; + } +}); +Object.defineProperty(exports, "differenceInHours", { + enumerable: true, + get: function get() { + return _index29.default; + } +}); +Object.defineProperty(exports, "differenceInISOWeekYears", { + enumerable: true, + get: function get() { + return _index30.default; + } +}); +Object.defineProperty(exports, "differenceInMilliseconds", { + enumerable: true, + get: function get() { + return _index31.default; + } +}); +Object.defineProperty(exports, "differenceInMinutes", { + enumerable: true, + get: function get() { + return _index32.default; + } +}); +Object.defineProperty(exports, "differenceInMonths", { + enumerable: true, + get: function get() { + return _index33.default; + } +}); +Object.defineProperty(exports, "differenceInQuarters", { + enumerable: true, + get: function get() { + return _index34.default; + } +}); +Object.defineProperty(exports, "differenceInSeconds", { + enumerable: true, + get: function get() { + return _index35.default; + } +}); +Object.defineProperty(exports, "differenceInWeeks", { + enumerable: true, + get: function get() { + return _index36.default; + } +}); +Object.defineProperty(exports, "differenceInYears", { + enumerable: true, + get: function get() { + return _index37.default; + } +}); +Object.defineProperty(exports, "eachDayOfInterval", { + enumerable: true, + get: function get() { + return _index38.default; + } +}); +Object.defineProperty(exports, "eachHourOfInterval", { + enumerable: true, + get: function get() { + return _index39.default; + } +}); +Object.defineProperty(exports, "eachMinuteOfInterval", { + enumerable: true, + get: function get() { + return _index40.default; + } +}); +Object.defineProperty(exports, "eachMonthOfInterval", { + enumerable: true, + get: function get() { + return _index41.default; + } +}); +Object.defineProperty(exports, "eachQuarterOfInterval", { + enumerable: true, + get: function get() { + return _index42.default; + } +}); +Object.defineProperty(exports, "eachWeekOfInterval", { + enumerable: true, + get: function get() { + return _index43.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfInterval", { + enumerable: true, + get: function get() { + return _index44.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfMonth", { + enumerable: true, + get: function get() { + return _index45.default; + } +}); +Object.defineProperty(exports, "eachWeekendOfYear", { + enumerable: true, + get: function get() { + return _index46.default; + } +}); +Object.defineProperty(exports, "eachYearOfInterval", { + enumerable: true, + get: function get() { + return _index47.default; + } +}); +Object.defineProperty(exports, "endOfDay", { + enumerable: true, + get: function get() { + return _index48.default; + } +}); +Object.defineProperty(exports, "endOfDecade", { + enumerable: true, + get: function get() { + return _index49.default; + } +}); +Object.defineProperty(exports, "endOfHour", { + enumerable: true, + get: function get() { + return _index50.default; + } +}); +Object.defineProperty(exports, "endOfISOWeek", { + enumerable: true, + get: function get() { + return _index51.default; + } +}); +Object.defineProperty(exports, "endOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index52.default; + } +}); +Object.defineProperty(exports, "endOfMinute", { + enumerable: true, + get: function get() { + return _index53.default; + } +}); +Object.defineProperty(exports, "endOfMonth", { + enumerable: true, + get: function get() { + return _index54.default; + } +}); +Object.defineProperty(exports, "endOfQuarter", { + enumerable: true, + get: function get() { + return _index55.default; + } +}); +Object.defineProperty(exports, "endOfSecond", { + enumerable: true, + get: function get() { + return _index56.default; + } +}); +Object.defineProperty(exports, "endOfToday", { + enumerable: true, + get: function get() { + return _index57.default; + } +}); +Object.defineProperty(exports, "endOfTomorrow", { + enumerable: true, + get: function get() { + return _index58.default; + } +}); +Object.defineProperty(exports, "endOfWeek", { + enumerable: true, + get: function get() { + return _index59.default; + } +}); +Object.defineProperty(exports, "endOfYear", { + enumerable: true, + get: function get() { + return _index60.default; + } +}); +Object.defineProperty(exports, "endOfYesterday", { + enumerable: true, + get: function get() { + return _index61.default; + } +}); +Object.defineProperty(exports, "format", { + enumerable: true, + get: function get() { + return _index62.default; + } +}); +Object.defineProperty(exports, "formatDistance", { + enumerable: true, + get: function get() { + return _index63.default; + } +}); +Object.defineProperty(exports, "formatDistanceStrict", { + enumerable: true, + get: function get() { + return _index64.default; + } +}); +Object.defineProperty(exports, "formatDistanceToNow", { + enumerable: true, + get: function get() { + return _index65.default; + } +}); +Object.defineProperty(exports, "formatDistanceToNowStrict", { + enumerable: true, + get: function get() { + return _index66.default; + } +}); +Object.defineProperty(exports, "formatDuration", { + enumerable: true, + get: function get() { + return _index67.default; + } +}); +Object.defineProperty(exports, "formatISO", { + enumerable: true, + get: function get() { + return _index68.default; + } +}); +Object.defineProperty(exports, "formatISO9075", { + enumerable: true, + get: function get() { + return _index69.default; + } +}); +Object.defineProperty(exports, "formatISODuration", { + enumerable: true, + get: function get() { + return _index70.default; + } +}); +Object.defineProperty(exports, "formatRFC3339", { + enumerable: true, + get: function get() { + return _index71.default; + } +}); +Object.defineProperty(exports, "formatRFC7231", { + enumerable: true, + get: function get() { + return _index72.default; + } +}); +Object.defineProperty(exports, "formatRelative", { + enumerable: true, + get: function get() { + return _index73.default; + } +}); +Object.defineProperty(exports, "fromUnixTime", { + enumerable: true, + get: function get() { + return _index74.default; + } +}); +Object.defineProperty(exports, "getDate", { + enumerable: true, + get: function get() { + return _index75.default; + } +}); +Object.defineProperty(exports, "getDay", { + enumerable: true, + get: function get() { + return _index76.default; + } +}); +Object.defineProperty(exports, "getDayOfYear", { + enumerable: true, + get: function get() { + return _index77.default; + } +}); +Object.defineProperty(exports, "getDaysInMonth", { + enumerable: true, + get: function get() { + return _index78.default; + } +}); +Object.defineProperty(exports, "getDaysInYear", { + enumerable: true, + get: function get() { + return _index79.default; + } +}); +Object.defineProperty(exports, "getDecade", { + enumerable: true, + get: function get() { + return _index80.default; + } +}); +Object.defineProperty(exports, "getDefaultOptions", { + enumerable: true, + get: function get() { + return _index81.default; + } +}); +Object.defineProperty(exports, "getHours", { + enumerable: true, + get: function get() { + return _index82.default; + } +}); +Object.defineProperty(exports, "getISODay", { + enumerable: true, + get: function get() { + return _index83.default; + } +}); +Object.defineProperty(exports, "getISOWeek", { + enumerable: true, + get: function get() { + return _index84.default; + } +}); +Object.defineProperty(exports, "getISOWeekYear", { + enumerable: true, + get: function get() { + return _index85.default; + } +}); +Object.defineProperty(exports, "getISOWeeksInYear", { + enumerable: true, + get: function get() { + return _index86.default; + } +}); +Object.defineProperty(exports, "getMilliseconds", { + enumerable: true, + get: function get() { + return _index87.default; + } +}); +Object.defineProperty(exports, "getMinutes", { + enumerable: true, + get: function get() { + return _index88.default; + } +}); +Object.defineProperty(exports, "getMonth", { + enumerable: true, + get: function get() { + return _index89.default; + } +}); +Object.defineProperty(exports, "getOverlappingDaysInIntervals", { + enumerable: true, + get: function get() { + return _index90.default; + } +}); +Object.defineProperty(exports, "getQuarter", { + enumerable: true, + get: function get() { + return _index91.default; + } +}); +Object.defineProperty(exports, "getSeconds", { + enumerable: true, + get: function get() { + return _index92.default; + } +}); +Object.defineProperty(exports, "getTime", { + enumerable: true, + get: function get() { + return _index93.default; + } +}); +Object.defineProperty(exports, "getUnixTime", { + enumerable: true, + get: function get() { + return _index94.default; + } +}); +Object.defineProperty(exports, "getWeek", { + enumerable: true, + get: function get() { + return _index95.default; + } +}); +Object.defineProperty(exports, "getWeekOfMonth", { + enumerable: true, + get: function get() { + return _index96.default; + } +}); +Object.defineProperty(exports, "getWeekYear", { + enumerable: true, + get: function get() { + return _index97.default; + } +}); +Object.defineProperty(exports, "getWeeksInMonth", { + enumerable: true, + get: function get() { + return _index98.default; + } +}); +Object.defineProperty(exports, "getYear", { + enumerable: true, + get: function get() { + return _index99.default; + } +}); +Object.defineProperty(exports, "hoursToMilliseconds", { + enumerable: true, + get: function get() { + return _index100.default; + } +}); +Object.defineProperty(exports, "hoursToMinutes", { + enumerable: true, + get: function get() { + return _index101.default; + } +}); +Object.defineProperty(exports, "hoursToSeconds", { + enumerable: true, + get: function get() { + return _index102.default; + } +}); +Object.defineProperty(exports, "intervalToDuration", { + enumerable: true, + get: function get() { + return _index103.default; + } +}); +Object.defineProperty(exports, "intlFormat", { + enumerable: true, + get: function get() { + return _index104.default; + } +}); +Object.defineProperty(exports, "intlFormatDistance", { + enumerable: true, + get: function get() { + return _index105.default; + } +}); +Object.defineProperty(exports, "isAfter", { + enumerable: true, + get: function get() { + return _index106.default; + } +}); +Object.defineProperty(exports, "isBefore", { + enumerable: true, + get: function get() { + return _index107.default; + } +}); +Object.defineProperty(exports, "isDate", { + enumerable: true, + get: function get() { + return _index108.default; + } +}); +Object.defineProperty(exports, "isEqual", { + enumerable: true, + get: function get() { + return _index109.default; + } +}); +Object.defineProperty(exports, "isExists", { + enumerable: true, + get: function get() { + return _index110.default; + } +}); +Object.defineProperty(exports, "isFirstDayOfMonth", { + enumerable: true, + get: function get() { + return _index111.default; + } +}); +Object.defineProperty(exports, "isFriday", { + enumerable: true, + get: function get() { + return _index112.default; + } +}); +Object.defineProperty(exports, "isFuture", { + enumerable: true, + get: function get() { + return _index113.default; + } +}); +Object.defineProperty(exports, "isLastDayOfMonth", { + enumerable: true, + get: function get() { + return _index114.default; + } +}); +Object.defineProperty(exports, "isLeapYear", { + enumerable: true, + get: function get() { + return _index115.default; + } +}); +Object.defineProperty(exports, "isMatch", { + enumerable: true, + get: function get() { + return _index116.default; + } +}); +Object.defineProperty(exports, "isMonday", { + enumerable: true, + get: function get() { + return _index117.default; + } +}); +Object.defineProperty(exports, "isPast", { + enumerable: true, + get: function get() { + return _index118.default; + } +}); +Object.defineProperty(exports, "isSameDay", { + enumerable: true, + get: function get() { + return _index119.default; + } +}); +Object.defineProperty(exports, "isSameHour", { + enumerable: true, + get: function get() { + return _index120.default; + } +}); +Object.defineProperty(exports, "isSameISOWeek", { + enumerable: true, + get: function get() { + return _index121.default; + } +}); +Object.defineProperty(exports, "isSameISOWeekYear", { + enumerable: true, + get: function get() { + return _index122.default; + } +}); +Object.defineProperty(exports, "isSameMinute", { + enumerable: true, + get: function get() { + return _index123.default; + } +}); +Object.defineProperty(exports, "isSameMonth", { + enumerable: true, + get: function get() { + return _index124.default; + } +}); +Object.defineProperty(exports, "isSameQuarter", { + enumerable: true, + get: function get() { + return _index125.default; + } +}); +Object.defineProperty(exports, "isSameSecond", { + enumerable: true, + get: function get() { + return _index126.default; + } +}); +Object.defineProperty(exports, "isSameWeek", { + enumerable: true, + get: function get() { + return _index127.default; + } +}); +Object.defineProperty(exports, "isSameYear", { + enumerable: true, + get: function get() { + return _index128.default; + } +}); +Object.defineProperty(exports, "isSaturday", { + enumerable: true, + get: function get() { + return _index129.default; + } +}); +Object.defineProperty(exports, "isSunday", { + enumerable: true, + get: function get() { + return _index130.default; + } +}); +Object.defineProperty(exports, "isThisHour", { + enumerable: true, + get: function get() { + return _index131.default; + } +}); +Object.defineProperty(exports, "isThisISOWeek", { + enumerable: true, + get: function get() { + return _index132.default; + } +}); +Object.defineProperty(exports, "isThisMinute", { + enumerable: true, + get: function get() { + return _index133.default; + } +}); +Object.defineProperty(exports, "isThisMonth", { + enumerable: true, + get: function get() { + return _index134.default; + } +}); +Object.defineProperty(exports, "isThisQuarter", { + enumerable: true, + get: function get() { + return _index135.default; + } +}); +Object.defineProperty(exports, "isThisSecond", { + enumerable: true, + get: function get() { + return _index136.default; + } +}); +Object.defineProperty(exports, "isThisWeek", { + enumerable: true, + get: function get() { + return _index137.default; + } +}); +Object.defineProperty(exports, "isThisYear", { + enumerable: true, + get: function get() { + return _index138.default; + } +}); +Object.defineProperty(exports, "isThursday", { + enumerable: true, + get: function get() { + return _index139.default; + } +}); +Object.defineProperty(exports, "isToday", { + enumerable: true, + get: function get() { + return _index140.default; + } +}); +Object.defineProperty(exports, "isTomorrow", { + enumerable: true, + get: function get() { + return _index141.default; + } +}); +Object.defineProperty(exports, "isTuesday", { + enumerable: true, + get: function get() { + return _index142.default; + } +}); +Object.defineProperty(exports, "isValid", { + enumerable: true, + get: function get() { + return _index143.default; + } +}); +Object.defineProperty(exports, "isWednesday", { + enumerable: true, + get: function get() { + return _index144.default; + } +}); +Object.defineProperty(exports, "isWeekend", { + enumerable: true, + get: function get() { + return _index145.default; + } +}); +Object.defineProperty(exports, "isWithinInterval", { + enumerable: true, + get: function get() { + return _index146.default; + } +}); +Object.defineProperty(exports, "isYesterday", { + enumerable: true, + get: function get() { + return _index147.default; + } +}); +Object.defineProperty(exports, "lastDayOfDecade", { + enumerable: true, + get: function get() { + return _index148.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeek", { + enumerable: true, + get: function get() { + return _index149.default; + } +}); +Object.defineProperty(exports, "lastDayOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index150.default; + } +}); +Object.defineProperty(exports, "lastDayOfMonth", { + enumerable: true, + get: function get() { + return _index151.default; + } +}); +Object.defineProperty(exports, "lastDayOfQuarter", { + enumerable: true, + get: function get() { + return _index152.default; + } +}); +Object.defineProperty(exports, "lastDayOfWeek", { + enumerable: true, + get: function get() { + return _index153.default; + } +}); +Object.defineProperty(exports, "lastDayOfYear", { + enumerable: true, + get: function get() { + return _index154.default; + } +}); +Object.defineProperty(exports, "lightFormat", { + enumerable: true, + get: function get() { + return _index155.default; + } +}); +Object.defineProperty(exports, "max", { + enumerable: true, + get: function get() { + return _index156.default; + } +}); +Object.defineProperty(exports, "milliseconds", { + enumerable: true, + get: function get() { + return _index157.default; + } +}); +Object.defineProperty(exports, "millisecondsToHours", { + enumerable: true, + get: function get() { + return _index158.default; + } +}); +Object.defineProperty(exports, "millisecondsToMinutes", { + enumerable: true, + get: function get() { + return _index159.default; + } +}); +Object.defineProperty(exports, "millisecondsToSeconds", { + enumerable: true, + get: function get() { + return _index160.default; + } +}); +Object.defineProperty(exports, "min", { + enumerable: true, + get: function get() { + return _index161.default; + } +}); +Object.defineProperty(exports, "minutesToHours", { + enumerable: true, + get: function get() { + return _index162.default; + } +}); +Object.defineProperty(exports, "minutesToMilliseconds", { + enumerable: true, + get: function get() { + return _index163.default; + } +}); +Object.defineProperty(exports, "minutesToSeconds", { + enumerable: true, + get: function get() { + return _index164.default; + } +}); +Object.defineProperty(exports, "monthsToQuarters", { + enumerable: true, + get: function get() { + return _index165.default; + } +}); +Object.defineProperty(exports, "monthsToYears", { + enumerable: true, + get: function get() { + return _index166.default; + } +}); +Object.defineProperty(exports, "nextDay", { + enumerable: true, + get: function get() { + return _index167.default; + } +}); +Object.defineProperty(exports, "nextFriday", { + enumerable: true, + get: function get() { + return _index168.default; + } +}); +Object.defineProperty(exports, "nextMonday", { + enumerable: true, + get: function get() { + return _index169.default; + } +}); +Object.defineProperty(exports, "nextSaturday", { + enumerable: true, + get: function get() { + return _index170.default; + } +}); +Object.defineProperty(exports, "nextSunday", { + enumerable: true, + get: function get() { + return _index171.default; + } +}); +Object.defineProperty(exports, "nextThursday", { + enumerable: true, + get: function get() { + return _index172.default; + } +}); +Object.defineProperty(exports, "nextTuesday", { + enumerable: true, + get: function get() { + return _index173.default; + } +}); +Object.defineProperty(exports, "nextWednesday", { + enumerable: true, + get: function get() { + return _index174.default; + } +}); +Object.defineProperty(exports, "parse", { + enumerable: true, + get: function get() { + return _index175.default; + } +}); +Object.defineProperty(exports, "parseISO", { + enumerable: true, + get: function get() { + return _index176.default; + } +}); +Object.defineProperty(exports, "parseJSON", { + enumerable: true, + get: function get() { + return _index177.default; + } +}); +Object.defineProperty(exports, "previousDay", { + enumerable: true, + get: function get() { + return _index178.default; + } +}); +Object.defineProperty(exports, "previousFriday", { + enumerable: true, + get: function get() { + return _index179.default; + } +}); +Object.defineProperty(exports, "previousMonday", { + enumerable: true, + get: function get() { + return _index180.default; + } +}); +Object.defineProperty(exports, "previousSaturday", { + enumerable: true, + get: function get() { + return _index181.default; + } +}); +Object.defineProperty(exports, "previousSunday", { + enumerable: true, + get: function get() { + return _index182.default; + } +}); +Object.defineProperty(exports, "previousThursday", { + enumerable: true, + get: function get() { + return _index183.default; + } +}); +Object.defineProperty(exports, "previousTuesday", { + enumerable: true, + get: function get() { + return _index184.default; + } +}); +Object.defineProperty(exports, "previousWednesday", { + enumerable: true, + get: function get() { + return _index185.default; + } +}); +Object.defineProperty(exports, "quartersToMonths", { + enumerable: true, + get: function get() { + return _index186.default; + } +}); +Object.defineProperty(exports, "quartersToYears", { + enumerable: true, + get: function get() { + return _index187.default; + } +}); +Object.defineProperty(exports, "roundToNearestMinutes", { + enumerable: true, + get: function get() { + return _index188.default; + } +}); +Object.defineProperty(exports, "secondsToHours", { + enumerable: true, + get: function get() { + return _index189.default; + } +}); +Object.defineProperty(exports, "secondsToMilliseconds", { + enumerable: true, + get: function get() { + return _index190.default; + } +}); +Object.defineProperty(exports, "secondsToMinutes", { + enumerable: true, + get: function get() { + return _index191.default; + } +}); +Object.defineProperty(exports, "set", { + enumerable: true, + get: function get() { + return _index192.default; + } +}); +Object.defineProperty(exports, "setDate", { + enumerable: true, + get: function get() { + return _index193.default; + } +}); +Object.defineProperty(exports, "setDay", { + enumerable: true, + get: function get() { + return _index194.default; + } +}); +Object.defineProperty(exports, "setDayOfYear", { + enumerable: true, + get: function get() { + return _index195.default; + } +}); +Object.defineProperty(exports, "setDefaultOptions", { + enumerable: true, + get: function get() { + return _index196.default; + } +}); +Object.defineProperty(exports, "setHours", { + enumerable: true, + get: function get() { + return _index197.default; + } +}); +Object.defineProperty(exports, "setISODay", { + enumerable: true, + get: function get() { + return _index198.default; + } +}); +Object.defineProperty(exports, "setISOWeek", { + enumerable: true, + get: function get() { + return _index199.default; + } +}); +Object.defineProperty(exports, "setISOWeekYear", { + enumerable: true, + get: function get() { + return _index200.default; + } +}); +Object.defineProperty(exports, "setMilliseconds", { + enumerable: true, + get: function get() { + return _index201.default; + } +}); +Object.defineProperty(exports, "setMinutes", { + enumerable: true, + get: function get() { + return _index202.default; + } +}); +Object.defineProperty(exports, "setMonth", { + enumerable: true, + get: function get() { + return _index203.default; + } +}); +Object.defineProperty(exports, "setQuarter", { + enumerable: true, + get: function get() { + return _index204.default; + } +}); +Object.defineProperty(exports, "setSeconds", { + enumerable: true, + get: function get() { + return _index205.default; + } +}); +Object.defineProperty(exports, "setWeek", { + enumerable: true, + get: function get() { + return _index206.default; + } +}); +Object.defineProperty(exports, "setWeekYear", { + enumerable: true, + get: function get() { + return _index207.default; + } +}); +Object.defineProperty(exports, "setYear", { + enumerable: true, + get: function get() { + return _index208.default; + } +}); +Object.defineProperty(exports, "startOfDay", { + enumerable: true, + get: function get() { + return _index209.default; + } +}); +Object.defineProperty(exports, "startOfDecade", { + enumerable: true, + get: function get() { + return _index210.default; + } +}); +Object.defineProperty(exports, "startOfHour", { + enumerable: true, + get: function get() { + return _index211.default; + } +}); +Object.defineProperty(exports, "startOfISOWeek", { + enumerable: true, + get: function get() { + return _index212.default; + } +}); +Object.defineProperty(exports, "startOfISOWeekYear", { + enumerable: true, + get: function get() { + return _index213.default; + } +}); +Object.defineProperty(exports, "startOfMinute", { + enumerable: true, + get: function get() { + return _index214.default; + } +}); +Object.defineProperty(exports, "startOfMonth", { + enumerable: true, + get: function get() { + return _index215.default; + } +}); +Object.defineProperty(exports, "startOfQuarter", { + enumerable: true, + get: function get() { + return _index216.default; + } +}); +Object.defineProperty(exports, "startOfSecond", { + enumerable: true, + get: function get() { + return _index217.default; + } +}); +Object.defineProperty(exports, "startOfToday", { + enumerable: true, + get: function get() { + return _index218.default; + } +}); +Object.defineProperty(exports, "startOfTomorrow", { + enumerable: true, + get: function get() { + return _index219.default; + } +}); +Object.defineProperty(exports, "startOfWeek", { + enumerable: true, + get: function get() { + return _index220.default; + } +}); +Object.defineProperty(exports, "startOfWeekYear", { + enumerable: true, + get: function get() { + return _index221.default; + } +}); +Object.defineProperty(exports, "startOfYear", { + enumerable: true, + get: function get() { + return _index222.default; + } +}); +Object.defineProperty(exports, "startOfYesterday", { + enumerable: true, + get: function get() { + return _index223.default; + } +}); +Object.defineProperty(exports, "sub", { + enumerable: true, + get: function get() { + return _index224.default; + } +}); +Object.defineProperty(exports, "subBusinessDays", { + enumerable: true, + get: function get() { + return _index225.default; + } +}); +Object.defineProperty(exports, "subDays", { + enumerable: true, + get: function get() { + return _index226.default; + } +}); +Object.defineProperty(exports, "subHours", { + enumerable: true, + get: function get() { + return _index227.default; + } +}); +Object.defineProperty(exports, "subISOWeekYears", { + enumerable: true, + get: function get() { + return _index228.default; + } +}); +Object.defineProperty(exports, "subMilliseconds", { + enumerable: true, + get: function get() { + return _index229.default; + } +}); +Object.defineProperty(exports, "subMinutes", { + enumerable: true, + get: function get() { + return _index230.default; + } +}); +Object.defineProperty(exports, "subMonths", { + enumerable: true, + get: function get() { + return _index231.default; + } +}); +Object.defineProperty(exports, "subQuarters", { + enumerable: true, + get: function get() { + return _index232.default; + } +}); +Object.defineProperty(exports, "subSeconds", { + enumerable: true, + get: function get() { + return _index233.default; + } +}); +Object.defineProperty(exports, "subWeeks", { + enumerable: true, + get: function get() { + return _index234.default; + } +}); +Object.defineProperty(exports, "subYears", { + enumerable: true, + get: function get() { + return _index235.default; + } +}); +Object.defineProperty(exports, "toDate", { + enumerable: true, + get: function get() { + return _index236.default; + } +}); +Object.defineProperty(exports, "weeksToDays", { + enumerable: true, + get: function get() { + return _index237.default; + } +}); +Object.defineProperty(exports, "yearsToMonths", { + enumerable: true, + get: function get() { + return _index238.default; + } +}); +Object.defineProperty(exports, "yearsToQuarters", { + enumerable: true, + get: function get() { + return _index239.default; + } +}); + +var _index = _interopRequireDefault(require("./add/index.js")); + +var _index2 = _interopRequireDefault(require("./addBusinessDays/index.js")); + +var _index3 = _interopRequireDefault(require("./addDays/index.js")); + +var _index4 = _interopRequireDefault(require("./addHours/index.js")); + +var _index5 = _interopRequireDefault(require("./addISOWeekYears/index.js")); + +var _index6 = _interopRequireDefault(require("./addMilliseconds/index.js")); + +var _index7 = _interopRequireDefault(require("./addMinutes/index.js")); + +var _index8 = _interopRequireDefault(require("./addMonths/index.js")); + +var _index9 = _interopRequireDefault(require("./addQuarters/index.js")); + +var _index10 = _interopRequireDefault(require("./addSeconds/index.js")); + +var _index11 = _interopRequireDefault(require("./addWeeks/index.js")); + +var _index12 = _interopRequireDefault(require("./addYears/index.js")); + +var _index13 = _interopRequireDefault(require("./areIntervalsOverlapping/index.js")); + +var _index14 = _interopRequireDefault(require("./clamp/index.js")); + +var _index15 = _interopRequireDefault(require("./closestIndexTo/index.js")); + +var _index16 = _interopRequireDefault(require("./closestTo/index.js")); + +var _index17 = _interopRequireDefault(require("./compareAsc/index.js")); + +var _index18 = _interopRequireDefault(require("./compareDesc/index.js")); + +var _index19 = _interopRequireDefault(require("./daysToWeeks/index.js")); + +var _index20 = _interopRequireDefault(require("./differenceInBusinessDays/index.js")); + +var _index21 = _interopRequireDefault(require("./differenceInCalendarDays/index.js")); + +var _index22 = _interopRequireDefault(require("./differenceInCalendarISOWeekYears/index.js")); + +var _index23 = _interopRequireDefault(require("./differenceInCalendarISOWeeks/index.js")); + +var _index24 = _interopRequireDefault(require("./differenceInCalendarMonths/index.js")); + +var _index25 = _interopRequireDefault(require("./differenceInCalendarQuarters/index.js")); + +var _index26 = _interopRequireDefault(require("./differenceInCalendarWeeks/index.js")); + +var _index27 = _interopRequireDefault(require("./differenceInCalendarYears/index.js")); + +var _index28 = _interopRequireDefault(require("./differenceInDays/index.js")); + +var _index29 = _interopRequireDefault(require("./differenceInHours/index.js")); + +var _index30 = _interopRequireDefault(require("./differenceInISOWeekYears/index.js")); + +var _index31 = _interopRequireDefault(require("./differenceInMilliseconds/index.js")); + +var _index32 = _interopRequireDefault(require("./differenceInMinutes/index.js")); + +var _index33 = _interopRequireDefault(require("./differenceInMonths/index.js")); + +var _index34 = _interopRequireDefault(require("./differenceInQuarters/index.js")); + +var _index35 = _interopRequireDefault(require("./differenceInSeconds/index.js")); + +var _index36 = _interopRequireDefault(require("./differenceInWeeks/index.js")); + +var _index37 = _interopRequireDefault(require("./differenceInYears/index.js")); + +var _index38 = _interopRequireDefault(require("./eachDayOfInterval/index.js")); + +var _index39 = _interopRequireDefault(require("./eachHourOfInterval/index.js")); + +var _index40 = _interopRequireDefault(require("./eachMinuteOfInterval/index.js")); + +var _index41 = _interopRequireDefault(require("./eachMonthOfInterval/index.js")); + +var _index42 = _interopRequireDefault(require("./eachQuarterOfInterval/index.js")); + +var _index43 = _interopRequireDefault(require("./eachWeekOfInterval/index.js")); + +var _index44 = _interopRequireDefault(require("./eachWeekendOfInterval/index.js")); + +var _index45 = _interopRequireDefault(require("./eachWeekendOfMonth/index.js")); + +var _index46 = _interopRequireDefault(require("./eachWeekendOfYear/index.js")); + +var _index47 = _interopRequireDefault(require("./eachYearOfInterval/index.js")); + +var _index48 = _interopRequireDefault(require("./endOfDay/index.js")); + +var _index49 = _interopRequireDefault(require("./endOfDecade/index.js")); + +var _index50 = _interopRequireDefault(require("./endOfHour/index.js")); + +var _index51 = _interopRequireDefault(require("./endOfISOWeek/index.js")); + +var _index52 = _interopRequireDefault(require("./endOfISOWeekYear/index.js")); + +var _index53 = _interopRequireDefault(require("./endOfMinute/index.js")); + +var _index54 = _interopRequireDefault(require("./endOfMonth/index.js")); + +var _index55 = _interopRequireDefault(require("./endOfQuarter/index.js")); + +var _index56 = _interopRequireDefault(require("./endOfSecond/index.js")); + +var _index57 = _interopRequireDefault(require("./endOfToday/index.js")); + +var _index58 = _interopRequireDefault(require("./endOfTomorrow/index.js")); + +var _index59 = _interopRequireDefault(require("./endOfWeek/index.js")); + +var _index60 = _interopRequireDefault(require("./endOfYear/index.js")); + +var _index61 = _interopRequireDefault(require("./endOfYesterday/index.js")); + +var _index62 = _interopRequireDefault(require("./format/index.js")); + +var _index63 = _interopRequireDefault(require("./formatDistance/index.js")); + +var _index64 = _interopRequireDefault(require("./formatDistanceStrict/index.js")); + +var _index65 = _interopRequireDefault(require("./formatDistanceToNow/index.js")); + +var _index66 = _interopRequireDefault(require("./formatDistanceToNowStrict/index.js")); + +var _index67 = _interopRequireDefault(require("./formatDuration/index.js")); + +var _index68 = _interopRequireDefault(require("./formatISO/index.js")); + +var _index69 = _interopRequireDefault(require("./formatISO9075/index.js")); + +var _index70 = _interopRequireDefault(require("./formatISODuration/index.js")); + +var _index71 = _interopRequireDefault(require("./formatRFC3339/index.js")); + +var _index72 = _interopRequireDefault(require("./formatRFC7231/index.js")); + +var _index73 = _interopRequireDefault(require("./formatRelative/index.js")); + +var _index74 = _interopRequireDefault(require("./fromUnixTime/index.js")); + +var _index75 = _interopRequireDefault(require("./getDate/index.js")); + +var _index76 = _interopRequireDefault(require("./getDay/index.js")); + +var _index77 = _interopRequireDefault(require("./getDayOfYear/index.js")); + +var _index78 = _interopRequireDefault(require("./getDaysInMonth/index.js")); + +var _index79 = _interopRequireDefault(require("./getDaysInYear/index.js")); + +var _index80 = _interopRequireDefault(require("./getDecade/index.js")); + +var _index81 = _interopRequireDefault(require("./getDefaultOptions/index.js")); + +var _index82 = _interopRequireDefault(require("./getHours/index.js")); + +var _index83 = _interopRequireDefault(require("./getISODay/index.js")); + +var _index84 = _interopRequireDefault(require("./getISOWeek/index.js")); + +var _index85 = _interopRequireDefault(require("./getISOWeekYear/index.js")); + +var _index86 = _interopRequireDefault(require("./getISOWeeksInYear/index.js")); + +var _index87 = _interopRequireDefault(require("./getMilliseconds/index.js")); + +var _index88 = _interopRequireDefault(require("./getMinutes/index.js")); + +var _index89 = _interopRequireDefault(require("./getMonth/index.js")); + +var _index90 = _interopRequireDefault(require("./getOverlappingDaysInIntervals/index.js")); + +var _index91 = _interopRequireDefault(require("./getQuarter/index.js")); + +var _index92 = _interopRequireDefault(require("./getSeconds/index.js")); + +var _index93 = _interopRequireDefault(require("./getTime/index.js")); + +var _index94 = _interopRequireDefault(require("./getUnixTime/index.js")); + +var _index95 = _interopRequireDefault(require("./getWeek/index.js")); + +var _index96 = _interopRequireDefault(require("./getWeekOfMonth/index.js")); + +var _index97 = _interopRequireDefault(require("./getWeekYear/index.js")); + +var _index98 = _interopRequireDefault(require("./getWeeksInMonth/index.js")); + +var _index99 = _interopRequireDefault(require("./getYear/index.js")); + +var _index100 = _interopRequireDefault(require("./hoursToMilliseconds/index.js")); + +var _index101 = _interopRequireDefault(require("./hoursToMinutes/index.js")); + +var _index102 = _interopRequireDefault(require("./hoursToSeconds/index.js")); + +var _index103 = _interopRequireDefault(require("./intervalToDuration/index.js")); + +var _index104 = _interopRequireDefault(require("./intlFormat/index.js")); + +var _index105 = _interopRequireDefault(require("./intlFormatDistance/index.js")); + +var _index106 = _interopRequireDefault(require("./isAfter/index.js")); + +var _index107 = _interopRequireDefault(require("./isBefore/index.js")); + +var _index108 = _interopRequireDefault(require("./isDate/index.js")); + +var _index109 = _interopRequireDefault(require("./isEqual/index.js")); + +var _index110 = _interopRequireDefault(require("./isExists/index.js")); + +var _index111 = _interopRequireDefault(require("./isFirstDayOfMonth/index.js")); + +var _index112 = _interopRequireDefault(require("./isFriday/index.js")); + +var _index113 = _interopRequireDefault(require("./isFuture/index.js")); + +var _index114 = _interopRequireDefault(require("./isLastDayOfMonth/index.js")); + +var _index115 = _interopRequireDefault(require("./isLeapYear/index.js")); + +var _index116 = _interopRequireDefault(require("./isMatch/index.js")); + +var _index117 = _interopRequireDefault(require("./isMonday/index.js")); + +var _index118 = _interopRequireDefault(require("./isPast/index.js")); + +var _index119 = _interopRequireDefault(require("./isSameDay/index.js")); + +var _index120 = _interopRequireDefault(require("./isSameHour/index.js")); + +var _index121 = _interopRequireDefault(require("./isSameISOWeek/index.js")); + +var _index122 = _interopRequireDefault(require("./isSameISOWeekYear/index.js")); + +var _index123 = _interopRequireDefault(require("./isSameMinute/index.js")); + +var _index124 = _interopRequireDefault(require("./isSameMonth/index.js")); + +var _index125 = _interopRequireDefault(require("./isSameQuarter/index.js")); + +var _index126 = _interopRequireDefault(require("./isSameSecond/index.js")); + +var _index127 = _interopRequireDefault(require("./isSameWeek/index.js")); + +var _index128 = _interopRequireDefault(require("./isSameYear/index.js")); + +var _index129 = _interopRequireDefault(require("./isSaturday/index.js")); + +var _index130 = _interopRequireDefault(require("./isSunday/index.js")); + +var _index131 = _interopRequireDefault(require("./isThisHour/index.js")); + +var _index132 = _interopRequireDefault(require("./isThisISOWeek/index.js")); + +var _index133 = _interopRequireDefault(require("./isThisMinute/index.js")); + +var _index134 = _interopRequireDefault(require("./isThisMonth/index.js")); + +var _index135 = _interopRequireDefault(require("./isThisQuarter/index.js")); + +var _index136 = _interopRequireDefault(require("./isThisSecond/index.js")); + +var _index137 = _interopRequireDefault(require("./isThisWeek/index.js")); + +var _index138 = _interopRequireDefault(require("./isThisYear/index.js")); + +var _index139 = _interopRequireDefault(require("./isThursday/index.js")); + +var _index140 = _interopRequireDefault(require("./isToday/index.js")); + +var _index141 = _interopRequireDefault(require("./isTomorrow/index.js")); + +var _index142 = _interopRequireDefault(require("./isTuesday/index.js")); + +var _index143 = _interopRequireDefault(require("./isValid/index.js")); + +var _index144 = _interopRequireDefault(require("./isWednesday/index.js")); + +var _index145 = _interopRequireDefault(require("./isWeekend/index.js")); + +var _index146 = _interopRequireDefault(require("./isWithinInterval/index.js")); + +var _index147 = _interopRequireDefault(require("./isYesterday/index.js")); + +var _index148 = _interopRequireDefault(require("./lastDayOfDecade/index.js")); + +var _index149 = _interopRequireDefault(require("./lastDayOfISOWeek/index.js")); + +var _index150 = _interopRequireDefault(require("./lastDayOfISOWeekYear/index.js")); + +var _index151 = _interopRequireDefault(require("./lastDayOfMonth/index.js")); + +var _index152 = _interopRequireDefault(require("./lastDayOfQuarter/index.js")); + +var _index153 = _interopRequireDefault(require("./lastDayOfWeek/index.js")); + +var _index154 = _interopRequireDefault(require("./lastDayOfYear/index.js")); + +var _index155 = _interopRequireDefault(require("./lightFormat/index.js")); + +var _index156 = _interopRequireDefault(require("./max/index.js")); + +var _index157 = _interopRequireDefault(require("./milliseconds/index.js")); + +var _index158 = _interopRequireDefault(require("./millisecondsToHours/index.js")); + +var _index159 = _interopRequireDefault(require("./millisecondsToMinutes/index.js")); + +var _index160 = _interopRequireDefault(require("./millisecondsToSeconds/index.js")); + +var _index161 = _interopRequireDefault(require("./min/index.js")); + +var _index162 = _interopRequireDefault(require("./minutesToHours/index.js")); + +var _index163 = _interopRequireDefault(require("./minutesToMilliseconds/index.js")); + +var _index164 = _interopRequireDefault(require("./minutesToSeconds/index.js")); + +var _index165 = _interopRequireDefault(require("./monthsToQuarters/index.js")); + +var _index166 = _interopRequireDefault(require("./monthsToYears/index.js")); + +var _index167 = _interopRequireDefault(require("./nextDay/index.js")); + +var _index168 = _interopRequireDefault(require("./nextFriday/index.js")); + +var _index169 = _interopRequireDefault(require("./nextMonday/index.js")); + +var _index170 = _interopRequireDefault(require("./nextSaturday/index.js")); + +var _index171 = _interopRequireDefault(require("./nextSunday/index.js")); + +var _index172 = _interopRequireDefault(require("./nextThursday/index.js")); + +var _index173 = _interopRequireDefault(require("./nextTuesday/index.js")); + +var _index174 = _interopRequireDefault(require("./nextWednesday/index.js")); + +var _index175 = _interopRequireDefault(require("./parse/index.js")); + +var _index176 = _interopRequireDefault(require("./parseISO/index.js")); + +var _index177 = _interopRequireDefault(require("./parseJSON/index.js")); + +var _index178 = _interopRequireDefault(require("./previousDay/index.js")); + +var _index179 = _interopRequireDefault(require("./previousFriday/index.js")); + +var _index180 = _interopRequireDefault(require("./previousMonday/index.js")); + +var _index181 = _interopRequireDefault(require("./previousSaturday/index.js")); + +var _index182 = _interopRequireDefault(require("./previousSunday/index.js")); + +var _index183 = _interopRequireDefault(require("./previousThursday/index.js")); + +var _index184 = _interopRequireDefault(require("./previousTuesday/index.js")); + +var _index185 = _interopRequireDefault(require("./previousWednesday/index.js")); + +var _index186 = _interopRequireDefault(require("./quartersToMonths/index.js")); + +var _index187 = _interopRequireDefault(require("./quartersToYears/index.js")); + +var _index188 = _interopRequireDefault(require("./roundToNearestMinutes/index.js")); + +var _index189 = _interopRequireDefault(require("./secondsToHours/index.js")); + +var _index190 = _interopRequireDefault(require("./secondsToMilliseconds/index.js")); + +var _index191 = _interopRequireDefault(require("./secondsToMinutes/index.js")); + +var _index192 = _interopRequireDefault(require("./set/index.js")); + +var _index193 = _interopRequireDefault(require("./setDate/index.js")); + +var _index194 = _interopRequireDefault(require("./setDay/index.js")); + +var _index195 = _interopRequireDefault(require("./setDayOfYear/index.js")); + +var _index196 = _interopRequireDefault(require("./setDefaultOptions/index.js")); + +var _index197 = _interopRequireDefault(require("./setHours/index.js")); + +var _index198 = _interopRequireDefault(require("./setISODay/index.js")); + +var _index199 = _interopRequireDefault(require("./setISOWeek/index.js")); + +var _index200 = _interopRequireDefault(require("./setISOWeekYear/index.js")); + +var _index201 = _interopRequireDefault(require("./setMilliseconds/index.js")); + +var _index202 = _interopRequireDefault(require("./setMinutes/index.js")); + +var _index203 = _interopRequireDefault(require("./setMonth/index.js")); + +var _index204 = _interopRequireDefault(require("./setQuarter/index.js")); + +var _index205 = _interopRequireDefault(require("./setSeconds/index.js")); + +var _index206 = _interopRequireDefault(require("./setWeek/index.js")); + +var _index207 = _interopRequireDefault(require("./setWeekYear/index.js")); + +var _index208 = _interopRequireDefault(require("./setYear/index.js")); + +var _index209 = _interopRequireDefault(require("./startOfDay/index.js")); + +var _index210 = _interopRequireDefault(require("./startOfDecade/index.js")); + +var _index211 = _interopRequireDefault(require("./startOfHour/index.js")); + +var _index212 = _interopRequireDefault(require("./startOfISOWeek/index.js")); + +var _index213 = _interopRequireDefault(require("./startOfISOWeekYear/index.js")); + +var _index214 = _interopRequireDefault(require("./startOfMinute/index.js")); + +var _index215 = _interopRequireDefault(require("./startOfMonth/index.js")); + +var _index216 = _interopRequireDefault(require("./startOfQuarter/index.js")); + +var _index217 = _interopRequireDefault(require("./startOfSecond/index.js")); + +var _index218 = _interopRequireDefault(require("./startOfToday/index.js")); + +var _index219 = _interopRequireDefault(require("./startOfTomorrow/index.js")); + +var _index220 = _interopRequireDefault(require("./startOfWeek/index.js")); + +var _index221 = _interopRequireDefault(require("./startOfWeekYear/index.js")); + +var _index222 = _interopRequireDefault(require("./startOfYear/index.js")); + +var _index223 = _interopRequireDefault(require("./startOfYesterday/index.js")); + +var _index224 = _interopRequireDefault(require("./sub/index.js")); + +var _index225 = _interopRequireDefault(require("./subBusinessDays/index.js")); + +var _index226 = _interopRequireDefault(require("./subDays/index.js")); + +var _index227 = _interopRequireDefault(require("./subHours/index.js")); + +var _index228 = _interopRequireDefault(require("./subISOWeekYears/index.js")); + +var _index229 = _interopRequireDefault(require("./subMilliseconds/index.js")); + +var _index230 = _interopRequireDefault(require("./subMinutes/index.js")); + +var _index231 = _interopRequireDefault(require("./subMonths/index.js")); + +var _index232 = _interopRequireDefault(require("./subQuarters/index.js")); + +var _index233 = _interopRequireDefault(require("./subSeconds/index.js")); + +var _index234 = _interopRequireDefault(require("./subWeeks/index.js")); + +var _index235 = _interopRequireDefault(require("./subYears/index.js")); + +var _index236 = _interopRequireDefault(require("./toDate/index.js")); + +var _index237 = _interopRequireDefault(require("./weeksToDays/index.js")); + +var _index238 = _interopRequireDefault(require("./yearsToMonths/index.js")); + +var _index239 = _interopRequireDefault(require("./yearsToQuarters/index.js")); + +var _index240 = require("./constants/index.js"); + +Object.keys(_index240).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _index240[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function get() { + return _index240[key]; + } + }); +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/date-fns/index.js.flow b/node_modules/date-fns/index.js.flow new file mode 100644 index 00000000..b9cfcbf3 --- /dev/null +++ b/node_modules/date-fns/index.js.flow @@ -0,0 +1,926 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: { + add: (date: Date | number, duration: Duration) => Date, + + addBusinessDays: (date: Date | number, amount: number) => Date, + + addDays: (date: Date | number, amount: number) => Date, + + addHours: (date: Date | number, amount: number) => Date, + + addISOWeekYears: (date: Date | number, amount: number) => Date, + + addMilliseconds: (date: Date | number, amount: number) => Date, + + addMinutes: (date: Date | number, amount: number) => Date, + + addMonths: (date: Date | number, amount: number) => Date, + + addQuarters: (date: Date | number, amount: number) => Date, + + addSeconds: (date: Date | number, amount: number) => Date, + + addWeeks: (date: Date | number, amount: number) => Date, + + addYears: (date: Date | number, amount: number) => Date, + + areIntervalsOverlapping: ( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean, + } + ) => boolean, + + clamp: (date: Date | number, interval: Interval) => Date, + + closestIndexTo: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ) => ?number, + + closestTo: ( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ) => ?Date, + + compareAsc: (dateLeft: Date | number, dateRight: Date | number) => number, + + compareDesc: (dateLeft: Date | number, dateRight: Date | number) => number, + + daysToWeeks: (days: number) => number, + + differenceInBusinessDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarISOWeeks: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarQuarters: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInCalendarWeeks: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + differenceInCalendarYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInDays: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInHours: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInISOWeekYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMilliseconds: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInMinutes: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInMonths: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + differenceInQuarters: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInSeconds: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInWeeks: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string, + } + ) => number, + + differenceInYears: ( + dateLeft: Date | number, + dateRight: Date | number + ) => number, + + eachDayOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachHourOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachMinuteOfInterval: ( + interval: Interval, + options?: { + step?: number, + } + ) => Date[], + + eachMonthOfInterval: (interval: Interval) => Date[], + + eachQuarterOfInterval: (interval: Interval) => Date[], + + eachWeekendOfInterval: (interval: Interval) => Date[], + + eachWeekendOfMonth: (date: Date | number) => Date[], + + eachWeekendOfYear: (date: Date | number) => Date[], + + eachWeekOfInterval: ( + interval: Interval, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date[], + + eachYearOfInterval: (interval: Interval) => Date[], + + endOfDay: (date: Date | number) => Date, + + endOfDecade: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + endOfHour: (date: Date | number) => Date, + + endOfISOWeek: (date: Date | number) => Date, + + endOfISOWeekYear: (date: Date | number) => Date, + + endOfMinute: (date: Date | number) => Date, + + endOfMonth: (date: Date | number) => Date, + + endOfQuarter: (date: Date | number) => Date, + + endOfSecond: (date: Date | number) => Date, + + endOfToday: () => Date, + + endOfTomorrow: () => Date, + + endOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + endOfYear: (date: Date | number) => Date, + + endOfYesterday: () => Date, + + format: ( + date: Date | number, + format: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: number, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => string, + + formatDistance: ( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } + ) => string, + + formatDistanceStrict: ( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } + ) => string, + + formatDistanceToNow: ( + date: Date | number, + options?: { + includeSeconds?: boolean, + addSuffix?: boolean, + locale?: Locale, + } + ) => string, + + formatDistanceToNowStrict: ( + date: Date | number, + options?: { + addSuffix?: boolean, + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', + roundingMethod?: 'floor' | 'ceil' | 'round', + locale?: Locale, + } + ) => string, + + formatDuration: ( + duration: Duration, + options?: { + format?: string[], + zero?: boolean, + delimiter?: string, + locale?: Locale, + } + ) => string, + + formatISO: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } + ) => string, + + formatISO9075: ( + date: Date | number, + options?: { + format?: 'extended' | 'basic', + representation?: 'complete' | 'date' | 'time', + } + ) => string, + + formatISODuration: (duration: Duration) => string, + + formatRelative: ( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => string, + + formatRFC3339: ( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3, + } + ) => string, + + formatRFC7231: (date: Date | number) => string, + + fromUnixTime: (unixTime: number) => Date, + + getDate: (date: Date | number) => number, + + getDay: (date: Date | number) => 0 | 1 | 2 | 3 | 4 | 5 | 6, + + getDayOfYear: (date: Date | number) => number, + + getDaysInMonth: (date: Date | number) => number, + + getDaysInYear: (date: Date | number) => number, + + getDecade: (date: Date | number) => number, + + getDefaultOptions: () => Object, + + getHours: (date: Date | number) => number, + + getISODay: (date: Date | number) => number, + + getISOWeek: (date: Date | number) => number, + + getISOWeeksInYear: (date: Date | number) => number, + + getISOWeekYear: (date: Date | number) => number, + + getMilliseconds: (date: Date | number) => number, + + getMinutes: (date: Date | number) => number, + + getMonth: (date: Date | number) => number, + + getOverlappingDaysInIntervals: ( + intervalLeft: Interval, + intervalRight: Interval + ) => number, + + getQuarter: (date: Date | number) => number, + + getSeconds: (date: Date | number) => number, + + getTime: (date: Date | number) => number, + + getUnixTime: (date: Date | number) => number, + + getWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => number, + + getWeekOfMonth: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + getWeeksInMonth: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => number, + + getWeekYear: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => number, + + getYear: (date: Date | number) => number, + + hoursToMilliseconds: (hours: number) => number, + + hoursToMinutes: (hours: number) => number, + + hoursToSeconds: (hours: number) => number, + + intervalToDuration: (interval: Interval) => Duration, + + intlFormat: ( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit', + weekday?: 'narrow' | 'short' | 'long', + era?: 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + day?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + second?: 'numeric' | '2-digit', + timeZoneName?: 'short' | 'long', + formatMatcher?: 'basic' | 'best fit', + hour12?: boolean, + timeZone?: string, + }, + localeOptions?: { + locale?: string | string[], + } + ) => string, + + intlFormatDistance: ( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string, + locale?: string | string[], + localeMatcher?: string, + numeric?: string, + style?: string, + } + ) => string, + + isAfter: (date: Date | number, dateToCompare: Date | number) => boolean, + + isBefore: (date: Date | number, dateToCompare: Date | number) => boolean, + + isDate: (value: any) => boolean, + + isEqual: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isExists: (year: number, month: number, day: number) => boolean, + + isFirstDayOfMonth: (date: Date | number) => boolean, + + isFriday: (date: Date | number) => boolean, + + isFuture: (date: Date | number) => boolean, + + isLastDayOfMonth: (date: Date | number) => boolean, + + isLeapYear: (date: Date | number) => boolean, + + isMatch: ( + dateString: string, + formatString: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => boolean, + + isMonday: (date: Date | number) => boolean, + + isPast: (date: Date | number) => boolean, + + isSameDay: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameHour: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameISOWeek: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameISOWeekYear: ( + dateLeft: Date | number, + dateRight: Date | number + ) => boolean, + + isSameMinute: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameMonth: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameQuarter: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameSecond: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSameWeek: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => boolean, + + isSameYear: (dateLeft: Date | number, dateRight: Date | number) => boolean, + + isSaturday: (date: Date | number) => boolean, + + isSunday: (date: Date | number) => boolean, + + isThisHour: (date: Date | number) => boolean, + + isThisISOWeek: (date: Date | number) => boolean, + + isThisMinute: (date: Date | number) => boolean, + + isThisMonth: (date: Date | number) => boolean, + + isThisQuarter: (date: Date | number) => boolean, + + isThisSecond: (date: Date | number) => boolean, + + isThisWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => boolean, + + isThisYear: (date: Date | number) => boolean, + + isThursday: (date: Date | number) => boolean, + + isToday: (date: Date | number) => boolean, + + isTomorrow: (date: Date | number) => boolean, + + isTuesday: (date: Date | number) => boolean, + + isValid: (date: any) => boolean, + + isWednesday: (date: Date | number) => boolean, + + isWeekend: (date: Date | number) => boolean, + + isWithinInterval: (date: Date | number, interval: Interval) => boolean, + + isYesterday: (date: Date | number) => boolean, + + lastDayOfDecade: (date: Date | number) => Date, + + lastDayOfISOWeek: (date: Date | number) => Date, + + lastDayOfISOWeekYear: (date: Date | number) => Date, + + lastDayOfMonth: (date: Date | number) => Date, + + lastDayOfQuarter: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + lastDayOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + lastDayOfYear: (date: Date | number) => Date, + + lightFormat: (date: Date | number, format: string) => string, + + max: (datesArray: (Date | number)[]) => Date, + + milliseconds: (duration: Duration) => number, + + millisecondsToHours: (milliseconds: number) => number, + + millisecondsToMinutes: (milliseconds: number) => number, + + millisecondsToSeconds: (milliseconds: number) => number, + + min: (datesArray: (Date | number)[]) => Date, + + minutesToHours: (minutes: number) => number, + + minutesToMilliseconds: (minutes: number) => number, + + minutesToSeconds: (minutes: number) => number, + + monthsToQuarters: (months: number) => number, + + monthsToYears: (months: number) => number, + + nextDay: (date: Date | number, day: Day) => Date, + + nextFriday: (date: Date | number) => Date, + + nextMonday: (date: Date | number) => Date, + + nextSaturday: (date: Date | number) => Date, + + nextSunday: (date: Date | number) => Date, + + nextThursday: (date: Date | number) => Date, + + nextTuesday: (date: Date | number) => Date, + + nextWednesday: (date: Date | number) => Date, + + parse: ( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } + ) => Date, + + parseISO: ( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2, + } + ) => Date, + + parseJSON: (argument: string | number | Date) => Date, + + previousDay: (date: Date | number, day: number) => Date, + + previousFriday: (date: Date | number) => Date, + + previousMonday: (date: Date | number) => Date, + + previousSaturday: (date: Date | number) => Date, + + previousSunday: (date: Date | number) => Date, + + previousThursday: (date: Date | number) => Date, + + previousTuesday: (date: Date | number) => Date, + + previousWednesday: (date: Date | number) => Date, + + quartersToMonths: (quarters: number) => number, + + quartersToYears: (quarters: number) => number, + + roundToNearestMinutes: ( + date: Date | number, + options?: { + nearestTo?: number, + roundingMethod?: string, + } + ) => Date, + + secondsToHours: (seconds: number) => number, + + secondsToMilliseconds: (seconds: number) => number, + + secondsToMinutes: (seconds: number) => number, + + set: ( + date: Date | number, + values: { + year?: number, + month?: number, + date?: number, + hours?: number, + minutes?: number, + seconds?: number, + milliseconds?: number, + } + ) => Date, + + setDate: (date: Date | number, dayOfMonth: number) => Date, + + setDay: ( + date: Date | number, + day: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + setDayOfYear: (date: Date | number, dayOfYear: number) => Date, + + setDefaultOptions: (newOptions: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }) => void, + + setHours: (date: Date | number, hours: number) => Date, + + setISODay: (date: Date | number, day: number) => Date, + + setISOWeek: (date: Date | number, isoWeek: number) => Date, + + setISOWeekYear: (date: Date | number, isoWeekYear: number) => Date, + + setMilliseconds: (date: Date | number, milliseconds: number) => Date, + + setMinutes: (date: Date | number, minutes: number) => Date, + + setMonth: (date: Date | number, month: number) => Date, + + setQuarter: (date: Date | number, quarter: number) => Date, + + setSeconds: (date: Date | number, seconds: number) => Date, + + setWeek: ( + date: Date | number, + week: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + setWeekYear: ( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + setYear: (date: Date | number, year: number) => Date, + + startOfDay: (date: Date | number) => Date, + + startOfDecade: (date: Date | number) => Date, + + startOfHour: (date: Date | number) => Date, + + startOfISOWeek: (date: Date | number) => Date, + + startOfISOWeekYear: (date: Date | number) => Date, + + startOfMinute: (date: Date | number) => Date, + + startOfMonth: (date: Date | number) => Date, + + startOfQuarter: (date: Date | number) => Date, + + startOfSecond: (date: Date | number) => Date, + + startOfToday: () => Date, + + startOfTomorrow: () => Date, + + startOfWeek: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } + ) => Date, + + startOfWeekYear: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } + ) => Date, + + startOfYear: (date: Date | number) => Date, + + startOfYesterday: () => Date, + + sub: (date: Date | number, duration: Duration) => Date, + + subBusinessDays: (date: Date | number, amount: number) => Date, + + subDays: (date: Date | number, amount: number) => Date, + + subHours: (date: Date | number, amount: number) => Date, + + subISOWeekYears: (date: Date | number, amount: number) => Date, + + subMilliseconds: (date: Date | number, amount: number) => Date, + + subMinutes: (date: Date | number, amount: number) => Date, + + subMonths: (date: Date | number, amount: number) => Date, + + subQuarters: (date: Date | number, amount: number) => Date, + + subSeconds: (date: Date | number, amount: number) => Date, + + subWeeks: (date: Date | number, amount: number) => Date, + + subYears: (date: Date | number, amount: number) => Date, + + toDate: (argument: Date | number) => Date, + + weeksToDays: (weeks: number) => number, + + yearsToMonths: (years: number) => number, + + yearsToQuarters: (years: number) => number, + + daysInWeek: number, + + daysInYear: number, + + maxTime: number, + + millisecondsInMinute: number, + + millisecondsInHour: number, + + millisecondsInSecond: number, + + minTime: number, + + minutesInHour: number, + + monthsInQuarter: number, + + monthsInYear: number, + + quartersInYear: number, + + secondsInHour: number, + + secondsInMinute: number, + + secondsInDay: number, + + secondsInWeek: number, + + secondsInYear: number, + + secondsInMonth: number, + + secondsInQuarter: number, +} diff --git a/node_modules/date-fns/intervalToDuration/index.d.ts b/node_modules/date-fns/intervalToDuration/index.d.ts new file mode 100644 index 00000000..ce7bc762 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intervalToDuration } from 'date-fns' +export default intervalToDuration diff --git a/node_modules/date-fns/intervalToDuration/index.js b/node_modules/date-fns/intervalToDuration/index.js new file mode 100644 index 00000000..ad68152b --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/index.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = intervalToDuration; + +var _index = _interopRequireDefault(require("../compareAsc/index.js")); + +var _index2 = _interopRequireDefault(require("../add/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInDays/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInHours/index.js")); + +var _index5 = _interopRequireDefault(require("../differenceInMinutes/index.js")); + +var _index6 = _interopRequireDefault(require("../differenceInMonths/index.js")); + +var _index7 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index8 = _interopRequireDefault(require("../differenceInYears/index.js")); + +var _index9 = _interopRequireDefault(require("../toDate/index.js")); + +var _index10 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name intervalToDuration + * @category Common Helpers + * @summary Convert interval to duration + * + * @description + * Convert a interval object to a duration object. + * + * @param {Interval} interval - the interval to convert to duration + * + * @returns {Duration} The duration Object + * @throws {TypeError} Requires 2 arguments + * @throws {RangeError} `start` must not be Invalid Date + * @throws {RangeError} `end` must not be Invalid Date + * + * @example + * // Get the duration between January 15, 1929 and April 4, 1968. + * intervalToDuration({ + * start: new Date(1929, 0, 15, 12, 0, 0), + * end: new Date(1968, 3, 4, 19, 5, 0) + * }) + * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 } + */ +function intervalToDuration(interval) { + (0, _index10.default)(1, arguments); + var start = (0, _index9.default)(interval.start); + var end = (0, _index9.default)(interval.end); + if (isNaN(start.getTime())) throw new RangeError('Start Date is invalid'); + if (isNaN(end.getTime())) throw new RangeError('End Date is invalid'); + var duration = {}; + duration.years = Math.abs((0, _index8.default)(end, start)); + var sign = (0, _index.default)(end, start); + var remainingMonths = (0, _index2.default)(start, { + years: sign * duration.years + }); + duration.months = Math.abs((0, _index6.default)(end, remainingMonths)); + var remainingDays = (0, _index2.default)(remainingMonths, { + months: sign * duration.months + }); + duration.days = Math.abs((0, _index3.default)(end, remainingDays)); + var remainingHours = (0, _index2.default)(remainingDays, { + days: sign * duration.days + }); + duration.hours = Math.abs((0, _index4.default)(end, remainingHours)); + var remainingMinutes = (0, _index2.default)(remainingHours, { + hours: sign * duration.hours + }); + duration.minutes = Math.abs((0, _index5.default)(end, remainingMinutes)); + var remainingSeconds = (0, _index2.default)(remainingMinutes, { + minutes: sign * duration.minutes + }); + duration.seconds = Math.abs((0, _index7.default)(end, remainingSeconds)); + return duration; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/intervalToDuration/index.js.flow b/node_modules/date-fns/intervalToDuration/index.js.flow new file mode 100644 index 00000000..dbd61eec --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (interval: Interval) => Duration diff --git a/node_modules/date-fns/intervalToDuration/package.json b/node_modules/date-fns/intervalToDuration/package.json new file mode 100644 index 00000000..30e14970 --- /dev/null +++ b/node_modules/date-fns/intervalToDuration/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/intervalToDuration/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/intlFormat/index.d.ts b/node_modules/date-fns/intlFormat/index.d.ts new file mode 100644 index 00000000..fc29cf58 --- /dev/null +++ b/node_modules/date-fns/intlFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormat } from 'date-fns' +export default intlFormat diff --git a/node_modules/date-fns/intlFormat/index.js b/node_modules/date-fns/intlFormat/index.js new file mode 100644 index 00000000..4769656e --- /dev/null +++ b/node_modules/date-fns/intlFormat/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = intlFormat; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name intlFormat + * @category Common Helpers + * @summary Format the date with Intl.DateTimeFormat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat). + * + * @description + * Return the formatted date string in the given format. + * The method uses [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) inside. + * formatOptions are the same as [`Intl.DateTimeFormat` options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) + * + * > ⚠️ Please note that before Node version 13.0.0, only the locale data for en-US is available by default. + * + * @param {Date|Number} argument - the original date. + * @param {Object} [formatOptions] - an object with options. + * @param {'lookup'|'best fit'} [formatOptions.localeMatcher='best fit'] - locale selection algorithm. + * @param {'narrow'|'short'|'long'} [formatOptions.weekday] - representation the days of the week. + * @param {'narrow'|'short'|'long'} [formatOptions.era] - representation of eras. + * @param {'numeric'|'2-digit'} [formatOptions.year] - representation of years. + * @param {'numeric'|'2-digit'|'narrow'|'short'|'long'} [formatOptions.month='numeric'] - representation of month. + * @param {'numeric'|'2-digit'} [formatOptions.day='numeric'] - representation of day. + * @param {'numeric'|'2-digit'} [formatOptions.hour='numeric'] - representation of hours. + * @param {'numeric'|'2-digit'} [formatOptions.minute] - representation of minutes. + * @param {'numeric'|'2-digit'} [formatOptions.second] - representation of seconds. + * @param {'short'|'long'} [formatOptions.timeZoneName] - representation of names of time zones. + * @param {'basic'|'best fit'} [formatOptions.formatMatcher='best fit'] - format selection algorithm. + * @param {Boolean} [formatOptions.hour12] - determines whether to use 12-hour time format. + * @param {String} [formatOptions.timeZone] - the time zone to use. + * @param {Object} [localeOptions] - an object with locale. + * @param {String|String[]} [localeOptions.locale] - the locale code + * @returns {String} the formatted date string. + * @throws {TypeError} 1 argument required. + * @throws {RangeError} `date` must not be Invalid Date + * + * @example + * // Represent 10 October 2019 in German. + * // Convert the date with format's options and locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * weekday: 'long', + * year: 'numeric', + * month: 'long', + * day: 'numeric', + * }, { + * locale: 'de-DE', + * }) + * //=> Freitag, 4. Oktober 2019 + * + * @example + * // Represent 10 October 2019. + * // Convert the date with format's options. + * const result = intlFormat.default(new Date(2019, 9, 4, 12, 30, 13, 456), { + * year: 'numeric', + * month: 'numeric', + * day: 'numeric', + * hour: 'numeric', + * }) + * //=> 10/4/2019, 12 PM + * + * @example + * // Represent 10 October 2019 in Korean. + * // Convert the date with locale's options. + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456), { + * locale: 'ko-KR', + * }) + * //=> 2019. 10. 4. + * + * @example + * // Represent 10 October 2019 in middle-endian format: + * const result = intlFormat(new Date(2019, 9, 4, 12, 30, 13, 456)) + * //=> 10/4/2019 + */ +function intlFormat(date, formatOrLocale, localeOptions) { + var _localeOptions; + + (0, _index.default)(1, arguments); + var formatOptions; + + if (isFormatOptions(formatOrLocale)) { + formatOptions = formatOrLocale; + } else { + localeOptions = formatOrLocale; + } + + return new Intl.DateTimeFormat((_localeOptions = localeOptions) === null || _localeOptions === void 0 ? void 0 : _localeOptions.locale, formatOptions).format(date); +} + +function isFormatOptions(opts) { + return opts !== undefined && !('locale' in opts); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/intlFormat/index.js.flow b/node_modules/date-fns/intlFormat/index.js.flow new file mode 100644 index 00000000..adc0bb4f --- /dev/null +++ b/node_modules/date-fns/intlFormat/index.js.flow @@ -0,0 +1,72 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit', + weekday?: 'narrow' | 'short' | 'long', + era?: 'narrow' | 'short' | 'long', + year?: 'numeric' | '2-digit', + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long', + day?: 'numeric' | '2-digit', + hour?: 'numeric' | '2-digit', + minute?: 'numeric' | '2-digit', + second?: 'numeric' | '2-digit', + timeZoneName?: 'short' | 'long', + formatMatcher?: 'basic' | 'best fit', + hour12?: boolean, + timeZone?: string, + }, + localeOptions?: { + locale?: string | string[], + } +) => string diff --git a/node_modules/date-fns/intlFormat/package.json b/node_modules/date-fns/intlFormat/package.json new file mode 100644 index 00000000..91c0bb5c --- /dev/null +++ b/node_modules/date-fns/intlFormat/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/intlFormat/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/intlFormatDistance/index.d.ts b/node_modules/date-fns/intlFormatDistance/index.d.ts new file mode 100644 index 00000000..fe2e15cf --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { intlFormatDistance } from 'date-fns' +export default intlFormatDistance diff --git a/node_modules/date-fns/intlFormatDistance/index.js b/node_modules/date-fns/intlFormatDistance/index.js new file mode 100644 index 00000000..4f128db5 --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance/index.js @@ -0,0 +1,205 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = intlFormatDistance; + +var _index = require("../constants/index.js"); + +var _index2 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index3 = _interopRequireDefault(require("../differenceInCalendarMonths/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInCalendarQuarters/index.js")); + +var _index5 = _interopRequireDefault(require("../differenceInCalendarWeeks/index.js")); + +var _index6 = _interopRequireDefault(require("../differenceInCalendarYears/index.js")); + +var _index7 = _interopRequireDefault(require("../differenceInHours/index.js")); + +var _index8 = _interopRequireDefault(require("../differenceInMinutes/index.js")); + +var _index9 = _interopRequireDefault(require("../differenceInSeconds/index.js")); + +var _index10 = _interopRequireDefault(require("../toDate/index.js")); + +var _index11 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name intlFormatDistance + * @category Common Helpers + * @summary Formats distance between two dates in a human-readable format + * @description + * The function calculates the difference between two dates and formats it as a human-readable string. + * + * The function will pick the most appropriate unit depending on the distance between dates. For example, if the distance is a few hours, it might return `x hours`. If the distance is a few months, it might return `x months`. + * + * You can also specify a unit to force using it regardless of the distance to get a result like `123456 hours`. + * + * See the table below for the unit picking logic: + * + * | Distance between dates | Result (past) | Result (future) | + * | ---------------------- | -------------- | --------------- | + * | 0 seconds | now | now | + * | 1-59 seconds | X seconds ago | in X seconds | + * | 1-59 minutes | X minutes ago | in X minutes | + * | 1-23 hours | X hours ago | in X hours | + * | 1 day | yesterday | tomorrow | + * | 2-6 days | X days ago | in X days | + * | 7 days | last week | next week | + * | 8 days-1 month | X weeks ago | in X weeks | + * | 1 month | last month | next month | + * | 2-3 months | X months ago | in X months | + * | 1 quarter | last quarter | next quarter | + * | 2-3 quarters | X quarters ago | in X quarters | + * | 1 year | last year | next year | + * | 2+ years | X years ago | in X years | + * + * @param {Date|Number} date - the date + * @param {Date|Number} baseDate - the date to compare with. + * @param {Object} [options] - an object with options. + * @param {String} [options.unit] - formats the distance with the given unit ('year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second'). + * @param {String|String[]} [options.locale] - the locale to use. + * @param {String} [options.localeMatcher='best fit'] - the locale matching algorithm to use. Other value: 'lookup'. + * See MDN for details [Locale identification and negotiation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) + * @param {String} [options.numeric='auto'] - the output message format. The values are 'auto' (e.g. `yesterday`), 'always'(e.g. `1 day ago`). + * @param {String} [options.style='long'] - the length of the result. The values are: 'long' (e.g. `1 month`), 'short' (e.g. 'in 1 mo.'), 'narrow' (e.g. 'in 1 mo.'). + * The narrow one could be similar to the short one for some locales. + * @returns {String} the distance in words according to language-sensitive relative time formatting. + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `date` must not be Invalid Date + * @throws {RangeError} `baseDate` must not be Invalid Date + * @throws {RangeError} `options.unit` must not be invalid Unit + * @throws {RangeError} `options.locale` must not be invalid locale + * @throws {RangeError} `options.localeMatcher` must not be invalid localeMatcher + * @throws {RangeError} `options.numeric` must not be invalid numeric + * @throws {RangeError} `options.style` must not be invalid style + * + * @example + * // What is the distance between the dates when the fist date is after the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0) + * ) + * //=> 'in 1 hour' + * + * // What is the distance between the dates when the fist date is before the second? + * intlFormatDistance( + * new Date(1986, 3, 4, 10, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0) + * ) + * //=> '1 hour ago' + * + * @example + * // Use the unit option to force the function to output the result in quarters. Without setting it, the example would return "next year" + * intlFormatDistance( + * new Date(1987, 6, 4, 10, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { unit: 'quarter' } + * ) + * //=> 'in 5 quarters' + * + * @example + * // Use the locale option to get the result in Spanish. Without setting it, the example would return "in 1 hour". + * intlFormatDistance( + * new Date(1986, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 10, 30, 0), + * { locale: 'es' } + * ) + * //=> 'dentro de 1 hora' + * + * @example + * // Use the numeric option to force the function to use numeric values. Without setting it, the example would return "tomorrow". + * intlFormatDistance( + * new Date(1986, 3, 5, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { numeric: 'always' } + * ) + * //=> 'in 1 day' + * + * @example + * // Use the style option to force the function to use short values. Without setting it, the example would return "in 2 years". + * intlFormatDistance( + * new Date(1988, 3, 4, 11, 30, 0), + * new Date(1986, 3, 4, 11, 30, 0), + * { style: 'short' } + * ) + * //=> 'in 2 yr' + */ +function intlFormatDistance(date, baseDate, options) { + (0, _index11.default)(2, arguments); + var value = 0; + var unit; + var dateLeft = (0, _index10.default)(date); + var dateRight = (0, _index10.default)(baseDate); + + if (!(options !== null && options !== void 0 && options.unit)) { + // Get the unit based on diffInSeconds calculations if no unit is specified + var diffInSeconds = (0, _index9.default)(dateLeft, dateRight); // The smallest unit + + if (Math.abs(diffInSeconds) < _index.secondsInMinute) { + value = (0, _index9.default)(dateLeft, dateRight); + unit = 'second'; + } else if (Math.abs(diffInSeconds) < _index.secondsInHour) { + value = (0, _index8.default)(dateLeft, dateRight); + unit = 'minute'; + } else if (Math.abs(diffInSeconds) < _index.secondsInDay && Math.abs((0, _index2.default)(dateLeft, dateRight)) < 1) { + value = (0, _index7.default)(dateLeft, dateRight); + unit = 'hour'; + } else if (Math.abs(diffInSeconds) < _index.secondsInWeek && (value = (0, _index2.default)(dateLeft, dateRight)) && Math.abs(value) < 7) { + unit = 'day'; + } else if (Math.abs(diffInSeconds) < _index.secondsInMonth) { + value = (0, _index5.default)(dateLeft, dateRight); + unit = 'week'; + } else if (Math.abs(diffInSeconds) < _index.secondsInQuarter) { + value = (0, _index3.default)(dateLeft, dateRight); + unit = 'month'; + } else if (Math.abs(diffInSeconds) < _index.secondsInYear) { + if ((0, _index4.default)(dateLeft, dateRight) < 4) { + // To filter out cases that are less than a year but match 4 quarters + value = (0, _index4.default)(dateLeft, dateRight); + unit = 'quarter'; + } else { + value = (0, _index6.default)(dateLeft, dateRight); + unit = 'year'; + } + } else { + value = (0, _index6.default)(dateLeft, dateRight); + unit = 'year'; + } + } else { + // Get the value if unit is specified + unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'second') { + value = (0, _index9.default)(dateLeft, dateRight); + } else if (unit === 'minute') { + value = (0, _index8.default)(dateLeft, dateRight); + } else if (unit === 'hour') { + value = (0, _index7.default)(dateLeft, dateRight); + } else if (unit === 'day') { + value = (0, _index2.default)(dateLeft, dateRight); + } else if (unit === 'week') { + value = (0, _index5.default)(dateLeft, dateRight); + } else if (unit === 'month') { + value = (0, _index3.default)(dateLeft, dateRight); + } else if (unit === 'quarter') { + value = (0, _index4.default)(dateLeft, dateRight); + } else if (unit === 'year') { + value = (0, _index6.default)(dateLeft, dateRight); + } + } + + var rtf = new Intl.RelativeTimeFormat(options === null || options === void 0 ? void 0 : options.locale, { + localeMatcher: options === null || options === void 0 ? void 0 : options.localeMatcher, + numeric: (options === null || options === void 0 ? void 0 : options.numeric) || 'auto', + style: options === null || options === void 0 ? void 0 : options.style + }); + return rtf.format(value, unit); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/intlFormatDistance/index.js.flow b/node_modules/date-fns/intlFormatDistance/index.js.flow new file mode 100644 index 00000000..bea24df8 --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string, + locale?: string | string[], + localeMatcher?: string, + numeric?: string, + style?: string, + } +) => string diff --git a/node_modules/date-fns/intlFormatDistance/package.json b/node_modules/date-fns/intlFormatDistance/package.json new file mode 100644 index 00000000..64bce60a --- /dev/null +++ b/node_modules/date-fns/intlFormatDistance/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/intlFormatDistance/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isAfter/index.d.ts b/node_modules/date-fns/isAfter/index.d.ts new file mode 100644 index 00000000..0ef024b3 --- /dev/null +++ b/node_modules/date-fns/isAfter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isAfter } from 'date-fns' +export default isAfter diff --git a/node_modules/date-fns/isAfter/index.js b/node_modules/date-fns/isAfter/index.js new file mode 100644 index 00000000..29a2cf51 --- /dev/null +++ b/node_modules/date-fns/isAfter/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isAfter; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isAfter + * @category Common Helpers + * @summary Is the first date after the second one? + * + * @description + * Is the first date after the second one? + * + * @param {Date|Number} date - the date that should be after the other one to return true + * @param {Date|Number} dateToCompare - the date to compare with + * @returns {Boolean} the first date is after the second date + * @throws {TypeError} 2 arguments required + * + * @example + * // Is 10 July 1989 after 11 February 1987? + * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> true + */ +function isAfter(dirtyDate, dirtyDateToCompare) { + (0, _index2.default)(2, arguments); + var date = (0, _index.default)(dirtyDate); + var dateToCompare = (0, _index.default)(dirtyDateToCompare); + return date.getTime() > dateToCompare.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isAfter/index.js.flow b/node_modules/date-fns/isAfter/index.js.flow new file mode 100644 index 00000000..3cb525c9 --- /dev/null +++ b/node_modules/date-fns/isAfter/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + dateToCompare: Date | number +) => boolean diff --git a/node_modules/date-fns/isAfter/package.json b/node_modules/date-fns/isAfter/package.json new file mode 100644 index 00000000..91ba7dce --- /dev/null +++ b/node_modules/date-fns/isAfter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isAfter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isBefore/index.d.ts b/node_modules/date-fns/isBefore/index.d.ts new file mode 100644 index 00000000..127ed7ed --- /dev/null +++ b/node_modules/date-fns/isBefore/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isBefore } from 'date-fns' +export default isBefore diff --git a/node_modules/date-fns/isBefore/index.js b/node_modules/date-fns/isBefore/index.js new file mode 100644 index 00000000..c2750760 --- /dev/null +++ b/node_modules/date-fns/isBefore/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isBefore; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isBefore + * @category Common Helpers + * @summary Is the first date before the second one? + * + * @description + * Is the first date before the second one? + * + * @param {Date|Number} date - the date that should be before the other one to return true + * @param {Date|Number} dateToCompare - the date to compare with + * @returns {Boolean} the first date is before the second date + * @throws {TypeError} 2 arguments required + * + * @example + * // Is 10 July 1989 before 11 February 1987? + * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) + * //=> false + */ +function isBefore(dirtyDate, dirtyDateToCompare) { + (0, _index2.default)(2, arguments); + var date = (0, _index.default)(dirtyDate); + var dateToCompare = (0, _index.default)(dirtyDateToCompare); + return date.getTime() < dateToCompare.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isBefore/index.js.flow b/node_modules/date-fns/isBefore/index.js.flow new file mode 100644 index 00000000..3cb525c9 --- /dev/null +++ b/node_modules/date-fns/isBefore/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + dateToCompare: Date | number +) => boolean diff --git a/node_modules/date-fns/isBefore/package.json b/node_modules/date-fns/isBefore/package.json new file mode 100644 index 00000000..611b1d80 --- /dev/null +++ b/node_modules/date-fns/isBefore/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isBefore/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isDate/index.d.ts b/node_modules/date-fns/isDate/index.d.ts new file mode 100644 index 00000000..518477ec --- /dev/null +++ b/node_modules/date-fns/isDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isDate } from 'date-fns' +export default isDate diff --git a/node_modules/date-fns/isDate/index.js b/node_modules/date-fns/isDate/index.js new file mode 100644 index 00000000..2095522b --- /dev/null +++ b/node_modules/date-fns/isDate/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isDate; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name isDate + * @category Common Helpers + * @summary Is the given value a date? + * + * @description + * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. + * + * @param {*} value - the value to check + * @returns {boolean} true if the given value is a date + * @throws {TypeError} 1 arguments required + * + * @example + * // For a valid date: + * const result = isDate(new Date()) + * //=> true + * + * @example + * // For an invalid date: + * const result = isDate(new Date(NaN)) + * //=> true + * + * @example + * // For some value: + * const result = isDate('2014-02-31') + * //=> false + * + * @example + * // For an object: + * const result = isDate({}) + * //=> false + */ +function isDate(value) { + (0, _index.default)(1, arguments); + return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]'; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isDate/index.js.flow b/node_modules/date-fns/isDate/index.js.flow new file mode 100644 index 00000000..cc97d417 --- /dev/null +++ b/node_modules/date-fns/isDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (value: any) => boolean diff --git a/node_modules/date-fns/isDate/package.json b/node_modules/date-fns/isDate/package.json new file mode 100644 index 00000000..6031b7e9 --- /dev/null +++ b/node_modules/date-fns/isDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isDate/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isEqual/index.d.ts b/node_modules/date-fns/isEqual/index.d.ts new file mode 100644 index 00000000..87865db6 --- /dev/null +++ b/node_modules/date-fns/isEqual/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isEqual } from 'date-fns' +export default isEqual diff --git a/node_modules/date-fns/isEqual/index.js b/node_modules/date-fns/isEqual/index.js new file mode 100644 index 00000000..b7d83f28 --- /dev/null +++ b/node_modules/date-fns/isEqual/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isEqual; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isEqual + * @category Common Helpers + * @summary Are the given dates equal? + * + * @description + * Are the given dates equal? + * + * @param {Date|Number} dateLeft - the first date to compare + * @param {Date|Number} dateRight - the second date to compare + * @returns {Boolean} the dates are equal + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? + * const result = isEqual( + * new Date(2014, 6, 2, 6, 30, 45, 0), + * new Date(2014, 6, 2, 6, 30, 45, 500) + * ) + * //=> false + */ +function isEqual(dirtyLeftDate, dirtyRightDate) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyLeftDate); + var dateRight = (0, _index.default)(dirtyRightDate); + return dateLeft.getTime() === dateRight.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isEqual/index.js.flow b/node_modules/date-fns/isEqual/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isEqual/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isEqual/package.json b/node_modules/date-fns/isEqual/package.json new file mode 100644 index 00000000..d0a69b7a --- /dev/null +++ b/node_modules/date-fns/isEqual/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isEqual/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isExists/index.d.ts b/node_modules/date-fns/isExists/index.d.ts new file mode 100644 index 00000000..af919bef --- /dev/null +++ b/node_modules/date-fns/isExists/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isExists } from 'date-fns' +export default isExists diff --git a/node_modules/date-fns/isExists/index.js b/node_modules/date-fns/isExists/index.js new file mode 100644 index 00000000..93fe3d13 --- /dev/null +++ b/node_modules/date-fns/isExists/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isExists; + +/** + * @name isExists + * @category Common Helpers + * @summary Is the given date exists? + * + * @description + * Checks if the given arguments convert to an existing date. + * + * @param {Number} year of the date to check + * @param {Number} month of the date to check + * @param {Number} day of the date to check + * @returns {Boolean} the date exists + * @throws {TypeError} 3 arguments required + * + * @example + * // For the valid date: + * const result = isExists(2018, 0, 31) + * //=> true + * + * @example + * // For the invalid date: + * const result = isExists(2018, 1, 31) + * //=> false + */ +function isExists(year, month, day) { + if (arguments.length < 3) { + throw new TypeError('3 argument required, but only ' + arguments.length + ' present'); + } + + var date = new Date(year, month, day); + return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isExists/index.js.flow b/node_modules/date-fns/isExists/index.js.flow new file mode 100644 index 00000000..810828e0 --- /dev/null +++ b/node_modules/date-fns/isExists/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (year: number, month: number, day: number) => boolean diff --git a/node_modules/date-fns/isExists/package.json b/node_modules/date-fns/isExists/package.json new file mode 100644 index 00000000..0dcf4129 --- /dev/null +++ b/node_modules/date-fns/isExists/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isExists/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isFirstDayOfMonth/index.d.ts b/node_modules/date-fns/isFirstDayOfMonth/index.d.ts new file mode 100644 index 00000000..6c1a3140 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFirstDayOfMonth } from 'date-fns' +export default isFirstDayOfMonth diff --git a/node_modules/date-fns/isFirstDayOfMonth/index.js b/node_modules/date-fns/isFirstDayOfMonth/index.js new file mode 100644 index 00000000..3a6f6601 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isFirstDayOfMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isFirstDayOfMonth + * @category Month Helpers + * @summary Is the given date the first day of a month? + * + * @description + * Is the given date the first day of a month? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is the first day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // Is 1 September 2014 the first day of a month? + * const result = isFirstDayOfMonth(new Date(2014, 8, 1)) + * //=> true + */ +function isFirstDayOfMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDate() === 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isFirstDayOfMonth/index.js.flow b/node_modules/date-fns/isFirstDayOfMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isFirstDayOfMonth/package.json b/node_modules/date-fns/isFirstDayOfMonth/package.json new file mode 100644 index 00000000..6c529951 --- /dev/null +++ b/node_modules/date-fns/isFirstDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isFirstDayOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isFriday/index.d.ts b/node_modules/date-fns/isFriday/index.d.ts new file mode 100644 index 00000000..17ac2ef8 --- /dev/null +++ b/node_modules/date-fns/isFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFriday } from 'date-fns' +export default isFriday diff --git a/node_modules/date-fns/isFriday/index.js b/node_modules/date-fns/isFriday/index.js new file mode 100644 index 00000000..342a3e9f --- /dev/null +++ b/node_modules/date-fns/isFriday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isFriday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isFriday + * @category Weekday Helpers + * @summary Is the given date Friday? + * + * @description + * Is the given date Friday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Friday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 26 September 2014 Friday? + * const result = isFriday(new Date(2014, 8, 26)) + * //=> true + */ +function isFriday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 5; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isFriday/index.js.flow b/node_modules/date-fns/isFriday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isFriday/package.json b/node_modules/date-fns/isFriday/package.json new file mode 100644 index 00000000..6cf69eab --- /dev/null +++ b/node_modules/date-fns/isFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isFriday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isFuture/index.d.ts b/node_modules/date-fns/isFuture/index.d.ts new file mode 100644 index 00000000..4cb82e8a --- /dev/null +++ b/node_modules/date-fns/isFuture/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isFuture } from 'date-fns' +export default isFuture diff --git a/node_modules/date-fns/isFuture/index.js b/node_modules/date-fns/isFuture/index.js new file mode 100644 index 00000000..9adb91b9 --- /dev/null +++ b/node_modules/date-fns/isFuture/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isFuture; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isFuture + * @category Common Helpers + * @summary Is the given date in the future? + * @pure false + * + * @description + * Is the given date in the future? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the future + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 31 December 2014 in the future? + * const result = isFuture(new Date(2014, 11, 31)) + * //=> true + */ +function isFuture(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getTime() > Date.now(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isFuture/index.js.flow b/node_modules/date-fns/isFuture/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isFuture/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isFuture/package.json b/node_modules/date-fns/isFuture/package.json new file mode 100644 index 00000000..90eb2354 --- /dev/null +++ b/node_modules/date-fns/isFuture/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isFuture/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isLastDayOfMonth/index.d.ts b/node_modules/date-fns/isLastDayOfMonth/index.d.ts new file mode 100644 index 00000000..665cb7d7 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLastDayOfMonth } from 'date-fns' +export default isLastDayOfMonth diff --git a/node_modules/date-fns/isLastDayOfMonth/index.js b/node_modules/date-fns/isLastDayOfMonth/index.js new file mode 100644 index 00000000..a63162a9 --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isLastDayOfMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../endOfDay/index.js")); + +var _index3 = _interopRequireDefault(require("../endOfMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isLastDayOfMonth + * @category Month Helpers + * @summary Is the given date the last day of a month? + * + * @description + * Is the given date the last day of a month? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is the last day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // Is 28 February 2014 the last day of a month? + * const result = isLastDayOfMonth(new Date(2014, 1, 28)) + * //=> true + */ +function isLastDayOfMonth(dirtyDate) { + (0, _index4.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + return (0, _index2.default)(date).getTime() === (0, _index3.default)(date).getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isLastDayOfMonth/index.js.flow b/node_modules/date-fns/isLastDayOfMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isLastDayOfMonth/package.json b/node_modules/date-fns/isLastDayOfMonth/package.json new file mode 100644 index 00000000..c3fb062e --- /dev/null +++ b/node_modules/date-fns/isLastDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isLastDayOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isLeapYear/index.d.ts b/node_modules/date-fns/isLeapYear/index.d.ts new file mode 100644 index 00000000..c08ad8ab --- /dev/null +++ b/node_modules/date-fns/isLeapYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isLeapYear } from 'date-fns' +export default isLeapYear diff --git a/node_modules/date-fns/isLeapYear/index.js b/node_modules/date-fns/isLeapYear/index.js new file mode 100644 index 00000000..bd70fc16 --- /dev/null +++ b/node_modules/date-fns/isLeapYear/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isLeapYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isLeapYear + * @category Year Helpers + * @summary Is the given date in the leap year? + * + * @description + * Is the given date in the leap year? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the leap year + * @throws {TypeError} 1 argument required + * + * @example + * // Is 1 September 2012 in the leap year? + * const result = isLeapYear(new Date(2012, 8, 1)) + * //=> true + */ +function isLeapYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isLeapYear/index.js.flow b/node_modules/date-fns/isLeapYear/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isLeapYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isLeapYear/package.json b/node_modules/date-fns/isLeapYear/package.json new file mode 100644 index 00000000..4aca782c --- /dev/null +++ b/node_modules/date-fns/isLeapYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isLeapYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isMatch/index.d.ts b/node_modules/date-fns/isMatch/index.d.ts new file mode 100644 index 00000000..e0c3fa5c --- /dev/null +++ b/node_modules/date-fns/isMatch/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMatch } from 'date-fns' +export default isMatch diff --git a/node_modules/date-fns/isMatch/index.js b/node_modules/date-fns/isMatch/index.js new file mode 100644 index 00000000..0bc68db6 --- /dev/null +++ b/node_modules/date-fns/isMatch/index.js @@ -0,0 +1,313 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isMatch; + +var _index = _interopRequireDefault(require("../parse/index.js")); + +var _index2 = _interopRequireDefault(require("../isValid/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isMatch + * @category Common Helpers + * @summary validates the date string against given formats + * + * @description + * Return the true if given date is string correct against the given format else + * will return false. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * isMatch('23 AM', 'HH a') + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Su | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Su | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Su | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Su | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `isMatch` will try to match both formatting and stand-alone units interchangably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `isMatch('50', 'yy') //=> true` + * + * `isMatch('75', 'yy') //=> true` + * + * while `uu` will use the year as is: + * + * `isMatch('50', 'uu') //=> true` + * + * `isMatch('75', 'uu') //=> true` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} + * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be checked in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year), + * the values will be taken from today's using `new Date()` date which works as a context of parsing. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * + * + * @param {String} dateString - the date string to verify + * @param {String} formatString - the string of tokens + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {Boolean} + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} `options.locale` must contain `match` property + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Match 11 February 2014 from middle-endian format: + * const result = isMatch('02/11/2014', 'MM/dd/yyyy') + * //=> true + * + * @example + * // Match 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * const result = isMatch('28-a de februaro', "do 'de' MMMM", { + * locale: eo + * }) + * //=> true + */ +function isMatch(dateString, formatString, options) { + (0, _index3.default)(2, arguments); + return (0, _index2.default)((0, _index.default)(dateString, formatString, new Date(), options)); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isMatch/index.js.flow b/node_modules/date-fns/isMatch/index.js.flow new file mode 100644 index 00000000..c27d35a5 --- /dev/null +++ b/node_modules/date-fns/isMatch/index.js.flow @@ -0,0 +1,62 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateString: string, + formatString: string, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => boolean diff --git a/node_modules/date-fns/isMatch/package.json b/node_modules/date-fns/isMatch/package.json new file mode 100644 index 00000000..5e50adc1 --- /dev/null +++ b/node_modules/date-fns/isMatch/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isMatch/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isMonday/index.d.ts b/node_modules/date-fns/isMonday/index.d.ts new file mode 100644 index 00000000..dee60ac0 --- /dev/null +++ b/node_modules/date-fns/isMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isMonday } from 'date-fns' +export default isMonday diff --git a/node_modules/date-fns/isMonday/index.js b/node_modules/date-fns/isMonday/index.js new file mode 100644 index 00000000..4e851f0a --- /dev/null +++ b/node_modules/date-fns/isMonday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isMonday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isMonday + * @category Weekday Helpers + * @summary Is the given date Monday? + * + * @description + * Is the given date Monday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Monday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 22 September 2014 Monday? + * const result = isMonday(new Date(2014, 8, 22)) + * //=> true + */ +function isMonday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date).getDay() === 1; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isMonday/index.js.flow b/node_modules/date-fns/isMonday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isMonday/package.json b/node_modules/date-fns/isMonday/package.json new file mode 100644 index 00000000..a56d8803 --- /dev/null +++ b/node_modules/date-fns/isMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isMonday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isPast/index.d.ts b/node_modules/date-fns/isPast/index.d.ts new file mode 100644 index 00000000..8ae92ca7 --- /dev/null +++ b/node_modules/date-fns/isPast/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isPast } from 'date-fns' +export default isPast diff --git a/node_modules/date-fns/isPast/index.js b/node_modules/date-fns/isPast/index.js new file mode 100644 index 00000000..1f27024e --- /dev/null +++ b/node_modules/date-fns/isPast/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isPast; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isPast + * @category Common Helpers + * @summary Is the given date in the past? + * @pure false + * + * @description + * Is the given date in the past? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in the past + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 2 July 2014 in the past? + * const result = isPast(new Date(2014, 6, 2)) + * //=> true + */ +function isPast(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getTime() < Date.now(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isPast/index.js.flow b/node_modules/date-fns/isPast/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isPast/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isPast/package.json b/node_modules/date-fns/isPast/package.json new file mode 100644 index 00000000..3780e600 --- /dev/null +++ b/node_modules/date-fns/isPast/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isPast/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameDay/index.d.ts b/node_modules/date-fns/isSameDay/index.d.ts new file mode 100644 index 00000000..c4c2d554 --- /dev/null +++ b/node_modules/date-fns/isSameDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameDay } from 'date-fns' +export default isSameDay diff --git a/node_modules/date-fns/isSameDay/index.js b/node_modules/date-fns/isSameDay/index.js new file mode 100644 index 00000000..c6fa673a --- /dev/null +++ b/node_modules/date-fns/isSameDay/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameDay; + +var _index = _interopRequireDefault(require("../startOfDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameDay + * @category Day Helpers + * @summary Are the given dates in the same day (and year and month)? + * + * @description + * Are the given dates in the same day (and year and month)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same day (and year and month) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? + * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) + * //=> true + * + * @example + * // Are 4 September and 4 October in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) + * //=> false + * + * @example + * // Are 4 September, 2014 and 4 September, 2015 in the same day? + * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) + * //=> false + */ +function isSameDay(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfDay = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfDay = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameDay/index.js.flow b/node_modules/date-fns/isSameDay/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameDay/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameDay/package.json b/node_modules/date-fns/isSameDay/package.json new file mode 100644 index 00000000..c579b1fa --- /dev/null +++ b/node_modules/date-fns/isSameDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameHour/index.d.ts b/node_modules/date-fns/isSameHour/index.d.ts new file mode 100644 index 00000000..78d46622 --- /dev/null +++ b/node_modules/date-fns/isSameHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameHour } from 'date-fns' +export default isSameHour diff --git a/node_modules/date-fns/isSameHour/index.js b/node_modules/date-fns/isSameHour/index.js new file mode 100644 index 00000000..2b89b3dc --- /dev/null +++ b/node_modules/date-fns/isSameHour/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameHour; + +var _index = _interopRequireDefault(require("../startOfHour/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameHour + * @category Hour Helpers + * @summary Are the given dates in the same hour (and same day)? + * + * @description + * Are the given dates in the same hour (and same day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same hour (and same day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30)) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour? + * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0)) + * //=> false + */ +function isSameHour(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfHour = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfHour = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameHour/index.js.flow b/node_modules/date-fns/isSameHour/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameHour/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameHour/package.json b/node_modules/date-fns/isSameHour/package.json new file mode 100644 index 00000000..532a6991 --- /dev/null +++ b/node_modules/date-fns/isSameHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameHour/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameISOWeek/index.d.ts b/node_modules/date-fns/isSameISOWeek/index.d.ts new file mode 100644 index 00000000..566ed8b0 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeek } from 'date-fns' +export default isSameISOWeek diff --git a/node_modules/date-fns/isSameISOWeek/index.js b/node_modules/date-fns/isSameISOWeek/index.js new file mode 100644 index 00000000..803a07cc --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameISOWeek; + +var _index = _interopRequireDefault(require("../isSameWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameISOWeek + * @category ISO Week Helpers + * @summary Are the given dates in the same ISO week (and year)? + * + * @description + * Are the given dates in the same ISO week (and year)? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same ISO week (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 September 2014 and 7 September 2014 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7)) + * //=> true + * + * @example + * // Are 1 September 2014 and 1 September 2015 in the same ISO week? + * const result = isSameISOWeek(new Date(2014, 8, 1), new Date(2015, 8, 1)) + * //=> false + */ +function isSameISOWeek(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + return (0, _index.default)(dirtyDateLeft, dirtyDateRight, { + weekStartsOn: 1 + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameISOWeek/index.js.flow b/node_modules/date-fns/isSameISOWeek/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameISOWeek/package.json b/node_modules/date-fns/isSameISOWeek/package.json new file mode 100644 index 00000000..d969a5da --- /dev/null +++ b/node_modules/date-fns/isSameISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameISOWeekYear/index.d.ts b/node_modules/date-fns/isSameISOWeekYear/index.d.ts new file mode 100644 index 00000000..e7960922 --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameISOWeekYear } from 'date-fns' +export default isSameISOWeekYear diff --git a/node_modules/date-fns/isSameISOWeekYear/index.js b/node_modules/date-fns/isSameISOWeekYear/index.js new file mode 100644 index 00000000..cef50b6f --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameISOWeekYear; + +var _index = _interopRequireDefault(require("../startOfISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Are the given dates in the same ISO week-numbering year? + * + * @description + * Are the given dates in the same ISO week-numbering year? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same ISO week-numbering year + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year? + * const result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2)) + * //=> true + */ +function isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfYear = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfYear = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameISOWeekYear/index.js.flow b/node_modules/date-fns/isSameISOWeekYear/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameISOWeekYear/package.json b/node_modules/date-fns/isSameISOWeekYear/package.json new file mode 100644 index 00000000..3f23491d --- /dev/null +++ b/node_modules/date-fns/isSameISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameMinute/index.d.ts b/node_modules/date-fns/isSameMinute/index.d.ts new file mode 100644 index 00000000..c26acefe --- /dev/null +++ b/node_modules/date-fns/isSameMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMinute } from 'date-fns' +export default isSameMinute diff --git a/node_modules/date-fns/isSameMinute/index.js b/node_modules/date-fns/isSameMinute/index.js new file mode 100644 index 00000000..8088c5ce --- /dev/null +++ b/node_modules/date-fns/isSameMinute/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameMinute; + +var _index = _interopRequireDefault(require("../startOfMinute/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameMinute + * @category Minute Helpers + * @summary Are the given dates in the same minute (and hour and day)? + * + * @description + * Are the given dates in the same minute (and hour and day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same minute (and hour and day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 4, 6, 30, 15) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:30:00 and 5 September 2014 06:30:00 in the same minute? + * const result = isSameMinute( + * new Date(2014, 8, 4, 6, 30), + * new Date(2014, 8, 5, 6, 30) + * ) + * //=> false + */ +function isSameMinute(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfMinute = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfMinute = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameMinute/index.js.flow b/node_modules/date-fns/isSameMinute/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameMinute/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameMinute/package.json b/node_modules/date-fns/isSameMinute/package.json new file mode 100644 index 00000000..9c449f36 --- /dev/null +++ b/node_modules/date-fns/isSameMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameMinute/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameMonth/index.d.ts b/node_modules/date-fns/isSameMonth/index.d.ts new file mode 100644 index 00000000..bd0e8868 --- /dev/null +++ b/node_modules/date-fns/isSameMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameMonth } from 'date-fns' +export default isSameMonth diff --git a/node_modules/date-fns/isSameMonth/index.js b/node_modules/date-fns/isSameMonth/index.js new file mode 100644 index 00000000..80d3c24c --- /dev/null +++ b/node_modules/date-fns/isSameMonth/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameMonth + * @category Month Helpers + * @summary Are the given dates in the same month (and year)? + * + * @description + * Are the given dates in the same month (and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same month (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + * + * @example + * // Are 2 September 2014 and 25 September 2015 in the same month? + * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) + * //=> false + */ +function isSameMonth(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameMonth/index.js.flow b/node_modules/date-fns/isSameMonth/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameMonth/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameMonth/package.json b/node_modules/date-fns/isSameMonth/package.json new file mode 100644 index 00000000..a37c21ae --- /dev/null +++ b/node_modules/date-fns/isSameMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameQuarter/index.d.ts b/node_modules/date-fns/isSameQuarter/index.d.ts new file mode 100644 index 00000000..584660aa --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameQuarter } from 'date-fns' +export default isSameQuarter diff --git a/node_modules/date-fns/isSameQuarter/index.js b/node_modules/date-fns/isSameQuarter/index.js new file mode 100644 index 00000000..d1083a08 --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameQuarter; + +var _index = _interopRequireDefault(require("../startOfQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameQuarter + * @category Quarter Helpers + * @summary Are the given dates in the same quarter (and year)? + * + * @description + * Are the given dates in the same quarter (and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same quarter (and year) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 1 January 2014 and 8 March 2014 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) + * //=> true + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same quarter? + * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +function isSameQuarter(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfQuarter = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfQuarter = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameQuarter/index.js.flow b/node_modules/date-fns/isSameQuarter/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameQuarter/package.json b/node_modules/date-fns/isSameQuarter/package.json new file mode 100644 index 00000000..58c52bdf --- /dev/null +++ b/node_modules/date-fns/isSameQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameSecond/index.d.ts b/node_modules/date-fns/isSameSecond/index.d.ts new file mode 100644 index 00000000..982464e3 --- /dev/null +++ b/node_modules/date-fns/isSameSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameSecond } from 'date-fns' +export default isSameSecond diff --git a/node_modules/date-fns/isSameSecond/index.js b/node_modules/date-fns/isSameSecond/index.js new file mode 100644 index 00000000..f03cdb00 --- /dev/null +++ b/node_modules/date-fns/isSameSecond/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameSecond; + +var _index = _interopRequireDefault(require("../startOfSecond/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameSecond + * @category Second Helpers + * @summary Are the given dates in the same second (and hour and day)? + * + * @description + * Are the given dates in the same second (and hour and day)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same second (and hour and day) + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 30, 15), + * new Date(2014, 8, 4, 6, 30, 15, 500) + * ) + * //=> true + * + * @example + * // Are 4 September 2014 06:00:15.000 and 4 September 2014 06:01.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 4, 6, 1, 15) + * ) + * //=> false + * + * @example + * // Are 4 September 2014 06:00:15.000 and 5 September 2014 06:00.15.000 in the same second? + * const result = isSameSecond( + * new Date(2014, 8, 4, 6, 0, 15), + * new Date(2014, 8, 5, 6, 0, 15) + * ) + * //=> false + */ +function isSameSecond(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfSecond = (0, _index.default)(dirtyDateLeft); + var dateRightStartOfSecond = (0, _index.default)(dirtyDateRight); + return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameSecond/index.js.flow b/node_modules/date-fns/isSameSecond/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameSecond/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameSecond/package.json b/node_modules/date-fns/isSameSecond/package.json new file mode 100644 index 00000000..61ce478a --- /dev/null +++ b/node_modules/date-fns/isSameSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameSecond/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameWeek/index.d.ts b/node_modules/date-fns/isSameWeek/index.d.ts new file mode 100644 index 00000000..b27f5f66 --- /dev/null +++ b/node_modules/date-fns/isSameWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameWeek } from 'date-fns' +export default isSameWeek diff --git a/node_modules/date-fns/isSameWeek/index.js b/node_modules/date-fns/isSameWeek/index.js new file mode 100644 index 00000000..b060c77f --- /dev/null +++ b/node_modules/date-fns/isSameWeek/index.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameWeek; + +var _index = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameWeek + * @category Week Helpers + * @summary Are the given dates in the same week (and month and year)? + * + * @description + * Are the given dates in the same week (and month and year)? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Boolean} the dates are in the same week (and month and year) + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // Are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4)) + * //=> true + * + * @example + * // If week starts with Monday, + * // are 31 August 2014 and 4 September 2014 in the same week? + * const result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), { + * weekStartsOn: 1 + * }) + * //=> false + * + * @example + * // Are 1 January 2014 and 1 January 2015 in the same week? + * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1)) + * //=> false + */ +function isSameWeek(dirtyDateLeft, dirtyDateRight, options) { + (0, _index2.default)(2, arguments); + var dateLeftStartOfWeek = (0, _index.default)(dirtyDateLeft, options); + var dateRightStartOfWeek = (0, _index.default)(dirtyDateRight, options); + return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameWeek/index.js.flow b/node_modules/date-fns/isSameWeek/index.js.flow new file mode 100644 index 00000000..2ba3f16c --- /dev/null +++ b/node_modules/date-fns/isSameWeek/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => boolean diff --git a/node_modules/date-fns/isSameWeek/package.json b/node_modules/date-fns/isSameWeek/package.json new file mode 100644 index 00000000..d2963376 --- /dev/null +++ b/node_modules/date-fns/isSameWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSameYear/index.d.ts b/node_modules/date-fns/isSameYear/index.d.ts new file mode 100644 index 00000000..c729e19a --- /dev/null +++ b/node_modules/date-fns/isSameYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSameYear } from 'date-fns' +export default isSameYear diff --git a/node_modules/date-fns/isSameYear/index.js b/node_modules/date-fns/isSameYear/index.js new file mode 100644 index 00000000..d111e7a0 --- /dev/null +++ b/node_modules/date-fns/isSameYear/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSameYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSameYear + * @category Year Helpers + * @summary Are the given dates in the same year? + * + * @description + * Are the given dates in the same year? + * + * @param {Date|Number} dateLeft - the first date to check + * @param {Date|Number} dateRight - the second date to check + * @returns {Boolean} the dates are in the same year + * @throws {TypeError} 2 arguments required + * + * @example + * // Are 2 September 2014 and 25 September 2014 in the same year? + * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) + * //=> true + */ +function isSameYear(dirtyDateLeft, dirtyDateRight) { + (0, _index2.default)(2, arguments); + var dateLeft = (0, _index.default)(dirtyDateLeft); + var dateRight = (0, _index.default)(dirtyDateRight); + return dateLeft.getFullYear() === dateRight.getFullYear(); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSameYear/index.js.flow b/node_modules/date-fns/isSameYear/index.js.flow new file mode 100644 index 00000000..55ea578e --- /dev/null +++ b/node_modules/date-fns/isSameYear/index.js.flow @@ -0,0 +1,55 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateLeft: Date | number, + dateRight: Date | number +) => boolean diff --git a/node_modules/date-fns/isSameYear/package.json b/node_modules/date-fns/isSameYear/package.json new file mode 100644 index 00000000..4d09f291 --- /dev/null +++ b/node_modules/date-fns/isSameYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSameYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSaturday/index.d.ts b/node_modules/date-fns/isSaturday/index.d.ts new file mode 100644 index 00000000..ac5ccb38 --- /dev/null +++ b/node_modules/date-fns/isSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSaturday } from 'date-fns' +export default isSaturday diff --git a/node_modules/date-fns/isSaturday/index.js b/node_modules/date-fns/isSaturday/index.js new file mode 100644 index 00000000..51e02e07 --- /dev/null +++ b/node_modules/date-fns/isSaturday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSaturday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSaturday + * @category Weekday Helpers + * @summary Is the given date Saturday? + * + * @description + * Is the given date Saturday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 27 September 2014 Saturday? + * const result = isSaturday(new Date(2014, 8, 27)) + * //=> true + */ +function isSaturday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 6; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSaturday/index.js.flow b/node_modules/date-fns/isSaturday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isSaturday/package.json b/node_modules/date-fns/isSaturday/package.json new file mode 100644 index 00000000..0ab7e0a2 --- /dev/null +++ b/node_modules/date-fns/isSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSaturday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isSunday/index.d.ts b/node_modules/date-fns/isSunday/index.d.ts new file mode 100644 index 00000000..5830086b --- /dev/null +++ b/node_modules/date-fns/isSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isSunday } from 'date-fns' +export default isSunday diff --git a/node_modules/date-fns/isSunday/index.js b/node_modules/date-fns/isSunday/index.js new file mode 100644 index 00000000..a85183bd --- /dev/null +++ b/node_modules/date-fns/isSunday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSunday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isSunday + * @category Weekday Helpers + * @summary Is the given date Sunday? + * + * @description + * Is the given date Sunday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 21 September 2014 Sunday? + * const result = isSunday(new Date(2014, 8, 21)) + * //=> true + */ +function isSunday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 0; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isSunday/index.js.flow b/node_modules/date-fns/isSunday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isSunday/package.json b/node_modules/date-fns/isSunday/package.json new file mode 100644 index 00000000..e249d776 --- /dev/null +++ b/node_modules/date-fns/isSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isSunday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisHour/index.d.ts b/node_modules/date-fns/isThisHour/index.d.ts new file mode 100644 index 00000000..1009e428 --- /dev/null +++ b/node_modules/date-fns/isThisHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisHour } from 'date-fns' +export default isThisHour diff --git a/node_modules/date-fns/isThisHour/index.js b/node_modules/date-fns/isThisHour/index.js new file mode 100644 index 00000000..363aa7f0 --- /dev/null +++ b/node_modules/date-fns/isThisHour/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisHour; + +var _index = _interopRequireDefault(require("../isSameHour/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisHour + * @category Hour Helpers + * @summary Is the given date in the same hour as the current date? + * @pure false + * + * @description + * Is the given date in the same hour as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this hour + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:00:00 in this hour? + * const result = isThisHour(new Date(2014, 8, 25, 18)) + * //=> true + */ +function isThisHour(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(Date.now(), dirtyDate); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisHour/index.js.flow b/node_modules/date-fns/isThisHour/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisHour/package.json b/node_modules/date-fns/isThisHour/package.json new file mode 100644 index 00000000..833baabb --- /dev/null +++ b/node_modules/date-fns/isThisHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisHour/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisISOWeek/index.d.ts b/node_modules/date-fns/isThisISOWeek/index.d.ts new file mode 100644 index 00000000..4fb42e8d --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisISOWeek } from 'date-fns' +export default isThisISOWeek diff --git a/node_modules/date-fns/isThisISOWeek/index.js b/node_modules/date-fns/isThisISOWeek/index.js new file mode 100644 index 00000000..55dee75d --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisISOWeek; + +var _index = _interopRequireDefault(require("../isSameISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisISOWeek + * @category ISO Week Helpers + * @summary Is the given date in the same ISO week as the current date? + * @pure false + * + * @description + * Is the given date in the same ISO week as the current date? + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 22 September 2014 in this ISO week? + * const result = isThisISOWeek(new Date(2014, 8, 22)) + * //=> true + */ +function isThisISOWeek(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisISOWeek/index.js.flow b/node_modules/date-fns/isThisISOWeek/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisISOWeek/package.json b/node_modules/date-fns/isThisISOWeek/package.json new file mode 100644 index 00000000..9cf8f3c0 --- /dev/null +++ b/node_modules/date-fns/isThisISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisMinute/index.d.ts b/node_modules/date-fns/isThisMinute/index.d.ts new file mode 100644 index 00000000..ca1430d5 --- /dev/null +++ b/node_modules/date-fns/isThisMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisMinute } from 'date-fns' +export default isThisMinute diff --git a/node_modules/date-fns/isThisMinute/index.js b/node_modules/date-fns/isThisMinute/index.js new file mode 100644 index 00000000..b8c270e5 --- /dev/null +++ b/node_modules/date-fns/isThisMinute/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisMinute; + +var _index = _interopRequireDefault(require("../isSameMinute/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisMinute + * @category Minute Helpers + * @summary Is the given date in the same minute as the current date? + * @pure false + * + * @description + * Is the given date in the same minute as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this minute + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:00 in this minute? + * const result = isThisMinute(new Date(2014, 8, 25, 18, 30)) + * //=> true + */ +function isThisMinute(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(Date.now(), dirtyDate); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisMinute/index.js.flow b/node_modules/date-fns/isThisMinute/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisMinute/package.json b/node_modules/date-fns/isThisMinute/package.json new file mode 100644 index 00000000..c8da2c35 --- /dev/null +++ b/node_modules/date-fns/isThisMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisMinute/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisMonth/index.d.ts b/node_modules/date-fns/isThisMonth/index.d.ts new file mode 100644 index 00000000..eaf72fdd --- /dev/null +++ b/node_modules/date-fns/isThisMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisMonth } from 'date-fns' +export default isThisMonth diff --git a/node_modules/date-fns/isThisMonth/index.js b/node_modules/date-fns/isThisMonth/index.js new file mode 100644 index 00000000..08ed8062 --- /dev/null +++ b/node_modules/date-fns/isThisMonth/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisMonth; + +var _index = _interopRequireDefault(require("../isSameMonth/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisMonth + * @category Month Helpers + * @summary Is the given date in the same month as the current date? + * @pure false + * + * @description + * Is the given date in the same month as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this month + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 15 September 2014 in this month? + * const result = isThisMonth(new Date(2014, 8, 15)) + * //=> true + */ +function isThisMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(Date.now(), dirtyDate); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisMonth/index.js.flow b/node_modules/date-fns/isThisMonth/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisMonth/package.json b/node_modules/date-fns/isThisMonth/package.json new file mode 100644 index 00000000..763a3b96 --- /dev/null +++ b/node_modules/date-fns/isThisMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisQuarter/index.d.ts b/node_modules/date-fns/isThisQuarter/index.d.ts new file mode 100644 index 00000000..8c25708a --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisQuarter } from 'date-fns' +export default isThisQuarter diff --git a/node_modules/date-fns/isThisQuarter/index.js b/node_modules/date-fns/isThisQuarter/index.js new file mode 100644 index 00000000..69e89432 --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisQuarter; + +var _index = _interopRequireDefault(require("../isSameQuarter/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisQuarter + * @category Quarter Helpers + * @summary Is the given date in the same quarter as the current date? + * @pure false + * + * @description + * Is the given date in the same quarter as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this quarter + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this quarter? + * const result = isThisQuarter(new Date(2014, 6, 2)) + * //=> true + */ +function isThisQuarter(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(Date.now(), dirtyDate); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisQuarter/index.js.flow b/node_modules/date-fns/isThisQuarter/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisQuarter/package.json b/node_modules/date-fns/isThisQuarter/package.json new file mode 100644 index 00000000..faa91a1f --- /dev/null +++ b/node_modules/date-fns/isThisQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisSecond/index.d.ts b/node_modules/date-fns/isThisSecond/index.d.ts new file mode 100644 index 00000000..9d45da10 --- /dev/null +++ b/node_modules/date-fns/isThisSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisSecond } from 'date-fns' +export default isThisSecond diff --git a/node_modules/date-fns/isThisSecond/index.js b/node_modules/date-fns/isThisSecond/index.js new file mode 100644 index 00000000..f5e60063 --- /dev/null +++ b/node_modules/date-fns/isThisSecond/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisSecond; + +var _index = _interopRequireDefault(require("../isSameSecond/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisSecond + * @category Second Helpers + * @summary Is the given date in the same second as the current date? + * @pure false + * + * @description + * Is the given date in the same second as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this second + * @throws {TypeError} 1 argument required + * + * @example + * // If now is 25 September 2014 18:30:15.500, + * // is 25 September 2014 18:30:15.000 in this second? + * const result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15)) + * //=> true + */ +function isThisSecond(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(Date.now(), dirtyDate); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisSecond/index.js.flow b/node_modules/date-fns/isThisSecond/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisSecond/package.json b/node_modules/date-fns/isThisSecond/package.json new file mode 100644 index 00000000..9611c1f8 --- /dev/null +++ b/node_modules/date-fns/isThisSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisSecond/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisWeek/index.d.ts b/node_modules/date-fns/isThisWeek/index.d.ts new file mode 100644 index 00000000..b22ba530 --- /dev/null +++ b/node_modules/date-fns/isThisWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisWeek } from 'date-fns' +export default isThisWeek diff --git a/node_modules/date-fns/isThisWeek/index.js b/node_modules/date-fns/isThisWeek/index.js new file mode 100644 index 00000000..ae465f78 --- /dev/null +++ b/node_modules/date-fns/isThisWeek/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisWeek; + +var _index = _interopRequireDefault(require("../isSameWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisWeek + * @category Week Helpers + * @summary Is the given date in the same week as the current date? + * @pure false + * + * @description + * Is the given date in the same week as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @param {Object} [options] - the object with options + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Boolean} the date is in this week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // If today is 25 September 2014, is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21)) + * //=> true + * + * @example + * // If today is 25 September 2014 and week starts with Monday + * // is 21 September 2014 in this week? + * const result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 }) + * //=> false + */ +function isThisWeek(dirtyDate, options) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now(), options); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisWeek/index.js.flow b/node_modules/date-fns/isThisWeek/index.js.flow new file mode 100644 index 00000000..579c74ae --- /dev/null +++ b/node_modules/date-fns/isThisWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => boolean diff --git a/node_modules/date-fns/isThisWeek/package.json b/node_modules/date-fns/isThisWeek/package.json new file mode 100644 index 00000000..62e53e1b --- /dev/null +++ b/node_modules/date-fns/isThisWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThisYear/index.d.ts b/node_modules/date-fns/isThisYear/index.d.ts new file mode 100644 index 00000000..b95f1be3 --- /dev/null +++ b/node_modules/date-fns/isThisYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThisYear } from 'date-fns' +export default isThisYear diff --git a/node_modules/date-fns/isThisYear/index.js b/node_modules/date-fns/isThisYear/index.js new file mode 100644 index 00000000..59a878d1 --- /dev/null +++ b/node_modules/date-fns/isThisYear/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThisYear; + +var _index = _interopRequireDefault(require("../isSameYear/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThisYear + * @category Year Helpers + * @summary Is the given date in the same year as the current date? + * @pure false + * + * @description + * Is the given date in the same year as the current date? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is in this year + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 25 September 2014, is 2 July 2014 in this year? + * const result = isThisYear(new Date(2014, 6, 2)) + * //=> true + */ +function isThisYear(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThisYear/index.js.flow b/node_modules/date-fns/isThisYear/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThisYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThisYear/package.json b/node_modules/date-fns/isThisYear/package.json new file mode 100644 index 00000000..1f552f4f --- /dev/null +++ b/node_modules/date-fns/isThisYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThisYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isThursday/index.d.ts b/node_modules/date-fns/isThursday/index.d.ts new file mode 100644 index 00000000..2f25237d --- /dev/null +++ b/node_modules/date-fns/isThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isThursday } from 'date-fns' +export default isThursday diff --git a/node_modules/date-fns/isThursday/index.js b/node_modules/date-fns/isThursday/index.js new file mode 100644 index 00000000..fc579de8 --- /dev/null +++ b/node_modules/date-fns/isThursday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isThursday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isThursday + * @category Weekday Helpers + * @summary Is the given date Thursday? + * + * @description + * Is the given date Thursday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 25 September 2014 Thursday? + * const result = isThursday(new Date(2014, 8, 25)) + * //=> true + */ +function isThursday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 4; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isThursday/index.js.flow b/node_modules/date-fns/isThursday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isThursday/package.json b/node_modules/date-fns/isThursday/package.json new file mode 100644 index 00000000..90ea05b7 --- /dev/null +++ b/node_modules/date-fns/isThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isThursday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isToday/index.d.ts b/node_modules/date-fns/isToday/index.d.ts new file mode 100644 index 00000000..ed0cd157 --- /dev/null +++ b/node_modules/date-fns/isToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isToday } from 'date-fns' +export default isToday diff --git a/node_modules/date-fns/isToday/index.js b/node_modules/date-fns/isToday/index.js new file mode 100644 index 00000000..0937947d --- /dev/null +++ b/node_modules/date-fns/isToday/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isToday; + +var _index = _interopRequireDefault(require("../isSameDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isToday + * @category Day Helpers + * @summary Is the given date today? + * @pure false + * + * @description + * Is the given date today? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is today + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 6 October 14:00:00 today? + * const result = isToday(new Date(2014, 9, 6, 14, 0)) + * //=> true + */ +function isToday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, Date.now()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isToday/index.js.flow b/node_modules/date-fns/isToday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isToday/package.json b/node_modules/date-fns/isToday/package.json new file mode 100644 index 00000000..21a37e0e --- /dev/null +++ b/node_modules/date-fns/isToday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isToday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isTomorrow/index.d.ts b/node_modules/date-fns/isTomorrow/index.d.ts new file mode 100644 index 00000000..b9c9115a --- /dev/null +++ b/node_modules/date-fns/isTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTomorrow } from 'date-fns' +export default isTomorrow diff --git a/node_modules/date-fns/isTomorrow/index.js b/node_modules/date-fns/isTomorrow/index.js new file mode 100644 index 00000000..2fff2f6d --- /dev/null +++ b/node_modules/date-fns/isTomorrow/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isTomorrow; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../isSameDay/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isTomorrow + * @category Day Helpers + * @summary Is the given date tomorrow? + * @pure false + * + * @description + * Is the given date tomorrow? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is tomorrow + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow? + * const result = isTomorrow(new Date(2014, 9, 7, 14, 0)) + * //=> true + */ +function isTomorrow(dirtyDate) { + (0, _index3.default)(1, arguments); + return (0, _index2.default)(dirtyDate, (0, _index.default)(Date.now(), 1)); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isTomorrow/index.js.flow b/node_modules/date-fns/isTomorrow/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isTomorrow/package.json b/node_modules/date-fns/isTomorrow/package.json new file mode 100644 index 00000000..3b4211ac --- /dev/null +++ b/node_modules/date-fns/isTomorrow/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isTomorrow/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isTuesday/index.d.ts b/node_modules/date-fns/isTuesday/index.d.ts new file mode 100644 index 00000000..87c7ceb1 --- /dev/null +++ b/node_modules/date-fns/isTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isTuesday } from 'date-fns' +export default isTuesday diff --git a/node_modules/date-fns/isTuesday/index.js b/node_modules/date-fns/isTuesday/index.js new file mode 100644 index 00000000..ea9b606f --- /dev/null +++ b/node_modules/date-fns/isTuesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isTuesday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isTuesday + * @category Weekday Helpers + * @summary Is the given date Tuesday? + * + * @description + * Is the given date Tuesday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 23 September 2014 Tuesday? + * const result = isTuesday(new Date(2014, 8, 23)) + * //=> true + */ +function isTuesday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 2; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isTuesday/index.js.flow b/node_modules/date-fns/isTuesday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isTuesday/package.json b/node_modules/date-fns/isTuesday/package.json new file mode 100644 index 00000000..a999765a --- /dev/null +++ b/node_modules/date-fns/isTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isTuesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isValid/index.d.ts b/node_modules/date-fns/isValid/index.d.ts new file mode 100644 index 00000000..26ad11db --- /dev/null +++ b/node_modules/date-fns/isValid/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isValid } from 'date-fns' +export default isValid diff --git a/node_modules/date-fns/isValid/index.js b/node_modules/date-fns/isValid/index.js new file mode 100644 index 00000000..c8c0d1c2 --- /dev/null +++ b/node_modules/date-fns/isValid/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isValid; + +var _index = _interopRequireDefault(require("../isDate/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isValid + * @category Common Helpers + * @summary Is the given date valid? + * + * @description + * Returns false if argument is Invalid Date and true otherwise. + * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * Invalid Date is a Date, whose time value is NaN. + * + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {*} date - the date to check + * @returns {Boolean} the date is valid + * @throws {TypeError} 1 argument required + * + * @example + * // For the valid date: + * const result = isValid(new Date(2014, 1, 31)) + * //=> true + * + * @example + * // For the value, convertable into a date: + * const result = isValid(1393804800000) + * //=> true + * + * @example + * // For the invalid date: + * const result = isValid(new Date('')) + * //=> false + */ +function isValid(dirtyDate) { + (0, _index3.default)(1, arguments); + + if (!(0, _index.default)(dirtyDate) && typeof dirtyDate !== 'number') { + return false; + } + + var date = (0, _index2.default)(dirtyDate); + return !isNaN(Number(date)); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isValid/index.js.flow b/node_modules/date-fns/isValid/index.js.flow new file mode 100644 index 00000000..5bae5e02 --- /dev/null +++ b/node_modules/date-fns/isValid/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: any) => boolean diff --git a/node_modules/date-fns/isValid/package.json b/node_modules/date-fns/isValid/package.json new file mode 100644 index 00000000..0e817173 --- /dev/null +++ b/node_modules/date-fns/isValid/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isValid/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isWednesday/index.d.ts b/node_modules/date-fns/isWednesday/index.d.ts new file mode 100644 index 00000000..e517a931 --- /dev/null +++ b/node_modules/date-fns/isWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWednesday } from 'date-fns' +export default isWednesday diff --git a/node_modules/date-fns/isWednesday/index.js b/node_modules/date-fns/isWednesday/index.js new file mode 100644 index 00000000..a66c06eb --- /dev/null +++ b/node_modules/date-fns/isWednesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isWednesday; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isWednesday + * @category Weekday Helpers + * @summary Is the given date Wednesday? + * + * @description + * Is the given date Wednesday? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // Is 24 September 2014 Wednesday? + * const result = isWednesday(new Date(2014, 8, 24)) + * //=> true + */ +function isWednesday(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate).getDay() === 3; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isWednesday/index.js.flow b/node_modules/date-fns/isWednesday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isWednesday/package.json b/node_modules/date-fns/isWednesday/package.json new file mode 100644 index 00000000..3f827f7e --- /dev/null +++ b/node_modules/date-fns/isWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isWednesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isWeekend/index.d.ts b/node_modules/date-fns/isWeekend/index.d.ts new file mode 100644 index 00000000..3e54f311 --- /dev/null +++ b/node_modules/date-fns/isWeekend/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWeekend } from 'date-fns' +export default isWeekend diff --git a/node_modules/date-fns/isWeekend/index.js b/node_modules/date-fns/isWeekend/index.js new file mode 100644 index 00000000..cd6ec0f5 --- /dev/null +++ b/node_modules/date-fns/isWeekend/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isWeekend; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isWeekend + * @category Weekday Helpers + * @summary Does the given date fall on a weekend? + * + * @description + * Does the given date fall on a weekend? + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date falls on a weekend + * @throws {TypeError} 1 argument required + * + * @example + * // Does 5 October 2014 fall on a weekend? + * const result = isWeekend(new Date(2014, 9, 5)) + * //=> true + */ +function isWeekend(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var day = date.getDay(); + return day === 0 || day === 6; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isWeekend/index.js.flow b/node_modules/date-fns/isWeekend/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isWeekend/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isWeekend/package.json b/node_modules/date-fns/isWeekend/package.json new file mode 100644 index 00000000..1440ee05 --- /dev/null +++ b/node_modules/date-fns/isWeekend/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isWeekend/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isWithinInterval/index.d.ts b/node_modules/date-fns/isWithinInterval/index.d.ts new file mode 100644 index 00000000..17339dbb --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isWithinInterval } from 'date-fns' +export default isWithinInterval diff --git a/node_modules/date-fns/isWithinInterval/index.js b/node_modules/date-fns/isWithinInterval/index.js new file mode 100644 index 00000000..45d6589a --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/index.js @@ -0,0 +1,66 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isWithinInterval; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isWithinInterval + * @category Interval Helpers + * @summary Is the given date within the interval? + * + * @description + * Is the given date within the interval? (Including start and end.) + * + * @param {Date|Number} date - the date to check + * @param {Interval} interval - the interval to check + * @returns {Boolean} the date is within the interval + * @throws {TypeError} 2 arguments required + * @throws {RangeError} The start of an interval cannot be after its end + * @throws {RangeError} Date in interval cannot be `Invalid Date` + * + * @example + * // For the date within the interval: + * isWithinInterval(new Date(2014, 0, 3), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> true + * + * @example + * // For the date outside of the interval: + * isWithinInterval(new Date(2014, 0, 10), { + * start: new Date(2014, 0, 1), + * end: new Date(2014, 0, 7) + * }) + * //=> false + * + * @example + * // For date equal to interval start: + * isWithinInterval(date, { start, end: date }) // => true + * + * @example + * // For date equal to interval end: + * isWithinInterval(date, { start: date, end }) // => true + */ +function isWithinInterval(dirtyDate, interval) { + (0, _index2.default)(2, arguments); + var time = (0, _index.default)(dirtyDate).getTime(); + var startTime = (0, _index.default)(interval.start).getTime(); + var endTime = (0, _index.default)(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` + + if (!(startTime <= endTime)) { + throw new RangeError('Invalid interval'); + } + + return time >= startTime && time <= endTime; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isWithinInterval/index.js.flow b/node_modules/date-fns/isWithinInterval/index.js.flow new file mode 100644 index 00000000..f8700535 --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, interval: Interval) => boolean diff --git a/node_modules/date-fns/isWithinInterval/package.json b/node_modules/date-fns/isWithinInterval/package.json new file mode 100644 index 00000000..a02ce4ab --- /dev/null +++ b/node_modules/date-fns/isWithinInterval/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isWithinInterval/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/isYesterday/index.d.ts b/node_modules/date-fns/isYesterday/index.d.ts new file mode 100644 index 00000000..b10c6357 --- /dev/null +++ b/node_modules/date-fns/isYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { isYesterday } from 'date-fns' +export default isYesterday diff --git a/node_modules/date-fns/isYesterday/index.js b/node_modules/date-fns/isYesterday/index.js new file mode 100644 index 00000000..1ec37332 --- /dev/null +++ b/node_modules/date-fns/isYesterday/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isYesterday; + +var _index = _interopRequireDefault(require("../isSameDay/index.js")); + +var _index2 = _interopRequireDefault(require("../subDays/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name isYesterday + * @category Day Helpers + * @summary Is the given date yesterday? + * @pure false + * + * @description + * Is the given date yesterday? + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @param {Date|Number} date - the date to check + * @returns {Boolean} the date is yesterday + * @throws {TypeError} 1 argument required + * + * @example + * // If today is 6 October 2014, is 5 October 14:00:00 yesterday? + * const result = isYesterday(new Date(2014, 9, 5, 14, 0)) + * //=> true + */ +function isYesterday(dirtyDate) { + (0, _index3.default)(1, arguments); + return (0, _index.default)(dirtyDate, (0, _index2.default)(Date.now(), 1)); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/isYesterday/index.js.flow b/node_modules/date-fns/isYesterday/index.js.flow new file mode 100644 index 00000000..d3f01eed --- /dev/null +++ b/node_modules/date-fns/isYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => boolean diff --git a/node_modules/date-fns/isYesterday/package.json b/node_modules/date-fns/isYesterday/package.json new file mode 100644 index 00000000..c3eccf26 --- /dev/null +++ b/node_modules/date-fns/isYesterday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/isYesterday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfDecade/index.d.ts b/node_modules/date-fns/lastDayOfDecade/index.d.ts new file mode 100644 index 00000000..05b03069 --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfDecade } from 'date-fns' +export default lastDayOfDecade diff --git a/node_modules/date-fns/lastDayOfDecade/index.js b/node_modules/date-fns/lastDayOfDecade/index.js new file mode 100644 index 00000000..a5eb1e61 --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfDecade; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfDecade + * @category Decade Helpers + * @summary Return the last day of a decade for the given date. + * + * @description + * Return the last day of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a decade + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a decade for 21 December 2012 21:12:00: + * const result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00)) + * //=> Wed Dec 31 2019 00:00:00 + */ +function lastDayOfDecade(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var decade = 9 + Math.floor(year / 10) * 10; + date.setFullYear(decade + 1, 0, 0); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfDecade/index.js.flow b/node_modules/date-fns/lastDayOfDecade/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/lastDayOfDecade/package.json b/node_modules/date-fns/lastDayOfDecade/package.json new file mode 100644 index 00000000..ca83c5c1 --- /dev/null +++ b/node_modules/date-fns/lastDayOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfDecade/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfISOWeek/index.d.ts b/node_modules/date-fns/lastDayOfISOWeek/index.d.ts new file mode 100644 index 00000000..e2533d69 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeek } from 'date-fns' +export default lastDayOfISOWeek diff --git a/node_modules/date-fns/lastDayOfISOWeek/index.js b/node_modules/date-fns/lastDayOfISOWeek/index.js new file mode 100644 index 00000000..b8419e30 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfISOWeek; + +var _index = _interopRequireDefault(require("../lastDayOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfISOWeek + * @category ISO Week Helpers + * @summary Return the last day of an ISO week for the given date. + * + * @description + * Return the last day of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of an ISO week for 2 September 2014 11:55:00: + * const result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Sep 07 2014 00:00:00 + */ +function lastDayOfISOWeek(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, { + weekStartsOn: 1 + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfISOWeek/index.js.flow b/node_modules/date-fns/lastDayOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/lastDayOfISOWeek/package.json b/node_modules/date-fns/lastDayOfISOWeek/package.json new file mode 100644 index 00000000..b781f962 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfISOWeekYear/index.d.ts b/node_modules/date-fns/lastDayOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..b30859aa --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfISOWeekYear } from 'date-fns' +export default lastDayOfISOWeekYear diff --git a/node_modules/date-fns/lastDayOfISOWeekYear/index.js b/node_modules/date-fns/lastDayOfISOWeekYear/index.js new file mode 100644 index 00000000..20aebf03 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfISOWeekYear; + +var _index = _interopRequireDefault(require("../getISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the last day of an ISO week-numbering year for the given date. + * + * @description + * Return the last day of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the end of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of an ISO week-numbering year for 2 July 2005: + * const result = lastDayOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Sun Jan 01 2006 00:00:00 + */ +function lastDayOfISOWeekYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var year = (0, _index.default)(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(year + 1, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date = (0, _index2.default)(fourthOfJanuary); + date.setDate(date.getDate() - 1); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfISOWeekYear/index.js.flow b/node_modules/date-fns/lastDayOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/lastDayOfISOWeekYear/package.json b/node_modules/date-fns/lastDayOfISOWeekYear/package.json new file mode 100644 index 00000000..a9b0bab0 --- /dev/null +++ b/node_modules/date-fns/lastDayOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfMonth/index.d.ts b/node_modules/date-fns/lastDayOfMonth/index.d.ts new file mode 100644 index 00000000..4db559b3 --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfMonth } from 'date-fns' +export default lastDayOfMonth diff --git a/node_modules/date-fns/lastDayOfMonth/index.js b/node_modules/date-fns/lastDayOfMonth/index.js new file mode 100644 index 00000000..ddd6ad1e --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfMonth + * @category Month Helpers + * @summary Return the last day of a month for the given date. + * + * @description + * Return the last day of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a month for 2 September 2014 11:55:00: + * const result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +function lastDayOfMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var month = date.getMonth(); + date.setFullYear(date.getFullYear(), month + 1, 0); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfMonth/index.js.flow b/node_modules/date-fns/lastDayOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/lastDayOfMonth/package.json b/node_modules/date-fns/lastDayOfMonth/package.json new file mode 100644 index 00000000..996ce32d --- /dev/null +++ b/node_modules/date-fns/lastDayOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfQuarter/index.d.ts b/node_modules/date-fns/lastDayOfQuarter/index.d.ts new file mode 100644 index 00000000..3387b649 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfQuarter } from 'date-fns' +export default lastDayOfQuarter diff --git a/node_modules/date-fns/lastDayOfQuarter/index.js b/node_modules/date-fns/lastDayOfQuarter/index.js new file mode 100644 index 00000000..26b7c7f7 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfQuarter; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfQuarter + * @category Quarter Helpers + * @summary Return the last day of a year quarter for the given date. + * + * @description + * Return the last day of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} + * @returns {Date} the last day of a quarter + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // The last day of a quarter for 2 September 2014 11:55:00: + * const result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 30 2014 00:00:00 + */ +function lastDayOfQuarter(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3 + 3; + date.setMonth(month, 0); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfQuarter/index.js.flow b/node_modules/date-fns/lastDayOfQuarter/index.js.flow new file mode 100644 index 00000000..364a3bb2 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/lastDayOfQuarter/package.json b/node_modules/date-fns/lastDayOfQuarter/package.json new file mode 100644 index 00000000..6d9162e0 --- /dev/null +++ b/node_modules/date-fns/lastDayOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfWeek/index.d.ts b/node_modules/date-fns/lastDayOfWeek/index.d.ts new file mode 100644 index 00000000..d29b9bf9 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfWeek } from 'date-fns' +export default lastDayOfWeek diff --git a/node_modules/date-fns/lastDayOfWeek/index.js b/node_modules/date-fns/lastDayOfWeek/index.js new file mode 100644 index 00000000..c23c1e59 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/index.js @@ -0,0 +1,64 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfWeek; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfWeek + * @category Week Helpers + * @summary Return the last day of a week for the given date. + * + * @description + * Return the last day of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the last day of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The last day of a week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sat Sep 06 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00: + * const result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ +function lastDayOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index3.default)(1, arguments); + var defaultOptions = (0, _index4.getDefaultOptions)(); + var weekStartsOn = (0, _index2.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6'); + } + + var date = (0, _index.default)(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); + date.setHours(0, 0, 0, 0); + date.setDate(date.getDate() + diff); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfWeek/index.js.flow b/node_modules/date-fns/lastDayOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/lastDayOfWeek/package.json b/node_modules/date-fns/lastDayOfWeek/package.json new file mode 100644 index 00000000..af7c024b --- /dev/null +++ b/node_modules/date-fns/lastDayOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfYear/index.d.ts b/node_modules/date-fns/lastDayOfYear/index.d.ts new file mode 100644 index 00000000..a90dc0d4 --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lastDayOfYear } from 'date-fns' +export default lastDayOfYear diff --git a/node_modules/date-fns/lastDayOfYear/index.js b/node_modules/date-fns/lastDayOfYear/index.js new file mode 100644 index 00000000..3d69bd7c --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lastDayOfYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name lastDayOfYear + * @category Year Helpers + * @summary Return the last day of a year for the given date. + * + * @description + * Return the last day of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the last day of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The last day of a year for 2 September 2014 11:55:00: + * const result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Dec 31 2014 00:00:00 + */ +function lastDayOfYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + date.setFullYear(year + 1, 0, 0); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lastDayOfYear/index.js.flow b/node_modules/date-fns/lastDayOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/lastDayOfYear/package.json b/node_modules/date-fns/lastDayOfYear/package.json new file mode 100644 index 00000000..c6f3939c --- /dev/null +++ b/node_modules/date-fns/lastDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lastDayOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/lightFormat/index.d.ts b/node_modules/date-fns/lightFormat/index.d.ts new file mode 100644 index 00000000..4aa361b5 --- /dev/null +++ b/node_modules/date-fns/lightFormat/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lightFormat } from 'date-fns' +export default lightFormat diff --git a/node_modules/date-fns/lightFormat/index.js b/node_modules/date-fns/lightFormat/index.js new file mode 100644 index 00000000..80808e91 --- /dev/null +++ b/node_modules/date-fns/lightFormat/index.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = lightFormat; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/format/lightFormatters/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index4 = _interopRequireDefault(require("../isValid/index.js")); + +var _index5 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// This RegExp consists of three parts separated by `|`: +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name lightFormat + * @category Common Helpers + * @summary Format the date. + * + * @description + * Return the formatted date string in the given format. Unlike `format`, + * `lightFormat` doesn't use locales and outputs date using the most popular tokens. + * + * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * + * Accepted patterns: + * | Unit | Pattern | Result examples | + * |---------------------------------|---------|-----------------------------------| + * | AM, PM | a..aaa | AM, PM | + * | | aaaa | a.m., p.m. | + * | | aaaaa | a, p | + * | Calendar year | y | 44, 1, 1900, 2017 | + * | | yy | 44, 01, 00, 17 | + * | | yyy | 044, 001, 000, 017 | + * | | yyyy | 0044, 0001, 1900, 2017 | + * | Month (formatting) | M | 1, 2, ..., 12 | + * | | MM | 01, 02, ..., 12 | + * | Day of month | d | 1, 2, ..., 31 | + * | | dd | 01, 02, ..., 31 | + * | Hour [1-12] | h | 1, 2, ..., 11, 12 | + * | | hh | 01, 02, ..., 11, 12 | + * | Hour [0-23] | H | 0, 1, 2, ..., 23 | + * | | HH | 00, 01, 02, ..., 23 | + * | Minute | m | 0, 1, ..., 59 | + * | | mm | 00, 01, ..., 59 | + * | Second | s | 0, 1, ..., 59 | + * | | ss | 00, 01, ..., 59 | + * | Fraction of second | S | 0, 1, ..., 9 | + * | | SS | 00, 01, ..., 99 | + * | | SSS | 000, 001, ..., 999 | + * | | SSSS | ... | + * + * @param {Date|Number} date - the original date + * @param {String} format - the string of tokens + * @returns {String} the formatted date string + * @throws {TypeError} 2 arguments required + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * const result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd') + * //=> '2014-02-11' + */ + +function lightFormat(dirtyDate, formatStr) { + (0, _index6.default)(2, arguments); + var originalDate = (0, _index.default)(dirtyDate); + + if (!(0, _index4.default)(originalDate)) { + throw new RangeError('Invalid time value'); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + // This ensures that when UTC functions will be implemented, locales will be compatible with them. + // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 + + + var timezoneOffset = (0, _index3.default)(originalDate); + var utcDate = (0, _index5.default)(originalDate, timezoneOffset); + var tokens = formatStr.match(formattingTokensRegExp); // The only case when formattingTokensRegExp doesn't match the string is when it's empty + + if (!tokens) return ''; + var result = tokens.map(function (substring) { + // Replace two single quote characters with one single quote character + if (substring === "''") { + return "'"; + } + + var firstCharacter = substring[0]; + + if (firstCharacter === "'") { + return cleanEscapedString(substring); + } + + var formatter = _index2.default[firstCharacter]; + + if (formatter) { + return formatter(utcDate, substring); + } + + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } + + return substring; + }).join(''); + return result; +} + +function cleanEscapedString(input) { + var matches = input.match(escapedStringRegExp); + + if (!matches) { + return input; + } + + return matches[1].replace(doubleQuoteRegExp, "'"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/lightFormat/index.js.flow b/node_modules/date-fns/lightFormat/index.js.flow new file mode 100644 index 00000000..818d9c4e --- /dev/null +++ b/node_modules/date-fns/lightFormat/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, format: string) => string diff --git a/node_modules/date-fns/lightFormat/package.json b/node_modules/date-fns/lightFormat/package.json new file mode 100644 index 00000000..612f5d20 --- /dev/null +++ b/node_modules/date-fns/lightFormat/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/lightFormat/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js b/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js new file mode 100644 index 00000000..ba360d1a --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildFormatLongFn/index.js @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildFormatLongFn; + +function buildFormatLongFn(args) { + return function () { + var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + // TODO: Remove String() + var width = options.width ? String(options.width) : args.defaultWidth; + var format = args.formats[width] || args.formats[args.defaultWidth]; + return format; + }; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js b/node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js new file mode 100644 index 00000000..d9c6846a --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildLocalizeFn/index.js @@ -0,0 +1,31 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildLocalizeFn; + +function buildLocalizeFn(args) { + return function (dirtyIndex, options) { + var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone'; + var valuesArray; + + if (context === 'formatting' && args.formattingValues) { + var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; + var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; + valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; + } else { + var _defaultWidth = args.defaultWidth; + + var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; + + valuesArray = args.values[_width] || args.values[_defaultWidth]; + } + + var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it! + + return valuesArray[index]; + }; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/_lib/buildMatchFn/index.js b/node_modules/date-fns/locale/_lib/buildMatchFn/index.js new file mode 100644 index 00000000..9a3f7a27 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchFn/index.js @@ -0,0 +1,57 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildMatchFn; + +function buildMatchFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var width = options.width; + var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; + var matchResult = string.match(matchPattern); + + if (!matchResult) { + return null; + } + + var matchedString = matchResult[0]; + var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; + var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }) : findKey(parsePatterns, function (pattern) { + return pattern.test(matchedString); + }); + var value; + value = args.valueCallback ? args.valueCallback(key) : key; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} + +function findKey(object, predicate) { + for (var key in object) { + if (object.hasOwnProperty(key) && predicate(object[key])) { + return key; + } + } + + return undefined; +} + +function findIndex(array, predicate) { + for (var key = 0; key < array.length; key++) { + if (predicate(array[key])) { + return key; + } + } + + return undefined; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js b/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js new file mode 100644 index 00000000..3dfdf436 --- /dev/null +++ b/node_modules/date-fns/locale/_lib/buildMatchPatternFn/index.js @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildMatchPatternFn; + +function buildMatchPatternFn(args) { + return function (string) { + var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + var matchResult = string.match(args.matchPattern); + if (!matchResult) return null; + var matchedString = matchResult[0]; + var parseResult = string.match(args.parsePattern); + if (!parseResult) return null; + var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; + value = options.valueCallback ? options.valueCallback(value) : value; + var rest = string.slice(matchedString.length); + return { + value: value, + rest: rest + }; + }; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/_lib/formatDistance/index.js b/node_modules/date-fns/locale/af/_lib/formatDistance/index.js new file mode 100644 index 00000000..83f998a4 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: "minder as 'n sekonde", + other: 'minder as {{count}} sekondes' + }, + xSeconds: { + one: '1 sekonde', + other: '{{count}} sekondes' + }, + halfAMinute: "'n halwe minuut", + lessThanXMinutes: { + one: "minder as 'n minuut", + other: 'minder as {{count}} minute' + }, + xMinutes: { + one: "'n minuut", + other: '{{count}} minute' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} ure' + }, + xHours: { + one: '1 uur', + other: '{{count}} ure' + }, + xDays: { + one: '1 dag', + other: '{{count}} dae' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weke' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weke' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maande' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maande' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer as 1 jaar', + other: 'meer as {{count}} jaar' + }, + almostXYears: { + one: 'byna 1 jaar', + other: 'byna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'oor ' + result; + } else { + return result + ' gelede'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/_lib/formatLong/index.js b/node_modules/date-fns/locale/af/_lib/formatLong/index.js new file mode 100644 index 00000000..71aa8e2e --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/_lib/formatRelative/index.js b/node_modules/date-fns/locale/af/_lib/formatRelative/index.js new file mode 100644 index 00000000..5cdf9e3b --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'verlede' eeee 'om' p", + yesterday: "'gister om' p", + today: "'vandag om' p", + tomorrow: "'môre om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/_lib/localize/index.js b/node_modules/date-fns/locale/af/_lib/localize/index.js new file mode 100644 index 00000000..e2fe38f4 --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/localize/index.js @@ -0,0 +1,146 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['vC', 'nC'], + abbreviated: ['vC', 'nC'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ste kwartaal', '2de kwartaal', '3de kwartaal', '4de kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'], + wide: ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'W', 'D', 'V', 'S'], + short: ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'], + abbreviated: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'], + wide: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + }, + abbreviated: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + }, + wide: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'middaguur', + morning: 'oggend', + afternoon: 'middag', + evening: 'laat middag', + night: 'aand' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + }, + abbreviated: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + }, + wide: { + am: 'vm', + pm: 'nm', + midnight: 'middernag', + noon: 'uur die middag', + morning: 'uur die oggend', + afternoon: 'uur die middag', + evening: 'uur die aand', + night: 'uur die aand' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 < 20) { + switch (rem100) { + case 1: + case 8: + return number + 'ste'; + + default: + return number + 'de'; + } + } + + return number + 'ste'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/_lib/match/index.js b/node_modules/date-fns/locale/af/_lib/match/index.js new file mode 100644 index 00000000..8a01caba --- /dev/null +++ b/node_modules/date-fns/locale/af/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?C\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](st|d)e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i, + wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i +}; +var parseMonthPatterns = { + narrow: [/^J/i, /^F/i, /^M/i, /^A/i, /^M/i, /^J/i, /^J/i, /^A/i, /^S/i, /^O/i, /^N/i, /^D/i], + any: [/^Jan/i, /^Feb/i, /^Mrt/i, /^Apr/i, /^Mei/i, /^Jun/i, /^Jul/i, /^Aug/i, /^Sep/i, /^Okt/i, /^Nov/i, /^Dec/i] +}; +var matchDayPatterns = { + narrow: /^[smdwv]/i, + short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i, + abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i, + wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i +}; +var parseDayPatterns = { + narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i], + any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^vm/i, + pm: /^nm/i, + midnight: /^middernag/i, + noon: /^middaguur/i, + morning: /oggend/i, + afternoon: /middag/i, + evening: /laat middag/i, + night: /aand/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/index.d.ts b/node_modules/date-fns/locale/af/index.d.ts new file mode 100644 index 00000000..fb278e61 --- /dev/null +++ b/node_modules/date-fns/locale/af/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { af } from 'date-fns/locale' +export default af diff --git a/node_modules/date-fns/locale/af/index.js b/node_modules/date-fns/locale/af/index.js new file mode 100644 index 00000000..d07987c2 --- /dev/null +++ b/node_modules/date-fns/locale/af/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Afrikaans locale. + * @language Afrikaans + * @iso-639-2 afr + * @author Marnus Weststrate [@marnusw]{@link https://github.com/marnusw} + */ +var locale = { + code: 'af', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/af/index.js.flow b/node_modules/date-fns/locale/af/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/af/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/af/package.json b/node_modules/date-fns/locale/af/package.json new file mode 100644 index 00000000..1dbe5868 --- /dev/null +++ b/node_modules/date-fns/locale/af/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/af/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance/index.js new file mode 100644 index 00000000..4ca1a14b --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatDistance/index.js @@ -0,0 +1,131 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong/index.js new file mode 100644 index 00000000..6e8e2696 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative/index.js new file mode 100644 index 00000000..f9ef08b7 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/localize/index.js b/node_modules/date-fns/locale/ar-DZ/_lib/localize/index.js new file mode 100644 index 00000000..ec862284 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ج', 'ف', 'م', 'أ', 'م', 'ج', 'ج', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['جانـ', 'فيفـ', 'مارس', 'أفريل', 'مايـ', 'جوانـ', 'جويـ', 'أوت', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/_lib/match/index.js b/node_modules/date-fns/locale/ar-DZ/_lib/match/index.js new file mode 100644 index 00000000..d244d131 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جفمأسند]/i, + abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i +}; +var parseMonthPatterns = { + narrow: [/^ج/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ج/i, /^ج/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^جان/i, /^فيف/i, /^مار/i, /^أفر/i, /^ماي/i, /^جوا/i, /^جوي/i, /^أوت/i, /^سبت/i, /^أكت/i, /^نوف/i, /^ديس/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return Number(index) + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/index.d.ts b/node_modules/date-fns/locale/ar-DZ/index.d.ts new file mode 100644 index 00000000..97f47f11 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arDZ } from 'date-fns/locale' +export default arDZ diff --git a/node_modules/date-fns/locale/ar-DZ/index.js b/node_modules/date-fns/locale/ar-DZ/index.js new file mode 100644 index 00000000..06bbb24b --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Algerian Arabic). + * @language Algerian Arabic + * @iso-639-2 ara + * @author Badreddine Boumaza [@badre429]{@link https://github.com/badre429} + * @author Ahmed ElShahat [@elshahat]{@link https://github.com/elshahat} + */ +var locale = { + code: 'ar-DZ', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-DZ/index.js.flow b/node_modules/date-fns/locale/ar-DZ/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar-DZ/package.json b/node_modules/date-fns/locale/ar-DZ/package.json new file mode 100644 index 00000000..b7a184f5 --- /dev/null +++ b/node_modules/date-fns/locale/ar-DZ/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar-DZ/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance/index.js new file mode 100644 index 00000000..2bce08a3 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatDistance/index.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من ثانيتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية', + two: 'ثانيتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نص دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقايق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة', + two: 'دقيقتين', + threeToTen: '{{count}} دقايق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'حوالي ساعة', + two: 'حوالي ساعتين', + threeToTen: 'حوالي {{count}} ساعات', + other: 'حوالي {{count}} ساعة' + }, + xHours: { + one: 'ساعة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'حوالي أسبوع', + two: 'حوالي أسبوعين', + threeToTen: 'حوالي {{count}} أسابيع', + other: 'حوالي {{count}} أسبوع' + }, + xWeeks: { + one: 'أسبوع', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'حوالي شهر', + two: 'حوالي شهرين', + threeToTen: 'حوالي {{count}} أشهر', + other: 'حوالي {{count}} شهر' + }, + xMonths: { + one: 'شهر', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'حوالي سنة', + two: 'حوالي سنتين', + threeToTen: 'حوالي {{count}} سنين', + other: 'حوالي {{count}} سنة' + }, + xYears: { + one: 'عام', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من سنة', + two: 'أكثر من سنتين', + threeToTen: 'أكثر من {{count}} سنين', + other: 'أكثر من {{count}} سنة' + }, + almostXYears: { + one: 'عام تقريبًا', + two: 'عامين تقريبًا', + threeToTen: '{{count}} أعوام تقريبًا', + other: '{{count}} عام تقريبًا' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result); + } else { + return "\u0645\u0646\u0630 ".concat(result); + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar-EG/_lib/formatLong/index.js new file mode 100644 index 00000000..d918e4ae --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'dd/MMM/y', + short: 'd/MM/y' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'الساعة' {{time}}", + long: "{{date}} 'الساعة' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative/index.js new file mode 100644 index 00000000..96fca465 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'اللي جاي الساعة' p", + yesterday: "'إمبارح الساعة' p", + today: "'النهاردة الساعة' p", + tomorrow: "'بكرة الساعة' p", + nextWeek: "eeee 'الساعة' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/_lib/localize/index.js b/node_modules/date-fns/locale/ar-EG/_lib/localize/index.js new file mode 100644 index 00000000..a04fbe31 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م', 'ب.م'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'مايو', 'يونـ', 'يولـ', 'أغسـ', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهراً', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + morning: 'في الصباح', + noon: 'ظهراً', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/_lib/match/index.js b/node_modules/date-fns/locale/ar-EG/_lib/match/index.js new file mode 100644 index 00000000..a90c4a11 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/_lib/match/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)/; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/g, + abbreviated: /^(ق.م|ب.م)/g, + wide: /^(قبل الميلاد|بعد الميلاد)/g +}; +var parseEraPatterns = { + any: [/^ق/g, /^ب/g] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/, + abbreviated: /^ر[1234]/, + wide: /^الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/], + any: [/1/, /2/, /3/, /4/] +}; +var matchMonthPatterns = { + narrow: /^(ي|ف|م|أ|س|ن|د)/, + abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ي/, /^ف/, /^م/, /^أ/, /^م/, /^ي/, /^ي/, /^أ/, /^س/, /^أ/, /^ن/, /^د/], + any: [/^ينا/, /^فبر/, /^مارس/, /^أبريل/, /^مايو/, /^يون/, /^يول/, /^أغس/, /^سبت/, /^أكت/, /^نوف/, /^ديس/] +}; +var matchDayPatterns = { + narrow: /^(ح|ن|ث|ر|خ|ج|س)/, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/ +}; +var parseDayPatterns = { + narrow: [/^ح/, /^ن/, /^ث/, /^ر/, /^خ/, /^ج/, /^س/], + any: [/أحد/, /اثنين/, /ثلاثاء/, /أربعاء/, /خميس/, /جمعة/, /سبت/] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/, + abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/, + wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/, + any: /^(ص|م|صباح|ظهر|مساء|ليل)/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /^ن/, + noon: /^ظ/, + morning: /^ص/, + afternoon: /^بعد/, + evening: /^م/, + night: /^ل/ + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/index.d.ts b/node_modules/date-fns/locale/ar-EG/index.d.ts new file mode 100644 index 00000000..0d317119 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arEG } from 'date-fns/locale' +export default arEG diff --git a/node_modules/date-fns/locale/ar-EG/index.js b/node_modules/date-fns/locale/ar-EG/index.js new file mode 100644 index 00000000..41644abd --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Egypt). + * @language Arabic + * @iso-639-2 ara + * @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13]{@link https://github.com/AbdAllahAbdElFattah13} + */ +var locale = { + code: 'ar-EG', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-EG/index.js.flow b/node_modules/date-fns/locale/ar-EG/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar-EG/package.json b/node_modules/date-fns/locale/ar-EG/package.json new file mode 100644 index 00000000..b3409927 --- /dev/null +++ b/node_modules/date-fns/locale/ar-EG/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar-EG/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance/index.js new file mode 100644 index 00000000..4ca1a14b --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatDistance/index.js @@ -0,0 +1,131 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar-MA/_lib/formatLong/index.js new file mode 100644 index 00000000..6e8e2696 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative/index.js new file mode 100644 index 00000000..f9ef08b7 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/_lib/localize/index.js b/node_modules/date-fns/locale/ar-MA/_lib/localize/index.js new file mode 100644 index 00000000..7dff95d9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'غ', 'ش', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'ماي', 'يونـ', 'يولـ', 'غشت', 'شتنـ', 'أكتـ', 'نونـ', 'دجنـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'ماي', 'يونيو', 'يوليوز', 'غشت', 'شتنبر', 'أكتوبر', 'نونبر', 'دجنبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الإثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/_lib/match/index.js b/node_modules/date-fns/locale/ar-MA/_lib/match/index.js new file mode 100644 index 00000000..cb2fa852 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^غ/i, /^ش/i, /^أ/i, /^ن/i, /^د/i], + any: [/^ين/i, /^فب/i, /^مار/i, /^أب/i, /^ماي/i, /^يون/i, /^يول/i, /^غشت/i, /^ش/i, /^أك/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الإثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^إث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return Number(index) + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/index.d.ts b/node_modules/date-fns/locale/ar-MA/index.d.ts new file mode 100644 index 00000000..b12ae41c --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arMA } from 'date-fns/locale' +export default arMA diff --git a/node_modules/date-fns/locale/ar-MA/index.js b/node_modules/date-fns/locale/ar-MA/index.js new file mode 100644 index 00000000..fd7ba1df --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Moroccan Arabic). + * @language Moroccan Arabic + * @iso-639-2 ara + * @author Achraf Rrami [@rramiachraf]{@link https://github.com/rramiachraf} + */ +var locale = { + code: 'ar-MA', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + // Monday is 1 + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-MA/index.js.flow b/node_modules/date-fns/locale/ar-MA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar-MA/package.json b/node_modules/date-fns/locale/ar-MA/package.json new file mode 100644 index 00000000..05dc2995 --- /dev/null +++ b/node_modules/date-fns/locale/ar-MA/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar-MA/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance/index.js new file mode 100644 index 00000000..e3af8511 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatDistance/index.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية واحدة', + two: 'أقل من ثانتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانتين', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتين', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريباً', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتين', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريباً', + two: 'أسبوعين تقريباً', + threeToTen: '{{count}} أسابيع تقريباً', + other: '{{count}} أسبوع تقريباً' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعين', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوع' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريباً', + threeToTen: '{{count}} أشهر تقريباً', + other: '{{count}} شهر تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهرين', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + }, + xYears: { + one: 'عام واحد', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام واحد تقريباً', + two: 'عامين تقريباً', + threeToTen: '{{count}} أعوام تقريباً', + other: '{{count}} عام تقريباً' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else if (count <= 10) { + result = tokenValue.threeToTen.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar-SA/_lib/formatLong/index.js new file mode 100644 index 00000000..6e8e2696 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'عند' {{time}}", + long: "{{date}} 'عند' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative/index.js new file mode 100644 index 00000000..f9ef08b7 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'أخر' eeee 'عند' p", + yesterday: "'أمس عند' p", + today: "'اليوم عند' p", + tomorrow: "'غداً عند' p", + nextWeek: "eeee 'عند' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/_lib/localize/index.js b/node_modules/date-fns/locale/ar-SA/_lib/localize/index.js new file mode 100644 index 00000000..944e01d2 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['ينا', 'فبر', 'مارس', 'أبريل', 'مايو', 'يونـ', 'يولـ', 'أغسـ', 'سبتـ', 'أكتـ', 'نوفـ', 'ديسـ'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنـ', 'ثلا', 'أربـ', 'خميـ', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظهر', + evening: 'مساءاً', + night: 'ليلاً' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + midnight: 'ن', + noon: 'ظ', + morning: 'في الصباح', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'في الصباح', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل' + }, + wide: { + am: 'ص', + pm: 'م', + midnight: 'نصف الليل', + noon: 'ظهر', + morning: 'صباحاً', + afternoon: 'بعد الظـهر', + evening: 'في المساء', + night: 'في الليل' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/_lib/match/index.js b/node_modules/date-fns/locale/ar-SA/_lib/match/index.js new file mode 100644 index 00000000..11f89af9 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i, + wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ر[1234]/i, + wide: /^الربع [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[يفمأمسند]/i, + abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i, + wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^ين/i, /^ف/i, /^مار/i, /^أب/i, /^ماي/i, /^يون/i, /^يول/i, /^أغ/i, /^س/i, /^أك/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/index.d.ts b/node_modules/date-fns/locale/ar-SA/index.d.ts new file mode 100644 index 00000000..e1a74a05 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arSA } from 'date-fns/locale' +export default arSA diff --git a/node_modules/date-fns/locale/ar-SA/index.js b/node_modules/date-fns/locale/ar-SA/index.js new file mode 100644 index 00000000..49221732 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Sauid Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Dhaifallah Alwadani [@dalwadani]{@link https://github.com/dalwadani} + */ +var locale = { + code: 'ar-SA', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-SA/index.js.flow b/node_modules/date-fns/locale/ar-SA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar-SA/package.json b/node_modules/date-fns/locale/ar-SA/package.json new file mode 100644 index 00000000..718a00e4 --- /dev/null +++ b/node_modules/date-fns/locale/ar-SA/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar-SA/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance/index.js new file mode 100644 index 00000000..a2a6e60f --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatDistance/index.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من زوز ثواني', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية', + two: 'زوز ثواني', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نص دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقايق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة', + two: 'دقيقتين', + threeToTen: '{{count}} دقايق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة تقريب', + two: 'ساعتين تقريب', + threeToTen: '{{count}} سوايع تقريب', + other: '{{count}} ساعة تقريب' + }, + xHours: { + one: 'ساعة', + two: 'ساعتين', + threeToTen: '{{count}} سوايع', + other: '{{count}} ساعة' + }, + xDays: { + one: 'نهار', + two: 'نهارين', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'جمعة تقريب', + two: 'جمعتين تقريب', + threeToTen: '{{count}} جماع تقريب', + other: '{{count}} جمعة تقريب' + }, + xWeeks: { + one: 'جمعة', + two: 'جمعتين', + threeToTen: '{{count}} جماع', + other: '{{count}} جمعة' + }, + aboutXMonths: { + one: 'شهر تقريب', + two: 'شهرين تقريب', + threeToTen: '{{count}} أشهرة تقريب', + other: '{{count}} شهر تقريب' + }, + xMonths: { + one: 'شهر', + two: 'شهرين', + threeToTen: '{{count}} أشهرة', + other: '{{count}} شهر' + }, + aboutXYears: { + one: 'عام تقريب', + two: 'عامين تقريب', + threeToTen: '{{count}} أعوام تقريب', + other: '{{count}} عام تقريب' + }, + xYears: { + one: 'عام', + two: 'عامين', + threeToTen: '{{count}} أعوام', + other: '{{count}} عام' + }, + overXYears: { + one: 'أكثر من عام', + two: 'أكثر من عامين', + threeToTen: 'أكثر من {{count}} أعوام', + other: 'أكثر من {{count}} عام' + }, + almostXYears: { + one: 'عام تقريب', + two: 'عامين تقريب', + threeToTen: '{{count}} أعوام تقريب', + other: '{{count}} عام تقريب' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'في ' + result; + } else { + return 'عندو ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar-TN/_lib/formatLong/index.js new file mode 100644 index 00000000..11055959 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss', + long: 'HH:mm:ss', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'مع' {{time}}", + long: "{{date}} 'مع' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative/index.js new file mode 100644 index 00000000..f75f5541 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'إلي فات مع' p", + yesterday: "'البارح مع' p", + today: "'اليوم مع' p", + tomorrow: "'غدوة مع' p", + nextWeek: "eeee 'الجمعة الجاية مع' p 'نهار'", + other: 'P' +}; + +var formatRelative = function formatRelative(token) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/_lib/localize/index.js b/node_modules/date-fns/locale/ar-TN/_lib/localize/index.js new file mode 100644 index 00000000..f8de1f18 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['د', 'ن', 'أ', 'س', 'أ', 'ج', 'ج', 'م', 'أ', 'م', 'ف', 'ج'], + abbreviated: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], + wide: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + }, + abbreviated: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + }, + wide: { + am: 'ص', + pm: 'ع', + morning: 'الصباح', + noon: 'القايلة', + afternoon: 'بعد القايلة', + evening: 'العشية', + night: 'الليل', + midnight: 'نص الليل' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + }, + abbreviated: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + }, + wide: { + am: 'ص', + pm: 'ع', + morning: 'في الصباح', + noon: 'في القايلة', + afternoon: 'بعد القايلة', + evening: 'في العشية', + night: 'في الليل', + midnight: 'نص الليل' + } +}; + +var ordinalNumber = function ordinalNumber(num) { + return String(num); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/_lib/match/index.js b/node_modules/date-fns/locale/ar-TN/_lib/match/index.js new file mode 100644 index 00000000..d0822cf8 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ +}; +var parseEraPatterns = { + any: [/قبل/, /بعد/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جفمأسند]/, + abbreviated: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ج/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ج/i, /^ج/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^جانفي/i, /^فيفري/i, /^مارس/i, /^أفريل/i, /^ماي/i, /^جوان/i, /^جويلية/i, /^أوت/i, /^سبتمبر/i, /^أكتوبر/i, /^نوفمبر/i, /^ديسمبر/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/, + any: /^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^ع/, + midnight: /نص الليل/, + noon: /قايلة/, + afternoon: /بعد القايلة/, + morning: /صباح/, + evening: /عشية/, + night: /ليل/ + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/index.d.ts b/node_modules/date-fns/locale/ar-TN/index.d.ts new file mode 100644 index 00000000..a793e323 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { arTN } from 'date-fns/locale' +export default arTN diff --git a/node_modules/date-fns/locale/ar-TN/index.js b/node_modules/date-fns/locale/ar-TN/index.js new file mode 100644 index 00000000..6a405fc4 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Tunisian Arabic). + * @language Arabic + * @iso-639-2 ara + * @author Koussay Haj Kacem [@essana3]{@link https://github.com/essana3} + */ +var locale = { + code: 'ar-TN', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar-TN/index.js.flow b/node_modules/date-fns/locale/ar-TN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar-TN/package.json b/node_modules/date-fns/locale/ar-TN/package.json new file mode 100644 index 00000000..113efcdd --- /dev/null +++ b/node_modules/date-fns/locale/ar-TN/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar-TN/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ar/_lib/formatDistance/index.js new file mode 100644 index 00000000..fb43f9e7 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatDistance/index.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'أقل من ثانية', + two: 'أقل من ثانيتين', + threeToTen: 'أقل من {{count}} ثواني', + other: 'أقل من {{count}} ثانية' + }, + xSeconds: { + one: 'ثانية واحدة', + two: 'ثانيتان', + threeToTen: '{{count}} ثواني', + other: '{{count}} ثانية' + }, + halfAMinute: 'نصف دقيقة', + lessThanXMinutes: { + one: 'أقل من دقيقة', + two: 'أقل من دقيقتين', + threeToTen: 'أقل من {{count}} دقائق', + other: 'أقل من {{count}} دقيقة' + }, + xMinutes: { + one: 'دقيقة واحدة', + two: 'دقيقتان', + threeToTen: '{{count}} دقائق', + other: '{{count}} دقيقة' + }, + aboutXHours: { + one: 'ساعة واحدة تقريباً', + two: 'ساعتين تقريبا', + threeToTen: '{{count}} ساعات تقريباً', + other: '{{count}} ساعة تقريباً' + }, + xHours: { + one: 'ساعة واحدة', + two: 'ساعتان', + threeToTen: '{{count}} ساعات', + other: '{{count}} ساعة' + }, + xDays: { + one: 'يوم واحد', + two: 'يومان', + threeToTen: '{{count}} أيام', + other: '{{count}} يوم' + }, + aboutXWeeks: { + one: 'أسبوع واحد تقريبا', + two: 'أسبوعين تقريبا', + threeToTen: '{{count}} أسابيع تقريبا', + other: '{{count}} أسبوعا تقريبا' + }, + xWeeks: { + one: 'أسبوع واحد', + two: 'أسبوعان', + threeToTen: '{{count}} أسابيع', + other: '{{count}} أسبوعا' + }, + aboutXMonths: { + one: 'شهر واحد تقريباً', + two: 'شهرين تقريبا', + threeToTen: '{{count}} أشهر تقريبا', + other: '{{count}} شهرا تقريباً' + }, + xMonths: { + one: 'شهر واحد', + two: 'شهران', + threeToTen: '{{count}} أشهر', + other: '{{count}} شهرا' + }, + aboutXYears: { + one: 'سنة واحدة تقريباً', + two: 'سنتين تقريبا', + threeToTen: '{{count}} سنوات تقريباً', + other: '{{count}} سنة تقريباً' + }, + xYears: { + one: 'سنة واحد', + two: 'سنتان', + threeToTen: '{{count}} سنوات', + other: '{{count}} سنة' + }, + overXYears: { + one: 'أكثر من سنة', + two: 'أكثر من سنتين', + threeToTen: 'أكثر من {{count}} سنوات', + other: 'أكثر من {{count}} سنة' + }, + almostXYears: { + one: 'ما يقارب سنة واحدة', + two: 'ما يقارب سنتين', + threeToTen: 'ما يقارب {{count}} سنوات', + other: 'ما يقارب {{count}} سنة' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = formatDistanceLocale[token]; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else if (count === 2) { + result = usageGroup.two; + } else if (count <= 10) { + result = usageGroup.threeToTen.replace('{{count}}', String(count)); + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'خلال ' + result; + } else { + return 'منذ ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/_lib/formatLong/index.js b/node_modules/date-fns/locale/ar/_lib/formatLong/index.js new file mode 100644 index 00000000..4c5a2be4 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE، do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss', + long: 'HH:mm:ss', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'عند الساعة' {{time}}", + long: "{{date}} 'عند الساعة' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ar/_lib/formatRelative/index.js new file mode 100644 index 00000000..5da9b61b --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'الماضي عند الساعة' p", + yesterday: "'الأمس عند الساعة' p", + today: "'اليوم عند الساعة' p", + tomorrow: "'غدا عند الساعة' p", + nextWeek: "eeee 'القادم عند الساعة' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/_lib/localize/index.js b/node_modules/date-fns/locale/ar/_lib/localize/index.js new file mode 100644 index 00000000..921b6e02 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل الميلاد', 'بعد الميلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ر1', 'ر2', 'ر3', 'ر4'], + wide: ['الربع الأول', 'الربع الثاني', 'الربع الثالث', 'الربع الرابع'] +}; +var monthValues = { + narrow: ['ي', 'ف', 'م', 'أ', 'م', 'ي', 'ي', 'أ', 'س', 'أ', 'ن', 'د'], + abbreviated: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'], + wide: ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'] +}; +var dayValues = { + narrow: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'], + short: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + abbreviated: ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'], + wide: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'] +}; +var dayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + }, + wide: { + am: 'ص', + pm: 'م', + morning: 'الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'المساء', + night: 'الليل', + midnight: 'منتصف الليل' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + }, + abbreviated: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + }, + wide: { + am: 'ص', + pm: 'م', + morning: 'في الصباح', + noon: 'الظهر', + afternoon: 'بعد الظهر', + evening: 'في المساء', + night: 'في الليل', + midnight: 'منتصف الليل' + } +}; + +var ordinalNumber = function ordinalNumber(num) { + return String(num); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/_lib/match/index.js b/node_modules/date-fns/locale/ar/_lib/match/index.js new file mode 100644 index 00000000..a4d5d605 --- /dev/null +++ b/node_modules/date-fns/locale/ar/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /[قب]/, + abbreviated: /[قب]\.م\./, + wide: /(قبل|بعد) الميلاد/ +}; +var parseEraPatterns = { + any: [/قبل/, /بعد/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /ر[1234]/, + wide: /الربع (الأول|الثاني|الثالث|الرابع)/ +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[أيفمسند]/, + abbreviated: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/, + wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/ +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^أ/i, /^م/i, /^ي/i, /^ي/i, /^أ/i, /^س/i, /^أ/i, /^ن/i, /^د/i], + any: [/^يناير/i, /^فبراير/i, /^مارس/i, /^أبريل/i, /^مايو/i, /^يونيو/i, /^يوليو/i, /^أغسطس/i, /^سبتمبر/i, /^أكتوبر/i, /^نوفمبر/i, /^ديسمبر/i] +}; +var matchDayPatterns = { + narrow: /^[حنثرخجس]/i, + short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i, + wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i +}; +var parseDayPatterns = { + narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i], + wide: [/^الأحد/i, /^الاثنين/i, /^الثلاثاء/i, /^الأربعاء/i, /^الخميس/i, /^الجمعة/i, /^السبت/i], + any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/, + any: /^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/ +}; +var parseDayPeriodPatterns = { + any: { + am: /^ص/, + pm: /^م/, + midnight: /منتصف الليل/, + noon: /الظهر/, + afternoon: /بعد الظهر/, + morning: /في الصباح/, + evening: /في المساء/, + night: /في الليل/ + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/index.d.ts b/node_modules/date-fns/locale/ar/index.d.ts new file mode 100644 index 00000000..61adf3ba --- /dev/null +++ b/node_modules/date-fns/locale/ar/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ar } from 'date-fns/locale' +export default ar diff --git a/node_modules/date-fns/locale/ar/index.js b/node_modules/date-fns/locale/ar/index.js new file mode 100644 index 00000000..c340f40d --- /dev/null +++ b/node_modules/date-fns/locale/ar/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Arabic locale (Modern Standard Arabic - Al-fussha). + * @language Modern Standard Arabic + * @iso-639-2 ara + * @author Abdallah Hassan [@AbdallahAHO]{@link https://github.com/AbdallahAHO} + * @author Koussay Haj Kacem [@essana3]{@link https://github.com/essana3} + */ +var locale = { + code: 'ar', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 6 + /* Saturday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ar/index.js.flow b/node_modules/date-fns/locale/ar/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ar/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ar/package.json b/node_modules/date-fns/locale/ar/package.json new file mode 100644 index 00000000..6aa060ad --- /dev/null +++ b/node_modules/date-fns/locale/ar/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ar/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/_lib/formatDistance/index.js b/node_modules/date-fns/locale/az/_lib/formatDistance/index.js new file mode 100644 index 00000000..3235c701 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'bir saniyədən az', + other: '{{count}} bir saniyədən az' + }, + xSeconds: { + one: '1 saniyə', + other: '{{count}} saniyə' + }, + halfAMinute: 'yarım dəqiqə', + lessThanXMinutes: { + one: 'bir dəqiqədən az', + other: '{{count}} bir dəqiqədən az' + }, + xMinutes: { + one: 'bir dəqiqə', + other: '{{count}} dəqiqə' + }, + aboutXHours: { + one: 'təxminən 1 saat', + other: 'təxminən {{count}} saat' + }, + xHours: { + one: '1 saat', + other: '{{count}} saat' + }, + xDays: { + one: '1 gün', + other: '{{count}} gün' + }, + aboutXWeeks: { + one: 'təxminən 1 həftə', + other: 'təxminən {{count}} həftə' + }, + xWeeks: { + one: '1 həftə', + other: '{{count}} həftə' + }, + aboutXMonths: { + one: 'təxminən 1 ay', + other: 'təxminən {{count}} ay' + }, + xMonths: { + one: '1 ay', + other: '{{count}} ay' + }, + aboutXYears: { + one: 'təxminən 1 il', + other: 'təxminən {{count}} il' + }, + xYears: { + one: '1 il', + other: '{{count}} il' + }, + overXYears: { + one: '1 ildən çox', + other: '{{count}} ildən çox' + }, + almostXYears: { + one: 'demək olar ki 1 il', + other: 'demək olar ki {{count}} il' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' əvvəl'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/_lib/formatLong/index.js b/node_modules/date-fns/locale/az/_lib/formatLong/index.js new file mode 100644 index 00000000..412e8d72 --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, do MMMM y 'il'", + long: "do MMMM y 'il'", + medium: "d MMM y 'il'", + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} {{time}} - 'də'", + long: "{{date}} {{time}} - 'də'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/_lib/formatRelative/index.js b/node_modules/date-fns/locale/az/_lib/formatRelative/index.js new file mode 100644 index 00000000..4de4d8db --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'sonuncu' eeee p -'də'", + yesterday: "'dünən' p -'də'", + today: "'bugün' p -'də'", + tomorrow: "'sabah' p -'də'", + nextWeek: "eeee p -'də'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/_lib/localize/index.js b/node_modules/date-fns/locale/az/_lib/localize/index.js new file mode 100644 index 00000000..08bcca7f --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/localize/index.js @@ -0,0 +1,175 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['e.ə', 'b.e'], + abbreviated: ['e.ə', 'b.e'], + wide: ['eramızdan əvvəl', 'bizim era'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1ci kvartal', '2ci kvartal', '3cü kvartal', '4cü kvartal'] +}; +var monthValues = { + narrow: ['Y', 'F', 'M', 'A', 'M', 'İ', 'İ', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'İyun', 'İyul', 'Avq', 'Sen', 'Okt', 'Noy', 'Dek'], + wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'] +}; +var dayValues = { + narrow: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + short: ['B.', 'B.e', 'Ç.a', 'Ç.', 'C.a', 'C.', 'Ş.'], + abbreviated: ['Baz', 'Baz.e', 'Çər.a', 'Çər', 'Cüm.a', 'Cüm', 'Şə'], + wide: ['Bazar', 'Bazar ertəsi', 'Çərşənbə axşamı', 'Çərşənbə', 'Cümə axşamı', 'Cümə', 'Şənbə'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gecəyarı', + noon: 'gün', + morning: 'səhər', + afternoon: 'gündüz', + evening: 'axşam', + night: 'gecə' + } +}; +var suffixes = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı' +}; + +var getSuffix = function getSuffix(number) { + if (number === 0) { + // special case for zero + return number + '-ıncı'; + } + + var a = number % 10; + var b = number % 100 - a; + var c = number >= 100 ? 100 : null; + + if (suffixes[a]) { + return suffixes[a]; + } else if (suffixes[b]) { + return suffixes[b]; + } else if (c !== null) { + return suffixes[c]; + } + + return ''; +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var suffix = getSuffix(number); + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/_lib/match/index.js b/node_modules/date-fns/locale/az/_lib/match/index.js new file mode 100644 index 00000000..0fc63f3b --- /dev/null +++ b/node_modules/date-fns/locale/az/_lib/match/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b|a)$/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i, + wide: /^(bizim eradan əvvəl|bizim era)$/i +}; +var parseEraPatterns = { + any: [/^b$/i, /^(a|c)$/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]$/i, + abbreviated: /^K[1234]$/i, + wide: /^[1234](ci)? kvartal$/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[(?-i)yfmaisond]$/i, + abbreviated: /^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i, + wide: /^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i +}; +var parseMonthPatterns = { + narrow: [/^[(?-i)y]$/i, /^[(?-i)f]$/i, /^[(?-i)m]$/i, /^[(?-i)a]$/i, /^[(?-i)m]$/i, /^[(?-i)i]$/i, /^[(?-i)i]$/i, /^[(?-i)a]$/i, /^[(?-i)s]$/i, /^[(?-i)o]$/i, /^[(?-i)n]$/i, /^[(?-i)d]$/i], + abbreviated: [/^Yan$/i, /^Fev$/i, /^Mar$/i, /^Apr$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avg$/i, /^Sen$/i, /^Okt$/i, /^Noy$/i, /^Dek$/i], + wide: [/^Yanvar$/i, /^Fevral$/i, /^Mart$/i, /^Aprel$/i, /^May$/i, /^İyun$/i, /^İyul$/i, /^Avgust$/i, /^Sentyabr$/i, /^Oktyabr$/i, /^Noyabr$/i, /^Dekabr$/i] +}; +var matchDayPatterns = { + narrow: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + short: /^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i, + abbreviated: /^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i, + wide: /^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i +}; +var parseDayPatterns = { + narrow: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i], + abbreviated: [/^Baz$/i, /^Baz\.e$/i, /^Çər\.a$/i, /^Çər$/i, /^Cüm\.a$/i, /^Cüm$/i, /^Şə$/i], + wide: [/^Bazar$/i, /^Bazar ertəsi$/i, /^Çərşənbə axşamı$/i, /^Çərşənbə$/i, /^Cümə axşamı$/i, /^Cümə$/i, /^Şənbə$/i], + any: [/^B\.$/i, /^B\.e$/i, /^Ç\.a$/i, /^Ç\.$/i, /^C\.a$/i, /^C\.$/i, /^Ş\.$/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i, + any: /^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a$/i, + pm: /^p$/i, + midnight: /^gecəyarı$/i, + noon: /^gün$/i, + morning: /səhər$/i, + afternoon: /gündüz$/i, + evening: /axşam$/i, + night: /gecə$/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'narrow' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/index.d.ts b/node_modules/date-fns/locale/az/index.d.ts new file mode 100644 index 00000000..b2b22534 --- /dev/null +++ b/node_modules/date-fns/locale/az/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { az } from 'date-fns/locale' +export default az diff --git a/node_modules/date-fns/locale/az/index.js b/node_modules/date-fns/locale/az/index.js new file mode 100644 index 00000000..c734c134 --- /dev/null +++ b/node_modules/date-fns/locale/az/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Azerbaijani locale. + * @language Azerbaijani + * @iso-639-2 aze + */ +var locale = { + code: 'az', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1, + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/az/index.js.flow b/node_modules/date-fns/locale/az/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/az/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/az/package.json b/node_modules/date-fns/locale/az/package.json new file mode 100644 index 00000000..34c9bf75 --- /dev/null +++ b/node_modules/date-fns/locale/az/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/az/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatDistance/index.js b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance/index.js new file mode 100644 index 00000000..d8af3d92 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatDistance/index.js @@ -0,0 +1,256 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'праз ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' таму'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'праз паўхвіліны'; + } else { + return 'паўхвіліны таму'; + } + } + + return 'паўхвіліны'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менш за секунду', + singularNominative: 'менш за {{count}} секунду', + singularGenitive: 'менш за {{count}} секунды', + pluralGenitive: 'менш за {{count}} секунд' + }, + future: { + one: 'менш, чым праз секунду', + singularNominative: 'менш, чым праз {{count}} секунду', + singularGenitive: 'менш, чым праз {{count}} секунды', + pluralGenitive: 'менш, чым праз {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду таму', + singularGenitive: '{{count}} секунды таму', + pluralGenitive: '{{count}} секунд таму' + }, + future: { + singularNominative: 'праз {{count}} секунду', + singularGenitive: 'праз {{count}} секунды', + pluralGenitive: 'праз {{count}} секунд' + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менш за хвіліну', + singularNominative: 'менш за {{count}} хвіліну', + singularGenitive: 'менш за {{count}} хвіліны', + pluralGenitive: 'менш за {{count}} хвілін' + }, + future: { + one: 'менш, чым праз хвіліну', + singularNominative: 'менш, чым праз {{count}} хвіліну', + singularGenitive: 'менш, чым праз {{count}} хвіліны', + pluralGenitive: 'менш, чым праз {{count}} хвілін' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвіліна', + singularGenitive: '{{count}} хвіліны', + pluralGenitive: '{{count}} хвілін' + }, + past: { + singularNominative: '{{count}} хвіліну таму', + singularGenitive: '{{count}} хвіліны таму', + pluralGenitive: '{{count}} хвілін таму' + }, + future: { + singularNominative: 'праз {{count}} хвіліну', + singularGenitive: 'праз {{count}} хвіліны', + pluralGenitive: 'праз {{count}} хвілін' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} гадзіны', + singularGenitive: 'каля {{count}} гадзін', + pluralGenitive: 'каля {{count}} гадзін' + }, + future: { + singularNominative: 'прыблізна праз {{count}} гадзіну', + singularGenitive: 'прыблізна праз {{count}} гадзіны', + pluralGenitive: 'прыблізна праз {{count}} гадзін' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} гадзіна', + singularGenitive: '{{count}} гадзіны', + pluralGenitive: '{{count}} гадзін' + }, + past: { + singularNominative: '{{count}} гадзіну таму', + singularGenitive: '{{count}} гадзіны таму', + pluralGenitive: '{{count}} гадзін таму' + }, + future: { + singularNominative: 'праз {{count}} гадзіну', + singularGenitive: 'праз {{count}} гадзіны', + pluralGenitive: 'праз {{count}} гадзін' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} дзень', + singularGenitive: '{{count}} дні', + pluralGenitive: '{{count}} дзён' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + // TODO + singularGenitive: 'каля {{count}} месяцаў', + // TODO + pluralGenitive: 'каля {{count}} месяцаў' // TODO + + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + // TODO + singularGenitive: 'прыблізна праз {{count}} месяцы', + // TODO + pluralGenitive: 'прыблізна праз {{count}} месяцаў' // TODO + + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + singularGenitive: 'каля {{count}} месяцаў', + pluralGenitive: 'каля {{count}} месяцаў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + singularGenitive: 'прыблізна праз {{count}} месяцы', + pluralGenitive: 'прыблізна праз {{count}} месяцаў' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} года', + singularGenitive: 'каля {{count}} гадоў', + pluralGenitive: 'каля {{count}} гадоў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} год', + singularGenitive: 'прыблізна праз {{count}} гады', + pluralGenitive: 'прыблізна праз {{count}} гадоў' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} гады', + pluralGenitive: '{{count}} гадоў' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больш за {{count}} год', + singularGenitive: 'больш за {{count}} гады', + pluralGenitive: 'больш за {{count}} гадоў' + }, + future: { + singularNominative: 'больш, чым праз {{count}} год', + singularGenitive: 'больш, чым праз {{count}} гады', + pluralGenitive: 'больш, чым праз {{count}} гадоў' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'амаль {{count}} год', + singularGenitive: 'амаль {{count}} гады', + pluralGenitive: 'амаль {{count}} гадоў' + }, + future: { + singularNominative: 'амаль праз {{count}} год', + singularGenitive: 'амаль праз {{count}} гады', + pluralGenitive: 'амаль праз {{count}} гадоў' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatLong/index.js b/node_modules/date-fns/locale/be-tarask/_lib/formatLong/index.js new file mode 100644 index 00000000..7efed944 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/_lib/formatRelative/index.js b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative/index.js new file mode 100644 index 00000000..db4e2e69 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/formatRelative/index.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = require("../../../../index.js"); + +var _index2 = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var accusativeWeekdays = ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацьвер', 'пятніцу', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёньня а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/_lib/localize/index.js b/node_modules/date-fns/locale/be-tarask/_lib/localize/index.js new file mode 100644 index 00000000..3f46ab80 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/localize/index.js @@ -0,0 +1,163 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['да н.э.', 'н.э.'], + abbreviated: ['да н. э.', 'н. э.'], + wide: ['да нашай эры', 'нашай эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ы кв.', '2-і кв.', '3-і кв.', '4-ы кв.'], + wide: ['1-ы квартал', '2-і квартал', '3-і квартал', '4-ы квартал'] +}; +var monthValues = { + narrow: ['С', 'Л', 'С', 'К', 'Т', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'трав.', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'сьнеж.'], + wide: ['студзень', 'люты', 'сакавік', 'красавік', 'травень', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'сьнежань'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'С', 'К', 'Т', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'трав.', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'сьнеж.'], + wide: ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'траўня', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'сьнежня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'А', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'аў', 'ср', 'чц', 'пт', 'сб'], + abbreviated: ['нядз', 'пан', 'аўт', 'сер', 'чаць', 'пят', 'суб'], + wide: ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацьвер', 'пятніца', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніца', + afternoon: 'дзень', + evening: 'вечар', + night: 'ноч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніцы', + afternoon: 'дня', + evening: 'вечара', + night: 'ночы' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + + if (unit === 'date') { + suffix = '-га'; + } else if (unit === 'hour' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-і' : '-ы'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/_lib/match/index.js b/node_modules/date-fns/locale/be-tarask/_lib/match/index.js new file mode 100644 index 00000000..fd07a95e --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^с/i, /^к/i, /^т/i, /^ч/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^с/i], + any: [/^ст/i, /^лю/i, /^са/i, /^кр/i, /^тр/i, /^ч/i, /^ліп/i, /^ж/i, /^в/i, /^ка/i, /^ліс/i, /^сн/i] +}; +var matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/index.d.ts b/node_modules/date-fns/locale/be-tarask/index.d.ts new file mode 100644 index 00000000..e04bf95c --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { beTarask } from 'date-fns/locale' +export default beTarask diff --git a/node_modules/date-fns/locale/be-tarask/index.js b/node_modules/date-fns/locale/be-tarask/index.js new file mode 100644 index 00000000..2534efe3 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Belarusian Classic locale. + * @language Belarusian Classic + * @iso-639-2 bel + * @author Ryhor Nopears [@nopears]{@link https://github.com/nopears} + */ +var locale = { + code: 'be-tarask', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be-tarask/index.js.flow b/node_modules/date-fns/locale/be-tarask/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/be-tarask/package.json b/node_modules/date-fns/locale/be-tarask/package.json new file mode 100644 index 00000000..4cbab7a2 --- /dev/null +++ b/node_modules/date-fns/locale/be-tarask/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/be-tarask/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/_lib/formatDistance/index.js b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js new file mode 100644 index 00000000..d8af3d92 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatDistance/index.js @@ -0,0 +1,256 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'праз ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' таму'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAMinute = function halfAMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'праз паўхвіліны'; + } else { + return 'паўхвіліны таму'; + } + } + + return 'паўхвіліны'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менш за секунду', + singularNominative: 'менш за {{count}} секунду', + singularGenitive: 'менш за {{count}} секунды', + pluralGenitive: 'менш за {{count}} секунд' + }, + future: { + one: 'менш, чым праз секунду', + singularNominative: 'менш, чым праз {{count}} секунду', + singularGenitive: 'менш, чым праз {{count}} секунды', + pluralGenitive: 'менш, чым праз {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду таму', + singularGenitive: '{{count}} секунды таму', + pluralGenitive: '{{count}} секунд таму' + }, + future: { + singularNominative: 'праз {{count}} секунду', + singularGenitive: 'праз {{count}} секунды', + pluralGenitive: 'праз {{count}} секунд' + } + }), + halfAMinute: halfAMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менш за хвіліну', + singularNominative: 'менш за {{count}} хвіліну', + singularGenitive: 'менш за {{count}} хвіліны', + pluralGenitive: 'менш за {{count}} хвілін' + }, + future: { + one: 'менш, чым праз хвіліну', + singularNominative: 'менш, чым праз {{count}} хвіліну', + singularGenitive: 'менш, чым праз {{count}} хвіліны', + pluralGenitive: 'менш, чым праз {{count}} хвілін' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвіліна', + singularGenitive: '{{count}} хвіліны', + pluralGenitive: '{{count}} хвілін' + }, + past: { + singularNominative: '{{count}} хвіліну таму', + singularGenitive: '{{count}} хвіліны таму', + pluralGenitive: '{{count}} хвілін таму' + }, + future: { + singularNominative: 'праз {{count}} хвіліну', + singularGenitive: 'праз {{count}} хвіліны', + pluralGenitive: 'праз {{count}} хвілін' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} гадзіны', + singularGenitive: 'каля {{count}} гадзін', + pluralGenitive: 'каля {{count}} гадзін' + }, + future: { + singularNominative: 'прыблізна праз {{count}} гадзіну', + singularGenitive: 'прыблізна праз {{count}} гадзіны', + pluralGenitive: 'прыблізна праз {{count}} гадзін' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} гадзіна', + singularGenitive: '{{count}} гадзіны', + pluralGenitive: '{{count}} гадзін' + }, + past: { + singularNominative: '{{count}} гадзіну таму', + singularGenitive: '{{count}} гадзіны таму', + pluralGenitive: '{{count}} гадзін таму' + }, + future: { + singularNominative: 'праз {{count}} гадзіну', + singularGenitive: 'праз {{count}} гадзіны', + pluralGenitive: 'праз {{count}} гадзін' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} дзень', + singularGenitive: '{{count}} дні', + pluralGenitive: '{{count}} дзён' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + // TODO + singularGenitive: 'каля {{count}} месяцаў', + // TODO + pluralGenitive: 'каля {{count}} месяцаў' // TODO + + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + // TODO + singularGenitive: 'прыблізна праз {{count}} месяцы', + // TODO + pluralGenitive: 'прыблізна праз {{count}} месяцаў' // TODO + + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} месяца', + singularGenitive: 'каля {{count}} месяцаў', + pluralGenitive: 'каля {{count}} месяцаў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} месяц', + singularGenitive: 'прыблізна праз {{count}} месяцы', + pluralGenitive: 'прыблізна праз {{count}} месяцаў' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяцы', + pluralGenitive: '{{count}} месяцаў' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'каля {{count}} года', + singularGenitive: 'каля {{count}} гадоў', + pluralGenitive: 'каля {{count}} гадоў' + }, + future: { + singularNominative: 'прыблізна праз {{count}} год', + singularGenitive: 'прыблізна праз {{count}} гады', + pluralGenitive: 'прыблізна праз {{count}} гадоў' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} гады', + pluralGenitive: '{{count}} гадоў' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больш за {{count}} год', + singularGenitive: 'больш за {{count}} гады', + pluralGenitive: 'больш за {{count}} гадоў' + }, + future: { + singularNominative: 'больш, чым праз {{count}} год', + singularGenitive: 'больш, чым праз {{count}} гады', + pluralGenitive: 'больш, чым праз {{count}} гадоў' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'амаль {{count}} год', + singularGenitive: 'амаль {{count}} гады', + pluralGenitive: 'амаль {{count}} гадоў' + }, + future: { + singularNominative: 'амаль праз {{count}} год', + singularGenitive: 'амаль праз {{count}} гады', + pluralGenitive: 'амаль праз {{count}} гадоў' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/_lib/formatLong/index.js b/node_modules/date-fns/locale/be/_lib/formatLong/index.js new file mode 100644 index 00000000..7efed944 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/_lib/formatRelative/index.js b/node_modules/date-fns/locale/be/_lib/formatRelative/index.js new file mode 100644 index 00000000..06f11ea9 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/formatRelative/index.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = require("../../../../index.js"); + +var _index2 = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var accusativeWeekdays = ['нядзелю', 'панядзелак', 'аўторак', 'сераду', 'чацвер', 'пятніцу', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у мінулую " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у мінулы " + weekday + " а' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " а' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступную " + weekday + " а' p"; + + case 1: + case 2: + case 4: + return "'у наступны " + weekday + " а' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'учора а' p", + today: "'сёння а' p", + tomorrow: "'заўтра а' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/_lib/localize/index.js b/node_modules/date-fns/locale/be/_lib/localize/index.js new file mode 100644 index 00000000..d58a5b3f --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/localize/index.js @@ -0,0 +1,163 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['да н.э.', 'н.э.'], + abbreviated: ['да н. э.', 'н. э.'], + wide: ['да нашай эры', 'нашай эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ы кв.', '2-і кв.', '3-і кв.', '4-ы кв.'], + wide: ['1-ы квартал', '2-і квартал', '3-і квартал', '4-ы квартал'] +}; +var monthValues = { + narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'май', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'], + wide: ['студзень', 'люты', 'сакавік', 'красавік', 'май', 'чэрвень', 'ліпень', 'жнівень', 'верасень', 'кастрычнік', 'лістапад', 'снежань'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'С', 'К', 'М', 'Ч', 'Л', 'Ж', 'В', 'К', 'Л', 'С'], + abbreviated: ['студз.', 'лют.', 'сак.', 'крас.', 'мая', 'чэрв.', 'ліп.', 'жн.', 'вер.', 'кастр.', 'ліст.', 'снеж.'], + wide: ['студзеня', 'лютага', 'сакавіка', 'красавіка', 'мая', 'чэрвеня', 'ліпеня', 'жніўня', 'верасня', 'кастрычніка', 'лістапада', 'снежня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'А', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'аў', 'ср', 'чц', 'пт', 'сб'], + abbreviated: ['нядз', 'пан', 'аўт', 'сер', 'чац', 'пят', 'суб'], + wide: ['нядзеля', 'панядзелак', 'аўторак', 'серада', 'чацвер', 'пятніца', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дзень', + evening: 'веч.', + night: 'ноч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніца', + afternoon: 'дзень', + evening: 'вечар', + night: 'ноч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўн.', + noon: 'поўд.', + morning: 'ран.', + afternoon: 'дня', + evening: 'веч.', + night: 'ночы' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'поўнач', + noon: 'поўдзень', + morning: 'раніцы', + afternoon: 'дня', + evening: 'вечара', + night: 'ночы' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + /** Though it's an incorrect ordinal form of a date we use it here for consistency with other similar locales (ru, uk) + * For date-month combinations should be used `d` formatter. + * Correct: `d MMMM` (4 верасня) + * Incorrect: `do MMMM` (4-га верасня) + * + * But following the consistency leads to mistakes for literal uses of `do` formatter (ordinal day of month). + * So for phrase "5th day of month" (`do дзень месяца`) + * library will produce: `5-га дзень месяца` + * but correct spelling should be: `5-ы дзень месяца` + * + * So I guess there should be a stand-alone and a formatting version of "day of month" formatters + */ + + if (unit === 'date') { + suffix = '-га'; + } else if (unit === 'hour' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? '-і' : '-ы'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/_lib/match/index.js b/node_modules/date-fns/locale/be/_lib/match/index.js new file mode 100644 index 00000000..2fd73de5 --- /dev/null +++ b/node_modules/date-fns/locale/be/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((да )?н\.?\s?э\.?)/i, + abbreviated: /^((да )?н\.?\s?э\.?)/i, + wide: /^(да нашай эры|нашай эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыі]?)? кв.?/i, + wide: /^[1234](-?[ыі]?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слкмчжв]/i, + abbreviated: /^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i, + wide: /^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^с/i, /^к/i, /^м/i, /^ч/i, /^л/i, /^ж/i, /^в/i, /^к/i, /^л/i, /^с/i], + any: [/^ст/i, /^лю/i, /^са/i, /^кр/i, /^ма/i, /^ч/i, /^ліп/i, /^ж/i, /^в/i, /^ка/i, /^ліс/i, /^сн/i] +}; +var matchDayPatterns = { + narrow: /^[нпасч]/i, + short: /^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i, + abbreviated: /^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i, + wide: /^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^а/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[ан]/i, /^а/i, /^с[ер]/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + abbreviated: /^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i, + wide: /^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^поўн/i, + noon: /^поўд/i, + morning: /^р/i, + afternoon: /^д[зн]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/index.d.ts b/node_modules/date-fns/locale/be/index.d.ts new file mode 100644 index 00000000..d3cec407 --- /dev/null +++ b/node_modules/date-fns/locale/be/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { be } from 'date-fns/locale' +export default be diff --git a/node_modules/date-fns/locale/be/index.js b/node_modules/date-fns/locale/be/index.js new file mode 100644 index 00000000..d3e484f5 --- /dev/null +++ b/node_modules/date-fns/locale/be/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Belarusian locale. + * @language Belarusian + * @iso-639-2 bel + * @author Kiryl Anokhin [@alyrik]{@link https://github.com/alyrik} + * @author Martin Wind [@arvigeus]{@link https://github.com/mawi12345} + */ +var locale = { + code: 'be', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/be/index.js.flow b/node_modules/date-fns/locale/be/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/be/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/be/package.json b/node_modules/date-fns/locale/be/package.json new file mode 100644 index 00000000..704b9727 --- /dev/null +++ b/node_modules/date-fns/locale/be/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/be/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/_lib/formatDistance/index.js b/node_modules/date-fns/locale/bg/_lib/formatDistance/index.js new file mode 100644 index 00000000..9254b4da --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'по-малко от секунда', + other: 'по-малко от {{count}} секунди' + }, + xSeconds: { + one: '1 секунда', + other: '{{count}} секунди' + }, + halfAMinute: 'половин минута', + lessThanXMinutes: { + one: 'по-малко от минута', + other: 'по-малко от {{count}} минути' + }, + xMinutes: { + one: '1 минута', + other: '{{count}} минути' + }, + aboutXHours: { + one: 'около час', + other: 'около {{count}} часа' + }, + xHours: { + one: '1 час', + other: '{{count}} часа' + }, + xDays: { + one: '1 ден', + other: '{{count}} дни' + }, + aboutXWeeks: { + one: 'около седмица', + other: 'около {{count}} седмици' + }, + xWeeks: { + one: '1 седмица', + other: '{{count}} седмици' + }, + aboutXMonths: { + one: 'около месец', + other: 'около {{count}} месеца' + }, + xMonths: { + one: '1 месец', + other: '{{count}} месеца' + }, + aboutXYears: { + one: 'около година', + other: 'около {{count}} години' + }, + xYears: { + one: '1 година', + other: '{{count}} години' + }, + overXYears: { + one: 'над година', + other: 'над {{count}} години' + }, + almostXYears: { + one: 'почти година', + other: 'почти {{count}} години' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'след ' + result; + } else { + return 'преди ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/_lib/formatLong/index.js b/node_modules/date-fns/locale/bg/_lib/formatLong/index.js new file mode 100644 index 00000000..a3b4fd08 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/_lib/formatRelative/index.js b/node_modules/date-fns/locale/bg/_lib/formatRelative/index.js new file mode 100644 index 00000000..15d08b99 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/formatRelative/index.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Adapted from the `ru` translation +var weekdays = ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота']; + +function lastWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'миналата " + weekday + " в' p"; + + case 1: + case 2: + case 4: + case 5: + return "'миналия " + weekday + " в' p"; + } +} + +function thisWeek(day) { + var weekday = weekdays[day]; + + if (day === 2 + /* Tue */ + ) { + return "'във " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function nextWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следващата " + weekday + " в' p"; + + case 1: + case 2: + case 4: + case 5: + return "'следващия " + weekday + " в' p"; + } +} + +var lastWeekFormatToken = function lastWeekFormatToken(dirtyDate, baseDate, options) { + var date = (0, _index.default)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormatToken = function nextWeekFormatToken(dirtyDate, baseDate, options) { + var date = (0, _index.default)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormatToken, + yesterday: "'вчера в' p", + today: "'днес в' p", + tomorrow: "'утре в' p", + nextWeek: nextWeekFormatToken, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/_lib/localize/index.js b/node_modules/date-fns/locale/bg/_lib/localize/index.js new file mode 100644 index 00000000..1ccd4530 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/localize/index.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['пр.н.е.', 'н.е.'], + abbreviated: ['преди н. е.', 'н. е.'], + wide: ['преди новата ера', 'новата ера'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-во тримес.', '2-ро тримес.', '3-то тримес.', '4-то тримес.'], + wide: ['1-во тримесечие', '2-ро тримесечие', '3-то тримесечие', '4-то тримесечие'] +}; +var monthValues = { + abbreviated: ['яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг', 'сеп', 'окт', 'ное', 'дек'], + wide: ['януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септември', 'октомври', 'ноември', 'декември'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['нед', 'пон', 'вто', 'сря', 'чет', 'пет', 'съб'], + wide: ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота'] +}; +var dayPeriodValues = { + wide: { + am: 'преди обяд', + pm: 'след обяд', + midnight: 'в полунощ', + noon: 'на обяд', + morning: 'сутринта', + afternoon: 'следобед', + evening: 'вечерта', + night: 'през нощта' + } +}; + +function isFeminine(unit) { + return unit === 'year' || unit === 'week' || unit === 'minute' || unit === 'second'; +} + +function isNeuter(unit) { + return unit === 'quarter'; +} + +function numberWithSuffix(number, unit, masculine, feminine, neuter) { + var suffix = isNeuter(unit) ? neuter : isFeminine(unit) ? feminine : masculine; + return number + '-' + suffix; +} + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (number === 0) { + return numberWithSuffix(0, unit, 'ев', 'ева', 'ево'); + } else if (number % 1000 === 0) { + return numberWithSuffix(number, unit, 'ен', 'на', 'но'); + } else if (number % 100 === 0) { + return numberWithSuffix(number, unit, 'тен', 'тна', 'тно'); + } + + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return numberWithSuffix(number, unit, 'ви', 'ва', 'во'); + + case 2: + return numberWithSuffix(number, unit, 'ри', 'ра', 'ро'); + + case 7: + case 8: + return numberWithSuffix(number, unit, 'ми', 'ма', 'мо'); + } + } + + return numberWithSuffix(number, unit, 'ти', 'та', 'то'); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/_lib/match/index.js b/node_modules/date-fns/locale/bg/_lib/match/index.js new file mode 100644 index 00000000..32349e56 --- /dev/null +++ b/node_modules/date-fns/locale/bg/_lib/match/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(преди новата ера|новата ера|нова ера)/i +}; +var parseEraPatterns = { + any: [/^п/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?o?)? тримес.?/i, + wide: /^[1234](-?[врт]?о?)? тримесечие/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)/i, + abbreviated: /^(нед|пон|вто|сря|чет|пет|съб)/i, + wide: /^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[ъб]/i] +}; +var matchMonthPatterns = { + abbreviated: /^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i, + wide: /^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i +}; +var parseMonthPatterns = { + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^май/i, /^юн/i, /^юл/i, /^ав/i, /^се/i, /^окт/i, /^но/i, /^де/i] +}; +var matchDayPeriodPatterns = { + any: /^(преди о|след о|в по|на о|през|веч|сут|следо)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^преди о/i, + pm: /^след о/i, + midnight: /^в пол/i, + noon: /^на об/i, + morning: /^сут/i, + afternoon: /^следо/i, + evening: /^веч/i, + night: /^през н/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/index.d.ts b/node_modules/date-fns/locale/bg/index.d.ts new file mode 100644 index 00000000..485fc594 --- /dev/null +++ b/node_modules/date-fns/locale/bg/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bg } from 'date-fns/locale' +export default bg diff --git a/node_modules/date-fns/locale/bg/index.js b/node_modules/date-fns/locale/bg/index.js new file mode 100644 index 00000000..a1391021 --- /dev/null +++ b/node_modules/date-fns/locale/bg/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Bulgarian locale. + * @language Bulgarian + * @iso-639-2 bul + * @author Nikolay Stoynov [@arvigeus]{@link https://github.com/arvigeus} + * @author Tsvetan Ovedenski [@fintara]{@link https://github.com/fintara} + */ +var locale = { + code: 'bg', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bg/index.js.flow b/node_modules/date-fns/locale/bg/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/bg/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/bg/package.json b/node_modules/date-fns/locale/bg/package.json new file mode 100644 index 00000000..1f2260a5 --- /dev/null +++ b/node_modules/date-fns/locale/bg/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/bg/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/bn/_lib/formatDistance/index.js new file mode 100644 index 00000000..7bd82cd4 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatDistance/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = require("../localize/index.js"); + +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'প্রায় ১ সেকেন্ড', + other: 'প্রায় {{count}} সেকেন্ড' + }, + xSeconds: { + one: '১ সেকেন্ড', + other: '{{count}} সেকেন্ড' + }, + halfAMinute: 'আধ মিনিট', + lessThanXMinutes: { + one: 'প্রায় ১ মিনিট', + other: 'প্রায় {{count}} মিনিট' + }, + xMinutes: { + one: '১ মিনিট', + other: '{{count}} মিনিট' + }, + aboutXHours: { + one: 'প্রায় ১ ঘন্টা', + other: 'প্রায় {{count}} ঘন্টা' + }, + xHours: { + one: '১ ঘন্টা', + other: '{{count}} ঘন্টা' + }, + xDays: { + one: '১ দিন', + other: '{{count}} দিন' + }, + aboutXWeeks: { + one: 'প্রায় ১ সপ্তাহ', + other: 'প্রায় {{count}} সপ্তাহ' + }, + xWeeks: { + one: '১ সপ্তাহ', + other: '{{count}} সপ্তাহ' + }, + aboutXMonths: { + one: 'প্রায় ১ মাস', + other: 'প্রায় {{count}} মাস' + }, + xMonths: { + one: '১ মাস', + other: '{{count}} মাস' + }, + aboutXYears: { + one: 'প্রায় ১ বছর', + other: 'প্রায় {{count}} বছর' + }, + xYears: { + one: '১ বছর', + other: '{{count}} বছর' + }, + overXYears: { + one: '১ বছরের বেশি', + other: '{{count}} বছরের বেশি' + }, + almostXYears: { + one: 'প্রায় ১ বছর', + other: 'প্রায় {{count}} বছর' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', (0, _index.numberToLocale)(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' এর মধ্যে'; + } else { + return result + ' আগে'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/_lib/formatLong/index.js b/node_modules/date-fns/locale/bn/_lib/formatLong/index.js new file mode 100644 index 00000000..74c506ff --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} {{time}} 'সময়'", + long: "{{date}} {{time}} 'সময়'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/_lib/formatRelative/index.js b/node_modules/date-fns/locale/bn/_lib/formatRelative/index.js new file mode 100644 index 00000000..93054dd0 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'গত' eeee 'সময়' p", + yesterday: "'গতকাল' 'সময়' p", + today: "'আজ' 'সময়' p", + tomorrow: "'আগামীকাল' 'সময়' p", + nextWeek: "eeee 'সময়' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/_lib/localize/index.js b/node_modules/date-fns/locale/bn/_lib/localize/index.js new file mode 100644 index 00000000..baa03910 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/localize/index.js @@ -0,0 +1,215 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +exports.numberToLocale = numberToLocale; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var numberValues = { + locale: { + '1': '১', + '2': '২', + '3': '৩', + '4': '৪', + '5': '৫', + '6': '৬', + '7': '৭', + '8': '৮', + '9': '৯', + '0': '০' + }, + number: { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0' + } +}; +var eraValues = { + narrow: ['খ্রিঃপূঃ', 'খ্রিঃ'], + abbreviated: ['খ্রিঃপূর্ব', 'খ্রিঃ'], + wide: ['খ্রিস্টপূর্ব', 'খ্রিস্টাব্দ'] +}; +var quarterValues = { + narrow: ['১', '২', '৩', '৪'], + abbreviated: ['১ত্রৈ', '২ত্রৈ', '৩ত্রৈ', '৪ত্রৈ'], + wide: ['১ম ত্রৈমাসিক', '২য় ত্রৈমাসিক', '৩য় ত্রৈমাসিক', '৪র্থ ত্রৈমাসিক'] +}; +var monthValues = { + narrow: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], + abbreviated: ['জানু', 'ফেব্রু', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'], + wide: ['জানুয়ারি', 'ফেব্রুয়ারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'] +}; +var dayValues = { + narrow: ['র', 'সো', 'ম', 'বু', 'বৃ', 'শু', 'শ'], + short: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহ', 'শুক্র', 'শনি'], + abbreviated: ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহ', 'শুক্র', 'শনি'], + wide: ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার ', 'শুক্রবার', 'শনিবার'] +}; +var dayPeriodValues = { + narrow: { + am: 'পূ', + pm: 'অপ', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + abbreviated: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + wide: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'পূ', + pm: 'অপ', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + abbreviated: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + }, + wide: { + am: 'পূর্বাহ্ন', + pm: 'অপরাহ্ন', + midnight: 'মধ্যরাত', + noon: 'মধ্যাহ্ন', + morning: 'সকাল', + afternoon: 'বিকাল', + evening: 'সন্ধ্যা', + night: 'রাত' + } +}; + +function dateOrdinalNumber(number, localeNumber) { + if (number > 18 && number <= 31) { + return localeNumber + 'শে'; + } else { + switch (number) { + case 1: + return localeNumber + 'লা'; + + case 2: + case 3: + return localeNumber + 'রা'; + + case 4: + return localeNumber + 'ঠা'; + + default: + return localeNumber + 'ই'; + } + } +} + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var localeNumber = numberToLocale(number); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'date') { + return dateOrdinalNumber(number, localeNumber); + } + + if (number > 10 || number === 0) return localeNumber + 'তম'; + var rem10 = number % 10; + + switch (rem10) { + case 2: + case 3: + return localeNumber + 'য়'; + + case 4: + return localeNumber + 'র্থ'; + + case 6: + return localeNumber + 'ষ্ঠ'; + + default: + return localeNumber + 'ম'; + } +}; // function localeToNumber(locale: string): number { +// const enNumber = locale.toString().replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { +// return numberValues.number[match as keyof typeof numberValues.number] +// }) +// return Number(enNumber) +// } + + +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/_lib/match/index.js b/node_modules/date-fns/locale/bn/_lib/match/index.js new file mode 100644 index 00000000..0f000475 --- /dev/null +++ b/node_modules/date-fns/locale/bn/_lib/match/index.js @@ -0,0 +1,115 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(খ্রিঃপূঃ|খ্রিঃ)/i, + abbreviated: /^(খ্রিঃপূর্ব|খ্রিঃ)/i, + wide: /^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i +}; +var parseEraPatterns = { + narrow: [/^খ্রিঃপূঃ/i, /^খ্রিঃ/i], + abbreviated: [/^খ্রিঃপূর্ব/i, /^খ্রিঃ/i], + wide: [/^খ্রিস্টপূর্ব/i, /^খ্রিস্টাব্দ/i] +}; +var matchQuarterPatterns = { + narrow: /^[১২৩৪]/i, + abbreviated: /^[১২৩৪]ত্রৈ/i, + wide: /^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i +}; +var parseQuarterPatterns = { + any: [/১/i, /২/i, /৩/i, /৪/i] +}; +var matchMonthPatterns = { + narrow: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + abbreviated: /^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i, + wide: /^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i +}; +var parseMonthPatterns = { + any: [/^জানু/i, /^ফেব্রু/i, /^মার্চ/i, /^এপ্রিল/i, /^মে/i, /^জুন/i, /^জুলাই/i, /^আগস্ট/i, /^সেপ্ট/i, /^অক্টো/i, /^নভে/i, /^ডিসে/i] +}; +var matchDayPatterns = { + narrow: /^(র|সো|ম|বু|বৃ|শু|শ)+/i, + short: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + abbreviated: /^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i, + wide: /^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i +}; +var parseDayPatterns = { + narrow: [/^র/i, /^সো/i, /^ম/i, /^বু/i, /^বৃ/i, /^শু/i, /^শ/i], + short: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + abbreviated: [/^রবি/i, /^সোম/i, /^মঙ্গল/i, /^বুধ/i, /^বৃহ/i, /^শুক্র/i, /^শনি/i], + wide: [/^রবিবার/i, /^সোমবার/i, /^মঙ্গলবার/i, /^বুধবার/i, /^বৃহস্পতিবার /i, /^শুক্রবার/i, /^শনিবার/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + abbreviated: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i, + wide: /^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^পূ/i, + pm: /^অপ/i, + midnight: /^মধ্যরাত/i, + noon: /^মধ্যাহ্ন/i, + morning: /সকাল/i, + afternoon: /বিকাল/i, + evening: /সন্ধ্যা/i, + night: /রাত/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/index.d.ts b/node_modules/date-fns/locale/bn/index.d.ts new file mode 100644 index 00000000..9f9b38cd --- /dev/null +++ b/node_modules/date-fns/locale/bn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bn } from 'date-fns/locale' +export default bn diff --git a/node_modules/date-fns/locale/bn/index.js b/node_modules/date-fns/locale/bn/index.js new file mode 100644 index 00000000..065368f8 --- /dev/null +++ b/node_modules/date-fns/locale/bn/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Bengali locale. + * @language Bengali + * @iso-639-2 ben + * @author Touhidur Rahman [@touhidrahman]{@link https://github.com/touhidrahman} + * @author Farhad Yasir [@nutboltu]{@link https://github.com/nutboltu} + */ +var locale = { + code: 'bn', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bn/index.js.flow b/node_modules/date-fns/locale/bn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/bn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/bn/package.json b/node_modules/date-fns/locale/bn/package.json new file mode 100644 index 00000000..f90a601f --- /dev/null +++ b/node_modules/date-fns/locale/bn/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/bn/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/_lib/formatDistance/index.js b/node_modules/date-fns/locale/bs/_lib/formatDistance/index.js new file mode 100644 index 00000000..3fffbe21 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatDistance/index.js @@ -0,0 +1,183 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 sedmicu', + withPrepositionAgo: 'oko 1 sedmicu', + withPrepositionIn: 'oko 1 sedmicu' + }, + dual: 'oko {{count}} sedmice', + other: 'oko {{count}} sedmice' + }, + xWeeks: { + one: { + standalone: '1 sedmicu', + withPrepositionAgo: '1 sedmicu', + withPrepositionIn: '1 sedmicu' + }, + dual: '{{count}} sedmice', + other: '{{count}} sedmice' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mjesec', + withPrepositionAgo: 'oko 1 mjesec', + withPrepositionIn: 'oko 1 mjesec' + }, + dual: 'oko {{count}} mjeseca', + other: 'oko {{count}} mjeseci' + }, + xMonths: { + one: { + standalone: '1 mjesec', + withPrepositionAgo: '1 mjesec', + withPrepositionIn: '1 mjesec' + }, + dual: '{{count}} mjeseca', + other: '{{count}} mjeseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/_lib/formatLong/index.js b/node_modules/date-fns/locale/bs/_lib/formatLong/index.js new file mode 100644 index 00000000..87992607 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/_lib/formatRelative/index.js b/node_modules/date-fns/locale/bs/_lib/formatRelative/index.js new file mode 100644 index 00000000..e880a241 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/formatRelative/index.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošle nedjelje u' p"; + + case 3: + return "'prošle srijede u' p"; + + case 6: + return "'prošle subote u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'sljedeće nedjelje u' p"; + + case 3: + return "'sljedeću srijedu u' p"; + + case 6: + return "'sljedeću subotu u' p"; + + default: + return "'sljedeći' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/_lib/localize/index.js b/node_modules/date-fns/locale/bs/_lib/localize/index.js new file mode 100644 index 00000000..2e8cbe47 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Prije Hrista', 'Poslije Hrista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'poslije podne', + evening: 'uveče', + night: 'noću' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'poslije podne', + evening: 'uveče', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number) + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/_lib/match/index.js b/node_modules/date-fns/locale/bs/_lib/match/index.js new file mode 100644 index 00000000..69f7b108 --- /dev/null +++ b/node_modules/date-fns/locale/bs/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/index.d.ts b/node_modules/date-fns/locale/bs/index.d.ts new file mode 100644 index 00000000..cbb00d93 --- /dev/null +++ b/node_modules/date-fns/locale/bs/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { bs } from 'date-fns/locale' +export default bs diff --git a/node_modules/date-fns/locale/bs/index.js b/node_modules/date-fns/locale/bs/index.js new file mode 100644 index 00000000..f6951c08 --- /dev/null +++ b/node_modules/date-fns/locale/bs/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Bosnian locale. + * @language Bosnian + * @iso-639-2 bos + * @author Branislav Lazić [@branislavlazic]{@link https://github.com/branislavlazic} + */ +var locale = { + code: 'bs', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/bs/index.js.flow b/node_modules/date-fns/locale/bs/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/bs/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/bs/package.json b/node_modules/date-fns/locale/bs/package.json new file mode 100644 index 00000000..34d23104 --- /dev/null +++ b/node_modules/date-fns/locale/bs/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/bs/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ca/_lib/formatDistance/index.js new file mode 100644 index 00000000..a3c424ab --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatDistance/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +/** + * Davant de les xifres que es diuen amb vocal inicial, 1 i 11, s'apostrofen els articles el i la i la preposició de igual que si estiguessin escrits amb lletres. + * l'1 de juliol ('l'u') + * l'11 de novembre ('l'onze') + * l'11a clàusula del contracte ('l'onzena') + * la contractació d'11 jugadors ('d'onze') + * l'aval d'11.000 socis ('d'onze mil') + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=apostrofaci%25F3+davant+xifres&action=Principal&method=detall_completa&numPagina=1&idHit=11236&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=11236&titol=apostrofaci%F3%20davant%20de%20xifres%20%2F%20apostrofaci%F3%20davant%20de%201%20i%2011&numeroResultat=1&clickLink=detall&tipusCerca=cerca.normes + */ +var formatDistanceLocale = { + lessThanXSeconds: { + one: "menys d'un segon", + eleven: "menys d'onze segons", + other: 'menys de {{count}} segons' + }, + xSeconds: { + one: '1 segon', + other: '{{count}} segons' + }, + halfAMinute: 'mig minut', + lessThanXMinutes: { + one: "menys d'un minut", + eleven: "menys d'onze minuts", + other: 'menys de {{count}} minuts' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minuts' + }, + aboutXHours: { + one: 'aproximadament una hora', + other: 'aproximadament {{count}} hores' + }, + xHours: { + one: '1 hora', + other: '{{count}} hores' + }, + xDays: { + one: '1 dia', + other: '{{count}} dies' + }, + aboutXWeeks: { + one: 'aproximadament una setmana', + other: 'aproximadament {{count}} setmanes' + }, + xWeeks: { + one: '1 setmana', + other: '{{count}} setmanes' + }, + aboutXMonths: { + one: 'aproximadament un mes', + other: 'aproximadament {{count}} mesos' + }, + xMonths: { + one: '1 mes', + other: '{{count}} mesos' + }, + aboutXYears: { + one: 'aproximadament un any', + other: 'aproximadament {{count}} anys' + }, + xYears: { + one: '1 any', + other: '{{count}} anys' + }, + overXYears: { + one: "més d'un any", + eleven: "més d'onze anys", + other: 'més de {{count}} anys' + }, + almostXYears: { + one: 'gairebé un any', + other: 'gairebé {{count}} anys' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 11 && tokenValue.eleven) { + result = tokenValue.eleven; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/_lib/formatLong/index.js b/node_modules/date-fns/locale/ca/_lib/formatLong/index.js new file mode 100644 index 00000000..3fd4ab28 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a les' {{time}}", + long: "{{date}} 'a les' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ca/_lib/formatRelative/index.js new file mode 100644 index 00000000..8d99370d --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/formatRelative/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'el' eeee 'passat a la' LT", + yesterday: "'ahir a la' p", + today: "'avui a la' p", + tomorrow: "'demà a la' p", + nextWeek: "eeee 'a la' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'passat a les' p", + yesterday: "'ahir a les' p", + today: "'avui a les' p", + tomorrow: "'demà a les' p", + nextWeek: "eeee 'a les' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/_lib/localize/index.js b/node_modules/date-fns/locale/ca/_lib/localize/index.js new file mode 100644 index 00000000..35c482b6 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/localize/index.js @@ -0,0 +1,196 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * General information + * Reference: https://aplicacions.llengua.gencat.cat + * Reference: https://www.uoc.edu/portal/ca/servei-linguistic/convencions/abreviacions/simbols/simbols-habituals.html + */ + +/** + * Abans de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abans+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6876&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6876&titol=abans%20de%20Crist%20(abreviatura)%20/%20abans%20de%20Crist%20(sigla)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + * Desprest de Crist: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=despr%E9s+de+crist&action=Principal&method=detall_completa&numPagina=1&idHit=6879&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=6879&titol=despr%E9s%20de%20Crist%20(sigla)%20/%20despr%E9s%20de%20Crist%20(abreviatura)&numeroResultat=1&clickLink=detall&tipusCerca=cerca.fitxes + */ +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a. de C.', 'd. de C.'], + wide: ['abans de Crist', 'després de Crist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1r trimestre', '2n trimestre', '3r trimestre', '4t trimestre'] +}; +/** + * Dins d'un text convé fer servir la forma sencera dels mesos, ja que sempre és més clar el mot sencer que l'abreviatura, encara que aquesta sigui força coneguda. + * Cal reservar, doncs, les abreviatures per a les llistes o classificacions, els gràfics, les taules o quadres estadístics, els textos publicitaris, etc. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviacions+mesos&action=Principal&method=detall_completa&numPagina=1&idHit=8402&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8402&titol=abreviatures%20dels%20mesos%20de%20l%27any&numeroResultat=5&clickLink=detall&tipusCerca=cerca.fitxes + */ + +var monthValues = { + narrow: ['GN', 'FB', 'MÇ', 'AB', 'MG', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DS'], + + /** + * Les abreviatures dels mesos de l'any es formen seguint una de les normes generals de formació d'abreviatures. + * S'escriu la primera síl·laba i les consonants de la síl·laba següent anteriors a la primera vocal. + * Els mesos de març, maig i juny no s'abreugen perquè són paraules d'una sola síl·laba. + */ + abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'], + wide: ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'] +}; +/** + * Les abreviatures dels dies de la setmana comencen totes amb la lletra d. + * Tot seguit porten la consonant següent a la i, excepte en el cas de dimarts, dimecres i diumenge, en què aquesta consonant és la m i, per tant, hi podria haver confusió. + * Per evitar-ho, s'ha substituït la m per una t (en el cas de dimarts), una c (en el cas de dimecres) i una g (en el cas de diumenge), respectivament. + * + * Seguint la norma general d'ús de les abreviatures, les dels dies de la setmana sempre porten punt final. + * Igualment, van amb la primera lletra en majúscula quan la paraula sencera també hi aniria. + * En canvi, van amb la primera lletra en minúscula quan la inicial de la paraula sencera també hi aniria. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?input_cercar=abreviatures+dies&action=Principal&method=detall_completa&numPagina=1&idHit=8387&database=FITXES_PUB&tipusFont=Fitxes%20de%20l%27Optimot&idFont=8387&titol=abreviatures%20dels%20dies%20de%20la%20setmana&numeroResultat=1&clickLink=detall&tipusCerca=cerca.tot + */ + +var dayValues = { + narrow: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + short: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + abbreviated: ['dg.', 'dl.', 'dt.', 'dm.', 'dj.', 'dv.', 'ds.'], + wide: ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'] +}; +/** + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/index.html?action=Principal&method=detall&input_cercar=parts+del+dia&numPagina=1&database=FITXES_PUB&idFont=12801&idHit=12801&tipusFont=Fitxes+de+l%27Optimot&numeroResultat=1&databases_avansada=&categories_avansada=&clickLink=detall&titol=Nom+de+les+parts+del+dia&tematica=&tipusCerca=cerca.fitxes + */ + +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'mitjanit', + noon: 'migdia', + morning: 'matí', + afternoon: 'tarda', + evening: 'vespre', + night: 'nit' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'de la mitjanit', + noon: 'del migdia', + morning: 'del matí', + afternoon: 'de la tarda', + evening: 'del vespre', + night: 'de la nit' + } +}; +/** + * Quan van en singular, els nombres ordinals es representen, en forma d’abreviatura, amb la xifra seguida de l’última lletra del mot desplegat. + * És optatiu posar punt després de la lletra. + * + * Reference: https://aplicacions.llengua.gencat.cat/llc/AppJava/pdf/abrevia.pdf#page=18 + */ + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'r'; + + case 2: + return number + 'n'; + + case 3: + return number + 'r'; + + case 4: + return number + 't'; + } + } + + return number + 'è'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/_lib/match/index.js b/node_modules/date-fns/locale/ca/_lib/match/index.js new file mode 100644 index 00000000..f4126cb9 --- /dev/null +++ b/node_modules/date-fns/locale/ca/_lib/match/index.js @@ -0,0 +1,116 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(è|r|n|r|t)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a. de C.|d. de C.)/i, + wide: /^(abans de Crist|despr[eé]s de Crist)/i +}; +var parseEraPatterns = { + narrow: [/^aC/i, /^dC/i], + abbreviated: [/^(a. de C.)/i, /^(d. de C.)/i], + wide: [/^(abans de Crist)/i, /^(despr[eé]s de Crist)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](è|r|n|r|t)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i, + abbreviated: /^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i, + wide: /^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i +}; +var parseMonthPatterns = { + narrow: [/^GN/i, /^FB/i, /^MÇ/i, /^AB/i, /^MG/i, /^JN/i, /^JL/i, /^AG/i, /^ST/i, /^OC/i, /^NV/i, /^DS/i], + abbreviated: [/^gen./i, /^febr./i, /^març/i, /^abr./i, /^maig/i, /^juny/i, /^jul./i, /^ag./i, /^set./i, /^oct./i, /^nov./i, /^des./i], + wide: [/^gener/i, /^febrer/i, /^març/i, /^abril/i, /^maig/i, /^juny/i, /^juliol/i, /^agost/i, /^setembre/i, /^octubre/i, /^novembre/i, /^desembre/i] +}; +var matchDayPatterns = { + narrow: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + short: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + abbreviated: /^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i, + wide: /^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i +}; +var parseDayPatterns = { + narrow: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + abbreviated: [/^dg./i, /^dl./i, /^dt./i, /^dm./i, /^dj./i, /^dv./i, /^ds./i], + wide: [/^diumenge/i, /^dilluns/i, /^dimarts/i, /^dimecres/i, /^dijous/i, /^divendres/i, /^disssabte/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i, + abbreviated: /^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i, + wide: /^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mitjanit/i, + noon: /^migdia/i, + morning: /matí/i, + afternoon: /tarda/i, + evening: /vespre/i, + night: /nit/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/index.d.ts b/node_modules/date-fns/locale/ca/index.d.ts new file mode 100644 index 00000000..82742f73 --- /dev/null +++ b/node_modules/date-fns/locale/ca/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ca } from 'date-fns/locale' +export default ca diff --git a/node_modules/date-fns/locale/ca/index.js b/node_modules/date-fns/locale/ca/index.js new file mode 100644 index 00000000..8a9dcb7b --- /dev/null +++ b/node_modules/date-fns/locale/ca/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Catalan locale. + * @language Catalan + * @iso-639-2 cat + * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} + * @author Alex Vizcaino [@avizcaino]{@link https://github.com/avizcaino} + */ +var locale = { + code: 'ca', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; // throw new Error('ca locale is currently unavailable. Please check the progress of converting this locale to v2.0.0 in this issue on Github: TBA') + +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ca/index.js.flow b/node_modules/date-fns/locale/ca/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ca/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ca/package.json b/node_modules/date-fns/locale/ca/package.json new file mode 100644 index 00000000..4a0c7323 --- /dev/null +++ b/node_modules/date-fns/locale/ca/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ca/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/_lib/formatDistance/index.js b/node_modules/date-fns/locale/cs/_lib/formatDistance/index.js new file mode 100644 index 00000000..17231f04 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatDistance/index.js @@ -0,0 +1,305 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'méně než sekunda', + past: 'před méně než sekundou', + future: 'za méně než sekundu' + }, + few: { + regular: 'méně než {{count}} sekundy', + past: 'před méně než {{count}} sekundami', + future: 'za méně než {{count}} sekundy' + }, + many: { + regular: 'méně než {{count}} sekund', + past: 'před méně než {{count}} sekundami', + future: 'za méně než {{count}} sekund' + } + }, + xSeconds: { + one: { + regular: 'sekunda', + past: 'před sekundou', + future: 'za sekundu' + }, + few: { + regular: '{{count}} sekundy', + past: 'před {{count}} sekundami', + future: 'za {{count}} sekundy' + }, + many: { + regular: '{{count}} sekund', + past: 'před {{count}} sekundami', + future: 'za {{count}} sekund' + } + }, + halfAMinute: { + type: 'other', + other: { + regular: 'půl minuty', + past: 'před půl minutou', + future: 'za půl minuty' + } + }, + lessThanXMinutes: { + one: { + regular: 'méně než minuta', + past: 'před méně než minutou', + future: 'za méně než minutu' + }, + few: { + regular: 'méně než {{count}} minuty', + past: 'před méně než {{count}} minutami', + future: 'za méně než {{count}} minuty' + }, + many: { + regular: 'méně než {{count}} minut', + past: 'před méně než {{count}} minutami', + future: 'za méně než {{count}} minut' + } + }, + xMinutes: { + one: { + regular: 'minuta', + past: 'před minutou', + future: 'za minutu' + }, + few: { + regular: '{{count}} minuty', + past: 'před {{count}} minutami', + future: 'za {{count}} minuty' + }, + many: { + regular: '{{count}} minut', + past: 'před {{count}} minutami', + future: 'za {{count}} minut' + } + }, + aboutXHours: { + one: { + regular: 'přibližně hodina', + past: 'přibližně před hodinou', + future: 'přibližně za hodinu' + }, + few: { + regular: 'přibližně {{count}} hodiny', + past: 'přibližně před {{count}} hodinami', + future: 'přibližně za {{count}} hodiny' + }, + many: { + regular: 'přibližně {{count}} hodin', + past: 'přibližně před {{count}} hodinami', + future: 'přibližně za {{count}} hodin' + } + }, + xHours: { + one: { + regular: 'hodina', + past: 'před hodinou', + future: 'za hodinu' + }, + few: { + regular: '{{count}} hodiny', + past: 'před {{count}} hodinami', + future: 'za {{count}} hodiny' + }, + many: { + regular: '{{count}} hodin', + past: 'před {{count}} hodinami', + future: 'za {{count}} hodin' + } + }, + xDays: { + one: { + regular: 'den', + past: 'před dnem', + future: 'za den' + }, + few: { + regular: '{{count}} dny', + past: 'před {{count}} dny', + future: 'za {{count}} dny' + }, + many: { + regular: '{{count}} dní', + past: 'před {{count}} dny', + future: 'za {{count}} dní' + } + }, + aboutXWeeks: { + one: { + regular: 'přibližně týden', + past: 'přibližně před týdnem', + future: 'přibližně za týden' + }, + few: { + regular: 'přibližně {{count}} týdny', + past: 'přibližně před {{count}} týdny', + future: 'přibližně za {{count}} týdny' + }, + many: { + regular: 'přibližně {{count}} týdnů', + past: 'přibližně před {{count}} týdny', + future: 'přibližně za {{count}} týdnů' + } + }, + xWeeks: { + one: { + regular: 'týden', + past: 'před týdnem', + future: 'za týden' + }, + few: { + regular: '{{count}} týdny', + past: 'před {{count}} týdny', + future: 'za {{count}} týdny' + }, + many: { + regular: '{{count}} týdnů', + past: 'před {{count}} týdny', + future: 'za {{count}} týdnů' + } + }, + aboutXMonths: { + one: { + regular: 'přibližně měsíc', + past: 'přibližně před měsícem', + future: 'přibližně za měsíc' + }, + few: { + regular: 'přibližně {{count}} měsíce', + past: 'přibližně před {{count}} měsíci', + future: 'přibližně za {{count}} měsíce' + }, + many: { + regular: 'přibližně {{count}} měsíců', + past: 'přibližně před {{count}} měsíci', + future: 'přibližně za {{count}} měsíců' + } + }, + xMonths: { + one: { + regular: 'měsíc', + past: 'před měsícem', + future: 'za měsíc' + }, + few: { + regular: '{{count}} měsíce', + past: 'před {{count}} měsíci', + future: 'za {{count}} měsíce' + }, + many: { + regular: '{{count}} měsíců', + past: 'před {{count}} měsíci', + future: 'za {{count}} měsíců' + } + }, + aboutXYears: { + one: { + regular: 'přibližně rok', + past: 'přibližně před rokem', + future: 'přibližně za rok' + }, + few: { + regular: 'přibližně {{count}} roky', + past: 'přibližně před {{count}} roky', + future: 'přibližně za {{count}} roky' + }, + many: { + regular: 'přibližně {{count}} roků', + past: 'přibližně před {{count}} roky', + future: 'přibližně za {{count}} roků' + } + }, + xYears: { + one: { + regular: 'rok', + past: 'před rokem', + future: 'za rok' + }, + few: { + regular: '{{count}} roky', + past: 'před {{count}} roky', + future: 'za {{count}} roky' + }, + many: { + regular: '{{count}} roků', + past: 'před {{count}} roky', + future: 'za {{count}} roků' + } + }, + overXYears: { + one: { + regular: 'více než rok', + past: 'před více než rokem', + future: 'za více než rok' + }, + few: { + regular: 'více než {{count}} roky', + past: 'před více než {{count}} roky', + future: 'za více než {{count}} roky' + }, + many: { + regular: 'více než {{count}} roků', + past: 'před více než {{count}} roky', + future: 'za více než {{count}} roků' + } + }, + almostXYears: { + one: { + regular: 'skoro rok', + past: 'skoro před rokem', + future: 'skoro za rok' + }, + few: { + regular: 'skoro {{count}} roky', + past: 'skoro před {{count}} roky', + future: 'skoro za {{count}} roky' + }, + many: { + regular: 'skoro {{count}} roků', + past: 'skoro před {{count}} roky', + future: 'skoro za {{count}} roků' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var pluralResult; + var tokenValue = formatDistanceLocale[token]; // cs pluralization + + if (tokenValue.type === 'other') { + pluralResult = tokenValue.other; + } else if (count === 1) { + pluralResult = tokenValue.one; + } else if (count > 1 && count < 5) { + pluralResult = tokenValue.few; + } else { + pluralResult = tokenValue.many; + } // times + + + var suffixExist = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var comparison = options === null || options === void 0 ? void 0 : options.comparison; + var timeResult; + + if (suffixExist && comparison === -1) { + timeResult = pluralResult.past; + } else if (suffixExist && comparison === 1) { + timeResult = pluralResult.future; + } else { + timeResult = pluralResult.regular; + } + + return timeResult.replace('{{count}}', String(count)); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/_lib/formatLong/index.js b/node_modules/date-fns/locale/cs/_lib/formatLong/index.js new file mode 100644 index 00000000..34ac6e05 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM yyyy', + long: 'd. MMMM yyyy', + medium: 'd. M. yyyy', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'v' {{time}}", + long: "{{date}} 'v' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/_lib/formatRelative/index.js b/node_modules/date-fns/locale/cs/_lib/formatRelative/index.js new file mode 100644 index 00000000..926dcac6 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var accusativeWeekdays = ['neděli', 'pondělí', 'úterý', 'středu', 'čtvrtek', 'pátek', 'sobotu']; +var formatRelativeLocale = { + lastWeek: "'poslední' eeee 've' p", + yesterday: "'včera v' p", + today: "'dnes v' p", + tomorrow: "'zítra v' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + return "'v " + accusativeWeekdays[day] + " o' p"; + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/_lib/localize/index.js b/node_modules/date-fns/locale/cs/_lib/localize/index.js new file mode 100644 index 00000000..88a5883f --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['př. n. l.', 'n. l.'], + abbreviated: ['př. n. l.', 'n. l.'], + wide: ['před naším letopočtem', 'našeho letopočtu'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí'], + wide: ['1. čtvrtletí', '2. čtvrtletí', '3. čtvrtletí', '4. čtvrtletí'] +}; +var monthValues = { + narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'], + abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'], + wide: ['leden', 'únor', 'březen', 'duben', 'květen', 'červen', 'červenec', 'srpen', 'září', 'říjen', 'listopad', 'prosinec'] +}; +var formattingMonthValues = { + narrow: ['L', 'Ú', 'B', 'D', 'K', 'Č', 'Č', 'S', 'Z', 'Ř', 'L', 'P'], + abbreviated: ['led', 'úno', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro'], + wide: ['ledna', 'února', 'března', 'dubna', 'května', 'června', 'července', 'srpna', 'září', 'října', 'listopadu', 'prosince'] +}; +var dayValues = { + narrow: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + short: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], + abbreviated: ['ned', 'pon', 'úte', 'stř', 'čtv', 'pát', 'sob'], + wide: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + abbreviated: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'dopoledne', + pm: 'odpoledne', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + abbreviated: { + am: 'dop.', + pm: 'odp.', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'dopoledne', + pm: 'odpoledne', + midnight: 'půlnoc', + noon: 'poledne', + morning: 'ráno', + afternoon: 'odpoledne', + evening: 'večer', + night: 'noc' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/_lib/match/index.js b/node_modules/date-fns/locale/cs/_lib/match/index.js new file mode 100644 index 00000000..6e0c7b88 --- /dev/null +++ b/node_modules/date-fns/locale/cs/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i +}; +var parseEraPatterns = { + any: [/^p[řr]/i, /^(po|n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\. [čc]tvrtlet[íi]/i, + wide: /^[1234]\. [čc]tvrtlet[íi]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[lúubdkčcszřrlp]/i, + abbreviated: /^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i, + wide: /^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i +}; +var parseMonthPatterns = { + narrow: [/^l/i, /^[úu]/i, /^b/i, /^d/i, /^k/i, /^[čc]/i, /^[čc]/i, /^s/i, /^z/i, /^[řr]/i, /^l/i, /^p/i], + any: [/^led/i, /^[úu]n/i, /^b[řr]e/i, /^dub/i, /^kv[ěe]/i, /^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i, /^[čc]vc|[čc]erven(ec|ce)/i, /^srp/i, /^z[áa][řr]/i, /^[řr][íi]j/i, /^lis/i, /^pro/i] +}; +var matchDayPatterns = { + narrow: /^[npuúsčps]/i, + short: /^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i, + abbreviated: /^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i, + wide: /^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^[úu]/i, /^s/i, /^[čc]/i, /^p/i, /^s/i], + any: [/^ne/i, /^po/i, /^[úu]t/i, /^st/i, /^[čc]t/i, /^p[áa]/i, /^so/i] +}; +var matchDayPeriodPatterns = { + any: /^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^dop/i, + pm: /^odp/i, + midnight: /^p[ůu]lnoc/i, + noon: /^poledne/i, + morning: /r[áa]no/i, + afternoon: /odpoledne/i, + evening: /ve[čc]er/i, + night: /noc/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/index.d.ts b/node_modules/date-fns/locale/cs/index.d.ts new file mode 100644 index 00000000..a17dd220 --- /dev/null +++ b/node_modules/date-fns/locale/cs/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { cs } from 'date-fns/locale' +export default cs diff --git a/node_modules/date-fns/locale/cs/index.js b/node_modules/date-fns/locale/cs/index.js new file mode 100644 index 00000000..6b150b3c --- /dev/null +++ b/node_modules/date-fns/locale/cs/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Czech locale. + * @language Czech + * @iso-639-2 ces + * @author David Rus [@davidrus]{@link https://github.com/davidrus} + * @author Pavel Hrách [@SilenY]{@link https://github.com/SilenY} + * @author Jozef Bíroš [@JozefBiros]{@link https://github.com/JozefBiros} + */ +var locale = { + code: 'cs', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cs/index.js.flow b/node_modules/date-fns/locale/cs/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/cs/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/cs/package.json b/node_modules/date-fns/locale/cs/package.json new file mode 100644 index 00000000..3a20ada8 --- /dev/null +++ b/node_modules/date-fns/locale/cs/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/cs/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/_lib/formatDistance/index.js b/node_modules/date-fns/locale/cy/_lib/formatDistance/index.js new file mode 100644 index 00000000..a130dd60 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatDistance/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'llai na eiliad', + other: 'llai na {{count}} eiliad' + }, + xSeconds: { + one: '1 eiliad', + other: '{{count}} eiliad' + }, + halfAMinute: 'hanner munud', + lessThanXMinutes: { + one: 'llai na munud', + two: 'llai na 2 funud', + other: 'llai na {{count}} munud' + }, + xMinutes: { + one: '1 munud', + two: '2 funud', + other: '{{count}} munud' + }, + aboutXHours: { + one: 'tua 1 awr', + other: 'tua {{count}} awr' + }, + xHours: { + one: '1 awr', + other: '{{count}} awr' + }, + xDays: { + one: '1 diwrnod', + two: '2 ddiwrnod', + other: '{{count}} diwrnod' + }, + aboutXWeeks: { + one: 'tua 1 wythnos', + two: 'tua pythefnos', + other: 'tua {{count}} wythnos' + }, + xWeeks: { + one: '1 wythnos', + two: 'pythefnos', + other: '{{count}} wythnos' + }, + aboutXMonths: { + one: 'tua 1 mis', + two: 'tua 2 fis', + other: 'tua {{count}} mis' + }, + xMonths: { + one: '1 mis', + two: '2 fis', + other: '{{count}} mis' + }, + aboutXYears: { + one: 'tua 1 flwyddyn', + two: 'tua 2 flynedd', + other: 'tua {{count}} mlynedd' + }, + xYears: { + one: '1 flwyddyn', + two: '2 flynedd', + other: '{{count}} mlynedd' + }, + overXYears: { + one: 'dros 1 flwyddyn', + two: 'dros 2 flynedd', + other: 'dros {{count}} mlynedd' + }, + almostXYears: { + one: 'bron 1 flwyddyn', + two: 'bron 2 flynedd', + other: 'bron {{count}} mlynedd' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'mewn ' + result; + } else { + return result + ' yn ôl'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/_lib/formatLong/index.js b/node_modules/date-fns/locale/cy/_lib/formatLong/index.js new file mode 100644 index 00000000..41487477 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'am' {{time}}", + long: "{{date}} 'am' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/_lib/formatRelative/index.js b/node_modules/date-fns/locale/cy/_lib/formatRelative/index.js new file mode 100644 index 00000000..6b776ac1 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'diwethaf am' p", + yesterday: "'ddoe am' p", + today: "'heddiw am' p", + tomorrow: "'yfory am' p", + nextWeek: "eeee 'am' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/_lib/localize/index.js b/node_modules/date-fns/locale/cy/_lib/localize/index.js new file mode 100644 index 00000000..69bd4b89 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/localize/index.js @@ -0,0 +1,178 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['C', 'O'], + abbreviated: ['CC', 'OC'], + wide: ['Cyn Crist', 'Ar ôl Crist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Ch1', 'Ch2', 'Ch3', 'Ch4'], + wide: ['Chwarter 1af', '2ail chwarter', '3ydd chwarter', '4ydd chwarter'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['I', 'Ch', 'Ma', 'E', 'Mi', 'Me', 'G', 'A', 'Md', 'H', 'T', 'Rh'], + abbreviated: ['Ion', 'Chwe', 'Maw', 'Ebr', 'Mai', 'Meh', 'Gor', 'Aws', 'Med', 'Hyd', 'Tach', 'Rhag'], + wide: ['Ionawr', 'Chwefror', 'Mawrth', 'Ebrill', 'Mai', 'Mehefin', 'Gorffennaf', 'Awst', 'Medi', 'Hydref', 'Tachwedd', 'Rhagfyr'] +}; +var dayValues = { + narrow: ['S', 'Ll', 'M', 'M', 'I', 'G', 'S'], + short: ['Su', 'Ll', 'Ma', 'Me', 'Ia', 'Gw', 'Sa'], + abbreviated: ['Sul', 'Llun', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], + wide: ['dydd Sul', 'dydd Llun', 'dydd Mawrth', 'dydd Mercher', 'dydd Iau', 'dydd Gwener', 'dydd Sadwrn'] +}; +var dayPeriodValues = { + narrow: { + am: 'b', + pm: 'h', + midnight: 'hn', + noon: 'hd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + }, + abbreviated: { + am: 'yb', + pm: 'yh', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + }, + wide: { + am: 'y.b.', + pm: 'y.h.', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'bore', + afternoon: 'prynhawn', + evening: "gyda'r nos", + night: 'nos' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'b', + pm: 'h', + midnight: 'hn', + noon: 'hd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + }, + abbreviated: { + am: 'yb', + pm: 'yh', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + }, + wide: { + am: 'y.b.', + pm: 'y.h.', + midnight: 'hanner nos', + noon: 'hanner dydd', + morning: 'yn y bore', + afternoon: 'yn y prynhawn', + evening: "gyda'r nos", + night: 'yn y nos' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + + if (number < 20) { + switch (number) { + case 0: + return number + 'fed'; + + case 1: + return number + 'af'; + + case 2: + return number + 'ail'; + + case 3: + case 4: + return number + 'ydd'; + + case 5: + case 6: + return number + 'ed'; + + case 7: + case 8: + case 9: + case 10: + case 12: + case 15: + case 18: + return number + 'fed'; + + case 11: + case 13: + case 14: + case 16: + case 17: + case 19: + return number + 'eg'; + } + } else if (number >= 50 && number <= 60 || number === 80 || number >= 100) { + return number + 'fed'; + } + + return number + 'ain'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/_lib/match/index.js b/node_modules/date-fns/locale/cy/_lib/match/index.js new file mode 100644 index 00000000..a62a6507 --- /dev/null +++ b/node_modules/date-fns/locale/cy/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(c|o)/i, + abbreviated: /^(c\.?\s?c\.?|o\.?\s?c\.?)/i, + wide: /^(cyn christ|ar ôl crist|ar ol crist)/i +}; +var parseEraPatterns = { + wide: [/^c/i, /^(ar ôl crist|ar ol crist)/i], + any: [/^c/i, /^o/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ch[1234]/i, + wide: /^(chwarter 1af)|([234](ail|ydd)? chwarter)/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(i|ch|m|e|g|a|h|t|rh)/i, + abbreviated: /^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i, + wide: /^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i +}; +var parseMonthPatterns = { + narrow: [/^i/i, /^ch/i, /^m/i, /^e/i, /^m/i, /^m/i, /^g/i, /^a/i, /^m/i, /^h/i, /^t/i, /^rh/i], + any: [/^io/i, /^ch/i, /^maw/i, /^e/i, /^mai/i, /^meh/i, /^g/i, /^a/i, /^med/i, /^h/i, /^t/i, /^rh/i] +}; +var matchDayPatterns = { + narrow: /^(s|ll|m|i|g)/i, + short: /^(su|ll|ma|me|ia|gw|sa)/i, + abbreviated: /^(sul|llun|maw|mer|iau|gwe|sad)/i, + wide: /^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^ll/i, /^m/i, /^m/i, /^i/i, /^g/i, /^s/i], + wide: [/^dydd su/i, /^dydd ll/i, /^dydd ma/i, /^dydd me/i, /^dydd i/i, /^dydd g/i, /^dydd sa/i], + any: [/^su/i, /^ll/i, /^ma/i, /^me/i, /^i/i, /^g/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i, + any: /^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^b|(y\.?\s?b\.?)/i, + pm: /^h|(y\.?\s?h\.?)|(yr hwyr)/i, + midnight: /^hn|hanner nos/i, + noon: /^hd|hanner dydd/i, + morning: /bore/i, + afternoon: /prynhawn/i, + evening: /^gyda'r nos$/i, + night: /blah/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/index.d.ts b/node_modules/date-fns/locale/cy/index.d.ts new file mode 100644 index 00000000..8c1286be --- /dev/null +++ b/node_modules/date-fns/locale/cy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { cy } from 'date-fns/locale' +export default cy diff --git a/node_modules/date-fns/locale/cy/index.js b/node_modules/date-fns/locale/cy/index.js new file mode 100644 index 00000000..5f649c26 --- /dev/null +++ b/node_modules/date-fns/locale/cy/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Welsh locale. + * @language Welsh + * @iso-639-2 cym + * @author Elwyn Malethan [@elmomalmo]{@link https://github.com/elmomalmo} + */ +var locale = { + code: 'cy', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/cy/index.js.flow b/node_modules/date-fns/locale/cy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/cy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/cy/package.json b/node_modules/date-fns/locale/cy/package.json new file mode 100644 index 00000000..c1c5ddf1 --- /dev/null +++ b/node_modules/date-fns/locale/cy/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/cy/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/_lib/formatDistance/index.js b/node_modules/date-fns/locale/da/_lib/formatDistance/index.js new file mode 100644 index 00000000..2c0ad3cc --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre end ét sekund', + other: 'mindre end {{count}} sekunder' + }, + xSeconds: { + one: '1 sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'ét halvt minut', + lessThanXMinutes: { + one: 'mindre end ét minut', + other: 'mindre end {{count}} minutter' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minutter' + }, + aboutXHours: { + one: 'cirka 1 time', + other: 'cirka {{count}} timer' + }, + xHours: { + one: '1 time', + other: '{{count}} timer' + }, + xDays: { + one: '1 dag', + other: '{{count}} dage' + }, + aboutXWeeks: { + one: 'cirka 1 uge', + other: 'cirka {{count}} uger' + }, + xWeeks: { + one: '1 uge', + other: '{{count}} uger' + }, + aboutXMonths: { + one: 'cirka 1 måned', + other: 'cirka {{count}} måneder' + }, + xMonths: { + one: '1 måned', + other: '{{count}} måneder' + }, + aboutXYears: { + one: 'cirka 1 år', + other: 'cirka {{count}} år' + }, + xYears: { + one: '1 år', + other: '{{count}} år' + }, + overXYears: { + one: 'over 1 år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'næsten 1 år', + other: 'næsten {{count}} år' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/_lib/formatLong/index.js b/node_modules/date-fns/locale/da/_lib/formatLong/index.js new file mode 100644 index 00000000..a04800c9 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE 'den' d. MMMM y", + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl'. {{time}}", + long: "{{date}} 'kl'. {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/_lib/formatRelative/index.js b/node_modules/date-fns/locale/da/_lib/formatRelative/index.js new file mode 100644 index 00000000..5bf025f7 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'sidste' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "'på' eeee 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/_lib/localize/index.js b/node_modules/date-fns/locale/da/_lib/localize/index.js new file mode 100644 index 00000000..5f348334 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/localize/index.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['fvt', 'vt'], + abbreviated: ['f.v.t.', 'v.t.'], + wide: ['før vesterlandsk tidsregning', 'vesterlandsk tidsregning'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. kvt.', '2. kvt.', '3. kvt.', '4. kvt.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'] +}; // Note that 'Days - abbreviated - Formatting' has periods at the end. +// https://www.unicode.org/cldr/charts/32/summary/da.html#1760 +// This makes grammatical sense in danish, as most abbreviations have periods. + +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], + abbreviated: ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'], + wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnat', + noon: 'middag', + morning: 'morgen', + afternoon: 'eftermiddag', + evening: 'aften', + night: 'nat' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnat', + noon: 'middag', + morning: 'om morgenen', + afternoon: 'om eftermiddagen', + evening: 'om aftenen', + night: 'om natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/_lib/match/index.js b/node_modules/date-fns/locale/da/_lib/match/index.js new file mode 100644 index 00000000..0b66c3e2 --- /dev/null +++ b/node_modules/date-fns/locale/da/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(fKr|fvt|eKr|vt)/i, + abbreviated: /^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i, + wide: /^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^(v|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]. kvt\./i, + wide: /^[1234]\.? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^o/i, /^t/i, /^f/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i, + any: /^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /midnat/i, + noon: /middag/i, + morning: /morgen/i, + afternoon: /eftermiddag/i, + evening: /aften/i, + night: /nat/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/index.d.ts b/node_modules/date-fns/locale/da/index.d.ts new file mode 100644 index 00000000..1cd188a3 --- /dev/null +++ b/node_modules/date-fns/locale/da/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { da } from 'date-fns/locale' +export default da diff --git a/node_modules/date-fns/locale/da/index.js b/node_modules/date-fns/locale/da/index.js new file mode 100644 index 00000000..667194ce --- /dev/null +++ b/node_modules/date-fns/locale/da/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Danish locale. + * @language Danish + * @iso-639-2 dan + * @author Mathias Wøbbe [@MathiasKandelborg]{@link https://github.com/MathiasKandelborg} + * @author Anders B. Hansen [@Andersbiha]{@link https://github.com/Andersbiha} + * @author [@kgram]{@link https://github.com/kgram} + * @author [@stefanbugge]{@link https://github.com/stefanbugge} + */ +var locale = { + code: 'da', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/da/index.js.flow b/node_modules/date-fns/locale/da/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/da/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/da/package.json b/node_modules/date-fns/locale/da/package.json new file mode 100644 index 00000000..b6cbfe8d --- /dev/null +++ b/node_modules/date-fns/locale/da/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/da/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/de-AT/_lib/localize/index.js b/node_modules/date-fns/locale/de-AT/_lib/localize/index.js new file mode 100644 index 00000000..d010b659 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/_lib/localize/index.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['vor Christus', 'nach Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; // Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jän', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Jänner', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; // https://st.unicode.org/cldr-apps/v#/de_AT/Gregorian/ + +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: ['Jän.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'], + wide: monthValues.wide +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] +}; // https://www.unicode.org/cldr/charts/32/summary/de.html#1881 + +var dayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachm.', + evening: 'Abend', + night: 'Nacht' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachm.', + evening: 'abends', + night: 'nachts' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de-AT/index.d.ts b/node_modules/date-fns/locale/de-AT/index.d.ts new file mode 100644 index 00000000..a7d66801 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { deAT } from 'date-fns/locale' +export default deAT diff --git a/node_modules/date-fns/locale/de-AT/index.js b/node_modules/date-fns/locale/de-AT/index.js new file mode 100644 index 00000000..2b4d16f2 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../de/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../de/_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("../de/_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("../de/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/localize/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// difference to 'de' locale + +/** + * @type {Locale} + * @category Locales + * @summary German locale (Austria). + * @language German + * @iso-639-2 deu + * @author Christoph Tobias Stenglein [@cstenglein]{@link https://github.com/cstenglein} + */ +var locale = { + code: 'de-AT', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index5.default, + match: _index4.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de-AT/index.js.flow b/node_modules/date-fns/locale/de-AT/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/de-AT/package.json b/node_modules/date-fns/locale/de-AT/package.json new file mode 100644 index 00000000..98cc7475 --- /dev/null +++ b/node_modules/date-fns/locale/de-AT/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/de-AT/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/_lib/formatDistance/index.js b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js new file mode 100644 index 00000000..d6e0736b --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatDistance/index.js @@ -0,0 +1,189 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + }, + withPreposition: { + one: 'weniger als 1 Sekunde', + other: 'weniger als {{count}} Sekunden' + } + }, + xSeconds: { + standalone: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + }, + withPreposition: { + one: '1 Sekunde', + other: '{{count}} Sekunden' + } + }, + halfAMinute: { + standalone: 'halbe Minute', + withPreposition: 'halben Minute' + }, + lessThanXMinutes: { + standalone: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + }, + withPreposition: { + one: 'weniger als 1 Minute', + other: 'weniger als {{count}} Minuten' + } + }, + xMinutes: { + standalone: { + one: '1 Minute', + other: '{{count}} Minuten' + }, + withPreposition: { + one: '1 Minute', + other: '{{count}} Minuten' + } + }, + aboutXHours: { + standalone: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + }, + withPreposition: { + one: 'etwa 1 Stunde', + other: 'etwa {{count}} Stunden' + } + }, + xHours: { + standalone: { + one: '1 Stunde', + other: '{{count}} Stunden' + }, + withPreposition: { + one: '1 Stunde', + other: '{{count}} Stunden' + } + }, + xDays: { + standalone: { + one: '1 Tag', + other: '{{count}} Tage' + }, + withPreposition: { + one: '1 Tag', + other: '{{count}} Tagen' + } + }, + aboutXWeeks: { + standalone: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + }, + withPreposition: { + one: 'etwa 1 Woche', + other: 'etwa {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: '1 Woche', + other: '{{count}} Wochen' + }, + withPreposition: { + one: '1 Woche', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monate' + }, + withPreposition: { + one: 'etwa 1 Monat', + other: 'etwa {{count}} Monaten' + } + }, + xMonths: { + standalone: { + one: '1 Monat', + other: '{{count}} Monate' + }, + withPreposition: { + one: '1 Monat', + other: '{{count}} Monaten' + } + }, + aboutXYears: { + standalone: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahre' + }, + withPreposition: { + one: 'etwa 1 Jahr', + other: 'etwa {{count}} Jahren' + } + }, + xYears: { + standalone: { + one: '1 Jahr', + other: '{{count}} Jahre' + }, + withPreposition: { + one: '1 Jahr', + other: '{{count}} Jahren' + } + }, + overXYears: { + standalone: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahre' + }, + withPreposition: { + one: 'mehr als 1 Jahr', + other: 'mehr als {{count}} Jahren' + } + }, + almostXYears: { + standalone: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahre' + }, + withPreposition: { + one: 'fast 1 Jahr', + other: 'fast {{count}} Jahren' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return 'vor ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/_lib/formatLong/index.js b/node_modules/date-fns/locale/de/_lib/formatLong/index.js new file mode 100644 index 00000000..263c55c5 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatLong/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +var dateFormats = { + full: 'EEEE, do MMMM y', + // Montag, 7. Januar 2018 + long: 'do MMMM y', + // 7. Januar 2018 + medium: 'do MMM y', + // 7. Jan. 2018 + short: 'dd.MM.y' // 07.01.2018 + +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/_lib/formatRelative/index.js b/node_modules/date-fns/locale/de/_lib/formatRelative/index.js new file mode 100644 index 00000000..e4bf1e1d --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'letzten' eeee 'um' p", + yesterday: "'gestern um' p", + today: "'heute um' p", + tomorrow: "'morgen um' p", + nextWeek: "eeee 'um' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/_lib/localize/index.js b/node_modules/date-fns/locale/de/_lib/localize/index.js new file mode 100644 index 00000000..ec7f1354 --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/localize/index.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['vor Christus', 'nach Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; // Note: in German, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; // https://st.unicode.org/cldr-apps/v#/de/Gregorian/ + +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: ['Jan.', 'Feb.', 'März', 'Apr.', 'Mai', 'Juni', 'Juli', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Dez.'], + wide: monthValues.wide +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'] +}; // https://www.unicode.org/cldr/charts/32/summary/de.html#1881 + +var dayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachm.', + evening: 'Abend', + night: 'Nacht' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'Morgen', + afternoon: 'Nachmittag', + evening: 'Abend', + night: 'Nacht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'vm.', + pm: 'nm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachm.', + evening: 'abends', + night: 'nachts' + }, + abbreviated: { + am: 'vorm.', + pm: 'nachm.', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + }, + wide: { + am: 'vormittags', + pm: 'nachmittags', + midnight: 'Mitternacht', + noon: 'Mittag', + morning: 'morgens', + afternoon: 'nachmittags', + evening: 'abends', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + formattingValues: formattingMonthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/_lib/match/index.js b/node_modules/date-fns/locale/de/_lib/match/index.js new file mode 100644 index 00000000..8b4458de --- /dev/null +++ b/node_modules/date-fns/locale/de/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i +}; +var parseEraPatterns = { + any: [/^v/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i, + wide: /^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^j[aä]/i, /^f/i, /^mär/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smdmf]/i, + short: /^(so|mo|di|mi|do|fr|sa)/i, + abbreviated: /^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i, + wide: /^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i +}; +var parseDayPatterns = { + any: [/^so/i, /^mo/i, /^di/i, /^mi/i, /^do/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + abbreviated: /^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i, + wide: /^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^v/i, + pm: /^n/i, + midnight: /^Mitte/i, + noon: /^Mitta/i, + morning: /morgens/i, + afternoon: /nachmittags/i, + // will never be matched. Afternoon is matched by `pm` + evening: /abends/i, + night: /nachts/i // will never be matched. Night is matched by `pm` + + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/index.d.ts b/node_modules/date-fns/locale/de/index.d.ts new file mode 100644 index 00000000..ef552da8 --- /dev/null +++ b/node_modules/date-fns/locale/de/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { de } from 'date-fns/locale' +export default de diff --git a/node_modules/date-fns/locale/de/index.js b/node_modules/date-fns/locale/de/index.js new file mode 100644 index 00000000..f5f58c3c --- /dev/null +++ b/node_modules/date-fns/locale/de/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary German locale. + * @language German + * @iso-639-2 deu + * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} + * @author Asia [@asia-t]{@link https://github.com/asia-t} + * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} + * @author RomanErnst [@pex]{@link https://github.com/pex} + * @author Philipp Keck [@Philipp91]{@link https://github.com/Philipp91} + */ +var locale = { + code: 'de', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/de/index.js.flow b/node_modules/date-fns/locale/de/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/de/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/de/package.json b/node_modules/date-fns/locale/de/package.json new file mode 100644 index 00000000..f8023ea2 --- /dev/null +++ b/node_modules/date-fns/locale/de/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/de/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/_lib/formatDistance/index.js b/node_modules/date-fns/locale/el/_lib/formatDistance/index.js new file mode 100644 index 00000000..a06d6688 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'λιγότερο από ένα δευτερόλεπτο', + other: 'λιγότερο από {{count}} δευτερόλεπτα' + }, + xSeconds: { + one: '1 δευτερόλεπτο', + other: '{{count}} δευτερόλεπτα' + }, + halfAMinute: 'μισό λεπτό', + lessThanXMinutes: { + one: 'λιγότερο από ένα λεπτό', + other: 'λιγότερο από {{count}} λεπτά' + }, + xMinutes: { + one: '1 λεπτό', + other: '{{count}} λεπτά' + }, + aboutXHours: { + one: 'περίπου 1 ώρα', + other: 'περίπου {{count}} ώρες' + }, + xHours: { + one: '1 ώρα', + other: '{{count}} ώρες' + }, + xDays: { + one: '1 ημέρα', + other: '{{count}} ημέρες' + }, + aboutXWeeks: { + one: 'περίπου 1 εβδομάδα', + other: 'περίπου {{count}} εβδομάδες' + }, + xWeeks: { + one: '1 εβδομάδα', + other: '{{count}} εβδομάδες' + }, + aboutXMonths: { + one: 'περίπου 1 μήνας', + other: 'περίπου {{count}} μήνες' + }, + xMonths: { + one: '1 μήνας', + other: '{{count}} μήνες' + }, + aboutXYears: { + one: 'περίπου 1 χρόνο', + other: 'περίπου {{count}} χρόνια' + }, + xYears: { + one: '1 χρόνο', + other: '{{count}} χρόνια' + }, + overXYears: { + one: 'πάνω από 1 χρόνο', + other: 'πάνω από {{count}} χρόνια' + }, + almostXYears: { + one: 'περίπου 1 χρόνο', + other: 'περίπου {{count}} χρόνια' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'σε ' + result; + } else { + return result + ' πριν'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/_lib/formatLong/index.js b/node_modules/date-fns/locale/el/_lib/formatLong/index.js new file mode 100644 index 00000000..2450e39b --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'd/M/yy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: '{{date}} - {{time}}', + long: '{{date}} - {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/_lib/formatRelative/index.js b/node_modules/date-fns/locale/el/_lib/formatRelative/index.js new file mode 100644 index 00000000..b55c1937 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/formatRelative/index.js @@ -0,0 +1,33 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 6: + //Σάββατο + return "'το προηγούμενο' eeee 'στις' p"; + + default: + return "'την προηγούμενη' eeee 'στις' p"; + } + }, + yesterday: "'χθες στις' p", + today: "'σήμερα στις' p", + tomorrow: "'αύριο στις' p", + nextWeek: "eeee 'στις' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + if (typeof format === 'function') return format(date); + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/_lib/localize/index.js b/node_modules/date-fns/locale/el/_lib/localize/index.js new file mode 100644 index 00000000..b34d319c --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/localize/index.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['πΧ', 'μΧ'], + abbreviated: ['π.Χ.', 'μ.Χ.'], + wide: ['προ Χριστού', 'μετά Χριστόν'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Τ1', 'Τ2', 'Τ3', 'Τ4'], + wide: ['1ο τρίμηνο', '2ο τρίμηνο', '3ο τρίμηνο', '4ο τρίμηνο'] +}; +var monthValues = { + narrow: ['Ι', 'Φ', 'Μ', 'Α', 'Μ', 'Ι', 'Ι', 'Α', 'Σ', 'Ο', 'Ν', 'Δ'], + abbreviated: ['Ιαν', 'Φεβ', 'Μάρ', 'Απρ', 'Μάι', 'Ιούν', 'Ιούλ', 'Αύγ', 'Σεπ', 'Οκτ', 'Νοέ', 'Δεκ'], + wide: ['Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος'] +}; +var formattingMonthValues = { + narrow: ['Ι', 'Φ', 'Μ', 'Α', 'Μ', 'Ι', 'Ι', 'Α', 'Σ', 'Ο', 'Ν', 'Δ'], + abbreviated: ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαΐ', 'Ιουν', 'Ιουλ', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'], + wide: ['Ιανουαρίου', 'Φεβρουαρίου', 'Μαρτίου', 'Απριλίου', 'Μαΐου', 'Ιουνίου', 'Ιουλίου', 'Αυγούστου', 'Σεπτεμβρίου', 'Οκτωβρίου', 'Νοεμβρίου', 'Δεκεμβρίου'] +}; +var dayValues = { + narrow: ['Κ', 'Δ', 'T', 'Τ', 'Π', 'Π', 'Σ'], + short: ['Κυ', 'Δε', 'Τρ', 'Τε', 'Πέ', 'Πα', 'Σά'], + abbreviated: ['Κυρ', 'Δευ', 'Τρί', 'Τετ', 'Πέμ', 'Παρ', 'Σάβ'], + wide: ['Κυριακή', 'Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο'] +}; +var dayPeriodValues = { + narrow: { + am: 'πμ', + pm: 'μμ', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + }, + abbreviated: { + am: 'π.μ.', + pm: 'μ.μ.', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + }, + wide: { + am: 'π.μ.', + pm: 'μ.μ.', + midnight: 'μεσάνυχτα', + noon: 'μεσημέρι', + morning: 'πρωί', + afternoon: 'απόγευμα', + evening: 'βράδυ', + night: 'νύχτα' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + + if (unit === 'year' || unit === 'month') { + suffix = 'ος'; + } else if (unit === 'week' || unit === 'dayOfYear' || unit === 'day' || unit === 'hour' || unit === 'date') { + suffix = 'η'; + } else { + suffix = 'ο'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/_lib/match/index.js b/node_modules/date-fns/locale/el/_lib/match/index.js new file mode 100644 index 00000000..639464a8 --- /dev/null +++ b/node_modules/date-fns/locale/el/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ος|η|ο)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(πΧ|μΧ)/i, + abbreviated: /^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i, + wide: /^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i +}; +var parseEraPatterns = { + any: [/^π/i, /^(μ|κ)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^τ[1234]/i, + wide: /^[1234]ο? τρ(ί|ι)μηνο/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[ιφμαμιιασονδ]/i, + abbreviated: /^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i, + wide: /^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i +}; +var parseMonthPatterns = { + narrow: [/^ι/i, /^φ/i, /^μ/i, /^α/i, /^μ/i, /^ι/i, /^ι/i, /^α/i, /^σ/i, /^ο/i, /^ν/i, /^δ/i], + any: [/^ια/i, /^φ/i, /^μ[άα]ρ/i, /^απ/i, /^μ[άα][ιΐ]/i, /^ιο[ύυ]ν/i, /^ιο[ύυ]λ/i, /^α[ύυ]/i, /^σ/i, /^ο/i, /^ν/i, /^δ/i] +}; +var matchDayPatterns = { + narrow: /^[κδτπσ]/i, + short: /^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i, + abbreviated: /^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i, + wide: /^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i +}; +var parseDayPatterns = { + narrow: [/^κ/i, /^δ/i, /^τ/i, /^τ/i, /^π/i, /^π/i, /^σ/i], + any: [/^κ/i, /^δ/i, /^τρ/i, /^τε/i, /^π[εέ]/i, /^π[αά]/i, /^σ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i, + any: /^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^πμ|π\.\s?μ\./i, + pm: /^μμ|μ\.\s?μ\./i, + midnight: /^μεσάν/i, + noon: /^μεσημ(έ|ε)/i, + morning: /πρω(ί|ι)/i, + afternoon: /απ(ό|ο)γευμα/i, + evening: /βρ(ά|α)δυ/i, + night: /ν(ύ|υ)χτα/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/index.d.ts b/node_modules/date-fns/locale/el/index.d.ts new file mode 100644 index 00000000..551ad06f --- /dev/null +++ b/node_modules/date-fns/locale/el/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { el } from 'date-fns/locale' +export default el diff --git a/node_modules/date-fns/locale/el/index.js b/node_modules/date-fns/locale/el/index.js new file mode 100644 index 00000000..7a923c7f --- /dev/null +++ b/node_modules/date-fns/locale/el/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Greek locale. + * @language Greek + * @iso-639-2 ell + * @author Fanis Katsimpas [@fanixk]{@link https://github.com/fanixk} + * @author Theodoros Orfanidis [@teoulas]{@link https://github.com/teoulas} + */ +var locale = { + code: 'el', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/el/index.js.flow b/node_modules/date-fns/locale/el/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/el/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/el/package.json b/node_modules/date-fns/locale/el/package.json new file mode 100644 index 00000000..1ae631cc --- /dev/null +++ b/node_modules/date-fns/locale/el/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/el/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-AU/_lib/formatLong/index.js new file mode 100644 index 00000000..15bdad0c --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU/index.d.ts b/node_modules/date-fns/locale/en-AU/index.d.ts new file mode 100644 index 00000000..c1343a6b --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enAU } from 'date-fns/locale' +export default enAU diff --git a/node_modules/date-fns/locale/en-AU/index.js b/node_modules/date-fns/locale/en-AU/index.js new file mode 100644 index 00000000..5bb3b24e --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (Australia). + * @language English + * @iso-639-2 eng + * @author Julien Malige [@JulienMalige]{@link https://github.com/JulienMalige} + */ +var locale = { + code: 'en-AU', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-AU/index.js.flow b/node_modules/date-fns/locale/en-AU/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-AU/package.json b/node_modules/date-fns/locale/en-AU/package.json new file mode 100644 index 00000000..6114ef77 --- /dev/null +++ b/node_modules/date-fns/locale/en-AU/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-AU/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatDistance/index.js b/node_modules/date-fns/locale/en-CA/_lib/formatDistance/index.js new file mode 100644 index 00000000..1251e25b --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + xSeconds: { + one: 'a second', + other: '{{count}} seconds' + }, + halfAMinute: 'half a minute', + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + xMinutes: { + one: 'a minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'about an hour', + other: 'about {{count}} hours' + }, + xHours: { + one: 'an hour', + other: '{{count}} hours' + }, + xDays: { + one: 'a day', + other: '{{count}} days' + }, + aboutXWeeks: { + one: 'about a week', + other: 'about {{count}} weeks' + }, + xWeeks: { + one: 'a week', + other: '{{count}} weeks' + }, + aboutXMonths: { + one: 'about a month', + other: 'about {{count}} months' + }, + xMonths: { + one: 'a month', + other: '{{count}} months' + }, + aboutXYears: { + one: 'about a year', + other: 'about {{count}} years' + }, + xYears: { + one: 'a year', + other: '{{count}} years' + }, + overXYears: { + one: 'over a year', + other: 'over {{count}} years' + }, + almostXYears: { + one: 'almost a year', + other: 'almost {{count}} years' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-CA/_lib/formatLong/index.js new file mode 100644 index 00000000..20441e43 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, yyyy', + long: 'MMMM do, yyyy', + medium: 'MMM d, yyyy', + short: 'yyyy-MM-dd' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/index.d.ts b/node_modules/date-fns/locale/en-CA/index.d.ts new file mode 100644 index 00000000..e97efb4b --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enCA } from 'date-fns/locale' +export default enCA diff --git a/node_modules/date-fns/locale/en-CA/index.js b/node_modules/date-fns/locale/en-CA/index.js new file mode 100644 index 00000000..5246275a --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (Canada). + * @language English + * @iso-639-2 eng + * @author Mark Owsiak [@markowsiak]{@link https://github.com/markowsiak} + * @author Marco Imperatore [@mimperatore]{@link https://github.com/mimperatore} + */ +var locale = { + code: 'en-CA', + formatDistance: _index4.default, + formatLong: _index5.default, + formatRelative: _index.default, + localize: _index2.default, + match: _index3.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-CA/index.js.flow b/node_modules/date-fns/locale/en-CA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-CA/package.json b/node_modules/date-fns/locale/en-CA/package.json new file mode 100644 index 00000000..9b7526ad --- /dev/null +++ b/node_modules/date-fns/locale/en-CA/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-CA/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-GB/_lib/formatLong/index.js new file mode 100644 index 00000000..847a5dd0 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB/index.d.ts b/node_modules/date-fns/locale/en-GB/index.d.ts new file mode 100644 index 00000000..74fc7841 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enGB } from 'date-fns/locale' +export default enGB diff --git a/node_modules/date-fns/locale/en-GB/index.js b/node_modules/date-fns/locale/en-GB/index.js new file mode 100644 index 00000000..808e512b --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (United Kingdom). + * @language English + * @iso-639-2 eng + * @author Alex [@glintik]{@link https://github.com/glintik} + */ +var locale = { + code: 'en-GB', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-GB/index.js.flow b/node_modules/date-fns/locale/en-GB/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-GB/package.json b/node_modules/date-fns/locale/en-GB/package.json new file mode 100644 index 00000000..96f038ba --- /dev/null +++ b/node_modules/date-fns/locale/en-GB/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-GB/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE/index.d.ts b/node_modules/date-fns/locale/en-IE/index.d.ts new file mode 100644 index 00000000..042b0caf --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enIE } from 'date-fns/locale' +export default enIE diff --git a/node_modules/date-fns/locale/en-IE/index.js b/node_modules/date-fns/locale/en-IE/index.js new file mode 100644 index 00000000..1460741e --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("../en-GB/_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (Ireland). + * @language English + * @iso-639-2 eng + * @author Tetiana [@tan75]{@link https://github.com/tan75} + */ +var locale = { + code: 'en-IE', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IE/index.js.flow b/node_modules/date-fns/locale/en-IE/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-IE/package.json b/node_modules/date-fns/locale/en-IE/package.json new file mode 100644 index 00000000..a87ef300 --- /dev/null +++ b/node_modules/date-fns/locale/en-IE/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-IE/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-IN/_lib/formatLong/index.js new file mode 100644 index 00000000..9c2b097c --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM, yyyy', + medium: 'd MMM, yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN/index.d.ts b/node_modules/date-fns/locale/en-IN/index.d.ts new file mode 100644 index 00000000..a1fc542c --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enIN } from 'date-fns/locale' +export default enIN diff --git a/node_modules/date-fns/locale/en-IN/index.js b/node_modules/date-fns/locale/en-IN/index.js new file mode 100644 index 00000000..b3a80c4f --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (India). + * @language English + * @iso-639-2 eng + * @author Galeel Bhasha Satthar [@gbhasha]{@link https://github.com/gbhasha} + */ +var locale = { + code: 'en-IN', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 1, + // Monday is the first day of the week. + firstWeekContainsDate: 4 // The week that contains Jan 4th is the first week of the year. + + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-IN/index.js.flow b/node_modules/date-fns/locale/en-IN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-IN/package.json b/node_modules/date-fns/locale/en-IN/package.json new file mode 100644 index 00000000..7f89dcdb --- /dev/null +++ b/node_modules/date-fns/locale/en-IN/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-IN/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-NZ/_lib/formatLong/index.js new file mode 100644 index 00000000..15bdad0c --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ/index.d.ts b/node_modules/date-fns/locale/en-NZ/index.d.ts new file mode 100644 index 00000000..dbf083d4 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enNZ } from 'date-fns/locale' +export default enNZ diff --git a/node_modules/date-fns/locale/en-NZ/index.js b/node_modules/date-fns/locale/en-NZ/index.js new file mode 100644 index 00000000..36cb1c9d --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (New Zealand). + * @language English + * @iso-639-2 eng + * @author Murray Lucas [@muntact]{@link https://github.com/muntact} + */ +var locale = { + code: 'en-NZ', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-NZ/index.js.flow b/node_modules/date-fns/locale/en-NZ/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-NZ/package.json b/node_modules/date-fns/locale/en-NZ/package.json new file mode 100644 index 00000000..aa3c1c25 --- /dev/null +++ b/node_modules/date-fns/locale/en-NZ/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-NZ/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js b/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js new file mode 100644 index 00000000..4b98612b --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'less than a second', + other: 'less than {{count}} seconds' + }, + xSeconds: { + one: '1 second', + other: '{{count}} seconds' + }, + halfAMinute: 'half a minute', + lessThanXMinutes: { + one: 'less than a minute', + other: 'less than {{count}} minutes' + }, + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'about 1 hour', + other: 'about {{count}} hours' + }, + xHours: { + one: '1 hour', + other: '{{count}} hours' + }, + xDays: { + one: '1 day', + other: '{{count}} days' + }, + aboutXWeeks: { + one: 'about 1 week', + other: 'about {{count}} weeks' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weeks' + }, + aboutXMonths: { + one: 'about 1 month', + other: 'about {{count}} months' + }, + xMonths: { + one: '1 month', + other: '{{count}} months' + }, + aboutXYears: { + one: 'about 1 year', + other: 'about {{count}} years' + }, + xYears: { + one: '1 year', + other: '{{count}} years' + }, + overXYears: { + one: 'over 1 year', + other: 'over {{count}} years' + }, + almostXYears: { + one: 'almost 1 year', + other: 'almost {{count}} years' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'in ' + result; + } else { + return result + ' ago'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-US/_lib/formatLong/index.js new file mode 100644 index 00000000..2a9ee6d9 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js b/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js new file mode 100644 index 00000000..15a78120 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'last' eeee 'at' p", + yesterday: "'yesterday at' p", + today: "'today at' p", + tomorrow: "'tomorrow at' p", + nextWeek: "eeee 'at' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/_lib/localize/index.js b/node_modules/date-fns/locale/en-US/_lib/localize/index.js new file mode 100644 index 00000000..96e3c954 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/localize/index.js @@ -0,0 +1,158 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['B', 'A'], + abbreviated: ['BC', 'AD'], + wide: ['Before Christ', 'Anno Domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], + wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], + short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], + abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], + wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'morning', + afternoon: 'afternoon', + evening: 'evening', + night: 'night' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mi', + noon: 'n', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnight', + noon: 'noon', + morning: 'in the morning', + afternoon: 'in the afternoon', + evening: 'in the evening', + night: 'at night' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'st'; + + case 2: + return number + 'nd'; + + case 3: + return number + 'rd'; + } + } + + return number + 'th'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/_lib/match/index.js b/node_modules/date-fns/locale/en-US/_lib/match/index.js new file mode 100644 index 00000000..9222d63f --- /dev/null +++ b/node_modules/date-fns/locale/en-US/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b|a)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(before christ|before common era|anno domini|common era)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](th|st|nd|rd)? quarter/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, + wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|mo|tu|we|th|fr|sa)/i, + abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, + wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, + any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mi/i, + noon: /^no/i, + morning: /morning/i, + afternoon: /afternoon/i, + evening: /evening/i, + night: /night/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/index.d.ts b/node_modules/date-fns/locale/en-US/index.d.ts new file mode 100644 index 00000000..967f2570 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enUS } from 'date-fns/locale' +export default enUS diff --git a/node_modules/date-fns/locale/en-US/index.js b/node_modules/date-fns/locale/en-US/index.js new file mode 100644 index 00000000..573f228a --- /dev/null +++ b/node_modules/date-fns/locale/en-US/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (United States). + * @language English + * @iso-639-2 eng + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +var locale = { + code: 'en-US', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-US/index.js.flow b/node_modules/date-fns/locale/en-US/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-US/package.json b/node_modules/date-fns/locale/en-US/package.json new file mode 100644 index 00000000..94ac4641 --- /dev/null +++ b/node_modules/date-fns/locale/en-US/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-US/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA/_lib/formatLong/index.js b/node_modules/date-fns/locale/en-ZA/_lib/formatLong/index.js new file mode 100644 index 00000000..523fa83d --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'at' {{time}}", + long: "{{date}} 'at' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA/index.d.ts b/node_modules/date-fns/locale/en-ZA/index.d.ts new file mode 100644 index 00000000..ebdd1c8c --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { enZA } from 'date-fns/locale' +export default enZA diff --git a/node_modules/date-fns/locale/en-ZA/index.js b/node_modules/date-fns/locale/en-ZA/index.js new file mode 100644 index 00000000..5695e98b --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../en-US/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../en-US/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../en-US/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../en-US/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary English locale (South Africa). + * @language English + * @iso-639-2 eng + * @author Shaila Kavrakova [@shaykav]{@link https://github.com/shaykav} + */ +var locale = { + code: 'en-ZA', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 0, + // Sunday is the first day of the week. + firstWeekContainsDate: 1 // The week that contains Jan 1st is the first week of the year. + + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/en-ZA/index.js.flow b/node_modules/date-fns/locale/en-ZA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/en-ZA/package.json b/node_modules/date-fns/locale/en-ZA/package.json new file mode 100644 index 00000000..1ce19b1a --- /dev/null +++ b/node_modules/date-fns/locale/en-ZA/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/en-ZA/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js new file mode 100644 index 00000000..f7af8d1a --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'malpli ol sekundo', + other: 'malpli ol {{count}} sekundoj' + }, + xSeconds: { + one: '1 sekundo', + other: '{{count}} sekundoj' + }, + halfAMinute: 'duonminuto', + lessThanXMinutes: { + one: 'malpli ol minuto', + other: 'malpli ol {{count}} minutoj' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutoj' + }, + aboutXHours: { + one: 'proksimume 1 horo', + other: 'proksimume {{count}} horoj' + }, + xHours: { + one: '1 horo', + other: '{{count}} horoj' + }, + xDays: { + one: '1 tago', + other: '{{count}} tagoj' + }, + aboutXMonths: { + one: 'proksimume 1 monato', + other: 'proksimume {{count}} monatoj' + }, + xWeeks: { + one: '1 semajno', + other: '{{count}} semajnoj' + }, + aboutXWeeks: { + one: 'proksimume 1 semajno', + other: 'proksimume {{count}} semajnoj' + }, + xMonths: { + one: '1 monato', + other: '{{count}} monatoj' + }, + aboutXYears: { + one: 'proksimume 1 jaro', + other: 'proksimume {{count}} jaroj' + }, + xYears: { + one: '1 jaro', + other: '{{count}} jaroj' + }, + overXYears: { + one: 'pli ol 1 jaro', + other: 'pli ol {{count}} jaroj' + }, + almostXYears: { + one: 'preskaŭ 1 jaro', + other: 'preskaŭ {{count}} jaroj' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options !== null && options !== void 0 && options.comparison && options.comparison > 0) { + return 'post ' + result; + } else { + return 'antaŭ ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/formatLong/index.js b/node_modules/date-fns/locale/eo/_lib/formatLong/index.js new file mode 100644 index 00000000..97ed7004 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, do 'de' MMMM y", + long: 'y-MMMM-dd', + medium: 'y-MMM-dd', + short: 'yyyy-MM-dd' +}; +var timeFormats = { + full: "Ho 'horo kaj' m:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js b/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js new file mode 100644 index 00000000..7d65ec32 --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'pasinta' eeee 'je' p", + yesterday: "'hieraŭ je' p", + today: "'hodiaŭ je' p", + tomorrow: "'morgaŭ je' p", + nextWeek: "eeee 'je' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/localize/index.js b/node_modules/date-fns/locale/eo/_lib/localize/index.js new file mode 100644 index 00000000..525cd7cd --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['aK', 'pK'], + abbreviated: ['a.K.E.', 'p.K.E.'], + wide: ['antaŭ Komuna Erao', 'Komuna Erao'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1-a kvaronjaro', '2-a kvaronjaro', '3-a kvaronjaro', '4-a kvaronjaro'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aŭg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aŭgusto', 'septembro', 'oktobro', 'novembro', 'decembro'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'Ĵ', 'V', 'S'], + short: ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'], + abbreviated: ['dim', 'lun', 'mar', 'mer', 'ĵaŭ', 'ven', 'sab'], + wide: ['dimanĉo', 'lundo', 'mardo', 'merkredo', 'ĵaŭdo', 'vendredo', 'sabato'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + abbreviated: { + am: 'a.t.m.', + pm: 'p.t.m.', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + }, + wide: { + am: 'antaŭtagmeze', + pm: 'posttagmeze', + midnight: 'noktomezo', + noon: 'tagmezo', + morning: 'matene', + afternoon: 'posttagmeze', + evening: 'vespere', + night: 'nokte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + return number + '-a'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/_lib/match/index.js b/node_modules/date-fns/locale/eo/_lib/match/index.js new file mode 100644 index 00000000..b3b0059f --- /dev/null +++ b/node_modules/date-fns/locale/eo/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?a)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([ap]k)/i, + abbreviated: /^([ap]\.?\s?k\.?\s?e\.?)/i, + wide: /^((antaǔ |post )?komuna erao)/i +}; +var parseEraPatterns = { + any: [/^a/i, /^[kp]/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](-?a)? kvaronjaro/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i, + wide: /^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^a(u|ŭ)/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmĵjvs]/i, + short: /^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i, + wide: /^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^(j|ĵ)/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^(j|ĵ)/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + abbreviated: /^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i, + wide: /^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^noktom/i, + noon: /^t/i, + morning: /^m/i, + afternoon: /^posttagmeze/i, + evening: /^v/i, + night: /^n/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/index.d.ts b/node_modules/date-fns/locale/eo/index.d.ts new file mode 100644 index 00000000..40716b30 --- /dev/null +++ b/node_modules/date-fns/locale/eo/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eo } from 'date-fns/locale' +export default eo diff --git a/node_modules/date-fns/locale/eo/index.js b/node_modules/date-fns/locale/eo/index.js new file mode 100644 index 00000000..b46f3182 --- /dev/null +++ b/node_modules/date-fns/locale/eo/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Esperanto locale. + * @language Esperanto + * @iso-639-2 epo + * @author date-fns + */ +var locale = { + code: 'eo', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eo/index.js.flow b/node_modules/date-fns/locale/eo/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/eo/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/eo/package.json b/node_modules/date-fns/locale/eo/package.json new file mode 100644 index 00000000..30a3a331 --- /dev/null +++ b/node_modules/date-fns/locale/eo/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/eo/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/_lib/formatDistance/index.js b/node_modules/date-fns/locale/es/_lib/formatDistance/index.js new file mode 100644 index 00000000..8d89231f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de un segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'medio minuto', + lessThanXMinutes: { + one: 'menos de un minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'alrededor de 1 hora', + other: 'alrededor de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 día', + other: '{{count}} días' + }, + aboutXWeeks: { + one: 'alrededor de 1 semana', + other: 'alrededor de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'alrededor de 1 mes', + other: 'alrededor de {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'alrededor de 1 año', + other: 'alrededor de {{count}} años' + }, + xYears: { + one: '1 año', + other: '{{count}} años' + }, + overXYears: { + one: 'más de 1 año', + other: 'más de {{count}} años' + }, + almostXYears: { + one: 'casi 1 año', + other: 'casi {{count}} años' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'hace ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/_lib/formatLong/index.js b/node_modules/date-fns/locale/es/_lib/formatLong/index.js new file mode 100644 index 00000000..84d3c0d9 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a las' {{time}}", + long: "{{date}} 'a las' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/_lib/formatRelative/index.js b/node_modules/date-fns/locale/es/_lib/formatRelative/index.js new file mode 100644 index 00000000..d7970731 --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/formatRelative/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'el' eeee 'pasado a la' p", + yesterday: "'ayer a la' p", + today: "'hoy a la' p", + tomorrow: "'mañana a la' p", + nextWeek: "eeee 'a la' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'el' eeee 'pasado a las' p", + yesterday: "'ayer a las' p", + today: "'hoy a las' p", + tomorrow: "'mañana a las' p", + nextWeek: "eeee 'a las' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } else { + return formatRelativeLocale[token]; + } +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/_lib/localize/index.js b/node_modules/date-fns/locale/es/_lib/localize/index.js new file mode 100644 index 00000000..06f8353f --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'después de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'], + wide: ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sá'], + abbreviated: ['dom', 'lun', 'mar', 'mié', 'jue', 'vie', 'sáb'], + wide: ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'mañana', + afternoon: 'tarde', + evening: 'tarde', + night: 'noche' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoche', + noon: 'mediodia', + morning: 'de la mañana', + afternoon: 'de la tarde', + evening: 'de la tarde', + night: 'de la noche' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/_lib/match/index.js b/node_modules/date-fns/locale/es/_lib/match/index.js new file mode 100644 index 00000000..5a83ad1e --- /dev/null +++ b/node_modules/date-fns/locale/es/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[efmajsond]/i, + abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i, + wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i +}; +var parseMonthPatterns = { + narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i] +}; +var matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(do|lu|ma|mi|ju|vi|s[áa])/i, + abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i, + wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i, + any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañana/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noche/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/index.d.ts b/node_modules/date-fns/locale/es/index.d.ts new file mode 100644 index 00000000..8b0431ec --- /dev/null +++ b/node_modules/date-fns/locale/es/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { es } from 'date-fns/locale' +export default es diff --git a/node_modules/date-fns/locale/es/index.js b/node_modules/date-fns/locale/es/index.js new file mode 100644 index 00000000..b2b88cfe --- /dev/null +++ b/node_modules/date-fns/locale/es/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Spanish locale. + * @language Spanish + * @iso-639-2 spa + * @author Juan Angosto [@juanangosto]{@link https://github.com/juanangosto} + * @author Guillermo Grau [@guigrpa]{@link https://github.com/guigrpa} + * @author Fernando Agüero [@fjaguero]{@link https://github.com/fjaguero} + * @author Gastón Haro [@harogaston]{@link https://github.com/harogaston} + * @author Yago Carballo [@YagoCarballo]{@link https://github.com/YagoCarballo} + */ +var locale = { + code: 'es', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/es/index.js.flow b/node_modules/date-fns/locale/es/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/es/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/es/package.json b/node_modules/date-fns/locale/es/package.json new file mode 100644 index 00000000..51de8c5c --- /dev/null +++ b/node_modules/date-fns/locale/es/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/es/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/_lib/formatDistance/index.js b/node_modules/date-fns/locale/et/_lib/formatDistance/index.js new file mode 100644 index 00000000..98e7dd2e --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatDistance/index.js @@ -0,0 +1,189 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'vähem kui üks sekund', + other: 'vähem kui {{count}} sekundit' + }, + withPreposition: { + one: 'vähem kui ühe sekundi', + other: 'vähem kui {{count}} sekundi' + } + }, + xSeconds: { + standalone: { + one: 'üks sekund', + other: '{{count}} sekundit' + }, + withPreposition: { + one: 'ühe sekundi', + other: '{{count}} sekundi' + } + }, + halfAMinute: { + standalone: 'pool minutit', + withPreposition: 'poole minuti' + }, + lessThanXMinutes: { + standalone: { + one: 'vähem kui üks minut', + other: 'vähem kui {{count}} minutit' + }, + withPreposition: { + one: 'vähem kui ühe minuti', + other: 'vähem kui {{count}} minuti' + } + }, + xMinutes: { + standalone: { + one: 'üks minut', + other: '{{count}} minutit' + }, + withPreposition: { + one: 'ühe minuti', + other: '{{count}} minuti' + } + }, + aboutXHours: { + standalone: { + one: 'umbes üks tund', + other: 'umbes {{count}} tundi' + }, + withPreposition: { + one: 'umbes ühe tunni', + other: 'umbes {{count}} tunni' + } + }, + xHours: { + standalone: { + one: 'üks tund', + other: '{{count}} tundi' + }, + withPreposition: { + one: 'ühe tunni', + other: '{{count}} tunni' + } + }, + xDays: { + standalone: { + one: 'üks päev', + other: '{{count}} päeva' + }, + withPreposition: { + one: 'ühe päeva', + other: '{{count}} päeva' + } + }, + aboutXWeeks: { + standalone: { + one: 'umbes üks nädal', + other: 'umbes {{count}} nädalat' + }, + withPreposition: { + one: 'umbes ühe nädala', + other: 'umbes {{count}} nädala' + } + }, + xWeeks: { + standalone: { + one: 'üks nädal', + other: '{{count}} nädalat' + }, + withPreposition: { + one: 'ühe nädala', + other: '{{count}} nädala' + } + }, + aboutXMonths: { + standalone: { + one: 'umbes üks kuu', + other: 'umbes {{count}} kuud' + }, + withPreposition: { + one: 'umbes ühe kuu', + other: 'umbes {{count}} kuu' + } + }, + xMonths: { + standalone: { + one: 'üks kuu', + other: '{{count}} kuud' + }, + withPreposition: { + one: 'ühe kuu', + other: '{{count}} kuu' + } + }, + aboutXYears: { + standalone: { + one: 'umbes üks aasta', + other: 'umbes {{count}} aastat' + }, + withPreposition: { + one: 'umbes ühe aasta', + other: 'umbes {{count}} aasta' + } + }, + xYears: { + standalone: { + one: 'üks aasta', + other: '{{count}} aastat' + }, + withPreposition: { + one: 'ühe aasta', + other: '{{count}} aasta' + } + }, + overXYears: { + standalone: { + one: 'rohkem kui üks aasta', + other: 'rohkem kui {{count}} aastat' + }, + withPreposition: { + one: 'rohkem kui ühe aasta', + other: 'rohkem kui {{count}} aasta' + } + }, + almostXYears: { + standalone: { + one: 'peaaegu üks aasta', + other: 'peaaegu {{count}} aastat' + }, + withPreposition: { + one: 'peaaegu ühe aasta', + other: 'peaaegu {{count}} aasta' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + var result; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' pärast'; + } else { + return result + ' eest'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/_lib/formatLong/index.js b/node_modules/date-fns/locale/et/_lib/formatLong/index.js new file mode 100644 index 00000000..343d96b4 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kell' {{time}}", + long: "{{date}} 'kell' {{time}}", + medium: '{{date}}. {{time}}', + short: '{{date}}. {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/_lib/formatRelative/index.js b/node_modules/date-fns/locale/et/_lib/formatRelative/index.js new file mode 100644 index 00000000..c155c84d --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'eelmine' eeee 'kell' p", + yesterday: "'eile kell' p", + today: "'täna kell' p", + tomorrow: "'homme kell' p", + nextWeek: "'järgmine' eeee 'kell' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/_lib/localize/index.js b/node_modules/date-fns/locale/et/_lib/localize/index.js new file mode 100644 index 00000000..b46a5cc7 --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/localize/index.js @@ -0,0 +1,137 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['e.m.a', 'm.a.j'], + abbreviated: ['e.m.a', 'm.a.j'], + wide: ['enne meie ajaarvamist', 'meie ajaarvamise järgi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'V', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'], + wide: ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember'] +}; +var dayValues = { + narrow: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], + short: ['P', 'E', 'T', 'K', 'N', 'R', 'L'], + abbreviated: ['pühap.', 'esmasp.', 'teisip.', 'kolmap.', 'neljap.', 'reede.', 'laup.'], + wide: ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'kesköö', + noon: 'keskpäev', + morning: 'hommik', + afternoon: 'pärastlõuna', + evening: 'õhtu', + night: 'öö' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'keskööl', + noon: 'keskpäeval', + morning: 'hommikul', + afternoon: 'pärastlõunal', + evening: 'õhtul', + night: 'öösel' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: monthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: dayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/_lib/match/index.js b/node_modules/date-fns/locale/et/_lib/match/index.js new file mode 100644 index 00000000..0709eacd --- /dev/null +++ b/node_modules/date-fns/locale/et/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^\d+\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + abbreviated: /^(e\.m\.a|m\.a\.j|eKr|pKr)/i, + wide: /^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i +}; +var parseEraPatterns = { + any: [/^e/i, /^(m|p)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jvmasond]/i, + abbreviated: /^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i, + wide: /^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^v/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^v/i, /^mär/i, /^ap/i, /^mai/i, /^juun/i, /^juul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[petknrl]/i, + short: /^[petknrl]/i, + abbreviated: /^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i, + wide: /^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i +}; +var parseDayPatterns = { + any: [/^p/i, /^e/i, /^t/i, /^k/i, /^n/i, /^r/i, /^l/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^keskö/i, + noon: /^keskp/i, + morning: /hommik/i, + afternoon: /pärastlõuna/i, + evening: /õhtu/i, + night: /öö/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/index.d.ts b/node_modules/date-fns/locale/et/index.d.ts new file mode 100644 index 00000000..debd0b90 --- /dev/null +++ b/node_modules/date-fns/locale/et/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { et } from 'date-fns/locale' +export default et diff --git a/node_modules/date-fns/locale/et/index.js b/node_modules/date-fns/locale/et/index.js new file mode 100644 index 00000000..a58d106d --- /dev/null +++ b/node_modules/date-fns/locale/et/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Estonian locale. + * @language Estonian + * @iso-639-2 est + * @author Priit Hansen [@HansenPriit]{@link https://github.com/priithansen} + */ +var locale = { + code: 'et', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/et/index.js.flow b/node_modules/date-fns/locale/et/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/et/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/et/package.json b/node_modules/date-fns/locale/et/package.json new file mode 100644 index 00000000..d70b6cbf --- /dev/null +++ b/node_modules/date-fns/locale/et/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/et/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/eu/_lib/formatDistance/index.js new file mode 100644 index 00000000..1ca9dde8 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'segundo bat baino gutxiago', + other: '{{count}} segundo baino gutxiago' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundo' + }, + halfAMinute: 'minutu erdi', + lessThanXMinutes: { + one: 'minutu bat baino gutxiago', + other: '{{count}} minutu baino gutxiago' + }, + xMinutes: { + one: '1 minutu', + other: '{{count}} minutu' + }, + aboutXHours: { + one: '1 ordu gutxi gorabehera', + other: '{{count}} ordu gutxi gorabehera' + }, + xHours: { + one: '1 ordu', + other: '{{count}} ordu' + }, + xDays: { + one: '1 egun', + other: '{{count}} egun' + }, + aboutXWeeks: { + one: 'aste 1 inguru', + other: '{{count}} aste inguru' + }, + xWeeks: { + one: '1 aste', + other: '{{count}} astean' + }, + aboutXMonths: { + one: '1 hilabete gutxi gorabehera', + other: '{{count}} hilabete gutxi gorabehera' + }, + xMonths: { + one: '1 hilabete', + other: '{{count}} hilabete' + }, + aboutXYears: { + one: '1 urte gutxi gorabehera', + other: '{{count}} urte gutxi gorabehera' + }, + xYears: { + one: '1 urte', + other: '{{count}} urte' + }, + overXYears: { + one: '1 urte baino gehiago', + other: '{{count}} urte baino gehiago' + }, + almostXYears: { + one: 'ia 1 urte', + other: 'ia {{count}} urte' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'duela ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/_lib/formatLong/index.js b/node_modules/date-fns/locale/eu/_lib/formatLong/index.js new file mode 100644 index 00000000..d06b354a --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, y'ko' MMMM'ren' d'a' y'ren'", + long: "y'ko' MMMM'ren' d'a'", + medium: 'y MMM d', + short: 'yy/MM/dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'tan' {{time}}", + long: "{{date}} 'tan' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/_lib/formatRelative/index.js b/node_modules/date-fns/locale/eu/_lib/formatRelative/index.js new file mode 100644 index 00000000..c9ced571 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/formatRelative/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'joan den' eeee, LT", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: 'eeee, p', + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'joan den' eeee, p", + yesterday: "'atzo,' p", + today: "'gaur,' p", + tomorrow: "'bihar,' p", + nextWeek: 'eeee, p', + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/_lib/localize/index.js b/node_modules/date-fns/locale/eu/_lib/localize/index.js new file mode 100644 index 00000000..eefd9932 --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['k.a.', 'k.o.'], + abbreviated: ['k.a.', 'k.o.'], + wide: ['kristo aurretik', 'kristo ondoren'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1H', '2H', '3H', '4H'], + wide: ['1. hiruhilekoa', '2. hiruhilekoa', '3. hiruhilekoa', '4. hiruhilekoa'] +}; +var monthValues = { + narrow: ['u', 'o', 'm', 'a', 'm', 'e', 'u', 'a', 'i', 'u', 'a', 'a'], + abbreviated: ['urt', 'ots', 'mar', 'api', 'mai', 'eka', 'uzt', 'abu', 'ira', 'urr', 'aza', 'abe'], + wide: ['urtarrila', 'otsaila', 'martxoa', 'apirila', 'maiatza', 'ekaina', 'uztaila', 'abuztua', 'iraila', 'urria', 'azaroa', 'abendua'] +}; +var dayValues = { + narrow: ['i', 'a', 'a', 'a', 'o', 'o', 'l'], + short: ['ig', 'al', 'as', 'az', 'og', 'or', 'lr'], + abbreviated: ['iga', 'ast', 'ast', 'ast', 'ost', 'ost', 'lar'], + wide: ['igandea', 'astelehena', 'asteartea', 'asteazkena', 'osteguna', 'ostirala', 'larunbata'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'ge', + noon: 'eg', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goiza', + afternoon: 'arratsaldea', + evening: 'arratsaldea', + night: 'gaua' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'ge', + noon: 'eg', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'gauerdia', + noon: 'eguerdia', + morning: 'goizean', + afternoon: 'arratsaldean', + evening: 'arratsaldean', + night: 'gauean' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/_lib/match/index.js b/node_modules/date-fns/locale/eu/_lib/match/index.js new file mode 100644 index 00000000..828977ab --- /dev/null +++ b/node_modules/date-fns/locale/eu/_lib/match/index.js @@ -0,0 +1,125 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(k.a.|k.o.)/i, + abbreviated: /^(k.a.|k.o.)/i, + wide: /^(kristo aurretik|kristo ondoren)/i +}; +var parseEraPatterns = { + narrow: [/^k.a./i, /^k.o./i], + abbreviated: [/^(k.a.)/i, /^(k.o.)/i], + wide: [/^(kristo aurretik)/i, /^(kristo ondoren)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]H/i, + wide: /^[1234](.)? hiruhilekoa/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[uomaei]/i, + abbreviated: /^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i, + wide: /^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i +}; +var parseMonthPatterns = { + narrow: [/^u/i, /^o/i, /^m/i, /^a/i, /^m/i, /^e/i, /^u/i, /^a/i, /^i/i, /^u/i, /^a/i, /^a/i], + any: [/^urt/i, /^ots/i, /^mar/i, /^api/i, /^mai/i, /^eka/i, /^uzt/i, /^abu/i, /^ira/i, /^urr/i, /^aza/i, /^abe/i] +}; +var matchDayPatterns = { + narrow: /^[iaol]/i, + short: /^(ig|al|as|az|og|or|lr)/i, + abbreviated: /^(iga|ast|ast|ast|ost|ost|lar)/i, + wide: /^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i +}; +var parseDayPatterns = { + narrow: [/^i/i, /^a/i, /^a/i, /^a/i, /^o/i, /^o/i, /^l/i], + short: [/^ig/i, /^al/i, /^as/i, /^az/i, /^og/i, /^or/i, /^lr/i], + abbreviated: [/^iga/i, /^ast/i, /^ast/i, /^ast/i, /^ost/i, /^ost/i, /^lar/i], + wide: [/^igandea/i, /^astelehena/i, /^asteartea/i, /^asteazkena/i, /^osteguna/i, /^ostirala/i, /^larunbata/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i, + any: /^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^a/i, + pm: /^p/i, + midnight: /^ge/i, + noon: /^eg/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + }, + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^gauerdia/i, + noon: /^eguerdia/i, + morning: /goiz/i, + afternoon: /arratsaldea/i, + evening: /arratsaldea/i, + night: /gau/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'wide' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/index.d.ts b/node_modules/date-fns/locale/eu/index.d.ts new file mode 100644 index 00000000..ec841898 --- /dev/null +++ b/node_modules/date-fns/locale/eu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { eu } from 'date-fns/locale' +export default eu diff --git a/node_modules/date-fns/locale/eu/index.js b/node_modules/date-fns/locale/eu/index.js new file mode 100644 index 00000000..e6460a41 --- /dev/null +++ b/node_modules/date-fns/locale/eu/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Basque locale. + * @language Basque + * @iso-639-2 eus + * @author Jacob Söderblom [@JacobSoderblom]{@link https://github.com/JacobSoderblom} + */ +var locale = { + code: 'eu', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/eu/index.js.flow b/node_modules/date-fns/locale/eu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/eu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/eu/package.json b/node_modules/date-fns/locale/eu/package.json new file mode 100644 index 00000000..6051070d --- /dev/null +++ b/node_modules/date-fns/locale/eu/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/eu/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance/index.js new file mode 100644 index 00000000..731112a3 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'کمتر از یک ثانیه', + other: 'کمتر از {{count}} ثانیه' + }, + xSeconds: { + one: '1 ثانیه', + other: '{{count}} ثانیه' + }, + halfAMinute: 'نیم دقیقه', + lessThanXMinutes: { + one: 'کمتر از یک دقیقه', + other: 'کمتر از {{count}} دقیقه' + }, + xMinutes: { + one: '1 دقیقه', + other: '{{count}} دقیقه' + }, + aboutXHours: { + one: 'حدود 1 ساعت', + other: 'حدود {{count}} ساعت' + }, + xHours: { + one: '1 ساعت', + other: '{{count}} ساعت' + }, + xDays: { + one: '1 روز', + other: '{{count}} روز' + }, + aboutXWeeks: { + one: 'حدود 1 هفته', + other: 'حدود {{count}} هفته' + }, + xWeeks: { + one: '1 هفته', + other: '{{count}} هفته' + }, + aboutXMonths: { + one: 'حدود 1 ماه', + other: 'حدود {{count}} ماه' + }, + xMonths: { + one: '1 ماه', + other: '{{count}} ماه' + }, + aboutXYears: { + one: 'حدود 1 سال', + other: 'حدود {{count}} سال' + }, + xYears: { + one: '1 سال', + other: '{{count}} سال' + }, + overXYears: { + one: 'بیشتر از 1 سال', + other: 'بیشتر از {{count}} سال' + }, + almostXYears: { + one: 'نزدیک 1 سال', + other: 'نزدیک {{count}} سال' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'در ' + result; + } else { + return result + ' قبل'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatLong/index.js b/node_modules/date-fns/locale/fa-IR/_lib/formatLong/index.js new file mode 100644 index 00000000..419b04ac --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'yyyy/MM/dd' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'در' {{time}}", + long: "{{date}} 'در' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/_lib/formatRelative/index.js b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative/index.js new file mode 100644 index 00000000..1edf95ff --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'گذشته در' p", + yesterday: "'دیروز در' p", + today: "'امروز در' p", + tomorrow: "'فردا در' p", + nextWeek: "eeee 'در' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/_lib/localize/index.js b/node_modules/date-fns/locale/fa-IR/_lib/localize/index.js new file mode 100644 index 00000000..4e46a0a9 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/localize/index.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ق', 'ب'], + abbreviated: ['ق.م.', 'ب.م.'], + wide: ['قبل از میلاد', 'بعد از میلاد'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['س‌م1', 'س‌م2', 'س‌م3', 'س‌م4'], + wide: ['سه‌ماهه 1', 'سه‌ماهه 2', 'سه‌ماهه 3', 'سه‌ماهه 4'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ژ', 'ف', 'م', 'آ', 'م', 'ج', 'ج', 'آ', 'س', 'ا', 'ن', 'د'], + abbreviated: ['ژانـ', 'فور', 'مارس', 'آپر', 'می', 'جون', 'جولـ', 'آگو', 'سپتـ', 'اکتـ', 'نوامـ', 'دسامـ'], + wide: ['ژانویه', 'فوریه', 'مارس', 'آپریل', 'می', 'جون', 'جولای', 'آگوست', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'] +}; +var dayValues = { + narrow: ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + short: ['1ش', '2ش', '3ش', '4ش', '5ش', 'ج', 'ش'], + abbreviated: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'], + wide: ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'] +}; +var dayPeriodValues = { + narrow: { + am: 'ق', + pm: 'ب', + midnight: 'ن', + noon: 'ظ', + morning: 'ص', + afternoon: 'ب.ظ.', + evening: 'ع', + night: 'ش' + }, + abbreviated: { + am: 'ق.ظ.', + pm: 'ب.ظ.', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + }, + wide: { + am: 'قبل‌ازظهر', + pm: 'بعدازظهر', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ق', + pm: 'ب', + midnight: 'ن', + noon: 'ظ', + morning: 'ص', + afternoon: 'ب.ظ.', + evening: 'ع', + night: 'ش' + }, + abbreviated: { + am: 'ق.ظ.', + pm: 'ب.ظ.', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + }, + wide: { + am: 'قبل‌ازظهر', + pm: 'بعدازظهر', + midnight: 'نیمه‌شب', + noon: 'ظهر', + morning: 'صبح', + afternoon: 'بعدازظهر', + evening: 'عصر', + night: 'شب' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/_lib/match/index.js b/node_modules/date-fns/locale/fa-IR/_lib/match/index.js new file mode 100644 index 00000000..191e7139 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ق|ب)/i, + abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i, + wide: /^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i +}; +var parseEraPatterns = { + any: [/^قبل/i, /^بعد/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^س‌م[1234]/i, + wide: /^سه‌ماهه [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[جژفمآاماسند]/i, + abbreviated: /^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i, + wide: /^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i +}; +var parseMonthPatterns = { + narrow: [/^(ژ|ج)/i, /^ف/i, /^م/i, /^(آ|ا)/i, /^م/i, /^(ژ|ج)/i, /^(ج|ژ)/i, /^(آ|ا)/i, /^س/i, /^ا/i, /^ن/i, /^د/i], + any: [/^ژا/i, /^ف/i, /^ما/i, /^آپ/i, /^(می|مه)/i, /^(ژوئن|جون)/i, /^(ژوئی|جول)/i, /^(اوت|آگ)/i, /^س/i, /^(اوک|اک)/i, /^ن/i, /^د/i] +}; +var matchDayPatterns = { + narrow: /^[شیدسچپج]/i, + short: /^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i, + abbreviated: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i, + wide: /^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i +}; +var parseDayPatterns = { + narrow: [/^ی/i, /^دو/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [/^(ی|1ش|یکشنبه)/i, /^(د|2ش|دوشنبه)/i, /^(س|3ش|سه‌شنبه)/i, /^(چ|4ش|چهارشنبه)/i, /^(پ|5ش|پنجشنبه)/i, /^(ج|جمعه)/i, /^(ش|شنبه)/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i, + abbreviated: /^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i, + wide: /^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(ق|ق.ظ.|قبل‌ازظهر)/i, + pm: /^(ب|ب.ظ.|بعدازظهر)/i, + midnight: /^(‌نیمه‌شب|ن)/i, + noon: /^(ظ|ظهر)/i, + morning: /(ص|صبح)/i, + afternoon: /(ب|ب.ظ.|بعدازظهر)/i, + evening: /(ع|عصر)/i, + night: /(ش|شب)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/index.d.ts b/node_modules/date-fns/locale/fa-IR/index.d.ts new file mode 100644 index 00000000..2e6e4bb2 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { faIR } from 'date-fns/locale' +export default faIR diff --git a/node_modules/date-fns/locale/fa-IR/index.js b/node_modules/date-fns/locale/fa-IR/index.js new file mode 100644 index 00000000..5f3cc3b5 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Persian/Farsi locale (Iran). + * @language Persian + * @iso-639-2 ira + * @author Morteza Ziyae [@mort3za]{@link https://github.com/mort3za} + */ +var locale = { + code: 'fa-IR', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 6 + /* Saturday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fa-IR/index.js.flow b/node_modules/date-fns/locale/fa-IR/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fa-IR/package.json b/node_modules/date-fns/locale/fa-IR/package.json new file mode 100644 index 00000000..ca908258 --- /dev/null +++ b/node_modules/date-fns/locale/fa-IR/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fa-IR/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js new file mode 100644 index 00000000..a45c032e --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatDistance/index.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function futureSeconds(text) { + return text.replace(/sekuntia?/, 'sekunnin'); +} + +function futureMinutes(text) { + return text.replace(/minuuttia?/, 'minuutin'); +} + +function futureHours(text) { + return text.replace(/tuntia?/, 'tunnin'); +} + +function futureDays(text) { + return text.replace(/päivää?/, 'päivän'); +} + +function futureWeeks(text) { + return text.replace(/(viikko|viikkoa)/, 'viikon'); +} + +function futureMonths(text) { + return text.replace(/(kuukausi|kuukautta)/, 'kuukauden'); +} + +function futureYears(text) { + return text.replace(/(vuosi|vuotta)/, 'vuoden'); +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'alle sekunti', + other: 'alle {{count}} sekuntia', + futureTense: futureSeconds + }, + xSeconds: { + one: 'sekunti', + other: '{{count}} sekuntia', + futureTense: futureSeconds + }, + halfAMinute: { + one: 'puoli minuuttia', + other: 'puoli minuuttia', + futureTense: function futureTense(_text) { + return 'puolen minuutin'; + } + }, + lessThanXMinutes: { + one: 'alle minuutti', + other: 'alle {{count}} minuuttia', + futureTense: futureMinutes + }, + xMinutes: { + one: 'minuutti', + other: '{{count}} minuuttia', + futureTense: futureMinutes + }, + aboutXHours: { + one: 'noin tunti', + other: 'noin {{count}} tuntia', + futureTense: futureHours + }, + xHours: { + one: 'tunti', + other: '{{count}} tuntia', + futureTense: futureHours + }, + xDays: { + one: 'päivä', + other: '{{count}} päivää', + futureTense: futureDays + }, + aboutXWeeks: { + one: 'noin viikko', + other: 'noin {{count}} viikkoa', + futureTense: futureWeeks + }, + xWeeks: { + one: 'viikko', + other: '{{count}} viikkoa', + futureTense: futureWeeks + }, + aboutXMonths: { + one: 'noin kuukausi', + other: 'noin {{count}} kuukautta', + futureTense: futureMonths + }, + xMonths: { + one: 'kuukausi', + other: '{{count}} kuukautta', + futureTense: futureMonths + }, + aboutXYears: { + one: 'noin vuosi', + other: 'noin {{count}} vuotta', + futureTense: futureYears + }, + xYears: { + one: 'vuosi', + other: '{{count}} vuotta', + futureTense: futureYears + }, + overXYears: { + one: 'yli vuosi', + other: 'yli {{count}} vuotta', + futureTense: futureYears + }, + almostXYears: { + one: 'lähes vuosi', + other: 'lähes {{count}} vuotta', + futureTense: futureYears + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = count === 1 ? tokenValue.one : tokenValue.other.replace('{{count}}', String(count)); + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return tokenValue.futureTense(result) + ' kuluttua'; + } else { + return result + ' sitten'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/_lib/formatLong/index.js b/node_modules/date-fns/locale/fi/_lib/formatLong/index.js new file mode 100644 index 00000000..e5f98c53 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'eeee d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'd.M.y' +}; +var timeFormats = { + full: 'HH.mm.ss zzzz', + long: 'HH.mm.ss z', + medium: 'HH.mm.ss', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'klo' {{time}}", + long: "{{date}} 'klo' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/_lib/formatRelative/index.js b/node_modules/date-fns/locale/fi/_lib/formatRelative/index.js new file mode 100644 index 00000000..711cddb7 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'viime' eeee 'klo' p", + yesterday: "'eilen klo' p", + today: "'tänään klo' p", + tomorrow: "'huomenna klo' p", + nextWeek: "'ensi' eeee 'klo' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/_lib/localize/index.js b/node_modules/date-fns/locale/fi/_lib/localize/index.js new file mode 100644 index 00000000..01800d2b --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/localize/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['eaa.', 'jaa.'], + abbreviated: ['eaa.', 'jaa.'], + wide: ['ennen ajanlaskun alkua', 'jälkeen ajanlaskun alun'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartaali', '2. kvartaali', '3. kvartaali', '4. kvartaali'] +}; +var monthValues = { + narrow: ['T', 'H', 'M', 'H', 'T', 'K', 'H', 'E', 'S', 'L', 'M', 'J'], + abbreviated: ['tammi', 'helmi', 'maalis', 'huhti', 'touko', 'kesä', 'heinä', 'elo', 'syys', 'loka', 'marras', 'joulu'], + wide: ['tammikuu', 'helmikuu', 'maaliskuu', 'huhtikuu', 'toukokuu', 'kesäkuu', 'heinäkuu', 'elokuu', 'syyskuu', 'lokakuu', 'marraskuu', 'joulukuu'] +}; +var formattingMonthValues = { + narrow: monthValues.narrow, + abbreviated: monthValues.abbreviated, + wide: ['tammikuuta', 'helmikuuta', 'maaliskuuta', 'huhtikuuta', 'toukokuuta', 'kesäkuuta', 'heinäkuuta', 'elokuuta', 'syyskuuta', 'lokakuuta', 'marraskuuta', 'joulukuuta'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'K', 'T', 'P', 'L'], + short: ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'], + abbreviated: ['sunn.', 'maan.', 'tiis.', 'kesk.', 'torst.', 'perj.', 'la'], + wide: ['sunnuntai', 'maanantai', 'tiistai', 'keskiviikko', 'torstai', 'perjantai', 'lauantai'] +}; +var formattingDayValues = { + narrow: dayValues.narrow, + short: dayValues.short, + abbreviated: dayValues.abbreviated, + wide: ['sunnuntaina', 'maanantaina', 'tiistaina', 'keskiviikkona', 'torstaina', 'perjantaina', 'lauantaina'] +}; +var dayPeriodValues = { + narrow: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyö', + noon: 'keskipäivä', + morning: 'ap', + afternoon: 'ip', + evening: 'illalla', + night: 'yöllä' + }, + abbreviated: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyö', + noon: 'keskipäivä', + morning: 'ap', + afternoon: 'ip', + evening: 'illalla', + night: 'yöllä' + }, + wide: { + am: 'ap', + pm: 'ip', + midnight: 'keskiyöllä', + noon: 'keskipäivällä', + morning: 'aamupäivällä', + afternoon: 'iltapäivällä', + evening: 'illalla', + night: 'yöllä' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/_lib/match/index.js b/node_modules/date-fns/locale/fi/_lib/match/index.js new file mode 100644 index 00000000..97a469d6 --- /dev/null +++ b/node_modules/date-fns/locale/fi/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(e|j)/i, + abbreviated: /^(eaa.|jaa.)/i, + wide: /^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i +}; +var parseEraPatterns = { + any: [/^e/i, /^j/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\.? kvartaali/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[thmkeslj]/i, + abbreviated: /^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i, + wide: /^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i +}; +var parseMonthPatterns = { + narrow: [/^t/i, /^h/i, /^m/i, /^h/i, /^t/i, /^k/i, /^h/i, /^e/i, /^s/i, /^l/i, /^m/i, /^j/i], + any: [/^ta/i, /^hel/i, /^maa/i, /^hu/i, /^to/i, /^k/i, /^hei/i, /^e/i, /^s/i, /^l/i, /^mar/i, /^j/i] +}; +var matchDayPatterns = { + narrow: /^[smtkpl]/i, + short: /^(su|ma|ti|ke|to|pe|la)/i, + abbreviated: /^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i, + wide: /^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^k/i, /^t/i, /^p/i, /^l/i], + any: [/^s/i, /^m/i, /^ti/i, /^k/i, /^to/i, /^p/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i, + any: /^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ap/i, + pm: /^ip/i, + midnight: /^keskiyö/i, + noon: /^keskipäivä/i, + morning: /aamupäivällä/i, + afternoon: /iltapäivällä/i, + evening: /illalla/i, + night: /yöllä/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/index.d.ts b/node_modules/date-fns/locale/fi/index.d.ts new file mode 100644 index 00000000..e4007025 --- /dev/null +++ b/node_modules/date-fns/locale/fi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fi } from 'date-fns/locale' +export default fi diff --git a/node_modules/date-fns/locale/fi/index.js b/node_modules/date-fns/locale/fi/index.js new file mode 100644 index 00000000..5453a78f --- /dev/null +++ b/node_modules/date-fns/locale/fi/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Finnish locale. + * @language Finnish + * @iso-639-2 fin + * @author Pyry-Samuli Lahti [@Pyppe]{@link https://github.com/Pyppe} + * @author Edo Rivai [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Samu Juvonen [@sjuvonen]{@link https://github.com/sjuvonen} + */ +var locale = { + code: 'fi', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fi/index.js.flow b/node_modules/date-fns/locale/fi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fi/package.json b/node_modules/date-fns/locale/fi/package.json new file mode 100644 index 00000000..fde42395 --- /dev/null +++ b/node_modules/date-fns/locale/fi/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fi/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA/_lib/formatLong/index.js b/node_modules/date-fns/locale/fr-CA/_lib/formatLong/index.js new file mode 100644 index 00000000..be30d259 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA/index.d.ts b/node_modules/date-fns/locale/fr-CA/index.d.ts new file mode 100644 index 00000000..533b466c --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { frCA } from 'date-fns/locale' +export default frCA diff --git a/node_modules/date-fns/locale/fr-CA/index.js b/node_modules/date-fns/locale/fr-CA/index.js new file mode 100644 index 00000000..976ab871 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../fr/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../fr/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../fr/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../fr/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Same as fr +// Unique for fr-CA + +/** + * @type {Locale} + * @category Locales + * @summary French locale (Canada). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + * @author Gabriele Petrioli [@gpetrioli]{@link https://github.com/gpetrioli} + */ +var locale = { + code: 'fr-CA', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + // Unique for fr-CA + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CA/index.js.flow b/node_modules/date-fns/locale/fr-CA/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fr-CA/package.json b/node_modules/date-fns/locale/fr-CA/package.json new file mode 100644 index 00000000..f094e040 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CA/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fr-CA/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatLong/index.js b/node_modules/date-fns/locale/fr-CH/_lib/formatLong/index.js new file mode 100644 index 00000000..41ab9ddf --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/_lib/formatRelative/index.js b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative/index.js new file mode 100644 index 00000000..dd1e5e0c --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'la semaine dernière à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'la semaine prochaine à' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/index.d.ts b/node_modules/date-fns/locale/fr-CH/index.d.ts new file mode 100644 index 00000000..5fdd3c53 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { frCH } from 'date-fns/locale' +export default frCH diff --git a/node_modules/date-fns/locale/fr-CH/index.js b/node_modules/date-fns/locale/fr-CH/index.js new file mode 100644 index 00000000..c5c2e3e3 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../fr/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../fr/_lib/localize/index.js")); + +var _index3 = _interopRequireDefault(require("../fr/_lib/match/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Same as fr +// Unique for fr-CH + +/** + * @type {Locale} + * @category Locales + * @summary French locale (Switzerland). + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + * @author Van Vuong Ngo [@vanvuongngo]{@link https://github.com/vanvuongngo} + * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} + */ +var locale = { + code: 'fr-CH', + formatDistance: _index.default, + formatLong: _index4.default, + formatRelative: _index5.default, + localize: _index2.default, + match: _index3.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr-CH/index.js.flow b/node_modules/date-fns/locale/fr-CH/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fr-CH/package.json b/node_modules/date-fns/locale/fr-CH/package.json new file mode 100644 index 00000000..f8fd907b --- /dev/null +++ b/node_modules/date-fns/locale/fr-CH/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fr-CH/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fr/_lib/formatDistance/index.js new file mode 100644 index 00000000..8ae9f06e --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'moins d’une seconde', + other: 'moins de {{count}} secondes' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} secondes' + }, + halfAMinute: '30 secondes', + lessThanXMinutes: { + one: 'moins d’une minute', + other: 'moins de {{count}} minutes' + }, + xMinutes: { + one: '1 minute', + other: '{{count}} minutes' + }, + aboutXHours: { + one: 'environ 1 heure', + other: 'environ {{count}} heures' + }, + xHours: { + one: '1 heure', + other: '{{count}} heures' + }, + xDays: { + one: '1 jour', + other: '{{count}} jours' + }, + aboutXWeeks: { + one: 'environ 1 semaine', + other: 'environ {{count}} semaines' + }, + xWeeks: { + one: '1 semaine', + other: '{{count}} semaines' + }, + aboutXMonths: { + one: 'environ 1 mois', + other: 'environ {{count}} mois' + }, + xMonths: { + one: '1 mois', + other: '{{count}} mois' + }, + aboutXYears: { + one: 'environ 1 an', + other: 'environ {{count}} ans' + }, + xYears: { + one: '1 an', + other: '{{count}} ans' + }, + overXYears: { + one: 'plus d’un an', + other: 'plus de {{count}} ans' + }, + almostXYears: { + one: 'presqu’un an', + other: 'presque {{count}} ans' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var form = formatDistanceLocale[token]; + + if (typeof form === 'string') { + result = form; + } else if (count === 1) { + result = form.one; + } else { + result = form.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dans ' + result; + } else { + return 'il y a ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/formatLong/index.js b/node_modules/date-fns/locale/fr/_lib/formatLong/index.js new file mode 100644 index 00000000..26f7e68b --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'à' {{time}}", + long: "{{date}} 'à' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/formatRelative/index.js b/node_modules/date-fns/locale/fr/_lib/formatRelative/index.js new file mode 100644 index 00000000..9a381547 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'dernier à' p", + yesterday: "'hier à' p", + today: "'aujourd’hui à' p", + tomorrow: "'demain à' p'", + nextWeek: "eeee 'prochain à' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/localize/index.js b/node_modules/date-fns/locale/fr/_lib/localize/index.js new file mode 100644 index 00000000..ad53f929 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/localize/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['av. J.-C', 'ap. J.-C'], + abbreviated: ['av. J.-C', 'ap. J.-C'], + wide: ['avant Jésus-Christ', 'après Jésus-Christ'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1er trim.', '2ème trim.', '3ème trim.', '4ème trim.'], + wide: ['1er trimestre', '2ème trimestre', '3ème trimestre', '4ème trimestre'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], + wide: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], + short: ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], + abbreviated: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], + wide: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'mat.', + afternoon: 'ap.m.', + evening: 'soir', + night: 'mat.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'matin', + afternoon: 'après-midi', + evening: 'soir', + night: 'matin' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'minuit', + noon: 'midi', + morning: 'du matin', + afternoon: 'de l’après-midi', + evening: 'du soir', + night: 'du matin' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + if (number === 0) return '0'; + var feminineUnits = ['year', 'week', 'hour', 'minute', 'second']; + var suffix; + + if (number === 1) { + suffix = unit && feminineUnits.includes(unit) ? 'ère' : 'er'; + } else { + suffix = 'ème'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/_lib/match/index.js b/node_modules/date-fns/locale/fr/_lib/match/index.js new file mode 100644 index 00000000..8223c802 --- /dev/null +++ b/node_modules/date-fns/locale/fr/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ième|ère|ème|er|e)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i, + abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(avant Jésus-Christ|après Jésus-Christ)/i +}; +var parseEraPatterns = { + any: [/^av/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^T?[1234]/i, + abbreviated: /^[1234](er|ème|e)? trim\.?/i, + wide: /^[1234](er|ème|e)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i, + wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^av/i, /^ma/i, /^juin/i, /^juil/i, /^ao/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|lu|ma|me|je|ve|sa)/i, + abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i, + wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i, + any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /soir/i, + night: /nuit/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/index.d.ts b/node_modules/date-fns/locale/fr/index.d.ts new file mode 100644 index 00000000..5dc7fe00 --- /dev/null +++ b/node_modules/date-fns/locale/fr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fr } from 'date-fns/locale' +export default fr diff --git a/node_modules/date-fns/locale/fr/index.js b/node_modules/date-fns/locale/fr/index.js new file mode 100644 index 00000000..c0536a39 --- /dev/null +++ b/node_modules/date-fns/locale/fr/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary French locale. + * @language French + * @iso-639-2 fra + * @author Jean Dupouy [@izeau]{@link https://github.com/izeau} + * @author François B [@fbonzon]{@link https://github.com/fbonzon} + */ +var locale = { + code: 'fr', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fr/index.js.flow b/node_modules/date-fns/locale/fr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fr/package.json b/node_modules/date-fns/locale/fr/package.json new file mode 100644 index 00000000..37a176ce --- /dev/null +++ b/node_modules/date-fns/locale/fr/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fr/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/_lib/formatDistance/index.js b/node_modules/date-fns/locale/fy/_lib/formatDistance/index.js new file mode 100644 index 00000000..04143c58 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder as 1 sekonde', + other: 'minder as {{count}} sekonden' + }, + xSeconds: { + one: '1 sekonde', + other: '{{count}} sekonden' + }, + halfAMinute: 'oardel minút', + lessThanXMinutes: { + one: 'minder as 1 minút', + other: 'minder as {{count}} minuten' + }, + xMinutes: { + one: '1 minút', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'sawat 1 oere', + other: 'sawat {{count}} oere' + }, + xHours: { + one: '1 oere', + other: '{{count}} oere' + }, + xDays: { + one: '1 dei', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'sawat 1 wike', + other: 'sawat {{count}} wiken' + }, + xWeeks: { + one: '1 wike', + other: '{{count}} wiken' + }, + aboutXMonths: { + one: 'sawat 1 moanne', + other: 'sawat {{count}} moannen' + }, + xMonths: { + one: '1 moanne', + other: '{{count}} moannen' + }, + aboutXYears: { + one: 'sawat 1 jier', + other: 'sawat {{count}} jier' + }, + xYears: { + one: '1 jier', + other: '{{count}} jier' + }, + overXYears: { + one: 'mear as 1 jier', + other: 'mear as {{count}}s jier' + }, + almostXYears: { + one: 'hast 1 jier', + other: 'hast {{count}} jier' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'oer ' + result; + } else { + return result + ' lyn'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/_lib/formatLong/index.js b/node_modules/date-fns/locale/fy/_lib/formatLong/index.js new file mode 100644 index 00000000..ff7ed1f1 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd-MM-y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/_lib/formatRelative/index.js b/node_modules/date-fns/locale/fy/_lib/formatRelative/index.js new file mode 100644 index 00000000..dea7f463 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'ôfrûne' eeee 'om' p", + yesterday: "'juster om' p", + today: "'hjoed om' p", + tomorrow: "'moarn om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/_lib/localize/index.js b/node_modules/date-fns/locale/fy/_lib/localize/index.js new file mode 100644 index 00000000..51a21790 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['f.K.', 'n.K.'], + abbreviated: ['f.Kr.', 'n.Kr.'], + wide: ['foar Kristus', 'nei Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e fearnsjier', '2e fearnsjier', '3e fearnsjier', '4e fearnsjier'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mai.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['jannewaris', 'febrewaris', 'maart', 'april', 'maaie', 'juny', 'july', 'augustus', 'septimber', 'oktober', 'novimber', 'desimber'] +}; +var dayValues = { + narrow: ['s', 'm', 't', 'w', 't', 'f', 's'], + short: ['si', 'mo', 'ti', 'wo', 'to', 'fr', 'so'], + abbreviated: ['snein', 'moa', 'tii', 'woa', 'ton', 'fre', 'sneon'], + wide: ['snein', 'moandei', 'tiisdei', 'woansdei', 'tongersdei', 'freed', 'sneon'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'middei', + morning: 'moarns', + afternoon: 'middeis', + evening: 'jûns', + night: 'nachts' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/_lib/match/index.js b/node_modules/date-fns/locale/fy/_lib/match/index.js new file mode 100644 index 00000000..107c37e6 --- /dev/null +++ b/node_modules/date-fns/locale/fy/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([fn]\.? ?K\.?)/, + abbreviated: /^([fn]\. ?Kr\.?)/, + wide: /^((foar|nei) Kristus)/ +}; +var parseEraPatterns = { + any: [/^f/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e fearnsjier/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i, + wide: /^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^des/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(si|mo|ti|wo|to|fr|so)/i, + abbreviated: /^(snein|moa|tii|woa|ton|fre|sneon)/i, + wide: /^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^sn/i, /^mo/i, /^ti/i, /^wo/i, /^to/i, /^fr/i, /^sn/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^middei/i, + morning: /moarns/i, + afternoon: /^middeis/i, + evening: /jûns/i, + night: /nachts/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/index.d.ts b/node_modules/date-fns/locale/fy/index.d.ts new file mode 100644 index 00000000..11b41b4b --- /dev/null +++ b/node_modules/date-fns/locale/fy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { fy } from 'date-fns/locale' +export default fy diff --git a/node_modules/date-fns/locale/fy/index.js b/node_modules/date-fns/locale/fy/index.js new file mode 100644 index 00000000..f519c3fc --- /dev/null +++ b/node_modules/date-fns/locale/fy/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Western Frisian locale (Netherlands). + * @language West Frisian + * @iso-639-2 fry + * @author Damon Asberg [@damon02]{@link https://github.com/damon02} + */ +var locale = { + code: 'fy', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/fy/index.js.flow b/node_modules/date-fns/locale/fy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/fy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/fy/package.json b/node_modules/date-fns/locale/fy/package.json new file mode 100644 index 00000000..ccfdb0ee --- /dev/null +++ b/node_modules/date-fns/locale/fy/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/fy/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gd/_lib/formatDistance/index.js new file mode 100644 index 00000000..86196465 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatDistance/index.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'nas lugha na diog', + other: 'nas lugha na {{count}} diogan' + }, + xSeconds: { + one: '1 diog', + two: '2 dhiog', + twenty: '20 diog', + other: '{{count}} diogan' + }, + halfAMinute: 'leth mhionaid', + lessThanXMinutes: { + one: 'nas lugha na mionaid', + other: 'nas lugha na {{count}} mionaidean' + }, + xMinutes: { + one: '1 mionaid', + two: '2 mhionaid', + twenty: '20 mionaid', + other: '{{count}} mionaidean' + }, + aboutXHours: { + one: 'mu uair de thìde', + other: 'mu {{count}} uairean de thìde' + }, + xHours: { + one: '1 uair de thìde', + two: '2 uair de thìde', + twenty: '20 uair de thìde', + other: '{{count}} uairean de thìde' + }, + xDays: { + one: '1 là', + other: '{{count}} là' + }, + aboutXWeeks: { + one: 'mu 1 seachdain', + other: 'mu {{count}} seachdainean' + }, + xWeeks: { + one: '1 seachdain', + other: '{{count}} seachdainean' + }, + aboutXMonths: { + one: 'mu mhìos', + other: 'mu {{count}} mìosan' + }, + xMonths: { + one: '1 mìos', + other: '{{count}} mìosan' + }, + aboutXYears: { + one: 'mu bhliadhna', + other: 'mu {{count}} bliadhnaichean' + }, + xYears: { + one: '1 bhliadhna', + other: '{{count}} bliadhna' + }, + overXYears: { + one: 'còrr is bliadhna', + other: 'còrr is {{count}} bliadhnaichean' + }, + almostXYears: { + one: 'cha mhòr bliadhna', + other: 'cha mhòr {{count}} bliadhnaichean' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && !!tokenValue.two) { + result = tokenValue.two; + } else if (count === 20 && !!tokenValue.twenty) { + result = tokenValue.twenty; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'ann an ' + result; + } else { + return 'o chionn ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/_lib/formatLong/index.js b/node_modules/date-fns/locale/gd/_lib/formatLong/index.js new file mode 100644 index 00000000..4a93a0b2 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'aig' {{time}}", + long: "{{date}} 'aig' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/_lib/formatRelative/index.js b/node_modules/date-fns/locale/gd/_lib/formatRelative/index.js new file mode 100644 index 00000000..9261adf0 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/formatRelative/index.js @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'mu dheireadh' eeee 'aig' p", + //FIX + yesterday: "'an-dè aig' p", + today: "'an-diugh aig' p", + tomorrow: "'a-màireach aig' p", + nextWeek: "eeee 'aig' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/_lib/localize/index.js b/node_modules/date-fns/locale/gd/_lib/localize/index.js new file mode 100644 index 00000000..f036af52 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/localize/index.js @@ -0,0 +1,153 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['R', 'A'], + abbreviated: ['RC', 'AD'], + wide: ['ro Chrìosta', 'anno domini'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['C1', 'C2', 'C3', 'C4'], + wide: ["a' chiad chairteal", 'an dàrna cairteal', 'an treas cairteal', 'an ceathramh cairteal'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['F', 'G', 'M', 'G', 'C', 'Ò', 'I', 'L', 'S', 'D', 'S', 'D'], + abbreviated: ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'], + wide: ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'C', 'A', 'H', 'S'], + short: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], + abbreviated: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + wide: ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'] +}; +var dayPeriodValues = { + narrow: { + am: 'm', + pm: 'f', + midnight: 'm.o.', + noon: 'm.l.', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + }, + abbreviated: { + am: 'M.', + pm: 'F.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + }, + wide: { + am: 'm.', + pm: 'f.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'madainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'oidhche' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'm', + pm: 'f', + midnight: 'm.o.', + noon: 'm.l.', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + }, + abbreviated: { + am: 'M.', + pm: 'F.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + }, + wide: { + am: 'm.', + pm: 'f.', + midnight: 'meadhan oidhche', + noon: 'meadhan là', + morning: 'sa mhadainn', + afternoon: 'feasgar', + evening: 'feasgar', + night: 'air an oidhche' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + 'd'; + + case 2: + return number + 'na'; + } + } + + if (rem100 === 12) { + return number + 'na'; + } + + return number + 'mh'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/_lib/match/index.js b/node_modules/date-fns/locale/gd/_lib/match/index.js new file mode 100644 index 00000000..95de4793 --- /dev/null +++ b/node_modules/date-fns/locale/gd/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(d|na|tr|mh)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(r|a)/i, + abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i, + wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^c[1234]/i, + wide: /^[1234](cd|na|tr|mh)? cairteal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[fgmcòilsd]/i, + abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i, + wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i +}; +var parseMonthPatterns = { + narrow: [/^f/i, /^g/i, /^m/i, /^g/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^s/i, /^d/i, /^s/i, /^d/i], + any: [/^fa/i, /^ge/i, /^mà/i, /^gi/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^su/i, /^d/i, /^sa/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmcahs]/i, + short: /^(dò|lu|mà|ci|ar|ha|sa)/i, + abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i, + wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i], + any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i, + any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^f/i, + midnight: /^meadhan oidhche/i, + noon: /^meadhan là/i, + morning: /sa mhadainn/i, + afternoon: /feasgar/i, + evening: /feasgar/i, + night: /air an oidhche/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/index.d.ts b/node_modules/date-fns/locale/gd/index.d.ts new file mode 100644 index 00000000..2b247442 --- /dev/null +++ b/node_modules/date-fns/locale/gd/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gd } from 'date-fns/locale' +export default gd diff --git a/node_modules/date-fns/locale/gd/index.js b/node_modules/date-fns/locale/gd/index.js new file mode 100644 index 00000000..0bec2d73 --- /dev/null +++ b/node_modules/date-fns/locale/gd/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Scottish Gaelic. + * @language Scottish Gaelic + * @iso-639-2 gla + * @author Lee Driscoll [@leedriscoll]{@link https://github.com/leedriscoll} + */ +var locale = { + code: 'gd', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gd/index.js.flow b/node_modules/date-fns/locale/gd/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/gd/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/gd/package.json b/node_modules/date-fns/locale/gd/package.json new file mode 100644 index 00000000..25e62f4b --- /dev/null +++ b/node_modules/date-fns/locale/gd/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/gd/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gl/_lib/formatDistance/index.js new file mode 100644 index 00000000..f6333a39 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos dun segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'medio minuto', + lessThanXMinutes: { + one: 'menos dun minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'arredor dunha hora', + other: 'arredor de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 día', + other: '{{count}} días' + }, + aboutXWeeks: { + one: 'arredor dunha semana', + other: 'arredor de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'arredor de 1 mes', + other: 'arredor de {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'arredor dun ano', + other: 'arredor de {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'máis dun ano', + other: 'máis de {{count}} anos' + }, + almostXYears: { + one: 'case un ano', + other: 'case {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'en ' + result; + } else { + return 'hai ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/_lib/formatLong/index.js b/node_modules/date-fns/locale/gl/_lib/formatLong/index.js new file mode 100644 index 00000000..6ec414cd --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'ás' {{time}}", + long: "{{date}} 'ás' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/_lib/formatRelative/index.js b/node_modules/date-fns/locale/gl/_lib/formatRelative/index.js new file mode 100644 index 00000000..56de5e6f --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/formatRelative/index.js @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'o' eeee 'pasado á' LT", + yesterday: "'onte á' p", + today: "'hoxe á' p", + tomorrow: "'mañá á' p", + nextWeek: "eeee 'á' p", + other: 'P' +}; +var formatRelativeLocalePlural = { + lastWeek: "'o' eeee 'pasado ás' p", + yesterday: "'onte ás' p", + today: "'hoxe ás' p", + tomorrow: "'mañá ás' p", + nextWeek: "eeee 'ás' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + if (date.getUTCHours() !== 1) { + return formatRelativeLocalePlural[token]; + } + + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/_lib/localize/index.js b/node_modules/date-fns/locale/gl/_lib/localize/index.js new file mode 100644 index 00000000..17ddf167 --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'despois de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['e', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['xan', 'feb', 'mar', 'abr', 'mai', 'xun', 'xul', 'ago', 'set', 'out', 'nov', 'dec'], + wide: ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['do', 'lu', 'ma', 'me', 'xo', 've', 'sa'], + abbreviated: ['dom', 'lun', 'mar', 'mer', 'xov', 'ven', 'sab'], + wide: ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tardiña', + night: 'noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'mañá', + afternoon: 'tarde', + evening: 'tardiña', + night: 'noite' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'medianoite', + noon: 'mediodía', + morning: 'da mañá', + afternoon: 'da tarde', + evening: 'da tardiña', + night: 'da noite' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/_lib/match/index.js b/node_modules/date-fns/locale/gl/_lib/match/index.js new file mode 100644 index 00000000..eb5051ff --- /dev/null +++ b/node_modules/date-fns/locale/gl/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era com[uú]n)/i, /^(despois de cristo|era com[uú]n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[xfmasond]/i, + abbreviated: /^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i, + wide: /^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i +}; +var parseMonthPatterns = { + narrow: [/^x/i, /^f/i, /^m/i, /^a/i, /^m/i, /^x/i, /^x/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^xan/i, /^feb/i, /^mar/i, /^abr/i, /^mai/i, /^xun/i, /^xul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[dlmxvs]/i, + short: /^(do|lu|ma|me|xo|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|xov|ven|sab)/i, + wide: /^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^x/i, /^v/i, /^s/i], + any: [/^do/i, /^lu/i, /^ma/i, /^me/i, /^xo/i, /^ve/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /^md/i, + morning: /mañ[aá]/i, + afternoon: /tarde/i, + evening: /tardiña/i, + night: /noite/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/index.d.ts b/node_modules/date-fns/locale/gl/index.d.ts new file mode 100644 index 00000000..67954c68 --- /dev/null +++ b/node_modules/date-fns/locale/gl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gl } from 'date-fns/locale' +export default gl diff --git a/node_modules/date-fns/locale/gl/index.js b/node_modules/date-fns/locale/gl/index.js new file mode 100644 index 00000000..bc348bf2 --- /dev/null +++ b/node_modules/date-fns/locale/gl/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Galician locale. + * @language Galician + * @iso-639-2 glg + * @author Alberto Doval - Cocodin Technology[@cocodinTech]{@link https://github.com/cocodinTech} + * @author Fidel Pita [@fidelpita]{@link https://github.com/fidelpita} + */ +var locale = { + code: 'gl', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gl/index.js.flow b/node_modules/date-fns/locale/gl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/gl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/gl/package.json b/node_modules/date-fns/locale/gl/package.json new file mode 100644 index 00000000..35570fe1 --- /dev/null +++ b/node_modules/date-fns/locale/gl/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/gl/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js new file mode 100644 index 00000000..c4959b8c --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatDistance/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'હમણાં', + // CLDR #1461 + other: '​આશરે {{count}} સેકંડ' + }, + xSeconds: { + one: '1 સેકંડ', + other: '{{count}} સેકંડ' + }, + halfAMinute: 'અડધી મિનિટ', + lessThanXMinutes: { + one: 'આ મિનિટ', + // CLDR #1448 + other: '​આશરે {{count}} મિનિટ' + }, + xMinutes: { + one: '1 મિનિટ', + other: '{{count}} મિનિટ' + }, + aboutXHours: { + one: '​આશરે 1 કલાક', + other: '​આશરે {{count}} કલાક' + }, + xHours: { + one: '1 કલાક', + other: '{{count}} કલાક' + }, + xDays: { + one: '1 દિવસ', + other: '{{count}} દિવસ' + }, + aboutXWeeks: { + one: 'આશરે 1 અઠવાડિયું', + other: 'આશરે {{count}} અઠવાડિયા' + }, + xWeeks: { + one: '1 અઠવાડિયું', + other: '{{count}} અઠવાડિયા' + }, + aboutXMonths: { + one: 'આશરે 1 મહિનો', + other: 'આશરે {{count}} મહિના' + }, + xMonths: { + one: '1 મહિનો', + other: '{{count}} મહિના' + }, + aboutXYears: { + one: 'આશરે 1 વર્ષ', + other: 'આશરે {{count}} વર્ષ' + }, + xYears: { + one: '1 વર્ષ', + other: '{{count}} વર્ષ' + }, + overXYears: { + one: '1 વર્ષથી વધુ', + other: '{{count}} વર્ષથી વધુ' + }, + almostXYears: { + one: 'લગભગ 1 વર્ષ', + other: 'લગભગ {{count}} વર્ષ' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'માં'; + } else { + return result + ' પહેલાં'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/_lib/formatLong/index.js b/node_modules/date-fns/locale/gu/_lib/formatLong/index.js new file mode 100644 index 00000000..50d4ac2d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatLong/index.js @@ -0,0 +1,59 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +//Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +var dateFormats = { + full: 'EEEE, d MMMM, y', + // CLDR #1825 + long: 'd MMMM, y', + // CLDR #1826 + medium: 'd MMM, y', + // CLDR #1827 + short: 'd/M/yy' // CLDR #1828 + +}; +var timeFormats = { + full: 'hh:mm:ss a zzzz', + // CLDR #1829 + long: 'hh:mm:ss a z', + // CLDR #1830 + medium: 'hh:mm:ss a', + // CLDR #1831 + short: 'hh:mm a' // CLDR #1832 + +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + // CLDR #1833 + long: '{{date}} {{time}}', + // CLDR #1834 + medium: '{{date}} {{time}}', + // CLDR #1835 + short: '{{date}} {{time}}' // CLDR #1836 + +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js b/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js new file mode 100644 index 00000000..04d3700d --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/formatRelative/index.js @@ -0,0 +1,28 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +// Source: https://www.unicode.org/cldr/charts/32/summary/gu.html +var formatRelativeLocale = { + lastWeek: "'પાછલા' eeee p", + // CLDR #1384 + yesterday: "'ગઈકાલે' p", + // CLDR #1409 + today: "'આજે' p", + // CLDR #1410 + tomorrow: "'આવતીકાલે' p", + // CLDR #1411 + nextWeek: 'eeee p', + // CLDR #1386 + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/_lib/localize/index.js b/node_modules/date-fns/locale/gu/_lib/localize/index.js new file mode 100644 index 00000000..f6c88083 --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/localize/index.js @@ -0,0 +1,160 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1621 - #1630 +var eraValues = { + narrow: ['ઈસપૂ', 'ઈસ'], + abbreviated: ['ઈ.સ.પૂર્વે', 'ઈ.સ.'], + wide: ['ઈસવીસન પૂર્વે', 'ઈસવીસન'] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1631 - #1654 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1લો ત્રિમાસ', '2જો ત્રિમાસ', '3જો ત્રિમાસ', '4થો ત્રિમાસ'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1655 - #1726 + +var monthValues = { + narrow: ['જા', 'ફે', 'મા', 'એ', 'મે', 'જૂ', 'જુ', 'ઓ', 'સ', 'ઓ', 'ન', 'ડિ'], + abbreviated: ['જાન્યુ', 'ફેબ્રુ', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઈ', 'ઑગસ્ટ', 'સપ્ટે', 'ઓક્ટો', 'નવે', 'ડિસે'], + wide: ['જાન્યુઆરી', 'ફેબ્રુઆરી', 'માર્ચ', 'એપ્રિલ', 'મે', 'જૂન', 'જુલાઇ', 'ઓગસ્ટ', 'સપ્ટેમ્બર', 'ઓક્ટોબર', 'નવેમ્બર', 'ડિસેમ્બર'] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1727 - #1768 + +var dayValues = { + narrow: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'], + short: ['ર', 'સો', 'મં', 'બુ', 'ગુ', 'શુ', 'શ'], + abbreviated: ['રવિ', 'સોમ', 'મંગળ', 'બુધ', 'ગુરુ', 'શુક્ર', 'શનિ'], + wide: ['રવિવાર' + /* Sunday */ + , 'સોમવાર' + /* Monday */ + , 'મંગળવાર' + /* Tuesday */ + , 'બુધવાર' + /* Wednesday */ + , 'ગુરુવાર' + /* Thursday */ + , 'શુક્રવાર' + /* Friday */ + , 'શનિવાર' + /* Saturday */ + ] +}; // https://www.unicode.org/cldr/charts/32/summary/gu.html +// #1783 - #1824 + +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'મ.રાત્રિ', + noon: 'બ.', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'મ.રાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: '​મધ્યરાત્રિ', + noon: 'બપોરે', + morning: 'સવારે', + afternoon: 'બપોરે', + evening: 'સાંજે', + night: 'રાત્રે' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/_lib/match/index.js b/node_modules/date-fns/locale/gu/_lib/match/index.js new file mode 100644 index 00000000..e422e84a --- /dev/null +++ b/node_modules/date-fns/locale/gu/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ઈસપૂ|ઈસ)/i, + abbreviated: /^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i, + wide: /^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i +}; +var parseEraPatterns = { + any: [/^ઈસપૂ/i, /^ઈસ/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](લો|જો|થો)? ત્રિમાસ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[જાફેમાએમેજૂજુઓસઓનડિ]/i, + abbreviated: /^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i, + wide: /^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i +}; +var parseMonthPatterns = { + narrow: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i], + any: [/^જા/i, /^ફે/i, /^મા/i, /^એ/i, /^મે/i, /^જૂ/i, /^જુ/i, /^ઑગ/i, /^સ/i, /^ઓક્ટો/i, /^ન/i, /^ડિ/i] +}; +var matchDayPatterns = { + narrow: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + short: /^(ર|સો|મં|બુ|ગુ|શુ|શ)/i, + abbreviated: /^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i, + wide: /^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i +}; +var parseDayPatterns = { + narrow: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i], + any: [/^ર/i, /^સો/i, /^મં/i, /^બુ/i, /^ગુ/i, /^શુ/i, /^શ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|મ\.?|સ|બ|સાં|રા)/i, + any: /^(a|p|મ\.?|સ|બ|સાં|રા)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^મ\.?/i, + noon: /^બ/i, + morning: /સ/i, + afternoon: /બ/i, + evening: /સાં/i, + night: /રા/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/index.d.ts b/node_modules/date-fns/locale/gu/index.d.ts new file mode 100644 index 00000000..42642b64 --- /dev/null +++ b/node_modules/date-fns/locale/gu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { gu } from 'date-fns/locale' +export default gu diff --git a/node_modules/date-fns/locale/gu/index.js b/node_modules/date-fns/locale/gu/index.js new file mode 100644 index 00000000..90804e78 --- /dev/null +++ b/node_modules/date-fns/locale/gu/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Gujarati locale (India). + * @language Gujarati + * @iso-639-2 guj + * @author Manaday Mavani [@ManadayM]{@link https://github.com/manadaym} + */ +var locale = { + code: 'gu', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/gu/index.js.flow b/node_modules/date-fns/locale/gu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/gu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/gu/package.json b/node_modules/date-fns/locale/gu/package.json new file mode 100644 index 00000000..4d0acd5a --- /dev/null +++ b/node_modules/date-fns/locale/gu/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/gu/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/_lib/formatDistance/index.js b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js new file mode 100644 index 00000000..ef6cb219 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatDistance/index.js @@ -0,0 +1,122 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'פחות משנייה', + two: 'פחות משתי שניות', + other: 'פחות מ־{{count}} שניות' + }, + xSeconds: { + one: 'שנייה', + two: 'שתי שניות', + other: '{{count}} שניות' + }, + halfAMinute: 'חצי דקה', + lessThanXMinutes: { + one: 'פחות מדקה', + two: 'פחות משתי דקות', + other: 'פחות מ־{{count}} דקות' + }, + xMinutes: { + one: 'דקה', + two: 'שתי דקות', + other: '{{count}} דקות' + }, + aboutXHours: { + one: 'כשעה', + two: 'כשעתיים', + other: 'כ־{{count}} שעות' + }, + xHours: { + one: 'שעה', + two: 'שעתיים', + other: '{{count}} שעות' + }, + xDays: { + one: 'יום', + two: 'יומיים', + other: '{{count}} ימים' + }, + aboutXWeeks: { + one: 'כשבוע', + two: 'כשבועיים', + other: 'כ־{{count}} שבועות' + }, + xWeeks: { + one: 'שבוע', + two: 'שבועיים', + other: '{{count}} שבועות' + }, + aboutXMonths: { + one: 'כחודש', + two: 'כחודשיים', + other: 'כ־{{count}} חודשים' + }, + xMonths: { + one: 'חודש', + two: 'חודשיים', + other: '{{count}} חודשים' + }, + aboutXYears: { + one: 'כשנה', + two: 'כשנתיים', + other: 'כ־{{count}} שנים' + }, + xYears: { + one: 'שנה', + two: 'שנתיים', + other: '{{count}} שנים' + }, + overXYears: { + one: 'יותר משנה', + two: 'יותר משנתיים', + other: 'יותר מ־{{count}} שנים' + }, + almostXYears: { + one: 'כמעט שנה', + two: 'כמעט שנתיים', + other: 'כמעט {{count}} שנים' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + // Return word instead of `in one day` or `one day ago` + if (token === 'xDays' && options !== null && options !== void 0 && options.addSuffix && count <= 2) { + if (options.comparison && options.comparison > 0) { + return count === 1 ? 'מחר' : 'מחרתיים'; + } + + return count === 1 ? 'אתמול' : 'שלשום'; + } + + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'בעוד ' + result; + } else { + return 'לפני ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/_lib/formatLong/index.js b/node_modules/date-fns/locale/he/_lib/formatLong/index.js new file mode 100644 index 00000000..7de2f82f --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d בMMMM y', + long: 'd בMMMM y', + medium: 'd בMMM y', + short: 'd.M.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'בשעה' {{time}}", + long: "{{date}} 'בשעה' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/_lib/formatRelative/index.js b/node_modules/date-fns/locale/he/_lib/formatRelative/index.js new file mode 100644 index 00000000..38266c25 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'שעבר בשעה' p", + yesterday: "'אתמול בשעה' p", + today: "'היום בשעה' p", + tomorrow: "'מחר בשעה' p", + nextWeek: "eeee 'בשעה' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/_lib/localize/index.js b/node_modules/date-fns/locale/he/_lib/localize/index.js new file mode 100644 index 00000000..ab43a857 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['לפנה״ס', 'לספירה'], + abbreviated: ['לפנה״ס', 'לספירה'], + wide: ['לפני הספירה', 'לספירה'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['רבעון 1', 'רבעון 2', 'רבעון 3', 'רבעון 4'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'], + wide: ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'] +}; +var dayValues = { + narrow: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], + short: ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'], + abbreviated: ['יום א׳', 'יום ב׳', 'יום ג׳', 'יום ד׳', 'יום ה׳', 'יום ו׳', 'שבת'], + wide: ['יום ראשון', 'יום שני', 'יום שלישי', 'יום רביעי', 'יום חמישי', 'יום שישי', 'יום שבת'] +}; +var dayPeriodValues = { + narrow: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + }, + abbreviated: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + }, + wide: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בוקר', + afternoon: 'אחר הצהריים', + evening: 'ערב', + night: 'לילה' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'בצהריים', + evening: 'בערב', + night: 'בלילה' + }, + abbreviated: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'אחר הצהריים', + evening: 'בערב', + night: 'בלילה' + }, + wide: { + am: 'לפנה״צ', + pm: 'אחה״צ', + midnight: 'חצות', + noon: 'צהריים', + morning: 'בבוקר', + afternoon: 'אחר הצהריים', + evening: 'בערב', + night: 'בלילה' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); // We only show words till 10 + + if (number <= 0 || number > 10) return String(number); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var isFemale = ['year', 'hour', 'minute', 'second'].indexOf(unit) >= 0; + var male = ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שביעי', 'שמיני', 'תשיעי', 'עשירי']; + var female = ['ראשונה', 'שנייה', 'שלישית', 'רביעית', 'חמישית', 'שישית', 'שביעית', 'שמינית', 'תשיעית', 'עשירית']; + var index = number - 1; + return isFemale ? female[index] : male[index]; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/_lib/match/index.js b/node_modules/date-fns/locale/he/_lib/match/index.js new file mode 100644 index 00000000..0a535cf2 --- /dev/null +++ b/node_modules/date-fns/locale/he/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i; +var parseOrdinalNumberPattern = /^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i; +var matchEraPatterns = { + narrow: /^ל(ספירה|פנה״ס)/i, + abbreviated: /^ל(ספירה|פנה״ס)/i, + wide: /^ל(פני ה)?ספירה/i +}; +var parseEraPatterns = { + any: [/^לפ/i, /^לס/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^רבעון [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^\d+/i, + abbreviated: /^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i, + wide: /^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i +}; +var parseMonthPatterns = { + narrow: [/^1$/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ינ/i, /^פ/i, /^מר/i, /^אפ/i, /^מא/i, /^יונ/i, /^יול/i, /^אוג/i, /^ס/i, /^אוק/i, /^נ/i, /^ד/i] +}; +var matchDayPatterns = { + narrow: /^[אבגדהוש]׳/i, + short: /^[אבגדהוש]׳/i, + abbreviated: /^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i, + wide: /^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i +}; +var parseDayPatterns = { + abbreviated: [/א׳$/i, /ב׳$/i, /ג׳$/i, /ד׳$/i, /ה׳$/i, /ו׳$/i, /^ש/i], + wide: [/ן$/i, /ני$/i, /לישי$/i, /עי$/i, /מישי$/i, /שישי$/i, /ת$/i], + any: [/^א/i, /^ב/i, /^ג/i, /^ד/i, /^ה/i, /^ו/i, /^ש/i] +}; +var matchDayPeriodPatterns = { + any: /^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^לפ/i, + pm: /^אחה/i, + midnight: /^ח/i, + noon: /^צ/i, + morning: /בוקר/i, + afternoon: /בצ|אחר/i, + evening: /ערב/i, + night: /לילה/i + } +}; +var ordinalName = ['רא', 'שנ', 'של', 'רב', 'ח', 'שי', 'שב', 'שמ', 'ת', 'ע']; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + var number = parseInt(value, 10); + return isNaN(number) ? ordinalName.indexOf(value) + 1 : number; + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/index.d.ts b/node_modules/date-fns/locale/he/index.d.ts new file mode 100644 index 00000000..33d6042f --- /dev/null +++ b/node_modules/date-fns/locale/he/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { he } from 'date-fns/locale' +export default he diff --git a/node_modules/date-fns/locale/he/index.js b/node_modules/date-fns/locale/he/index.js new file mode 100644 index 00000000..d316aab1 --- /dev/null +++ b/node_modules/date-fns/locale/he/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Hebrew locale. + * @language Hebrew + * @iso-639-2 heb + * @author Nir Lahad [@nirlah]{@link https://github.com/nirlah} + */ +var locale = { + code: 'he', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/he/index.js.flow b/node_modules/date-fns/locale/he/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/he/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/he/package.json b/node_modules/date-fns/locale/he/package.json new file mode 100644 index 00000000..b778e539 --- /dev/null +++ b/node_modules/date-fns/locale/he/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/he/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hi/_lib/formatDistance/index.js new file mode 100644 index 00000000..c15a45b2 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatDistance/index.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = require("../localize/index.js"); + +var formatDistanceLocale = { + lessThanXSeconds: { + one: '१ सेकंड से कम', + // CLDR #1310 + other: '{{count}} सेकंड से कम' + }, + xSeconds: { + one: '१ सेकंड', + other: '{{count}} सेकंड' + }, + halfAMinute: 'आधा मिनट', + lessThanXMinutes: { + one: '१ मिनट से कम', + other: '{{count}} मिनट से कम' + }, + xMinutes: { + one: '१ मिनट', + // CLDR #1307 + other: '{{count}} मिनट' + }, + aboutXHours: { + one: 'लगभग १ घंटा', + other: 'लगभग {{count}} घंटे' + }, + xHours: { + one: '१ घंटा', + // CLDR #1304 + other: '{{count}} घंटे' // CLDR #4467 + + }, + xDays: { + one: '१ दिन', + // CLDR #1286 + other: '{{count}} दिन' + }, + aboutXWeeks: { + one: 'लगभग १ सप्ताह', + other: 'लगभग {{count}} सप्ताह' + }, + xWeeks: { + one: '१ सप्ताह', + other: '{{count}} सप्ताह' + }, + aboutXMonths: { + one: 'लगभग १ महीना', + other: 'लगभग {{count}} महीने' + }, + xMonths: { + one: '१ महीना', + other: '{{count}} महीने' + }, + aboutXYears: { + one: 'लगभग १ वर्ष', + other: 'लगभग {{count}} वर्ष' // CLDR #4823 + + }, + xYears: { + one: '१ वर्ष', + other: '{{count}} वर्ष' + }, + overXYears: { + one: '१ वर्ष से अधिक', + other: '{{count}} वर्ष से अधिक' + }, + almostXYears: { + one: 'लगभग १ वर्ष', + other: 'लगभग {{count}} वर्ष' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', (0, _index.numberToLocale)(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'मे '; + } else { + return result + ' पहले'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/_lib/formatLong/index.js b/node_modules/date-fns/locale/hi/_lib/formatLong/index.js new file mode 100644 index 00000000..3fac79a6 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatLong/index.js @@ -0,0 +1,58 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM, y', + // CLDR #1787 + long: 'do MMMM, y', + // CLDR #1788 + medium: 'd MMM, y', + // CLDR #1789 + short: 'dd/MM/yyyy' // CLDR #1790 + +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + // CLDR #1791 + long: 'h:mm:ss a z', + // CLDR #1792 + medium: 'h:mm:ss a', + // CLDR #1793 + short: 'h:mm a' // CLDR #1794 + +}; +var dateTimeFormats = { + full: "{{date}} 'को' {{time}}", + // CLDR #1795 + long: "{{date}} 'को' {{time}}", + // CLDR #1796 + medium: '{{date}}, {{time}}', + // CLDR #1797 + short: '{{date}}, {{time}}' // CLDR #1798 + +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/_lib/formatRelative/index.js b/node_modules/date-fns/locale/hi/_lib/formatRelative/index.js new file mode 100644 index 00000000..1c137bad --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'पिछले' eeee p", + yesterday: "'कल' p", + today: "'आज' p", + tomorrow: "'कल' p", + nextWeek: "eeee 'को' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/_lib/localize/index.js b/node_modules/date-fns/locale/hi/_lib/localize/index.js new file mode 100644 index 00000000..184af634 --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/localize/index.js @@ -0,0 +1,182 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +exports.localeToNumber = localeToNumber; +exports.numberToLocale = numberToLocale; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var numberValues = { + locale: { + '1': '१', + '2': '२', + '3': '३', + '4': '४', + '5': '५', + '6': '६', + '7': '७', + '8': '८', + '9': '९', + '0': '०' + }, + number: { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0' + } +}; // CLDR #1585 - #1592 + +var eraValues = { + narrow: ['ईसा-पूर्व', 'ईस्वी'], + abbreviated: ['ईसा-पूर्व', 'ईस्वी'], + wide: ['ईसा-पूर्व', 'ईसवी सन'] +}; // CLDR #1593 - #1616 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ति1', 'ति2', 'ति3', 'ति4'], + wide: ['पहली तिमाही', 'दूसरी तिमाही', 'तीसरी तिमाही', 'चौथी तिमाही'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. +// https://www.unicode.org/cldr/charts/32/summary/hi.html +// CLDR #1617 - #1688 + +var monthValues = { + narrow: ['ज', 'फ़', 'मा', 'अ', 'मई', 'जू', 'जु', 'अग', 'सि', 'अक्टू', 'न', 'दि'], + abbreviated: ['जन', 'फ़र', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुल', 'अग', 'सित', 'अक्टू', 'नव', 'दिस'], + wide: ['जनवरी', 'फ़रवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'] +}; // CLDR #1689 - #1744 + +var dayValues = { + narrow: ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], + short: ['र', 'सो', 'मं', 'बु', 'गु', 'शु', 'श'], + abbreviated: ['रवि', 'सोम', 'मंगल', 'बुध', 'गुरु', 'शुक्र', 'शनि'], + wide: ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'गुरुवार', 'शुक्रवार', 'शनिवार'] +}; +var dayPeriodValues = { + narrow: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + abbreviated: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + wide: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + abbreviated: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + }, + wide: { + am: 'पूर्वाह्न', + pm: 'अपराह्न', + midnight: 'मध्यरात्रि', + noon: 'दोपहर', + morning: 'सुबह', + afternoon: 'दोपहर', + evening: 'शाम', + night: 'रात' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return numberToLocale(number); +}; + +function localeToNumber(locale) { + var enNumber = locale.toString().replace(/[१२३४५६७८९०]/g, function (match) { + return numberValues.number[match]; + }); + return Number(enNumber); +} + +function numberToLocale(enNumber) { + return enNumber.toString().replace(/\d/g, function (match) { + return numberValues.locale[match]; + }); +} + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/_lib/match/index.js b/node_modules/date-fns/locale/hi/_lib/match/index.js new file mode 100644 index 00000000..bd36f46b --- /dev/null +++ b/node_modules/date-fns/locale/hi/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index3 = require("../localize/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +var parseOrdinalNumberPattern = /^[०१२३४५६७८९]+/i; +var matchEraPatterns = { + narrow: /^(ईसा-पूर्व|ईस्वी)/i, + abbreviated: /^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i, + wide: /^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ति[1234]/i, + wide: /^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i, + abbreviated: /^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i, + wide: /^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i +}; +var parseMonthPatterns = { + narrow: [/^ज/i, /^फ़/i, /^मा/i, /^अप्/i, /^मई/i, /^जू/i, /^जु/i, /^अग/i, /^सि/i, /^अक्तू/i, /^न/i, /^दि/i], + any: [/^जन/i, /^फ़/i, /^मा/i, /^अप्/i, /^मई/i, /^जू/i, /^जु/i, /^अग/i, /^सि/i, /^अक्तू/i, /^नव/i, /^दिस/i] +}; +var matchDayPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[रविसोममंगलबुधगुरुशुक्रशनि]/i, + short: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + abbreviated: /^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i, + wide: /^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i +}; +var parseDayPatterns = { + narrow: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i], + any: [/^रवि/i, /^सोम/i, /^मंगल/i, /^बुध/i, /^गुरु/i, /^शुक्र/i, /^शनि/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(पू|अ|म|द.\?|सु|दो|शा|रा)/i, + any: /^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^पूर्वाह्न/i, + pm: /^अपराह्न/i, + midnight: /^मध्य/i, + noon: /^दो/i, + morning: /सु/i, + afternoon: /दो/i, + evening: /शा/i, + night: /रा/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: _index3.localeToNumber + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/index.d.ts b/node_modules/date-fns/locale/hi/index.d.ts new file mode 100644 index 00000000..089bdd9e --- /dev/null +++ b/node_modules/date-fns/locale/hi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hi } from 'date-fns/locale' +export default hi diff --git a/node_modules/date-fns/locale/hi/index.js b/node_modules/date-fns/locale/hi/index.js new file mode 100644 index 00000000..ca55aa41 --- /dev/null +++ b/node_modules/date-fns/locale/hi/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Hindi locale (India). + * @language Hindi + * @iso-639-2 hin + * @author Mukesh Mandiwal [@mukeshmandiwal]{@link https://github.com/mukeshmandiwal} + */ +var locale = { + code: 'hi', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hi/index.js.flow b/node_modules/date-fns/locale/hi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/hi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/hi/package.json b/node_modules/date-fns/locale/hi/package.json new file mode 100644 index 00000000..f00a4e57 --- /dev/null +++ b/node_modules/date-fns/locale/hi/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/hi/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hr/_lib/formatDistance/index.js new file mode 100644 index 00000000..76a1a43c --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatDistance/index.js @@ -0,0 +1,183 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 tjedan', + withPrepositionAgo: 'oko 1 tjedan', + withPrepositionIn: 'oko 1 tjedan' + }, + dual: 'oko {{count}} tjedna', + other: 'oko {{count}} tjedana' + }, + xWeeks: { + one: { + standalone: '1 tjedan', + withPrepositionAgo: '1 tjedan', + withPrepositionIn: '1 tjedan' + }, + dual: '{{count}} tjedna', + other: '{{count}} tjedana' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mjesec', + withPrepositionAgo: 'oko 1 mjesec', + withPrepositionIn: 'oko 1 mjesec' + }, + dual: 'oko {{count}} mjeseca', + other: 'oko {{count}} mjeseci' + }, + xMonths: { + one: { + standalone: '1 mjesec', + withPrepositionAgo: '1 mjesec', + withPrepositionIn: '1 mjesec' + }, + dual: '{{count}} mjeseca', + other: '{{count}} mjeseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'prije ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/_lib/formatLong/index.js b/node_modules/date-fns/locale/hr/_lib/formatLong/index.js new file mode 100644 index 00000000..995cee51 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM y.', + long: 'd. MMMM y.', + medium: 'd. MMM y.', + short: 'dd. MM. y.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/_lib/formatRelative/index.js b/node_modules/date-fns/locale/hr/_lib/formatRelative/index.js new file mode 100644 index 00000000..23f1025b --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/formatRelative/index.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošlu nedjelju u' p"; + + case 3: + return "'prošlu srijedu u' p"; + + case 6: + return "'prošlu subotu u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'jučer u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'iduću nedjelju u' p"; + + case 3: + return "'iduću srijedu u' p"; + + case 6: + return "'iduću subotu u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/_lib/localize/index.js b/node_modules/date-fns/locale/hr/_lib/localize/index.js new file mode 100644 index 00000000..1e211058 --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Kr.', 'po. Kr.'], + wide: ['Prije Krista', 'Poslije Krista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], + wide: ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['sij', 'velj', 'ožu', 'tra', 'svi', 'lip', 'srp', 'kol', 'ruj', 'lis', 'stu', 'pro'], + wide: ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenog', 'prosinca'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sri', 'čet', 'pet', 'sub'], + wide: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'poslije podne', + evening: 'navečer', + night: 'noću' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'popodne', + evening: 'navečer', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutro', + afternoon: 'poslije podne', + evening: 'navečer', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/_lib/match/index.js b/node_modules/date-fns/locale/hr/_lib/match/index.js new file mode 100644 index 00000000..6c92c0bd --- /dev/null +++ b/node_modules/date-fns/locale/hr/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Kr\.|po\.\s?Kr\.)/i, + wide: /^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i, + wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i +}; +var parseMonthPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i, /8/i, /9/i, /10/i, /11/i, /12/i], + abbreviated: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i], + wide: [/^sij/i, /^velj/i, /^(ožu|ozu)/i, /^tra/i, /^svi/i, /^lip/i, /^srp/i, /^kol/i, /^ruj/i, /^lis/i, /^stu/i, /^pro/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i, + wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(poslije\s|po)+podne/i, + evening: /(navece|naveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/index.d.ts b/node_modules/date-fns/locale/hr/index.d.ts new file mode 100644 index 00000000..025baa3b --- /dev/null +++ b/node_modules/date-fns/locale/hr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hr } from 'date-fns/locale' +export default hr diff --git a/node_modules/date-fns/locale/hr/index.js b/node_modules/date-fns/locale/hr/index.js new file mode 100644 index 00000000..c5402df0 --- /dev/null +++ b/node_modules/date-fns/locale/hr/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Croatian locale. + * @language Croatian + * @iso-639-2 hrv + * @author Matija Marohnić [@silvenon]{@link https://github.com/silvenon} + * @author Manico [@manico]{@link https://github.com/manico} + * @author Ivan Jeržabek [@jerzabek]{@link https://github.com/jerzabek} + */ +var locale = { + code: 'hr', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hr/index.js.flow b/node_modules/date-fns/locale/hr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/hr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/hr/package.json b/node_modules/date-fns/locale/hr/package.json new file mode 100644 index 00000000..1785e94b --- /dev/null +++ b/node_modules/date-fns/locale/hr/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/hr/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js new file mode 100644 index 00000000..4e4ad1ea --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mwens pase yon segond', + other: 'mwens pase {{count}} segond' + }, + xSeconds: { + one: '1 segond', + other: '{{count}} segond' + }, + halfAMinute: '30 segond', + lessThanXMinutes: { + one: 'mwens pase yon minit', + other: 'mwens pase {{count}} minit' + }, + xMinutes: { + one: '1 minit', + other: '{{count}} minit' + }, + aboutXHours: { + one: 'anviwon inè', + other: 'anviwon {{count}} è' + }, + xHours: { + one: '1 lè', + other: '{{count}} lè' + }, + xDays: { + one: '1 jou', + other: '{{count}} jou' + }, + aboutXWeeks: { + one: 'anviwon 1 semèn', + other: 'anviwon {{count}} semèn' + }, + xWeeks: { + one: '1 semèn', + other: '{{count}} semèn' + }, + aboutXMonths: { + one: 'anviwon 1 mwa', + other: 'anviwon {{count}} mwa' + }, + xMonths: { + one: '1 mwa', + other: '{{count}} mwa' + }, + aboutXYears: { + one: 'anviwon 1 an', + other: 'anviwon {{count}} an' + }, + xYears: { + one: '1 an', + other: '{{count}} an' + }, + overXYears: { + one: 'plis pase 1 an', + other: 'plis pase {{count}} an' + }, + almostXYears: { + one: 'prèske 1 an', + other: 'prèske {{count}} an' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'nan ' + result; + } else { + return 'sa fè ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/_lib/formatLong/index.js b/node_modules/date-fns/locale/ht/_lib/formatLong/index.js new file mode 100644 index 00000000..2740a87a --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'nan lè' {{time}}", + long: "{{date}} 'nan lè' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ht/_lib/formatRelative/index.js new file mode 100644 index 00000000..6baf2f91 --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'pase nan lè' p", + yesterday: "'yè nan lè' p", + today: "'jodi a' p", + tomorrow: "'demen nan lè' p'", + nextWeek: "eeee 'pwochen nan lè' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/_lib/localize/index.js b/node_modules/date-fns/locale/ht/_lib/localize/index.js new file mode 100644 index 00000000..4d788ceb --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/localize/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['av. J.-K', 'ap. J.-K'], + abbreviated: ['av. J.-K', 'ap. J.-K'], + wide: ['anvan Jezi Kris', 'apre Jezi Kris'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1ye trim.', '2yèm trim.', '3yèm trim.', '4yèm trim.'], + wide: ['1ye trimès', '2yèm trimès', '3yèm trimès', '4yèm trimès'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'fevr.', 'mas', 'avr.', 'me', 'jen', 'jiyè', 'out', 'sept.', 'okt.', 'nov.', 'des.'], + wide: ['janvye', 'fevrye', 'mas', 'avril', 'me', 'jen', 'jiyè', 'out', 'septanm', 'oktòb', 'novanm', 'desanm'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'J', 'V', 'S'], + short: ['di', 'le', 'ma', 'mè', 'je', 'va', 'sa'], + abbreviated: ['dim.', 'len.', 'mad.', 'mèk.', 'jed.', 'van.', 'sam.'], + wide: ['dimanch', 'lendi', 'madi', 'mèkredi', 'jedi', 'vandredi', 'samdi'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'mat.', + afternoon: 'ap.m.', + evening: 'swa', + night: 'mat.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'maten', + afternoon: 'aprèmidi', + evening: 'swa', + night: 'maten' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'minwit', + noon: 'midi', + morning: 'nan maten', + afternoon: 'nan aprèmidi', + evening: 'nan aswè', + night: 'nan maten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + if (number === 0) return String(number); + var suffix = number === 1 ? 'ye' : 'yèm'; + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/_lib/match/index.js b/node_modules/date-fns/locale/ht/_lib/match/index.js new file mode 100644 index 00000000..5cde07cd --- /dev/null +++ b/node_modules/date-fns/locale/ht/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ye|yèm)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i, + abbreviated: /^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i, + wide: /^(avan Jezi Kris|apre Jezi Kris)/i +}; +var parseEraPatterns = { + any: [/^av/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](ye|yèm)? trimès/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i, + wide: /^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^av/i, /^me/i, /^je/i, /^ji/i, /^ou/i, /^s/i, /^ok/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[lmjvsd]/i, + short: /^(di|le|ma|me|je|va|sa)/i, + abbreviated: /^(dim|len|mad|mèk|jed|van|sam)\.?/i, + wide: /^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^di/i, /^le/i, /^ma/i, /^mè/i, /^je/i, /^va/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i, + any: /^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^min/i, + noon: /^mid/i, + morning: /mat/i, + afternoon: /ap/i, + evening: /sw/i, + night: /nwit/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/index.d.ts b/node_modules/date-fns/locale/ht/index.d.ts new file mode 100644 index 00000000..7362d752 --- /dev/null +++ b/node_modules/date-fns/locale/ht/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ht } from 'date-fns/locale' +export default ht diff --git a/node_modules/date-fns/locale/ht/index.js b/node_modules/date-fns/locale/ht/index.js new file mode 100644 index 00000000..07042202 --- /dev/null +++ b/node_modules/date-fns/locale/ht/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Haitian Creole locale. + * @language Haitian Creole + * @iso-639-2 hat + * @author Rubens Mariuzzo [@rmariuzzo]{@link https://github.com/rmariuzzo} + * @author Watson Marcelain [@watsongm24]{@link https://github.com/watsongm24} + */ +var locale = { + code: 'ht', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ht/index.js.flow b/node_modules/date-fns/locale/ht/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ht/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ht/package.json b/node_modules/date-fns/locale/ht/package.json new file mode 100644 index 00000000..00c08dce --- /dev/null +++ b/node_modules/date-fns/locale/ht/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ht/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js new file mode 100644 index 00000000..cf4353d2 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatDistance/index.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var translations = { + about: 'körülbelül', + over: 'több mint', + almost: 'majdnem', + lessthan: 'kevesebb mint' +}; +var withoutSuffixes = { + xseconds: ' másodperc', + halfaminute: 'fél perc', + xminutes: ' perc', + xhours: ' óra', + xdays: ' nap', + xweeks: ' hét', + xmonths: ' hónap', + xyears: ' év' +}; +var withSuffixes = { + xseconds: { + '-1': ' másodperccel ezelőtt', + '1': ' másodperc múlva', + '0': ' másodperce' + }, + halfaminute: { + '-1': 'fél perccel ezelőtt', + '1': 'fél perc múlva', + '0': 'fél perce' + }, + xminutes: { + '-1': ' perccel ezelőtt', + '1': ' perc múlva', + '0': ' perce' + }, + xhours: { + '-1': ' órával ezelőtt', + '1': ' óra múlva', + '0': ' órája' + }, + xdays: { + '-1': ' nappal ezelőtt', + '1': ' nap múlva', + '0': ' napja' + }, + xweeks: { + '-1': ' héttel ezelőtt', + '1': ' hét múlva', + '0': ' hete' + }, + xmonths: { + '-1': ' hónappal ezelőtt', + '1': ' hónap múlva', + '0': ' hónapja' + }, + xyears: { + '-1': ' évvel ezelőtt', + '1': ' év múlva', + '0': ' éve' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], '') : token; + var addSuffix = (options === null || options === void 0 ? void 0 : options.addSuffix) === true; + var key = unit.toLowerCase(); + var comparison = (options === null || options === void 0 ? void 0 : options.comparison) || 0; + var translated = addSuffix ? withSuffixes[key][comparison] : withoutSuffixes[key]; + var result = key === 'halfaminute' ? translated : count + translated; + + if (adverb) { + var adv = adverb[0].toLowerCase(); + result = translations[adv] + ' ' + result; + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/_lib/formatLong/index.js b/node_modules/date-fns/locale/hu/_lib/formatLong/index.js new file mode 100644 index 00000000..66abe289 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'y. MMMM d., EEEE', + long: 'y. MMMM d.', + medium: 'y. MMM d.', + short: 'y. MM. dd.' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/_lib/formatRelative/index.js b/node_modules/date-fns/locale/hu/_lib/formatRelative/index.js new file mode 100644 index 00000000..34a45d4a --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/formatRelative/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var accusativeWeekdays = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton']; + +function week(isFuture) { + return function (date) { + var weekday = accusativeWeekdays[date.getUTCDay()]; + var prefix = isFuture ? '' : "'múlt' "; + return "".concat(prefix, "'").concat(weekday, "' p'-kor'"); + }; +} + +var formatRelativeLocale = { + lastWeek: week(false), + yesterday: "'tegnap' p'-kor'", + today: "'ma' p'-kor'", + tomorrow: "'holnap' p'-kor'", + nextWeek: week(true), + other: 'P' +}; + +var formatRelative = function formatRelative(token, date) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/_lib/localize/index.js b/node_modules/date-fns/locale/hu/_lib/localize/index.js new file mode 100644 index 00000000..e17f379d --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/localize/index.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ie.', 'isz.'], + abbreviated: ['i. e.', 'i. sz.'], + wide: ['Krisztus előtt', 'időszámításunk szerint'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. n.év', '2. n.év', '3. n.év', '4. n.év'], + wide: ['1. negyedév', '2. negyedév', '3. negyedév', '4. negyedév'] +}; +var formattingQuarterValues = { + narrow: ['I.', 'II.', 'III.', 'IV.'], + abbreviated: ['I. n.év', 'II. n.év', 'III. n.év', 'IV. n.év'], + wide: ['I. negyedév', 'II. negyedév', 'III. negyedév', 'IV. negyedév'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'Á', 'M', 'J', 'J', 'A', 'Sz', 'O', 'N', 'D'], + abbreviated: ['jan.', 'febr.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'], + wide: ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'] +}; +var dayValues = { + narrow: ['V', 'H', 'K', 'Sz', 'Cs', 'P', 'Sz'], + short: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + abbreviated: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], + wide: ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'] +}; +var dayPeriodValues = { + narrow: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'du.', + evening: 'este', + night: 'éjjel' + }, + abbreviated: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'du.', + evening: 'este', + night: 'éjjel' + }, + wide: { + am: 'de.', + pm: 'du.', + midnight: 'éjfél', + noon: 'dél', + morning: 'reggel', + afternoon: 'délután', + evening: 'este', + night: 'éjjel' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + }, + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide' + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/_lib/match/index.js b/node_modules/date-fns/locale/hu/_lib/match/index.js new file mode 100644 index 00000000..01422d07 --- /dev/null +++ b/node_modules/date-fns/locale/hu/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ie\.|isz\.)/i, + abbreviated: /^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i, + wide: /^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i +}; +var parseEraPatterns = { + narrow: [/ie/i, /isz/i], + abbreviated: [/^(i\.?\s?e\.?|b\s?ce)/i, /^(i\.?\s?sz\.?|c\s?e)/i], + any: [/előtt/i, /(szerint|i. sz.)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^[1234]?\.?\s?n\.év/i, + wide: /^([1234]|I|II|III|IV)?\.?\s?negyedév/i +}; +var parseQuarterPatterns = { + any: [/1|I$/i, /2|II$/i, /3|III/i, /4|IV/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmaásond]|sz/i, + abbreviated: /^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i, + wide: /^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a|á/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s|sz/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^már/i, /^áp/i, /^máj/i, /^jún/i, /^júl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^([vhkpc]|sz|cs|sz)/i, + short: /^([vhkp]|sze|cs|szo)/i, + abbreviated: /^([vhkp]|sze|cs|szo)/i, + wide: /^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i +}; +var parseDayPatterns = { + narrow: [/^v/i, /^h/i, /^k/i, /^sz/i, /^c/i, /^p/i, /^sz/i], + any: [/^v/i, /^h/i, /^k/i, /^sze/i, /^c/i, /^p/i, /^szo/i] +}; +var matchDayPeriodPatterns = { + any: /^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^de\.?/i, + pm: /^du\.?/i, + midnight: /^éjf/i, + noon: /^dé/i, + morning: /reg/i, + afternoon: /^délu\.?/i, + evening: /es/i, + night: /éjj/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/index.d.ts b/node_modules/date-fns/locale/hu/index.d.ts new file mode 100644 index 00000000..979baa6e --- /dev/null +++ b/node_modules/date-fns/locale/hu/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hu } from 'date-fns/locale' +export default hu diff --git a/node_modules/date-fns/locale/hu/index.js b/node_modules/date-fns/locale/hu/index.js new file mode 100644 index 00000000..ec686d75 --- /dev/null +++ b/node_modules/date-fns/locale/hu/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Hungarian locale. + * @language Hungarian + * @iso-639-2 hun + * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} + * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} + * @author Zoltan Szepesi [@twodcube]{@link https://github.com/twodcube} + */ +var locale = { + code: 'hu', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hu/index.js.flow b/node_modules/date-fns/locale/hu/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/hu/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/hu/package.json b/node_modules/date-fns/locale/hu/package.json new file mode 100644 index 00000000..3df7975e --- /dev/null +++ b/node_modules/date-fns/locale/hu/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/hu/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/_lib/formatDistance/index.js b/node_modules/date-fns/locale/hy/_lib/formatDistance/index.js new file mode 100644 index 00000000..dedcf957 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'ավելի քիչ քան 1 վայրկյան', + other: 'ավելի քիչ քան {{count}} վայրկյան' + }, + xSeconds: { + one: '1 վայրկյան', + other: '{{count}} վայրկյան' + }, + halfAMinute: 'կես րոպե', + lessThanXMinutes: { + one: 'ավելի քիչ քան 1 րոպե', + other: 'ավելի քիչ քան {{count}} րոպե' + }, + xMinutes: { + one: '1 րոպե', + other: '{{count}} րոպե' + }, + aboutXHours: { + one: 'մոտ 1 ժամ', + other: 'մոտ {{count}} ժամ' + }, + xHours: { + one: '1 ժամ', + other: '{{count}} ժամ' + }, + xDays: { + one: '1 օր', + other: '{{count}} օր' + }, + aboutXWeeks: { + one: 'մոտ 1 շաբաթ', + other: 'մոտ {{count}} շաբաթ' + }, + xWeeks: { + one: '1 շաբաթ', + other: '{{count}} շաբաթ' + }, + aboutXMonths: { + one: 'մոտ 1 ամիս', + other: 'մոտ {{count}} ամիս' + }, + xMonths: { + one: '1 ամիս', + other: '{{count}} ամիս' + }, + aboutXYears: { + one: 'մոտ 1 տարի', + other: 'մոտ {{count}} տարի' + }, + xYears: { + one: '1 տարի', + other: '{{count}} տարի' + }, + overXYears: { + one: 'ավելի քան 1 տարի', + other: 'ավելի քան {{count}} տարի' + }, + almostXYears: { + one: 'համարյա 1 տարի', + other: 'համարյա {{count}} տարի' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' հետո'; + } else { + return result + ' առաջ'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/_lib/formatLong/index.js b/node_modules/date-fns/locale/hy/_lib/formatLong/index.js new file mode 100644 index 00000000..4b054c64 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'd MMMM, y, EEEE', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'ժ․'{{time}}", + long: "{{date}} 'ժ․'{{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/_lib/formatRelative/index.js b/node_modules/date-fns/locale/hy/_lib/formatRelative/index.js new file mode 100644 index 00000000..3c2026aa --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'նախորդ' eeee p'֊ին'", + yesterday: "'երեկ' p'֊ին'", + today: "'այսօր' p'֊ին'", + tomorrow: "'վաղը' p'֊ին'", + nextWeek: "'հաջորդ' eeee p'֊ին'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/_lib/localize/index.js b/node_modules/date-fns/locale/hy/_lib/localize/index.js new file mode 100644 index 00000000..3706b782 --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/localize/index.js @@ -0,0 +1,147 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['Ք', 'Մ'], + abbreviated: ['ՔԱ', 'ՄԹ'], + wide: ['Քրիստոսից առաջ', 'Մեր թվարկության'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Ք1', 'Ք2', 'Ք3', 'Ք4'], + wide: ['1֊ին քառորդ', '2֊րդ քառորդ', '3֊րդ քառորդ', '4֊րդ քառորդ'] +}; +var monthValues = { + narrow: ['Հ', 'Փ', 'Մ', 'Ա', 'Մ', 'Հ', 'Հ', 'Օ', 'Ս', 'Հ', 'Ն', 'Դ'], + abbreviated: ['հուն', 'փետ', 'մար', 'ապր', 'մայ', 'հուն', 'հուլ', 'օգս', 'սեպ', 'հոկ', 'նոյ', 'դեկ'], + wide: ['հունվար', 'փետրվար', 'մարտ', 'ապրիլ', 'մայիս', 'հունիս', 'հուլիս', 'օգոստոս', 'սեպտեմբեր', 'հոկտեմբեր', 'նոյեմբեր', 'դեկտեմբեր'] +}; +var dayValues = { + narrow: ['Կ', 'Ե', 'Ե', 'Չ', 'Հ', 'Ո', 'Շ'], + short: ['կր', 'եր', 'եք', 'չք', 'հգ', 'ուր', 'շբ'], + abbreviated: ['կիր', 'երկ', 'երք', 'չոր', 'հնգ', 'ուրբ', 'շաբ'], + wide: ['կիրակի', 'երկուշաբթի', 'երեքշաբթի', 'չորեքշաբթի', 'հինգշաբթի', 'ուրբաթ', 'շաբաթ'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'կեսգշ', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'կեսգիշեր', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'կեսգիշեր', + noon: 'կեսօր', + morning: 'առավոտ', + afternoon: 'ցերեկ', + evening: 'երեկո', + night: 'գիշեր' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'կեսգշ', + noon: 'կեսօր', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'կեսգիշերին', + noon: 'կեսօրին', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'կեսգիշերին', + noon: 'կեսօրին', + morning: 'առավոտը', + afternoon: 'ցերեկը', + evening: 'երեկոյան', + night: 'գիշերը' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, + // if they are different for different grammatical genders, + // use `options.unit`. + // + // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', + // 'day', 'hour', 'minute', 'second'. + + var rem100 = number % 100; + + if (rem100 < 10) { + if (rem100 % 10 === 1) { + return number + '֊ին'; + } + } + + return number + '֊րդ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/_lib/match/index.js b/node_modules/date-fns/locale/hy/_lib/match/index.js new file mode 100644 index 00000000..d37a5a5d --- /dev/null +++ b/node_modules/date-fns/locale/hy/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)((-|֊)?(ին|րդ))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(Ք|Մ)/i, + abbreviated: /^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i, + wide: /^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i +}; +var parseEraPatterns = { + any: [/^ք/i, /^մ/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ք[1234]/i, + wide: /^[1234]((-|֊)?(ին|րդ)) քառորդ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[հփմաօսնդ]/i, + abbreviated: /^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i, + wide: /^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i +}; +var parseMonthPatterns = { + narrow: [/^հ/i, /^փ/i, /^մ/i, /^ա/i, /^մ/i, /^հ/i, /^հ/i, /^օ/i, /^ս/i, /^հ/i, /^ն/i, /^դ/i], + any: [/^հու/i, /^փ/i, /^մար/i, /^ա/i, /^մայ/i, /^հուն/i, /^հուլ/i, /^օ/i, /^ս/i, /^հոկ/i, /^ն/i, /^դ/i] +}; +var matchDayPatterns = { + narrow: /^[եչհոշկ]/i, + short: /^(կր|եր|եք|չք|հգ|ուր|շբ)/i, + abbreviated: /^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i, + wide: /^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i +}; +var parseDayPatterns = { + narrow: [/^կ/i, /^ե/i, /^ե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + short: [/^կ/i, /^եր/i, /^եք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + abbreviated: [/^կ/i, /^երկ/i, /^երք/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i], + wide: [/^կ/i, /^երկ/i, /^երե/i, /^չ/i, /^հ/i, /^(ո|Ո)/, /^շ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i, + any: /^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /կեսգիշեր/i, + noon: /կեսօր/i, + morning: /առավոտ/i, + afternoon: /ցերեկ/i, + evening: /երեկո/i, + night: /գիշեր/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/index.d.ts b/node_modules/date-fns/locale/hy/index.d.ts new file mode 100644 index 00000000..a79f29e1 --- /dev/null +++ b/node_modules/date-fns/locale/hy/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { hy } from 'date-fns/locale' +export default hy diff --git a/node_modules/date-fns/locale/hy/index.js b/node_modules/date-fns/locale/hy/index.js new file mode 100644 index 00000000..e575129a --- /dev/null +++ b/node_modules/date-fns/locale/hy/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Armenian locale + * @language Armenian + * @iso-639-2 arm + * @author Alex Igityan [@alexigityan]{@link https://github.com/alexigityan} + */ +var locale = { + code: 'hy', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/hy/index.js.flow b/node_modules/date-fns/locale/hy/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/hy/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/hy/package.json b/node_modules/date-fns/locale/hy/package.json new file mode 100644 index 00000000..e93ec489 --- /dev/null +++ b/node_modules/date-fns/locale/hy/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/hy/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/formatDistance/index.js b/node_modules/date-fns/locale/id/_lib/formatDistance/index.js new file mode 100644 index 00000000..38fa03be --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'kurang dari 1 detik', + other: 'kurang dari {{count}} detik' + }, + xSeconds: { + one: '1 detik', + other: '{{count}} detik' + }, + halfAMinute: 'setengah menit', + lessThanXMinutes: { + one: 'kurang dari 1 menit', + other: 'kurang dari {{count}} menit' + }, + xMinutes: { + one: '1 menit', + other: '{{count}} menit' + }, + aboutXHours: { + one: 'sekitar 1 jam', + other: 'sekitar {{count}} jam' + }, + xHours: { + one: '1 jam', + other: '{{count}} jam' + }, + xDays: { + one: '1 hari', + other: '{{count}} hari' + }, + aboutXWeeks: { + one: 'sekitar 1 minggu', + other: 'sekitar {{count}} minggu' + }, + xWeeks: { + one: '1 minggu', + other: '{{count}} minggu' + }, + aboutXMonths: { + one: 'sekitar 1 bulan', + other: 'sekitar {{count}} bulan' + }, + xMonths: { + one: '1 bulan', + other: '{{count}} bulan' + }, + aboutXYears: { + one: 'sekitar 1 tahun', + other: 'sekitar {{count}} tahun' + }, + xYears: { + one: '1 tahun', + other: '{{count}} tahun' + }, + overXYears: { + one: 'lebih dari 1 tahun', + other: 'lebih dari {{count}} tahun' + }, + almostXYears: { + one: 'hampir 1 tahun', + other: 'hampir {{count}} tahun' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dalam waktu ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/formatLong/index.js b/node_modules/date-fns/locale/id/_lib/formatLong/index.js new file mode 100644 index 00000000..2152b72a --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'd/M/yyyy' +}; +var timeFormats = { + full: 'HH.mm.ss', + long: 'HH.mm.ss', + medium: 'HH.mm', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/formatRelative/index.js b/node_modules/date-fns/locale/id/_lib/formatRelative/index.js new file mode 100644 index 00000000..4e930ead --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'lalu pukul' p", + yesterday: "'Kemarin pukul' p", + today: "'Hari ini pukul' p", + tomorrow: "'Besok pukul' p", + nextWeek: "eeee 'pukul' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/localize/index.js b/node_modules/date-fns/locale/id/_lib/localize/index.js new file mode 100644 index 00000000..56197fe2 --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// All data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/id.html +var eraValues = { + narrow: ['SM', 'M'], + abbreviated: ['SM', 'M'], + wide: ['Sebelum Masehi', 'Masehi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['Kuartal ke-1', 'Kuartal ke-2', 'Kuartal ke-3', 'Kuartal ke-4'] +}; // Note: in Indonesian, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agt', 'Sep', 'Okt', 'Nov', 'Des'], + wide: ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'] +}; +var dayValues = { + narrow: ['M', 'S', 'S', 'R', 'K', 'J', 'S'], + short: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], + abbreviated: ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'], + wide: ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'siang', + evening: 'sore', + night: 'malam' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); // Can't use "pertama", "kedua" because can't be parsed + + return 'ke-' + number; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/_lib/match/index.js b/node_modules/date-fns/locale/id/_lib/match/index.js new file mode 100644 index 00000000..25eb04ef --- /dev/null +++ b/node_modules/date-fns/locale/id/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^ke-(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i, + wide: /^(sebelum masehi|sebelum era umum|masehi|era umum)/i +}; +var parseEraPatterns = { + any: [/^s/i, /^(m|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K-?\s[1234]/i, + wide: /^Kuartal ke-?\s?[1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i, + wide: /^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[srkjm]/i, + short: /^(min|sen|sel|rab|kam|jum|sab)/i, + abbreviated: /^(min|sen|sel|rab|kam|jum|sab)/i, + wide: /^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i +}; +var parseDayPatterns = { + narrow: [/^m/i, /^s/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^m/i, /^sen/i, /^sel/i, /^r/i, /^k/i, /^j/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pagi/i, + afternoon: /siang/i, + evening: /sore/i, + night: /malam/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/index.d.ts b/node_modules/date-fns/locale/id/index.d.ts new file mode 100644 index 00000000..2bf83f4f --- /dev/null +++ b/node_modules/date-fns/locale/id/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { id } from 'date-fns/locale' +export default id diff --git a/node_modules/date-fns/locale/id/index.js b/node_modules/date-fns/locale/id/index.js new file mode 100644 index 00000000..47f97849 --- /dev/null +++ b/node_modules/date-fns/locale/id/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Indonesian locale. + * @language Indonesian + * @iso-639-2 ind + * @author Rahmat Budiharso [@rbudiharso]{@link https://github.com/rbudiharso} + * @author Benget Nata [@bentinata]{@link https://github.com/bentinata} + * @author Budi Irawan [@deerawan]{@link https://github.com/deerawan} + * @author Try Ajitiono [@imballinst]{@link https://github.com/imballinst} + */ +var locale = { + code: 'id', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/id/index.js.flow b/node_modules/date-fns/locale/id/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/id/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/id/package.json b/node_modules/date-fns/locale/id/package.json new file mode 100644 index 00000000..de84b10c --- /dev/null +++ b/node_modules/date-fns/locale/id/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/id/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/index.js b/node_modules/date-fns/locale/index.js new file mode 100644 index 00000000..1365b989 --- /dev/null +++ b/node_modules/date-fns/locale/index.js @@ -0,0 +1,751 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "af", { + enumerable: true, + get: function get() { + return _index.default; + } +}); +Object.defineProperty(exports, "ar", { + enumerable: true, + get: function get() { + return _index2.default; + } +}); +Object.defineProperty(exports, "arDZ", { + enumerable: true, + get: function get() { + return _index3.default; + } +}); +Object.defineProperty(exports, "arEG", { + enumerable: true, + get: function get() { + return _index4.default; + } +}); +Object.defineProperty(exports, "arMA", { + enumerable: true, + get: function get() { + return _index5.default; + } +}); +Object.defineProperty(exports, "arSA", { + enumerable: true, + get: function get() { + return _index6.default; + } +}); +Object.defineProperty(exports, "arTN", { + enumerable: true, + get: function get() { + return _index7.default; + } +}); +Object.defineProperty(exports, "az", { + enumerable: true, + get: function get() { + return _index8.default; + } +}); +Object.defineProperty(exports, "be", { + enumerable: true, + get: function get() { + return _index9.default; + } +}); +Object.defineProperty(exports, "beTarask", { + enumerable: true, + get: function get() { + return _index10.default; + } +}); +Object.defineProperty(exports, "bg", { + enumerable: true, + get: function get() { + return _index11.default; + } +}); +Object.defineProperty(exports, "bn", { + enumerable: true, + get: function get() { + return _index12.default; + } +}); +Object.defineProperty(exports, "bs", { + enumerable: true, + get: function get() { + return _index13.default; + } +}); +Object.defineProperty(exports, "ca", { + enumerable: true, + get: function get() { + return _index14.default; + } +}); +Object.defineProperty(exports, "cs", { + enumerable: true, + get: function get() { + return _index15.default; + } +}); +Object.defineProperty(exports, "cy", { + enumerable: true, + get: function get() { + return _index16.default; + } +}); +Object.defineProperty(exports, "da", { + enumerable: true, + get: function get() { + return _index17.default; + } +}); +Object.defineProperty(exports, "de", { + enumerable: true, + get: function get() { + return _index18.default; + } +}); +Object.defineProperty(exports, "deAT", { + enumerable: true, + get: function get() { + return _index19.default; + } +}); +Object.defineProperty(exports, "el", { + enumerable: true, + get: function get() { + return _index20.default; + } +}); +Object.defineProperty(exports, "enAU", { + enumerable: true, + get: function get() { + return _index21.default; + } +}); +Object.defineProperty(exports, "enCA", { + enumerable: true, + get: function get() { + return _index22.default; + } +}); +Object.defineProperty(exports, "enGB", { + enumerable: true, + get: function get() { + return _index23.default; + } +}); +Object.defineProperty(exports, "enIE", { + enumerable: true, + get: function get() { + return _index24.default; + } +}); +Object.defineProperty(exports, "enIN", { + enumerable: true, + get: function get() { + return _index25.default; + } +}); +Object.defineProperty(exports, "enNZ", { + enumerable: true, + get: function get() { + return _index26.default; + } +}); +Object.defineProperty(exports, "enUS", { + enumerable: true, + get: function get() { + return _index27.default; + } +}); +Object.defineProperty(exports, "enZA", { + enumerable: true, + get: function get() { + return _index28.default; + } +}); +Object.defineProperty(exports, "eo", { + enumerable: true, + get: function get() { + return _index29.default; + } +}); +Object.defineProperty(exports, "es", { + enumerable: true, + get: function get() { + return _index30.default; + } +}); +Object.defineProperty(exports, "et", { + enumerable: true, + get: function get() { + return _index31.default; + } +}); +Object.defineProperty(exports, "eu", { + enumerable: true, + get: function get() { + return _index32.default; + } +}); +Object.defineProperty(exports, "faIR", { + enumerable: true, + get: function get() { + return _index33.default; + } +}); +Object.defineProperty(exports, "fi", { + enumerable: true, + get: function get() { + return _index34.default; + } +}); +Object.defineProperty(exports, "fr", { + enumerable: true, + get: function get() { + return _index35.default; + } +}); +Object.defineProperty(exports, "frCA", { + enumerable: true, + get: function get() { + return _index36.default; + } +}); +Object.defineProperty(exports, "frCH", { + enumerable: true, + get: function get() { + return _index37.default; + } +}); +Object.defineProperty(exports, "fy", { + enumerable: true, + get: function get() { + return _index38.default; + } +}); +Object.defineProperty(exports, "gd", { + enumerable: true, + get: function get() { + return _index39.default; + } +}); +Object.defineProperty(exports, "gl", { + enumerable: true, + get: function get() { + return _index40.default; + } +}); +Object.defineProperty(exports, "gu", { + enumerable: true, + get: function get() { + return _index41.default; + } +}); +Object.defineProperty(exports, "he", { + enumerable: true, + get: function get() { + return _index42.default; + } +}); +Object.defineProperty(exports, "hi", { + enumerable: true, + get: function get() { + return _index43.default; + } +}); +Object.defineProperty(exports, "hr", { + enumerable: true, + get: function get() { + return _index44.default; + } +}); +Object.defineProperty(exports, "ht", { + enumerable: true, + get: function get() { + return _index45.default; + } +}); +Object.defineProperty(exports, "hu", { + enumerable: true, + get: function get() { + return _index46.default; + } +}); +Object.defineProperty(exports, "hy", { + enumerable: true, + get: function get() { + return _index47.default; + } +}); +Object.defineProperty(exports, "id", { + enumerable: true, + get: function get() { + return _index48.default; + } +}); +Object.defineProperty(exports, "is", { + enumerable: true, + get: function get() { + return _index49.default; + } +}); +Object.defineProperty(exports, "it", { + enumerable: true, + get: function get() { + return _index50.default; + } +}); +Object.defineProperty(exports, "itCH", { + enumerable: true, + get: function get() { + return _index51.default; + } +}); +Object.defineProperty(exports, "ja", { + enumerable: true, + get: function get() { + return _index52.default; + } +}); +Object.defineProperty(exports, "jaHira", { + enumerable: true, + get: function get() { + return _index53.default; + } +}); +Object.defineProperty(exports, "ka", { + enumerable: true, + get: function get() { + return _index54.default; + } +}); +Object.defineProperty(exports, "kk", { + enumerable: true, + get: function get() { + return _index55.default; + } +}); +Object.defineProperty(exports, "km", { + enumerable: true, + get: function get() { + return _index56.default; + } +}); +Object.defineProperty(exports, "kn", { + enumerable: true, + get: function get() { + return _index57.default; + } +}); +Object.defineProperty(exports, "ko", { + enumerable: true, + get: function get() { + return _index58.default; + } +}); +Object.defineProperty(exports, "lb", { + enumerable: true, + get: function get() { + return _index59.default; + } +}); +Object.defineProperty(exports, "lt", { + enumerable: true, + get: function get() { + return _index60.default; + } +}); +Object.defineProperty(exports, "lv", { + enumerable: true, + get: function get() { + return _index61.default; + } +}); +Object.defineProperty(exports, "mk", { + enumerable: true, + get: function get() { + return _index62.default; + } +}); +Object.defineProperty(exports, "mn", { + enumerable: true, + get: function get() { + return _index63.default; + } +}); +Object.defineProperty(exports, "ms", { + enumerable: true, + get: function get() { + return _index64.default; + } +}); +Object.defineProperty(exports, "mt", { + enumerable: true, + get: function get() { + return _index65.default; + } +}); +Object.defineProperty(exports, "nb", { + enumerable: true, + get: function get() { + return _index66.default; + } +}); +Object.defineProperty(exports, "nl", { + enumerable: true, + get: function get() { + return _index67.default; + } +}); +Object.defineProperty(exports, "nlBE", { + enumerable: true, + get: function get() { + return _index68.default; + } +}); +Object.defineProperty(exports, "nn", { + enumerable: true, + get: function get() { + return _index69.default; + } +}); +Object.defineProperty(exports, "oc", { + enumerable: true, + get: function get() { + return _index70.default; + } +}); +Object.defineProperty(exports, "pl", { + enumerable: true, + get: function get() { + return _index71.default; + } +}); +Object.defineProperty(exports, "pt", { + enumerable: true, + get: function get() { + return _index72.default; + } +}); +Object.defineProperty(exports, "ptBR", { + enumerable: true, + get: function get() { + return _index73.default; + } +}); +Object.defineProperty(exports, "ro", { + enumerable: true, + get: function get() { + return _index74.default; + } +}); +Object.defineProperty(exports, "ru", { + enumerable: true, + get: function get() { + return _index75.default; + } +}); +Object.defineProperty(exports, "sk", { + enumerable: true, + get: function get() { + return _index76.default; + } +}); +Object.defineProperty(exports, "sl", { + enumerable: true, + get: function get() { + return _index77.default; + } +}); +Object.defineProperty(exports, "sq", { + enumerable: true, + get: function get() { + return _index78.default; + } +}); +Object.defineProperty(exports, "sr", { + enumerable: true, + get: function get() { + return _index79.default; + } +}); +Object.defineProperty(exports, "srLatn", { + enumerable: true, + get: function get() { + return _index80.default; + } +}); +Object.defineProperty(exports, "sv", { + enumerable: true, + get: function get() { + return _index81.default; + } +}); +Object.defineProperty(exports, "ta", { + enumerable: true, + get: function get() { + return _index82.default; + } +}); +Object.defineProperty(exports, "te", { + enumerable: true, + get: function get() { + return _index83.default; + } +}); +Object.defineProperty(exports, "th", { + enumerable: true, + get: function get() { + return _index84.default; + } +}); +Object.defineProperty(exports, "tr", { + enumerable: true, + get: function get() { + return _index85.default; + } +}); +Object.defineProperty(exports, "ug", { + enumerable: true, + get: function get() { + return _index86.default; + } +}); +Object.defineProperty(exports, "uk", { + enumerable: true, + get: function get() { + return _index87.default; + } +}); +Object.defineProperty(exports, "uz", { + enumerable: true, + get: function get() { + return _index88.default; + } +}); +Object.defineProperty(exports, "uzCyrl", { + enumerable: true, + get: function get() { + return _index89.default; + } +}); +Object.defineProperty(exports, "vi", { + enumerable: true, + get: function get() { + return _index90.default; + } +}); +Object.defineProperty(exports, "zhCN", { + enumerable: true, + get: function get() { + return _index91.default; + } +}); +Object.defineProperty(exports, "zhHK", { + enumerable: true, + get: function get() { + return _index92.default; + } +}); +Object.defineProperty(exports, "zhTW", { + enumerable: true, + get: function get() { + return _index93.default; + } +}); + +var _index = _interopRequireDefault(require("./af/index.js")); + +var _index2 = _interopRequireDefault(require("./ar/index.js")); + +var _index3 = _interopRequireDefault(require("./ar-DZ/index.js")); + +var _index4 = _interopRequireDefault(require("./ar-EG/index.js")); + +var _index5 = _interopRequireDefault(require("./ar-MA/index.js")); + +var _index6 = _interopRequireDefault(require("./ar-SA/index.js")); + +var _index7 = _interopRequireDefault(require("./ar-TN/index.js")); + +var _index8 = _interopRequireDefault(require("./az/index.js")); + +var _index9 = _interopRequireDefault(require("./be/index.js")); + +var _index10 = _interopRequireDefault(require("./be-tarask/index.js")); + +var _index11 = _interopRequireDefault(require("./bg/index.js")); + +var _index12 = _interopRequireDefault(require("./bn/index.js")); + +var _index13 = _interopRequireDefault(require("./bs/index.js")); + +var _index14 = _interopRequireDefault(require("./ca/index.js")); + +var _index15 = _interopRequireDefault(require("./cs/index.js")); + +var _index16 = _interopRequireDefault(require("./cy/index.js")); + +var _index17 = _interopRequireDefault(require("./da/index.js")); + +var _index18 = _interopRequireDefault(require("./de/index.js")); + +var _index19 = _interopRequireDefault(require("./de-AT/index.js")); + +var _index20 = _interopRequireDefault(require("./el/index.js")); + +var _index21 = _interopRequireDefault(require("./en-AU/index.js")); + +var _index22 = _interopRequireDefault(require("./en-CA/index.js")); + +var _index23 = _interopRequireDefault(require("./en-GB/index.js")); + +var _index24 = _interopRequireDefault(require("./en-IE/index.js")); + +var _index25 = _interopRequireDefault(require("./en-IN/index.js")); + +var _index26 = _interopRequireDefault(require("./en-NZ/index.js")); + +var _index27 = _interopRequireDefault(require("./en-US/index.js")); + +var _index28 = _interopRequireDefault(require("./en-ZA/index.js")); + +var _index29 = _interopRequireDefault(require("./eo/index.js")); + +var _index30 = _interopRequireDefault(require("./es/index.js")); + +var _index31 = _interopRequireDefault(require("./et/index.js")); + +var _index32 = _interopRequireDefault(require("./eu/index.js")); + +var _index33 = _interopRequireDefault(require("./fa-IR/index.js")); + +var _index34 = _interopRequireDefault(require("./fi/index.js")); + +var _index35 = _interopRequireDefault(require("./fr/index.js")); + +var _index36 = _interopRequireDefault(require("./fr-CA/index.js")); + +var _index37 = _interopRequireDefault(require("./fr-CH/index.js")); + +var _index38 = _interopRequireDefault(require("./fy/index.js")); + +var _index39 = _interopRequireDefault(require("./gd/index.js")); + +var _index40 = _interopRequireDefault(require("./gl/index.js")); + +var _index41 = _interopRequireDefault(require("./gu/index.js")); + +var _index42 = _interopRequireDefault(require("./he/index.js")); + +var _index43 = _interopRequireDefault(require("./hi/index.js")); + +var _index44 = _interopRequireDefault(require("./hr/index.js")); + +var _index45 = _interopRequireDefault(require("./ht/index.js")); + +var _index46 = _interopRequireDefault(require("./hu/index.js")); + +var _index47 = _interopRequireDefault(require("./hy/index.js")); + +var _index48 = _interopRequireDefault(require("./id/index.js")); + +var _index49 = _interopRequireDefault(require("./is/index.js")); + +var _index50 = _interopRequireDefault(require("./it/index.js")); + +var _index51 = _interopRequireDefault(require("./it-CH/index.js")); + +var _index52 = _interopRequireDefault(require("./ja/index.js")); + +var _index53 = _interopRequireDefault(require("./ja-Hira/index.js")); + +var _index54 = _interopRequireDefault(require("./ka/index.js")); + +var _index55 = _interopRequireDefault(require("./kk/index.js")); + +var _index56 = _interopRequireDefault(require("./km/index.js")); + +var _index57 = _interopRequireDefault(require("./kn/index.js")); + +var _index58 = _interopRequireDefault(require("./ko/index.js")); + +var _index59 = _interopRequireDefault(require("./lb/index.js")); + +var _index60 = _interopRequireDefault(require("./lt/index.js")); + +var _index61 = _interopRequireDefault(require("./lv/index.js")); + +var _index62 = _interopRequireDefault(require("./mk/index.js")); + +var _index63 = _interopRequireDefault(require("./mn/index.js")); + +var _index64 = _interopRequireDefault(require("./ms/index.js")); + +var _index65 = _interopRequireDefault(require("./mt/index.js")); + +var _index66 = _interopRequireDefault(require("./nb/index.js")); + +var _index67 = _interopRequireDefault(require("./nl/index.js")); + +var _index68 = _interopRequireDefault(require("./nl-BE/index.js")); + +var _index69 = _interopRequireDefault(require("./nn/index.js")); + +var _index70 = _interopRequireDefault(require("./oc/index.js")); + +var _index71 = _interopRequireDefault(require("./pl/index.js")); + +var _index72 = _interopRequireDefault(require("./pt/index.js")); + +var _index73 = _interopRequireDefault(require("./pt-BR/index.js")); + +var _index74 = _interopRequireDefault(require("./ro/index.js")); + +var _index75 = _interopRequireDefault(require("./ru/index.js")); + +var _index76 = _interopRequireDefault(require("./sk/index.js")); + +var _index77 = _interopRequireDefault(require("./sl/index.js")); + +var _index78 = _interopRequireDefault(require("./sq/index.js")); + +var _index79 = _interopRequireDefault(require("./sr/index.js")); + +var _index80 = _interopRequireDefault(require("./sr-Latn/index.js")); + +var _index81 = _interopRequireDefault(require("./sv/index.js")); + +var _index82 = _interopRequireDefault(require("./ta/index.js")); + +var _index83 = _interopRequireDefault(require("./te/index.js")); + +var _index84 = _interopRequireDefault(require("./th/index.js")); + +var _index85 = _interopRequireDefault(require("./tr/index.js")); + +var _index86 = _interopRequireDefault(require("./ug/index.js")); + +var _index87 = _interopRequireDefault(require("./uk/index.js")); + +var _index88 = _interopRequireDefault(require("./uz/index.js")); + +var _index89 = _interopRequireDefault(require("./uz-Cyrl/index.js")); + +var _index90 = _interopRequireDefault(require("./vi/index.js")); + +var _index91 = _interopRequireDefault(require("./zh-CN/index.js")); + +var _index92 = _interopRequireDefault(require("./zh-HK/index.js")); + +var _index93 = _interopRequireDefault(require("./zh-TW/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/date-fns/locale/index.js.flow b/node_modules/date-fns/locale/index.js.flow new file mode 100644 index 00000000..ddcdfe79 --- /dev/null +++ b/node_modules/date-fns/locale/index.js.flow @@ -0,0 +1,129 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: { + af: Locale, + ar: Locale, + arDZ: Locale, + arEG: Locale, + arMA: Locale, + arSA: Locale, + arTN: Locale, + az: Locale, + be: Locale, + beTarask: Locale, + bg: Locale, + bn: Locale, + bs: Locale, + ca: Locale, + cs: Locale, + cy: Locale, + da: Locale, + de: Locale, + deAT: Locale, + el: Locale, + enAU: Locale, + enCA: Locale, + enGB: Locale, + enIE: Locale, + enIN: Locale, + enNZ: Locale, + enUS: Locale, + enZA: Locale, + eo: Locale, + es: Locale, + et: Locale, + eu: Locale, + faIR: Locale, + fi: Locale, + fr: Locale, + frCA: Locale, + frCH: Locale, + fy: Locale, + gd: Locale, + gl: Locale, + gu: Locale, + he: Locale, + hi: Locale, + hr: Locale, + ht: Locale, + hu: Locale, + hy: Locale, + id: Locale, + is: Locale, + it: Locale, + itCH: Locale, + ja: Locale, + jaHira: Locale, + ka: Locale, + kk: Locale, + km: Locale, + kn: Locale, + ko: Locale, + lb: Locale, + lt: Locale, + lv: Locale, + mk: Locale, + mn: Locale, + ms: Locale, + mt: Locale, + nb: Locale, + nl: Locale, + nlBE: Locale, + nn: Locale, + oc: Locale, + pl: Locale, + pt: Locale, + ptBR: Locale, + ro: Locale, + ru: Locale, + sk: Locale, + sl: Locale, + sq: Locale, + sr: Locale, + srLatn: Locale, + sv: Locale, + ta: Locale, + te: Locale, + th: Locale, + tr: Locale, + ug: Locale, + uk: Locale, + uz: Locale, + uzCyrl: Locale, + vi: Locale, + zhCN: Locale, + zhHK: Locale, + zhTW: Locale, +} diff --git a/node_modules/date-fns/locale/is/_lib/formatDistance/index.js b/node_modules/date-fns/locale/is/_lib/formatDistance/index.js new file mode 100644 index 00000000..89797181 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minna en 1 sekúnda', + other: 'minna en {{count}} sekúndur' + }, + xSeconds: { + one: '1 sekúnda', + other: '{{count}} sekúndur' + }, + halfAMinute: 'hálf mínúta', + lessThanXMinutes: { + one: 'minna en 1 mínúta', + other: 'minna en {{count}} mínútur' + }, + xMinutes: { + one: '1 mínúta', + other: '{{count}} mínútur' + }, + aboutXHours: { + one: 'u.þ.b. 1 klukkustund', + other: 'u.þ.b. {{count}} klukkustundir' + }, + xHours: { + one: '1 klukkustund', + other: '{{count}} klukkustundir' + }, + xDays: { + one: '1 dagur', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'um viku', + other: 'um {{count}} vikur' + }, + xWeeks: { + one: '1 viku', + other: '{{count}} vikur' + }, + aboutXMonths: { + one: 'u.þ.b. 1 mánuður', + other: 'u.þ.b. {{count}} mánuðir' + }, + xMonths: { + one: '1 mánuður', + other: '{{count}} mánuðir' + }, + aboutXYears: { + one: 'u.þ.b. 1 ár', + other: 'u.þ.b. {{count}} ár' + }, + xYears: { + one: '1 ár', + other: '{{count}} ár' + }, + overXYears: { + one: 'meira en 1 ár', + other: 'meira en {{count}} ár' + }, + almostXYears: { + one: 'næstum 1 ár', + other: 'næstum {{count}} ár' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'í ' + result; + } else { + return result + ' síðan'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/_lib/formatLong/index.js b/node_modules/date-fns/locale/is/_lib/formatLong/index.js new file mode 100644 index 00000000..a3a6fcb1 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM y', + long: 'do MMMM y', + medium: 'do MMM y', + short: 'd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/_lib/formatRelative/index.js b/node_modules/date-fns/locale/is/_lib/formatRelative/index.js new file mode 100644 index 00000000..07a7c703 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'síðasta' dddd 'kl.' p", + yesterday: "'í gær kl.' p", + today: "'í dag kl.' p", + tomorrow: "'á morgun kl.' p", + nextWeek: "dddd 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/_lib/localize/index.js b/node_modules/date-fns/locale/is/_lib/localize/index.js new file mode 100644 index 00000000..c7896f60 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['fyrir Krist', 'eftir Krist'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1F', '2F', '3F', '4F'], + wide: ['1. fjórðungur', '2. fjórðungur', '3. fjórðungur', '4. fjórðungur'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'Á', 'S', 'Ó', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apríl', 'maí', 'júní', 'júlí', 'ágúst', 'sept.', 'okt.', 'nóv.', 'des.'], + wide: ['janúar', 'febrúar', 'mars', 'apríl', 'maí', 'júní', 'júlí', 'ágúst', 'september', 'október', 'nóvember', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'Þ', 'M', 'F', 'F', 'L'], + short: ['Su', 'Má', 'Þr', 'Mi', 'Fi', 'Fö', 'La'], + abbreviated: ['sun.', 'mán.', 'þri.', 'mið.', 'fim.', 'fös.', 'lau.'], + wide: ['sunnudagur', 'mánudagur', 'þriðjudagur', 'miðvikudagur', 'fimmtudagur', 'föstudagur', 'laugardagur'] +}; +var dayPeriodValues = { + narrow: { + am: 'f', + pm: 'e', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + }, + abbreviated: { + am: 'f.h.', + pm: 'e.h.', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + }, + wide: { + am: 'fyrir hádegi', + pm: 'eftir hádegi', + midnight: 'miðnætti', + noon: 'hádegi', + morning: 'morgunn', + afternoon: 'síðdegi', + evening: 'kvöld', + night: 'nótt' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'f', + pm: 'e', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + }, + abbreviated: { + am: 'f.h.', + pm: 'e.h.', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + }, + wide: { + am: 'fyrir hádegi', + pm: 'eftir hádegi', + midnight: 'á miðnætti', + noon: 'á hádegi', + morning: 'að morgni', + afternoon: 'síðdegis', + evening: 'um kvöld', + night: 'um nótt' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/_lib/match/index.js b/node_modules/date-fns/locale/is/_lib/match/index.js new file mode 100644 index 00000000..0e9976a7 --- /dev/null +++ b/node_modules/date-fns/locale/is/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+(\.)?/i; +var matchEraPatterns = { + narrow: /^(f\.Kr\.|e\.Kr\.)/i, + abbreviated: /^(f\.Kr\.|e\.Kr\.)/i, + wide: /^(fyrir Krist|eftir Krist)/i +}; +var parseEraPatterns = { + any: [/^(f\.Kr\.)/i, /^(e\.Kr\.)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]\.?/i, + abbreviated: /^q[1234]\.?/i, + wide: /^[1234]\.? fjórðungur/i +}; +var parseQuarterPatterns = { + any: [/1\.?/i, /2\.?/i, /3\.?/i, /4\.?/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmásónd]/i, + abbreviated: /^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i, + wide: /^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^á/i, /^s/i, /^ó/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maí/i, /^jún/i, /^júl/i, /^áu/i, /^s/i, /^ó/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtwf]/i, + short: /^(su|má|þr|mi|fi|fö|la)/i, + abbreviated: /^(sun|mán|þri|mið|fim|fös|lau)\.?/i, + wide: /^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^þ/i, /^m/i, /^f/i, /^f/i, /^l/i], + any: [/^su/i, /^má/i, /^þr/i, /^mi/i, /^fi/i, /^fö/i, /^la/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i, + any: /^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^mi/i, + noon: /^há/i, + morning: /morgunn/i, + afternoon: /síðdegi/i, + evening: /kvöld/i, + night: /nótt/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/index.d.ts b/node_modules/date-fns/locale/is/index.d.ts new file mode 100644 index 00000000..0d12119b --- /dev/null +++ b/node_modules/date-fns/locale/is/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { is } from 'date-fns/locale' +export default is diff --git a/node_modules/date-fns/locale/is/index.js b/node_modules/date-fns/locale/is/index.js new file mode 100644 index 00000000..689ee05c --- /dev/null +++ b/node_modules/date-fns/locale/is/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Icelandic locale. + * @language Icelandic + * @iso-639-2 isl + * @author Derek Blank [@derekblank]{@link https://github.com/derekblank} + * @author Arnór Ýmir [@lamayg]{@link https://github.com/lamayg} + */ +var locale = { + code: 'is', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/is/index.js.flow b/node_modules/date-fns/locale/is/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/is/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/is/package.json b/node_modules/date-fns/locale/is/package.json new file mode 100644 index 00000000..d50cf98f --- /dev/null +++ b/node_modules/date-fns/locale/is/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/is/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/it-CH/_lib/formatLong/index.js b/node_modules/date-fns/locale/it-CH/_lib/formatLong/index.js new file mode 100644 index 00000000..e0bff9f6 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it-CH/index.d.ts b/node_modules/date-fns/locale/it-CH/index.d.ts new file mode 100644 index 00000000..43f70033 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { itCH } from 'date-fns/locale' +export default itCH diff --git a/node_modules/date-fns/locale/it-CH/index.js b/node_modules/date-fns/locale/it-CH/index.js new file mode 100644 index 00000000..9968f45b --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../it/_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("../it/_lib/formatRelative/index.js")); + +var _index3 = _interopRequireDefault(require("../it/_lib/localize/index.js")); + +var _index4 = _interopRequireDefault(require("../it/_lib/match/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Italian locale (Switzerland). + * @language Italian + * @iso-639-2 ita + * @author Mike Peyer [@maic66]{@link https://github.com/maic66} + */ +var locale = { + code: 'it-CH', + formatDistance: _index.default, + formatLong: _index5.default, + formatRelative: _index2.default, + localize: _index3.default, + match: _index4.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it-CH/index.js.flow b/node_modules/date-fns/locale/it-CH/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/it-CH/package.json b/node_modules/date-fns/locale/it-CH/package.json new file mode 100644 index 00000000..67bb591b --- /dev/null +++ b/node_modules/date-fns/locale/it-CH/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/it-CH/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/_lib/formatDistance/index.js b/node_modules/date-fns/locale/it/_lib/formatDistance/index.js new file mode 100644 index 00000000..6083eec6 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'meno di un secondo', + other: 'meno di {{count}} secondi' + }, + xSeconds: { + one: 'un secondo', + other: '{{count}} secondi' + }, + halfAMinute: 'alcuni secondi', + lessThanXMinutes: { + one: 'meno di un minuto', + other: 'meno di {{count}} minuti' + }, + xMinutes: { + one: 'un minuto', + other: '{{count}} minuti' + }, + aboutXHours: { + one: "circa un'ora", + other: 'circa {{count}} ore' + }, + xHours: { + one: "un'ora", + other: '{{count}} ore' + }, + xDays: { + one: 'un giorno', + other: '{{count}} giorni' + }, + aboutXWeeks: { + one: 'circa una settimana', + other: 'circa {{count}} settimane' + }, + xWeeks: { + one: 'una settimana', + other: '{{count}} settimane' + }, + aboutXMonths: { + one: 'circa un mese', + other: 'circa {{count}} mesi' + }, + xMonths: { + one: 'un mese', + other: '{{count}} mesi' + }, + aboutXYears: { + one: 'circa un anno', + other: 'circa {{count}} anni' + }, + xYears: { + one: 'un anno', + other: '{{count}} anni' + }, + overXYears: { + one: 'più di un anno', + other: 'più di {{count}} anni' + }, + almostXYears: { + one: 'quasi un anno', + other: 'quasi {{count}} anni' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'tra ' + result; + } else { + return result + ' fa'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/_lib/formatLong/index.js b/node_modules/date-fns/locale/it/_lib/formatLong/index.js new file mode 100644 index 00000000..699a829b --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/_lib/formatRelative/index.js b/node_modules/date-fns/locale/it/_lib/formatRelative/index.js new file mode 100644 index 00000000..e90cddb3 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/formatRelative/index.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var weekdays = ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato']; + +function _lastWeek(day) { + switch (day) { + case 0: + return "'domenica scorsa alle' p"; + + default: + return "'" + weekdays[day] + " scorso alle' p"; + } +} + +function thisWeek(day) { + return "'" + weekdays[day] + " alle' p"; +} + +function _nextWeek(day) { + switch (day) { + case 0: + return "'domenica prossima alle' p"; + + default: + return "'" + weekdays[day] + " prossimo alle' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'ieri alle' p", + today: "'oggi alle' p", + tomorrow: "'domani alle' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/_lib/localize/index.js b/node_modules/date-fns/locale/it/_lib/localize/index.js new file mode 100644 index 00000000..eff9af2f --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a.C.', 'd.C.'], + wide: ['avanti Cristo', 'dopo Cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['G', 'F', 'M', 'A', 'M', 'G', 'L', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'], + wide: ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'] +}; +var dayValues = { + narrow: ['D', 'L', 'M', 'M', 'G', 'V', 'S'], + short: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], + abbreviated: ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], + wide: ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'] +}; +var dayPeriodValues = { + narrow: { + am: 'm.', + pm: 'p.', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'mattina', + afternoon: 'pomeriggio', + evening: 'sera', + night: 'notte' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'm.', + pm: 'p.', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'mezzanotte', + noon: 'mezzogiorno', + morning: 'di mattina', + afternoon: 'del pomeriggio', + evening: 'di sera', + night: 'di notte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return String(number); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/_lib/match/index.js b/node_modules/date-fns/locale/it/_lib/match/index.js new file mode 100644 index 00000000..785d2434 --- /dev/null +++ b/node_modules/date-fns/locale/it/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(aC|dC)/i, + abbreviated: /^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i, + wide: /^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i +}; +var parseEraPatterns = { + any: [/^a/i, /^(d|e)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^t[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[gfmalsond]/i, + abbreviated: /^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i, + wide: /^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i +}; +var parseMonthPatterns = { + narrow: [/^g/i, /^f/i, /^m/i, /^a/i, /^m/i, /^g/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ge/i, /^f/i, /^mar/i, /^ap/i, /^mag/i, /^gi/i, /^l/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmgvs]/i, + short: /^(do|lu|ma|me|gi|ve|sa)/i, + abbreviated: /^(dom|lun|mar|mer|gio|ven|sab)/i, + wide: /^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^g/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^me/i, /^g/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i, + any: /^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mezza/i, + noon: /^mezzo/i, + morning: /mattina/i, + afternoon: /pomeriggio/i, + evening: /sera/i, + night: /notte/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/index.d.ts b/node_modules/date-fns/locale/it/index.d.ts new file mode 100644 index 00000000..6e0422e9 --- /dev/null +++ b/node_modules/date-fns/locale/it/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { it } from 'date-fns/locale' +export default it diff --git a/node_modules/date-fns/locale/it/index.js b/node_modules/date-fns/locale/it/index.js new file mode 100644 index 00000000..5c697d4c --- /dev/null +++ b/node_modules/date-fns/locale/it/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Italian locale. + * @language Italian + * @iso-639-2 ita + * @author Alberto Restifo [@albertorestifo]{@link https://github.com/albertorestifo} + * @author Giovanni Polimeni [@giofilo]{@link https://github.com/giofilo} + * @author Vincenzo Carrese [@vin-car]{@link https://github.com/vin-car} + */ +var locale = { + code: 'it', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/it/index.js.flow b/node_modules/date-fns/locale/it/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/it/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/it/package.json b/node_modules/date-fns/locale/it/package.json new file mode 100644 index 00000000..6a284263 --- /dev/null +++ b/node_modules/date-fns/locale/it/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/it/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js new file mode 100644 index 00000000..734cacc9 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatDistance/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1びょうみまん', + other: '{{count}}びょうみまん', + oneWithSuffix: 'やく1びょう', + otherWithSuffix: 'やく{{count}}びょう' + }, + xSeconds: { + one: '1びょう', + other: '{{count}}びょう' + }, + halfAMinute: '30びょう', + lessThanXMinutes: { + one: '1ぷんみまん', + other: '{{count}}ふんみまん', + oneWithSuffix: 'やく1ぷん', + otherWithSuffix: 'やく{{count}}ふん' + }, + xMinutes: { + one: '1ぷん', + other: '{{count}}ふん' + }, + aboutXHours: { + one: 'やく1じかん', + other: 'やく{{count}}じかん' + }, + xHours: { + one: '1じかん', + other: '{{count}}じかん' + }, + xDays: { + one: '1にち', + other: '{{count}}にち' + }, + aboutXWeeks: { + one: 'やく1しゅうかん', + other: 'やく{{count}}しゅうかん' + }, + xWeeks: { + one: '1しゅうかん', + other: '{{count}}しゅうかん' + }, + aboutXMonths: { + one: 'やく1かげつ', + other: 'やく{{count}}かげつ' + }, + xMonths: { + one: '1かげつ', + other: '{{count}}かげつ' + }, + aboutXYears: { + one: 'やく1ねん', + other: 'やく{{count}}ねん' + }, + xYears: { + one: '1ねん', + other: '{{count}}ねん' + }, + overXYears: { + one: '1ねんいじょう', + other: '{{count}}ねんいじょう' + }, + almostXYears: { + one: '1ねんちかく', + other: '{{count}}ねんちかく' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'あと'; + } else { + return result + 'まえ'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatLong/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong/index.js new file mode 100644 index 00000000..bf46cd7c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'yねんMがつdにちEEEE', + long: 'yねんMがつdにち', + medium: 'y/MM/dd', + short: 'y/MM/dd' +}; +var timeFormats = { + full: 'Hじmmふんssびょう zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative/index.js new file mode 100644 index 00000000..16f92797 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: 'せんしゅうのeeeeのp', + yesterday: 'きのうのp', + today: 'きょうのp', + tomorrow: 'あしたのp', + nextWeek: 'よくしゅうのeeeeのp', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/localize/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/localize/index.js new file mode 100644 index 00000000..6c5fba1c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/localize/index.js @@ -0,0 +1,162 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['BC', 'AC'], + abbreviated: ['きげんぜん', 'せいれき'], + wide: ['きげんぜん', 'せいれき'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['だい1しはんき', 'だい2しはんき', 'だい3しはんき', 'だい4しはんき'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1がつ', '2がつ', '3がつ', '4がつ', '5がつ', '6がつ', '7がつ', '8がつ', '9がつ', '10がつ', '11がつ', '12がつ'], + wide: ['1がつ', '2がつ', '3がつ', '4がつ', '5がつ', '6がつ', '7がつ', '8がつ', '9がつ', '10がつ', '11がつ', '12がつ'] +}; +var dayValues = { + narrow: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + short: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + abbreviated: ['にち', 'げつ', 'か', 'すい', 'もく', 'きん', 'ど'], + wide: ['にちようび', 'げつようび', 'かようび', 'すいようび', 'もくようび', 'きんようび', 'どようび'] +}; +var dayPeriodValues = { + narrow: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + abbreviated: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + wide: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + abbreviated: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + }, + wide: { + am: 'ごぜん', + pm: 'ごご', + midnight: 'しんや', + noon: 'しょうご', + morning: 'あさ', + afternoon: 'ごご', + evening: 'よる', + night: 'しんや' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'year': + return "".concat(number, "\u306D\u3093"); + + case 'quarter': + return "\u3060\u3044".concat(number, "\u3057\u306F\u3093\u304D"); + + case 'month': + return "".concat(number, "\u304C\u3064"); + + case 'week': + return "\u3060\u3044".concat(number, "\u3057\u3085\u3046"); + + case 'date': + return "".concat(number, "\u306B\u3061"); + + case 'hour': + return "".concat(number, "\u3058"); + + case 'minute': + return "".concat(number, "\u3075\u3093"); + + case 'second': + return "".concat(number, "\u3073\u3087\u3046"); + + default: + return "".concat(number); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/_lib/match/index.js b/node_modules/date-fns/locale/ja-Hira/_lib/match/index.js new file mode 100644 index 00000000..b266286c --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(きげん[前後]|せいれき)/i, + wide: /^(きげん[前後]|せいれき)/i +}; +var parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(きげんぜん)/i, /^(せいれき|きげんご)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^だい[1234一二三四1234]しはんき/i +}; +var parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i] +}; +var matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])がつ/i, + wide: /^([123456789]|1[012])がつ/i +}; +var parseMonthPatterns = { + any: [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^(にち|げつ|か|すい|もく|きん|ど)/, + short: /^(にち|げつ|か|すい|もく|きん|ど)/, + abbreviated: /^(にち|げつ|か|すい|もく|きん|ど)/, + wide: /^(にち|げつ|か|すい|もく|きん|ど)ようび/ +}; +var parseDayPatterns = { + any: [/^にち/, /^げつ/, /^か/, /^すい/, /^もく/, /^きん/, /^ど/] +}; +var matchDayPeriodPatterns = { + any: /^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(A|ごぜん)/i, + pm: /^(P|ごご)/i, + midnight: /^しんや|まよなか/i, + noon: /^しょうご/i, + morning: /^あさ/i, + afternoon: /^ごご/i, + evening: /^よる/i, + night: /^しんや/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/index.d.ts b/node_modules/date-fns/locale/ja-Hira/index.d.ts new file mode 100644 index 00000000..9dfe1251 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { jaHira } from 'date-fns/locale' +export default jaHira diff --git a/node_modules/date-fns/locale/ja-Hira/index.js b/node_modules/date-fns/locale/ja-Hira/index.js new file mode 100644 index 00000000..63ad84ae --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Japanese (Hiragana) locale. + * @language Japanese (Hiragana) + * @iso-639-2 jpn + * @author Eri Hiramatsu [@Eritutteo]{@link https://github.com/Eritutteo} + */ +var locale = { + code: 'ja-Hira', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja-Hira/index.js.flow b/node_modules/date-fns/locale/ja-Hira/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ja-Hira/package.json b/node_modules/date-fns/locale/ja-Hira/package.json new file mode 100644 index 00000000..60d9ddc6 --- /dev/null +++ b/node_modules/date-fns/locale/ja-Hira/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ja-Hira/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ja/_lib/formatDistance/index.js new file mode 100644 index 00000000..2ddced00 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatDistance/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1秒未満', + other: '{{count}}秒未満', + oneWithSuffix: '約1秒', + otherWithSuffix: '約{{count}}秒' + }, + xSeconds: { + one: '1秒', + other: '{{count}}秒' + }, + halfAMinute: '30秒', + lessThanXMinutes: { + one: '1分未満', + other: '{{count}}分未満', + oneWithSuffix: '約1分', + otherWithSuffix: '約{{count}}分' + }, + xMinutes: { + one: '1分', + other: '{{count}}分' + }, + aboutXHours: { + one: '約1時間', + other: '約{{count}}時間' + }, + xHours: { + one: '1時間', + other: '{{count}}時間' + }, + xDays: { + one: '1日', + other: '{{count}}日' + }, + aboutXWeeks: { + one: '約1週間', + other: '約{{count}}週間' + }, + xWeeks: { + one: '1週間', + other: '{{count}}週間' + }, + aboutXMonths: { + one: '約1か月', + other: '約{{count}}か月' + }, + xMonths: { + one: '1か月', + other: '{{count}}か月' + }, + aboutXYears: { + one: '約1年', + other: '約{{count}}年' + }, + xYears: { + one: '1年', + other: '{{count}}年' + }, + overXYears: { + one: '1年以上', + other: '{{count}}年以上' + }, + almostXYears: { + one: '1年近く', + other: '{{count}}年近く' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options.addSuffix && tokenValue.oneWithSuffix) { + result = tokenValue.oneWithSuffix; + } else { + result = tokenValue.one; + } + } else { + if (options.addSuffix && tokenValue.otherWithSuffix) { + result = tokenValue.otherWithSuffix.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + } + + if (options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '後'; + } else { + return result + '前'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/_lib/formatLong/index.js b/node_modules/date-fns/locale/ja/_lib/formatLong/index.js new file mode 100644 index 00000000..56126fa4 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'y年M月d日EEEE', + long: 'y年M月d日', + medium: 'y/MM/dd', + short: 'y/MM/dd' +}; +var timeFormats = { + full: 'H時mm分ss秒 zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ja/_lib/formatRelative/index.js new file mode 100644 index 00000000..848f9eac --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: '先週のeeeeのp', + yesterday: '昨日のp', + today: '今日のp', + tomorrow: '明日のp', + nextWeek: '翌週のeeeeのp', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/_lib/localize/index.js b/node_modules/date-fns/locale/ja/_lib/localize/index.js new file mode 100644 index 00000000..ce398191 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/localize/index.js @@ -0,0 +1,162 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['BC', 'AC'], + abbreviated: ['紀元前', '西暦'], + wide: ['紀元前', '西暦'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['第1四半期', '第2四半期', '第3四半期', '第4四半期'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'] +}; +var dayValues = { + narrow: ['日', '月', '火', '水', '木', '金', '土'], + short: ['日', '月', '火', '水', '木', '金', '土'], + abbreviated: ['日', '月', '火', '水', '木', '金', '土'], + wide: ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'] +}; +var dayPeriodValues = { + narrow: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + abbreviated: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + wide: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + abbreviated: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + }, + wide: { + am: '午前', + pm: '午後', + midnight: '深夜', + noon: '正午', + morning: '朝', + afternoon: '午後', + evening: '夜', + night: '深夜' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'year': + return "".concat(number, "\u5E74"); + + case 'quarter': + return "\u7B2C".concat(number, "\u56DB\u534A\u671F"); + + case 'month': + return "".concat(number, "\u6708"); + + case 'week': + return "\u7B2C".concat(number, "\u9031"); + + case 'date': + return "".concat(number, "\u65E5"); + + case 'hour': + return "".concat(number, "\u6642"); + + case 'minute': + return "".concat(number, "\u5206"); + + case 'second': + return "".concat(number, "\u79D2"); + + default: + return "".concat(number); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/_lib/match/index.js b/node_modules/date-fns/locale/ja/_lib/match/index.js new file mode 100644 index 00000000..202ff364 --- /dev/null +++ b/node_modules/date-fns/locale/ja/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(B\.?C\.?|A\.?D\.?)/i, + abbreviated: /^(紀元[前後]|西暦)/i, + wide: /^(紀元[前後]|西暦)/i +}; +var parseEraPatterns = { + narrow: [/^B/i, /^A/i], + any: [/^(紀元前)/i, /^(西暦|紀元後)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^Q[1234]/i, + wide: /^第[1234一二三四1234]四半期/i +}; +var parseQuarterPatterns = { + any: [/(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i] +}; +var matchMonthPatterns = { + narrow: /^([123456789]|1[012])/, + abbreviated: /^([123456789]|1[012])月/i, + wide: /^([123456789]|1[012])月/i +}; +var parseMonthPatterns = { + any: [/^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^[日月火水木金土]/, + short: /^[日月火水木金土]/, + abbreviated: /^[日月火水木金土]/, + wide: /^[日月火水木金土]曜日/ +}; +var parseDayPatterns = { + any: [/^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/] +}; +var matchDayPeriodPatterns = { + any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(A|午前)/i, + pm: /^(P|午後)/i, + midnight: /^深夜|真夜中/i, + noon: /^正午/i, + morning: /^朝/i, + afternoon: /^午後/i, + evening: /^夜/i, + night: /^深夜/i + } +}; +var match = { + ordinalNumber: (0, _index.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index2.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index2.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index2.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index2.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index2.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/index.d.ts b/node_modules/date-fns/locale/ja/index.d.ts new file mode 100644 index 00000000..dec4f9c9 --- /dev/null +++ b/node_modules/date-fns/locale/ja/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ja } from 'date-fns/locale' +export default ja diff --git a/node_modules/date-fns/locale/ja/index.js b/node_modules/date-fns/locale/ja/index.js new file mode 100644 index 00000000..a6940548 --- /dev/null +++ b/node_modules/date-fns/locale/ja/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Japanese locale. + * @language Japanese + * @iso-639-2 jpn + * @author Thomas Eilmsteiner [@DeMuu]{@link https://github.com/DeMuu} + * @author Yamagishi Kazutoshi [@ykzts]{@link https://github.com/ykzts} + * @author Luca Ban [@mesqueeb]{@link https://github.com/mesqueeb} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} + */ +var locale = { + code: 'ja', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ja/index.js.flow b/node_modules/date-fns/locale/ja/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ja/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ja/package.json b/node_modules/date-fns/locale/ja/package.json new file mode 100644 index 00000000..21a71d36 --- /dev/null +++ b/node_modules/date-fns/locale/ja/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ja/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ka/_lib/formatDistance/index.js new file mode 100644 index 00000000..b7d44f4b --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatDistance/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + past: '{{count}} წამზე ნაკლები ხნის წინ', + present: '{{count}} წამზე ნაკლები', + future: '{{count}} წამზე ნაკლებში' + }, + xSeconds: { + past: '{{count}} წამის წინ', + present: '{{count}} წამი', + future: '{{count}} წამში' + }, + halfAMinute: { + past: 'ნახევარი წუთის წინ', + present: 'ნახევარი წუთი', + future: 'ნახევარი წუთში' + }, + lessThanXMinutes: { + past: '{{count}} წუთზე ნაკლები ხნის წინ', + present: '{{count}} წუთზე ნაკლები', + future: '{{count}} წუთზე ნაკლებში' + }, + xMinutes: { + past: '{{count}} წუთის წინ', + present: '{{count}} წუთი', + future: '{{count}} წუთში' + }, + aboutXHours: { + past: 'დაახლოებით {{count}} საათის წინ', + present: 'დაახლოებით {{count}} საათი', + future: 'დაახლოებით {{count}} საათში' + }, + xHours: { + past: '{{count}} საათის წინ', + present: '{{count}} საათი', + future: '{{count}} საათში' + }, + xDays: { + past: '{{count}} დღის წინ', + present: '{{count}} დღე', + future: '{{count}} დღეში' + }, + aboutXWeeks: { + past: 'დაახლოებით {{count}} კვირას წინ', + present: 'დაახლოებით {{count}} კვირა', + future: 'დაახლოებით {{count}} კვირაში' + }, + xWeeks: { + past: '{{count}} კვირას კვირა', + present: '{{count}} კვირა', + future: '{{count}} კვირაში' + }, + aboutXMonths: { + past: 'დაახლოებით {{count}} თვის წინ', + present: 'დაახლოებით {{count}} თვე', + future: 'დაახლოებით {{count}} თვეში' + }, + xMonths: { + past: '{{count}} თვის წინ', + present: '{{count}} თვე', + future: '{{count}} თვეში' + }, + aboutXYears: { + past: 'დაახლოებით {{count}} წლის წინ', + present: 'დაახლოებით {{count}} წელი', + future: 'დაახლოებით {{count}} წელში' + }, + xYears: { + past: '{{count}} წლის წინ', + present: '{{count}} წელი', + future: '{{count}} წელში' + }, + overXYears: { + past: '{{count}} წელზე მეტი ხნის წინ', + present: '{{count}} წელზე მეტი', + future: '{{count}} წელზე მეტი ხნის შემდეგ' + }, + almostXYears: { + past: 'თითქმის {{count}} წლის წინ', + present: 'თითქმის {{count}} წელი', + future: 'თითქმის {{count}} წელში' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (options !== null && options !== void 0 && options.addSuffix && options.comparison && options.comparison > 0) { + result = tokenValue.future.replace('{{count}}', String(count)); + } else if (options !== null && options !== void 0 && options.addSuffix) { + result = tokenValue.past.replace('{{count}}', String(count)); + } else { + result = tokenValue.present.replace('{{count}}', String(count)); + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/_lib/formatLong/index.js b/node_modules/date-fns/locale/ka/_lib/formatLong/index.js new file mode 100644 index 00000000..c617408e --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do, MMMM, y', + medium: 'd, MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} {{time}}'-ზე'", + long: "{{date}} {{time}}'-ზე'", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ka/_lib/formatRelative/index.js new file mode 100644 index 00000000..dae0f5b2 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'წინა' eeee p'-ზე'", + yesterday: "'გუშინ' p'-ზე'", + today: "'დღეს' p'-ზე'", + tomorrow: "'ხვალ' p'-ზე'", + nextWeek: "'შემდეგი' eeee p'-ზე'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/_lib/localize/index.js b/node_modules/date-fns/locale/ka/_lib/localize/index.js new file mode 100644 index 00000000..619df103 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/localize/index.js @@ -0,0 +1,142 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ჩ.წ-მდე', 'ჩ.წ'], + abbreviated: ['ჩვ.წ-მდე', 'ჩვ.წ'], + wide: ['ჩვენს წელთაღრიცხვამდე', 'ჩვენი წელთაღრიცხვით'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ლი კვ', '2-ე კვ', '3-ე კვ', '4-ე კვ'], + wide: ['1-ლი კვარტალი', '2-ე კვარტალი', '3-ე კვარტალი', '4-ე კვარტალი'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ია', 'თე', 'მა', 'აპ', 'მს', 'ვნ', 'ვლ', 'აგ', 'სე', 'ოქ', 'ნო', 'დე'], + abbreviated: ['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ'], + wide: ['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'] +}; +var dayValues = { + narrow: ['კვ', 'ორ', 'სა', 'ოთ', 'ხუ', 'პა', 'შა'], + short: ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'], + abbreviated: ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'], + wide: ['კვირა', 'ორშაბათი', 'სამშაბათი', 'ოთხშაბათი', 'ხუთშაბათი', 'პარასკევი', 'შაბათი'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'შუაღამე', + noon: 'შუადღე', + morning: 'დილა', + afternoon: 'საღამო', + evening: 'საღამო', + night: 'ღამე' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'შუაღამით', + noon: 'შუადღისას', + morning: 'დილით', + afternoon: 'ნაშუადღევს', + evening: 'საღამოს', + night: 'ღამით' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber) { + var number = Number(dirtyNumber); + + if (number === 1) { + return number + '-ლი'; + } + + return number + '-ე'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/_lib/match/index.js b/node_modules/date-fns/locale/ka/_lib/match/index.js new file mode 100644 index 00000000..57e6a3d3 --- /dev/null +++ b/node_modules/date-fns/locale/ka/_lib/match/index.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-ლი|-ე)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ჩვ?\.წ)/i, + abbreviated: /^(ჩვ?\.წ)/i, + wide: /^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i +}; +var parseEraPatterns = { + any: [/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i, /^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-(ლი|ე)? კვ/i, + wide: /^[1234]-(ლი|ე)? კვარტალი/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + any: /^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i +}; +var parseMonthPatterns = { + any: [/^ია/i, /^თ/i, /^მარ/i, /^აპ/i, /^მაი/i, /^ი?ვნ/i, /^ი?ვლ/i, /^აგ/i, /^ს/i, /^ო/i, /^ნ/i, /^დ/i] +}; +var matchDayPatterns = { + narrow: /^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i, + short: /^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i, + wide: /^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i +}; +var parseDayPatterns = { + any: [/^კვ/i, /^ორ/i, /^სა/i, /^ოთ/i, /^ხუ/i, /^პა/i, /^შა/i] +}; +var matchDayPeriodPatterns = { + any: /^([ap]\.?\s?m\.?|შუაღ|დილ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^შუაღ/i, + noon: /^შუადღ/i, + morning: /^დილ/i, + afternoon: /ნაშუადღევს/i, + evening: /საღამო/i, + night: /ღამ/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/index.d.ts b/node_modules/date-fns/locale/ka/index.d.ts new file mode 100644 index 00000000..c0be71ad --- /dev/null +++ b/node_modules/date-fns/locale/ka/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ka } from 'date-fns/locale' +export default ka diff --git a/node_modules/date-fns/locale/ka/index.js b/node_modules/date-fns/locale/ka/index.js new file mode 100644 index 00000000..05f78a59 --- /dev/null +++ b/node_modules/date-fns/locale/ka/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Georgian locale. + * @language Georgian + * @iso-639-2 geo + * @author Lado Lomidze [@Landish]{@link https://github.com/Landish} + * @author Nick Shvelidze [@shvelo]{@link https://github.com/shvelo} + */ +var locale = { + code: 'ka', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ka/index.js.flow b/node_modules/date-fns/locale/ka/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ka/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ka/package.json b/node_modules/date-fns/locale/ka/package.json new file mode 100644 index 00000000..9ec0879a --- /dev/null +++ b/node_modules/date-fns/locale/ka/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ka/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/kk/_lib/formatDistance/index.js new file mode 100644 index 00000000..3d50eccc --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatDistance/index.js @@ -0,0 +1,235 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + regular: { + one: '1 секундтан аз', + singularNominative: '{{count}} секундтан аз', + singularGenitive: '{{count}} секундтан аз', + pluralGenitive: '{{count}} секундтан аз' + }, + future: { + one: 'бір секундтан кейін', + singularNominative: '{{count}} секундтан кейін', + singularGenitive: '{{count}} секундтан кейін', + pluralGenitive: '{{count}} секундтан кейін' + } + }, + xSeconds: { + regular: { + singularNominative: '{{count}} секунд', + singularGenitive: '{{count}} секунд', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунд бұрын', + singularGenitive: '{{count}} секунд бұрын', + pluralGenitive: '{{count}} секунд бұрын' + }, + future: { + singularNominative: '{{count}} секундтан кейін', + singularGenitive: '{{count}} секундтан кейін', + pluralGenitive: '{{count}} секундтан кейін' + } + }, + halfAMinute: function halfAMinute(options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'жарты минут ішінде'; + } else { + return 'жарты минут бұрын'; + } + } + + return 'жарты минут'; + }, + lessThanXMinutes: { + regular: { + one: '1 минуттан аз', + singularNominative: '{{count}} минуттан аз', + singularGenitive: '{{count}} минуттан аз', + pluralGenitive: '{{count}} минуттан аз' + }, + future: { + one: 'минуттан кем ', + singularNominative: '{{count}} минуттан кем', + singularGenitive: '{{count}} минуттан кем', + pluralGenitive: '{{count}} минуттан кем' + } + }, + xMinutes: { + regular: { + singularNominative: '{{count}} минут', + singularGenitive: '{{count}} минут', + pluralGenitive: '{{count}} минут' + }, + past: { + singularNominative: '{{count}} минут бұрын', + singularGenitive: '{{count}} минут бұрын', + pluralGenitive: '{{count}} минут бұрын' + }, + future: { + singularNominative: '{{count}} минуттан кейін', + singularGenitive: '{{count}} минуттан кейін', + pluralGenitive: '{{count}} минуттан кейін' + } + }, + aboutXHours: { + regular: { + singularNominative: 'шамамен {{count}} сағат', + singularGenitive: 'шамамен {{count}} сағат', + pluralGenitive: 'шамамен {{count}} сағат' + }, + future: { + singularNominative: 'шамамен {{count}} сағаттан кейін', + singularGenitive: 'шамамен {{count}} сағаттан кейін', + pluralGenitive: 'шамамен {{count}} сағаттан кейін' + } + }, + xHours: { + regular: { + singularNominative: '{{count}} сағат', + singularGenitive: '{{count}} сағат', + pluralGenitive: '{{count}} сағат' + } + }, + xDays: { + regular: { + singularNominative: '{{count}} күн', + singularGenitive: '{{count}} күн', + pluralGenitive: '{{count}} күн' + }, + future: { + singularNominative: '{{count}} күннен кейін', + singularGenitive: '{{count}} күннен кейін', + pluralGenitive: '{{count}} күннен кейін' + } + }, + aboutXWeeks: { + type: 'weeks', + one: 'шамамен 1 апта', + other: 'шамамен {{count}} апта' + }, + xWeeks: { + type: 'weeks', + one: '1 апта', + other: '{{count}} апта' + }, + aboutXMonths: { + regular: { + singularNominative: 'шамамен {{count}} ай', + singularGenitive: 'шамамен {{count}} ай', + pluralGenitive: 'шамамен {{count}} ай' + }, + future: { + singularNominative: 'шамамен {{count}} айдан кейін', + singularGenitive: 'шамамен {{count}} айдан кейін', + pluralGenitive: 'шамамен {{count}} айдан кейін' + } + }, + xMonths: { + regular: { + singularNominative: '{{count}} ай', + singularGenitive: '{{count}} ай', + pluralGenitive: '{{count}} ай' + } + }, + aboutXYears: { + regular: { + singularNominative: 'шамамен {{count}} жыл', + singularGenitive: 'шамамен {{count}} жыл', + pluralGenitive: 'шамамен {{count}} жыл' + }, + future: { + singularNominative: 'шамамен {{count}} жылдан кейін', + singularGenitive: 'шамамен {{count}} жылдан кейін', + pluralGenitive: 'шамамен {{count}} жылдан кейін' + } + }, + xYears: { + regular: { + singularNominative: '{{count}} жыл', + singularGenitive: '{{count}} жыл', + pluralGenitive: '{{count}} жыл' + }, + future: { + singularNominative: '{{count}} жылдан кейін', + singularGenitive: '{{count}} жылдан кейін', + pluralGenitive: '{{count}} жылдан кейін' + } + }, + overXYears: { + regular: { + singularNominative: '{{count}} жылдан астам', + singularGenitive: '{{count}} жылдан астам', + pluralGenitive: '{{count}} жылдан астам' + }, + future: { + singularNominative: '{{count}} жылдан астам', + singularGenitive: '{{count}} жылдан астам', + pluralGenitive: '{{count}} жылдан астам' + } + }, + almostXYears: { + regular: { + singularNominative: '{{count}} жылға жақын', + singularGenitive: '{{count}} жылға жақын', + pluralGenitive: '{{count}} жылға жақын' + }, + future: { + singularNominative: '{{count}} жылдан кейін', + singularGenitive: '{{count}} жылдан кейін', + pluralGenitive: '{{count}} жылдан кейін' + } + } +}; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one && count === 1) return scheme.one; + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + if (typeof tokenValue === 'function') return tokenValue(options); + + if (tokenValue.type === 'weeks') { + return count === 1 ? tokenValue.one : tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (tokenValue.future) { + return declension(tokenValue.future, count); + } else { + return declension(tokenValue.regular, count) + ' кейін'; + } + } else { + if (tokenValue.past) { + return declension(tokenValue.past, count); + } else { + return declension(tokenValue.regular, count) + ' бұрын'; + } + } + } else { + return declension(tokenValue.regular, count); + } +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/_lib/formatLong/index.js b/node_modules/date-fns/locale/kk/_lib/formatLong/index.js new file mode 100644 index 00000000..c279da3c --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, do MMMM y 'ж.'", + long: "do MMMM y 'ж.'", + medium: "d MMM y 'ж.'", + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/_lib/formatRelative/index.js b/node_modules/date-fns/locale/kk/_lib/formatRelative/index.js new file mode 100644 index 00000000..62475148 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/formatRelative/index.js @@ -0,0 +1,66 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var accusativeWeekdays = ['жексенбіде', 'дүйсенбіде', 'сейсенбіде', 'сәрсенбіде', 'бейсенбіде', 'жұмада', 'сенбіде']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'өткен " + weekday + " сағат' p'-де'"; +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'" + weekday + " сағат' p'-де'"; +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'келесі " + weekday + " сағат' p'-де'"; +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'кеше сағат' p'-де'", + today: "'бүгін сағат' p'-де'", + tomorrow: "'ертең сағат' p'-де'", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/_lib/localize/index.js b/node_modules/date-fns/locale/kk/_lib/localize/index.js new file mode 100644 index 00000000..4271ebb0 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/localize/index.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['б.з.д.', 'б.з.'], + abbreviated: ['б.з.д.', 'б.з.'], + wide: ['біздің заманымызға дейін', 'біздің заманымыз'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ші тоқ.', '2-ші тоқ.', '3-ші тоқ.', '4-ші тоқ.'], + wide: ['1-ші тоқсан', '2-ші тоқсан', '3-ші тоқсан', '4-ші тоқсан'] +}; +var monthValues = { + narrow: ['Қ', 'А', 'Н', 'С', 'М', 'М', 'Ш', 'Т', 'Қ', 'Қ', 'Қ', 'Ж'], + abbreviated: ['қаң', 'ақп', 'нау', 'сәу', 'мам', 'мау', 'шіл', 'там', 'қыр', 'қаз', 'қар', 'жел'], + wide: ['қаңтар', 'ақпан', 'наурыз', 'сәуір', 'мамыр', 'маусым', 'шілде', 'тамыз', 'қыркүйек', 'қазан', 'қараша', 'желтоқсан'] +}; +var formattingMonthValues = { + narrow: ['Қ', 'А', 'Н', 'С', 'М', 'М', 'Ш', 'Т', 'Қ', 'Қ', 'Қ', 'Ж'], + abbreviated: ['қаң', 'ақп', 'нау', 'сәу', 'мам', 'мау', 'шіл', 'там', 'қыр', 'қаз', 'қар', 'жел'], + wide: ['қаңтар', 'ақпан', 'наурыз', 'сәуір', 'мамыр', 'маусым', 'шілде', 'тамыз', 'қыркүйек', 'қазан', 'қараша', 'желтоқсан'] +}; +var dayValues = { + narrow: ['Ж', 'Д', 'С', 'С', 'Б', 'Ж', 'С'], + short: ['жс', 'дс', 'сс', 'ср', 'бс', 'жм', 'сб'], + abbreviated: ['жс', 'дс', 'сс', 'ср', 'бс', 'жм', 'сб'], + wide: ['жексенбі', 'дүйсенбі', 'сейсенбі', 'сәрсенбі', 'бейсенбі', 'жұма', 'сенбі'] +}; +var dayPeriodValues = { + narrow: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасы', + noon: 'түс', + morning: 'таң', + afternoon: 'күндіз', + evening: 'кеш', + night: 'түн' + }, + wide: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасы', + noon: 'түс', + morning: 'таң', + afternoon: 'күндіз', + evening: 'кеш', + night: 'түн' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасында', + noon: 'түс', + morning: 'таң', + afternoon: 'күн', + evening: 'кеш', + night: 'түн' + }, + wide: { + am: 'ТД', + pm: 'ТК', + midnight: 'түн ортасында', + noon: 'түсте', + morning: 'таңертең', + afternoon: 'күндіз', + evening: 'кеште', + night: 'түнде' + } +}; +var suffixes = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші' +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var mod10 = number % 10; + var b = number >= 100 ? 100 : null; + var suffix = suffixes[number] || suffixes[mod10] || b && suffixes[b] || ''; + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/_lib/match/index.js b/node_modules/date-fns/locale/kk/_lib/match/index.js new file mode 100644 index 00000000..40616e52 --- /dev/null +++ b/node_modules/date-fns/locale/kk/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((б )?з\.?\s?д\.?)/i, + abbreviated: /^((б )?з\.?\s?д\.?)/i, + wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i +}; +var parseEraPatterns = { + any: [/^б/i, /^з/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?ші)? тоқ.?/i, + wide: /^[1234](-?ші)? тоқсан/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i, + abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i, + wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i +}; +var parseMonthPatterns = { + narrow: [/^қ/i, /^а/i, /^н/i, /^с/i, /^м/i, /^м/i, /^ш/i, /^т/i, /^қ/i, /^қ/i, /^қ/i, /^ж/i], + abbreviated: [/^қаң/i, /^ақп/i, /^нау/i, /^сәу/i, /^мам/i, /^мау/i, /^шіл/i, /^там/i, /^қыр/i, /^қаз/i, /^қар/i, /^жел/i], + any: [/^қ/i, /^а/i, /^н/i, /^с/i, /^м/i, /^м/i, /^ш/i, /^т/i, /^қ/i, /^қ/i, /^қ/i, /^ж/i] +}; +var matchDayPatterns = { + narrow: /^(ж|д|с|с|б|ж|с)/i, + short: /^(жс|дс|сс|ср|бс|жм|сб)/i, + wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i +}; +var parseDayPatterns = { + narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i], + short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i], + any: [/^ж[ек]/i, /^д[үй]/i, /^сe[й]/i, /^сә[р]/i, /^б[ей]/i, /^ж[ұм]/i, /^се[н]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i, + any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ТД/i, + pm: /^ТК/i, + midnight: /^түн орта/i, + noon: /^күндіз/i, + morning: /таң/i, + afternoon: /түс/i, + evening: /кеш/i, + night: /түн/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/index.d.ts b/node_modules/date-fns/locale/kk/index.d.ts new file mode 100644 index 00000000..8ccf1a7f --- /dev/null +++ b/node_modules/date-fns/locale/kk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { kk } from 'date-fns/locale' +export default kk diff --git a/node_modules/date-fns/locale/kk/index.js b/node_modules/date-fns/locale/kk/index.js new file mode 100644 index 00000000..673be3cf --- /dev/null +++ b/node_modules/date-fns/locale/kk/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Kazakh locale. + * @language Kazakh + * @iso-639-2 kaz + * @author Nikita Bayev [@drugoi]{@link https://github.com/drugoi} + */ +var locale = { + code: 'kk', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kk/index.js.flow b/node_modules/date-fns/locale/kk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/kk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/kk/package.json b/node_modules/date-fns/locale/kk/package.json new file mode 100644 index 00000000..e094d41a --- /dev/null +++ b/node_modules/date-fns/locale/kk/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/kk/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/_lib/formatDistance/index.js b/node_modules/date-fns/locale/km/_lib/formatDistance/index.js new file mode 100644 index 00000000..e5810b8f --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatDistance/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: 'តិចជាង {{count}} វិនាទី', + xSeconds: '{{count}} វិនាទី', + halfAMinute: 'កន្លះនាទី', + lessThanXMinutes: 'តិចជាង {{count}} នាទី', + xMinutes: '{{count}} នាទី', + aboutXHours: 'ប្រហែល {{count}} ម៉ោង', + xHours: '{{count}} ម៉ោង', + xDays: '{{count}} ថ្ងៃ', + aboutXWeeks: 'ប្រហែល {{count}} សប្តាហ៍', + xWeeks: '{{count}} សប្តាហ៍', + aboutXMonths: 'ប្រហែល {{count}} ខែ', + xMonths: '{{count}} ខែ', + aboutXYears: 'ប្រហែល {{count}} ឆ្នាំ', + xYears: '{{count}} ឆ្នាំ', + overXYears: 'ជាង {{count}} ឆ្នាំ', + almostXYears: 'ជិត {{count}} ឆ្នាំ' +}; + +var formatDistance = function formatDistance(token, count, options) { + var tokenValue = formatDistanceLocale[token]; + var result = tokenValue; + + if (typeof count === 'number') { + result = result.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'ក្នុងរយៈពេល ' + result; + } else { + return result + 'មុន'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/_lib/formatLong/index.js b/node_modules/date-fns/locale/km/_lib/formatLong/index.js new file mode 100644 index 00000000..624b9dab --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a', + long: 'h:mm:ss a', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'ម៉ោង' {{time}}", + long: "{{date}} 'ម៉ោង' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/_lib/formatRelative/index.js b/node_modules/date-fns/locale/km/_lib/formatRelative/index.js new file mode 100644 index 00000000..96094746 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p", + yesterday: "'ម្សិលមិញនៅម៉ោង' p", + today: "'ថ្ងៃនេះម៉ោង' p", + tomorrow: "'ថ្ងៃស្អែកម៉ោង' p", + nextWeek: "'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/_lib/localize/index.js b/node_modules/date-fns/locale/km/_lib/localize/index.js new file mode 100644 index 00000000..c5ba2494 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ម.គស', 'គស'], + abbreviated: ['មុនគ.ស', 'គ.ស'], + wide: ['មុនគ្រិស្តសករាជ', 'នៃគ្រិស្តសករាជ'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['ត្រីមាសទី 1', 'ត្រីមាសទី 2', 'ត្រីមាសទី 3', 'ត្រីមាសទី 4'] +}; +var monthValues = { + narrow: ['ម.ក', 'ក.ម', 'មិ', 'ម.ស', 'ឧ.ស', 'ម.ថ', 'ក.ដ', 'សី', 'កញ', 'តុ', 'វិ', 'ធ'], + abbreviated: ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'], + wide: ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'] +}; +var dayValues = { + narrow: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + short: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + abbreviated: ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'], + wide: ['អាទិត្យ', 'ចន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'] +}; +var dayPeriodValues = { + narrow: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + abbreviated: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + wide: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + abbreviated: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + }, + wide: { + am: 'ព្រឹក', + pm: 'ល្ងាច', + midnight: '​ពេលកណ្ដាលអធ្រាត្រ', + noon: 'ពេលថ្ងៃត្រង់', + morning: 'ពេលព្រឹក', + afternoon: 'ពេលរសៀល', + evening: 'ពេលល្ងាច', + night: 'ពេលយប់' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _) { + var number = Number(dirtyNumber); + return number.toString(); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/_lib/match/index.js b/node_modules/date-fns/locale/km/_lib/match/index.js new file mode 100644 index 00000000..ecba9501 --- /dev/null +++ b/node_modules/date-fns/locale/km/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ម\.)?គស/i, + abbreviated: /^(មុន)?គ\.ស/i, + wide: /^(មុន|នៃ)គ្រិស្តសករាជ/i +}; +var parseEraPatterns = { + any: [/^(ម|មុន)គ\.?ស/i, /^(នៃ)?គ\.?ស/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^(ត្រីមាស)(ទី)?\s?[1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i, + abbreviated: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i, + wide: /^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i +}; +var parseMonthPatterns = { + narrow: [/^ម\.ក/i, /^ក\.ម/i, /^មិ/i, /^ម\.ស/i, /^ឧ\.ស/i, /^ម\.ថ/i, /^ក\.ដ/i, /^សី/i, /^កញ/i, /^តុ/i, /^វិ/i, /^ធ/i], + any: [/^មក/i, /^កុ/i, /^មីន/i, /^មេ/i, /^ឧស/i, /^មិថ/i, /^កក/i, /^សី/i, /^កញ/i, /^តុ/i, /^វិច/i, /^ធ/i] +}; +var matchDayPatterns = { + narrow: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + short: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + abbreviated: /^(អា|ច|អ|ព|ព្រ|សុ|ស)/i, + wide: /^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i +}; +var parseDayPatterns = { + narrow: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^ស/i], + any: [/^អា/i, /^ច/i, /^អ/i, /^ព/i, /^ព្រ/i, /^សុ/i, /^សៅ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i, + any: /^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ព្រឹក/i, + pm: /^ល្ងាច/i, + midnight: /^ពេលកណ្ដាលអធ្រាត្រ/i, + noon: /^ពេលថ្ងៃត្រង់/i, + morning: /ពេលព្រឹក/i, + afternoon: /ពេលរសៀល/i, + evening: /ពេលល្ងាច/i, + night: /ពេលយប់/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/index.d.ts b/node_modules/date-fns/locale/km/index.d.ts new file mode 100644 index 00000000..82f582cd --- /dev/null +++ b/node_modules/date-fns/locale/km/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { km } from 'date-fns/locale' +export default km diff --git a/node_modules/date-fns/locale/km/index.js b/node_modules/date-fns/locale/km/index.js new file mode 100644 index 00000000..408c1a36 --- /dev/null +++ b/node_modules/date-fns/locale/km/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Khmer locale (Cambodian). + * @language Khmer + * @iso-639-2 khm + * @author Seanghay Yath [@seanghay]{@link https://github.com/seanghay} + */ +var locale = { + code: 'km', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/km/index.js.flow b/node_modules/date-fns/locale/km/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/km/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/km/package.json b/node_modules/date-fns/locale/km/package.json new file mode 100644 index 00000000..e6e17956 --- /dev/null +++ b/node_modules/date-fns/locale/km/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/km/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/kn/_lib/formatDistance/index.js new file mode 100644 index 00000000..10422996 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatDistance/index.js @@ -0,0 +1,205 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +// note: no implementation for weeks +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + future: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + past: '1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ' + }, + other: { + default: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + future: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ', + past: '{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ' + } + }, + xSeconds: { + one: { + default: '1 ಸೆಕೆಂಡ್', + future: '1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ', + past: '1 ಸೆಕೆಂಡ್ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ಸೆಕೆಂಡುಗಳು', + future: '{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ', + past: '{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ' + } + }, + halfAMinute: { + other: { + default: 'ಅರ್ಧ ನಿಮಿಷ', + future: 'ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ', + past: 'ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ' + } + }, + lessThanXMinutes: { + one: { + default: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + future: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + past: '1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ' + }, + other: { + default: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + future: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ', + past: '{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ' + } + }, + xMinutes: { + one: { + default: '1 ನಿಮಿಷ', + future: '1 ನಿಮಿಷದಲ್ಲಿ', + past: '1 ನಿಮಿಷದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ನಿಮಿಷಗಳು', + future: '{{count}} ನಿಮಿಷಗಳಲ್ಲಿ', + past: '{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ' + } + }, + aboutXHours: { + one: { + default: 'ಸುಮಾರು 1 ಗಂಟೆ', + future: 'ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳು', + future: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ' + } + }, + xHours: { + one: { + default: '1 ಗಂಟೆ', + future: '1 ಗಂಟೆಯಲ್ಲಿ', + past: '1 ಗಂಟೆ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ಗಂಟೆಗಳು', + future: '{{count}} ಗಂಟೆಗಳಲ್ಲಿ', + past: '{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ' + } + }, + xDays: { + one: { + default: '1 ದಿನ', + future: '1 ದಿನದಲ್ಲಿ', + past: '1 ದಿನದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ದಿನಗಳು', + future: '{{count}} ದಿನಗಳಲ್ಲಿ', + past: '{{count}} ದಿನಗಳ ಹಿಂದೆ' + } + }, + // TODO + // aboutXWeeks: {}, + // TODO + // xWeeks: {}, + aboutXMonths: { + one: { + default: 'ಸುಮಾರು 1 ತಿಂಗಳು', + future: 'ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ತಿಂಗಳು', + future: 'ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ' + } + }, + xMonths: { + one: { + default: '1 ತಿಂಗಳು', + future: '1 ತಿಂಗಳಲ್ಲಿ', + past: '1 ತಿಂಗಳ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ತಿಂಗಳು', + future: '{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ', + past: '{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ' + } + }, + aboutXYears: { + one: { + default: 'ಸುಮಾರು 1 ವರ್ಷ', + future: 'ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ', + past: 'ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ' + }, + other: { + default: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳು', + future: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: 'ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ' + } + }, + xYears: { + one: { + default: '1 ವರ್ಷ', + future: '1 ವರ್ಷದಲ್ಲಿ', + past: '1 ವರ್ಷದ ಹಿಂದೆ' + }, + other: { + default: '{{count}} ವರ್ಷಗಳು', + future: '{{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: '{{count}} ವರ್ಷಗಳ ಹಿಂದೆ' + } + }, + overXYears: { + one: { + default: '1 ವರ್ಷದ ಮೇಲೆ', + future: '1 ವರ್ಷದ ಮೇಲೆ', + past: '1 ವರ್ಷದ ಮೇಲೆ' + }, + other: { + default: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ', + future: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ', + past: '{{count}} ವರ್ಷಗಳ ಮೇಲೆ' + } + }, + almostXYears: { + one: { + default: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ', + future: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ', + past: 'ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ' + }, + other: { + default: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ', + future: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ', + past: 'ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ' + } + } +}; + +function getResultByTense(parentToken, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return parentToken.future; + } else { + return parentToken.past; + } + } + + return parentToken.default; +} + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (tokenValue.one && count === 1) { + result = getResultByTense(tokenValue.one, options); + } else { + result = getResultByTense(tokenValue.other, options); + } + + return result.replace('{{count}}', String(count)); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/_lib/formatLong/index.js b/node_modules/date-fns/locale/kn/_lib/formatLong/index.js new file mode 100644 index 00000000..2016efe4 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatLong/index.js @@ -0,0 +1,59 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html +var dateFormats = { + full: 'EEEE, MMMM d, y', + // CLDR 1816 + long: 'MMMM d, y', + // CLDR 1817 + medium: 'MMM d, y', + // CLDR 1818 + short: 'd/M/yy' // CLDR 1819 + +}; +var timeFormats = { + full: 'hh:mm:ss a zzzz', + // CLDR 1820 + long: 'hh:mm:ss a z', + // CLDR 1821 + medium: 'hh:mm:ss a', + // CLDR 1822 + short: 'hh:mm a' // CLDR 1823 + +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + // CLDR 1824 + long: '{{date}} {{time}}', + // CLDR 1825 + medium: '{{date}} {{time}}', + // CLDR 1826 + short: '{{date}} {{time}}' // CLDR 1827 + +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/_lib/formatRelative/index.js b/node_modules/date-fns/locale/kn/_lib/formatRelative/index.js new file mode 100644 index 00000000..da7a6e11 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'ಕಳೆದ' eeee p 'ಕ್ಕೆ'", + yesterday: "'ನಿನ್ನೆ' p 'ಕ್ಕೆ'", + today: "'ಇಂದು' p 'ಕ್ಕೆ'", + tomorrow: "'ನಾಳೆ' p 'ಕ್ಕೆ'", + nextWeek: "eeee p 'ಕ್ಕೆ'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/_lib/localize/index.js b/node_modules/date-fns/locale/kn/_lib/localize/index.js new file mode 100644 index 00000000..f170d72d --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/localize/index.js @@ -0,0 +1,141 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Reference: https://www.unicode.org/cldr/charts/32/summary/kn.html +var eraValues = { + narrow: ['ಕ್ರಿ.ಪೂ', 'ಕ್ರಿ.ಶ'], + abbreviated: ['ಕ್ರಿ.ಪೂ', 'ಕ್ರಿ.ಶ'], + // CLDR #1618, #1620 + wide: ['ಕ್ರಿಸ್ತ ಪೂರ್ವ', 'ಕ್ರಿಸ್ತ ಶಕ'] // CLDR #1614, #1616 + +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['ತ್ರೈ 1', 'ತ್ರೈ 2', 'ತ್ರೈ 3', 'ತ್ರೈ 4'], + // CLDR #1630 - #1638 + wide: ['1ನೇ ತ್ರೈಮಾಸಿಕ', '2ನೇ ತ್ರೈಮಾಸಿಕ', '3ನೇ ತ್ರೈಮಾಸಿಕ', '4ನೇ ತ್ರೈಮಾಸಿಕ'] // CLDR #1622 - #1629 + +}; // CLDR #1646 - #1717 + +var monthValues = { + narrow: ['ಜ', 'ಫೆ', 'ಮಾ', 'ಏ', 'ಮೇ', 'ಜೂ', 'ಜು', 'ಆ', 'ಸೆ', 'ಅ', 'ನ', 'ಡಿ'], + abbreviated: ['ಜನ', 'ಫೆಬ್ರ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿ', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗ', 'ಸೆಪ್ಟೆಂ', 'ಅಕ್ಟೋ', 'ನವೆಂ', 'ಡಿಸೆಂ'], + wide: ['ಜನವರಿ', 'ಫೆಬ್ರವರಿ', 'ಮಾರ್ಚ್', 'ಏಪ್ರಿಲ್', 'ಮೇ', 'ಜೂನ್', 'ಜುಲೈ', 'ಆಗಸ್ಟ್', 'ಸೆಪ್ಟೆಂಬರ್', 'ಅಕ್ಟೋಬರ್', 'ನವೆಂಬರ್', 'ಡಿಸೆಂಬರ್'] +}; // CLDR #1718 - #1773 + +var dayValues = { + narrow: ['ಭಾ', 'ಸೋ', 'ಮಂ', 'ಬು', 'ಗು', 'ಶು', 'ಶ'], + short: ['ಭಾನು', 'ಸೋಮ', 'ಮಂಗಳ', 'ಬುಧ', 'ಗುರು', 'ಶುಕ್ರ', 'ಶನಿ'], + abbreviated: ['ಭಾನು', 'ಸೋಮ', 'ಮಂಗಳ', 'ಬುಧ', 'ಗುರು', 'ಶುಕ್ರ', 'ಶನಿ'], + wide: ['ಭಾನುವಾರ', 'ಸೋಮವಾರ', 'ಮಂಗಳವಾರ', 'ಬುಧವಾರ', 'ಗುರುವಾರ', 'ಶುಕ್ರವಾರ', 'ಶನಿವಾರ'] +}; // CLDR #1774 - #1815 + +var dayPeriodValues = { + narrow: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾಹ್ನ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾಹ್ನ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + abbreviated: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + wide: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ಪೂ', + pm: 'ಅ', + midnight: 'ಮಧ್ಯರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + abbreviated: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯ ರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + }, + wide: { + am: 'ಪೂರ್ವಾಹ್ನ', + pm: 'ಅಪರಾಹ್ನ', + midnight: 'ಮಧ್ಯ ರಾತ್ರಿ', + noon: 'ಮಧ್ಯಾನ್ಹ', + morning: 'ಬೆಳಗ್ಗೆ', + afternoon: 'ಮಧ್ಯಾನ್ಹ', + evening: 'ಸಂಜೆ', + night: 'ರಾತ್ರಿ' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'ನೇ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/_lib/match/index.js b/node_modules/date-fns/locale/kn/_lib/match/index.js new file mode 100644 index 00000000..02b8ecb1 --- /dev/null +++ b/node_modules/date-fns/locale/kn/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(ನೇ|ನೆ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i, + abbreviated: /^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i, + wide: /^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i +}; +var parseEraPatterns = { + any: [/^ಪೂ/i, /^(ಶ|ಪ್ರ)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i, + wide: /^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i, + abbreviated: /^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i, + wide: /^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i +}; +var parseMonthPatterns = { + narrow: [/^ಜ$/i, /^ಫೆ/i, /^ಮಾ/i, /^ಏ/i, /^ಮೇ/i, /^ಜೂ/i, /^ಜು$/i, /^ಆ/i, /^ಸೆ/i, /^ಅ/i, /^ನ/i, /^ಡಿ/i], + any: [/^ಜನ/i, /^ಫೆ/i, /^ಮಾ/i, /^ಏ/i, /^ಮೇ/i, /^ಜೂನ್/i, /^ಜುಲೈ/i, /^ಆ/i, /^ಸೆ/i, /^ಅ/i, /^ನ/i, /^ಡಿ/i] +}; +var matchDayPatterns = { + narrow: /^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i, + short: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + abbreviated: /^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i, + wide: /^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i +}; +var parseDayPatterns = { + narrow: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i], + any: [/^ಭಾ/i, /^ಸೋ/i, /^ಮ/i, /^ಬು/i, /^ಗು/i, /^ಶು/i, /^ಶ/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i, + any: /^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ಪೂ/i, + pm: /^ಅ/i, + midnight: /ಮಧ್ಯರಾತ್ರಿ/i, + noon: /ಮಧ್ಯಾನ್ಹ/i, + morning: /ಬೆಳಗ್ಗೆ/i, + afternoon: /ಮಧ್ಯಾನ್ಹ/i, + evening: /ಸಂಜೆ/i, + night: /ರಾತ್ರಿ/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/index.d.ts b/node_modules/date-fns/locale/kn/index.d.ts new file mode 100644 index 00000000..85a2ed5c --- /dev/null +++ b/node_modules/date-fns/locale/kn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { kn } from 'date-fns/locale' +export default kn diff --git a/node_modules/date-fns/locale/kn/index.js b/node_modules/date-fns/locale/kn/index.js new file mode 100644 index 00000000..37bc696d --- /dev/null +++ b/node_modules/date-fns/locale/kn/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Kannada locale (India). + * @language Kannada + * @iso-639-2 kan + * @author Manjunatha Gouli [@developergouli]{@link https://github.com/developergouli} + */ +var locale = { + code: 'kn', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/kn/index.js.flow b/node_modules/date-fns/locale/kn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/kn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/kn/package.json b/node_modules/date-fns/locale/kn/package.json new file mode 100644 index 00000000..005e18bf --- /dev/null +++ b/node_modules/date-fns/locale/kn/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/kn/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ko/_lib/formatDistance/index.js new file mode 100644 index 00000000..2f8e13ba --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1초 미만', + other: '{{count}}초 미만' + }, + xSeconds: { + one: '1초', + other: '{{count}}초' + }, + halfAMinute: '30초', + lessThanXMinutes: { + one: '1분 미만', + other: '{{count}}분 미만' + }, + xMinutes: { + one: '1분', + other: '{{count}}분' + }, + aboutXHours: { + one: '약 1시간', + other: '약 {{count}}시간' + }, + xHours: { + one: '1시간', + other: '{{count}}시간' + }, + xDays: { + one: '1일', + other: '{{count}}일' + }, + aboutXWeeks: { + one: '약 1주', + other: '약 {{count}}주' + }, + xWeeks: { + one: '1주', + other: '{{count}}주' + }, + aboutXMonths: { + one: '약 1개월', + other: '약 {{count}}개월' + }, + xMonths: { + one: '1개월', + other: '{{count}}개월' + }, + aboutXYears: { + one: '약 1년', + other: '약 {{count}}년' + }, + xYears: { + one: '1년', + other: '{{count}}년' + }, + overXYears: { + one: '1년 이상', + other: '{{count}}년 이상' + }, + almostXYears: { + one: '거의 1년', + other: '거의 {{count}}년' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' 후'; + } else { + return result + ' 전'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/_lib/formatLong/index.js b/node_modules/date-fns/locale/ko/_lib/formatLong/index.js new file mode 100644 index 00000000..112497c0 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'y년 M월 d일 EEEE', + long: 'y년 M월 d일', + medium: 'y.MM.dd', + short: 'y.MM.dd' +}; +var timeFormats = { + full: 'a H시 mm분 ss초 zzzz', + long: 'a H:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ko/_lib/formatRelative/index.js new file mode 100644 index 00000000..e8365982 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'지난' eeee p", + yesterday: "'어제' p", + today: "'오늘' p", + tomorrow: "'내일' p", + nextWeek: "'다음' eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/_lib/localize/index.js b/node_modules/date-fns/locale/ko/_lib/localize/index.js new file mode 100644 index 00000000..60fb1677 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/localize/index.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['BC', 'AD'], + abbreviated: ['BC', 'AD'], + wide: ['기원전', '서기'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1분기', '2분기', '3분기', '4분기'] +}; +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'], + wide: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'] +}; +var dayValues = { + narrow: ['일', '월', '화', '수', '목', '금', '토'], + short: ['일', '월', '화', '수', '목', '금', '토'], + abbreviated: ['일', '월', '화', '수', '목', '금', '토'], + wide: ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'] +}; +var dayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + abbreviated: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + }, + wide: { + am: '오전', + pm: '오후', + midnight: '자정', + noon: '정오', + morning: '아침', + afternoon: '오후', + evening: '저녁', + night: '밤' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + + switch (unit) { + case 'minute': + case 'second': + return String(number); + + case 'date': + return number + '일'; + + default: + return number + '번째'; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/_lib/match/index.js b/node_modules/date-fns/locale/ko/_lib/match/index.js new file mode 100644 index 00000000..9ceabe24 --- /dev/null +++ b/node_modules/date-fns/locale/ko/_lib/match/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(일|번째)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(기원전|서기)/i +}; +var parseEraPatterns = { + any: [/^(bc|기원전)/i, /^(ad|서기)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]사?분기/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(1[012]|[123456789])/, + abbreviated: /^(1[012]|[123456789])월/i, + wide: /^(1[012]|[123456789])월/i +}; +var parseMonthPatterns = { + any: [/^1월?$/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/] +}; +var matchDayPatterns = { + narrow: /^[일월화수목금토]/, + short: /^[일월화수목금토]/, + abbreviated: /^[일월화수목금토]/, + wide: /^[일월화수목금토]요일/ +}; +var parseDayPatterns = { + any: [/^일/, /^월/, /^화/, /^수/, /^목/, /^금/, /^토/] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(am|오전)/i, + pm: /^(pm|오후)/i, + midnight: /^자정/i, + noon: /^정오/i, + morning: /^아침/i, + afternoon: /^오후/i, + evening: /^저녁/i, + night: /^밤/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/index.d.ts b/node_modules/date-fns/locale/ko/index.d.ts new file mode 100644 index 00000000..eac82282 --- /dev/null +++ b/node_modules/date-fns/locale/ko/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ko } from 'date-fns/locale' +export default ko diff --git a/node_modules/date-fns/locale/ko/index.js b/node_modules/date-fns/locale/ko/index.js new file mode 100644 index 00000000..b5c83f8b --- /dev/null +++ b/node_modules/date-fns/locale/ko/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Korean locale. + * @language Korean + * @iso-639-2 kor + * @author Hong Chulju [@angdev]{@link https://github.com/angdev} + * @author Lee Seoyoen [@iamssen]{@link https://github.com/iamssen} + * @author Taiki IKeda [@so99ynoodles]{@link https://github.com/so99ynoodles} + */ +var locale = { + code: 'ko', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ko/index.js.flow b/node_modules/date-fns/locale/ko/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ko/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ko/package.json b/node_modules/date-fns/locale/ko/package.json new file mode 100644 index 00000000..34aedde5 --- /dev/null +++ b/node_modules/date-fns/locale/ko/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ko/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lb/_lib/formatDistance/index.js new file mode 100644 index 00000000..e7a317c4 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatDistance/index.js @@ -0,0 +1,214 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'manner wéi eng Sekonn', + other: 'manner wéi {{count}} Sekonnen' + }, + withPreposition: { + one: 'manner wéi enger Sekonn', + other: 'manner wéi {{count}} Sekonnen' + } + }, + xSeconds: { + standalone: { + one: 'eng Sekonn', + other: '{{count}} Sekonnen' + }, + withPreposition: { + one: 'enger Sekonn', + other: '{{count}} Sekonnen' + } + }, + halfAMinute: { + standalone: 'eng hallef Minutt', + withPreposition: 'enger hallwer Minutt' + }, + lessThanXMinutes: { + standalone: { + one: 'manner wéi eng Minutt', + other: 'manner wéi {{count}} Minutten' + }, + withPreposition: { + one: 'manner wéi enger Minutt', + other: 'manner wéi {{count}} Minutten' + } + }, + xMinutes: { + standalone: { + one: 'eng Minutt', + other: '{{count}} Minutten' + }, + withPreposition: { + one: 'enger Minutt', + other: '{{count}} Minutten' + } + }, + aboutXHours: { + standalone: { + one: 'ongeféier eng Stonn', + other: 'ongeféier {{count}} Stonnen' + }, + withPreposition: { + one: 'ongeféier enger Stonn', + other: 'ongeféier {{count}} Stonnen' + } + }, + xHours: { + standalone: { + one: 'eng Stonn', + other: '{{count}} Stonnen' + }, + withPreposition: { + one: 'enger Stonn', + other: '{{count}} Stonnen' + } + }, + xDays: { + standalone: { + one: 'een Dag', + other: '{{count}} Deeg' + }, + withPreposition: { + one: 'engem Dag', + other: '{{count}} Deeg' + } + }, + aboutXWeeks: { + standalone: { + one: 'ongeféier eng Woch', + other: 'ongeféier {{count}} Wochen' + }, + withPreposition: { + one: 'ongeféier enger Woche', + other: 'ongeféier {{count}} Wochen' + } + }, + xWeeks: { + standalone: { + one: 'eng Woch', + other: '{{count}} Wochen' + }, + withPreposition: { + one: 'enger Woch', + other: '{{count}} Wochen' + } + }, + aboutXMonths: { + standalone: { + one: 'ongeféier ee Mount', + other: 'ongeféier {{count}} Méint' + }, + withPreposition: { + one: 'ongeféier engem Mount', + other: 'ongeféier {{count}} Méint' + } + }, + xMonths: { + standalone: { + one: 'ee Mount', + other: '{{count}} Méint' + }, + withPreposition: { + one: 'engem Mount', + other: '{{count}} Méint' + } + }, + aboutXYears: { + standalone: { + one: 'ongeféier ee Joer', + other: 'ongeféier {{count}} Joer' + }, + withPreposition: { + one: 'ongeféier engem Joer', + other: 'ongeféier {{count}} Joer' + } + }, + xYears: { + standalone: { + one: 'ee Joer', + other: '{{count}} Joer' + }, + withPreposition: { + one: 'engem Joer', + other: '{{count}} Joer' + } + }, + overXYears: { + standalone: { + one: 'méi wéi ee Joer', + other: 'méi wéi {{count}} Joer' + }, + withPreposition: { + one: 'méi wéi engem Joer', + other: 'méi wéi {{count}} Joer' + } + }, + almostXYears: { + standalone: { + one: 'bal ee Joer', + other: 'bal {{count}} Joer' + }, + withPreposition: { + one: 'bal engem Joer', + other: 'bal {{count}} Joer' + } + } +}; +var EXCEPTION_CONSONANTS = ['d', 'h', 'n', 't', 'z']; +var VOWELS = ['a,', 'e', 'i', 'o', 'u']; +var DIGITS_SPOKEN_N_NEEDED = [0, 1, 2, 3, 8, 9]; +var FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED = [40, 50, 60, 70]; // Eifeler Regel + +function isFinalNNeeded(nextWords) { + var firstLetter = nextWords.charAt(0).toLowerCase(); + + if (VOWELS.indexOf(firstLetter) != -1 || EXCEPTION_CONSONANTS.indexOf(firstLetter) != -1) { + return true; + } // Numbers would need to converted into words for checking. + // Therefore, I have listed the digits that require a preceeding n with a few exceptions. + + + var firstWord = nextWords.split(' ')[0]; + var number = parseInt(firstWord); + + if (!isNaN(number) && DIGITS_SPOKEN_N_NEEDED.indexOf(number % 10) != -1 && FIRST_TWO_DIGITS_SPOKEN_NO_N_NEEDED.indexOf(parseInt(firstWord.substring(0, 2))) == -1) { + return true; + } // Omit other checks as they are not expected here. + + + return false; +} + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + var usageGroup = options !== null && options !== void 0 && options.addSuffix ? tokenValue.withPreposition : tokenValue.standalone; + + if (typeof usageGroup === 'string') { + result = usageGroup; + } else if (count === 1) { + result = usageGroup.one; + } else { + result = usageGroup.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'a' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } else { + return 'viru' + (isFinalNNeeded(result) ? 'n' : '') + ' ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/_lib/formatLong/index.js b/node_modules/date-fns/locale/lb/_lib/formatLong/index.js new file mode 100644 index 00000000..12238ff5 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatLong/index.js @@ -0,0 +1,51 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// DIN 5008: https://de.wikipedia.org/wiki/Datumsformat#DIN_5008 +var dateFormats = { + full: 'EEEE, do MMMM y', + // Méindeg, 7. Januar 2018 + long: 'do MMMM y', + // 7. Januar 2018 + medium: 'do MMM y', + // 7. Jan 2018 + short: 'dd.MM.yy' // 07.01.18 + +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'um' {{time}}", + long: "{{date}} 'um' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/_lib/formatRelative/index.js b/node_modules/date-fns/locale/lb/_lib/formatRelative/index.js new file mode 100644 index 00000000..82232a06 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/formatRelative/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + var result = "'läschte"; + + if (day === 2 || day === 4) { + // Eifeler Regel: Add an n before the consonant d; Here "Dënschdeg" "and Donneschde". + result += 'n'; + } + + result += "' eeee 'um' p"; + return result; + }, + yesterday: "'gëschter um' p", + today: "'haut um' p", + tomorrow: "'moien um' p", + nextWeek: "eeee 'um' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/_lib/localize/index.js b/node_modules/date-fns/locale/lb/_lib/localize/index.js new file mode 100644 index 00000000..fe7f009f --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['v.Chr.', 'n.Chr.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['viru Christus', 'no Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. Quartal', '2. Quartal', '3. Quartal', '4. Quartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + wide: ['Januar', 'Februar', 'Mäerz', 'Abrëll', 'Mee', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'] +}; +var dayValues = { + narrow: ['S', 'M', 'D', 'M', 'D', 'F', 'S'], + short: ['So', 'Mé', 'Dë', 'Më', 'Do', 'Fr', 'Sa'], + abbreviated: ['So.', 'Mé.', 'Dë.', 'Më.', 'Do.', 'Fr.', 'Sa.'], + wide: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'] +}; +var dayPeriodValues = { + narrow: { + am: 'mo.', + pm: 'nomë.', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + }, + abbreviated: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + }, + wide: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'Mëtteg', + morning: 'Moien', + afternoon: 'Nomëtteg', + evening: 'Owend', + night: 'Nuecht' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'mo.', + pm: 'nom.', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + }, + abbreviated: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + }, + wide: { + am: 'moies', + pm: 'nomëttes', + midnight: 'Mëtternuecht', + noon: 'mëttes', + morning: 'moies', + afternoon: 'nomëttes', + evening: 'owes', + night: 'nuets' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/_lib/match/index.js b/node_modules/date-fns/locale/lb/_lib/match/index.js new file mode 100644 index 00000000..175470d6 --- /dev/null +++ b/node_modules/date-fns/locale/lb/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i, + wide: /^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i +}; +var parseEraPatterns = { + any: [/^v/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? Quartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i, + wide: /^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mä/i, /^ab/i, /^me/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smdf]/i, + short: /^(so|mé|dë|më|do|fr|sa)/i, + abbreviated: /^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i, + wide: /^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i +}; +var parseDayPatterns = { + any: [/^so/i, /^mé/i, /^dë/i, /^më/i, /^do/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + abbreviated: /^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i, + wide: /^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^m/i, + pm: /^n/i, + midnight: /^Mëtter/i, + noon: /^mëttes/i, + morning: /moies/i, + afternoon: /nomëttes/i, + // will never be matched. Afternoon is matched by `pm` + evening: /owes/i, + night: /nuets/i // will never be matched. Night is matched by `pm` + + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/index.d.ts b/node_modules/date-fns/locale/lb/index.d.ts new file mode 100644 index 00000000..727529bb --- /dev/null +++ b/node_modules/date-fns/locale/lb/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lb } from 'date-fns/locale' +export default lb diff --git a/node_modules/date-fns/locale/lb/index.js b/node_modules/date-fns/locale/lb/index.js new file mode 100644 index 00000000..484796a9 --- /dev/null +++ b/node_modules/date-fns/locale/lb/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Luxembourgish locale. + * @language Luxembourgish + * @iso-639-2 ltz + * @author Daniel Waxweiler [@dwaxweiler]{@link https://github.com/dwaxweiler} + */ +var locale = { + code: 'lb', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lb/index.js.flow b/node_modules/date-fns/locale/lb/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/lb/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/lb/package.json b/node_modules/date-fns/locale/lb/package.json new file mode 100644 index 00000000..d1766176 --- /dev/null +++ b/node_modules/date-fns/locale/lb/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/lb/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lt/_lib/formatDistance/index.js new file mode 100644 index 00000000..073414b0 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatDistance/index.js @@ -0,0 +1,161 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var translations = { + xseconds_other: 'sekundė_sekundžių_sekundes', + xminutes_one: 'minutė_minutės_minutę', + xminutes_other: 'minutės_minučių_minutes', + xhours_one: 'valanda_valandos_valandą', + xhours_other: 'valandos_valandų_valandas', + xdays_one: 'diena_dienos_dieną', + xdays_other: 'dienos_dienų_dienas', + xweeks_one: 'savaitė_savaitės_savaitę', + xweeks_other: 'savaitės_savaičių_savaites', + xmonths_one: 'mėnuo_mėnesio_mėnesį', + xmonths_other: 'mėnesiai_mėnesių_mėnesius', + xyears_one: 'metai_metų_metus', + xyears_other: 'metai_metų_metus', + about: 'apie', + over: 'daugiau nei', + almost: 'beveik', + lessthan: 'mažiau nei' +}; + +var translateSeconds = function translateSeconds(_number, addSuffix, _key, isFuture) { + if (!addSuffix) { + return 'kelios sekundės'; + } else { + return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; + } +}; + +var translateSingular = function translateSingular(_number, addSuffix, key, isFuture) { + return !addSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2]; +}; + +var translate = function translate(number, addSuffix, key, isFuture) { + var result = number + ' '; + + if (number === 1) { + return result + translateSingular(number, addSuffix, key, isFuture); + } else if (!addSuffix) { + return result + (special(number) ? forms(key)[1] : forms(key)[0]); + } else { + if (isFuture) { + return result + forms(key)[1]; + } else { + return result + (special(number) ? forms(key)[1] : forms(key)[2]); + } + } +}; + +function special(number) { + return number % 10 === 0 || number > 10 && number < 20; +} + +function forms(key) { + return translations[key].split('_'); +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: translateSeconds, + other: translate + }, + xSeconds: { + one: translateSeconds, + other: translate + }, + halfAMinute: 'pusė minutės', + lessThanXMinutes: { + one: translateSingular, + other: translate + }, + xMinutes: { + one: translateSingular, + other: translate + }, + aboutXHours: { + one: translateSingular, + other: translate + }, + xHours: { + one: translateSingular, + other: translate + }, + xDays: { + one: translateSingular, + other: translate + }, + aboutXWeeks: { + one: translateSingular, + other: translate + }, + xWeeks: { + one: translateSingular, + other: translate + }, + aboutXMonths: { + one: translateSingular, + other: translate + }, + xMonths: { + one: translateSingular, + other: translate + }, + aboutXYears: { + one: translateSingular, + other: translate + }, + xYears: { + one: translateSingular, + other: translate + }, + overXYears: { + one: translateSingular, + other: translate + }, + almostXYears: { + one: translateSingular, + other: translate + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var adverb = token.match(/about|over|almost|lessthan/i); + var unit = adverb ? token.replace(adverb[0], '') : token; + var isFuture = (options === null || options === void 0 ? void 0 : options.comparison) !== undefined && options.comparison > 0; + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + '_one', isFuture); + } else { + result = tokenValue.other(count, (options === null || options === void 0 ? void 0 : options.addSuffix) === true, unit.toLowerCase() + '_other', isFuture); + } + + if (adverb) { + var _key2 = adverb[0].toLowerCase(); + + result = translations[_key2] + ' ' + result; + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'po ' + result; + } else { + return 'prieš ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/_lib/formatLong/index.js b/node_modules/date-fns/locale/lt/_lib/formatLong/index.js new file mode 100644 index 00000000..1b336a52 --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "y 'm'. MMMM d 'd'., EEEE", + long: "y 'm'. MMMM d 'd'.", + medium: 'y-MM-dd', + short: 'y-MM-dd' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/_lib/formatRelative/index.js b/node_modules/date-fns/locale/lt/_lib/formatRelative/index.js new file mode 100644 index 00000000..a866a2da --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'Praėjusį' eeee p", + yesterday: "'Vakar' p", + today: "'Šiandien' p", + tomorrow: "'Rytoj' p", + nextWeek: 'eeee p', + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/_lib/localize/index.js b/node_modules/date-fns/locale/lt/_lib/localize/index.js new file mode 100644 index 00000000..b054119e --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/localize/index.js @@ -0,0 +1,155 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['pr. Kr.', 'po Kr.'], + abbreviated: ['pr. Kr.', 'po Kr.'], + wide: ['prieš Kristų', 'po Kristaus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I ketv.', 'II ketv.', 'III ketv.', 'IV ketv.'], + wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I k.', 'II k.', 'III k.', 'IV k.'], + wide: ['I ketvirtis', 'II ketvirtis', 'III ketvirtis', 'IV ketvirtis'] +}; +var monthValues = { + narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], + abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], + wide: ['sausis', 'vasaris', 'kovas', 'balandis', 'gegužė', 'birželis', 'liepa', 'rugpjūtis', 'rugsėjis', 'spalis', 'lapkritis', 'gruodis'] +}; +var formattingMonthValues = { + narrow: ['S', 'V', 'K', 'B', 'G', 'B', 'L', 'R', 'R', 'S', 'L', 'G'], + abbreviated: ['saus.', 'vas.', 'kov.', 'bal.', 'geg.', 'birž.', 'liep.', 'rugp.', 'rugs.', 'spal.', 'lapkr.', 'gruod.'], + wide: ['sausio', 'vasario', 'kovo', 'balandžio', 'gegužės', 'birželio', 'liepos', 'rugpjūčio', 'rugsėjo', 'spalio', 'lapkričio', 'gruodžio'] +}; +var dayValues = { + narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Š'], + short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Št'], + abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'št'], + wide: ['sekmadienis', 'pirmadienis', 'antradienis', 'trečiadienis', 'ketvirtadienis', 'penktadienis', 'šeštadienis'] +}; +var formattingDayValues = { + narrow: ['S', 'P', 'A', 'T', 'K', 'P', 'Š'], + short: ['Sk', 'Pr', 'An', 'Tr', 'Kt', 'Pn', 'Št'], + abbreviated: ['sk', 'pr', 'an', 'tr', 'kt', 'pn', 'št'], + wide: ['sekmadienį', 'pirmadienį', 'antradienį', 'trečiadienį', 'ketvirtadienį', 'penktadienį', 'šeštadienį'] +}; +var dayPeriodValues = { + narrow: { + am: 'pr. p.', + pm: 'pop.', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + }, + abbreviated: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + }, + wide: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'vidurdienis', + morning: 'rytas', + afternoon: 'diena', + evening: 'vakaras', + night: 'naktis' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'pr. p.', + pm: 'pop.', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + }, + abbreviated: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + }, + wide: { + am: 'priešpiet', + pm: 'popiet', + midnight: 'vidurnaktis', + noon: 'perpiet', + morning: 'rytas', + afternoon: 'popietė', + evening: 'vakaras', + night: 'naktis' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '-oji'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/_lib/match/index.js b/node_modules/date-fns/locale/lt/_lib/match/index.js new file mode 100644 index 00000000..5c902c3d --- /dev/null +++ b/node_modules/date-fns/locale/lt/_lib/match/index.js @@ -0,0 +1,124 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-oji)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^p(r|o)\.?\s?(kr\.?|me)/i, + abbreviated: /^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i, + wide: /^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i +}; +var parseEraPatterns = { + wide: [/prieš/i, /(po|mūsų)/i], + any: [/^pr/i, /^(po|m)/i] +}; +var matchQuarterPatterns = { + narrow: /^([1234])/i, + abbreviated: /^(I|II|III|IV)\s?ketv?\.?/i, + wide: /^(I|II|III|IV)\s?ketvirtis/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/I$/i, /II$/i, /III/i, /IV/i] +}; +var matchMonthPatterns = { + narrow: /^[svkbglr]/i, + abbreviated: /^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i, + wide: /^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i +}; +var parseMonthPatterns = { + narrow: [/^s/i, /^v/i, /^k/i, /^b/i, /^g/i, /^b/i, /^l/i, /^r/i, /^r/i, /^s/i, /^l/i, /^g/i], + any: [/^saus/i, /^vas/i, /^kov/i, /^bal/i, /^geg/i, /^birž/i, /^liep/i, /^rugp/i, /^rugs/i, /^spal/i, /^lapkr/i, /^gruod/i] +}; +var matchDayPatterns = { + narrow: /^[spatkš]/i, + short: /^(sk|pr|an|tr|kt|pn|št)/i, + abbreviated: /^(sk|pr|an|tr|kt|pn|št)/i, + wide: /^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^a/i, /^t/i, /^k/i, /^p/i, /^š/i], + wide: [/^se/i, /^pi/i, /^an/i, /^tr/i, /^ke/i, /^pe/i, /^še/i], + any: [/^sk/i, /^pr/i, /^an/i, /^tr/i, /^kt/i, /^pn/i, /^št/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i, + any: /^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^pr/i, + pm: /^pop./i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + }, + any: { + am: /^pr/i, + pm: /^popiet$/i, + midnight: /^vidurnaktis/i, + noon: /^(vidurdienis|perp)/i, + morning: /rytas/i, + afternoon: /(die|popietė)/i, + evening: /vakaras/i, + night: /naktis/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/index.d.ts b/node_modules/date-fns/locale/lt/index.d.ts new file mode 100644 index 00000000..573a8402 --- /dev/null +++ b/node_modules/date-fns/locale/lt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lt } from 'date-fns/locale' +export default lt diff --git a/node_modules/date-fns/locale/lt/index.js b/node_modules/date-fns/locale/lt/index.js new file mode 100644 index 00000000..0ab53acb --- /dev/null +++ b/node_modules/date-fns/locale/lt/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Lithuanian locale. + * @language Lithuanian + * @iso-639-2 lit + * @author Pavlo Shpak [@pshpak]{@link https://github.com/pshpak} + * @author Eduardo Pardo [@eduardopsll]{@link https://github.com/eduardopsll} + */ +var locale = { + code: 'lt', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lt/index.js.flow b/node_modules/date-fns/locale/lt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/lt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/lt/package.json b/node_modules/date-fns/locale/lt/package.json new file mode 100644 index 00000000..be17a412 --- /dev/null +++ b/node_modules/date-fns/locale/lt/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/lt/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js b/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js new file mode 100644 index 00000000..f2ed75c7 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatDistance/index.js @@ -0,0 +1,115 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function buildLocalizeTokenFn(schema) { + return function (count, options) { + if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + return schema.one[0].replace('{{time}}', schema.one[2]); + } else { + return schema.one[0].replace('{{time}}', schema.one[1]); + } + } else { + var rem = count % 10 === 1 && count % 100 !== 11; + + if (options !== null && options !== void 0 && options.addSuffix) { + return schema.other[0].replace('{{time}}', rem ? schema.other[3] : schema.other[4]).replace('{{count}}', String(count)); + } else { + return schema.other[0].replace('{{time}}', rem ? schema.other[1] : schema.other[2]).replace('{{count}}', String(count)); + } + } + }; +} + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + one: ['mazāk par {{time}}', 'sekundi', 'sekundi'], + other: ['mazāk nekā {{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] + }), + xSeconds: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'sekunde', 'sekundes'], + other: ['{{count}} {{time}}', 'sekunde', 'sekundes', 'sekundes', 'sekundēm'] + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + return 'pusminūtes'; + } else { + return 'pusminūte'; + } + }, + lessThanXMinutes: buildLocalizeTokenFn({ + one: ['mazāk par {{time}}', 'minūti', 'minūti'], + other: ['mazāk nekā {{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] + }), + xMinutes: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'minūte', 'minūtes'], + other: ['{{count}} {{time}}', 'minūte', 'minūtes', 'minūtes', 'minūtēm'] + }), + aboutXHours: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'stunda', 'stundas'], + other: ['apmēram {{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] + }), + xHours: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'stunda', 'stundas'], + other: ['{{count}} {{time}}', 'stunda', 'stundas', 'stundas', 'stundām'] + }), + xDays: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'diena', 'dienas'], + other: ['{{count}} {{time}}', 'diena', 'dienas', 'dienas', 'dienām'] + }), + aboutXWeeks: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'nedēļa', 'nedēļas'], + other: ['apmēram {{count}} {{time}}', 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] + }), + xWeeks: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'nedēļa', 'nedēļas'], + other: ['{{count}} {{time}}', // TODO + 'nedēļa', 'nedēļu', 'nedēļas', 'nedēļām'] + }), + aboutXMonths: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'mēnesis', 'mēneša'], + other: ['apmēram {{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] + }), + xMonths: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'mēnesis', 'mēneša'], + other: ['{{count}} {{time}}', 'mēnesis', 'mēneši', 'mēneša', 'mēnešiem'] + }), + aboutXYears: buildLocalizeTokenFn({ + one: ['apmēram 1 {{time}}', 'gads', 'gada'], + other: ['apmēram {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + xYears: buildLocalizeTokenFn({ + one: ['1 {{time}}', 'gads', 'gada'], + other: ['{{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + overXYears: buildLocalizeTokenFn({ + one: ['ilgāk par 1 {{time}}', 'gadu', 'gadu'], + other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }), + almostXYears: buildLocalizeTokenFn({ + one: ['gandrīz 1 {{time}}', 'gads', 'gada'], + other: ['vairāk nekā {{count}} {{time}}', 'gads', 'gadi', 'gada', 'gadiem'] + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + var result = formatDistanceLocale[token](count, options); + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'pēc ' + result; + } else { + return 'pirms ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/formatLong/index.js b/node_modules/date-fns/locale/lv/_lib/formatLong/index.js new file mode 100644 index 00000000..8cb596b4 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, y. 'gada' d. MMMM", + long: "y. 'gada' d. MMMM", + medium: 'dd.MM.y.', + short: 'dd.MM.y.' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'plkst.' {{time}}", + long: "{{date}} 'plkst.' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js b/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js new file mode 100644 index 00000000..d8d1cd0a --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/formatRelative/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var weekdays = ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā']; +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + if ((0, _index.default)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + var weekday = weekdays[date.getUTCDay()]; + return "'Pagājušā " + weekday + " plkst.' p"; + }, + yesterday: "'Vakar plkst.' p", + today: "'Šodien plkst.' p", + tomorrow: "'Rīt plkst.' p", + nextWeek: function nextWeek(date, baseDate, options) { + if ((0, _index.default)(date, baseDate, options)) { + return "eeee 'plkst.' p"; + } + + var weekday = weekdays[date.getUTCDay()]; + return "'Nākamajā " + weekday + " plkst.' p"; + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/localize/index.js b/node_modules/date-fns/locale/lv/_lib/localize/index.js new file mode 100644 index 00000000..773babb0 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/localize/index.js @@ -0,0 +1,155 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['p.m.ē', 'm.ē'], + abbreviated: ['p. m. ē.', 'm. ē.'], + wide: ['pirms mūsu ēras', 'mūsu ērā'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], + wide: ['pirmais ceturksnis', 'otrais ceturksnis', 'trešais ceturksnis', 'ceturtais ceturksnis'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. cet.', '2. cet.', '3. cet.', '4. cet.'], + wide: ['pirmajā ceturksnī', 'otrajā ceturksnī', 'trešajā ceturksnī', 'ceturtajā ceturksnī'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'febr.', 'marts', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], + wide: ['janvāris', 'februāris', 'marts', 'aprīlis', 'maijs', 'jūnijs', 'jūlijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'] +}; +var formattingMonthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['janv.', 'febr.', 'martā', 'apr.', 'maijs', 'jūn.', 'jūl.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'], + wide: ['janvārī', 'februārī', 'martā', 'aprīlī', 'maijā', 'jūnijā', 'jūlijā', 'augustā', 'septembrī', 'oktobrī', 'novembrī', 'decembrī'] +}; +var dayValues = { + narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], + short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], + abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], + wide: ['svētdiena', 'pirmdiena', 'otrdiena', 'trešdiena', 'ceturtdiena', 'piektdiena', 'sestdiena'] +}; +var formattingDayValues = { + narrow: ['S', 'P', 'O', 'T', 'C', 'P', 'S'], + short: ['Sv', 'P', 'O', 'T', 'C', 'Pk', 'S'], + abbreviated: ['svētd.', 'pirmd.', 'otrd.', 'trešd.', 'ceturtd.', 'piektd.', 'sestd.'], + wide: ['svētdienā', 'pirmdienā', 'otrdienā', 'trešdienā', 'ceturtdienā', 'piektdienā', 'sestdienā'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rīts', + afternoon: 'diena', + evening: 'vakars', + night: 'nakts' + }, + abbreviated: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rīts', + afternoon: 'pēcpusd.', + evening: 'vakars', + night: 'nakts' + }, + wide: { + am: 'am', + pm: 'pm', + midnight: 'pusnakts', + noon: 'pusdienlaiks', + morning: 'rīts', + afternoon: 'pēcpusdiena', + evening: 'vakars', + night: 'nakts' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rītā', + afternoon: 'dienā', + evening: 'vakarā', + night: 'naktī' + }, + abbreviated: { + am: 'am', + pm: 'pm', + midnight: 'pusn.', + noon: 'pusd.', + morning: 'rītā', + afternoon: 'pēcpusd.', + evening: 'vakarā', + night: 'naktī' + }, + wide: { + am: 'am', + pm: 'pm', + midnight: 'pusnaktī', + noon: 'pusdienlaikā', + morning: 'rītā', + afternoon: 'pēcpusdienā', + evening: 'vakarā', + night: 'naktī' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/_lib/match/index.js b/node_modules/date-fns/locale/lv/_lib/match/index.js new file mode 100644 index 00000000..1d021f07 --- /dev/null +++ b/node_modules/date-fns/locale/lv/_lib/match/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p\.m\.ē|m\.ē)/i, + abbreviated: /^(p\. m\. ē\.|m\. ē\.)/i, + wide: /^(pirms mūsu ēras|mūsu ērā)/i +}; +var parseEraPatterns = { + any: [/^p/i, /^m/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](\. cet\.)/i, + wide: /^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i +}; +var parseQuarterPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i], + abbreviated: [/^1/i, /^2/i, /^3/i, /^4/i], + wide: [/^p/i, /^o/i, /^t/i, /^c/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i, + wide: /^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jūn/i, /^jūl/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[spotc]/i, + short: /^(sv|pi|o|t|c|pk|s)/i, + abbreviated: /^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i, + wide: /^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^p/i, /^o/i, /^t/i, /^c/i, /^p/i, /^s/i], + any: [/^sv/i, /^pi/i, /^o/i, /^t/i, /^c/i, /^p/i, /^se/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/, + abbreviated: /^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/, + wide: /^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^pusn/i, + noon: /^pusd/i, + morning: /^r/i, + afternoon: /^(d|pēc)/i, + evening: /^v/i, + night: /^n/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'wide', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/index.d.ts b/node_modules/date-fns/locale/lv/index.d.ts new file mode 100644 index 00000000..14686a26 --- /dev/null +++ b/node_modules/date-fns/locale/lv/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { lv } from 'date-fns/locale' +export default lv diff --git a/node_modules/date-fns/locale/lv/index.js b/node_modules/date-fns/locale/lv/index.js new file mode 100644 index 00000000..324debc4 --- /dev/null +++ b/node_modules/date-fns/locale/lv/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Latvian locale (Latvia). + * @language Latvian + * @iso-639-2 lav + * @author Rūdolfs Puķītis [@prudolfs]{@link https://github.com/prudolfs} + */ +var locale = { + code: 'lv', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/lv/index.js.flow b/node_modules/date-fns/locale/lv/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/lv/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/lv/package.json b/node_modules/date-fns/locale/lv/package.json new file mode 100644 index 00000000..c5c0bf40 --- /dev/null +++ b/node_modules/date-fns/locale/lv/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/lv/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mk/_lib/formatDistance/index.js new file mode 100644 index 00000000..f01d662b --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'помалку од секунда', + other: 'помалку од {{count}} секунди' + }, + xSeconds: { + one: '1 секунда', + other: '{{count}} секунди' + }, + halfAMinute: 'половина минута', + lessThanXMinutes: { + one: 'помалку од минута', + other: 'помалку од {{count}} минути' + }, + xMinutes: { + one: '1 минута', + other: '{{count}} минути' + }, + aboutXHours: { + one: 'околу 1 час', + other: 'околу {{count}} часа' + }, + xHours: { + one: '1 час', + other: '{{count}} часа' + }, + xDays: { + one: '1 ден', + other: '{{count}} дена' + }, + aboutXWeeks: { + one: 'околу 1 недела', + other: 'околу {{count}} месеци' + }, + xWeeks: { + one: '1 недела', + other: '{{count}} недели' + }, + aboutXMonths: { + one: 'околу 1 месец', + other: 'околу {{count}} недели' + }, + xMonths: { + one: '1 месец', + other: '{{count}} месеци' + }, + aboutXYears: { + one: 'околу 1 година', + other: 'околу {{count}} години' + }, + xYears: { + one: '1 година', + other: '{{count}} години' + }, + overXYears: { + one: 'повеќе од 1 година', + other: 'повеќе од {{count}} години' + }, + almostXYears: { + one: 'безмалку 1 година', + other: 'безмалку {{count}} години' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за ' + result; + } else { + return 'пред ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/_lib/formatLong/index.js b/node_modules/date-fns/locale/mk/_lib/formatLong/index.js new file mode 100644 index 00000000..a3b4fd08 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, dd MMMM yyyy', + long: 'dd MMMM yyyy', + medium: 'dd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/_lib/formatRelative/index.js b/node_modules/date-fns/locale/mk/_lib/formatRelative/index.js new file mode 100644 index 00000000..2acfc1b3 --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/formatRelative/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var weekdays = ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота']; + +function _lastWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'минатата " + weekday + " во' p"; + + case 1: + case 2: + case 4: + case 5: + return "'минатиот " + weekday + " во' p"; + } +} + +function thisWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'ова " + weekday + " вo' p"; + + case 1: + case 2: + case 4: + case 5: + return "'овој " + weekday + " вo' p"; + } +} + +function _nextWeek(day) { + var weekday = weekdays[day]; + + switch (day) { + case 0: + case 3: + case 6: + return "'следната " + weekday + " вo' p"; + + case 1: + case 2: + case 4: + case 5: + return "'следниот " + weekday + " вo' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'вчера во' p", + today: "'денес во' p", + tomorrow: "'утре во' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/_lib/localize/index.js b/node_modules/date-fns/locale/mk/_lib/localize/index.js new file mode 100644 index 00000000..b0df3d3e --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/localize/index.js @@ -0,0 +1,94 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['пр.н.е.', 'н.е.'], + abbreviated: ['пред н. е.', 'н. е.'], + wide: ['пред нашата ера', 'нашата ера'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-ви кв.', '2-ри кв.', '3-ти кв.', '4-ти кв.'], + wide: ['1-ви квартал', '2-ри квартал', '3-ти квартал', '4-ти квартал'] +}; +var monthValues = { + abbreviated: ['јан', 'фев', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'септ', 'окт', 'ноем', 'дек'], + wide: ['јануари', 'февруари', 'март', 'април', 'мај', 'јуни', 'јули', 'август', 'септември', 'октомври', 'ноември', 'декември'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['не', 'по', 'вт', 'ср', 'че', 'пе', 'са'], + abbreviated: ['нед', 'пон', 'вто', 'сре', 'чет', 'пет', 'саб'], + wide: ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота'] +}; +var dayPeriodValues = { + wide: { + am: 'претпладне', + pm: 'попладне', + midnight: 'полноќ', + noon: 'напладне', + morning: 'наутро', + afternoon: 'попладне', + evening: 'навечер', + night: 'ноќе' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + return number + '-ви'; + + case 2: + return number + '-ри'; + + case 7: + case 8: + return number + '-ми'; + } + } + + return number + '-ти'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/_lib/match/index.js b/node_modules/date-fns/locale/mk/_lib/match/index.js new file mode 100644 index 00000000..ffe9259c --- /dev/null +++ b/node_modules/date-fns/locale/mk/_lib/match/index.js @@ -0,0 +1,108 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?[врмт][и])?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((пр)?н\.?\s?е\.?)/i, + abbreviated: /^((пр)?н\.?\s?е\.?)/i, + wide: /^(пред нашата ера|нашата ера)/i +}; +var parseEraPatterns = { + any: [/^п/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[врт]?и?)? кв.?/i, + wide: /^[1234](-?[врт]?и?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(не|по|вт|ср|че|пе|са)/i, + abbreviated: /^(нед|пон|вто|сре|чет|пет|саб)/i, + wide: /^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н[ед]/i, /^п[он]/i, /^вт/i, /^ср/i, /^ч[ет]/i, /^п[ет]/i, /^с[аб]/i] +}; +var matchMonthPatterns = { + abbreviated: /^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i, + wide: /^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i +}; +var parseMonthPatterns = { + any: [/^ја/i, /^Ф/i, /^мар/i, /^ап/i, /^мај/i, /^јун/i, /^јул/i, /^ав/i, /^се/i, /^окт/i, /^но/i, /^де/i] +}; +var matchDayPeriodPatterns = { + any: /^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /претпладне/i, + pm: /попладне/i, + midnight: /полноќ/i, + noon: /напладне/i, + morning: /наутро/i, + afternoon: /попладне/i, + evening: /навечер/i, + night: /ноќе/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/index.d.ts b/node_modules/date-fns/locale/mk/index.d.ts new file mode 100644 index 00000000..b845b31d --- /dev/null +++ b/node_modules/date-fns/locale/mk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mk } from 'date-fns/locale' +export default mk diff --git a/node_modules/date-fns/locale/mk/index.js b/node_modules/date-fns/locale/mk/index.js new file mode 100644 index 00000000..444744f7 --- /dev/null +++ b/node_modules/date-fns/locale/mk/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Macedonian locale. + * @language Macedonian + * @iso-639-2 mkd + * @author Petar Vlahu [@vlahupetar]{@link https://github.com/vlahupetar} + * @author Altrim Beqiri [@altrim]{@link https://github.com/altrim} + */ +var locale = { + code: 'mk', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mk/index.js.flow b/node_modules/date-fns/locale/mk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/mk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/mk/package.json b/node_modules/date-fns/locale/mk/package.json new file mode 100644 index 00000000..14c4d4f1 --- /dev/null +++ b/node_modules/date-fns/locale/mk/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/mk/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js new file mode 100644 index 00000000..920fd649 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatDistance/index.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'секунд хүрэхгүй', + other: '{{count}} секунд хүрэхгүй' + }, + xSeconds: { + one: '1 секунд', + other: '{{count}} секунд' + }, + halfAMinute: 'хагас минут', + lessThanXMinutes: { + one: 'минут хүрэхгүй', + other: '{{count}} минут хүрэхгүй' + }, + xMinutes: { + one: '1 минут', + other: '{{count}} минут' + }, + aboutXHours: { + one: 'ойролцоогоор 1 цаг', + other: 'ойролцоогоор {{count}} цаг' + }, + xHours: { + one: '1 цаг', + other: '{{count}} цаг' + }, + xDays: { + one: '1 өдөр', + other: '{{count}} өдөр' + }, + aboutXWeeks: { + one: 'ойролцоогоор 1 долоо хоног', + other: 'ойролцоогоор {{count}} долоо хоног' + }, + xWeeks: { + one: '1 долоо хоног', + other: '{{count}} долоо хоног' + }, + aboutXMonths: { + one: 'ойролцоогоор 1 сар', + other: 'ойролцоогоор {{count}} сар' + }, + xMonths: { + one: '1 сар', + other: '{{count}} сар' + }, + aboutXYears: { + one: 'ойролцоогоор 1 жил', + other: 'ойролцоогоор {{count}} жил' + }, + xYears: { + one: '1 жил', + other: '{{count}} жил' + }, + overXYears: { + one: '1 жил гаран', + other: '{{count}} жил гаран' + }, + almostXYears: { + one: 'бараг 1 жил', + other: 'бараг {{count}} жил' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + /** + * Append genitive case + */ + var words = result.split(' '); + var lastword = words.pop(); + result = words.join(' '); + + switch (lastword) { + case 'секунд': + result += ' секундийн'; + break; + + case 'минут': + result += ' минутын'; + break; + + case 'цаг': + result += ' цагийн'; + break; + + case 'өдөр': + result += ' өдрийн'; + break; + + case 'сар': + result += ' сарын'; + break; + + case 'жил': + result += ' жилийн'; + break; + + case 'хоног': + result += ' хоногийн'; + break; + + case 'гаран': + result += ' гараны'; + break; + + case 'хүрэхгүй': + result += ' хүрэхгүй хугацааны'; + break; + + default: + result += lastword + '-н'; + } + + if (options.comparison && options.comparison > 0) { + return result + ' дараа'; + } else { + return result + ' өмнө'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/_lib/formatLong/index.js b/node_modules/date-fns/locale/mn/_lib/formatLong/index.js new file mode 100644 index 00000000..2b914140 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "y 'оны' MMMM'ын' d, EEEE 'гараг'", + long: "y 'оны' MMMM'ын' d", + medium: "y 'оны' MMM'ын' d", + short: 'y.MM.dd' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/_lib/formatRelative/index.js b/node_modules/date-fns/locale/mn/_lib/formatRelative/index.js new file mode 100644 index 00000000..b17a113c --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'өнгөрсөн' eeee 'гарагийн' p 'цагт'", + yesterday: "'өчигдөр' p 'цагт'", + today: "'өнөөдөр' p 'цагт'", + tomorrow: "'маргааш' p 'цагт'", + nextWeek: "'ирэх' eeee 'гарагийн' p 'цагт'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/_lib/localize/index.js b/node_modules/date-fns/locale/mn/_lib/localize/index.js new file mode 100644 index 00000000..f7f19b87 --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/localize/index.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['НТӨ', 'НТ'], + abbreviated: ['НТӨ', 'НТ'], + wide: ['нийтийн тооллын өмнөх', 'нийтийн тооллын'] +}; +var quarterValues = { + narrow: ['I', 'II', 'III', 'IV'], + abbreviated: ['I улирал', 'II улирал', 'III улирал', 'IV улирал'], + wide: ['1-р улирал', '2-р улирал', '3-р улирал', '4-р улирал'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'], + abbreviated: ['1-р сар', '2-р сар', '3-р сар', '4-р сар', '5-р сар', '6-р сар', '7-р сар', '8-р сар', '9-р сар', '10-р сар', '11-р сар', '12-р сар'], + wide: ['Нэгдүгээр сар', 'Хоёрдугаар сар', 'Гуравдугаар сар', 'Дөрөвдүгээр сар', 'Тавдугаар сар', 'Зургаадугаар сар', 'Долоодугаар сар', 'Наймдугаар сар', 'Есдүгээр сар', 'Аравдугаар сар', 'Арваннэгдүгээр сар', 'Арван хоёрдугаар сар'] +}; +var formattingMonthValues = { + narrow: ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'], + abbreviated: ['1-р сар', '2-р сар', '3-р сар', '4-р сар', '5-р сар', '6-р сар', '7-р сар', '8-р сар', '9-р сар', '10-р сар', '11-р сар', '12-р сар'], + wide: ['нэгдүгээр сар', 'хоёрдугаар сар', 'гуравдугаар сар', 'дөрөвдүгээр сар', 'тавдугаар сар', 'зургаадугаар сар', 'долоодугаар сар', 'наймдугаар сар', 'есдүгээр сар', 'аравдугаар сар', 'арваннэгдүгээр сар', 'арван хоёрдугаар сар'] +}; +var dayValues = { + narrow: ['Н', 'Д', 'М', 'Л', 'П', 'Б', 'Б'], + short: ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], + abbreviated: ['Ням', 'Дав', 'Мяг', 'Лха', 'Пүр', 'Баа', 'Бям'], + wide: ['Ням', 'Даваа', 'Мягмар', 'Лхагва', 'Пүрэв', 'Баасан', 'Бямба'] +}; +var formattingDayValues = { + narrow: ['Н', 'Д', 'М', 'Л', 'П', 'Б', 'Б'], + short: ['Ня', 'Да', 'Мя', 'Лх', 'Пү', 'Ба', 'Бя'], + abbreviated: ['Ням', 'Дав', 'Мяг', 'Лха', 'Пүр', 'Баа', 'Бям'], + wide: ['ням', 'даваа', 'мягмар', 'лхагва', 'пүрэв', 'баасан', 'бямба'] +}; +var dayPeriodValues = { + narrow: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + }, + abbreviated: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + }, + wide: { + am: 'ү.ө.', + pm: 'ү.х.', + midnight: 'шөнө дунд', + noon: 'үд дунд', + morning: 'өглөө', + afternoon: 'өдөр', + evening: 'орой', + night: 'шөнө' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: formattingDayValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/_lib/match/index.js b/node_modules/date-fns/locale/mn/_lib/match/index.js new file mode 100644 index 00000000..054552ab --- /dev/null +++ b/node_modules/date-fns/locale/mn/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /\d+/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(нтө|нт)/i, + abbreviated: /^(нтө|нт)/i, + wide: /^(нийтийн тооллын өмнө|нийтийн тооллын)/i +}; +var parseEraPatterns = { + any: [/^(нтө|нийтийн тооллын өмнө)/i, /^(нт|нийтийн тооллын)/i] +}; +var matchQuarterPatterns = { + narrow: /^(iv|iii|ii|i)/i, + abbreviated: /^(iv|iii|ii|i) улирал/i, + wide: /^[1-4]-р улирал/i +}; +var parseQuarterPatterns = { + any: [/^(i(\s|$)|1)/i, /^(ii(\s|$)|2)/i, /^(iii(\s|$)|3)/i, /^(iv(\s|$)|4)/i] +}; +var matchMonthPatterns = { + narrow: /^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i, + abbreviated: /^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i, + wide: /^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i +}; +var parseMonthPatterns = { + narrow: [/^i$/i, /^ii$/i, /^iii$/i, /^iv$/i, /^v$/i, /^vi$/i, /^vii$/i, /^viii$/i, /^ix$/i, /^x$/i, /^xi$/i, /^xii$/i], + any: [/^(1|нэгдүгээр)/i, /^(2|хоёрдугаар)/i, /^(3|гуравдугаар)/i, /^(4|дөрөвдүгээр)/i, /^(5|тавдугаар)/i, /^(6|зургаадугаар)/i, /^(7|долоодугаар)/i, /^(8|наймдугаар)/i, /^(9|есдүгээр)/i, /^(10|аравдугаар)/i, /^(11|арван нэгдүгээр)/i, /^(12|арван хоёрдугаар)/i] +}; +var matchDayPatterns = { + narrow: /^[ндмлпбб]/i, + short: /^(ня|да|мя|лх|пү|ба|бя)/i, + abbreviated: /^(ням|дав|мяг|лха|пүр|баа|бям)/i, + wide: /^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^д/i, /^м/i, /^л/i, /^п/i, /^б/i, /^б/i], + any: [/^ня/i, /^да/i, /^мя/i, /^лх/i, /^пү/i, /^ба/i, /^бя/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i, + any: /^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ү\.ө\./i, + pm: /^ү\.х\./i, + midnight: /^шөнө дунд/i, + noon: /^үд дунд/i, + morning: /өглөө/i, + afternoon: /өдөр/i, + evening: /орой/i, + night: /шөнө/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/index.d.ts b/node_modules/date-fns/locale/mn/index.d.ts new file mode 100644 index 00000000..9b27ad91 --- /dev/null +++ b/node_modules/date-fns/locale/mn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mn } from 'date-fns/locale' +export default mn diff --git a/node_modules/date-fns/locale/mn/index.js b/node_modules/date-fns/locale/mn/index.js new file mode 100644 index 00000000..2cb03e89 --- /dev/null +++ b/node_modules/date-fns/locale/mn/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Mongolian locale. + * @language Mongolian + * @iso-639-2 mon + * @author Bilguun Ochirbat [@bilguun0203]{@link https://github.com/bilguun0203} + */ +var locale = { + code: 'mn', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mn/index.js.flow b/node_modules/date-fns/locale/mn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/mn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/mn/package.json b/node_modules/date-fns/locale/mn/package.json new file mode 100644 index 00000000..f3233bc6 --- /dev/null +++ b/node_modules/date-fns/locale/mn/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/mn/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ms/_lib/formatDistance/index.js new file mode 100644 index 00000000..55569725 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'kurang dari 1 saat', + other: 'kurang dari {{count}} saat' + }, + xSeconds: { + one: '1 saat', + other: '{{count}} saat' + }, + halfAMinute: 'setengah minit', + lessThanXMinutes: { + one: 'kurang dari 1 minit', + other: 'kurang dari {{count}} minit' + }, + xMinutes: { + one: '1 minit', + other: '{{count}} minit' + }, + aboutXHours: { + one: 'sekitar 1 jam', + other: 'sekitar {{count}} jam' + }, + xHours: { + one: '1 jam', + other: '{{count}} jam' + }, + xDays: { + one: '1 hari', + other: '{{count}} hari' + }, + aboutXWeeks: { + one: 'sekitar 1 minggu', + other: 'sekitar {{count}} minggu' + }, + xWeeks: { + one: '1 minggu', + other: '{{count}} minggu' + }, + aboutXMonths: { + one: 'sekitar 1 bulan', + other: 'sekitar {{count}} bulan' + }, + xMonths: { + one: '1 bulan', + other: '{{count}} bulan' + }, + aboutXYears: { + one: 'sekitar 1 tahun', + other: 'sekitar {{count}} tahun' + }, + xYears: { + one: '1 tahun', + other: '{{count}} tahun' + }, + overXYears: { + one: 'lebih dari 1 tahun', + other: 'lebih dari {{count}} tahun' + }, + almostXYears: { + one: 'hampir 1 tahun', + other: 'hampir {{count}} tahun' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'dalam masa ' + result; + } else { + return result + ' yang lalu'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/_lib/formatLong/index.js b/node_modules/date-fns/locale/ms/_lib/formatLong/index.js new file mode 100644 index 00000000..2152b72a --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'd/M/yyyy' +}; +var timeFormats = { + full: 'HH.mm.ss', + long: 'HH.mm.ss', + medium: 'HH.mm', + short: 'HH.mm' +}; +var dateTimeFormats = { + full: "{{date}} 'pukul' {{time}}", + long: "{{date}} 'pukul' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ms/_lib/formatRelative/index.js new file mode 100644 index 00000000..540ef54b --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'lepas pada jam' p", + yesterday: "'Semalam pada jam' p", + today: "'Hari ini pada jam' p", + tomorrow: "'Esok pada jam' p", + nextWeek: "eeee 'pada jam' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/_lib/localize/index.js b/node_modules/date-fns/locale/ms/_lib/localize/index.js new file mode 100644 index 00000000..11a896f8 --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/localize/index.js @@ -0,0 +1,139 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Most data for localization are taken from this page +// https://www.unicode.org/cldr/charts/32/summary/ms.html +var eraValues = { + narrow: ['SM', 'M'], + abbreviated: ['SM', 'M'], + wide: ['Sebelum Masihi', 'Masihi'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['S1', 'S2', 'S3', 'S4'], + wide: ['Suku pertama', 'Suku kedua', 'Suku ketiga', 'Suku keempat'] +}; // Note: in Malay, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'O', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ogo', 'Sep', 'Okt', 'Nov', 'Dis'], + wide: ['Januari', 'Februari', 'Mac', 'April', 'Mei', 'Jun', 'Julai', 'Ogos', 'September', 'Oktober', 'November', 'Disember'] +}; +var dayValues = { + narrow: ['A', 'I', 'S', 'R', 'K', 'J', 'S'], + short: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], + abbreviated: ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'], + wide: ['Ahad', 'Isnin', 'Selasa', 'Rabu', 'Khamis', 'Jumaat', 'Sabtu'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'tgh malam', + noon: 'tgh hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'tengah malam', + noon: 'tengah hari', + morning: 'pagi', + afternoon: 'tengah hari', + evening: 'petang', + night: 'malam' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + // Can't use "pertama", "kedua" because can't be parsed + return 'ke-' + Number(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/_lib/match/index.js b/node_modules/date-fns/locale/ms/_lib/match/index.js new file mode 100644 index 00000000..e4d4c86d --- /dev/null +++ b/node_modules/date-fns/locale/ms/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^ke-(\d+)?/i; +var parseOrdinalNumberPattern = /petama|\d+/i; +var matchEraPatterns = { + narrow: /^(sm|m)/i, + abbreviated: /^(s\.?\s?m\.?|m\.?)/i, + wide: /^(sebelum masihi|masihi)/i +}; +var parseEraPatterns = { + any: [/^s/i, /^(m)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^S[1234]/i, + wide: /Suku (pertama|kedua|ketiga|keempat)/i +}; +var parseQuarterPatterns = { + any: [/pertama|1/i, /kedua|2/i, /ketiga|3/i, /keempat|4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i, + wide: /^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^o/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^ma/i, /^ap/i, /^me/i, /^jun/i, /^jul/i, /^og/i, /^s/i, /^ok/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[aisrkj]/i, + short: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + abbreviated: /^(ahd|isn|sel|rab|kha|jum|sab)/i, + wide: /^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i +}; +var parseDayPatterns = { + narrow: [/^a/i, /^i/i, /^s/i, /^r/i, /^k/i, /^j/i, /^s/i], + any: [/^a/i, /^i/i, /^se/i, /^r/i, /^k/i, /^j/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i, + any: /^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^pm/i, + midnight: /^tengah m/i, + noon: /^tengah h/i, + morning: /pa/i, + afternoon: /tengah h/i, + evening: /pe/i, + night: /m/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/index.d.ts b/node_modules/date-fns/locale/ms/index.d.ts new file mode 100644 index 00000000..d7450bdd --- /dev/null +++ b/node_modules/date-fns/locale/ms/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ms } from 'date-fns/locale' +export default ms diff --git a/node_modules/date-fns/locale/ms/index.js b/node_modules/date-fns/locale/ms/index.js new file mode 100644 index 00000000..53f0928f --- /dev/null +++ b/node_modules/date-fns/locale/ms/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Malay locale. + * @language Malay + * @iso-639-2 msa + * @author Ruban Selvarajah [@Zyten]{@link https://github.com/Zyten} + */ +var locale = { + code: 'ms', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ms/index.js.flow b/node_modules/date-fns/locale/ms/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ms/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ms/package.json b/node_modules/date-fns/locale/ms/package.json new file mode 100644 index 00000000..e96ee071 --- /dev/null +++ b/node_modules/date-fns/locale/ms/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ms/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/mt/_lib/formatDistance/index.js new file mode 100644 index 00000000..ca471a73 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatDistance/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'inqas minn sekonda', + other: 'inqas minn {{count}} sekondi' + }, + xSeconds: { + one: 'sekonda', + other: '{{count}} sekondi' + }, + halfAMinute: 'nofs minuta', + lessThanXMinutes: { + one: 'inqas minn minuta', + other: 'inqas minn {{count}} minuti' + }, + xMinutes: { + one: 'minuta', + other: '{{count}} minuti' + }, + aboutXHours: { + one: 'madwar siegħa', + other: 'madwar {{count}} siegħat' + }, + xHours: { + one: 'siegħa', + other: '{{count}} siegħat' + }, + xDays: { + one: 'ġurnata', + other: '{{count}} ġranet' + }, + aboutXWeeks: { + one: 'madwar ġimgħa', + other: 'madwar {{count}} ġimgħat' + }, + xWeeks: { + one: 'ġimgħa', + other: '{{count}} ġimgħat' + }, + aboutXMonths: { + one: 'madwar xahar', + other: 'madwar {{count}} xhur' + }, + xMonths: { + one: 'xahar', + other: '{{count}} xhur' + }, + aboutXYears: { + one: 'madwar sena', + two: 'madwar sentejn', + other: 'madwar {{count}} snin' + }, + xYears: { + one: 'sena', + two: 'sentejn', + other: '{{count}} snin' + }, + overXYears: { + one: 'aktar minn sena', + two: 'aktar minn sentejn', + other: 'aktar minn {{count}} snin' + }, + almostXYears: { + one: 'kważi sena', + two: 'kważi sentejn', + other: 'kważi {{count}} snin' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else if (count === 2 && tokenValue.two) { + result = tokenValue.two; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return "f'" + result; + } else { + return result + ' ilu'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/_lib/formatLong/index.js b/node_modules/date-fns/locale/mt/_lib/formatLong/index.js new file mode 100644 index 00000000..649e1777 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/_lib/formatRelative/index.js b/node_modules/date-fns/locale/mt/_lib/formatRelative/index.js new file mode 100644 index 00000000..7f6735a5 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'li għadda' 'fil-'p", + yesterday: "'Il-bieraħ fil-'p", + today: "'Illum fil-'p", + tomorrow: "'Għada fil-'p", + nextWeek: "eeee 'fil-'p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/_lib/localize/index.js b/node_modules/date-fns/locale/mt/_lib/localize/index.js new file mode 100644 index 00000000..84303e92 --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['Q', 'W'], + abbreviated: ['QK', 'WK'], + wide: ['qabel Kristu', 'wara Kristu'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1. kwart', '2. kwart', '3. kwart', '4. kwart'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'Ġ', 'L', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Jan', 'Fra', 'Mar', 'Apr', 'Mej', 'Ġun', 'Lul', 'Aww', 'Set', 'Ott', 'Nov', 'Diċ'], + wide: ['Jannar', 'Frar', 'Marzu', 'April', 'Mejju', 'Ġunju', 'Lulju', 'Awwissu', 'Settembru', 'Ottubru', 'Novembru', 'Diċembru'] +}; +var dayValues = { + narrow: ['Ħ', 'T', 'T', 'E', 'Ħ', 'Ġ', 'S'], + short: ['Ħa', 'Tn', 'Tl', 'Er', 'Ħa', 'Ġi', 'Si'], + abbreviated: ['Ħad', 'Tne', 'Tli', 'Erb', 'Ħam', 'Ġim', 'Sib'], + wide: ['Il-Ħadd', 'It-Tnejn', 'It-Tlieta', 'L-Erbgħa', 'Il-Ħamis', 'Il-Ġimgħa', 'Is-Sibt'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'nofsillejl', + noon: 'nofsinhar', + morning: 'għodwa', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'lejl' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: "f'nofsillejl", + noon: "f'nofsinhar", + morning: 'filgħodu', + afternoon: 'wara nofsinhar', + evening: 'filgħaxija', + night: 'billejl' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/_lib/match/index.js b/node_modules/date-fns/locale/mt/_lib/match/index.js new file mode 100644 index 00000000..17e3a73d --- /dev/null +++ b/node_modules/date-fns/locale/mt/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(º)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(q|w)/i, + abbreviated: /^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i, + wide: /^(qabel kristu|before common era|wara kristu|common era)/i +}; +var parseEraPatterns = { + any: [/^(q|b)/i, /^(w|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^k[1234]/i, + wide: /^[1234](\.)? kwart/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmaglsond]/i, + abbreviated: /^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i, + wide: /^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^ġ/i, /^l/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mej/i, /^ġ/i, /^l/i, /^aw/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[ħteġs]/i, + short: /^(ħa|tn|tl|er|ħa|ġi|si)/i, + abbreviated: /^(ħad|tne|tli|erb|ħam|ġim|sib)/i, + wide: /^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i +}; +var parseDayPatterns = { + narrow: [/^ħ/i, /^t/i, /^t/i, /^e/i, /^ħ/i, /^ġ/i, /^s/i], + any: [/^(il-)?ħad/i, /^(it-)?tn/i, /^(it-)?tl/i, /^(l-)?er/i, /^(il-)?ham/i, /^(il-)?ġi/i, /^(is-)?si/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i, + any: /^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^f'nofsillejl/i, + noon: /^f'nofsinhar/i, + morning: /għodwa/i, + afternoon: /wara(\s.*)nofsinhar/i, + evening: /filgħaxija/i, + night: /lejl/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/index.d.ts b/node_modules/date-fns/locale/mt/index.d.ts new file mode 100644 index 00000000..a845625b --- /dev/null +++ b/node_modules/date-fns/locale/mt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { mt } from 'date-fns/locale' +export default mt diff --git a/node_modules/date-fns/locale/mt/index.js b/node_modules/date-fns/locale/mt/index.js new file mode 100644 index 00000000..07e7c56b --- /dev/null +++ b/node_modules/date-fns/locale/mt/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Maltese locale. + * @language Maltese + * @iso-639-2 mlt + * @author Andras Matzon [@amatzon](@link https://github.com/amatzon) + * @author Bryan Borg [@bryanMt](@link https://github.com/bryanMt) + */ +var locale = { + code: 'mt', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/mt/index.js.flow b/node_modules/date-fns/locale/mt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/mt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/mt/package.json b/node_modules/date-fns/locale/mt/package.json new file mode 100644 index 00000000..ac6f8e7f --- /dev/null +++ b/node_modules/date-fns/locale/mt/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/mt/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nb/_lib/formatDistance/index.js new file mode 100644 index 00000000..5eca2f71 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre enn ett sekund', + other: 'mindre enn {{count}} sekunder' + }, + xSeconds: { + one: 'ett sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'et halvt minutt', + lessThanXMinutes: { + one: 'mindre enn ett minutt', + other: 'mindre enn {{count}} minutter' + }, + xMinutes: { + one: 'ett minutt', + other: '{{count}} minutter' + }, + aboutXHours: { + one: 'omtrent en time', + other: 'omtrent {{count}} timer' + }, + xHours: { + one: 'en time', + other: '{{count}} timer' + }, + xDays: { + one: 'en dag', + other: '{{count}} dager' + }, + aboutXWeeks: { + one: 'omtrent en uke', + other: 'omtrent {{count}} uker' + }, + xWeeks: { + one: 'en uke', + other: '{{count}} uker' + }, + aboutXMonths: { + one: 'omtrent en måned', + other: 'omtrent {{count}} måneder' + }, + xMonths: { + one: 'en måned', + other: '{{count}} måneder' + }, + aboutXYears: { + one: 'omtrent ett år', + other: 'omtrent {{count}} år' + }, + xYears: { + one: 'ett år', + other: '{{count}} år' + }, + overXYears: { + one: 'over ett år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'nesten ett år', + other: 'nesten {{count}} år' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' siden'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/_lib/formatLong/index.js b/node_modules/date-fns/locale/nb/_lib/formatLong/index.js new file mode 100644 index 00000000..7b048491 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/_lib/formatRelative/index.js b/node_modules/date-fns/locale/nb/_lib/formatRelative/index.js new file mode 100644 index 00000000..555e34aa --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'forrige' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgen kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/_lib/localize/index.js b/node_modules/date-fns/locale/nb/_lib/localize/index.js new file mode 100644 index 00000000..c45f6eb3 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['før Kristus', 'etter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'], + abbreviated: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'], + wide: ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natten' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natten' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgenen', + afternoon: 'på ettermiddagen', + evening: 'på kvelden', + night: 'på natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/_lib/match/index.js b/node_modules/date-fns/locale/nb/_lib/match/index.js new file mode 100644 index 00000000..307d61d3 --- /dev/null +++ b/node_modules/date-fns/locale/nb/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^e/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sø|ma|ti|on|to|fr|lø)/i, + abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i, + wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgen/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/index.d.ts b/node_modules/date-fns/locale/nb/index.d.ts new file mode 100644 index 00000000..75c06bb9 --- /dev/null +++ b/node_modules/date-fns/locale/nb/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nb } from 'date-fns/locale' +export default nb diff --git a/node_modules/date-fns/locale/nb/index.js b/node_modules/date-fns/locale/nb/index.js new file mode 100644 index 00000000..fab21efc --- /dev/null +++ b/node_modules/date-fns/locale/nb/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Norwegian Bokmål locale. + * @language Norwegian Bokmål + * @iso-639-2 nob + * @author Hans-Kristian Koren [@Hanse]{@link https://github.com/Hanse} + * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Dag Stuan [@dagstuan]{@link https://github.com/dagstuan} + */ +var locale = { + code: 'nb', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nb/index.js.flow b/node_modules/date-fns/locale/nb/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/nb/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/nb/package.json b/node_modules/date-fns/locale/nb/package.json new file mode 100644 index 00000000..1b66b430 --- /dev/null +++ b/node_modules/date-fns/locale/nb/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/nb/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance/index.js new file mode 100644 index 00000000..e67fd3f0 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder dan een seconde', + other: 'minder dan {{count}} seconden' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} seconden' + }, + halfAMinute: 'een halve minuut', + lessThanXMinutes: { + one: 'minder dan een minuut', + other: 'minder dan {{count}} minuten' + }, + xMinutes: { + one: 'een minuut', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} uur' + }, + xHours: { + one: '1 uur', + other: '{{count}} uur' + }, + xDays: { + one: '1 dag', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weken' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weken' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maanden' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maanden' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer dan 1 jaar', + other: 'meer dan {{count}} jaar' + }, + almostXYears: { + one: 'bijna 1 jaar', + other: 'bijna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatLong/index.js b/node_modules/date-fns/locale/nl-BE/_lib/formatLong/index.js new file mode 100644 index 00000000..4a38a40c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/_lib/formatRelative/index.js b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative/index.js new file mode 100644 index 00000000..894abbe8 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'vorige' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/_lib/localize/index.js b/node_modules/date-fns/locale/nl-BE/_lib/localize/index.js new file mode 100644 index 00000000..17948c8c --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['v.C.', 'n.C.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], + short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middag', + morning: "'s ochtends", + afternoon: "'s namiddags", + evening: "'s avonds", + night: "'s nachts" + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/_lib/match/index.js b/node_modules/date-fns/locale/nl-BE/_lib/match/index.js new file mode 100644 index 00000000..38bd2f23 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}; +var parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/index.d.ts b/node_modules/date-fns/locale/nl-BE/index.d.ts new file mode 100644 index 00000000..c2970a4e --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nlBE } from 'date-fns/locale' +export default nlBE diff --git a/node_modules/date-fns/locale/nl-BE/index.js b/node_modules/date-fns/locale/nl-BE/index.js new file mode 100644 index 00000000..5f4ade9f --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} + * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} + * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} + * @author Alex Hoeing [@dcbn]{@link https://github.com/dcbn} + */ +var locale = { + code: 'nl-BE', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl-BE/index.js.flow b/node_modules/date-fns/locale/nl-BE/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/nl-BE/package.json b/node_modules/date-fns/locale/nl-BE/package.json new file mode 100644 index 00000000..607a6c20 --- /dev/null +++ b/node_modules/date-fns/locale/nl-BE/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/nl-BE/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nl/_lib/formatDistance/index.js new file mode 100644 index 00000000..e67fd3f0 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'minder dan een seconde', + other: 'minder dan {{count}} seconden' + }, + xSeconds: { + one: '1 seconde', + other: '{{count}} seconden' + }, + halfAMinute: 'een halve minuut', + lessThanXMinutes: { + one: 'minder dan een minuut', + other: 'minder dan {{count}} minuten' + }, + xMinutes: { + one: 'een minuut', + other: '{{count}} minuten' + }, + aboutXHours: { + one: 'ongeveer 1 uur', + other: 'ongeveer {{count}} uur' + }, + xHours: { + one: '1 uur', + other: '{{count}} uur' + }, + xDays: { + one: '1 dag', + other: '{{count}} dagen' + }, + aboutXWeeks: { + one: 'ongeveer 1 week', + other: 'ongeveer {{count}} weken' + }, + xWeeks: { + one: '1 week', + other: '{{count}} weken' + }, + aboutXMonths: { + one: 'ongeveer 1 maand', + other: 'ongeveer {{count}} maanden' + }, + xMonths: { + one: '1 maand', + other: '{{count}} maanden' + }, + aboutXYears: { + one: 'ongeveer 1 jaar', + other: 'ongeveer {{count}} jaar' + }, + xYears: { + one: '1 jaar', + other: '{{count}} jaar' + }, + overXYears: { + one: 'meer dan 1 jaar', + other: 'meer dan {{count}} jaar' + }, + almostXYears: { + one: 'bijna 1 jaar', + other: 'bijna {{count}} jaar' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'over ' + result; + } else { + return result + ' geleden'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/_lib/formatLong/index.js b/node_modules/date-fns/locale/nl/_lib/formatLong/index.js new file mode 100644 index 00000000..ff7ed1f1 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd-MM-y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'om' {{time}}", + long: "{{date}} 'om' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/_lib/formatRelative/index.js b/node_modules/date-fns/locale/nl/_lib/formatRelative/index.js new file mode 100644 index 00000000..6f9bab0d --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'afgelopen' eeee 'om' p", + yesterday: "'gisteren om' p", + today: "'vandaag om' p", + tomorrow: "'morgen om' p", + nextWeek: "eeee 'om' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/_lib/localize/index.js b/node_modules/date-fns/locale/nl/_lib/localize/index.js new file mode 100644 index 00000000..7a191eb1 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['v.C.', 'n.C.'], + abbreviated: ['v.Chr.', 'n.Chr.'], + wide: ['voor Christus', 'na Christus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['K1', 'K2', 'K3', 'K4'], + wide: ['1e kwartaal', '2e kwartaal', '3e kwartaal', '4e kwartaal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mrt.', 'apr.', 'mei', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['Z', 'M', 'D', 'W', 'D', 'V', 'Z'], + short: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + abbreviated: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + wide: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'middernacht', + noon: 'het middaguur', + morning: "'s ochtends", + afternoon: "'s middags", + evening: "'s avonds", + night: "'s nachts" + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/_lib/match/index.js b/node_modules/date-fns/locale/nl/_lib/match/index.js new file mode 100644 index 00000000..38bd2f23 --- /dev/null +++ b/node_modules/date-fns/locale/nl/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)e?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([vn]\.? ?C\.?)/, + abbreviated: /^([vn]\. ?Chr\.?)/, + wide: /^((voor|na) Christus)/ +}; +var parseEraPatterns = { + any: [/^v/, /^n/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^K[1234]/i, + wide: /^[1234]e kwartaal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i, + wide: /^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^jan/i, /^feb/i, /^m(r|a)/i, /^apr/i, /^mei/i, /^jun/i, /^jul/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i] +}; +var matchDayPatterns = { + narrow: /^[zmdwv]/i, + short: /^(zo|ma|di|wo|do|vr|za)/i, + abbreviated: /^(zon|maa|din|woe|don|vri|zat)/i, + wide: /^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i +}; +var parseDayPatterns = { + narrow: [/^z/i, /^m/i, /^d/i, /^w/i, /^d/i, /^v/i, /^z/i], + any: [/^zo/i, /^ma/i, /^di/i, /^wo/i, /^do/i, /^vr/i, /^za/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /^middernacht/i, + noon: /^het middaguur/i, + morning: /ochtend/i, + afternoon: /middag/i, + evening: /avond/i, + night: /nacht/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/index.d.ts b/node_modules/date-fns/locale/nl/index.d.ts new file mode 100644 index 00000000..eb92f4ea --- /dev/null +++ b/node_modules/date-fns/locale/nl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nl } from 'date-fns/locale' +export default nl diff --git a/node_modules/date-fns/locale/nl/index.js b/node_modules/date-fns/locale/nl/index.js new file mode 100644 index 00000000..e06817b2 --- /dev/null +++ b/node_modules/date-fns/locale/nl/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Dutch locale. + * @language Dutch + * @iso-639-2 nld + * @author Jorik Tangelder [@jtangelder]{@link https://github.com/jtangelder} + * @author Ruben Stolk [@rubenstolk]{@link https://github.com/rubenstolk} + * @author Lode Vanhove [@bitcrumb]{@link https://github.com/bitcrumb} + * @author Edo Rivai [@edorivai]{@link https://github.com/edorivai} + * @author Niels Keurentjes [@curry684]{@link https://github.com/curry684} + * @author Stefan Vermaas [@stefanvermaas]{@link https://github.com/stefanvermaas} + */ +var locale = { + code: 'nl', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nl/index.js.flow b/node_modules/date-fns/locale/nl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/nl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/nl/package.json b/node_modules/date-fns/locale/nl/package.json new file mode 100644 index 00000000..210425ac --- /dev/null +++ b/node_modules/date-fns/locale/nl/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/nl/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/nn/_lib/formatDistance/index.js new file mode 100644 index 00000000..61475f12 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre enn eitt sekund', + other: 'mindre enn {{count}} sekund' + }, + xSeconds: { + one: 'eitt sekund', + other: '{{count}} sekund' + }, + halfAMinute: 'eit halvt minutt', + lessThanXMinutes: { + one: 'mindre enn eitt minutt', + other: 'mindre enn {{count}} minutt' + }, + xMinutes: { + one: 'eitt minutt', + other: '{{count}} minutt' + }, + aboutXHours: { + one: 'omtrent ein time', + other: 'omtrent {{count}} timar' + }, + xHours: { + one: 'ein time', + other: '{{count}} timar' + }, + xDays: { + one: 'ein dag', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'omtrent ei veke', + other: 'omtrent {{count}} veker' + }, + xWeeks: { + one: 'ei veke', + other: '{{count}} veker' + }, + aboutXMonths: { + one: 'omtrent ein månad', + other: 'omtrent {{count}} månader' + }, + xMonths: { + one: 'ein månad', + other: '{{count}} månader' + }, + aboutXYears: { + one: 'omtrent eitt år', + other: 'omtrent {{count}} år' + }, + xYears: { + one: 'eitt år', + other: '{{count}} år' + }, + overXYears: { + one: 'over eitt år', + other: 'over {{count}} år' + }, + almostXYears: { + one: 'nesten eitt år', + other: 'nesten {{count}} år' + } +}; +var wordMapping = ['null', 'ein', 'to', 'tre', 'fire', 'fem', 'seks', 'sju', 'åtte', 'ni', 'ti', 'elleve', 'tolv']; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + if (options && options.onlyNumeric) { + result = tokenValue.other.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', count < 13 ? wordMapping[count] : String(count)); + } + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sidan'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/_lib/formatLong/index.js b/node_modules/date-fns/locale/nn/_lib/formatLong/index.js new file mode 100644 index 00000000..7b048491 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/_lib/formatRelative/index.js b/node_modules/date-fns/locale/nn/_lib/formatRelative/index.js new file mode 100644 index 00000000..7702ef9c --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'førre' eeee 'kl.' p", + yesterday: "'i går kl.' p", + today: "'i dag kl.' p", + tomorrow: "'i morgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/_lib/localize/index.js b/node_modules/date-fns/locale/nn/_lib/localize/index.js new file mode 100644 index 00000000..9648bf63 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/localize/index.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['før Kristus', 'etter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'mai', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'des.'], + wide: ['januar', 'februar', 'mars', 'april', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['su', 'må', 'ty', 'on', 'to', 'fr', 'lau'], + abbreviated: ['sun', 'mån', 'tys', 'ons', 'tor', 'fre', 'laur'], + wide: ['sundag', 'måndag', 'tysdag', 'onsdag', 'torsdag', 'fredag', 'laurdag'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natta' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på etterm.', + evening: 'på kvelden', + night: 'på natta' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgonen', + afternoon: 'på ettermiddagen', + evening: 'på kvelden', + night: 'på natta' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/_lib/match/index.js b/node_modules/date-fns/locale/nn/_lib/match/index.js new file mode 100644 index 00000000..fbb13e78 --- /dev/null +++ b/node_modules/date-fns/locale/nn/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i, + wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^e/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](\.)? kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i, + wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^jun/i, /^jul/i, /^aug/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(su|må|ty|on|to|fr|la)/i, + abbreviated: /^(sun|mån|tys|ons|tor|fre|laur)/i, + wide: /^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ty/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i, + any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a(\.?\s?m\.?)?$/i, + pm: /^p(\.?\s?m\.?)?$/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /ettermiddag/i, + evening: /kveld/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/index.d.ts b/node_modules/date-fns/locale/nn/index.d.ts new file mode 100644 index 00000000..08050ed8 --- /dev/null +++ b/node_modules/date-fns/locale/nn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nn } from 'date-fns/locale' +export default nn diff --git a/node_modules/date-fns/locale/nn/index.js b/node_modules/date-fns/locale/nn/index.js new file mode 100644 index 00000000..657230db --- /dev/null +++ b/node_modules/date-fns/locale/nn/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Norwegian Nynorsk locale. + * @language Norwegian Nynorsk + * @iso-639-2 nno + * @author Mats Byrkjeland [@draperunner]{@link https://github.com/draperunner} + */ +var locale = { + code: 'nn', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/nn/index.js.flow b/node_modules/date-fns/locale/nn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/nn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/nn/package.json b/node_modules/date-fns/locale/nn/package.json new file mode 100644 index 00000000..898d9e2c --- /dev/null +++ b/node_modules/date-fns/locale/nn/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/nn/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js b/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js new file mode 100644 index 00000000..6403848b --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mens d’una segonda', + other: 'mens de {{count}} segondas' + }, + xSeconds: { + one: '1 segonda', + other: '{{count}} segondas' + }, + halfAMinute: '30 segondas', + lessThanXMinutes: { + one: 'mens d’una minuta', + other: 'mens de {{count}} minutas' + }, + xMinutes: { + one: '1 minuta', + other: '{{count}} minutas' + }, + aboutXHours: { + one: 'environ 1 ora', + other: 'environ {{count}} oras' + }, + xHours: { + one: '1 ora', + other: '{{count}} oras' + }, + xDays: { + one: '1 jorn', + other: '{{count}} jorns' + }, + aboutXWeeks: { + one: 'environ 1 setmana', + other: 'environ {{count}} setmanas' + }, + xWeeks: { + one: '1 setmana', + other: '{{count}} setmanas' + }, + aboutXMonths: { + one: 'environ 1 mes', + other: 'environ {{count}} meses' + }, + xMonths: { + one: '1 mes', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'environ 1 an', + other: 'environ {{count}} ans' + }, + xYears: { + one: '1 an', + other: '{{count}} ans' + }, + overXYears: { + one: 'mai d’un an', + other: 'mai de {{count}} ans' + }, + almostXYears: { + one: 'gaireben un an', + other: 'gaireben {{count}} ans' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'd’aquí ' + result; + } else { + return 'fa ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/_lib/formatLong/index.js b/node_modules/date-fns/locale/oc/_lib/formatLong/index.js new file mode 100644 index 00000000..21526f4e --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE d 'de' MMMM y", + long: "d 'de' MMMM y", + medium: 'd MMM y', + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'a' {{time}}", + long: "{{date}} 'a' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/_lib/formatRelative/index.js b/node_modules/date-fns/locale/oc/_lib/formatRelative/index.js new file mode 100644 index 00000000..4a61f956 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'passat a' p", + yesterday: "'ièr a' p", + today: "'uèi a' p", + tomorrow: "'deman a' p", + nextWeek: "eeee 'a' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/_lib/localize/index.js b/node_modules/date-fns/locale/oc/_lib/localize/index.js new file mode 100644 index 00000000..13d4accf --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/localize/index.js @@ -0,0 +1,154 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ab. J.C.', 'apr. J.C.'], + abbreviated: ['ab. J.C.', 'apr. J.C.'], + wide: ['abans Jèsus-Crist', 'après Jèsus-Crist'] +}; +var quarterValues = { + narrow: ['T1', 'T2', 'T3', 'T4'], + abbreviated: ['1èr trim.', '2nd trim.', '3en trim.', '4en trim.'], + wide: ['1èr trimèstre', '2nd trimèstre', '3en trimèstre', '4en trimèstre'] +}; +var monthValues = { + narrow: ['GN', 'FB', 'MÇ', 'AB', 'MA', 'JN', 'JL', 'AG', 'ST', 'OC', 'NV', 'DC'], + abbreviated: ['gen.', 'febr.', 'març', 'abr.', 'mai', 'junh', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'dec.'], + wide: ['genièr', 'febrièr', 'març', 'abril', 'mai', 'junh', 'julhet', 'agost', 'setembre', 'octòbre', 'novembre', 'decembre'] +}; +var dayValues = { + narrow: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + short: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + abbreviated: ['dg.', 'dl.', 'dm.', 'dc.', 'dj.', 'dv.', 'ds.'], + wide: ['dimenge', 'diluns', 'dimars', 'dimècres', 'dijòus', 'divendres', 'dissabte'] +}; +var dayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + abbreviated: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'matin', + afternoon: 'aprèp-miègjorn', + evening: 'vèspre', + night: 'nuèch' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + }, + wide: { + am: 'ante meridiem', + pm: 'post meridiem', + midnight: 'mièjanuèch', + noon: 'miègjorn', + morning: 'del matin', + afternoon: 'de l’aprèp-miègjorn', + evening: 'del ser', + night: 'de la nuèch' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var ordinal; + + switch (number) { + case 1: + ordinal = 'èr'; + break; + + case 2: + ordinal = 'nd'; + break; + + default: + ordinal = 'en'; + } // feminine for year, week, hour, minute, second + + + if (unit === 'year' || unit === 'week' || unit === 'hour' || unit === 'minute' || unit === 'second') { + ordinal += 'a'; + } + + return number + ordinal; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/_lib/match/index.js b/node_modules/date-fns/locale/oc/_lib/match/index.js new file mode 100644 index 00000000..08ea9d51 --- /dev/null +++ b/node_modules/date-fns/locale/oc/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(èr|nd|en)?[a]?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i, + abbreviated: /^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i, + wide: /^(abans Jèsus-Crist|après Jèsus-Crist)/i +}; +var parseEraPatterns = { + any: [/^ab/i, /^ap/i] +}; +var matchQuarterPatterns = { + narrow: /^T[1234]/i, + abbreviated: /^[1234](èr|nd|en)? trim\.?/i, + wide: /^[1234](èr|nd|en)? trimèstre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i, + abbreviated: /^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i, + wide: /^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i +}; +var parseMonthPatterns = { + any: [/^g/i, /^f/i, /^ma[r?]|MÇ/i, /^ab/i, /^ma[i?]/i, /^ju[n?]|JN/i, /^ju[l?]|JL/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^d[glmcjvs]\.?/i, + short: /^d[glmcjvs]\.?/i, + abbreviated: /^d[glmcjvs]\.?/i, + wide: /^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i +}; +var parseDayPatterns = { + narrow: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + short: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + abbreviated: [/^dg/i, /^dl/i, /^dm/i, /^dc/i, /^dj/i, /^dv/i, /^ds/i], + any: [/^dg|dime/i, /^dl|dil/i, /^dm|dima/i, /^dc|dimè/i, /^dj|dij/i, /^dv|div/i, /^ds|dis/i] +}; +var matchDayPeriodPatterns = { + any: /(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /(^a)|ante meridiem/i, + pm: /(^p)|post meridiem/i, + midnight: /^mièj/i, + noon: /^mièg/i, + morning: /matin/i, + afternoon: /aprèp-miègjorn/i, + evening: /vèspre|ser/i, + night: /nuèch/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/index.d.ts b/node_modules/date-fns/locale/oc/index.d.ts new file mode 100644 index 00000000..39cb51b3 --- /dev/null +++ b/node_modules/date-fns/locale/oc/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { oc } from 'date-fns/locale' +export default oc diff --git a/node_modules/date-fns/locale/oc/index.js b/node_modules/date-fns/locale/oc/index.js new file mode 100644 index 00000000..1bf61536 --- /dev/null +++ b/node_modules/date-fns/locale/oc/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Occitan locale. + * @language Occitan + * @iso-639-2 oci + * @author Quentin PAGÈS + */ +var locale = { + code: 'oc', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/oc/index.js.flow b/node_modules/date-fns/locale/oc/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/oc/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/oc/package.json b/node_modules/date-fns/locale/oc/package.json new file mode 100644 index 00000000..cf6f0a00 --- /dev/null +++ b/node_modules/date-fns/locale/oc/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/oc/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/package.json b/node_modules/date-fns/locale/package.json new file mode 100644 index 00000000..bba07799 --- /dev/null +++ b/node_modules/date-fns/locale/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/locale/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/pl/_lib/formatDistance/index.js new file mode 100644 index 00000000..192847db --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatDistance/index.js @@ -0,0 +1,160 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + regular: 'mniej niż sekunda', + past: 'mniej niż sekundę', + future: 'mniej niż sekundę' + }, + twoFour: 'mniej niż {{count}} sekundy', + other: 'mniej niż {{count}} sekund' + }, + xSeconds: { + one: { + regular: 'sekunda', + past: 'sekundę', + future: 'sekundę' + }, + twoFour: '{{count}} sekundy', + other: '{{count}} sekund' + }, + halfAMinute: { + one: 'pół minuty', + twoFour: 'pół minuty', + other: 'pół minuty' + }, + lessThanXMinutes: { + one: { + regular: 'mniej niż minuta', + past: 'mniej niż minutę', + future: 'mniej niż minutę' + }, + twoFour: 'mniej niż {{count}} minuty', + other: 'mniej niż {{count}} minut' + }, + xMinutes: { + one: { + regular: 'minuta', + past: 'minutę', + future: 'minutę' + }, + twoFour: '{{count}} minuty', + other: '{{count}} minut' + }, + aboutXHours: { + one: { + regular: 'około godziny', + past: 'około godziny', + future: 'około godzinę' + }, + twoFour: 'około {{count}} godziny', + other: 'około {{count}} godzin' + }, + xHours: { + one: { + regular: 'godzina', + past: 'godzinę', + future: 'godzinę' + }, + twoFour: '{{count}} godziny', + other: '{{count}} godzin' + }, + xDays: { + one: { + regular: 'dzień', + past: 'dzień', + future: '1 dzień' + }, + twoFour: '{{count}} dni', + other: '{{count}} dni' + }, + aboutXWeeks: { + one: 'około tygodnia', + twoFour: 'około {{count}} tygodni', + other: 'około {{count}} tygodni' + }, + xWeeks: { + one: 'tydzień', + twoFour: '{{count}} tygodnie', + other: '{{count}} tygodni' + }, + aboutXMonths: { + one: 'około miesiąc', + twoFour: 'około {{count}} miesiące', + other: 'około {{count}} miesięcy' + }, + xMonths: { + one: 'miesiąc', + twoFour: '{{count}} miesiące', + other: '{{count}} miesięcy' + }, + aboutXYears: { + one: 'około rok', + twoFour: 'około {{count}} lata', + other: 'około {{count}} lat' + }, + xYears: { + one: 'rok', + twoFour: '{{count}} lata', + other: '{{count}} lat' + }, + overXYears: { + one: 'ponad rok', + twoFour: 'ponad {{count}} lata', + other: 'ponad {{count}} lat' + }, + almostXYears: { + one: 'prawie rok', + twoFour: 'prawie {{count}} lata', + other: 'prawie {{count}} lat' + } +}; + +function declensionGroup(scheme, count) { + if (count === 1) { + return scheme.one; + } + + var rem100 = count % 100; // ends with 11-20 + + if (rem100 <= 20 && rem100 > 10) { + return scheme.other; + } + + var rem10 = rem100 % 10; // ends with 2, 3, 4 + + if (rem10 >= 2 && rem10 <= 4) { + return scheme.twoFour; + } + + return scheme.other; +} + +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + var finalText = typeof group === 'string' ? group : group[time]; + return finalText.replace('{{count}}', String(count)); +} + +var formatDistance = function formatDistance(token, count, options) { + var scheme = formatDistanceLocale[token]; + + if (!(options !== null && options !== void 0 && options.addSuffix)) { + return declension(scheme, count, 'regular'); + } + + if (options.comparison && options.comparison > 0) { + return 'za ' + declension(scheme, count, 'future'); + } else { + return declension(scheme, count, 'past') + ' temu'; + } +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/_lib/formatLong/index.js b/node_modules/date-fns/locale/pl/_lib/formatLong/index.js new file mode 100644 index 00000000..efe20690 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM y', + long: 'do MMMM y', + medium: 'do MMM y', + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/_lib/formatRelative/index.js b/node_modules/date-fns/locale/pl/_lib/formatRelative/index.js new file mode 100644 index 00000000..ccf264fc --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/formatRelative/index.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var adjectivesLastWeek = { + masculine: 'ostatni', + feminine: 'ostatnia' +}; +var adjectivesThisWeek = { + masculine: 'ten', + feminine: 'ta' +}; +var adjectivesNextWeek = { + masculine: 'następny', + feminine: 'następna' +}; +var dayGrammaticalGender = { + 0: 'feminine', + 1: 'masculine', + 2: 'masculine', + 3: 'feminine', + 4: 'masculine', + 5: 'masculine', + 6: 'feminine' +}; + +function dayAndTimeWithAdjective(token, date, baseDate, options) { + var adjectives; + + if ((0, _index.default)(date, baseDate, options)) { + adjectives = adjectivesThisWeek; + } else if (token === 'lastWeek') { + adjectives = adjectivesLastWeek; + } else if (token === 'nextWeek') { + adjectives = adjectivesNextWeek; + } else { + throw new Error("Cannot determine adjectives for token ".concat(token)); + } + + var day = date.getUTCDay(); + var grammaticalGender = dayGrammaticalGender[day]; + var adjective = adjectives[grammaticalGender]; + return "'".concat(adjective, "' eeee 'o' p"); +} + +var formatRelativeLocale = { + lastWeek: dayAndTimeWithAdjective, + yesterday: "'wczoraj o' p", + today: "'dzisiaj o' p", + tomorrow: "'jutro o' p", + nextWeek: dayAndTimeWithAdjective, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(token, date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/_lib/localize/index.js b/node_modules/date-fns/locale/pl/_lib/localize/index.js new file mode 100644 index 00000000..9d415e25 --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/localize/index.js @@ -0,0 +1,147 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['p.n.e.', 'n.e.'], + abbreviated: ['p.n.e.', 'n.e.'], + wide: ['przed naszą erą', 'naszej ery'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['I kw.', 'II kw.', 'III kw.', 'IV kw.'], + wide: ['I kwartał', 'II kwartał', 'III kwartał', 'IV kwartał'] +}; +var monthValues = { + narrow: ['S', 'L', 'M', 'K', 'M', 'C', 'L', 'S', 'W', 'P', 'L', 'G'], + abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], + wide: ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'] +}; +var monthFormattingValues = { + narrow: ['s', 'l', 'm', 'k', 'm', 'c', 'l', 's', 'w', 'p', 'l', 'g'], + abbreviated: ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'], + wide: ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'września', 'października', 'listopada', 'grudnia'] +}; +var dayValues = { + narrow: ['N', 'P', 'W', 'Ś', 'C', 'P', 'S'], + short: ['nie', 'pon', 'wto', 'śro', 'czw', 'pią', 'sob'], + abbreviated: ['niedz.', 'pon.', 'wt.', 'śr.', 'czw.', 'pt.', 'sob.'], + wide: ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'] +}; +var dayFormattingValues = { + narrow: ['n', 'p', 'w', 'ś', 'c', 'p', 's'], + short: ['nie', 'pon', 'wto', 'śro', 'czw', 'pią', 'sob'], + abbreviated: ['niedz.', 'pon.', 'wt.', 'śr.', 'czw.', 'pt.', 'sob.'], + wide: ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'półn.', + noon: 'poł', + morning: 'rano', + afternoon: 'popoł.', + evening: 'wiecz.', + night: 'noc' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'północ', + noon: 'południe', + morning: 'rano', + afternoon: 'popołudnie', + evening: 'wieczór', + night: 'noc' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'północ', + noon: 'południe', + morning: 'rano', + afternoon: 'popołudnie', + evening: 'wieczór', + night: 'noc' + } +}; +var dayPeriodFormattingValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'o półn.', + noon: 'w poł.', + morning: 'rano', + afternoon: 'po poł.', + evening: 'wiecz.', + night: 'w nocy' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'o północy', + noon: 'w południe', + morning: 'rano', + afternoon: 'po południu', + evening: 'wieczorem', + night: 'w nocy' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'o północy', + noon: 'w południe', + morning: 'rano', + afternoon: 'po południu', + evening: 'wieczorem', + night: 'w nocy' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: monthFormattingValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide', + formattingValues: dayFormattingValues, + defaultFormattingWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: dayPeriodFormattingValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/_lib/match/index.js b/node_modules/date-fns/locale/pl/_lib/match/index.js new file mode 100644 index 00000000..f68795de --- /dev/null +++ b/node_modules/date-fns/locale/pl/_lib/match/index.js @@ -0,0 +1,123 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + abbreviated: /^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i, + wide: /^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i +}; +var parseEraPatterns = { + any: [/^p/i, /^n/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^(I|II|III|IV)\s*kw\.?/i, + wide: /^(I|II|III|IV)\s*kwarta(ł|l)/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/^I kw/i, /^II kw/i, /^III kw/i, /^IV kw/i] +}; +var matchMonthPatterns = { + narrow: /^[slmkcwpg]/i, + abbreviated: /^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i, + wide: /^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i +}; +var parseMonthPatterns = { + narrow: [/^s/i, /^l/i, /^m/i, /^k/i, /^m/i, /^c/i, /^l/i, /^s/i, /^w/i, /^p/i, /^l/i, /^g/i], + any: [/^st/i, /^lu/i, /^mar/i, /^k/i, /^maj/i, /^c/i, /^lip/i, /^si/i, /^w/i, /^p/i, /^lis/i, /^g/i] +}; +var matchDayPatterns = { + narrow: /^[npwścs]/i, + short: /^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i, + abbreviated: /^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i, + wide: /^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^w/i, /^ś/i, /^c/i, /^p/i, /^s/i], + abbreviated: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pt/i, /^so/i], + any: [/^n/i, /^po/i, /^w/i, /^(ś|s)r/i, /^c/i, /^pi/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i, + any: /^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^a$/i, + pm: /^p$/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + }, + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /pó(ł|l)n/i, + noon: /po(ł|l)/i, + morning: /rano/i, + afternoon: /po\s*po(ł|l)/i, + evening: /wiecz/i, + night: /noc/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/index.d.ts b/node_modules/date-fns/locale/pl/index.d.ts new file mode 100644 index 00000000..1ff8b7d5 --- /dev/null +++ b/node_modules/date-fns/locale/pl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { pl } from 'date-fns/locale' +export default pl diff --git a/node_modules/date-fns/locale/pl/index.js b/node_modules/date-fns/locale/pl/index.js new file mode 100644 index 00000000..cd6b78a7 --- /dev/null +++ b/node_modules/date-fns/locale/pl/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Polish locale. + * @language Polish + * @iso-639-2 pol + * @author Mateusz Derks [@ertrzyiks]{@link https://github.com/ertrzyiks} + * @author Just RAG [@justrag]{@link https://github.com/justrag} + * @author Mikolaj Grzyb [@mikolajgrzyb]{@link https://github.com/mikolajgrzyb} + * @author Mateusz Tokarski [@mutisz]{@link https://github.com/mutisz} + */ +var locale = { + code: 'pl', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pl/index.js.flow b/node_modules/date-fns/locale/pl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/pl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/pl/package.json b/node_modules/date-fns/locale/pl/package.json new file mode 100644 index 00000000..c9daa257 --- /dev/null +++ b/node_modules/date-fns/locale/pl/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/pl/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatDistance/index.js b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance/index.js new file mode 100644 index 00000000..6c6505cf --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de um segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'meio minuto', + lessThanXMinutes: { + one: 'menos de um minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'cerca de 1 hora', + other: 'cerca de {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 dia', + other: '{{count}} dias' + }, + aboutXWeeks: { + one: 'cerca de 1 semana', + other: 'cerca de {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'cerca de 1 mês', + other: 'cerca de {{count}} meses' + }, + xMonths: { + one: '1 mês', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'cerca de 1 ano', + other: 'cerca de {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'mais de 1 ano', + other: 'mais de {{count}} anos' + }, + almostXYears: { + one: 'quase 1 ano', + other: 'quase {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'em ' + result; + } else { + return 'há ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatLong/index.js b/node_modules/date-fns/locale/pt-BR/_lib/formatLong/index.js new file mode 100644 index 00000000..b8ce72c6 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/_lib/formatRelative/index.js b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative/index.js new file mode 100644 index 00000000..d8caebfa --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getUTCDay(); + var last = weekday === 0 || weekday === 6 ? 'último' : 'última'; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/_lib/localize/index.js b/node_modules/date-fns/locale/pt-BR/_lib/localize/index.js new file mode 100644 index 00000000..43f47cf8 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/localize/index.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['AC', 'DC'], + abbreviated: ['AC', 'DC'], + wide: ['antes de cristo', 'depois de cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], + wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] +}; +var dayValues = { + narrow: ['D', 'S', 'T', 'Q', 'Q', 'S', 'S'], + short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sab'], + abbreviated: ['domingo', 'segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sábado'], + wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'tarde', + night: 'noite' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'md', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da tarde', + night: 'da noite' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + if ((options === null || options === void 0 ? void 0 : options.unit) === 'week') { + return number + 'ª'; + } + + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/_lib/match/index.js b/node_modules/date-fns/locale/pt-BR/_lib/match/index.js new file mode 100644 index 00000000..bafa5d16 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/_lib/match/index.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)[ºªo]?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i, + wide: /^(antes de cristo|depois de cristo)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^antes de cristo/i, /^depois de cristo/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmajsond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^fev/i, /^mar/i, /^abr/i, /^mai/i, /^jun/i, /^jul/i, /^ago/i, /^set/i, /^out/i, /^nov/i, /^dez/i] +}; +var matchDayPatterns = { + narrow: /^(dom|[23456]ª?|s[aá]b)/i, + short: /^(dom|[23456]ª?|s[aá]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i, + wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i +}; +var parseDayPatterns = { + short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i, + any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn|^meia[-\s]noite/i, + noon: /^md|^meio[-\s]dia/i, + morning: /manhã/i, + afternoon: /tarde/i, + evening: /tarde/i, + night: /noite/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/index.d.ts b/node_modules/date-fns/locale/pt-BR/index.d.ts new file mode 100644 index 00000000..e50a0b16 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ptBR } from 'date-fns/locale' +export default ptBR diff --git a/node_modules/date-fns/locale/pt-BR/index.js b/node_modules/date-fns/locale/pt-BR/index.js new file mode 100644 index 00000000..dbd735f2 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Portuguese locale (Brazil). + * @language Portuguese + * @iso-639-2 por + * @author Lucas Duailibe [@duailibe]{@link https://github.com/duailibe} + * @author Yago Carballo [@yagocarballo]{@link https://github.com/YagoCarballo} + */ +var locale = { + code: 'pt-BR', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt-BR/index.js.flow b/node_modules/date-fns/locale/pt-BR/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/pt-BR/package.json b/node_modules/date-fns/locale/pt-BR/package.json new file mode 100644 index 00000000..1f6609db --- /dev/null +++ b/node_modules/date-fns/locale/pt-BR/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/pt-BR/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/_lib/formatDistance/index.js b/node_modules/date-fns/locale/pt/_lib/formatDistance/index.js new file mode 100644 index 00000000..7a868180 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'menos de um segundo', + other: 'menos de {{count}} segundos' + }, + xSeconds: { + one: '1 segundo', + other: '{{count}} segundos' + }, + halfAMinute: 'meio minuto', + lessThanXMinutes: { + one: 'menos de um minuto', + other: 'menos de {{count}} minutos' + }, + xMinutes: { + one: '1 minuto', + other: '{{count}} minutos' + }, + aboutXHours: { + one: 'aproximadamente 1 hora', + other: 'aproximadamente {{count}} horas' + }, + xHours: { + one: '1 hora', + other: '{{count}} horas' + }, + xDays: { + one: '1 dia', + other: '{{count}} dias' + }, + aboutXWeeks: { + one: 'aproximadamente 1 semana', + other: 'aproximadamente {{count}} semanas' + }, + xWeeks: { + one: '1 semana', + other: '{{count}} semanas' + }, + aboutXMonths: { + one: 'aproximadamente 1 mês', + other: 'aproximadamente {{count}} meses' + }, + xMonths: { + one: '1 mês', + other: '{{count}} meses' + }, + aboutXYears: { + one: 'aproximadamente 1 ano', + other: 'aproximadamente {{count}} anos' + }, + xYears: { + one: '1 ano', + other: '{{count}} anos' + }, + overXYears: { + one: 'mais de 1 ano', + other: 'mais de {{count}} anos' + }, + almostXYears: { + one: 'quase 1 ano', + other: 'quase {{count}} anos' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'daqui a ' + result; + } else { + return 'há ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/_lib/formatLong/index.js b/node_modules/date-fns/locale/pt/_lib/formatLong/index.js new file mode 100644 index 00000000..f468f696 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d 'de' MMMM 'de' y", + long: "d 'de' MMMM 'de' y", + medium: "d 'de' MMM 'de' y", + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'às' {{time}}", + long: "{{date}} 'às' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/_lib/formatRelative/index.js b/node_modules/date-fns/locale/pt/_lib/formatRelative/index.js new file mode 100644 index 00000000..d8caebfa --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/formatRelative/index.js @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var weekday = date.getUTCDay(); + var last = weekday === 0 || weekday === 6 ? 'último' : 'última'; + return "'" + last + "' eeee 'às' p"; + }, + yesterday: "'ontem às' p", + today: "'hoje às' p", + tomorrow: "'amanhã às' p", + nextWeek: "eeee 'às' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/_lib/localize/index.js b/node_modules/date-fns/locale/pt/_lib/localize/index.js new file mode 100644 index 00000000..487e7e1b --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['aC', 'dC'], + abbreviated: ['a.C.', 'd.C.'], + wide: ['antes de Cristo', 'depois de Cristo'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['1º trimestre', '2º trimestre', '3º trimestre', '4º trimestre'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'], + wide: ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] +}; +var dayValues = { + narrow: ['d', 's', 't', 'q', 'q', 's', 's'], + short: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], + abbreviated: ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'], + wide: ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'] +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'manhã', + afternoon: 'tarde', + evening: 'noite', + night: 'madrugada' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'meia-noite', + noon: 'meio-dia', + morning: 'da manhã', + afternoon: 'da tarde', + evening: 'da noite', + night: 'da madrugada' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'º'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/_lib/match/index.js b/node_modules/date-fns/locale/pt/_lib/match/index.js new file mode 100644 index 00000000..aed156c2 --- /dev/null +++ b/node_modules/date-fns/locale/pt/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(º|ª)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ac|dc|a|d)/i, + abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i, + wide: /^(antes de cristo|antes da era comum|depois de cristo|era comum)/i +}; +var parseEraPatterns = { + any: [/^ac/i, /^dc/i], + wide: [/^(antes de cristo|antes da era comum)/i, /^(depois de cristo|era comum)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^[1234](º|ª)? trimestre/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i, + wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ab/i, /^mai/i, /^jun/i, /^jul/i, /^ag/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dstq]/i, + short: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + abbreviated: /^(dom|seg|ter|qua|qui|sex|s[áa]b)/i, + wide: /^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^s/i, /^t/i, /^q/i, /^q/i, /^s/i, /^s/i], + any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[áa]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i, + any: /^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^meia/i, + noon: /^meio/i, + morning: /manh[ãa]/i, + afternoon: /tarde/i, + evening: /noite/i, + night: /madrugada/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/index.d.ts b/node_modules/date-fns/locale/pt/index.d.ts new file mode 100644 index 00000000..b848c913 --- /dev/null +++ b/node_modules/date-fns/locale/pt/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { pt } from 'date-fns/locale' +export default pt diff --git a/node_modules/date-fns/locale/pt/index.js b/node_modules/date-fns/locale/pt/index.js new file mode 100644 index 00000000..e403b032 --- /dev/null +++ b/node_modules/date-fns/locale/pt/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Portuguese locale. + * @language Portuguese + * @iso-639-2 por + * @author Dário Freire [@dfreire]{@link https://github.com/dfreire} + * @author Adrián de la Rosa [@adrm]{@link https://github.com/adrm} + */ +var locale = { + code: 'pt', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/pt/index.js.flow b/node_modules/date-fns/locale/pt/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/pt/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/pt/package.json b/node_modules/date-fns/locale/pt/package.json new file mode 100644 index 00000000..b266f480 --- /dev/null +++ b/node_modules/date-fns/locale/pt/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/pt/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ro/_lib/formatDistance/index.js new file mode 100644 index 00000000..b01fe15f --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mai puțin de o secundă', + other: 'mai puțin de {{count}} secunde' + }, + xSeconds: { + one: '1 secundă', + other: '{{count}} secunde' + }, + halfAMinute: 'jumătate de minut', + lessThanXMinutes: { + one: 'mai puțin de un minut', + other: 'mai puțin de {{count}} minute' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minute' + }, + aboutXHours: { + one: 'circa 1 oră', + other: 'circa {{count}} ore' + }, + xHours: { + one: '1 oră', + other: '{{count}} ore' + }, + xDays: { + one: '1 zi', + other: '{{count}} zile' + }, + aboutXWeeks: { + one: 'circa o săptămână', + other: 'circa {{count}} săptămâni' + }, + xWeeks: { + one: '1 săptămână', + other: '{{count}} săptămâni' + }, + aboutXMonths: { + one: 'circa 1 lună', + other: 'circa {{count}} luni' + }, + xMonths: { + one: '1 lună', + other: '{{count}} luni' + }, + aboutXYears: { + one: 'circa 1 an', + other: 'circa {{count}} ani' + }, + xYears: { + one: '1 an', + other: '{{count}} ani' + }, + overXYears: { + one: 'peste 1 an', + other: 'peste {{count}} ani' + }, + almostXYears: { + one: 'aproape 1 an', + other: 'aproape {{count}} ani' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'în ' + result; + } else { + return result + ' în urmă'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/_lib/formatLong/index.js b/node_modules/date-fns/locale/ro/_lib/formatLong/index.js new file mode 100644 index 00000000..fd2bacd1 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d MMMM yyyy', + long: 'd MMMM yyyy', + medium: 'd MMM yyyy', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'la' {{time}}", + long: "{{date}} 'la' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ro/_lib/formatRelative/index.js new file mode 100644 index 00000000..1cfd8c66 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'trecută la' p", + yesterday: "'ieri la' p", + today: "'astăzi la' p", + tomorrow: "'mâine la' p", + nextWeek: "eeee 'viitoare la' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/_lib/localize/index.js b/node_modules/date-fns/locale/ro/_lib/localize/index.js new file mode 100644 index 00000000..6ccf1e26 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['Î', 'D'], + abbreviated: ['Î.d.C.', 'D.C.'], + wide: ['Înainte de Cristos', 'După Cristos'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['T1', 'T2', 'T3', 'T4'], + wide: ['primul trimestru', 'al doilea trimestru', 'al treilea trimestru', 'al patrulea trimestru'] +}; +var monthValues = { + narrow: ['I', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['ian', 'feb', 'mar', 'apr', 'mai', 'iun', 'iul', 'aug', 'sep', 'oct', 'noi', 'dec'], + wide: ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'] +}; +var dayValues = { + narrow: ['d', 'l', 'm', 'm', 'j', 'v', 's'], + short: ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'], + abbreviated: ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'], + wide: ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'ami', + morning: 'dim', + afternoon: 'da', + evening: 's', + night: 'n' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'mn', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'miezul nopții', + noon: 'amiază', + morning: 'dimineață', + afternoon: 'după-amiază', + evening: 'seară', + night: 'noapte' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/_lib/match/index.js b/node_modules/date-fns/locale/ro/_lib/match/index.js new file mode 100644 index 00000000..6c8ebaf7 --- /dev/null +++ b/node_modules/date-fns/locale/ro/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(Î|D)/i, + abbreviated: /^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i, + wide: /^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i +}; +var parseEraPatterns = { + any: [/^ÎC/i, /^DC/i], + wide: [/^(Înainte de Cristos|Înaintea erei noastre)/i, /^(După Cristos|Era noastră)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^T[1234]/i, + wide: /^trimestrul [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[ifmaasond]/i, + abbreviated: /^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i, + wide: /^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i +}; +var parseMonthPatterns = { + narrow: [/^i/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ia/i, /^f/i, /^mar/i, /^ap/i, /^mai/i, /^iun/i, /^iul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dlmjvs]/i, + short: /^(d|l|ma|mi|j|v|s)/i, + abbreviated: /^(dum|lun|mar|mie|jo|vi|sâ)/i, + wide: /^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i], + any: [/^d/i, /^l/i, /^ma/i, /^mi/i, /^j/i, /^v/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i, + any: /^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^mn/i, + noon: /amiaza/i, + morning: /dimineaţa/i, + afternoon: /după-amiaza/i, + evening: /seara/i, + night: /noaptea/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/index.d.ts b/node_modules/date-fns/locale/ro/index.d.ts new file mode 100644 index 00000000..c19fdecb --- /dev/null +++ b/node_modules/date-fns/locale/ro/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ro } from 'date-fns/locale' +export default ro diff --git a/node_modules/date-fns/locale/ro/index.js b/node_modules/date-fns/locale/ro/index.js new file mode 100644 index 00000000..87bf6010 --- /dev/null +++ b/node_modules/date-fns/locale/ro/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Romanian locale. + * @language Romanian + * @iso-639-2 ron + * @author Sergiu Munteanu [@jsergiu]{@link https://github.com/jsergiu} + * @author Adrian Ocneanu [@aocneanu]{@link https://github.com/aocneanu} + * @author Mihai Ocneanu [@gandesc]{@link https://github.com/gandesc} + */ +var locale = { + code: 'ro', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ro/index.js.flow b/node_modules/date-fns/locale/ro/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ro/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ro/package.json b/node_modules/date-fns/locale/ro/package.json new file mode 100644 index 00000000..3816f1a3 --- /dev/null +++ b/node_modules/date-fns/locale/ro/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ro/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ru/_lib/formatDistance/index.js new file mode 100644 index 00000000..a576af73 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatDistance/index.js @@ -0,0 +1,237 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'через ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' назад'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'меньше секунды', + singularNominative: 'меньше {{count}} секунды', + singularGenitive: 'меньше {{count}} секунд', + pluralGenitive: 'меньше {{count}} секунд' + }, + future: { + one: 'меньше, чем через секунду', + singularNominative: 'меньше, чем через {{count}} секунду', + singularGenitive: 'меньше, чем через {{count}} секунды', + pluralGenitive: 'меньше, чем через {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунды', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду назад', + singularGenitive: '{{count}} секунды назад', + pluralGenitive: '{{count}} секунд назад' + }, + future: { + singularNominative: 'через {{count}} секунду', + singularGenitive: 'через {{count}} секунды', + pluralGenitive: 'через {{count}} секунд' + } + }), + halfAMinute: function halfAMinute(_count, options) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'через полминуты'; + } else { + return 'полминуты назад'; + } + } + + return 'полминуты'; + }, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'меньше минуты', + singularNominative: 'меньше {{count}} минуты', + singularGenitive: 'меньше {{count}} минут', + pluralGenitive: 'меньше {{count}} минут' + }, + future: { + one: 'меньше, чем через минуту', + singularNominative: 'меньше, чем через {{count}} минуту', + singularGenitive: 'меньше, чем через {{count}} минуты', + pluralGenitive: 'меньше, чем через {{count}} минут' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} минута', + singularGenitive: '{{count}} минуты', + pluralGenitive: '{{count}} минут' + }, + past: { + singularNominative: '{{count}} минуту назад', + singularGenitive: '{{count}} минуты назад', + pluralGenitive: '{{count}} минут назад' + }, + future: { + singularNominative: 'через {{count}} минуту', + singularGenitive: 'через {{count}} минуты', + pluralGenitive: 'через {{count}} минут' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} часа', + singularGenitive: 'около {{count}} часов', + pluralGenitive: 'около {{count}} часов' + }, + future: { + singularNominative: 'приблизительно через {{count}} час', + singularGenitive: 'приблизительно через {{count}} часа', + pluralGenitive: 'приблизительно через {{count}} часов' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} час', + singularGenitive: '{{count}} часа', + pluralGenitive: '{{count}} часов' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} день', + singularGenitive: '{{count}} дня', + pluralGenitive: '{{count}} дней' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} недели', + singularGenitive: 'около {{count}} недель', + pluralGenitive: 'около {{count}} недель' + }, + future: { + singularNominative: 'приблизительно через {{count}} неделю', + singularGenitive: 'приблизительно через {{count}} недели', + pluralGenitive: 'приблизительно через {{count}} недель' + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} неделя', + singularGenitive: '{{count}} недели', + pluralGenitive: '{{count}} недель' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} месяца', + singularGenitive: 'около {{count}} месяцев', + pluralGenitive: 'около {{count}} месяцев' + }, + future: { + singularNominative: 'приблизительно через {{count}} месяц', + singularGenitive: 'приблизительно через {{count}} месяца', + pluralGenitive: 'приблизительно через {{count}} месяцев' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} месяц', + singularGenitive: '{{count}} месяца', + pluralGenitive: '{{count}} месяцев' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'около {{count}} года', + singularGenitive: 'около {{count}} лет', + pluralGenitive: 'около {{count}} лет' + }, + future: { + singularNominative: 'приблизительно через {{count}} год', + singularGenitive: 'приблизительно через {{count}} года', + pluralGenitive: 'приблизительно через {{count}} лет' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} год', + singularGenitive: '{{count}} года', + pluralGenitive: '{{count}} лет' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'больше {{count}} года', + singularGenitive: 'больше {{count}} лет', + pluralGenitive: 'больше {{count}} лет' + }, + future: { + singularNominative: 'больше, чем через {{count}} год', + singularGenitive: 'больше, чем через {{count}} года', + pluralGenitive: 'больше, чем через {{count}} лет' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'почти {{count}} год', + singularGenitive: 'почти {{count}} года', + pluralGenitive: 'почти {{count}} лет' + }, + future: { + singularNominative: 'почти через {{count}} год', + singularGenitive: 'почти через {{count}} года', + pluralGenitive: 'почти через {{count}} лет' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + return formatDistanceLocale[token](count, options); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/_lib/formatLong/index.js b/node_modules/date-fns/locale/ru/_lib/formatLong/index.js new file mode 100644 index 00000000..7efed944 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, d MMMM y 'г.'", + long: "d MMMM y 'г.'", + medium: "d MMM y 'г.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ru/_lib/formatRelative/index.js new file mode 100644 index 00000000..7daf5c47 --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/formatRelative/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var accusativeWeekdays = ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в прошлое " + weekday + " в' p"; + + case 1: + case 2: + case 4: + return "'в прошлый " + weekday + " в' p"; + + case 3: + case 5: + case 6: + return "'в прошлую " + weekday + " в' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + + if (day === 2 + /* Tue */ + ) { + return "'во " + weekday + " в' p"; + } else { + return "'в " + weekday + " в' p"; + } +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + return "'в следующее " + weekday + " в' p"; + + case 1: + case 2: + case 4: + return "'в следующий " + weekday + " в' p"; + + case 3: + case 5: + case 6: + return "'в следующую " + weekday + " в' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'вчера в' p", + today: "'сегодня в' p", + tomorrow: "'завтра в' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/_lib/localize/index.js b/node_modules/date-fns/locale/ru/_lib/localize/index.js new file mode 100644 index 00000000..66e2850e --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/localize/index.js @@ -0,0 +1,151 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['до н.э.', 'н.э.'], + abbreviated: ['до н. э.', 'н. э.'], + wide: ['до нашей эры', 'нашей эры'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], + wide: ['1-й квартал', '2-й квартал', '3-й квартал', '4-й квартал'] +}; +var monthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'март', 'апр.', 'май', 'июнь', 'июль', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'] +}; +var formattingMonthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв.', 'фев.', 'мар.', 'апр.', 'мая', 'июн.', 'июл.', 'авг.', 'сент.', 'окт.', 'нояб.', 'дек.'], + wide: ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'] +}; +var dayValues = { + narrow: ['В', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['вск', 'пнд', 'втр', 'срд', 'чтв', 'птн', 'суб'], + wide: ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утро', + afternoon: 'день', + evening: 'веч.', + night: 'ночь' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утро', + afternoon: 'день', + evening: 'веч.', + night: 'ночь' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'полночь', + noon: 'полдень', + morning: 'утро', + afternoon: 'день', + evening: 'вечер', + night: 'ночь' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утра', + afternoon: 'дня', + evening: 'веч.', + night: 'ночи' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'полн.', + noon: 'полд.', + morning: 'утра', + afternoon: 'дня', + evening: 'веч.', + night: 'ночи' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'полночь', + noon: 'полдень', + morning: 'утра', + afternoon: 'дня', + evening: 'вечера', + night: 'ночи' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + var suffix; + + if (unit === 'date') { + suffix = '-е'; + } else if (unit === 'week' || unit === 'minute' || unit === 'second') { + suffix = '-я'; + } else { + suffix = '-й'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/_lib/match/index.js b/node_modules/date-fns/locale/ru/_lib/match/index.js new file mode 100644 index 00000000..dd87b4ee --- /dev/null +++ b/node_modules/date-fns/locale/ru/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((до )?н\.?\s?э\.?)/i, + abbreviated: /^((до )?н\.?\s?э\.?)/i, + wide: /^(до нашей эры|нашей эры|наша эра)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i, + wide: /^[1234](-?[ыои]?й?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[яфмаисонд]/i, + abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i, + wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i +}; +var parseMonthPatterns = { + narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^я/i], + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[впсч]/i, + short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i, + abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i, + wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i +}; +var parseDayPatterns = { + narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i, + wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^полн/i, + noon: /^полд/i, + morning: /^у/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/index.d.ts b/node_modules/date-fns/locale/ru/index.d.ts new file mode 100644 index 00000000..1a7f74fd --- /dev/null +++ b/node_modules/date-fns/locale/ru/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ru } from 'date-fns/locale' +export default ru diff --git a/node_modules/date-fns/locale/ru/index.js b/node_modules/date-fns/locale/ru/index.js new file mode 100644 index 00000000..5aa2ff24 --- /dev/null +++ b/node_modules/date-fns/locale/ru/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Russian locale. + * @language Russian + * @iso-639-2 rus + * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} + * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} + */ +var locale = { + code: 'ru', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ru/index.js.flow b/node_modules/date-fns/locale/ru/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ru/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ru/package.json b/node_modules/date-fns/locale/ru/package.json new file mode 100644 index 00000000..33bb4ec0 --- /dev/null +++ b/node_modules/date-fns/locale/ru/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ru/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sk/_lib/formatDistance/index.js new file mode 100644 index 00000000..3cecc4c2 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatDistance/index.js @@ -0,0 +1,213 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function declensionGroup(scheme, count) { + if (count === 1 && scheme.one) { + return scheme.one; + } + + if (count >= 2 && count <= 4 && scheme.twoFour) { + return scheme.twoFour; + } // if count === null || count === 0 || count >= 5 + + + return scheme.other; +} + +function declension(scheme, count, time) { + var group = declensionGroup(scheme, count); + var finalText = group[time]; + return finalText.replace('{{count}}', String(count)); +} + +function extractPreposition(token) { + var result = ['lessThan', 'about', 'over', 'almost'].filter(function (preposition) { + return !!token.match(new RegExp('^' + preposition)); + }); + return result[0]; +} + +function prefixPreposition(preposition) { + var translation = ''; + + if (preposition === 'almost') { + translation = 'takmer'; + } + + if (preposition === 'about') { + translation = 'približne'; + } + + return translation.length > 0 ? translation + ' ' : ''; +} + +function suffixPreposition(preposition) { + var translation = ''; + + if (preposition === 'lessThan') { + translation = 'menej než'; + } + + if (preposition === 'over') { + translation = 'viac než'; + } + + return translation.length > 0 ? translation + ' ' : ''; +} + +function lowercaseFirstLetter(string) { + return string.charAt(0).toLowerCase() + string.slice(1); +} + +var formatDistanceLocale = { + xSeconds: { + one: { + present: 'sekunda', + past: 'sekundou', + future: 'sekundu' + }, + twoFour: { + present: '{{count}} sekundy', + past: '{{count}} sekundami', + future: '{{count}} sekundy' + }, + other: { + present: '{{count}} sekúnd', + past: '{{count}} sekundami', + future: '{{count}} sekúnd' + } + }, + halfAMinute: { + other: { + present: 'pol minúty', + past: 'pol minútou', + future: 'pol minúty' + } + }, + xMinutes: { + one: { + present: 'minúta', + past: 'minútou', + future: 'minútu' + }, + twoFour: { + present: '{{count}} minúty', + past: '{{count}} minútami', + future: '{{count}} minúty' + }, + other: { + present: '{{count}} minút', + past: '{{count}} minútami', + future: '{{count}} minút' + } + }, + xHours: { + one: { + present: 'hodina', + past: 'hodinou', + future: 'hodinu' + }, + twoFour: { + present: '{{count}} hodiny', + past: '{{count}} hodinami', + future: '{{count}} hodiny' + }, + other: { + present: '{{count}} hodín', + past: '{{count}} hodinami', + future: '{{count}} hodín' + } + }, + xDays: { + one: { + present: 'deň', + past: 'dňom', + future: 'deň' + }, + twoFour: { + present: '{{count}} dni', + past: '{{count}} dňami', + future: '{{count}} dni' + }, + other: { + present: '{{count}} dní', + past: '{{count}} dňami', + future: '{{count}} dní' + } + }, + xWeeks: { + one: { + present: 'týždeň', + past: 'týždňom', + future: 'týždeň' + }, + twoFour: { + present: '{{count}} týždne', + past: '{{count}} týždňami', + future: '{{count}} týždne' + }, + other: { + present: '{{count}} týždňov', + past: '{{count}} týždňami', + future: '{{count}} týždňov' + } + }, + xMonths: { + one: { + present: 'mesiac', + past: 'mesiacom', + future: 'mesiac' + }, + twoFour: { + present: '{{count}} mesiace', + past: '{{count}} mesiacmi', + future: '{{count}} mesiace' + }, + other: { + present: '{{count}} mesiacov', + past: '{{count}} mesiacmi', + future: '{{count}} mesiacov' + } + }, + xYears: { + one: { + present: 'rok', + past: 'rokom', + future: 'rok' + }, + twoFour: { + present: '{{count}} roky', + past: '{{count}} rokmi', + future: '{{count}} roky' + }, + other: { + present: '{{count}} rokov', + past: '{{count}} rokmi', + future: '{{count}} rokov' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var preposition = extractPreposition(token) || ''; + var key = lowercaseFirstLetter(token.substring(preposition.length)); + var scheme = formatDistanceLocale[key]; + + if (!(options !== null && options !== void 0 && options.addSuffix)) { + return prefixPreposition(preposition) + suffixPreposition(preposition) + declension(scheme, count, 'present'); + } + + if (options.comparison && options.comparison > 0) { + return prefixPreposition(preposition) + 'o ' + suffixPreposition(preposition) + declension(scheme, count, 'future'); + } else { + return prefixPreposition(preposition) + 'pred ' + suffixPreposition(preposition) + declension(scheme, count, 'past'); + } +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/_lib/formatLong/index.js b/node_modules/date-fns/locale/sk/_lib/formatLong/index.js new file mode 100644 index 00000000..22fb679f --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatLong/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1986 +var dateFormats = { + full: 'EEEE d. MMMM y', + long: 'd. MMMM y', + medium: 'd. M. y', + short: 'd. M. y' +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#2149 + +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1994 + +var dateTimeFormats = { + full: '{{date}}, {{time}}', + long: '{{date}}, {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sk/_lib/formatRelative/index.js new file mode 100644 index 00000000..78d3e333 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/formatRelative/index.js @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// https://www.unicode.org/cldr/charts/32/summary/sk.html?hide#1308 +var accusativeWeekdays = ['nedeľu', 'pondelok', 'utorok', 'stredu', 'štvrtok', 'piatok', 'sobotu']; + +function _lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + /* Sun */ + + case 3: + /* Wed */ + + case 6 + /* Sat */ + : + return "'minulú " + weekday + " o' p"; + + default: + return "'minulý' eeee 'o' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + + if (day === 4 + /* Thu */ + ) { + return "'vo' eeee 'o' p"; + } else { + return "'v " + weekday + " o' p"; + } +} + +function _nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + /* Sun */ + + case 4: + /* Wed */ + + case 6 + /* Sat */ + : + return "'budúcu " + weekday + " o' p"; + + default: + return "'budúci' eeee 'o' p"; + } +} + +var formatRelativeLocale = { + lastWeek: function lastWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _lastWeek(day); + } + }, + yesterday: "'včera o' p", + today: "'dnes o' p", + tomorrow: "'zajtra o' p", + nextWeek: function nextWeek(date, baseDate, options) { + var day = date.getUTCDay(); + + if ((0, _index.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return _nextWeek(day); + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/_lib/localize/index.js b/node_modules/date-fns/locale/sk/_lib/localize/index.js new file mode 100644 index 00000000..c82bd2e1 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/localize/index.js @@ -0,0 +1,145 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// https://www.unicode.org/cldr/charts/32/summary/sk.html#1772 +var eraValues = { + narrow: ['pred Kr.', 'po Kr.'], + abbreviated: ['pred Kr.', 'po Kr.'], + wide: ['pred Kristom', 'po Kristovi'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1780 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1. štvrťrok', '2. štvrťrok', '3. štvrťrok', '4. štvrťrok'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1804 + +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], + wide: ['január', 'február', 'marec', 'apríl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december'] +}; +var formattingMonthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'], + wide: ['januára', 'februára', 'marca', 'apríla', 'mája', 'júna', 'júla', 'augusta', 'septembra', 'októbra', 'novembra', 'decembra'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1876 + +var dayValues = { + narrow: ['n', 'p', 'u', 's', 'š', 'p', 's'], + short: ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'], + abbreviated: ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'], + wide: ['nedeľa', 'pondelok', 'utorok', 'streda', 'štvrtok', 'piatok', 'sobota'] +}; // https://www.unicode.org/cldr/charts/32/summary/sk.html#1932 + +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'poln.', + noon: 'pol.', + morning: 'ráno', + afternoon: 'pop.', + evening: 'več.', + night: 'noc' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'poln.', + noon: 'pol.', + morning: 'ráno', + afternoon: 'popol.', + evening: 'večer', + night: 'noc' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'polnoc', + noon: 'poludnie', + morning: 'ráno', + afternoon: 'popoludnie', + evening: 'večer', + night: 'noc' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'o poln.', + noon: 'nap.', + morning: 'ráno', + afternoon: 'pop.', + evening: 'več.', + night: 'v n.' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'o poln.', + noon: 'napol.', + morning: 'ráno', + afternoon: 'popol.', + evening: 'večer', + night: 'v noci' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'o polnoci', + noon: 'napoludnie', + morning: 'ráno', + afternoon: 'popoludní', + evening: 'večer', + night: 'v noci' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/_lib/match/index.js b/node_modules/date-fns/locale/sk/_lib/match/index.js new file mode 100644 index 00000000..f27e4128 --- /dev/null +++ b/node_modules/date-fns/locale/sk/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\.?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + abbreviated: /^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i, + wide: /^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|n)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]\. [šs]tvr[ťt]rok/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i, + wide: /^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^m[áa]j/i, /^j[úu]n/i, /^j[úu]l/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusšp]/i, + short: /^(ne|po|ut|st|št|pi|so)/i, + abbreviated: /^(ne|po|ut|st|št|pi|so)/i, + wide: /^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^u/i, /^s/i, /^š/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^u/i, /^st/i, /^(št|stv)/i, /^pi/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i, + abbreviated: /^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i, + any: /^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^am/i, + pm: /^pm/i, + midnight: /poln/i, + noon: /^(nap|(na)?pol(\.|u))/i, + morning: /^r[áa]no/i, + afternoon: /^pop/i, + evening: /^ve[čc]/i, + night: /^(noc|v n\.)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/index.d.ts b/node_modules/date-fns/locale/sk/index.d.ts new file mode 100644 index 00000000..362dd321 --- /dev/null +++ b/node_modules/date-fns/locale/sk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sk } from 'date-fns/locale' +export default sk diff --git a/node_modules/date-fns/locale/sk/index.js b/node_modules/date-fns/locale/sk/index.js new file mode 100644 index 00000000..5b61e1d7 --- /dev/null +++ b/node_modules/date-fns/locale/sk/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Slovak locale. + * @language Slovak + * @iso-639-2 slk + * @author Marek Suscak [@mareksuscak]{@link https://github.com/mareksuscak} + */ +var locale = { + code: 'sk', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sk/index.js.flow b/node_modules/date-fns/locale/sk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sk/package.json b/node_modules/date-fns/locale/sk/package.json new file mode 100644 index 00000000..8c34807e --- /dev/null +++ b/node_modules/date-fns/locale/sk/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sk/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sl/_lib/formatDistance/index.js new file mode 100644 index 00000000..b5052de3 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatDistance/index.js @@ -0,0 +1,340 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +var formatDistanceLocale = { + lessThanXSeconds: { + present: { + one: 'manj kot {{count}} sekunda', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + }, + past: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundama', + few: 'manj kot {{count}} sekundami', + other: 'manj kot {{count}} sekundami' + }, + future: { + one: 'manj kot {{count}} sekundo', + two: 'manj kot {{count}} sekundi', + few: 'manj kot {{count}} sekunde', + other: 'manj kot {{count}} sekund' + } + }, + xSeconds: { + present: { + one: '{{count}} sekunda', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + }, + past: { + one: '{{count}} sekundo', + two: '{{count}} sekundama', + few: '{{count}} sekundami', + other: '{{count}} sekundami' + }, + future: { + one: '{{count}} sekundo', + two: '{{count}} sekundi', + few: '{{count}} sekunde', + other: '{{count}} sekund' + } + }, + halfAMinute: 'pol minute', + lessThanXMinutes: { + present: { + one: 'manj kot {{count}} minuta', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + }, + past: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minutama', + few: 'manj kot {{count}} minutami', + other: 'manj kot {{count}} minutami' + }, + future: { + one: 'manj kot {{count}} minuto', + two: 'manj kot {{count}} minuti', + few: 'manj kot {{count}} minute', + other: 'manj kot {{count}} minut' + } + }, + xMinutes: { + present: { + one: '{{count}} minuta', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + }, + past: { + one: '{{count}} minuto', + two: '{{count}} minutama', + few: '{{count}} minutami', + other: '{{count}} minutami' + }, + future: { + one: '{{count}} minuto', + two: '{{count}} minuti', + few: '{{count}} minute', + other: '{{count}} minut' + } + }, + aboutXHours: { + present: { + one: 'približno {{count}} ura', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + }, + past: { + one: 'približno {{count}} uro', + two: 'približno {{count}} urama', + few: 'približno {{count}} urami', + other: 'približno {{count}} urami' + }, + future: { + one: 'približno {{count}} uro', + two: 'približno {{count}} uri', + few: 'približno {{count}} ure', + other: 'približno {{count}} ur' + } + }, + xHours: { + present: { + one: '{{count}} ura', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + }, + past: { + one: '{{count}} uro', + two: '{{count}} urama', + few: '{{count}} urami', + other: '{{count}} urami' + }, + future: { + one: '{{count}} uro', + two: '{{count}} uri', + few: '{{count}} ure', + other: '{{count}} ur' + } + }, + xDays: { + present: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + }, + past: { + one: '{{count}} dnem', + two: '{{count}} dnevoma', + few: '{{count}} dnevi', + other: '{{count}} dnevi' + }, + future: { + one: '{{count}} dan', + two: '{{count}} dni', + few: '{{count}} dni', + other: '{{count}} dni' + } + }, + // no tenses for weeks? + aboutXWeeks: { + one: 'približno {{count}} teden', + two: 'približno {{count}} tedna', + few: 'približno {{count}} tedne', + other: 'približno {{count}} tednov' + }, + // no tenses for weeks? + xWeeks: { + one: '{{count}} teden', + two: '{{count}} tedna', + few: '{{count}} tedne', + other: '{{count}} tednov' + }, + aboutXMonths: { + present: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + }, + past: { + one: 'približno {{count}} mesecem', + two: 'približno {{count}} mesecema', + few: 'približno {{count}} meseci', + other: 'približno {{count}} meseci' + }, + future: { + one: 'približno {{count}} mesec', + two: 'približno {{count}} meseca', + few: 'približno {{count}} mesece', + other: 'približno {{count}} mesecev' + } + }, + xMonths: { + present: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} meseci', + other: '{{count}} mesecev' + }, + past: { + one: '{{count}} mesecem', + two: '{{count}} mesecema', + few: '{{count}} meseci', + other: '{{count}} meseci' + }, + future: { + one: '{{count}} mesec', + two: '{{count}} meseca', + few: '{{count}} mesece', + other: '{{count}} mesecev' + } + }, + aboutXYears: { + present: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + }, + past: { + one: 'približno {{count}} letom', + two: 'približno {{count}} letoma', + few: 'približno {{count}} leti', + other: 'približno {{count}} leti' + }, + future: { + one: 'približno {{count}} leto', + two: 'približno {{count}} leti', + few: 'približno {{count}} leta', + other: 'približno {{count}} let' + } + }, + xYears: { + present: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + }, + past: { + one: '{{count}} letom', + two: '{{count}} letoma', + few: '{{count}} leti', + other: '{{count}} leti' + }, + future: { + one: '{{count}} leto', + two: '{{count}} leti', + few: '{{count}} leta', + other: '{{count}} let' + } + }, + overXYears: { + present: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + }, + past: { + one: 'več kot {{count}} letom', + two: 'več kot {{count}} letoma', + few: 'več kot {{count}} leti', + other: 'več kot {{count}} leti' + }, + future: { + one: 'več kot {{count}} leto', + two: 'več kot {{count}} leti', + few: 'več kot {{count}} leta', + other: 'več kot {{count}} let' + } + }, + almostXYears: { + present: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + }, + past: { + one: 'skoraj {{count}} letom', + two: 'skoraj {{count}} letoma', + few: 'skoraj {{count}} leti', + other: 'skoraj {{count}} leti' + }, + future: { + one: 'skoraj {{count}} leto', + two: 'skoraj {{count}} leti', + few: 'skoraj {{count}} leta', + other: 'skoraj {{count}} let' + } + } +}; + +function getFormFromCount(count) { + switch (count % 100) { + case 1: + return 'one'; + + case 2: + return 'two'; + + case 3: + case 4: + return 'few'; + + default: + return 'other'; + } +} + +var formatDistance = function formatDistance(token, count, options) { + var result = ''; + var tense = 'present'; + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + tense = 'future'; + result = 'čez '; + } else { + tense = 'past'; + result = 'pred '; + } + } + + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result += tokenValue; + } else { + var form = getFormFromCount(count); + + if (isPluralType(tokenValue)) { + result += tokenValue[form].replace('{{count}}', String(count)); + } else { + result += tokenValue[tense][form].replace('{{count}}', String(count)); + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/_lib/formatLong/index.js b/node_modules/date-fns/locale/sl/_lib/formatLong/index.js new file mode 100644 index 00000000..6f74aafb --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, dd. MMMM y', + long: 'dd. MMMM y', + medium: 'd. MMM y', + short: 'd. MM. yy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sl/_lib/formatRelative/index.js new file mode 100644 index 00000000..43a33273 --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/formatRelative/index.js @@ -0,0 +1,60 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'prejšnjo nedeljo ob' p"; + + case 3: + return "'prejšnjo sredo ob' p"; + + case 6: + return "'prejšnjo soboto ob' p"; + + default: + return "'prejšnji' EEEE 'ob' p"; + } + }, + yesterday: "'včeraj ob' p", + today: "'danes ob' p", + tomorrow: "'jutri ob' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'naslednjo nedeljo ob' p"; + + case 3: + return "'naslednjo sredo ob' p"; + + case 6: + return "'naslednjo soboto ob' p"; + + default: + return "'naslednji' EEEE 'ob' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/_lib/localize/index.js b/node_modules/date-fns/locale/sl/_lib/localize/index.js new file mode 100644 index 00000000..c3dee46f --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['pr. n. št.', 'po n. št.'], + abbreviated: ['pr. n. št.', 'po n. št.'], + wide: ['pred našim štetjem', 'po našem štetju'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1. čet.', '2. čet.', '3. čet.', '4. čet.'], + wide: ['1. četrtletje', '2. četrtletje', '3. četrtletje', '4. četrtletje'] +}; +var monthValues = { + narrow: ['j', 'f', 'm', 'a', 'm', 'j', 'j', 'a', 's', 'o', 'n', 'd'], + abbreviated: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun.', 'jul.', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januar', 'februar', 'marec', 'april', 'maj', 'junij', 'julij', 'avgust', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['n', 'p', 't', 's', 'č', 'p', 's'], + short: ['ned.', 'pon.', 'tor.', 'sre.', 'čet.', 'pet.', 'sob.'], + abbreviated: ['ned.', 'pon.', 'tor.', 'sre.', 'čet.', 'pet.', 'sob.'], + wide: ['nedelja', 'ponedeljek', 'torek', 'sreda', 'četrtek', 'petek', 'sobota'] +}; +var dayPeriodValues = { + narrow: { + am: 'd', + pm: 'p', + midnight: '24.00', + noon: '12.00', + morning: 'j', + afternoon: 'p', + evening: 'v', + night: 'n' + }, + abbreviated: { + am: 'dop.', + pm: 'pop.', + midnight: 'poln.', + noon: 'pold.', + morning: 'jut.', + afternoon: 'pop.', + evening: 'več.', + night: 'noč' + }, + wide: { + am: 'dop.', + pm: 'pop.', + midnight: 'polnoč', + noon: 'poldne', + morning: 'jutro', + afternoon: 'popoldne', + evening: 'večer', + night: 'noč' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'd', + pm: 'p', + midnight: '24.00', + noon: '12.00', + morning: 'zj', + afternoon: 'p', + evening: 'zv', + night: 'po' + }, + abbreviated: { + am: 'dop.', + pm: 'pop.', + midnight: 'opoln.', + noon: 'opold.', + morning: 'zjut.', + afternoon: 'pop.', + evening: 'zveč.', + night: 'ponoči' + }, + wide: { + am: 'dop.', + pm: 'pop.', + midnight: 'opolnoči', + noon: 'opoldne', + morning: 'zjutraj', + afternoon: 'popoldan', + evening: 'zvečer', + night: 'ponoči' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/_lib/match/index.js b/node_modules/date-fns/locale/sl/_lib/match/index.js new file mode 100644 index 00000000..69894fdc --- /dev/null +++ b/node_modules/date-fns/locale/sl/_lib/match/index.js @@ -0,0 +1,121 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + abbreviated: /^(pr\. n\. št\.|po n\. št\.)/i, + wide: /^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|na[sš]em)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?[čc]et\.?/i, + wide: /^[1234]\. [čc]etrtletje/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i, + wide: /^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + abbreviated: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i], + wide: [/^ja/i, /^fe/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[nptsčc]/i, + short: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + abbreviated: /^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i, + wide: /^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i +}; +var parseDayPatterns = { + narrow: [/^n/i, /^p/i, /^t/i, /^s/i, /^[cč]/i, /^p/i, /^s/i], + any: [/^n/i, /^po/i, /^t/i, /^sr/i, /^[cč]/i, /^pe/i, /^so/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(d|po?|z?v|n|z?j|24\.00|12\.00)/i, + any: /^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i +}; +var parseDayPeriodPatterns = { + narrow: { + am: /^d/i, + pm: /^p/i, + midnight: /^24/i, + noon: /^12/i, + morning: /^(z?j)/i, + afternoon: /^p/i, + evening: /^(z?v)/i, + night: /^(n|po)/i + }, + any: { + am: /^dop\./i, + pm: /^pop\./i, + midnight: /^o?poln/i, + noon: /^o?pold/i, + morning: /j/i, + afternoon: /^pop\./i, + evening: /^z?ve/i, + night: /(po)?no/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/index.d.ts b/node_modules/date-fns/locale/sl/index.d.ts new file mode 100644 index 00000000..fbe964aa --- /dev/null +++ b/node_modules/date-fns/locale/sl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sl } from 'date-fns/locale' +export default sl diff --git a/node_modules/date-fns/locale/sl/index.js b/node_modules/date-fns/locale/sl/index.js new file mode 100644 index 00000000..b367b2cd --- /dev/null +++ b/node_modules/date-fns/locale/sl/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Slovenian locale. + * @language Slovenian + * @iso-639-2 slv + * @author Adam Stradovnik [@Neoglyph]{@link https://github.com/Neoglyph} + * @author Mato Žgajner [@mzgajner]{@link https://github.com/mzgajner} + */ +var locale = { + code: 'sl', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sl/index.js.flow b/node_modules/date-fns/locale/sl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sl/package.json b/node_modules/date-fns/locale/sl/package.json new file mode 100644 index 00000000..5eac24d7 --- /dev/null +++ b/node_modules/date-fns/locale/sl/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sl/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sq/_lib/formatDistance/index.js new file mode 100644 index 00000000..2f9a8607 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'më pak se një sekondë', + other: 'më pak se {{count}} sekonda' + }, + xSeconds: { + one: '1 sekondë', + other: '{{count}} sekonda' + }, + halfAMinute: 'gjysëm minuti', + lessThanXMinutes: { + one: 'më pak se një minute', + other: 'më pak se {{count}} minuta' + }, + xMinutes: { + one: '1 minutë', + other: '{{count}} minuta' + }, + aboutXHours: { + one: 'rreth 1 orë', + other: 'rreth {{count}} orë' + }, + xHours: { + one: '1 orë', + other: '{{count}} orë' + }, + xDays: { + one: '1 ditë', + other: '{{count}} ditë' + }, + aboutXWeeks: { + one: 'rreth 1 javë', + other: 'rreth {{count}} javë' + }, + xWeeks: { + one: '1 javë', + other: '{{count}} javë' + }, + aboutXMonths: { + one: 'rreth 1 muaj', + other: 'rreth {{count}} muaj' + }, + xMonths: { + one: '1 muaj', + other: '{{count}} muaj' + }, + aboutXYears: { + one: 'rreth 1 vit', + other: 'rreth {{count}} vite' + }, + xYears: { + one: '1 vit', + other: '{{count}} vite' + }, + overXYears: { + one: 'mbi 1 vit', + other: 'mbi {{count}} vite' + }, + almostXYears: { + one: 'pothuajse 1 vit', + other: 'pothuajse {{count}} vite' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'në ' + result; + } else { + return result + ' më parë'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/_lib/formatLong/index.js b/node_modules/date-fns/locale/sq/_lib/formatLong/index.js new file mode 100644 index 00000000..36a82242 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'në' {{time}}", + long: "{{date}} 'në' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sq/_lib/formatRelative/index.js new file mode 100644 index 00000000..7a3d8312 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'të' eeee 'e shkuar në' p", + yesterday: "'dje në' p", + today: "'sot në' p", + tomorrow: "'nesër në' p", + nextWeek: "eeee 'at' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/_lib/localize/index.js b/node_modules/date-fns/locale/sq/_lib/localize/index.js new file mode 100644 index 00000000..df70e057 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['P', 'M'], + abbreviated: ['PK', 'MK'], + wide: ['Para Krishtit', 'Mbas Krishtit'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['4-mujori I', '4-mujori II', '4-mujori III', '4-mujori IV'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['J', 'S', 'M', 'P', 'M', 'Q', 'K', 'G', 'S', 'T', 'N', 'D'], + abbreviated: ['Jan', 'Shk', 'Mar', 'Pri', 'Maj', 'Qer', 'Kor', 'Gus', 'Sht', 'Tet', 'Nën', 'Dhj'], + wide: ['Janar', 'Shkurt', 'Mars', 'Prill', 'Maj', 'Qershor', 'Korrik', 'Gusht', 'Shtator', 'Tetor', 'Nëntor', 'Dhjetor'] +}; +var dayValues = { + narrow: ['D', 'H', 'M', 'M', 'E', 'P', 'S'], + short: ['Di', 'Hë', 'Ma', 'Më', 'En', 'Pr', 'Sh'], + abbreviated: ['Die', 'Hën', 'Mar', 'Mër', 'Enj', 'Pre', 'Sht'], + wide: ['Dielë', 'Hënë', 'Martë', 'Mërkurë', 'Enjte', 'Premte', 'Shtunë'] +}; +var dayPeriodValues = { + narrow: { + am: 'p', + pm: 'm', + midnight: 'm', + noon: 'd', + morning: 'mëngjes', + afternoon: 'dite', + evening: 'mbrëmje', + night: 'natë' + }, + abbreviated: { + am: 'PD', + pm: 'MD', + midnight: 'mesnëtë', + noon: 'drek', + morning: 'mëngjes', + afternoon: 'mbasdite', + evening: 'mbrëmje', + night: 'natë' + }, + wide: { + am: 'p.d.', + pm: 'm.d.', + midnight: 'mesnëtë', + noon: 'drek', + morning: 'mëngjes', + afternoon: 'mbasdite', + evening: 'mbrëmje', + night: 'natë' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'p', + pm: 'm', + midnight: 'm', + noon: 'd', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + }, + abbreviated: { + am: 'PD', + pm: 'MD', + midnight: 'mesnatë', + noon: 'drek', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + }, + wide: { + am: 'p.d.', + pm: 'm.d.', + midnight: 'mesnatë', + noon: 'drek', + morning: 'në mëngjes', + afternoon: 'në mbasdite', + evening: 'në mbrëmje', + night: 'në mesnatë' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + if ((options === null || options === void 0 ? void 0 : options.unit) === 'hour') return String(number); + if (number === 1) return number + '-rë'; + if (number === 4) return number + 't'; + return number + '-të'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/_lib/match/index.js b/node_modules/date-fns/locale/sq/_lib/match/index.js new file mode 100644 index 00000000..267b7f31 --- /dev/null +++ b/node_modules/date-fns/locale/sq/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-rë|-të|t|)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(p|m)/i, + abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, + wide: /^(para krishtit|mbas krishtit)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(p|m)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234]-mujori (i{1,3}|iv)/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jsmpqkftnd]/i, + abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i, + wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^s/i, /^m/i, /^p/i, /^m/i, /^q/i, /^k/i, /^g/i, /^s/i, /^t/i, /^n/i, /^d/i], + any: [/^ja/i, /^shk/i, /^mar/i, /^pri/i, /^maj/i, /^qer/i, /^kor/i, /^gu/i, /^sht/i, /^tet/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[dhmeps]/i, + short: /^(di|hë|ma|më|en|pr|sh)/i, + abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i, + wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i +}; +var parseDayPatterns = { + narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i], + any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i, + any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^p/i, + pm: /^m/i, + midnight: /^me/i, + noon: /^dr/i, + morning: /mëngjes/i, + afternoon: /mbasdite/i, + evening: /mbrëmje/i, + night: /natë/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/index.d.ts b/node_modules/date-fns/locale/sq/index.d.ts new file mode 100644 index 00000000..d361e22e --- /dev/null +++ b/node_modules/date-fns/locale/sq/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sq } from 'date-fns/locale' +export default sq diff --git a/node_modules/date-fns/locale/sq/index.js b/node_modules/date-fns/locale/sq/index.js new file mode 100644 index 00000000..3c3f722b --- /dev/null +++ b/node_modules/date-fns/locale/sq/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Albanian locale. + * @language Shqip + * @iso-639-2 sqi + * @author Ardit Dine [@arditdine]{@link https://github.com/arditdine} + */ +var locale = { + code: 'sq', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sq/index.js.flow b/node_modules/date-fns/locale/sq/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sq/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sq/package.json b/node_modules/date-fns/locale/sq/package.json new file mode 100644 index 00000000..0342bc44 --- /dev/null +++ b/node_modules/date-fns/locale/sq/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sq/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance/index.js new file mode 100644 index 00000000..43be5c84 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatDistance/index.js @@ -0,0 +1,183 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'manje od 1 sekunde', + withPrepositionAgo: 'manje od 1 sekunde', + withPrepositionIn: 'manje od 1 sekundu' + }, + dual: 'manje od {{count}} sekunde', + other: 'manje od {{count}} sekundi' + }, + xSeconds: { + one: { + standalone: '1 sekunda', + withPrepositionAgo: '1 sekunde', + withPrepositionIn: '1 sekundu' + }, + dual: '{{count}} sekunde', + other: '{{count}} sekundi' + }, + halfAMinute: 'pola minute', + lessThanXMinutes: { + one: { + standalone: 'manje od 1 minute', + withPrepositionAgo: 'manje od 1 minute', + withPrepositionIn: 'manje od 1 minutu' + }, + dual: 'manje od {{count}} minute', + other: 'manje od {{count}} minuta' + }, + xMinutes: { + one: { + standalone: '1 minuta', + withPrepositionAgo: '1 minute', + withPrepositionIn: '1 minutu' + }, + dual: '{{count}} minute', + other: '{{count}} minuta' + }, + aboutXHours: { + one: { + standalone: 'oko 1 sat', + withPrepositionAgo: 'oko 1 sat', + withPrepositionIn: 'oko 1 sat' + }, + dual: 'oko {{count}} sata', + other: 'oko {{count}} sati' + }, + xHours: { + one: { + standalone: '1 sat', + withPrepositionAgo: '1 sat', + withPrepositionIn: '1 sat' + }, + dual: '{{count}} sata', + other: '{{count}} sati' + }, + xDays: { + one: { + standalone: '1 dan', + withPrepositionAgo: '1 dan', + withPrepositionIn: '1 dan' + }, + dual: '{{count}} dana', + other: '{{count}} dana' + }, + aboutXWeeks: { + one: { + standalone: 'oko 1 nedelju', + withPrepositionAgo: 'oko 1 nedelju', + withPrepositionIn: 'oko 1 nedelju' + }, + dual: 'oko {{count}} nedelje', + other: 'oko {{count}} nedelje' + }, + xWeeks: { + one: { + standalone: '1 nedelju', + withPrepositionAgo: '1 nedelju', + withPrepositionIn: '1 nedelju' + }, + dual: '{{count}} nedelje', + other: '{{count}} nedelje' + }, + aboutXMonths: { + one: { + standalone: 'oko 1 mesec', + withPrepositionAgo: 'oko 1 mesec', + withPrepositionIn: 'oko 1 mesec' + }, + dual: 'oko {{count}} meseca', + other: 'oko {{count}} meseci' + }, + xMonths: { + one: { + standalone: '1 mesec', + withPrepositionAgo: '1 mesec', + withPrepositionIn: '1 mesec' + }, + dual: '{{count}} meseca', + other: '{{count}} meseci' + }, + aboutXYears: { + one: { + standalone: 'oko 1 godinu', + withPrepositionAgo: 'oko 1 godinu', + withPrepositionIn: 'oko 1 godinu' + }, + dual: 'oko {{count}} godine', + other: 'oko {{count}} godina' + }, + xYears: { + one: { + standalone: '1 godina', + withPrepositionAgo: '1 godine', + withPrepositionIn: '1 godinu' + }, + dual: '{{count}} godine', + other: '{{count}} godina' + }, + overXYears: { + one: { + standalone: 'preko 1 godinu', + withPrepositionAgo: 'preko 1 godinu', + withPrepositionIn: 'preko 1 godinu' + }, + dual: 'preko {{count}} godine', + other: 'preko {{count}} godina' + }, + almostXYears: { + one: { + standalone: 'gotovo 1 godinu', + withPrepositionAgo: 'gotovo 1 godinu', + withPrepositionIn: 'gotovo 1 godinu' + }, + dual: 'gotovo {{count}} godine', + other: 'gotovo {{count}} godina' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'za ' + result; + } else { + return 'pre ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatLong/index.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong/index.js new file mode 100644 index 00000000..87992607 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'u' {{time}}", + long: "{{date}} 'u' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative/index.js new file mode 100644 index 00000000..8fa36e26 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/formatRelative/index.js @@ -0,0 +1,56 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'prošle nedelje u' p"; + + case 3: + return "'prošle srede u' p"; + + case 6: + return "'prošle subote u' p"; + + default: + return "'prošli' EEEE 'u' p"; + } + }, + yesterday: "'juče u' p", + today: "'danas u' p", + tomorrow: "'sutra u' p", + nextWeek: function nextWeek(date) { + switch (date.getUTCDay()) { + case 0: + return "'sledeće nedelje u' p"; + + case 3: + return "'sledeću sredu u' p"; + + case 6: + return "'sledeću subotu u' p"; + + default: + return "'sledeći' EEEE 'u' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/localize/index.js b/node_modules/date-fns/locale/sr-Latn/_lib/localize/index.js new file mode 100644 index 00000000..8b30c756 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['pr.n.e.', 'AD'], + abbreviated: ['pr. Hr.', 'po. Hr.'], + wide: ['Pre Hrista', 'Posle Hrista'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. kv.', '2. kv.', '3. kv.', '4. kv.'], + wide: ['1. kvartal', '2. kvartal', '3. kvartal', '4. kvartal'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'avg', 'sep', 'okt', 'nov', 'dec'], + wide: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'] +}; +var dayValues = { + narrow: ['N', 'P', 'U', 'S', 'Č', 'P', 'S'], + short: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + abbreviated: ['ned', 'pon', 'uto', 'sre', 'čet', 'pet', 'sub'], + wide: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'posle podne', + evening: 'uveče', + night: 'noću' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'popodne', + evening: 'uveče', + night: 'noću' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'ponoć', + noon: 'podne', + morning: 'ujutru', + afternoon: 'posle podne', + evening: 'uveče', + night: 'noću' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/_lib/match/index.js b/node_modules/date-fns/locale/sr-Latn/_lib/match/index.js new file mode 100644 index 00000000..d8624c84 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(pr\.n\.e\.|AD)/i, + abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i, + wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i +}; +var parseEraPatterns = { + any: [/^pr/i, /^(po|nova)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?kv\.?/i, + wide: /^[1234]\. kvartal/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i, + wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^avg/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[npusčc]/i, + short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i, + wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i +}; +var parseDayPatterns = { + narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], + any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] +}; +var matchDayPeriodPatterns = { + any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^pono/i, + noon: /^pod/i, + morning: /jutro/i, + afternoon: /(posle\s|po)+podne/i, + evening: /(uvece|uveče)/i, + night: /(nocu|noću)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/index.d.ts b/node_modules/date-fns/locale/sr-Latn/index.d.ts new file mode 100644 index 00000000..f6313cc9 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { srLatn } from 'date-fns/locale' +export default srLatn diff --git a/node_modules/date-fns/locale/sr-Latn/index.js b/node_modules/date-fns/locale/sr-Latn/index.js new file mode 100644 index 00000000..ba1a7820 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Serbian latin locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje]{@link https://github.com/rogyvoje} + */ +var locale = { + code: 'sr-Latn', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr-Latn/index.js.flow b/node_modules/date-fns/locale/sr-Latn/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sr-Latn/package.json b/node_modules/date-fns/locale/sr-Latn/package.json new file mode 100644 index 00000000..f05b5158 --- /dev/null +++ b/node_modules/date-fns/locale/sr-Latn/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sr-Latn/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sr/_lib/formatDistance/index.js new file mode 100644 index 00000000..429352d0 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatDistance/index.js @@ -0,0 +1,183 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + standalone: 'мање од 1 секунде', + withPrepositionAgo: 'мање од 1 секунде', + withPrepositionIn: 'мање од 1 секунду' + }, + dual: 'мање од {{count}} секунде', + other: 'мање од {{count}} секунди' + }, + xSeconds: { + one: { + standalone: '1 секунда', + withPrepositionAgo: '1 секунде', + withPrepositionIn: '1 секунду' + }, + dual: '{{count}} секунде', + other: '{{count}} секунди' + }, + halfAMinute: 'пола минуте', + lessThanXMinutes: { + one: { + standalone: 'мање од 1 минуте', + withPrepositionAgo: 'мање од 1 минуте', + withPrepositionIn: 'мање од 1 минуту' + }, + dual: 'мање од {{count}} минуте', + other: 'мање од {{count}} минута' + }, + xMinutes: { + one: { + standalone: '1 минута', + withPrepositionAgo: '1 минуте', + withPrepositionIn: '1 минуту' + }, + dual: '{{count}} минуте', + other: '{{count}} минута' + }, + aboutXHours: { + one: { + standalone: 'око 1 сат', + withPrepositionAgo: 'око 1 сат', + withPrepositionIn: 'око 1 сат' + }, + dual: 'око {{count}} сата', + other: 'око {{count}} сати' + }, + xHours: { + one: { + standalone: '1 сат', + withPrepositionAgo: '1 сат', + withPrepositionIn: '1 сат' + }, + dual: '{{count}} сата', + other: '{{count}} сати' + }, + xDays: { + one: { + standalone: '1 дан', + withPrepositionAgo: '1 дан', + withPrepositionIn: '1 дан' + }, + dual: '{{count}} дана', + other: '{{count}} дана' + }, + aboutXWeeks: { + one: { + standalone: 'око 1 недељу', + withPrepositionAgo: 'око 1 недељу', + withPrepositionIn: 'око 1 недељу' + }, + dual: 'око {{count}} недеље', + other: 'око {{count}} недеље' + }, + xWeeks: { + one: { + standalone: '1 недељу', + withPrepositionAgo: '1 недељу', + withPrepositionIn: '1 недељу' + }, + dual: '{{count}} недеље', + other: '{{count}} недеље' + }, + aboutXMonths: { + one: { + standalone: 'око 1 месец', + withPrepositionAgo: 'око 1 месец', + withPrepositionIn: 'око 1 месец' + }, + dual: 'око {{count}} месеца', + other: 'око {{count}} месеци' + }, + xMonths: { + one: { + standalone: '1 месец', + withPrepositionAgo: '1 месец', + withPrepositionIn: '1 месец' + }, + dual: '{{count}} месеца', + other: '{{count}} месеци' + }, + aboutXYears: { + one: { + standalone: 'око 1 годину', + withPrepositionAgo: 'око 1 годину', + withPrepositionIn: 'око 1 годину' + }, + dual: 'око {{count}} године', + other: 'око {{count}} година' + }, + xYears: { + one: { + standalone: '1 година', + withPrepositionAgo: '1 године', + withPrepositionIn: '1 годину' + }, + dual: '{{count}} године', + other: '{{count}} година' + }, + overXYears: { + one: { + standalone: 'преко 1 годину', + withPrepositionAgo: 'преко 1 годину', + withPrepositionIn: 'преко 1 годину' + }, + dual: 'преко {{count}} године', + other: 'преко {{count}} година' + }, + almostXYears: { + one: { + standalone: 'готово 1 годину', + withPrepositionAgo: 'готово 1 годину', + withPrepositionIn: 'готово 1 годину' + }, + dual: 'готово {{count}} године', + other: 'готово {{count}} година' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + result = tokenValue.one.withPrepositionIn; + } else { + result = tokenValue.one.withPrepositionAgo; + } + } else { + result = tokenValue.one.standalone; + } + } else if (count % 10 > 1 && count % 10 < 5 && // if last digit is between 2 and 4 + String(count).substr(-2, 1) !== '1' // unless the 2nd to last digit is "1" + ) { + result = tokenValue.dual.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за ' + result; + } else { + return 'пре ' + result; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/_lib/formatLong/index.js b/node_modules/date-fns/locale/sr/_lib/formatLong/index.js new file mode 100644 index 00000000..1781c557 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, d. MMMM yyyy.', + long: 'd. MMMM yyyy.', + medium: 'd. MMM yy.', + short: 'dd. MM. yy.' +}; +var timeFormats = { + full: 'HH:mm:ss (zzzz)', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'у' {{time}}", + long: "{{date}} 'у' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sr/_lib/formatRelative/index.js new file mode 100644 index 00000000..6bf88ab5 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/formatRelative/index.js @@ -0,0 +1,60 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: function lastWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'прошле недеље у' p"; + + case 3: + return "'прошле среде у' p"; + + case 6: + return "'прошле суботе у' p"; + + default: + return "'прошли' EEEE 'у' p"; + } + }, + yesterday: "'јуче у' p", + today: "'данас у' p", + tomorrow: "'сутра у' p", + nextWeek: function nextWeek(date) { + var day = date.getUTCDay(); + + switch (day) { + case 0: + return "'следеће недеље у' p"; + + case 3: + return "'следећу среду у' p"; + + case 6: + return "'следећу суботу у' p"; + + default: + return "'следећи' EEEE 'у' p"; + } + }, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, _baseDate, _options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/_lib/localize/index.js b/node_modules/date-fns/locale/sr/_lib/localize/index.js new file mode 100644 index 00000000..0ac0d1b6 --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['пр.н.е.', 'АД'], + abbreviated: ['пр. Хр.', 'по. Хр.'], + wide: ['Пре Христа', 'После Христа'] +}; +var quarterValues = { + narrow: ['1.', '2.', '3.', '4.'], + abbreviated: ['1. кв.', '2. кв.', '3. кв.', '4. кв.'], + wide: ['1. квартал', '2. квартал', '3. квартал', '4. квартал'] +}; +var monthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['јан', 'феб', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'нов', 'дец'], + wide: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'] +}; +var formattingMonthValues = { + narrow: ['1.', '2.', '3.', '4.', '5.', '6.', '7.', '8.', '9.', '10.', '11.', '12.'], + abbreviated: ['јан', 'феб', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'нов', 'дец'], + wide: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'] +}; +var dayValues = { + narrow: ['Н', 'П', 'У', 'С', 'Ч', 'П', 'С'], + short: ['нед', 'пон', 'уто', 'сре', 'чет', 'пет', 'суб'], + abbreviated: ['нед', 'пон', 'уто', 'сре', 'чет', 'пет', 'суб'], + wide: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'] +}; +var formattingDayPeriodValues = { + narrow: { + am: 'АМ', + pm: 'ПМ', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + abbreviated: { + am: 'АМ', + pm: 'ПМ', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'после подне', + evening: 'увече', + night: 'ноћу' + } +}; +var dayPeriodValues = { + narrow: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'поподне', + evening: 'увече', + night: 'ноћу' + }, + wide: { + am: 'AM', + pm: 'PM', + midnight: 'поноћ', + noon: 'подне', + morning: 'ујутру', + afternoon: 'после подне', + evening: 'увече', + night: 'ноћу' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/_lib/match/index.js b/node_modules/date-fns/locale/sr/_lib/match/index.js new file mode 100644 index 00000000..2a986a4b --- /dev/null +++ b/node_modules/date-fns/locale/sr/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)\./i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(пр\.н\.е\.|АД)/i, + abbreviated: /^(пр\.\s?Хр\.|по\.\s?Хр\.)/i, + wide: /^(Пре Христа|пре нове ере|После Христа|нова ера)/i +}; +var parseEraPatterns = { + any: [/^пр/i, /^(по|нова)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]\.\s?кв\.?/i, + wide: /^[1234]\. квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(10|11|12|[123456789])\./i, + abbreviated: /^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i, + wide: /^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i +}; +var parseMonthPatterns = { + narrow: [/^1/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^7/i, /^8/i, /^9/i, /^10/i, /^11/i, /^12/i], + any: [/^ја/i, /^ф/i, /^мар/i, /^ап/i, /^мај/i, /^јун/i, /^јул/i, /^авг/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[пусчн]/i, + short: /^(нед|пон|уто|сре|чет|пет|суб)/i, + abbreviated: /^(нед|пон|уто|сре|чет|пет|суб)/i, + wide: /^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i +}; +var parseDayPatterns = { + narrow: [/^п/i, /^у/i, /^с/i, /^ч/i, /^п/i, /^с/i, /^н/i], + any: [/^нед/i, /^пон/i, /^уто/i, /^сре/i, /^чет/i, /^пет/i, /^суб/i] +}; +var matchDayPeriodPatterns = { + any: /^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^поно/i, + noon: /^под/i, + morning: /ујутру/i, + afternoon: /(после\s|по)+подне/i, + evening: /(увече)/i, + night: /(ноћу)/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/index.d.ts b/node_modules/date-fns/locale/sr/index.d.ts new file mode 100644 index 00000000..aaede59e --- /dev/null +++ b/node_modules/date-fns/locale/sr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sr } from 'date-fns/locale' +export default sr diff --git a/node_modules/date-fns/locale/sr/index.js b/node_modules/date-fns/locale/sr/index.js new file mode 100644 index 00000000..b0e31ffc --- /dev/null +++ b/node_modules/date-fns/locale/sr/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Serbian cyrillic locale. + * @language Serbian + * @iso-639-2 srp + * @author Igor Radivojević [@rogyvoje]{@link https://github.com/rogyvoje} + */ +var locale = { + code: 'sr', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sr/index.js.flow b/node_modules/date-fns/locale/sr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sr/package.json b/node_modules/date-fns/locale/sr/package.json new file mode 100644 index 00000000..a2c145f3 --- /dev/null +++ b/node_modules/date-fns/locale/sr/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sr/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/_lib/formatDistance/index.js b/node_modules/date-fns/locale/sv/_lib/formatDistance/index.js new file mode 100644 index 00000000..09d9b644 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatDistance/index.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'mindre än en sekund', + other: 'mindre än {{count}} sekunder' + }, + xSeconds: { + one: 'en sekund', + other: '{{count}} sekunder' + }, + halfAMinute: 'en halv minut', + lessThanXMinutes: { + one: 'mindre än en minut', + other: 'mindre än {{count}} minuter' + }, + xMinutes: { + one: 'en minut', + other: '{{count}} minuter' + }, + aboutXHours: { + one: 'ungefär en timme', + other: 'ungefär {{count}} timmar' + }, + xHours: { + one: 'en timme', + other: '{{count}} timmar' + }, + xDays: { + one: 'en dag', + other: '{{count}} dagar' + }, + aboutXWeeks: { + one: 'ungefär en vecka', + other: 'ungefär {{count}} vecka' + }, + xWeeks: { + one: 'en vecka', + other: '{{count}} vecka' + }, + aboutXMonths: { + one: 'ungefär en månad', + other: 'ungefär {{count}} månader' + }, + xMonths: { + one: 'en månad', + other: '{{count}} månader' + }, + aboutXYears: { + one: 'ungefär ett år', + other: 'ungefär {{count}} år' + }, + xYears: { + one: 'ett år', + other: '{{count}} år' + }, + overXYears: { + one: 'över ett år', + other: 'över {{count}} år' + }, + almostXYears: { + one: 'nästan ett år', + other: 'nästan {{count}} år' + } +}; +var wordMapping = ['noll', 'en', 'två', 'tre', 'fyra', 'fem', 'sex', 'sju', 'åtta', 'nio', 'tio', 'elva', 'tolv']; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + if (options && options.onlyNumeric) { + result = tokenValue.other.replace('{{count}}', String(count)); + } else { + result = tokenValue.other.replace('{{count}}', count < 13 ? wordMapping[count] : String(count)); + } + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'om ' + result; + } else { + return result + ' sedan'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/_lib/formatLong/index.js b/node_modules/date-fns/locale/sv/_lib/formatLong/index.js new file mode 100644 index 00000000..225e0e15 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE d MMMM y', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'y-MM-dd' +}; +var timeFormats = { + full: "'kl'. HH:mm:ss zzzz", + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'kl.' {{time}}", + long: "{{date}} 'kl.' {{time}}", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/_lib/formatRelative/index.js b/node_modules/date-fns/locale/sv/_lib/formatRelative/index.js new file mode 100644 index 00000000..91fc4b41 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'i' EEEE's kl.' p", + yesterday: "'igår kl.' p", + today: "'idag kl.' p", + tomorrow: "'imorgon kl.' p", + nextWeek: "EEEE 'kl.' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/_lib/localize/index.js b/node_modules/date-fns/locale/sv/_lib/localize/index.js new file mode 100644 index 00000000..49ffe644 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/localize/index.js @@ -0,0 +1,144 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['f.Kr.', 'e.Kr.'], + abbreviated: ['f.Kr.', 'e.Kr.'], + wide: ['före Kristus', 'efter Kristus'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['1:a kvartalet', '2:a kvartalet', '3:e kvartalet', '4:e kvartalet'] +}; +var monthValues = { + narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['jan.', 'feb.', 'mars', 'apr.', 'maj', 'juni', 'juli', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'], + wide: ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'] +}; +var dayValues = { + narrow: ['S', 'M', 'T', 'O', 'T', 'F', 'L'], + short: ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'], + abbreviated: ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'], + wide: ['söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'] +}; // https://www.unicode.org/cldr/charts/32/summary/sv.html#1888 + +var dayPeriodValues = { + narrow: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'morg.', + afternoon: 'efterm.', + evening: 'kväll', + night: 'natt' + }, + abbreviated: { + am: 'f.m.', + pm: 'e.m.', + midnight: 'midnatt', + noon: 'middag', + morning: 'morgon', + afternoon: 'efterm.', + evening: 'kväll', + night: 'natt' + }, + wide: { + am: 'förmiddag', + pm: 'eftermiddag', + midnight: 'midnatt', + noon: 'middag', + morning: 'morgon', + afternoon: 'eftermiddag', + evening: 'kväll', + night: 'natt' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på efterm.', + evening: 'på kvällen', + night: 'på natten' + }, + abbreviated: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morg.', + afternoon: 'på efterm.', + evening: 'på kvällen', + night: 'på natten' + }, + wide: { + am: 'fm', + pm: 'em', + midnight: 'midnatt', + noon: 'middag', + morning: 'på morgonen', + afternoon: 'på eftermiddagen', + evening: 'på kvällen', + night: 'på natten' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + var rem100 = number % 100; + + if (rem100 > 20 || rem100 < 10) { + switch (rem100 % 10) { + case 1: + case 2: + return number + ':a'; + } + } + + return number + ':e'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/_lib/match/index.js b/node_modules/date-fns/locale/sv/_lib/match/index.js new file mode 100644 index 00000000..1317c126 --- /dev/null +++ b/node_modules/date-fns/locale/sv/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(:a|:e)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + abbreviated: /^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i, + wide: /^(före Kristus|före vår tid|efter Kristus|vår tid)/i +}; +var parseEraPatterns = { + any: [/^f/i, /^[ev]/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](:a|:e)? kvartalet/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[jfmasond]/i, + abbreviated: /^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i, + wide: /^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i +}; +var parseMonthPatterns = { + narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^maj/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[smtofl]/i, + short: /^(sö|må|ti|on|to|fr|lö)/i, + abbreviated: /^(sön|mån|tis|ons|tors|fre|lör)/i, + wide: /^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i +}; +var parseDayPatterns = { + any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i] +}; +var matchDayPeriodPatterns = { + any: /^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^f/i, + pm: /^e/i, + midnight: /^midn/i, + noon: /^midd/i, + morning: /morgon/i, + afternoon: /eftermiddag/i, + evening: /kväll/i, + night: /natt/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/index.d.ts b/node_modules/date-fns/locale/sv/index.d.ts new file mode 100644 index 00000000..2a7405bf --- /dev/null +++ b/node_modules/date-fns/locale/sv/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sv } from 'date-fns/locale' +export default sv diff --git a/node_modules/date-fns/locale/sv/index.js b/node_modules/date-fns/locale/sv/index.js new file mode 100644 index 00000000..2dfb8822 --- /dev/null +++ b/node_modules/date-fns/locale/sv/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Swedish locale. + * @language Swedish + * @iso-639-2 swe + * @author Johannes Ulén [@ejulen]{@link https://github.com/ejulen} + * @author Alexander Nanberg [@alexandernanberg]{@link https://github.com/alexandernanberg} + * @author Henrik Andersson [@limelights]{@link https://github.com/limelights} + */ +var locale = { + code: 'sv', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/sv/index.js.flow b/node_modules/date-fns/locale/sv/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/sv/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/sv/package.json b/node_modules/date-fns/locale/sv/package.json new file mode 100644 index 00000000..d3df8bba --- /dev/null +++ b/node_modules/date-fns/locale/sv/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/sv/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ta/_lib/formatDistance/index.js new file mode 100644 index 00000000..f35d4162 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatDistance/index.js @@ -0,0 +1,214 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function isPluralType(val) { + return val.one !== undefined; +} + +var formatDistanceLocale = { + lessThanXSeconds: { + one: { + default: 'ஒரு வினாடிக்கு குறைவாக', + in: 'ஒரு வினாடிக்குள்', + ago: 'ஒரு வினாடிக்கு முன்பு' + }, + other: { + default: '{{count}} வினாடிகளுக்கு குறைவாக', + in: '{{count}} வினாடிகளுக்குள்', + ago: '{{count}} வினாடிகளுக்கு முன்பு' + } + }, + xSeconds: { + one: { + default: '1 வினாடி', + in: '1 வினாடியில்', + ago: '1 வினாடி முன்பு' + }, + other: { + default: '{{count}} விநாடிகள்', + in: '{{count}} வினாடிகளில்', + ago: '{{count}} விநாடிகளுக்கு முன்பு' + } + }, + halfAMinute: { + default: 'அரை நிமிடம்', + in: 'அரை நிமிடத்தில்', + ago: 'அரை நிமிடம் முன்பு' + }, + lessThanXMinutes: { + one: { + default: 'ஒரு நிமிடத்திற்கும் குறைவாக', + in: 'ஒரு நிமிடத்திற்குள்', + ago: 'ஒரு நிமிடத்திற்கு முன்பு' + }, + other: { + default: '{{count}} நிமிடங்களுக்கும் குறைவாக', + in: '{{count}} நிமிடங்களுக்குள்', + ago: '{{count}} நிமிடங்களுக்கு முன்பு' + } + }, + xMinutes: { + one: { + default: '1 நிமிடம்', + in: '1 நிமிடத்தில்', + ago: '1 நிமிடம் முன்பு' + }, + other: { + default: '{{count}} நிமிடங்கள்', + in: '{{count}} நிமிடங்களில்', + ago: '{{count}} நிமிடங்களுக்கு முன்பு' + } + }, + aboutXHours: { + one: { + default: 'சுமார் 1 மணி நேரம்', + in: 'சுமார் 1 மணி நேரத்தில்', + ago: 'சுமார் 1 மணி நேரத்திற்கு முன்பு' + }, + other: { + default: 'சுமார் {{count}} மணி நேரம்', + in: 'சுமார் {{count}} மணி நேரத்திற்கு முன்பு', + ago: 'சுமார் {{count}} மணி நேரத்தில்' + } + }, + xHours: { + one: { + default: '1 மணி நேரம்', + in: '1 மணி நேரத்தில்', + ago: '1 மணி நேரத்திற்கு முன்பு' + }, + other: { + default: '{{count}} மணி நேரம்', + in: '{{count}} மணி நேரத்தில்', + ago: '{{count}} மணி நேரத்திற்கு முன்பு' + } + }, + xDays: { + one: { + default: '1 நாள்', + in: '1 நாளில்', + ago: '1 நாள் முன்பு' + }, + other: { + default: '{{count}} நாட்கள்', + in: '{{count}} நாட்களில்', + ago: '{{count}} நாட்களுக்கு முன்பு' + } + }, + aboutXWeeks: { + one: { + default: 'சுமார் 1 வாரம்', + in: 'சுமார் 1 வாரத்தில்', + ago: 'சுமார் 1 வாரம் முன்பு' + }, + other: { + default: 'சுமார் {{count}} வாரங்கள்', + in: 'சுமார் {{count}} வாரங்களில்', + ago: 'சுமார் {{count}} வாரங்களுக்கு முன்பு' + } + }, + xWeeks: { + one: { + default: '1 வாரம்', + in: '1 வாரத்தில்', + ago: '1 வாரம் முன்பு' + }, + other: { + default: '{{count}} வாரங்கள்', + in: '{{count}} வாரங்களில்', + ago: '{{count}} வாரங்களுக்கு முன்பு' + } + }, + aboutXMonths: { + one: { + default: 'சுமார் 1 மாதம்', + in: 'சுமார் 1 மாதத்தில்', + ago: 'சுமார் 1 மாதத்திற்கு முன்பு' + }, + other: { + default: 'சுமார் {{count}} மாதங்கள்', + in: 'சுமார் {{count}} மாதங்களில்', + ago: 'சுமார் {{count}} மாதங்களுக்கு முன்பு' + } + }, + xMonths: { + one: { + default: '1 மாதம்', + in: '1 மாதத்தில்', + ago: '1 மாதம் முன்பு' + }, + other: { + default: '{{count}} மாதங்கள்', + in: '{{count}} மாதங்களில்', + ago: '{{count}} மாதங்களுக்கு முன்பு' + } + }, + aboutXYears: { + one: { + default: 'சுமார் 1 வருடம்', + in: 'சுமார் 1 ஆண்டில்', + ago: 'சுமார் 1 வருடம் முன்பு' + }, + other: { + default: 'சுமார் {{count}} ஆண்டுகள்', + in: 'சுமார் {{count}} ஆண்டுகளில்', + ago: 'சுமார் {{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + xYears: { + one: { + default: '1 வருடம்', + in: '1 ஆண்டில்', + ago: '1 வருடம் முன்பு' + }, + other: { + default: '{{count}} ஆண்டுகள்', + in: '{{count}} ஆண்டுகளில்', + ago: '{{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + overXYears: { + one: { + default: '1 வருடத்திற்கு மேல்', + in: '1 வருடத்திற்கும் மேலாக', + ago: '1 வருடம் முன்பு' + }, + other: { + default: '{{count}} ஆண்டுகளுக்கும் மேலாக', + in: '{{count}} ஆண்டுகளில்', + ago: '{{count}} ஆண்டுகளுக்கு முன்பு' + } + }, + almostXYears: { + one: { + default: 'கிட்டத்தட்ட 1 வருடம்', + in: 'கிட்டத்தட்ட 1 ஆண்டில்', + ago: 'கிட்டத்தட்ட 1 வருடம் முன்பு' + }, + other: { + default: 'கிட்டத்தட்ட {{count}} ஆண்டுகள்', + in: 'கிட்டத்தட்ட {{count}} ஆண்டுகளில்', + ago: 'கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var tense = options !== null && options !== void 0 && options.addSuffix ? options.comparison && options.comparison > 0 ? 'in' : 'ago' : 'default'; + var tokenValue = formatDistanceLocale[token]; + if (!isPluralType(tokenValue)) return tokenValue[tense]; + + if (count === 1) { + return tokenValue.one[tense]; + } else { + return tokenValue.other[tense].replace('{{count}}', String(count)); + } +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/_lib/formatLong/index.js b/node_modules/date-fns/locale/ta/_lib/formatLong/index.js new file mode 100644 index 00000000..2e5f8264 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatLong/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html +// CLDR #1846 - #1849 +var dateFormats = { + full: 'EEEE, d MMMM, y', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'd/M/yy' +}; // CLDR #1850 - #1853 + +var timeFormats = { + full: 'a h:mm:ss zzzz', + long: 'a h:mm:ss z', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ta/_lib/formatRelative/index.js new file mode 100644 index 00000000..4e543548 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'கடந்த' eeee p 'மணிக்கு'", + yesterday: "'நேற்று ' p 'மணிக்கு'", + today: "'இன்று ' p 'மணிக்கு'", + tomorrow: "'நாளை ' p 'மணிக்கு'", + nextWeek: "eeee p 'மணிக்கு'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/_lib/localize/index.js b/node_modules/date-fns/locale/ta/_lib/localize/index.js new file mode 100644 index 00000000..219a3420 --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/localize/index.js @@ -0,0 +1,166 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Ref: https://www.unicode.org/cldr/charts/32/summary/ta.html +var eraValues = { + narrow: ['கி.மு.', 'கி.பி.'], + abbreviated: ['கி.மு.', 'கி.பி.'], + // CLDR #1624, #1626 + wide: ['கிறிஸ்துவுக்கு முன்', 'அன்னோ டோமினி'] // CLDR #1620, #1622 + +}; +var quarterValues = { + // CLDR #1644 - #1647 + narrow: ['1', '2', '3', '4'], + // CLDR #1636 - #1639 + abbreviated: ['காலா.1', 'காலா.2', 'காலா.3', 'காலா.4'], + // CLDR #1628 - #1631 + wide: ['ஒன்றாம் காலாண்டு', 'இரண்டாம் காலாண்டு', 'மூன்றாம் காலாண்டு', 'நான்காம் காலாண்டு'] +}; +var monthValues = { + // CLDR #700 - #711 + narrow: ['ஜ', 'பி', 'மா', 'ஏ', 'மே', 'ஜூ', 'ஜூ', 'ஆ', 'செ', 'அ', 'ந', 'டி'], + // CLDR #1676 - #1687 + abbreviated: ['ஜன.', 'பிப்.', 'மார்.', 'ஏப்.', 'மே', 'ஜூன்', 'ஜூலை', 'ஆக.', 'செப்.', 'அக்.', 'நவ.', 'டிச.'], + // CLDR #1652 - #1663 + wide: ['ஜனவரி', // January + 'பிப்ரவரி', // February + 'மார்ச்', // March + 'ஏப்ரல்', // April + 'மே', // May + 'ஜூன்', // June + 'ஜூலை', // July + 'ஆகஸ்ட்', // August + 'செப்டம்பர்', // September + 'அக்டோபர்', // October + 'நவம்பர்', // November + 'டிசம்பர்' // December + ] +}; +var dayValues = { + // CLDR #1766 - #1772 + narrow: ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], + // CLDR #1752 - #1758 + short: ['ஞா', 'தி', 'செ', 'பு', 'வி', 'வெ', 'ச'], + // CLDR #1738 - #1744 + abbreviated: ['ஞாயி.', 'திங்.', 'செவ்.', 'புத.', 'வியா.', 'வெள்.', 'சனி'], + // CLDR #1724 - #1730 + wide: ['ஞாயிறு', // Sunday + 'திங்கள்', // Monday + 'செவ்வாய்', // Tuesday + 'புதன்', // Wednesday + 'வியாழன்', // Thursday + 'வெள்ளி', // Friday + 'சனி' // Saturday + ] +}; // CLDR #1780 - #1845 + +var dayPeriodValues = { + narrow: { + am: 'மு.ப', + pm: 'பி.ப', + midnight: 'நள்.', + noon: 'நண்.', + morning: 'கா.', + afternoon: 'மதி.', + evening: 'மா.', + night: 'இர.' + }, + abbreviated: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + }, + wide: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + } +}; // CLDR #1780 - #1845 + +var formattingDayPeriodValues = { + narrow: { + am: 'மு.ப', + pm: 'பி.ப', + midnight: 'நள்.', + noon: 'நண்.', + morning: 'கா.', + afternoon: 'மதி.', + evening: 'மா.', + night: 'இர.' + }, + abbreviated: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + }, + wide: { + am: 'முற்பகல்', + pm: 'பிற்பகல்', + midnight: 'நள்ளிரவு', + noon: 'நண்பகல்', + morning: 'காலை', + afternoon: 'மதியம்', + evening: 'மாலை', + night: 'இரவு' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/_lib/match/index.js b/node_modules/date-fns/locale/ta/_lib/match/index.js new file mode 100644 index 00000000..867d68de --- /dev/null +++ b/node_modules/date-fns/locale/ta/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(வது)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(கி.மு.|கி.பி.)/i, + abbreviated: /^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/, + wide: /^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i +}; +var parseEraPatterns = { + any: [/கி\.?\s?மு\.?/, /கி\.?\s?பி\.?/] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^காலா.[1234]/i, + wide: /^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i +}; +var parseQuarterPatterns = { + narrow: [/1/i, /2/i, /3/i, /4/i], + any: [/(1|காலா.1|ஒன்றாம்)/i, /(2|காலா.2|இரண்டாம்)/i, /(3|காலா.3|மூன்றாம்)/i, /(4|காலா.4|நான்காம்)/i] +}; +var matchMonthPatterns = { + narrow: /^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i, + abbreviated: /^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i, + wide: /^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i +}; +var parseMonthPatterns = { + narrow: [/^ஜ$/i, /^பி/i, /^மா/i, /^ஏ/i, /^மே/i, /^ஜூ/i, /^ஜூ/i, /^ஆ/i, /^செ/i, /^அ/i, /^ந/i, /^டி/i], + any: [/^ஜன/i, /^பி/i, /^மா/i, /^ஏ/i, /^மே/i, /^ஜூன்/i, /^ஜூலை/i, /^ஆ/i, /^செ/i, /^அ/i, /^ந/i, /^டி/i] +}; +var matchDayPatterns = { + narrow: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + short: /^(ஞா|தி|செ|பு|வி|வெ|ச)/i, + abbreviated: /^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i, + wide: /^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i +}; +var parseDayPatterns = { + narrow: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i], + any: [/^ஞா/i, /^தி/i, /^செ/i, /^பு/i, /^வி/i, /^வெ/i, /^ச/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i, + any: /^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^மு/i, + pm: /^பி/i, + midnight: /^நள்/i, + noon: /^நண்/i, + morning: /காலை/i, + afternoon: /மதியம்/i, + evening: /மாலை/i, + night: /இரவு/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/index.d.ts b/node_modules/date-fns/locale/ta/index.d.ts new file mode 100644 index 00000000..fb9a06a7 --- /dev/null +++ b/node_modules/date-fns/locale/ta/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ta } from 'date-fns/locale' +export default ta diff --git a/node_modules/date-fns/locale/ta/index.js b/node_modules/date-fns/locale/ta/index.js new file mode 100644 index 00000000..395e0fb8 --- /dev/null +++ b/node_modules/date-fns/locale/ta/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Tamil locale (India). + * @language Tamil + * @iso-639-2 tam + * @author Sibiraj [@sibiraj-s]{@link https://github.com/sibiraj-s} + */ +var locale = { + code: 'ta', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ta/index.js.flow b/node_modules/date-fns/locale/ta/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ta/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ta/package.json b/node_modules/date-fns/locale/ta/package.json new file mode 100644 index 00000000..fa632052 --- /dev/null +++ b/node_modules/date-fns/locale/ta/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ta/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/_lib/formatDistance/index.js b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js new file mode 100644 index 00000000..f94c6cad --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatDistance/index.js @@ -0,0 +1,197 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +var formatDistanceLocale = { + lessThanXSeconds: { + standalone: { + one: 'సెకను కన్నా తక్కువ', + other: '{{count}} సెకన్ల కన్నా తక్కువ' + }, + withPreposition: { + one: 'సెకను', + other: '{{count}} సెకన్ల' + } + }, + xSeconds: { + standalone: { + one: 'ఒక సెకను', + // CLDR #1314 + other: '{{count}} సెకన్ల' + }, + withPreposition: { + one: 'ఒక సెకను', + other: '{{count}} సెకన్ల' + } + }, + halfAMinute: { + standalone: 'అర నిమిషం', + withPreposition: 'అర నిమిషం' + }, + lessThanXMinutes: { + standalone: { + one: 'ఒక నిమిషం కన్నా తక్కువ', + other: '{{count}} నిమిషాల కన్నా తక్కువ' + }, + withPreposition: { + one: 'ఒక నిమిషం', + other: '{{count}} నిమిషాల' + } + }, + xMinutes: { + standalone: { + one: 'ఒక నిమిషం', + // CLDR #1311 + other: '{{count}} నిమిషాలు' + }, + withPreposition: { + one: 'ఒక నిమిషం', + // CLDR #1311 + other: '{{count}} నిమిషాల' + } + }, + aboutXHours: { + standalone: { + one: 'సుమారు ఒక గంట', + other: 'సుమారు {{count}} గంటలు' + }, + withPreposition: { + one: 'సుమారు ఒక గంట', + other: 'సుమారు {{count}} గంటల' + } + }, + xHours: { + standalone: { + one: 'ఒక గంట', + // CLDR #1308 + other: '{{count}} గంటలు' + }, + withPreposition: { + one: 'ఒక గంట', + other: '{{count}} గంటల' + } + }, + xDays: { + standalone: { + one: 'ఒక రోజు', + // CLDR #1292 + other: '{{count}} రోజులు' + }, + withPreposition: { + one: 'ఒక రోజు', + other: '{{count}} రోజుల' + } + }, + aboutXWeeks: { + standalone: { + one: 'సుమారు ఒక వారం', + other: 'సుమారు {{count}} వారాలు' + }, + withPreposition: { + one: 'సుమారు ఒక వారం', + other: 'సుమారు {{count}} వారాలల' + } + }, + xWeeks: { + standalone: { + one: 'ఒక వారం', + other: '{{count}} వారాలు' + }, + withPreposition: { + one: 'ఒక వారం', + other: '{{count}} వారాలల' + } + }, + aboutXMonths: { + standalone: { + one: 'సుమారు ఒక నెల', + other: 'సుమారు {{count}} నెలలు' + }, + withPreposition: { + one: 'సుమారు ఒక నెల', + other: 'సుమారు {{count}} నెలల' + } + }, + xMonths: { + standalone: { + one: 'ఒక నెల', + // CLDR #1281 + other: '{{count}} నెలలు' + }, + withPreposition: { + one: 'ఒక నెల', + other: '{{count}} నెలల' + } + }, + aboutXYears: { + standalone: { + one: 'సుమారు ఒక సంవత్సరం', + other: 'సుమారు {{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'సుమారు ఒక సంవత్సరం', + other: 'సుమారు {{count}} సంవత్సరాల' + } + }, + xYears: { + standalone: { + one: 'ఒక సంవత్సరం', + // CLDR #1275 + other: '{{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'ఒక సంవత్సరం', + other: '{{count}} సంవత్సరాల' + } + }, + overXYears: { + standalone: { + one: 'ఒక సంవత్సరం పైగా', + other: '{{count}} సంవత్సరాలకు పైగా' + }, + withPreposition: { + one: 'ఒక సంవత్సరం', + other: '{{count}} సంవత్సరాల' + } + }, + almostXYears: { + standalone: { + one: 'దాదాపు ఒక సంవత్సరం', + other: 'దాదాపు {{count}} సంవత్సరాలు' + }, + withPreposition: { + one: 'దాదాపు ఒక సంవత్సరం', + other: 'దాదాపు {{count}} సంవత్సరాల' + } + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = options !== null && options !== void 0 && options.addSuffix ? formatDistanceLocale[token].withPreposition : formatDistanceLocale[token].standalone; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'లో'; + } else { + return result + ' క్రితం'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/_lib/formatLong/index.js b/node_modules/date-fns/locale/te/_lib/formatLong/index.js new file mode 100644 index 00000000..c9cf7966 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatLong/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// CLDR #1807 - #1811 +var dateFormats = { + full: 'd, MMMM y, EEEE', + long: 'd MMMM, y', + medium: 'd MMM, y', + short: 'dd-MM-yy' +}; // CLDR #1807 - #1811 + +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; // CLDR #1815 - #1818 + +var dateTimeFormats = { + full: "{{date}} {{time}}'కి'", + long: "{{date}} {{time}}'కి'", + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/_lib/formatRelative/index.js b/node_modules/date-fns/locale/te/_lib/formatRelative/index.js new file mode 100644 index 00000000..789ffb38 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/formatRelative/index.js @@ -0,0 +1,28 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +var formatRelativeLocale = { + lastWeek: "'గత' eeee p", + // CLDR #1384 + yesterday: "'నిన్న' p", + // CLDR #1393 + today: "'ఈ రోజు' p", + // CLDR #1394 + tomorrow: "'రేపు' p", + // CLDR #1395 + nextWeek: "'తదుపరి' eeee p", + // CLDR #1386 + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/_lib/localize/index.js b/node_modules/date-fns/locale/te/_lib/localize/index.js new file mode 100644 index 00000000..4c2882a5 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/localize/index.js @@ -0,0 +1,140 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Source: https://www.unicode.org/cldr/charts/32/summary/te.html +// Source: https://dsal.uchicago.edu/dictionaries/brown/ +// CLDR #1605 - #1608 +var eraValues = { + narrow: ['క్రీ.పూ.', 'క్రీ.శ.'], + abbreviated: ['క్రీ.పూ.', 'క్రీ.శ.'], + wide: ['క్రీస్తు పూర్వం', 'క్రీస్తుశకం'] +}; // CLDR #1613 - #1628 + +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['త్రై1', 'త్రై2', 'త్రై3', 'త్రై4'], + wide: ['1వ త్రైమాసికం', '2వ త్రైమాసికం', '3వ త్రైమాసికం', '4వ త్రైమాసికం'] +}; // CLDR #1637 - #1708 + +var monthValues = { + narrow: ['జ', 'ఫి', 'మా', 'ఏ', 'మే', 'జూ', 'జు', 'ఆ', 'సె', 'అ', 'న', 'డి'], + abbreviated: ['జన', 'ఫిబ్ర', 'మార్చి', 'ఏప్రి', 'మే', 'జూన్', 'జులై', 'ఆగ', 'సెప్టెం', 'అక్టో', 'నవం', 'డిసెం'], + wide: ['జనవరి', 'ఫిబ్రవరి', 'మార్చి', 'ఏప్రిల్', 'మే', 'జూన్', 'జులై', 'ఆగస్టు', 'సెప్టెంబర్', 'అక్టోబర్', 'నవంబర్', 'డిసెంబర్'] +}; // CLDR #1709 - #1764 + +var dayValues = { + narrow: ['ఆ', 'సో', 'మ', 'బు', 'గు', 'శు', 'శ'], + short: ['ఆది', 'సోమ', 'మంగళ', 'బుధ', 'గురు', 'శుక్ర', 'శని'], + abbreviated: ['ఆది', 'సోమ', 'మంగళ', 'బుధ', 'గురు', 'శుక్ర', 'శని'], + wide: ['ఆదివారం', 'సోమవారం', 'మంగళవారం', 'బుధవారం', 'గురువారం', 'శుక్రవారం', 'శనివారం'] +}; // CLDR #1767 - #1806 + +var dayPeriodValues = { + narrow: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + abbreviated: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + wide: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + abbreviated: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + }, + wide: { + am: 'పూర్వాహ్నం', + pm: 'అపరాహ్నం', + midnight: 'అర్ధరాత్రి', + noon: 'మిట్టమధ్యాహ్నం', + morning: 'ఉదయం', + afternoon: 'మధ్యాహ్నం', + evening: 'సాయంత్రం', + night: 'రాత్రి' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + 'వ'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/_lib/match/index.js b/node_modules/date-fns/locale/te/_lib/match/index.js new file mode 100644 index 00000000..610d5116 --- /dev/null +++ b/node_modules/date-fns/locale/te/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(వ)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(క్రీ\.పూ\.|క్రీ\.శ\.)/i, + abbreviated: /^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i, + wide: /^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i +}; +var parseEraPatterns = { + any: [/^(పూ|శ)/i, /^సా/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^త్రై[1234]/i, + wide: /^[1234](వ)? త్రైమాసికం/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i, + abbreviated: /^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i, + wide: /^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i +}; +var parseMonthPatterns = { + narrow: [/^జ/i, /^ఫి/i, /^మా/i, /^ఏ/i, /^మే/i, /^జూ/i, /^జు/i, /^ఆ/i, /^సె/i, /^అ/i, /^న/i, /^డి/i], + any: [/^జన/i, /^ఫి/i, /^మా/i, /^ఏ/i, /^మే/i, /^జూన్/i, /^జులై/i, /^ఆగ/i, /^సె/i, /^అ/i, /^న/i, /^డి/i] +}; +var matchDayPatterns = { + narrow: /^(ఆ|సో|మ|బు|గు|శు|శ)/i, + short: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + abbreviated: /^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i, + wide: /^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i +}; +var parseDayPatterns = { + narrow: [/^ఆ/i, /^సో/i, /^మ/i, /^బు/i, /^గు/i, /^శు/i, /^శ/i], + any: [/^ఆది/i, /^సోమ/i, /^మం/i, /^బుధ/i, /^గురు/i, /^శుక్ర/i, /^శని/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i, + any: /^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^పూర్వాహ్నం/i, + pm: /^అపరాహ్నం/i, + midnight: /^అర్ధ/i, + noon: /^మిట్ట/i, + morning: /ఉదయం/i, + afternoon: /మధ్యాహ్నం/i, + evening: /సాయంత్రం/i, + night: /రాత్రి/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/index.d.ts b/node_modules/date-fns/locale/te/index.d.ts new file mode 100644 index 00000000..2dab4a83 --- /dev/null +++ b/node_modules/date-fns/locale/te/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { te } from 'date-fns/locale' +export default te diff --git a/node_modules/date-fns/locale/te/index.js b/node_modules/date-fns/locale/te/index.js new file mode 100644 index 00000000..9818414c --- /dev/null +++ b/node_modules/date-fns/locale/te/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Telugu locale + * @language Telugu + * @iso-639-2 tel + * @author Kranthi Lakum [@kranthilakum]{@link https://github.com/kranthilakum} + */ +var locale = { + code: 'te', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/te/index.js.flow b/node_modules/date-fns/locale/te/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/te/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/te/package.json b/node_modules/date-fns/locale/te/package.json new file mode 100644 index 00000000..c8fc96e2 --- /dev/null +++ b/node_modules/date-fns/locale/te/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/te/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/_lib/formatDistance/index.js b/node_modules/date-fns/locale/th/_lib/formatDistance/index.js new file mode 100644 index 00000000..d8fba5ed --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatDistance/index.js @@ -0,0 +1,100 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'น้อยกว่า 1 วินาที', + other: 'น้อยกว่า {{count}} วินาที' + }, + xSeconds: { + one: '1 วินาที', + other: '{{count}} วินาที' + }, + halfAMinute: 'ครึ่งนาที', + lessThanXMinutes: { + one: 'น้อยกว่า 1 นาที', + other: 'น้อยกว่า {{count}} นาที' + }, + xMinutes: { + one: '1 นาที', + other: '{{count}} นาที' + }, + aboutXHours: { + one: 'ประมาณ 1 ชั่วโมง', + other: 'ประมาณ {{count}} ชั่วโมง' + }, + xHours: { + one: '1 ชั่วโมง', + other: '{{count}} ชั่วโมง' + }, + xDays: { + one: '1 วัน', + other: '{{count}} วัน' + }, + aboutXWeeks: { + one: 'ประมาณ 1 สัปดาห์', + other: 'ประมาณ {{count}} สัปดาห์' + }, + xWeeks: { + one: '1 สัปดาห์', + other: '{{count}} สัปดาห์' + }, + aboutXMonths: { + one: 'ประมาณ 1 เดือน', + other: 'ประมาณ {{count}} เดือน' + }, + xMonths: { + one: '1 เดือน', + other: '{{count}} เดือน' + }, + aboutXYears: { + one: 'ประมาณ 1 ปี', + other: 'ประมาณ {{count}} ปี' + }, + xYears: { + one: '1 ปี', + other: '{{count}} ปี' + }, + overXYears: { + one: 'มากกว่า 1 ปี', + other: 'มากกว่า {{count}} ปี' + }, + almostXYears: { + one: 'เกือบ 1 ปี', + other: 'เกือบ {{count}} ปี' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (token === 'halfAMinute') { + return 'ใน' + result; + } else { + return 'ใน ' + result; + } + } else { + return result + 'ที่ผ่านมา'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/_lib/formatLong/index.js b/node_modules/date-fns/locale/th/_lib/formatLong/index.js new file mode 100644 index 00000000..3ab3b764 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'วันEEEEที่ do MMMM y', + long: 'do MMMM y', + medium: 'd MMM y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'H:mm:ss น. zzzz', + long: 'H:mm:ss น. z', + medium: 'H:mm:ss น.', + short: 'H:mm น.' +}; +var dateTimeFormats = { + full: "{{date}} 'เวลา' {{time}}", + long: "{{date}} 'เวลา' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'medium' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/_lib/formatRelative/index.js b/node_modules/date-fns/locale/th/_lib/formatRelative/index.js new file mode 100644 index 00000000..fce6fee3 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee'ที่แล้วเวลา' p", + yesterday: "'เมื่อวานนี้เวลา' p", + today: "'วันนี้เวลา' p", + tomorrow: "'พรุ่งนี้เวลา' p", + nextWeek: "eeee 'เวลา' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/_lib/localize/index.js b/node_modules/date-fns/locale/th/_lib/localize/index.js new file mode 100644 index 00000000..655d780a --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/localize/index.js @@ -0,0 +1,132 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['B', 'คศ'], + abbreviated: ['BC', 'ค.ศ.'], + wide: ['ปีก่อนคริสตกาล', 'คริสต์ศักราช'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['ไตรมาสแรก', 'ไตรมาสที่สอง', 'ไตรมาสที่สาม', 'ไตรมาสที่สี่'] +}; +var dayValues = { + narrow: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + short: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + abbreviated: ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'], + wide: ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์'] +}; +var monthValues = { + narrow: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'], + abbreviated: ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'], + wide: ['มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'] +}; +var dayPeriodValues = { + narrow: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + }, + abbreviated: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + }, + wide: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'เช้า', + afternoon: 'บ่าย', + evening: 'เย็น', + night: 'กลางคืน' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + }, + abbreviated: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + }, + wide: { + am: 'ก่อนเที่ยง', + pm: 'หลังเที่ยง', + midnight: 'เที่ยงคืน', + noon: 'เที่ยง', + morning: 'ตอนเช้า', + afternoon: 'ตอนกลางวัน', + evening: 'ตอนเย็น', + night: 'ตอนกลางคืน' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/_lib/match/index.js b/node_modules/date-fns/locale/th/_lib/match/index.js new file mode 100644 index 00000000..1c6b1391 --- /dev/null +++ b/node_modules/date-fns/locale/th/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^\d+/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^([bB]|[aA]|คศ)/i, + abbreviated: /^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i, + wide: /^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i +}; +var parseEraPatterns = { + any: [/^[bB]/i, /^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^ไตรมาส(ที่)? ?[1234]/i +}; +var parseQuarterPatterns = { + any: [/(1|แรก|หนึ่ง)/i, /(2|สอง)/i, /(3|สาม)/i, /(4|สี่)/i] +}; +var matchMonthPatterns = { + narrow: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i, + abbreviated: /^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i, + wide: /^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i +}; +var parseMonthPatterns = { + wide: [/^มก/i, /^กุม/i, /^มี/i, /^เม/i, /^พฤษ/i, /^มิ/i, /^กรก/i, /^ส/i, /^กัน/i, /^ต/i, /^พฤศ/i, /^ธ/i], + any: [/^ม\.?ค\.?/i, /^ก\.?พ\.?/i, /^มี\.?ค\.?/i, /^เม\.?ย\.?/i, /^พ\.?ค\.?/i, /^มิ\.?ย\.?/i, /^ก\.?ค\.?/i, /^ส\.?ค\.?/i, /^ก\.?ย\.?/i, /^ต\.?ค\.?/i, /^พ\.?ย\.?/i, /^ธ\.?ค\.?/i] +}; +var matchDayPatterns = { + narrow: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + short: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + abbreviated: /^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i, + wide: /^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i +}; +var parseDayPatterns = { + wide: [/^อา/i, /^จั/i, /^อั/i, /^พุธ/i, /^พฤ/i, /^ศ/i, /^เส/i], + any: [/^อา/i, /^จ/i, /^อ/i, /^พ(?!ฤ)/i, /^พฤ/i, /^ศ/i, /^ส/i] +}; +var matchDayPeriodPatterns = { + any: /^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ก่อนเที่ยง/i, + pm: /^หลังเที่ยง/i, + midnight: /^เที่ยงคืน/i, + noon: /^เที่ยง/i, + morning: /เช้า/i, + afternoon: /บ่าย/i, + evening: /เย็น/i, + night: /กลางคืน/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/index.d.ts b/node_modules/date-fns/locale/th/index.d.ts new file mode 100644 index 00000000..944dd874 --- /dev/null +++ b/node_modules/date-fns/locale/th/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { th } from 'date-fns/locale' +export default th diff --git a/node_modules/date-fns/locale/th/index.js b/node_modules/date-fns/locale/th/index.js new file mode 100644 index 00000000..29251b42 --- /dev/null +++ b/node_modules/date-fns/locale/th/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Thai locale. + * @language Thai + * @iso-639-2 tha + * @author Athiwat Hirunworawongkun [@athivvat]{@link https://github.com/athivvat} + * @author [@hawkup]{@link https://github.com/hawkup} + * @author Jirawat I. [@nodtem66]{@link https://github.com/nodtem66} + */ +var locale = { + code: 'th', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/th/index.js.flow b/node_modules/date-fns/locale/th/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/th/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/th/package.json b/node_modules/date-fns/locale/th/package.json new file mode 100644 index 00000000..da5a7618 --- /dev/null +++ b/node_modules/date-fns/locale/th/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/th/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js new file mode 100644 index 00000000..6785dfaa --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'bir saniyeden az', + other: '{{count}} saniyeden az' + }, + xSeconds: { + one: '1 saniye', + other: '{{count}} saniye' + }, + halfAMinute: 'yarım dakika', + lessThanXMinutes: { + one: 'bir dakikadan az', + other: '{{count}} dakikadan az' + }, + xMinutes: { + one: '1 dakika', + other: '{{count}} dakika' + }, + aboutXHours: { + one: 'yaklaşık 1 saat', + other: 'yaklaşık {{count}} saat' + }, + xHours: { + one: '1 saat', + other: '{{count}} saat' + }, + xDays: { + one: '1 gün', + other: '{{count}} gün' + }, + aboutXWeeks: { + one: 'yaklaşık 1 hafta', + other: 'yaklaşık {{count}} hafta' + }, + xWeeks: { + one: '1 hafta', + other: '{{count}} hafta' + }, + aboutXMonths: { + one: 'yaklaşık 1 ay', + other: 'yaklaşık {{count}} ay' + }, + xMonths: { + one: '1 ay', + other: '{{count}} ay' + }, + aboutXYears: { + one: 'yaklaşık 1 yıl', + other: 'yaklaşık {{count}} yıl' + }, + xYears: { + one: '1 yıl', + other: '{{count}} yıl' + }, + overXYears: { + one: '1 yıldan fazla', + other: '{{count}} yıldan fazla' + }, + almostXYears: { + one: 'neredeyse 1 yıl', + other: 'neredeyse {{count}} yıl' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', count.toString()); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' sonra'; + } else { + return result + ' önce'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/formatLong/index.js b/node_modules/date-fns/locale/tr/_lib/formatLong/index.js new file mode 100644 index 00000000..7e6ac923 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'd MMMM y EEEE', + long: 'd MMMM y', + medium: 'd MMM y', + short: 'dd.MM.yyyy' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'saat' {{time}}", + long: "{{date}} 'saat' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js b/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js new file mode 100644 index 00000000..11770ddd --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'geçen hafta' eeee 'saat' p", + yesterday: "'dün saat' p", + today: "'bugün saat' p", + tomorrow: "'yarın saat' p", + nextWeek: "eeee 'saat' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/localize/index.js b/node_modules/date-fns/locale/tr/_lib/localize/index.js new file mode 100644 index 00000000..cd5550e6 --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/localize/index.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['MÖ', 'MS'], + abbreviated: ['MÖ', 'MS'], + wide: ['Milattan Önce', 'Milattan Sonra'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1Ç', '2Ç', '3Ç', '4Ç'], + wide: ['İlk çeyrek', 'İkinci Çeyrek', 'Üçüncü çeyrek', 'Son çeyrek'] +}; +var monthValues = { + narrow: ['O', 'Ş', 'M', 'N', 'M', 'H', 'T', 'A', 'E', 'E', 'K', 'A'], + abbreviated: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'], + wide: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'] +}; +var dayValues = { + narrow: ['P', 'P', 'S', 'Ç', 'P', 'C', 'C'], + short: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'], + abbreviated: ['Paz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'], + wide: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'] +}; +var dayPeriodValues = { + narrow: { + am: 'öö', + pm: 'ös', + midnight: 'gy', + noon: 'ö', + morning: 'sa', + afternoon: 'ös', + evening: 'ak', + night: 'ge' + }, + abbreviated: { + am: 'ÖÖ', + pm: 'ÖS', + midnight: 'gece yarısı', + noon: 'öğle', + morning: 'sabah', + afternoon: 'öğleden sonra', + evening: 'akşam', + night: 'gece' + }, + wide: { + am: 'Ö.Ö.', + pm: 'Ö.S.', + midnight: 'gece yarısı', + noon: 'öğle', + morning: 'sabah', + afternoon: 'öğleden sonra', + evening: 'akşam', + night: 'gece' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'öö', + pm: 'ös', + midnight: 'gy', + noon: 'ö', + morning: 'sa', + afternoon: 'ös', + evening: 'ak', + night: 'ge' + }, + abbreviated: { + am: 'ÖÖ', + pm: 'ÖS', + midnight: 'gece yarısı', + noon: 'öğlen', + morning: 'sabahleyin', + afternoon: 'öğleden sonra', + evening: 'akşamleyin', + night: 'geceleyin' + }, + wide: { + am: 'ö.ö.', + pm: 'ö.s.', + midnight: 'gece yarısı', + noon: 'öğlen', + morning: 'sabahleyin', + afternoon: 'öğleden sonra', + evening: 'akşamleyin', + night: 'geceleyin' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + var number = Number(dirtyNumber); + return number + '.'; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return Number(quarter) - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/_lib/match/index.js b/node_modules/date-fns/locale/tr/_lib/match/index.js new file mode 100644 index 00000000..0b10cc4b --- /dev/null +++ b/node_modules/date-fns/locale/tr/_lib/match/index.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(\.)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(mö|ms)/i, + abbreviated: /^(mö|ms)/i, + wide: /^(milattan önce|milattan sonra)/i +}; +var parseEraPatterns = { + any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]ç/i, + wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i], + abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i], + wide: [/^(i|İ)lk çeyrek/i, /(i|İ)kinci çeyrek/i, /üçüncü çeyrek/i, /son çeyrek/i] +}; +var matchMonthPatterns = { + narrow: /^[oşmnhtaek]/i, + abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i, + wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i +}; +var parseMonthPatterns = { + narrow: [/^o/i, /^ş/i, /^m/i, /^n/i, /^m/i, /^h/i, /^t/i, /^a/i, /^e/i, /^e/i, /^k/i, /^a/i], + any: [/^o/i, /^ş/i, /^mar/i, /^n/i, /^may/i, /^h/i, /^t/i, /^ağ/i, /^ey/i, /^ek/i, /^k/i, /^ar/i] +}; +var matchDayPatterns = { + narrow: /^[psçc]/i, + short: /^(pz|pt|sa|ça|pe|cu|ct)/i, + abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i, + wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i +}; +var parseDayPatterns = { + narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i], + any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i], + wide: [/^pazar(?!tesi)/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma(?!rtesi)/i, /^cumartesi/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i, + any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ö\.?ö\.?/i, + pm: /^ö\.?s\.?/i, + midnight: /^(gy|gece yarısı)/i, + noon: /^öğ/i, + morning: /^sa/i, + afternoon: /^öğleden sonra/i, + evening: /^ak/i, + night: /^ge/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/index.d.ts b/node_modules/date-fns/locale/tr/index.d.ts new file mode 100644 index 00000000..d4c2e0ad --- /dev/null +++ b/node_modules/date-fns/locale/tr/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { tr } from 'date-fns/locale' +export default tr diff --git a/node_modules/date-fns/locale/tr/index.js b/node_modules/date-fns/locale/tr/index.js new file mode 100644 index 00000000..60664c04 --- /dev/null +++ b/node_modules/date-fns/locale/tr/index.js @@ -0,0 +1,50 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Turkish locale. + * @language Turkish + * @iso-639-2 tur + * @author Alpcan Aydın [@alpcanaydin]{@link https://github.com/alpcanaydin} + * @author Berkay Sargın [@berkaey]{@link https://github.com/berkaey} + * @author Fatih Bulut [@bulutfatih]{@link https://github.com/bulutfatih} + * @author Ismail Demirbilek [@dbtek]{@link https://github.com/dbtek} + * @author İsmail Kayar [@ikayar]{@link https://github.com/ikayar} + * + * + */ +var locale = { + code: 'tr', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/tr/index.js.flow b/node_modules/date-fns/locale/tr/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/tr/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/tr/package.json b/node_modules/date-fns/locale/tr/package.json new file mode 100644 index 00000000..eca88ff3 --- /dev/null +++ b/node_modules/date-fns/locale/tr/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/tr/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/types.js b/node_modules/date-fns/locale/types.js new file mode 100644 index 00000000..430afc16 --- /dev/null +++ b/node_modules/date-fns/locale/types.js @@ -0,0 +1,5 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/_lib/formatDistance/index.js b/node_modules/date-fns/locale/ug/_lib/formatDistance/index.js new file mode 100644 index 00000000..9ee0ba71 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'بىر سىكۇنت ئىچىدە', + other: 'سىكۇنت ئىچىدە {{count}}' + }, + xSeconds: { + one: 'بىر سىكۇنت', + other: 'سىكۇنت {{count}}' + }, + halfAMinute: 'يىرىم مىنۇت', + lessThanXMinutes: { + one: 'بىر مىنۇت ئىچىدە', + other: 'مىنۇت ئىچىدە {{count}}' + }, + xMinutes: { + one: 'بىر مىنۇت', + other: 'مىنۇت {{count}}' + }, + aboutXHours: { + one: 'تەخمىنەن بىر سائەت', + other: 'سائەت {{count}} تەخمىنەن' + }, + xHours: { + one: 'بىر سائەت', + other: 'سائەت {{count}}' + }, + xDays: { + one: 'بىر كۈن', + other: 'كۈن {{count}}' + }, + aboutXWeeks: { + one: 'تەخمىنەن بىرھەپتە', + other: 'ھەپتە {{count}} تەخمىنەن' + }, + xWeeks: { + one: 'بىرھەپتە', + other: 'ھەپتە {{count}}' + }, + aboutXMonths: { + one: 'تەخمىنەن بىر ئاي', + other: 'ئاي {{count}} تەخمىنەن' + }, + xMonths: { + one: 'بىر ئاي', + other: 'ئاي {{count}}' + }, + aboutXYears: { + one: 'تەخمىنەن بىر يىل', + other: 'يىل {{count}} تەخمىنەن' + }, + xYears: { + one: 'بىر يىل', + other: 'يىل {{count}}' + }, + overXYears: { + one: 'بىر يىلدىن ئارتۇق', + other: 'يىلدىن ئارتۇق {{count}}' + }, + almostXYears: { + one: 'ئاساسەن بىر يىل', + other: 'يىل {{count}} ئاساسەن' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result; + } else { + return result + ' بولدى'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/_lib/formatLong/index.js b/node_modules/date-fns/locale/ug/_lib/formatLong/index.js new file mode 100644 index 00000000..27b18079 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, MMMM do, y', + long: 'MMMM do, y', + medium: 'MMM d, y', + short: 'MM/dd/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss a zzzz', + long: 'h:mm:ss a z', + medium: 'h:mm:ss a', + short: 'h:mm a' +}; +var dateTimeFormats = { + full: "{{date}} 'دە' {{time}}", + long: "{{date}} 'دە' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/_lib/formatRelative/index.js b/node_modules/date-fns/locale/ug/_lib/formatRelative/index.js new file mode 100644 index 00000000..584e80fe --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'ئ‍ۆتكەن' eeee 'دە' p", + yesterday: "'تۈنۈگۈن دە' p", + today: "'بۈگۈن دە' p", + tomorrow: "'ئەتە دە' p", + nextWeek: "eeee 'دە' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/_lib/localize/index.js b/node_modules/date-fns/locale/ug/_lib/localize/index.js new file mode 100644 index 00000000..aa876661 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/localize/index.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['ب', 'ك'], + abbreviated: ['ب', 'ك'], + wide: ['مىيلادىدىن بۇرۇن', 'مىيلادىدىن كىيىن'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1', '2', '3', '4'], + wide: ['بىرىنجى چارەك', 'ئىككىنجى چارەك', 'ئۈچىنجى چارەك', 'تۆتىنجى چارەك'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['ي', 'ف', 'م', 'ا', 'م', 'ى', 'ى', 'ا', 'س', 'ۆ', 'ن', 'د'], + abbreviated: ['يانۋار', 'فېۋىرال', 'مارت', 'ئاپرىل', 'ماي', 'ئىيۇن', 'ئىيول', 'ئاۋغۇست', 'سىنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دىكابىر'], + wide: ['يانۋار', 'فېۋىرال', 'مارت', 'ئاپرىل', 'ماي', 'ئىيۇن', 'ئىيول', 'ئاۋغۇست', 'سىنتەبىر', 'ئۆكتەبىر', 'نويابىر', 'دىكابىر'] +}; +var dayValues = { + narrow: ['ي', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + short: ['ي', 'د', 'س', 'چ', 'پ', 'ج', 'ش'], + abbreviated: ['يەكشەنبە', 'دۈشەنبە', 'سەيشەنبە', 'چارشەنبە', 'پەيشەنبە', 'جۈمە', 'شەنبە'], + wide: ['يەكشەنبە', 'دۈشەنبە', 'سەيشەنبە', 'چارشەنبە', 'پەيشەنبە', 'جۈمە', 'شەنبە'] +}; +var dayPeriodValues = { + narrow: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + }, + abbreviated: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + }, + wide: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەن', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشىم', + night: 'كىچە' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + }, + abbreviated: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + }, + wide: { + am: 'ئە', + pm: 'چ', + midnight: 'ك', + noon: 'چ', + morning: 'ئەتىگەندە', + afternoon: 'چۈشتىن كىيىن', + evening: 'ئاخشامدا', + night: 'كىچىدە' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/_lib/match/index.js b/node_modules/date-fns/locale/ug/_lib/match/index.js new file mode 100644 index 00000000..ac64faa3 --- /dev/null +++ b/node_modules/date-fns/locale/ug/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(ب|ك)/i, + wide: /^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i +}; +var parseEraPatterns = { + any: [/^بۇرۇن/i, /^كىيىن/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^چ[1234]/i, + wide: /^چارەك [1234]/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + // eslint-disable-next-line no-misleading-character-class + narrow: /^[يفمئامئ‍ئاسۆند]/i, + abbreviated: /^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i, + wide: /^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i +}; +var parseMonthPatterns = { + narrow: [/^ي/i, /^ف/i, /^م/i, /^ا/i, /^م/i, /^ى‍/i, /^ى‍/i, /^ا‍/i, /^س/i, /^ۆ/i, /^ن/i, /^د/i], + any: [/^يان/i, /^فېۋ/i, /^مار/i, /^ئاپ/i, /^ماي/i, /^ئىيۇن/i, /^ئىيول/i, /^ئاۋ/i, /^سىن/i, /^ئۆك/i, /^نوي/i, /^دىك/i] +}; +var matchDayPatterns = { + narrow: /^[دسچپجشي]/i, + short: /^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, + abbreviated: /^(يە|دۈ|سە|چا|پە|جۈ|شە)/i, + wide: /^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i +}; +var parseDayPatterns = { + narrow: [/^ي/i, /^د/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i], + any: [/^ي/i, /^د/i, /^س/i, /^چ/i, /^پ/i, /^ج/i, /^ش/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i, + any: /^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^ئە/i, + pm: /^چ/i, + midnight: /^ك/i, + noon: /^چ/i, + morning: /ئەتىگەن/i, + afternoon: /چۈشتىن كىيىن/i, + evening: /ئاخشىم/i, + night: /كىچە/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/index.d.ts b/node_modules/date-fns/locale/ug/index.d.ts new file mode 100644 index 00000000..a67a6795 --- /dev/null +++ b/node_modules/date-fns/locale/ug/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { ug } from 'date-fns/locale' +export default ug diff --git a/node_modules/date-fns/locale/ug/index.js b/node_modules/date-fns/locale/ug/index.js new file mode 100644 index 00000000..48227c31 --- /dev/null +++ b/node_modules/date-fns/locale/ug/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Uighur locale + * @language Uighur + * @iso-639-2 uig + * @author Abduwaly M. [@abduwaly]{@link https://github.com/abduwaly} + */ +var locale = { + code: 'ug', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/ug/index.js.flow b/node_modules/date-fns/locale/ug/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/ug/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/ug/package.json b/node_modules/date-fns/locale/ug/package.json new file mode 100644 index 00000000..5ba51f2a --- /dev/null +++ b/node_modules/date-fns/locale/ug/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/ug/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js new file mode 100644 index 00000000..0fc1cb9b --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatDistance/index.js @@ -0,0 +1,240 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +function declension(scheme, count) { + // scheme for count=1 exists + if (scheme.one !== undefined && count === 1) { + return scheme.one; + } + + var rem10 = count % 10; + var rem100 = count % 100; // 1, 21, 31, ... + + if (rem10 === 1 && rem100 !== 11) { + return scheme.singularNominative.replace('{{count}}', String(count)); // 2, 3, 4, 22, 23, 24, 32 ... + } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) { + return scheme.singularGenitive.replace('{{count}}', String(count)); // 5, 6, 7, 8, 9, 10, 11, ... + } else { + return scheme.pluralGenitive.replace('{{count}}', String(count)); + } +} + +function buildLocalizeTokenFn(scheme) { + return function (count, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + if (scheme.future) { + return declension(scheme.future, count); + } else { + return 'за ' + declension(scheme.regular, count); + } + } else { + if (scheme.past) { + return declension(scheme.past, count); + } else { + return declension(scheme.regular, count) + ' тому'; + } + } + } else { + return declension(scheme.regular, count); + } + }; +} + +var halfAtMinute = function halfAtMinute(_, options) { + if (options && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return 'за півхвилини'; + } else { + return 'півхвилини тому'; + } + } + + return 'півхвилини'; +}; + +var formatDistanceLocale = { + lessThanXSeconds: buildLocalizeTokenFn({ + regular: { + one: 'менше секунди', + singularNominative: 'менше {{count}} секунди', + singularGenitive: 'менше {{count}} секунд', + pluralGenitive: 'менше {{count}} секунд' + }, + future: { + one: 'менше, ніж за секунду', + singularNominative: 'менше, ніж за {{count}} секунду', + singularGenitive: 'менше, ніж за {{count}} секунди', + pluralGenitive: 'менше, ніж за {{count}} секунд' + } + }), + xSeconds: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} секунда', + singularGenitive: '{{count}} секунди', + pluralGenitive: '{{count}} секунд' + }, + past: { + singularNominative: '{{count}} секунду тому', + singularGenitive: '{{count}} секунди тому', + pluralGenitive: '{{count}} секунд тому' + }, + future: { + singularNominative: 'за {{count}} секунду', + singularGenitive: 'за {{count}} секунди', + pluralGenitive: 'за {{count}} секунд' + } + }), + halfAMinute: halfAtMinute, + lessThanXMinutes: buildLocalizeTokenFn({ + regular: { + one: 'менше хвилини', + singularNominative: 'менше {{count}} хвилини', + singularGenitive: 'менше {{count}} хвилин', + pluralGenitive: 'менше {{count}} хвилин' + }, + future: { + one: 'менше, ніж за хвилину', + singularNominative: 'менше, ніж за {{count}} хвилину', + singularGenitive: 'менше, ніж за {{count}} хвилини', + pluralGenitive: 'менше, ніж за {{count}} хвилин' + } + }), + xMinutes: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} хвилина', + singularGenitive: '{{count}} хвилини', + pluralGenitive: '{{count}} хвилин' + }, + past: { + singularNominative: '{{count}} хвилину тому', + singularGenitive: '{{count}} хвилини тому', + pluralGenitive: '{{count}} хвилин тому' + }, + future: { + singularNominative: 'за {{count}} хвилину', + singularGenitive: 'за {{count}} хвилини', + pluralGenitive: 'за {{count}} хвилин' + } + }), + aboutXHours: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} години', + singularGenitive: 'близько {{count}} годин', + pluralGenitive: 'близько {{count}} годин' + }, + future: { + singularNominative: 'приблизно за {{count}} годину', + singularGenitive: 'приблизно за {{count}} години', + pluralGenitive: 'приблизно за {{count}} годин' + } + }), + xHours: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} годину', + singularGenitive: '{{count}} години', + pluralGenitive: '{{count}} годин' + } + }), + xDays: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} день', + singularGenitive: '{{count}} днi', + pluralGenitive: '{{count}} днів' + } + }), + aboutXWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} тижня', + singularGenitive: 'близько {{count}} тижнів', + pluralGenitive: 'близько {{count}} тижнів' + }, + future: { + singularNominative: 'приблизно за {{count}} тиждень', + singularGenitive: 'приблизно за {{count}} тижні', + pluralGenitive: 'приблизно за {{count}} тижнів' + } + }), + xWeeks: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} тиждень', + singularGenitive: '{{count}} тижні', + pluralGenitive: '{{count}} тижнів' + } + }), + aboutXMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} місяця', + singularGenitive: 'близько {{count}} місяців', + pluralGenitive: 'близько {{count}} місяців' + }, + future: { + singularNominative: 'приблизно за {{count}} місяць', + singularGenitive: 'приблизно за {{count}} місяці', + pluralGenitive: 'приблизно за {{count}} місяців' + } + }), + xMonths: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} місяць', + singularGenitive: '{{count}} місяці', + pluralGenitive: '{{count}} місяців' + } + }), + aboutXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'близько {{count}} року', + singularGenitive: 'близько {{count}} років', + pluralGenitive: 'близько {{count}} років' + }, + future: { + singularNominative: 'приблизно за {{count}} рік', + singularGenitive: 'приблизно за {{count}} роки', + pluralGenitive: 'приблизно за {{count}} років' + } + }), + xYears: buildLocalizeTokenFn({ + regular: { + singularNominative: '{{count}} рік', + singularGenitive: '{{count}} роки', + pluralGenitive: '{{count}} років' + } + }), + overXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'більше {{count}} року', + singularGenitive: 'більше {{count}} років', + pluralGenitive: 'більше {{count}} років' + }, + future: { + singularNominative: 'більше, ніж за {{count}} рік', + singularGenitive: 'більше, ніж за {{count}} роки', + pluralGenitive: 'більше, ніж за {{count}} років' + } + }), + almostXYears: buildLocalizeTokenFn({ + regular: { + singularNominative: 'майже {{count}} рік', + singularGenitive: 'майже {{count}} роки', + pluralGenitive: 'майже {{count}} років' + }, + future: { + singularNominative: 'майже за {{count}} рік', + singularGenitive: 'майже за {{count}} роки', + pluralGenitive: 'майже за {{count}} років' + } + }) +}; + +var formatDistance = function formatDistance(token, count, options) { + options = options || {}; + return formatDistanceLocale[token](count, options); +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/formatLong/index.js b/node_modules/date-fns/locale/uk/_lib/formatLong/index.js new file mode 100644 index 00000000..0240696d --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "EEEE, do MMMM y 'р.'", + long: "do MMMM y 'р.'", + medium: "d MMM y 'р.'", + short: 'dd.MM.y' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + full: "{{date}} 'о' {{time}}", + long: "{{date}} 'о' {{time}}", + medium: '{{date}}, {{time}}', + short: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js b/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js new file mode 100644 index 00000000..63a5e7ff --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/formatRelative/index.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = require("../../../../index.js"); + +var _index2 = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var accusativeWeekdays = ['неділю', 'понеділок', 'вівторок', 'середу', 'четвер', 'п’ятницю', 'суботу']; + +function lastWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у минулу " + weekday + " о' p"; + + case 1: + case 2: + case 4: + return "'у минулий " + weekday + " о' p"; + } +} + +function thisWeek(day) { + var weekday = accusativeWeekdays[day]; + return "'у " + weekday + " о' p"; +} + +function nextWeek(day) { + var weekday = accusativeWeekdays[day]; + + switch (day) { + case 0: + case 3: + case 5: + case 6: + return "'у наступну " + weekday + " о' p"; + + case 1: + case 2: + case 4: + return "'у наступний " + weekday + " о' p"; + } +} + +var lastWeekFormat = function lastWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return lastWeek(day); + } +}; + +var nextWeekFormat = function nextWeekFormat(dirtyDate, baseDate, options) { + var date = (0, _index.toDate)(dirtyDate); + var day = date.getUTCDay(); + + if ((0, _index2.default)(date, baseDate, options)) { + return thisWeek(day); + } else { + return nextWeek(day); + } +}; + +var formatRelativeLocale = { + lastWeek: lastWeekFormat, + yesterday: "'вчора о' p", + today: "'сьогодні о' p", + tomorrow: "'завтра о' p", + nextWeek: nextWeekFormat, + other: 'P' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/localize/index.js b/node_modules/date-fns/locale/uk/_lib/localize/index.js new file mode 100644 index 00000000..8d25664c --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/localize/index.js @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['до н.е.', 'н.е.'], + abbreviated: ['до н. е.', 'н. е.'], + wide: ['до нашої ери', 'нашої ери'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-й кв.', '2-й кв.', '3-й кв.', '4-й кв.'], + wide: ['1-й квартал', '2-й квартал', '3-й квартал', '4-й квартал'] +}; +var monthValues = { + // ДСТУ 3582:2013 + narrow: ['С', 'Л', 'Б', 'К', 'Т', 'Ч', 'Л', 'С', 'В', 'Ж', 'Л', 'Г'], + abbreviated: ['січ.', 'лют.', 'берез.', 'квіт.', 'трав.', 'черв.', 'лип.', 'серп.', 'верес.', 'жовт.', 'листоп.', 'груд.'], + wide: ['січень', 'лютий', 'березень', 'квітень', 'травень', 'червень', 'липень', 'серпень', 'вересень', 'жовтень', 'листопад', 'грудень'] +}; +var formattingMonthValues = { + narrow: ['С', 'Л', 'Б', 'К', 'Т', 'Ч', 'Л', 'С', 'В', 'Ж', 'Л', 'Г'], + abbreviated: ['січ.', 'лют.', 'берез.', 'квіт.', 'трав.', 'черв.', 'лип.', 'серп.', 'верес.', 'жовт.', 'листоп.', 'груд.'], + wide: ['січня', 'лютого', 'березня', 'квітня', 'травня', 'червня', 'липня', 'серпня', 'вересня', 'жовтня', 'листопада', 'грудня'] +}; +var dayValues = { + narrow: ['Н', 'П', 'В', 'С', 'Ч', 'П', 'С'], + short: ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'], + abbreviated: ['нед', 'пон', 'вів', 'сер', 'чтв', 'птн', 'суб'], + wide: ['неділя', 'понеділок', 'вівторок', 'середа', 'четвер', 'п’ятниця', 'субота'] +}; +var dayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранок', + afternoon: 'день', + evening: 'веч.', + night: 'ніч' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранок', + afternoon: 'день', + evening: 'веч.', + night: 'ніч' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'північ', + noon: 'полудень', + morning: 'ранок', + afternoon: 'день', + evening: 'вечір', + night: 'ніч' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + }, + abbreviated: { + am: 'ДП', + pm: 'ПП', + midnight: 'півн.', + noon: 'пол.', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + }, + wide: { + am: 'ДП', + pm: 'ПП', + midnight: 'північ', + noon: 'полудень', + morning: 'ранку', + afternoon: 'дня', + evening: 'веч.', + night: 'ночі' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var unit = String(options === null || options === void 0 ? void 0 : options.unit); + var number = Number(dirtyNumber); + var suffix; + + if (unit === 'date') { + if (number === 3 || number === 23) { + suffix = '-є'; + } else { + suffix = '-е'; + } + } else if (unit === 'minute' || unit === 'second' || unit === 'hour') { + suffix = '-а'; + } else { + suffix = '-й'; + } + + return number + suffix; +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/_lib/match/index.js b/node_modules/date-fns/locale/uk/_lib/match/index.js new file mode 100644 index 00000000..1fd1a9ad --- /dev/null +++ b/node_modules/date-fns/locale/uk/_lib/match/index.js @@ -0,0 +1,112 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(-?(е|й|є|а|я))?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^((до )?н\.?\s?е\.?)/i, + abbreviated: /^((до )?н\.?\s?е\.?)/i, + wide: /^(до нашої ери|нашої ери|наша ера)/i +}; +var parseEraPatterns = { + any: [/^д/i, /^н/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234](-?[иі]?й?)? кв.?/i, + wide: /^[1234](-?[иі]?й?)? квартал/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[слбктчвжг]/i, + abbreviated: /^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i, + wide: /^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i +}; +var parseMonthPatterns = { + narrow: [/^с/i, /^л/i, /^б/i, /^к/i, /^т/i, /^ч/i, /^л/i, /^с/i, /^в/i, /^ж/i, /^л/i, /^г/i], + any: [/^сі/i, /^лю/i, /^б/i, /^к/i, /^т/i, /^ч/i, /^лип/i, /^се/i, /^в/i, /^ж/i, /^лис/i, /^г/i] +}; +var matchDayPatterns = { + narrow: /^[нпвсч]/i, + short: /^(нд|пн|вт|ср|чт|пт|сб)\.?/i, + abbreviated: /^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i, + wide: /^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i +}; +var parseDayPatterns = { + narrow: [/^н/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i], + any: [/^н/i, /^п[он]/i, /^в/i, /^с[ер]/i, /^ч/i, /^п\W*?[ят]/i, /^с[уб]/i] +}; +var matchDayPeriodPatterns = { + narrow: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, + abbreviated: /^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i, + wide: /^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^дп/i, + pm: /^пп/i, + midnight: /^півн/i, + noon: /^пол/i, + morning: /^р/i, + afternoon: /^д[ен]/i, + evening: /^в/i, + night: /^н/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/index.d.ts b/node_modules/date-fns/locale/uk/index.d.ts new file mode 100644 index 00000000..972da889 --- /dev/null +++ b/node_modules/date-fns/locale/uk/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uk } from 'date-fns/locale' +export default uk diff --git a/node_modules/date-fns/locale/uk/index.js b/node_modules/date-fns/locale/uk/index.js new file mode 100644 index 00000000..c0d26d60 --- /dev/null +++ b/node_modules/date-fns/locale/uk/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Ukrainian locale. + * @language Ukrainian + * @iso-639-2 ukr + * @author Andrii Korzh [@korzhyk]{@link https://github.com/korzhyk} + * @author Andriy Shcherbyak [@shcherbyakdev]{@link https://github.com/shcherbyakdev} + */ +var locale = { + code: 'uk', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uk/index.js.flow b/node_modules/date-fns/locale/uk/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/uk/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/uk/package.json b/node_modules/date-fns/locale/uk/package.json new file mode 100644 index 00000000..2a8db8ab --- /dev/null +++ b/node_modules/date-fns/locale/uk/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/uk/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/index.js new file mode 100644 index 00000000..1fdf001e --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '1 сониядан кам', + other: '{{count}} сониядан кам' + }, + xSeconds: { + one: '1 сония', + other: '{{count}} сония' + }, + halfAMinute: 'ярим дақиқа', + lessThanXMinutes: { + one: '1 дақиқадан кам', + other: '{{count}} дақиқадан кам' + }, + xMinutes: { + one: '1 дақиқа', + other: '{{count}} дақиқа' + }, + aboutXHours: { + one: 'тахминан 1 соат', + other: 'тахминан {{count}} соат' + }, + xHours: { + one: '1 соат', + other: '{{count}} соат' + }, + xDays: { + one: '1 кун', + other: '{{count}} кун' + }, + aboutXWeeks: { + one: 'тахминан 1 хафта', + other: 'тахминан {{count}} хафта' + }, + xWeeks: { + one: '1 хафта', + other: '{{count}} хафта' + }, + aboutXMonths: { + one: 'тахминан 1 ой', + other: 'тахминан {{count}} ой' + }, + xMonths: { + one: '1 ой', + other: '{{count}} ой' + }, + aboutXYears: { + one: 'тахминан 1 йил', + other: 'тахминан {{count}} йил' + }, + xYears: { + one: '1 йил', + other: '{{count}} йил' + }, + overXYears: { + one: '1 йилдан кўп', + other: '{{count}} йилдан кўп' + }, + almostXYears: { + one: 'деярли 1 йил', + other: 'деярли {{count}} йил' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + 'дан кейин'; + } else { + return result + ' олдин'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong/index.js b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong/index.js new file mode 100644 index 00000000..d7430c15 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do MMMM, y', + medium: 'd MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'H:mm:ss zzzz', + long: 'H:mm:ss z', + medium: 'H:mm:ss', + short: 'H:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative/index.js b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative/index.js new file mode 100644 index 00000000..b9b0e4db --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'ўтган' eeee p 'да'", + yesterday: "'кеча' p 'да'", + today: "'бугун' p 'да'", + tomorrow: "'эртага' p 'да'", + nextWeek: "eeee p 'да'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/_lib/localize/index.js b/node_modules/date-fns/locale/uz-Cyrl/_lib/localize/index.js new file mode 100644 index 00000000..da0b7b1d --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/_lib/localize/index.js @@ -0,0 +1,92 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['М.А', 'М'], + abbreviated: ['М.А', 'М'], + wide: ['Милоддан Аввалги', 'Милодий'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['1-чор.', '2-чор.', '3-чор.', '4-чор.'], + wide: ['1-чорак', '2-чорак', '3-чорак', '4-чорак'] +}; +var monthValues = { + narrow: ['Я', 'Ф', 'М', 'А', 'М', 'И', 'И', 'А', 'С', 'О', 'Н', 'Д'], + abbreviated: ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'], + wide: ['январ', 'феврал', 'март', 'апрел', 'май', 'июн', 'июл', 'август', 'сентабр', 'октабр', 'ноябр', 'декабр'] +}; +var dayValues = { + narrow: ['Я', 'Д', 'С', 'Ч', 'П', 'Ж', 'Ш'], + short: ['як', 'ду', 'се', 'чо', 'па', 'жу', 'ша'], + abbreviated: ['якш', 'душ', 'сеш', 'чор', 'пай', 'жум', 'шан'], + wide: ['якшанба', 'душанба', 'сешанба', 'чоршанба', 'пайшанба', 'жума', 'шанба'] +}; +var dayPeriodValues = { + any: { + am: 'П.О.', + pm: 'П.К.', + midnight: 'ярим тун', + noon: 'пешин', + morning: 'эрталаб', + afternoon: 'пешиндан кейин', + evening: 'кечаси', + night: 'тун' + } +}; +var formattingDayPeriodValues = { + any: { + am: 'П.О.', + pm: 'П.К.', + midnight: 'ярим тун', + noon: 'пешин', + morning: 'эрталаб', + afternoon: 'пешиндан кейин', + evening: 'кечаси', + night: 'тун' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'any', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'any' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/_lib/match/index.js b/node_modules/date-fns/locale/uz-Cyrl/_lib/match/index.js new file mode 100644 index 00000000..4a408084 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/_lib/match/index.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(чи)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(м\.а|м\.)/i, + abbreviated: /^(м\.а|м\.)/i, + wide: /^(милоддан аввал|милоддан кейин)/i +}; +var parseEraPatterns = { + any: [/^м/i, /^а/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^[1234]-чор./i, + wide: /^[1234]-чорак/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[яфмамииасонд]/i, + abbreviated: /^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i, + wide: /^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i +}; +var parseMonthPatterns = { + narrow: [/^я/i, /^ф/i, /^м/i, /^а/i, /^м/i, /^и/i, /^и/i, /^а/i, /^с/i, /^о/i, /^н/i, /^д/i], + any: [/^я/i, /^ф/i, /^мар/i, /^ап/i, /^май/i, /^июн/i, /^июл/i, /^ав/i, /^с/i, /^о/i, /^н/i, /^д/i] +}; +var matchDayPatterns = { + narrow: /^[ядсчпжш]/i, + short: /^(як|ду|се|чо|па|жу|ша)/i, + abbreviated: /^(якш|душ|сеш|чор|пай|жум|шан)/i, + wide: /^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i +}; +var parseDayPatterns = { + narrow: [/^я/i, /^д/i, /^с/i, /^ч/i, /^п/i, /^ж/i, /^ш/i], + any: [/^як/i, /^ду/i, /^се/i, /^чор/i, /^пай/i, /^жу/i, /^шан/i] +}; +var matchDayPeriodPatterns = { + any: /^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^п\.о\./i, + pm: /^п\.к\./i, + midnight: /^ярим тун/i, + noon: /^пешиндан кейин/i, + morning: /эрталаб/i, + afternoon: /пешиндан кейин/i, + evening: /кечаси/i, + night: /тун/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/index.d.ts b/node_modules/date-fns/locale/uz-Cyrl/index.d.ts new file mode 100644 index 00000000..0b0ba8d2 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uzCyrl } from 'date-fns/locale' +export default uzCyrl diff --git a/node_modules/date-fns/locale/uz-Cyrl/index.js b/node_modules/date-fns/locale/uz-Cyrl/index.js new file mode 100644 index 00000000..6f6929c1 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Uzbek Cyrillic locale. + * @language Uzbek + * @iso-639-2 uzb + * @author Kamronbek Shodmonov [@kamronbek28]{@link https://github.com/kamronbek28} + */ +var locale = { + code: 'uz-Cyrl', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz-Cyrl/index.js.flow b/node_modules/date-fns/locale/uz-Cyrl/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/uz-Cyrl/package.json b/node_modules/date-fns/locale/uz-Cyrl/package.json new file mode 100644 index 00000000..ac4c6ca0 --- /dev/null +++ b/node_modules/date-fns/locale/uz-Cyrl/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/uz-Cyrl/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/_lib/formatDistance/index.js b/node_modules/date-fns/locale/uz/_lib/formatDistance/index.js new file mode 100644 index 00000000..71da1afb --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'sekunddan kam', + other: '{{count}} sekunddan kam' + }, + xSeconds: { + one: '1 sekund', + other: '{{count}} sekund' + }, + halfAMinute: 'yarim minut', + lessThanXMinutes: { + one: 'bir minutdan kam', + other: '{{count}} minutdan kam' + }, + xMinutes: { + one: '1 minut', + other: '{{count}} minut' + }, + aboutXHours: { + one: 'tahminan 1 soat', + other: 'tahminan {{count}} soat' + }, + xHours: { + one: '1 soat', + other: '{{count}} soat' + }, + xDays: { + one: '1 kun', + other: '{{count}} kun' + }, + aboutXWeeks: { + one: 'tahminan 1 hafta', + other: 'tahminan {{count}} hafta' + }, + xWeeks: { + one: '1 hafta', + other: '{{count}} hafta' + }, + aboutXMonths: { + one: 'tahminan 1 oy', + other: 'tahminan {{count}} oy' + }, + xMonths: { + one: '1 oy', + other: '{{count}} oy' + }, + aboutXYears: { + one: 'tahminan 1 yil', + other: 'tahminan {{count}} yil' + }, + xYears: { + one: '1 yil', + other: '{{count}} yil' + }, + overXYears: { + one: "1 yildan ko'p", + other: "{{count}} yildan ko'p" + }, + almostXYears: { + one: 'deyarli 1 yil', + other: 'deyarli {{count}} yil' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' dan keyin'; + } else { + return result + ' oldin'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/_lib/formatLong/index.js b/node_modules/date-fns/locale/uz/_lib/formatLong/index.js new file mode 100644 index 00000000..9bb8a376 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/formatLong/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: 'EEEE, do MMMM, y', + long: 'do MMMM, y', + medium: 'd MMM, y', + short: 'dd/MM/yyyy' +}; +var timeFormats = { + full: 'h:mm:ss zzzz', + long: 'h:mm:ss z', + medium: 'h:mm:ss', + short: 'h:mm' +}; +var dateTimeFormats = { + any: '{{date}}, {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'any' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/_lib/formatRelative/index.js b/node_modules/date-fns/locale/uz/_lib/formatRelative/index.js new file mode 100644 index 00000000..6ff9d2d1 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'oldingi' eeee p 'da'", + yesterday: "'kecha' p 'da'", + today: "'bugun' p 'da'", + tomorrow: "'ertaga' p 'da'", + nextWeek: "eeee p 'da'", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/_lib/localize/index.js b/node_modules/date-fns/locale/uz/_lib/localize/index.js new file mode 100644 index 00000000..bc143004 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/localize/index.js @@ -0,0 +1,136 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['M.A', 'M.'], + abbreviated: ['M.A', 'M.'], + wide: ['Miloddan Avvalgi', 'Milodiy'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['CH.1', 'CH.2', 'CH.3', 'CH.4'], + wide: ['1-chi chorak', '2-chi chorak', '3-chi chorak', '4-chi chorak'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['Y', 'F', 'M', 'A', 'M', 'I', 'I', 'A', 'S', 'O', 'N', 'D'], + abbreviated: ['Yan', 'Fev', 'Mar', 'Apr', 'May', 'Iyun', 'Iyul', 'Avg', 'Sen', 'Okt', 'Noy', 'Dek'], + wide: ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'Iyun', 'Iyul', 'Avgust', 'Sentabr', 'Oktabr', 'Noyabr', 'Dekabr'] +}; +var dayValues = { + narrow: ['Y', 'D', 'S', 'CH', 'P', 'J', 'SH'], + short: ['Ya', 'Du', 'Se', 'Cho', 'Pa', 'Ju', 'Sha'], + abbreviated: ['Yak', 'Dush', 'Sesh', 'Chor', 'Pay', 'Jum', 'Shan'], + wide: ['Yakshanba', 'Dushanba', 'Seshanba', 'Chorshanba', 'Payshanba', 'Juma', 'Shanba'] +}; +var dayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'y.t', + noon: 'p.', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'a', + pm: 'p', + midnight: 'y.t', + noon: 'p.', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + }, + wide: { + am: 'a.m.', + pm: 'p.m.', + midnight: 'yarim tun', + noon: 'peshin', + morning: 'ertalab', + afternoon: 'tushdan keyin', + evening: 'kechqurun', + night: 'tun' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { + return String(dirtyNumber); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/_lib/match/index.js b/node_modules/date-fns/locale/uz/_lib/match/index.js new file mode 100644 index 00000000..74240012 --- /dev/null +++ b/node_modules/date-fns/locale/uz/_lib/match/index.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)(chi)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(m\.a|m\.)/i, + abbreviated: /^(m\.a\.?\s?m\.?)/i, + wide: /^(miloddan avval|miloddan keyin)/i +}; +var parseEraPatterns = { + any: [/^b/i, /^(a|c)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^q[1234]/i, + wide: /^[1234](chi)? chorak/i +}; +var parseQuarterPatterns = { + any: [/1/i, /2/i, /3/i, /4/i] +}; +var matchMonthPatterns = { + narrow: /^[yfmasond]/i, + abbreviated: /^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i, + wide: /^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i +}; +var parseMonthPatterns = { + narrow: [/^y/i, /^f/i, /^m/i, /^a/i, /^m/i, /^i/i, /^i/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], + any: [/^ya/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^iyun/i, /^iyul/i, /^av/i, /^s/i, /^o/i, /^n/i, /^d/i] +}; +var matchDayPatterns = { + narrow: /^[ydschj]/i, + short: /^(ya|du|se|cho|pa|ju|sha)/i, + abbreviated: /^(yak|dush|sesh|chor|pay|jum|shan)/i, + wide: /^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i +}; +var parseDayPatterns = { + narrow: [/^y/i, /^d/i, /^s/i, /^ch/i, /^p/i, /^j/i, /^sh/i], + any: [/^ya/i, /^d/i, /^se/i, /^ch/i, /^p/i, /^j/i, /^sh/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i, + any: /^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^a/i, + pm: /^p/i, + midnight: /^y\.t/i, + noon: /^pe/i, + morning: /ertalab/i, + afternoon: /tushdan keyin/i, + evening: /kechqurun/i, + night: /tun/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/index.d.ts b/node_modules/date-fns/locale/uz/index.d.ts new file mode 100644 index 00000000..e10b1f6a --- /dev/null +++ b/node_modules/date-fns/locale/uz/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { uz } from 'date-fns/locale' +export default uz diff --git a/node_modules/date-fns/locale/uz/index.js b/node_modules/date-fns/locale/uz/index.js new file mode 100644 index 00000000..3a7cbec7 --- /dev/null +++ b/node_modules/date-fns/locale/uz/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Uzbek locale. + * @language Uzbek + * @iso-639-2 uzb + * @author Mukhammadali [@mukhammadali]{@link https://github.com/Mukhammadali} + */ +var locale = { + code: 'uz', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/uz/index.js.flow b/node_modules/date-fns/locale/uz/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/uz/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/uz/package.json b/node_modules/date-fns/locale/uz/package.json new file mode 100644 index 00000000..7e4fbd07 --- /dev/null +++ b/node_modules/date-fns/locale/uz/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/uz/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/_lib/formatDistance/index.js b/node_modules/date-fns/locale/vi/_lib/formatDistance/index.js new file mode 100644 index 00000000..baa4aaf5 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: 'dưới 1 giây', + other: 'dưới {{count}} giây' + }, + xSeconds: { + one: '1 giây', + other: '{{count}} giây' + }, + halfAMinute: 'nửa phút', + lessThanXMinutes: { + one: 'dưới 1 phút', + other: 'dưới {{count}} phút' + }, + xMinutes: { + one: '1 phút', + other: '{{count}} phút' + }, + aboutXHours: { + one: 'khoảng 1 giờ', + other: 'khoảng {{count}} giờ' + }, + xHours: { + one: '1 giờ', + other: '{{count}} giờ' + }, + xDays: { + one: '1 ngày', + other: '{{count}} ngày' + }, + aboutXWeeks: { + one: 'khoảng 1 tuần', + other: 'khoảng {{count}} tuần' + }, + xWeeks: { + one: '1 tuần', + other: '{{count}} tuần' + }, + aboutXMonths: { + one: 'khoảng 1 tháng', + other: 'khoảng {{count}} tháng' + }, + xMonths: { + one: '1 tháng', + other: '{{count}} tháng' + }, + aboutXYears: { + one: 'khoảng 1 năm', + other: 'khoảng {{count}} năm' + }, + xYears: { + one: '1 năm', + other: '{{count}} năm' + }, + overXYears: { + one: 'hơn 1 năm', + other: 'hơn {{count}} năm' + }, + almostXYears: { + one: 'gần 1 năm', + other: 'gần {{count}} năm' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + ' nữa'; + } else { + return result + ' trước'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/_lib/formatLong/index.js b/node_modules/date-fns/locale/vi/_lib/formatLong/index.js new file mode 100644 index 00000000..28bae802 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/formatLong/index.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + // thứ Sáu, ngày 25 tháng 08 năm 2017 + full: "EEEE, 'ngày' d MMMM 'năm' y", + // ngày 25 tháng 08 năm 2017 + long: "'ngày' d MMMM 'năm' y", + // 25 thg 08 năm 2017 + medium: "d MMM 'năm' y", + // 25/08/2017 + short: 'dd/MM/y' +}; +var timeFormats = { + full: 'HH:mm:ss zzzz', + long: 'HH:mm:ss z', + medium: 'HH:mm:ss', + short: 'HH:mm' +}; +var dateTimeFormats = { + // thứ Sáu, ngày 25 tháng 08 năm 2017 23:25:59 + full: '{{date}} {{time}}', + // ngày 25 tháng 08 năm 2017 23:25 + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/_lib/formatRelative/index.js b/node_modules/date-fns/locale/vi/_lib/formatRelative/index.js new file mode 100644 index 00000000..2c625f74 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "eeee 'tuần trước vào lúc' p", + yesterday: "'hôm qua vào lúc' p", + today: "'hôm nay vào lúc' p", + tomorrow: "'ngày mai vào lúc' p", + nextWeek: "eeee 'tới vào lúc' p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/_lib/localize/index.js b/node_modules/date-fns/locale/vi/_lib/localize/index.js new file mode 100644 index 00000000..b172bac6 --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/localize/index.js @@ -0,0 +1,223 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Vietnamese locale reference: http://www.localeplanet.com/icu/vi-VN/index.html +// Capitalization reference: http://hcmup.edu.vn/index.php?option=com_content&view=article&id=4106%3Avit-hoa-trong-vn-bn-hanh-chinh&catid=2345%3Atham-kho&Itemid=4103&lang=vi&site=134 +var eraValues = { + narrow: ['TCN', 'SCN'], + abbreviated: ['trước CN', 'sau CN'], + wide: ['trước Công Nguyên', 'sau Công Nguyên'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + wide: ['Quý 1', 'Quý 2', 'Quý 3', 'Quý 4'] +}; +var formattingQuarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], + // I notice many news outlet use this "quý II/2018" + wide: ['quý I', 'quý II', 'quý III', 'quý IV'] +}; // Note: in English, the names of days of the week and months are capitalized. +// If you are making a new locale based on this one, check if the same is true for the language you're working on. +// Generally, formatted dates should look like they are in the middle of a sentence, +// e.g. in Spanish language the weekdays and months should be in the lowercase. + +var monthValues = { + narrow: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'], + abbreviated: ['Thg 1', 'Thg 2', 'Thg 3', 'Thg 4', 'Thg 5', 'Thg 6', 'Thg 7', 'Thg 8', 'Thg 9', 'Thg 10', 'Thg 11', 'Thg 12'], + wide: ['Tháng Một', 'Tháng Hai', 'Tháng Ba', 'Tháng Tư', 'Tháng Năm', 'Tháng Sáu', 'Tháng Bảy', 'Tháng Tám', 'Tháng Chín', 'Tháng Mười', 'Tháng Mười Một', 'Tháng Mười Hai'] +}; // In Vietnamese date formatting, month number less than 10 expected to have leading zero + +var formattingMonthValues = { + narrow: ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], + abbreviated: ['thg 1', 'thg 2', 'thg 3', 'thg 4', 'thg 5', 'thg 6', 'thg 7', 'thg 8', 'thg 9', 'thg 10', 'thg 11', 'thg 12'], + wide: ['tháng 01', 'tháng 02', 'tháng 03', 'tháng 04', 'tháng 05', 'tháng 06', 'tháng 07', 'tháng 08', 'tháng 09', 'tháng 10', 'tháng 11', 'tháng 12'] +}; +var dayValues = { + narrow: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'], + short: ['CN', 'Th 2', 'Th 3', 'Th 4', 'Th 5', 'Th 6', 'Th 7'], + abbreviated: ['CN', 'Thứ 2', 'Thứ 3', 'Thứ 4', 'Thứ 5', 'Thứ 6', 'Thứ 7'], + wide: ['Chủ Nhật', 'Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'] +}; // Vietnamese are used to AM/PM borrowing from English, hence `narrow` and +// `abbreviated` are just like English but I'm leaving the `wide` +// format being localized with abbreviations found in some systems (SÁng / CHiều); +// however, personally, I don't think `Chiều` sounds appropriate for `PM` + +var dayPeriodValues = { + // narrow date period is extremely rare in Vietnamese + // I used abbreviated form for noon, morning and afternoon + // which are regconizable by Vietnamese, others cannot be any shorter + narrow: { + am: 'am', + pm: 'pm', + midnight: 'nửa đêm', + noon: 'tr', + morning: 'sg', + afternoon: 'ch', + evening: 'tối', + night: 'đêm' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + }, + wide: { + am: 'SA', + pm: 'CH', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: 'am', + pm: 'pm', + midnight: 'nửa đêm', + noon: 'tr', + morning: 'sg', + afternoon: 'ch', + evening: 'tối', + night: 'đêm' + }, + abbreviated: { + am: 'AM', + pm: 'PM', + midnight: 'nửa đêm', + noon: 'trưa', + morning: 'sáng', + afternoon: 'chiều', + evening: 'tối', + night: 'đêm' + }, + wide: { + am: 'SA', + pm: 'CH', + midnight: 'nửa đêm', + noon: 'giữa trưa', + morning: 'vào buổi sáng', + afternoon: 'vào buổi chiều', + evening: 'vào buổi tối', + night: 'vào ban đêm' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + var unit = options === null || options === void 0 ? void 0 : options.unit; + + if (unit === 'quarter') { + // many news outlets use "quý I"... + switch (number) { + case 1: + return 'I'; + + case 2: + return 'II'; + + case 3: + return 'III'; + + case 4: + return 'IV'; + } + } else if (unit === 'day') { + // day of week in Vietnamese has ordinal number meaning, + // so we should use them, else it'll sound weird + switch (number) { + case 1: + return 'thứ 2'; + // meaning 2nd day but it's the first day of the week :D + + case 2: + return 'thứ 3'; + // meaning 3rd day + + case 3: + return 'thứ 4'; + // meaning 4th day and so on + + case 4: + return 'thứ 5'; + + case 5: + return 'thứ 6'; + + case 6: + return 'thứ 7'; + + case 7: + return 'chủ nhật'; + // meaning Sunday, there's no 8th day :D + } + } else if (unit === 'week') { + if (number === 1) { + return 'thứ nhất'; + } else { + return 'thứ ' + number; + } + } else if (unit === 'dayOfYear') { + if (number === 1) { + return 'đầu tiên'; + } else { + return 'thứ ' + number; + } + } // there are no different forms of ordinal numbers in Vietnamese + + + return String(number); +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + formattingValues: formattingQuarterValues, + defaultFormattingWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide', + formattingValues: formattingMonthValues, + defaultFormattingWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/_lib/match/index.js b/node_modules/date-fns/locale/vi/_lib/match/index.js new file mode 100644 index 00000000..c178beba --- /dev/null +++ b/node_modules/date-fns/locale/vi/_lib/match/index.js @@ -0,0 +1,119 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(\d+)/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(tcn|scn)/i, + abbreviated: /^(trước CN|sau CN)/i, + wide: /^(trước Công Nguyên|sau Công Nguyên)/i +}; +var parseEraPatterns = { + any: [/^t/i, /^s/i] +}; +var matchQuarterPatterns = { + narrow: /^([1234]|i{1,3}v?)/i, + abbreviated: /^q([1234]|i{1,3}v?)/i, + wide: /^quý ([1234]|i{1,3}v?)/i +}; +var parseQuarterPatterns = { + any: [/(1|i)$/i, /(2|ii)$/i, /(3|iii)$/i, /(4|iv)$/i] +}; +var matchMonthPatterns = { + // month number may contain leading 0, 'thg' prefix may have space, underscore or empty before number + // note the order of '1' since it is a sub-string of '10', so must be lower priority + narrow: /^(0?[2-9]|10|11|12|0?1)/i, + // note the order of 'thg 1' since it is sub-string of 'thg 10', so must be lower priority + abbreviated: /^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i, + // note the order of 'Mười' since it is sub-string of Mười Một, so must be lower priority + wide: /^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i +}; +var parseMonthPatterns = { + narrow: [/0?1$/i, /0?2/i, /3/, /4/, /5/, /6/, /7/, /8/, /9/, /10/, /11/, /12/], + abbreviated: [/^thg[ _]?0?1(?!\d)/i, /^thg[ _]?0?2/i, /^thg[ _]?0?3/i, /^thg[ _]?0?4/i, /^thg[ _]?0?5/i, /^thg[ _]?0?6/i, /^thg[ _]?0?7/i, /^thg[ _]?0?8/i, /^thg[ _]?0?9/i, /^thg[ _]?10/i, /^thg[ _]?11/i, /^thg[ _]?12/i], + wide: [/^tháng ?(Một|0?1(?!\d))/i, /^tháng ?(Hai|0?2)/i, /^tháng ?(Ba|0?3)/i, /^tháng ?(Tư|0?4)/i, /^tháng ?(Năm|0?5)/i, /^tháng ?(Sáu|0?6)/i, /^tháng ?(Bảy|0?7)/i, /^tháng ?(Tám|0?8)/i, /^tháng ?(Chín|0?9)/i, /^tháng ?(Mười|10)/i, /^tháng ?(Mười ?Một|11)/i, /^tháng ?(Mười ?Hai|12)/i] +}; +var matchDayPatterns = { + narrow: /^(CN|T2|T3|T4|T5|T6|T7)/i, + short: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, + abbreviated: /^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i, + wide: /^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i +}; +var parseDayPatterns = { + narrow: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + short: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + abbreviated: [/CN/i, /2/i, /3/i, /4/i, /5/i, /6/i, /7/i], + wide: [/(Chủ|Chúa) ?Nhật/i, /Hai/i, /Ba/i, /Tư/i, /Năm/i, /Sáu/i, /Bảy/i] +}; +var matchDayPeriodPatterns = { + narrow: /^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, + abbreviated: /^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i, + wide: /^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^(a|sa)/i, + pm: /^(p|ch[^i]*)/i, + midnight: /nửa đêm/i, + noon: /trưa/i, + morning: /sáng/i, + afternoon: /chiều/i, + evening: /tối/i, + night: /^đêm/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'wide' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/index.d.ts b/node_modules/date-fns/locale/vi/index.d.ts new file mode 100644 index 00000000..17be5cae --- /dev/null +++ b/node_modules/date-fns/locale/vi/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { vi } from 'date-fns/locale' +export default vi diff --git a/node_modules/date-fns/locale/vi/index.js b/node_modules/date-fns/locale/vi/index.js new file mode 100644 index 00000000..3b44571b --- /dev/null +++ b/node_modules/date-fns/locale/vi/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Vietnamese locale (Vietnam). + * @language Vietnamese + * @iso-639-2 vie + * @author Thanh Tran [@trongthanh]{@link https://github.com/trongthanh} + * @author Leroy Hopson [@lihop]{@link https://github.com/lihop} + */ +var locale = { + code: 'vi', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 1 + /* First week of new year contains Jan 1st */ + + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/vi/index.js.flow b/node_modules/date-fns/locale/vi/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/vi/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/vi/package.json b/node_modules/date-fns/locale/vi/package.json new file mode 100644 index 00000000..730737ac --- /dev/null +++ b/node_modules/date-fns/locale/vi/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/vi/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/_lib/formatDistance/index.js b/node_modules/date-fns/locale/zh-CN/_lib/formatDistance/index.js new file mode 100644 index 00000000..63cf5a3e --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '不到 1 秒', + other: '不到 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分钟', + lessThanXMinutes: { + one: '不到 1 分钟', + other: '不到 {{count}} 分钟' + }, + xMinutes: { + one: '1 分钟', + other: '{{count}} 分钟' + }, + xHours: { + one: '1 小时', + other: '{{count}} 小时' + }, + aboutXHours: { + one: '大约 1 小时', + other: '大约 {{count}} 小时' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大约 1 个星期', + other: '大约 {{count}} 个星期' + }, + xWeeks: { + one: '1 个星期', + other: '{{count}} 个星期' + }, + aboutXMonths: { + one: '大约 1 个月', + other: '大约 {{count}} 个月' + }, + xMonths: { + one: '1 个月', + other: '{{count}} 个月' + }, + aboutXYears: { + one: '大约 1 年', + other: '大约 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超过 1 年', + other: '超过 {{count}} 年' + }, + almostXYears: { + one: '将近 1 年', + other: '将近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '内'; + } else { + return result + '前'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/_lib/formatLong/index.js b/node_modules/date-fns/locale/zh-CN/_lib/formatLong/index.js new file mode 100644 index 00000000..9707d408 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/_lib/formatRelative/index.js b/node_modules/date-fns/locale/zh-CN/_lib/formatRelative/index.js new file mode 100644 index 00000000..cbc9c7c2 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/formatRelative/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../../_lib/isSameUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function checkWeek(date, baseDate, options) { + var baseFormat = 'eeee p'; + + if ((0, _index.default)(date, baseDate, options)) { + return baseFormat; // in same week + } else if (date.getTime() > baseDate.getTime()) { + return "'下个'" + baseFormat; // in next week + } + + return "'上个'" + baseFormat; // in last week +} + +var formatRelativeLocale = { + lastWeek: checkWeek, + // days before yesterday, maybe in this week or last week + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: checkWeek, + // days after tomorrow, maybe in this week or next week + other: 'PP p' +}; + +var formatRelative = function formatRelative(token, date, baseDate, options) { + var format = formatRelativeLocale[token]; + + if (typeof format === 'function') { + return format(date, baseDate, options); + } + + return format; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/_lib/localize/index.js b/node_modules/date-fns/locale/zh-CN/_lib/localize/index.js new file mode 100644 index 00000000..4447c639 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/localize/index.js @@ -0,0 +1,149 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一季', '第二季', '第三季', '第四季'], + wide: ['第一季度', '第二季度', '第三季度', '第四季度'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜间' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number.toString() + '日'; + + case 'hour': + return number.toString() + '时'; + + case 'minute': + return number.toString() + '分'; + + case 'second': + return number.toString() + '秒'; + + default: + return '第 ' + number.toString(); + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/_lib/match/index.js b/node_modules/date-fns/locale/zh-CN/_lib/match/index.js new file mode 100644 index 00000000..246a9548 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|时|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]刻/i, + wide: /^第[一二三四]刻钟/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^周[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/index.d.ts b/node_modules/date-fns/locale/zh-CN/index.d.ts new file mode 100644 index 00000000..ffe2f2eb --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhCN } from 'date-fns/locale' +export default zhCN diff --git a/node_modules/date-fns/locale/zh-CN/index.js b/node_modules/date-fns/locale/zh-CN/index.js new file mode 100644 index 00000000..6e1a3446 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/index.js @@ -0,0 +1,48 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Chinese Simplified locale. + * @language Chinese Simplified + * @iso-639-2 zho + * @author Changyu Geng [@KingMario]{@link https://github.com/KingMario} + * @author Song Shuoyun [@fnlctrl]{@link https://github.com/fnlctrl} + * @author sabrinaM [@sabrinamiao]{@link https://github.com/sabrinamiao} + * @author Carney Wu [@cubicwork]{@link https://github.com/cubicwork} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + */ +var locale = { + code: 'zh-CN', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-CN/index.js.flow b/node_modules/date-fns/locale/zh-CN/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/zh-CN/package.json b/node_modules/date-fns/locale/zh-CN/package.json new file mode 100644 index 00000000..00448f5c --- /dev/null +++ b/node_modules/date-fns/locale/zh-CN/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/zh-CN/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/_lib/formatDistance/index.js b/node_modules/date-fns/locale/zh-HK/_lib/formatDistance/index.js new file mode 100644 index 00000000..6fc69259 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '少於 1 秒', + other: '少於 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分鐘', + lessThanXMinutes: { + one: '少於 1 分鐘', + other: '少於 {{count}} 分鐘' + }, + xMinutes: { + one: '1 分鐘', + other: '{{count}} 分鐘' + }, + xHours: { + one: '1 小時', + other: '{{count}} 小時' + }, + aboutXHours: { + one: '大約 1 小時', + other: '大約 {{count}} 小時' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大約 1 個星期', + other: '大約 {{count}} 個星期' + }, + xWeeks: { + one: '1 個星期', + other: '{{count}} 個星期' + }, + aboutXMonths: { + one: '大約 1 個月', + other: '大約 {{count}} 個月' + }, + xMonths: { + one: '1 個月', + other: '{{count}} 個月' + }, + aboutXYears: { + one: '大約 1 年', + other: '大約 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超過 1 年', + other: '超過 {{count}} 年' + }, + almostXYears: { + one: '將近 1 年', + other: '將近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/_lib/formatLong/index.js b/node_modules/date-fns/locale/zh-HK/_lib/formatLong/index.js new file mode 100644 index 00000000..9707d408 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/_lib/formatRelative/index.js b/node_modules/date-fns/locale/zh-HK/_lib/formatRelative/index.js new file mode 100644 index 00000000..30ce5d73 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'上個'eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個'eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/_lib/localize/index.js b/node_modules/date-fns/locale/zh-HK/_lib/localize/index.js new file mode 100644 index 00000000..912e5e54 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/_lib/localize/index.js @@ -0,0 +1,149 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一季', '第二季', '第三季', '第四季'], + wide: ['第一季度', '第二季度', '第三季度', '第四季度'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '午夜', + noon: '晌', + morning: '早', + afternoon: '午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '午夜', + noon: '晌', + morning: '早', + afternoon: '午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '午夜', + noon: '中午', + morning: '上午', + afternoon: '下午', + evening: '晚上', + night: '夜晚' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number + '日'; + + case 'hour': + return number + '時'; + + case 'minute': + return number + '分'; + + case 'second': + return number + '秒'; + + default: + return '第 ' + number; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/_lib/match/index.js b/node_modules/date-fns/locale/zh-HK/_lib/match/index.js new file mode 100644 index 00000000..ba749d21 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]季/i, + wide: /^第[一二三四]季度/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^週[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/index.d.ts b/node_modules/date-fns/locale/zh-HK/index.d.ts new file mode 100644 index 00000000..81552b87 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhHK } from 'date-fns/locale' +export default zhHK diff --git a/node_modules/date-fns/locale/zh-HK/index.js b/node_modules/date-fns/locale/zh-HK/index.js new file mode 100644 index 00000000..8904909a --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/index.js @@ -0,0 +1,44 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Chinese Traditional locale. + * @language Chinese Traditional + * @iso-639-2 zho + * @author Gary Ip [@gaplo]{@link https://github.com/gaplo} + */ +var locale = { + code: 'zh-HK', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 0 + /* Sunday */ + , + firstWeekContainsDate: 1 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-HK/index.js.flow b/node_modules/date-fns/locale/zh-HK/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/zh-HK/package.json b/node_modules/date-fns/locale/zh-HK/package.json new file mode 100644 index 00000000..68482eda --- /dev/null +++ b/node_modules/date-fns/locale/zh-HK/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/zh-HK/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js new file mode 100644 index 00000000..6fc69259 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/formatDistance/index.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatDistanceLocale = { + lessThanXSeconds: { + one: '少於 1 秒', + other: '少於 {{count}} 秒' + }, + xSeconds: { + one: '1 秒', + other: '{{count}} 秒' + }, + halfAMinute: '半分鐘', + lessThanXMinutes: { + one: '少於 1 分鐘', + other: '少於 {{count}} 分鐘' + }, + xMinutes: { + one: '1 分鐘', + other: '{{count}} 分鐘' + }, + xHours: { + one: '1 小時', + other: '{{count}} 小時' + }, + aboutXHours: { + one: '大約 1 小時', + other: '大約 {{count}} 小時' + }, + xDays: { + one: '1 天', + other: '{{count}} 天' + }, + aboutXWeeks: { + one: '大約 1 個星期', + other: '大約 {{count}} 個星期' + }, + xWeeks: { + one: '1 個星期', + other: '{{count}} 個星期' + }, + aboutXMonths: { + one: '大約 1 個月', + other: '大約 {{count}} 個月' + }, + xMonths: { + one: '1 個月', + other: '{{count}} 個月' + }, + aboutXYears: { + one: '大約 1 年', + other: '大約 {{count}} 年' + }, + xYears: { + one: '1 年', + other: '{{count}} 年' + }, + overXYears: { + one: '超過 1 年', + other: '超過 {{count}} 年' + }, + almostXYears: { + one: '將近 1 年', + other: '將近 {{count}} 年' + } +}; + +var formatDistance = function formatDistance(token, count, options) { + var result; + var tokenValue = formatDistanceLocale[token]; + + if (typeof tokenValue === 'string') { + result = tokenValue; + } else if (count === 1) { + result = tokenValue.one; + } else { + result = tokenValue.other.replace('{{count}}', String(count)); + } + + if (options !== null && options !== void 0 && options.addSuffix) { + if (options.comparison && options.comparison > 0) { + return result + '內'; + } else { + return result + '前'; + } + } + + return result; +}; + +var _default = formatDistance; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js new file mode 100644 index 00000000..9707d408 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/formatLong/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildFormatLongFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var dateFormats = { + full: "y'年'M'月'd'日' EEEE", + long: "y'年'M'月'd'日'", + medium: 'yyyy-MM-dd', + short: 'yy-MM-dd' +}; +var timeFormats = { + full: 'zzzz a h:mm:ss', + long: 'z a h:mm:ss', + medium: 'a h:mm:ss', + short: 'a h:mm' +}; +var dateTimeFormats = { + full: '{{date}} {{time}}', + long: '{{date}} {{time}}', + medium: '{{date}} {{time}}', + short: '{{date}} {{time}}' +}; +var formatLong = { + date: (0, _index.default)({ + formats: dateFormats, + defaultWidth: 'full' + }), + time: (0, _index.default)({ + formats: timeFormats, + defaultWidth: 'full' + }), + dateTime: (0, _index.default)({ + formats: dateTimeFormats, + defaultWidth: 'full' + }) +}; +var _default = formatLong; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js b/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js new file mode 100644 index 00000000..30ce5d73 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/formatRelative/index.js @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +var formatRelativeLocale = { + lastWeek: "'上個'eeee p", + yesterday: "'昨天' p", + today: "'今天' p", + tomorrow: "'明天' p", + nextWeek: "'下個'eeee p", + other: 'P' +}; + +var formatRelative = function formatRelative(token, _date, _baseDate, _options) { + return formatRelativeLocale[token]; +}; + +var _default = formatRelative; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js b/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js new file mode 100644 index 00000000..c199cf4c --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/localize/index.js @@ -0,0 +1,149 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildLocalizeFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var eraValues = { + narrow: ['前', '公元'], + abbreviated: ['前', '公元'], + wide: ['公元前', '公元'] +}; +var quarterValues = { + narrow: ['1', '2', '3', '4'], + abbreviated: ['第一刻', '第二刻', '第三刻', '第四刻'], + wide: ['第一刻鐘', '第二刻鐘', '第三刻鐘', '第四刻鐘'] +}; +var monthValues = { + narrow: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], + abbreviated: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], + wide: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'] +}; +var dayValues = { + narrow: ['日', '一', '二', '三', '四', '五', '六'], + short: ['日', '一', '二', '三', '四', '五', '六'], + abbreviated: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], + wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'] +}; +var dayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + } +}; +var formattingDayPeriodValues = { + narrow: { + am: '上', + pm: '下', + midnight: '凌晨', + noon: '午', + morning: '早', + afternoon: '下午', + evening: '晚', + night: '夜' + }, + abbreviated: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + }, + wide: { + am: '上午', + pm: '下午', + midnight: '凌晨', + noon: '中午', + morning: '早晨', + afternoon: '中午', + evening: '晚上', + night: '夜間' + } +}; + +var ordinalNumber = function ordinalNumber(dirtyNumber, options) { + var number = Number(dirtyNumber); + + switch (options === null || options === void 0 ? void 0 : options.unit) { + case 'date': + return number + '日'; + + case 'hour': + return number + '時'; + + case 'minute': + return number + '分'; + + case 'second': + return number + '秒'; + + default: + return '第 ' + number; + } +}; + +var localize = { + ordinalNumber: ordinalNumber, + era: (0, _index.default)({ + values: eraValues, + defaultWidth: 'wide' + }), + quarter: (0, _index.default)({ + values: quarterValues, + defaultWidth: 'wide', + argumentCallback: function argumentCallback(quarter) { + return quarter - 1; + } + }), + month: (0, _index.default)({ + values: monthValues, + defaultWidth: 'wide' + }), + day: (0, _index.default)({ + values: dayValues, + defaultWidth: 'wide' + }), + dayPeriod: (0, _index.default)({ + values: dayPeriodValues, + defaultWidth: 'wide', + formattingValues: formattingDayPeriodValues, + defaultFormattingWidth: 'wide' + }) +}; +var _default = localize; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/_lib/match/index.js b/node_modules/date-fns/locale/zh-TW/_lib/match/index.js new file mode 100644 index 00000000..6e595bec --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/_lib/match/index.js @@ -0,0 +1,109 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("../../../_lib/buildMatchFn/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/buildMatchPatternFn/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var matchOrdinalNumberPattern = /^(第\s*)?\d+(日|時|分|秒)?/i; +var parseOrdinalNumberPattern = /\d+/i; +var matchEraPatterns = { + narrow: /^(前)/i, + abbreviated: /^(前)/i, + wide: /^(公元前|公元)/i +}; +var parseEraPatterns = { + any: [/^(前)/i, /^(公元)/i] +}; +var matchQuarterPatterns = { + narrow: /^[1234]/i, + abbreviated: /^第[一二三四]刻/i, + wide: /^第[一二三四]刻鐘/i +}; +var parseQuarterPatterns = { + any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] +}; +var matchMonthPatterns = { + narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i, + abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i, + wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i +}; +var parseMonthPatterns = { + narrow: [/^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i], + any: [/^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i] +}; +var matchDayPatterns = { + narrow: /^[一二三四五六日]/i, + short: /^[一二三四五六日]/i, + abbreviated: /^週[一二三四五六日]/i, + wide: /^星期[一二三四五六日]/i +}; +var parseDayPatterns = { + any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] +}; +var matchDayPeriodPatterns = { + any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i +}; +var parseDayPeriodPatterns = { + any: { + am: /^上午?/i, + pm: /^下午?/i, + midnight: /^午夜/i, + noon: /^[中正]午/i, + morning: /^早上/i, + afternoon: /^下午/i, + evening: /^晚上?/i, + night: /^凌晨/i + } +}; +var match = { + ordinalNumber: (0, _index2.default)({ + matchPattern: matchOrdinalNumberPattern, + parsePattern: parseOrdinalNumberPattern, + valueCallback: function valueCallback(value) { + return parseInt(value, 10); + } + }), + era: (0, _index.default)({ + matchPatterns: matchEraPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseEraPatterns, + defaultParseWidth: 'any' + }), + quarter: (0, _index.default)({ + matchPatterns: matchQuarterPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseQuarterPatterns, + defaultParseWidth: 'any', + valueCallback: function valueCallback(index) { + return index + 1; + } + }), + month: (0, _index.default)({ + matchPatterns: matchMonthPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseMonthPatterns, + defaultParseWidth: 'any' + }), + day: (0, _index.default)({ + matchPatterns: matchDayPatterns, + defaultMatchWidth: 'wide', + parsePatterns: parseDayPatterns, + defaultParseWidth: 'any' + }), + dayPeriod: (0, _index.default)({ + matchPatterns: matchDayPeriodPatterns, + defaultMatchWidth: 'any', + parsePatterns: parseDayPeriodPatterns, + defaultParseWidth: 'any' + }) +}; +var _default = match; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/index.d.ts b/node_modules/date-fns/locale/zh-TW/index.d.ts new file mode 100644 index 00000000..745a08f8 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { zhTW } from 'date-fns/locale' +export default zhTW diff --git a/node_modules/date-fns/locale/zh-TW/index.js b/node_modules/date-fns/locale/zh-TW/index.js new file mode 100644 index 00000000..40382d1d --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _index = _interopRequireDefault(require("./_lib/formatDistance/index.js")); + +var _index2 = _interopRequireDefault(require("./_lib/formatLong/index.js")); + +var _index3 = _interopRequireDefault(require("./_lib/formatRelative/index.js")); + +var _index4 = _interopRequireDefault(require("./_lib/localize/index.js")); + +var _index5 = _interopRequireDefault(require("./_lib/match/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @type {Locale} + * @category Locales + * @summary Chinese Traditional locale. + * @language Chinese Traditional + * @iso-639-2 zho + * @author tonypai [@tpai]{@link https://github.com/tpai} + * @author Jack Hsu [@jackhsu978]{@link https://github.com/jackhsu978} + * @author Terrence Lam [@skyuplam]{@link https://github.com/skyuplam} + */ +var locale = { + code: 'zh-TW', + formatDistance: _index.default, + formatLong: _index2.default, + formatRelative: _index3.default, + localize: _index4.default, + match: _index5.default, + options: { + weekStartsOn: 1 + /* Monday */ + , + firstWeekContainsDate: 4 + } +}; +var _default = locale; +exports.default = _default; +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/locale/zh-TW/index.js.flow b/node_modules/date-fns/locale/zh-TW/index.js.flow new file mode 100644 index 00000000..b9dfe669 --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/index.js.flow @@ -0,0 +1,35 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +declare module.exports: Locale diff --git a/node_modules/date-fns/locale/zh-TW/package.json b/node_modules/date-fns/locale/zh-TW/package.json new file mode 100644 index 00000000..4c08c78e --- /dev/null +++ b/node_modules/date-fns/locale/zh-TW/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../../esm/locale/zh-TW/index.js", + "typings": "../../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/max/index.d.ts b/node_modules/date-fns/max/index.d.ts new file mode 100644 index 00000000..733a96e3 --- /dev/null +++ b/node_modules/date-fns/max/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { max } from 'date-fns' +export default max diff --git a/node_modules/date-fns/max/index.js b/node_modules/date-fns/max/index.js new file mode 100644 index 00000000..6f5f4bd1 --- /dev/null +++ b/node_modules/date-fns/max/index.js @@ -0,0 +1,62 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = max; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name max + * @category Common Helpers + * @summary Return the latest of the given dates. + * + * @description + * Return the latest of the given dates. + * + * @param {Date[]|Number[]} datesArray - the dates to compare + * @returns {Date} the latest of the dates + * @throws {TypeError} 1 argument required + * + * @example + * // Which of these dates is the latest? + * const result = max([ + * new Date(1989, 6, 10), + * new Date(1987, 1, 11), + * new Date(1995, 6, 2), + * new Date(1990, 0, 1) + * ]) + * //=> Sun Jul 02 1995 00:00:00 + */ +function max(dirtyDatesArray) { + (0, _index2.default)(1, arguments); + var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + + if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. + } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } else { + // `dirtyDatesArray` is non-iterable, return Invalid Date + return new Date(NaN); + } + + var result; + datesArray.forEach(function (dirtyDate) { + var currentDate = (0, _index.default)(dirtyDate); + + if (result === undefined || result < currentDate || isNaN(Number(currentDate))) { + result = currentDate; + } + }); + return result || new Date(NaN); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/max/index.js.flow b/node_modules/date-fns/max/index.js.flow new file mode 100644 index 00000000..85439094 --- /dev/null +++ b/node_modules/date-fns/max/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (datesArray: (Date | number)[]) => Date diff --git a/node_modules/date-fns/max/package.json b/node_modules/date-fns/max/package.json new file mode 100644 index 00000000..a20e3559 --- /dev/null +++ b/node_modules/date-fns/max/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/max/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/milliseconds/index.d.ts b/node_modules/date-fns/milliseconds/index.d.ts new file mode 100644 index 00000000..6927b520 --- /dev/null +++ b/node_modules/date-fns/milliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { milliseconds } from 'date-fns' +export default milliseconds diff --git a/node_modules/date-fns/milliseconds/index.js b/node_modules/date-fns/milliseconds/index.js new file mode 100644 index 00000000..edd287dc --- /dev/null +++ b/node_modules/date-fns/milliseconds/index.js @@ -0,0 +1,66 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = milliseconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. +// 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days +var daysInYear = 365.2425; +/** + * @name milliseconds + * @category Millisecond Helpers + * @summary + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * @description + * Returns the number of milliseconds in the specified, years, months, weeks, days, hours, minutes and seconds. + * + * One years equals 365.2425 days according to the formula: + * + * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. + * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days + * + * One month is a year divided by 12. + * + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {number} the milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // 1 year in milliseconds + * milliseconds({ years: 1 }) + * //=> 31556952000 + * + * // 3 months in milliseconds + * milliseconds({ months: 3 }) + * //=> 7889238000 + */ + +function milliseconds(_ref) { + var years = _ref.years, + months = _ref.months, + weeks = _ref.weeks, + days = _ref.days, + hours = _ref.hours, + minutes = _ref.minutes, + seconds = _ref.seconds; + (0, _index.default)(1, arguments); + var totalDays = 0; + if (years) totalDays += years * daysInYear; + if (months) totalDays += months * (daysInYear / 12); + if (weeks) totalDays += weeks * 7; + if (days) totalDays += days; + var totalSeconds = totalDays * 24 * 60 * 60; + if (hours) totalSeconds += hours * 60 * 60; + if (minutes) totalSeconds += minutes * 60; + if (seconds) totalSeconds += seconds; + return Math.round(totalSeconds * 1000); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/milliseconds/index.js.flow b/node_modules/date-fns/milliseconds/index.js.flow new file mode 100644 index 00000000..5ca1b36c --- /dev/null +++ b/node_modules/date-fns/milliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (duration: Duration) => number diff --git a/node_modules/date-fns/milliseconds/package.json b/node_modules/date-fns/milliseconds/package.json new file mode 100644 index 00000000..9f75d05e --- /dev/null +++ b/node_modules/date-fns/milliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/milliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToHours/index.d.ts b/node_modules/date-fns/millisecondsToHours/index.d.ts new file mode 100644 index 00000000..af90bf83 --- /dev/null +++ b/node_modules/date-fns/millisecondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToHours } from 'date-fns' +export default millisecondsToHours diff --git a/node_modules/date-fns/millisecondsToHours/index.js b/node_modules/date-fns/millisecondsToHours/index.js new file mode 100644 index 00000000..cf8041e9 --- /dev/null +++ b/node_modules/date-fns/millisecondsToHours/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = millisecondsToHours; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name millisecondsToHours + * @category Conversion Helpers + * @summary Convert milliseconds to hours. + * + * @description + * Convert a number of milliseconds to a full number of hours. + * + * @param {number} milliseconds - number of milliseconds to be converted + * + * @returns {number} the number of milliseconds converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 7200000 milliseconds to hours: + * const result = millisecondsToHours(7200000) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToHours(7199999) + * //=> 1 + */ +function millisecondsToHours(milliseconds) { + (0, _index.default)(1, arguments); + var hours = milliseconds / _index2.millisecondsInHour; + return Math.floor(hours); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToHours/index.js.flow b/node_modules/date-fns/millisecondsToHours/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/millisecondsToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/millisecondsToHours/package.json b/node_modules/date-fns/millisecondsToHours/package.json new file mode 100644 index 00000000..e1660594 --- /dev/null +++ b/node_modules/date-fns/millisecondsToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/millisecondsToHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToMinutes/index.d.ts b/node_modules/date-fns/millisecondsToMinutes/index.d.ts new file mode 100644 index 00000000..ea008090 --- /dev/null +++ b/node_modules/date-fns/millisecondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToMinutes } from 'date-fns' +export default millisecondsToMinutes diff --git a/node_modules/date-fns/millisecondsToMinutes/index.js b/node_modules/date-fns/millisecondsToMinutes/index.js new file mode 100644 index 00000000..8c413b0c --- /dev/null +++ b/node_modules/date-fns/millisecondsToMinutes/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = millisecondsToMinutes; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name millisecondsToMinutes + * @category Conversion Helpers + * @summary Convert milliseconds to minutes. + * + * @description + * Convert a number of milliseconds to a full number of minutes. + * + * @param {number} milliseconds - number of milliseconds to be converted. + * + * @returns {number} the number of milliseconds converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 60000 milliseconds to minutes: + * const result = millisecondsToMinutes(60000) + * //=> 1 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToMinutes(119999) + * //=> 1 + */ +function millisecondsToMinutes(milliseconds) { + (0, _index.default)(1, arguments); + var minutes = milliseconds / _index2.millisecondsInMinute; + return Math.floor(minutes); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToMinutes/index.js.flow b/node_modules/date-fns/millisecondsToMinutes/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/millisecondsToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/millisecondsToMinutes/package.json b/node_modules/date-fns/millisecondsToMinutes/package.json new file mode 100644 index 00000000..2f5bf1da --- /dev/null +++ b/node_modules/date-fns/millisecondsToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/millisecondsToMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToSeconds/index.d.ts b/node_modules/date-fns/millisecondsToSeconds/index.d.ts new file mode 100644 index 00000000..d761abd6 --- /dev/null +++ b/node_modules/date-fns/millisecondsToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { millisecondsToSeconds } from 'date-fns' +export default millisecondsToSeconds diff --git a/node_modules/date-fns/millisecondsToSeconds/index.js b/node_modules/date-fns/millisecondsToSeconds/index.js new file mode 100644 index 00000000..f8edcc50 --- /dev/null +++ b/node_modules/date-fns/millisecondsToSeconds/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = millisecondsToSeconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name millisecondsToSeconds + * @category Conversion Helpers + * @summary Convert milliseconds to seconds. + * + * @description + * Convert a number of milliseconds to a full number of seconds. + * + * @param {number} milliseconds - number of milliseconds to be converted + * + * @returns {number} the number of milliseconds converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 1000 miliseconds to seconds: + * const result = millisecondsToSeconds(1000) + * //=> 1 + * + * @example + * // It uses floor rounding: + * const result = millisecondsToSeconds(1999) + * //=> 1 + */ +function millisecondsToSeconds(milliseconds) { + (0, _index.default)(1, arguments); + var seconds = milliseconds / _index2.millisecondsInSecond; + return Math.floor(seconds); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/millisecondsToSeconds/index.js.flow b/node_modules/date-fns/millisecondsToSeconds/index.js.flow new file mode 100644 index 00000000..c998756c --- /dev/null +++ b/node_modules/date-fns/millisecondsToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (milliseconds: number) => number diff --git a/node_modules/date-fns/millisecondsToSeconds/package.json b/node_modules/date-fns/millisecondsToSeconds/package.json new file mode 100644 index 00000000..21e7c39f --- /dev/null +++ b/node_modules/date-fns/millisecondsToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/millisecondsToSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/min/index.d.ts b/node_modules/date-fns/min/index.d.ts new file mode 100644 index 00000000..f7227e7d --- /dev/null +++ b/node_modules/date-fns/min/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { min } from 'date-fns' +export default min diff --git a/node_modules/date-fns/min/index.js b/node_modules/date-fns/min/index.js new file mode 100644 index 00000000..6f279b0f --- /dev/null +++ b/node_modules/date-fns/min/index.js @@ -0,0 +1,62 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = min; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name min + * @category Common Helpers + * @summary Returns the earliest of the given dates. + * + * @description + * Returns the earliest of the given dates. + * + * @param {Date[]|Number[]} datesArray - the dates to compare + * @returns {Date} - the earliest of the dates + * @throws {TypeError} 1 argument required + * + * @example + * // Which of these dates is the earliest? + * const result = min([ + * new Date(1989, 6, 10), + * new Date(1987, 1, 11), + * new Date(1995, 6, 2), + * new Date(1990, 0, 1) + * ]) + * //=> Wed Feb 11 1987 00:00:00 + */ +function min(dirtyDatesArray) { + (0, _index2.default)(1, arguments); + var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method + + if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { + datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. + } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { + datesArray = Array.prototype.slice.call(dirtyDatesArray); + } else { + // `dirtyDatesArray` is non-iterable, return Invalid Date + return new Date(NaN); + } + + var result; + datesArray.forEach(function (dirtyDate) { + var currentDate = (0, _index.default)(dirtyDate); + + if (result === undefined || result > currentDate || isNaN(currentDate.getDate())) { + result = currentDate; + } + }); + return result || new Date(NaN); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/min/index.js.flow b/node_modules/date-fns/min/index.js.flow new file mode 100644 index 00000000..85439094 --- /dev/null +++ b/node_modules/date-fns/min/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (datesArray: (Date | number)[]) => Date diff --git a/node_modules/date-fns/min/package.json b/node_modules/date-fns/min/package.json new file mode 100644 index 00000000..ffe9187d --- /dev/null +++ b/node_modules/date-fns/min/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/min/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/minutesToHours/index.d.ts b/node_modules/date-fns/minutesToHours/index.d.ts new file mode 100644 index 00000000..d29fb020 --- /dev/null +++ b/node_modules/date-fns/minutesToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToHours } from 'date-fns' +export default minutesToHours diff --git a/node_modules/date-fns/minutesToHours/index.js b/node_modules/date-fns/minutesToHours/index.js new file mode 100644 index 00000000..79e25969 --- /dev/null +++ b/node_modules/date-fns/minutesToHours/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = minutesToHours; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name minutesToHours + * @category Conversion Helpers + * @summary Convert minutes to hours. + * + * @description + * Convert a number of minutes to a full number of hours. + * + * @param {number} minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 140 minutes to hours: + * const result = minutesToHours(120) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = minutesToHours(179) + * //=> 2 + */ +function minutesToHours(minutes) { + (0, _index.default)(1, arguments); + var hours = minutes / _index2.minutesInHour; + return Math.floor(hours); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/minutesToHours/index.js.flow b/node_modules/date-fns/minutesToHours/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/minutesToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/minutesToHours/package.json b/node_modules/date-fns/minutesToHours/package.json new file mode 100644 index 00000000..07cb77e9 --- /dev/null +++ b/node_modules/date-fns/minutesToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/minutesToHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/minutesToMilliseconds/index.d.ts b/node_modules/date-fns/minutesToMilliseconds/index.d.ts new file mode 100644 index 00000000..14b55130 --- /dev/null +++ b/node_modules/date-fns/minutesToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToMilliseconds } from 'date-fns' +export default minutesToMilliseconds diff --git a/node_modules/date-fns/minutesToMilliseconds/index.js b/node_modules/date-fns/minutesToMilliseconds/index.js new file mode 100644 index 00000000..6d40814c --- /dev/null +++ b/node_modules/date-fns/minutesToMilliseconds/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = minutesToMilliseconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name minutesToMilliseconds + * @category Conversion Helpers + * @summary Convert minutes to milliseconds. + * + * @description + * Convert a number of minutes to a full number of milliseconds. + * + * @param {number} minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 minutes to milliseconds + * const result = minutesToMilliseconds(2) + * //=> 120000 + */ +function minutesToMilliseconds(minutes) { + (0, _index.default)(1, arguments); + return Math.floor(minutes * _index2.millisecondsInMinute); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/minutesToMilliseconds/index.js.flow b/node_modules/date-fns/minutesToMilliseconds/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/minutesToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/minutesToMilliseconds/package.json b/node_modules/date-fns/minutesToMilliseconds/package.json new file mode 100644 index 00000000..7e5d8370 --- /dev/null +++ b/node_modules/date-fns/minutesToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/minutesToMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/minutesToSeconds/index.d.ts b/node_modules/date-fns/minutesToSeconds/index.d.ts new file mode 100644 index 00000000..7998c9b3 --- /dev/null +++ b/node_modules/date-fns/minutesToSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { minutesToSeconds } from 'date-fns' +export default minutesToSeconds diff --git a/node_modules/date-fns/minutesToSeconds/index.js b/node_modules/date-fns/minutesToSeconds/index.js new file mode 100644 index 00000000..809151fb --- /dev/null +++ b/node_modules/date-fns/minutesToSeconds/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = minutesToSeconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name minutesToSeconds + * @category Conversion Helpers + * @summary Convert minutes to seconds. + * + * @description + * Convert a number of minutes to a full number of seconds. + * + * @param { number } minutes - number of minutes to be converted + * + * @returns {number} the number of minutes converted in seconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 minutes to seconds + * const result = minutesToSeconds(2) + * //=> 120 + */ +function minutesToSeconds(minutes) { + (0, _index.default)(1, arguments); + return Math.floor(minutes * _index2.secondsInMinute); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/minutesToSeconds/index.js.flow b/node_modules/date-fns/minutesToSeconds/index.js.flow new file mode 100644 index 00000000..efb76c7b --- /dev/null +++ b/node_modules/date-fns/minutesToSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (minutes: number) => number diff --git a/node_modules/date-fns/minutesToSeconds/package.json b/node_modules/date-fns/minutesToSeconds/package.json new file mode 100644 index 00000000..23df23c0 --- /dev/null +++ b/node_modules/date-fns/minutesToSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/minutesToSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/monthsToQuarters/index.d.ts b/node_modules/date-fns/monthsToQuarters/index.d.ts new file mode 100644 index 00000000..895b1a96 --- /dev/null +++ b/node_modules/date-fns/monthsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToQuarters } from 'date-fns' +export default monthsToQuarters diff --git a/node_modules/date-fns/monthsToQuarters/index.js b/node_modules/date-fns/monthsToQuarters/index.js new file mode 100644 index 00000000..c8031d07 --- /dev/null +++ b/node_modules/date-fns/monthsToQuarters/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = monthsToQuarters; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name monthsToQuarters + * @category Conversion Helpers + * @summary Convert number of months to quarters. + * + * @description + * Convert a number of months to a full number of quarters. + * + * @param {number} months - number of months to be converted. + * + * @returns {number} the number of months converted in quarters + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 6 months to quarters: + * const result = monthsToQuarters(6) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = monthsToQuarters(7) + * //=> 2 + */ +function monthsToQuarters(months) { + (0, _index.default)(1, arguments); + var quarters = months / _index2.monthsInQuarter; + return Math.floor(quarters); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/monthsToQuarters/index.js.flow b/node_modules/date-fns/monthsToQuarters/index.js.flow new file mode 100644 index 00000000..de9ea9b1 --- /dev/null +++ b/node_modules/date-fns/monthsToQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (months: number) => number diff --git a/node_modules/date-fns/monthsToQuarters/package.json b/node_modules/date-fns/monthsToQuarters/package.json new file mode 100644 index 00000000..e6cb3aa2 --- /dev/null +++ b/node_modules/date-fns/monthsToQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/monthsToQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/monthsToYears/index.d.ts b/node_modules/date-fns/monthsToYears/index.d.ts new file mode 100644 index 00000000..16c41fb0 --- /dev/null +++ b/node_modules/date-fns/monthsToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { monthsToYears } from 'date-fns' +export default monthsToYears diff --git a/node_modules/date-fns/monthsToYears/index.js b/node_modules/date-fns/monthsToYears/index.js new file mode 100644 index 00000000..386de339 --- /dev/null +++ b/node_modules/date-fns/monthsToYears/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = monthsToYears; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name monthsToYears + * @category Conversion Helpers + * @summary Convert number of months to years. + * + * @description + * Convert a number of months to a full number of years. + * + * @param {number} months - number of months to be converted + * + * @returns {number} the number of months converted in years + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 36 months to years: + * const result = monthsToYears(36) + * //=> 3 + * + * // It uses floor rounding: + * const result = monthsToYears(40) + * //=> 3 + */ +function monthsToYears(months) { + (0, _index.default)(1, arguments); + var years = months / _index2.monthsInYear; + return Math.floor(years); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/monthsToYears/index.js.flow b/node_modules/date-fns/monthsToYears/index.js.flow new file mode 100644 index 00000000..de9ea9b1 --- /dev/null +++ b/node_modules/date-fns/monthsToYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (months: number) => number diff --git a/node_modules/date-fns/monthsToYears/package.json b/node_modules/date-fns/monthsToYears/package.json new file mode 100644 index 00000000..c01b92fc --- /dev/null +++ b/node_modules/date-fns/monthsToYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/monthsToYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextDay/index.d.ts b/node_modules/date-fns/nextDay/index.d.ts new file mode 100644 index 00000000..ed096730 --- /dev/null +++ b/node_modules/date-fns/nextDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextDay } from 'date-fns' +export default nextDay diff --git a/node_modules/date-fns/nextDay/index.js b/node_modules/date-fns/nextDay/index.js new file mode 100644 index 00000000..e1135936 --- /dev/null +++ b/node_modules/date-fns/nextDay/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextDay; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../getDay/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextDay + * @category Weekday Helpers + * @summary When is the next day of the week? + * + * @description + * When is the next day of the week? 0-6 the day of the week, 0 represents Sunday. + * + * @param {Date | number} date - the date to check + * @param {Day} day - day of the week + * @returns {Date} - the date is the next day of week + * @throws {TypeError} - 2 arguments required + * + * @example + * // When is the next Monday after Mar, 20, 2020? + * const result = nextDay(new Date(2020, 2, 20), 1) + * //=> Mon Mar 23 2020 00:00:00 + * + * @example + * // When is the next Tuesday after Mar, 21, 2020? + * const result = nextDay(new Date(2020, 2, 21), 2) + * //=> Tue Mar 24 2020 00:00:00 + */ +function nextDay(date, day) { + (0, _index3.default)(2, arguments); + var delta = day - (0, _index2.default)(date); + if (delta <= 0) delta += 7; + return (0, _index.default)(date, delta); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextDay/index.js.flow b/node_modules/date-fns/nextDay/index.js.flow new file mode 100644 index 00000000..4b45d7f7 --- /dev/null +++ b/node_modules/date-fns/nextDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: Day) => Date diff --git a/node_modules/date-fns/nextDay/package.json b/node_modules/date-fns/nextDay/package.json new file mode 100644 index 00000000..2bb35500 --- /dev/null +++ b/node_modules/date-fns/nextDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextFriday/index.d.ts b/node_modules/date-fns/nextFriday/index.d.ts new file mode 100644 index 00000000..1ea773cd --- /dev/null +++ b/node_modules/date-fns/nextFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextFriday } from 'date-fns' +export default nextFriday diff --git a/node_modules/date-fns/nextFriday/index.js b/node_modules/date-fns/nextFriday/index.js new file mode 100644 index 00000000..2fb5dcaf --- /dev/null +++ b/node_modules/date-fns/nextFriday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextFriday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextFriday + * @category Weekday Helpers + * @summary When is the next Friday? + * + * @description + * When is the next Friday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Friday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Friday after Mar, 22, 2020? + * const result = nextFriday(new Date(2020, 2, 22)) + * //=> Fri Mar 27 2020 00:00:00 + */ +function nextFriday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 5); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextFriday/index.js.flow b/node_modules/date-fns/nextFriday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextFriday/package.json b/node_modules/date-fns/nextFriday/package.json new file mode 100644 index 00000000..e7a7030c --- /dev/null +++ b/node_modules/date-fns/nextFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextFriday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextMonday/index.d.ts b/node_modules/date-fns/nextMonday/index.d.ts new file mode 100644 index 00000000..d2668868 --- /dev/null +++ b/node_modules/date-fns/nextMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextMonday } from 'date-fns' +export default nextMonday diff --git a/node_modules/date-fns/nextMonday/index.js b/node_modules/date-fns/nextMonday/index.js new file mode 100644 index 00000000..2499f9fe --- /dev/null +++ b/node_modules/date-fns/nextMonday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextMonday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextMonday + * @category Weekday Helpers + * @summary When is the next Monday? + * + * @description + * When is the next Monday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Monday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Monday after Mar, 22, 2020? + * const result = nextMonday(new Date(2020, 2, 22)) + * //=> Mon Mar 23 2020 00:00:00 + */ +function nextMonday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 1); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextMonday/index.js.flow b/node_modules/date-fns/nextMonday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextMonday/package.json b/node_modules/date-fns/nextMonday/package.json new file mode 100644 index 00000000..8d9af91f --- /dev/null +++ b/node_modules/date-fns/nextMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextMonday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextSaturday/index.d.ts b/node_modules/date-fns/nextSaturday/index.d.ts new file mode 100644 index 00000000..20532f75 --- /dev/null +++ b/node_modules/date-fns/nextSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSaturday } from 'date-fns' +export default nextSaturday diff --git a/node_modules/date-fns/nextSaturday/index.js b/node_modules/date-fns/nextSaturday/index.js new file mode 100644 index 00000000..8d0d97d0 --- /dev/null +++ b/node_modules/date-fns/nextSaturday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextSaturday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextSaturday + * @category Weekday Helpers + * @summary When is the next Saturday? + * + * @description + * When is the next Saturday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Saturday after Mar, 22, 2020? + * const result = nextSaturday(new Date(2020, 2, 22)) + * //=> Sat Mar 28 2020 00:00:00 + */ +function nextSaturday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 6); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextSaturday/index.js.flow b/node_modules/date-fns/nextSaturday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextSaturday/package.json b/node_modules/date-fns/nextSaturday/package.json new file mode 100644 index 00000000..75d41581 --- /dev/null +++ b/node_modules/date-fns/nextSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextSaturday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextSunday/index.d.ts b/node_modules/date-fns/nextSunday/index.d.ts new file mode 100644 index 00000000..e0a7965f --- /dev/null +++ b/node_modules/date-fns/nextSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextSunday } from 'date-fns' +export default nextSunday diff --git a/node_modules/date-fns/nextSunday/index.js b/node_modules/date-fns/nextSunday/index.js new file mode 100644 index 00000000..b7744aea --- /dev/null +++ b/node_modules/date-fns/nextSunday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextSunday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextSunday + * @category Weekday Helpers + * @summary When is the next Sunday? + * + * @description + * When is the next Sunday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Sunday after Mar, 22, 2020? + * const result = nextSunday(new Date(2020, 2, 22)) + * //=> Sun Mar 29 2020 00:00:00 + */ +function nextSunday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 0); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextSunday/index.js.flow b/node_modules/date-fns/nextSunday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextSunday/package.json b/node_modules/date-fns/nextSunday/package.json new file mode 100644 index 00000000..5c25c82b --- /dev/null +++ b/node_modules/date-fns/nextSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextSunday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextThursday/index.d.ts b/node_modules/date-fns/nextThursday/index.d.ts new file mode 100644 index 00000000..092c3ba9 --- /dev/null +++ b/node_modules/date-fns/nextThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextThursday } from 'date-fns' +export default nextThursday diff --git a/node_modules/date-fns/nextThursday/index.js b/node_modules/date-fns/nextThursday/index.js new file mode 100644 index 00000000..2365d224 --- /dev/null +++ b/node_modules/date-fns/nextThursday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextThursday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextThursday + * @category Weekday Helpers + * @summary When is the next Thursday? + * + * @description + * When is the next Thursday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Thursday after Mar, 22, 2020? + * const result = nextThursday(new Date(2020, 2, 22)) + * //=> Thur Mar 26 2020 00:00:00 + */ +function nextThursday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 4); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextThursday/index.js.flow b/node_modules/date-fns/nextThursday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextThursday/package.json b/node_modules/date-fns/nextThursday/package.json new file mode 100644 index 00000000..8cf8915a --- /dev/null +++ b/node_modules/date-fns/nextThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextThursday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextTuesday/index.d.ts b/node_modules/date-fns/nextTuesday/index.d.ts new file mode 100644 index 00000000..0e332acf --- /dev/null +++ b/node_modules/date-fns/nextTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextTuesday } from 'date-fns' +export default nextTuesday diff --git a/node_modules/date-fns/nextTuesday/index.js b/node_modules/date-fns/nextTuesday/index.js new file mode 100644 index 00000000..7a0a3342 --- /dev/null +++ b/node_modules/date-fns/nextTuesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextTuesday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextTuesday + * @category Weekday Helpers + * @summary When is the next Tuesday? + * + * @description + * When is the next Tuesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Tuesday after Mar, 22, 2020? + * const result = nextTuesday(new Date(2020, 2, 22)) + * //=> Tue Mar 24 2020 00:00:00 + */ +function nextTuesday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 2); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextTuesday/index.js.flow b/node_modules/date-fns/nextTuesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextTuesday/package.json b/node_modules/date-fns/nextTuesday/package.json new file mode 100644 index 00000000..f9f6f21c --- /dev/null +++ b/node_modules/date-fns/nextTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextTuesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/nextWednesday/index.d.ts b/node_modules/date-fns/nextWednesday/index.d.ts new file mode 100644 index 00000000..42f7eb3c --- /dev/null +++ b/node_modules/date-fns/nextWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { nextWednesday } from 'date-fns' +export default nextWednesday diff --git a/node_modules/date-fns/nextWednesday/index.js b/node_modules/date-fns/nextWednesday/index.js new file mode 100644 index 00000000..64302c98 --- /dev/null +++ b/node_modules/date-fns/nextWednesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = nextWednesday; + +var _index = _interopRequireDefault(require("../nextDay/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name nextWednesday + * @category Weekday Helpers + * @summary When is the next Wednesday? + * + * @description + * When is the next Wednesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the next Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the next Wednesday after Mar, 22, 2020? + * const result = nextWednesday(new Date(2020, 2, 22)) + * //=> Wed Mar 25 2020 00:00:00 + */ +function nextWednesday(date) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(date, 3); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/nextWednesday/index.js.flow b/node_modules/date-fns/nextWednesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/nextWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/nextWednesday/package.json b/node_modules/date-fns/nextWednesday/package.json new file mode 100644 index 00000000..221c7a5f --- /dev/null +++ b/node_modules/date-fns/nextWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/nextWednesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/package.json b/node_modules/date-fns/package.json new file mode 100644 index 00000000..efc4769c --- /dev/null +++ b/node_modules/date-fns/package.json @@ -0,0 +1,101 @@ +{ + "name": "date-fns", + "version": "2.29.3", + "sideEffects": false, + "contributors": ["Sasha Koss ", "Lesha Koss "], + "license": "MIT", + "description": "Modern JavaScript date utility library", + "repository": "https://github.com/date-fns/date-fns", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/date-fns" + }, + "engines": { + "node": ">=0.11" + }, + "typings": "./typings.d.ts", + "main": "index.js", + "module": "esm/index.js", + "scripts": { + "test": "karma start config/karma.js", + "lint": "eslint .", + "lint-types": "eslint --config=.ts-eslintrc.js typings.d.ts", + "locale-snapshots": "env TZ=utc babel-node --extensions .ts,.js ./scripts/build/localeSnapshots/index.js", + "stats": "cloc . --exclude-dir=node_modules,tmp,.git" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*.{js,ts,json}": ["prettier --write", "git add"] + }, + "browserslist": ["last 1 version", "> 1%", "IE 11"], + "dependencies": {}, + "devDependencies": { + "@babel/cli": "^7.13.10", + "@babel/core": "^7.13.10", + "@babel/node": "^7.13.10", + "@babel/plugin-proposal-class-properties": "^7.16.7", + "@babel/preset-env": "^7.18.10", + "@babel/preset-typescript": "^7.18.6", + "@date-fns/date-fns-scripts": "0.0.6", + "@octokit/core": "^3.2.5", + "@types/jest": "^26.0.23", + "@types/node": "^14.6.3", + "@types/sinon": "^9.0.6", + "@typescript-eslint/eslint-plugin": "^4.23.0", + "@typescript-eslint/parser": "^4.31.0", + "babel-eslint": "^10.0.2", + "babel-loader": "8.0.6", + "babel-plugin-add-import-extension": "^1.4.3", + "babel-plugin-add-module-exports": "^1.0.2", + "cloc": "^2.2.0", + "coveralls": "^3.0.6", + "eslint": "^7.27.0", + "eslint-config-prettier": "^4.3.0", + "firebase": "^3.7.1", + "glob-promise": "^2.0.0", + "globby": "^11.0.3", + "gzip-size-cli": "^1.0.0", + "husky": "^1.0.1", + "istanbul-instrumenter-loader": "^3.0.1", + "jest": "^27.0.4", + "js-beautify": "^1.5.10", + "js-fns": "^2.5.1", + "jsdoc-babel": "^0.5.0", + "jsdoc-to-markdown": "7", + "karma": "^3.1.4", + "karma-chrome-launcher": "2.2", + "karma-cli": "^1.0.1", + "karma-coverage": "^1.1.2", + "karma-coverage-istanbul-reporter": "^2.1.0", + "karma-mocha": "^1.3.0", + "karma-mocha-reporter": "^2.2.5", + "karma-sauce-launcher": "^1.2.0", + "karma-sourcemap-loader": "^0.3.5", + "karma-webpack": "^4.0.2", + "lint-staged": "^7.3.0", + "lodash": "^4.17.15", + "lodash.clonedeep": "^4.5.0", + "mocha": "^3.5.3", + "moment": "^2.24.0", + "mz": "^2.7.0", + "node-fetch": "^1.7.3", + "p-limit": "^3.1.0", + "prettier": "2", + "simple-git": "^2.35.2", + "sinon": "^7.4.1", + "size-limit": "^0.21.0", + "snazzy": "^7.0.0", + "ts-node": "^9.1.1", + "typescript": "^4.2.4", + "webpack": "4", + "webpack-cli": "^3.1.2", + "world-countries": "^1.8.1" + }, + "resolutions": { + "ajv": "6.8.1" + } +} diff --git a/node_modules/date-fns/parse/_lib/Parser.js b/node_modules/date-fns/parse/_lib/Parser.js new file mode 100644 index 00000000..a518c6b7 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/Parser.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Parser = void 0; + +var _Setter = require("./Setter.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var Parser = /*#__PURE__*/function () { + function Parser() { + _classCallCheck(this, Parser); + } + + _createClass(Parser, [{ + key: "run", + value: function run(dateString, token, match, options) { + var result = this.parse(dateString, token, match, options); + + if (!result) { + return null; + } + + return { + setter: new _Setter.ValueSetter(result.value, this.validate, this.set, this.priority, this.subPriority), + rest: result.rest + }; + } + }, { + key: "validate", + value: function validate(_utcDate, _value, _options) { + return true; + } + }]); + + return Parser; +}(); + +exports.Parser = Parser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/Setter.js b/node_modules/date-fns/parse/_lib/Setter.js new file mode 100644 index 00000000..31014261 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/Setter.js @@ -0,0 +1,133 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ValueSetter = exports.Setter = exports.DateToSystemTimezoneSetter = void 0; + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var TIMEZONE_UNIT_PRIORITY = 10; + +var Setter = /*#__PURE__*/function () { + function Setter() { + _classCallCheck(this, Setter); + + _defineProperty(this, "subPriority", 0); + } + + _createClass(Setter, [{ + key: "validate", + value: function validate(_utcDate, _options) { + return true; + } + }]); + + return Setter; +}(); + +exports.Setter = Setter; + +var ValueSetter = /*#__PURE__*/function (_Setter) { + _inherits(ValueSetter, _Setter); + + var _super = _createSuper(ValueSetter); + + function ValueSetter(value, validateValue, setValue, priority, subPriority) { + var _this; + + _classCallCheck(this, ValueSetter); + + _this = _super.call(this); + _this.value = value; + _this.validateValue = validateValue; + _this.setValue = setValue; + _this.priority = priority; + + if (subPriority) { + _this.subPriority = subPriority; + } + + return _this; + } + + _createClass(ValueSetter, [{ + key: "validate", + value: function validate(utcDate, options) { + return this.validateValue(utcDate, this.value, options); + } + }, { + key: "set", + value: function set(utcDate, flags, options) { + return this.setValue(utcDate, flags, this.value, options); + } + }]); + + return ValueSetter; +}(Setter); + +exports.ValueSetter = ValueSetter; + +var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) { + _inherits(DateToSystemTimezoneSetter, _Setter2); + + var _super2 = _createSuper(DateToSystemTimezoneSetter); + + function DateToSystemTimezoneSetter() { + var _this2; + + _classCallCheck(this, DateToSystemTimezoneSetter); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this2 = _super2.call.apply(_super2, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this2), "priority", TIMEZONE_UNIT_PRIORITY); + + _defineProperty(_assertThisInitialized(_this2), "subPriority", -1); + + return _this2; + } + + _createClass(DateToSystemTimezoneSetter, [{ + key: "set", + value: function set(date, flags) { + if (flags.timestampIsSet) { + return date; + } + + var convertedDate = new Date(0); + convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); + convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); + return convertedDate; + } + }]); + + return DateToSystemTimezoneSetter; +}(Setter); + +exports.DateToSystemTimezoneSetter = DateToSystemTimezoneSetter; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/constants.js b/node_modules/date-fns/parse/_lib/constants.js new file mode 100644 index 00000000..384a14b6 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/constants.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.timezonePatterns = exports.numericPatterns = void 0; +var numericPatterns = { + month: /^(1[0-2]|0?\d)/, + // 0 to 12 + date: /^(3[0-1]|[0-2]?\d)/, + // 0 to 31 + dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, + // 0 to 366 + week: /^(5[0-3]|[0-4]?\d)/, + // 0 to 53 + hour23h: /^(2[0-3]|[0-1]?\d)/, + // 0 to 23 + hour24h: /^(2[0-4]|[0-1]?\d)/, + // 0 to 24 + hour11h: /^(1[0-1]|0?\d)/, + // 0 to 11 + hour12h: /^(1[0-2]|0?\d)/, + // 0 to 12 + minute: /^[0-5]?\d/, + // 0 to 59 + second: /^[0-5]?\d/, + // 0 to 59 + singleDigit: /^\d/, + // 0 to 9 + twoDigits: /^\d{1,2}/, + // 0 to 99 + threeDigits: /^\d{1,3}/, + // 0 to 999 + fourDigits: /^\d{1,4}/, + // 0 to 9999 + anyDigitsSigned: /^-?\d+/, + singleDigitSigned: /^-?\d/, + // 0 to 9, -0 to -9 + twoDigitsSigned: /^-?\d{1,2}/, + // 0 to 99, -0 to -99 + threeDigitsSigned: /^-?\d{1,3}/, + // 0 to 999, -0 to -999 + fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 + +}; +exports.numericPatterns = numericPatterns; +var timezonePatterns = { + basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, + basic: /^([+-])(\d{2})(\d{2})|Z/, + basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, + extended: /^([+-])(\d{2}):(\d{2})|Z/, + extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ +}; +exports.timezonePatterns = timezonePatterns; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js b/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js new file mode 100644 index 00000000..3554acf6 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js @@ -0,0 +1,105 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.AMPMMidnightParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var AMPMMidnightParser = /*#__PURE__*/function (_Parser) { + _inherits(AMPMMidnightParser, _Parser); + + var _super = _createSuper(AMPMMidnightParser); + + function AMPMMidnightParser() { + var _this; + + _classCallCheck(this, AMPMMidnightParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(AMPMMidnightParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'b': + case 'bb': + case 'bbb': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbbb': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'bbbb': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); + return date; + } + }]); + + return AMPMMidnightParser; +}(_Parser2.Parser); + +exports.AMPMMidnightParser = AMPMMidnightParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js b/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js new file mode 100644 index 00000000..8375e2f7 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js @@ -0,0 +1,105 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.AMPMParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var AMPMParser = /*#__PURE__*/function (_Parser) { + _inherits(AMPMParser, _Parser); + + var _super = _createSuper(AMPMParser); + + function AMPMParser() { + var _this; + + _classCallCheck(this, AMPMParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(AMPMParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'a': + case 'aa': + case 'aaa': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaaa': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'aaaa': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); + return date; + } + }]); + + return AMPMParser; +}(_Parser2.Parser); + +exports.AMPMParser = AMPMParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/DateParser.js b/node_modules/date-fns/parse/_lib/parsers/DateParser.js new file mode 100644 index 00000000..a48c7067 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/DateParser.js @@ -0,0 +1,107 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.DateParser = void 0; + +var _utils = require("../utils.js"); + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; +var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month + +var DateParser = /*#__PURE__*/function (_Parser) { + _inherits(DateParser, _Parser); + + var _super = _createSuper(DateParser); + + function DateParser() { + var _this; + + _classCallCheck(this, DateParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "subPriority", 1); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DateParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'd': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.date, dateString); + + case 'do': + return match.ordinalNumber(dateString, { + unit: 'date' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(date, value) { + var year = date.getUTCFullYear(); + var isLeapYear = (0, _utils.isLeapYearIndex)(year); + var month = date.getUTCMonth(); + + if (isLeapYear) { + return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; + } else { + return value >= 1 && value <= DAYS_IN_MONTH[month]; + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCDate(value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DateParser; +}(_Parser2.Parser); + +exports.DateParser = DateParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js b/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js new file mode 100644 index 00000000..5f3a2c70 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js @@ -0,0 +1,104 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.DayOfYearParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var DayOfYearParser = /*#__PURE__*/function (_Parser) { + _inherits(DayOfYearParser, _Parser); + + var _super = _createSuper(DayOfYearParser); + + function DayOfYearParser() { + var _this; + + _classCallCheck(this, DayOfYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "subpriority", 1); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DayOfYearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'D': + case 'DD': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.dayOfYear, dateString); + + case 'Do': + return match.ordinalNumber(dateString, { + unit: 'date' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(date, value) { + var year = date.getUTCFullYear(); + var isLeapYear = (0, _utils.isLeapYearIndex)(year); + + if (isLeapYear) { + return value >= 1 && value <= 366; + } else { + return value >= 1 && value <= 365; + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(0, value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DayOfYearParser; +}(_Parser2.Parser); + +exports.DayOfYearParser = DayOfYearParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/DayParser.js b/node_modules/date-fns/parse/_lib/parsers/DayParser.js new file mode 100644 index 00000000..f5f5e19a --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/DayParser.js @@ -0,0 +1,133 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.DayParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Day of week +var DayParser = /*#__PURE__*/function (_Parser) { + _inherits(DayParser, _Parser); + + var _super = _createSuper(DayParser); + + function DayParser() { + var _this; + + _classCallCheck(this, DayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(DayParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // Tue + case 'E': + case 'EE': + case 'EEE': + return match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'EEEEE': + return match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'EEEEEE': + return match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'EEEE': + default: + return match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = (0, _index.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return DayParser; +}(_Parser2.Parser); + +exports.DayParser = DayParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js b/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js new file mode 100644 index 00000000..f20ae757 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js @@ -0,0 +1,106 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.DayPeriodParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// in the morning, in the afternoon, in the evening, at night +var DayPeriodParser = /*#__PURE__*/function (_Parser) { + _inherits(DayPeriodParser, _Parser); + + var _super = _createSuper(DayPeriodParser); + + function DayPeriodParser() { + var _this; + + _classCallCheck(this, DayPeriodParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 80); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 't', 'T']); + + return _this; + } + + _createClass(DayPeriodParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'B': + case 'BB': + case 'BBB': + return match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBBB': + return match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + + case 'BBBB': + default: + return match.dayPeriod(dateString, { + width: 'wide', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.dayPeriod(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours((0, _utils.dayPeriodEnumToHours)(value), 0, 0, 0); + return date; + } + }]); + + return DayPeriodParser; +}(_Parser2.Parser); + +exports.DayPeriodParser = DayPeriodParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/EraParser.js b/node_modules/date-fns/parse/_lib/parsers/EraParser.js new file mode 100644 index 00000000..d72a3af9 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/EraParser.js @@ -0,0 +1,102 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.EraParser = void 0; + +var _Parser2 = require("../Parser.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var EraParser = /*#__PURE__*/function (_Parser) { + _inherits(EraParser, _Parser); + + var _super = _createSuper(EraParser); + + function EraParser() { + var _this; + + _classCallCheck(this, EraParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 140); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['R', 'u', 't', 'T']); + + return _this; + } + + _createClass(EraParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // AD, BC + case 'G': + case 'GG': + case 'GGG': + return match.era(dateString, { + width: 'abbreviated' + }) || match.era(dateString, { + width: 'narrow' + }); + // A, B + + case 'GGGGG': + return match.era(dateString, { + width: 'narrow' + }); + // Anno Domini, Before Christ + + case 'GGGG': + default: + return match.era(dateString, { + width: 'wide' + }) || match.era(dateString, { + width: 'abbreviated' + }) || match.era(dateString, { + width: 'narrow' + }); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + flags.era = value; + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return EraParser; +}(_Parser2.Parser); + +exports.EraParser = EraParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js b/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js new file mode 100644 index 00000000..1a332554 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js @@ -0,0 +1,80 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ExtendedYearParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var ExtendedYearParser = /*#__PURE__*/function (_Parser) { + _inherits(ExtendedYearParser, _Parser); + + var _super = _createSuper(ExtendedYearParser); + + function ExtendedYearParser() { + var _this; + + _classCallCheck(this, ExtendedYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ExtendedYearParser, [{ + key: "parse", + value: function parse(dateString, token) { + if (token === 'u') { + return (0, _utils.parseNDigitsSigned)(4, dateString); + } + + return (0, _utils.parseNDigitsSigned)(token.length, dateString); + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCFullYear(value, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return ExtendedYearParser; +}(_Parser2.Parser); + +exports.ExtendedYearParser = ExtendedYearParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js b/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js new file mode 100644 index 00000000..be51e712 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js @@ -0,0 +1,79 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.FractionOfSecondParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var FractionOfSecondParser = /*#__PURE__*/function (_Parser) { + _inherits(FractionOfSecondParser, _Parser); + + var _super = _createSuper(FractionOfSecondParser); + + function FractionOfSecondParser() { + var _this; + + _classCallCheck(this, FractionOfSecondParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 30); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(FractionOfSecondParser, [{ + key: "parse", + value: function parse(dateString, token) { + var valueCallback = function valueCallback(value) { + return Math.floor(value * Math.pow(10, -token.length + 3)); + }; + + return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMilliseconds(value); + return date; + } + }]); + + return FractionOfSecondParser; +}(_Parser2.Parser); + +exports.FractionOfSecondParser = FractionOfSecondParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js b/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js new file mode 100644 index 00000000..8a6b44a2 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js @@ -0,0 +1,100 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Hour0To11Parser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var Hour0To11Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour0To11Parser, _Parser); + + var _super = _createSuper(Hour0To11Parser); + + function Hour0To11Parser() { + var _this; + + _classCallCheck(this, Hour0To11Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour0To11Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'K': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour11h, dateString); + + case 'Ko': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var isPM = date.getUTCHours() >= 12; + + if (isPM && value < 12) { + date.setUTCHours(value + 12, 0, 0, 0); + } else { + date.setUTCHours(value, 0, 0, 0); + } + + return date; + } + }]); + + return Hour0To11Parser; +}(_Parser2.Parser); + +exports.Hour0To11Parser = Hour0To11Parser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js b/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js new file mode 100644 index 00000000..082017a4 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js @@ -0,0 +1,93 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Hour0to23Parser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var Hour0to23Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour0to23Parser, _Parser); + + var _super = _createSuper(Hour0to23Parser); + + function Hour0to23Parser() { + var _this; + + _classCallCheck(this, Hour0to23Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour0to23Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'H': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour23h, dateString); + + case 'Ho': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 23; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCHours(value, 0, 0, 0); + return date; + } + }]); + + return Hour0to23Parser; +}(_Parser2.Parser); + +exports.Hour0to23Parser = Hour0to23Parser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js b/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js new file mode 100644 index 00000000..1939a133 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js @@ -0,0 +1,94 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Hour1To24Parser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var Hour1To24Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour1To24Parser, _Parser); + + var _super = _createSuper(Hour1To24Parser); + + function Hour1To24Parser() { + var _this; + + _classCallCheck(this, Hour1To24Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']); + + return _this; + } + + _createClass(Hour1To24Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'k': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour24h, dateString); + + case 'ko': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 24; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var hours = value <= 24 ? value % 24 : value; + date.setUTCHours(hours, 0, 0, 0); + return date; + } + }]); + + return Hour1To24Parser; +}(_Parser2.Parser); + +exports.Hour1To24Parser = Hour1To24Parser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js b/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js new file mode 100644 index 00000000..9dc36ddb --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js @@ -0,0 +1,102 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Hour1to12Parser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var Hour1to12Parser = /*#__PURE__*/function (_Parser) { + _inherits(Hour1to12Parser, _Parser); + + var _super = _createSuper(Hour1to12Parser); + + function Hour1to12Parser() { + var _this; + + _classCallCheck(this, Hour1to12Parser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 70); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']); + + return _this; + } + + _createClass(Hour1to12Parser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'h': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.hour12h, dateString); + + case 'ho': + return match.ordinalNumber(dateString, { + unit: 'hour' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 12; + } + }, { + key: "set", + value: function set(date, _flags, value) { + var isPM = date.getUTCHours() >= 12; + + if (isPM && value < 12) { + date.setUTCHours(value + 12, 0, 0, 0); + } else if (!isPM && value === 12) { + date.setUTCHours(0, 0, 0, 0); + } else { + date.setUTCHours(value, 0, 0, 0); + } + + return date; + } + }]); + + return Hour1to12Parser; +}(_Parser2.Parser); + +exports.Hour1to12Parser = Hour1to12Parser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js b/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js new file mode 100644 index 00000000..6778e89a --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js @@ -0,0 +1,153 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ISODayParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCISODay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// ISO day of week +var ISODayParser = /*#__PURE__*/function (_Parser) { + _inherits(ISODayParser, _Parser); + + var _super = _createSuper(ISODayParser); + + function ISODayParser() { + var _this; + + _classCallCheck(this, ISODayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISODayParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + if (value === 0) { + return 7; + } + + return value; + }; + + switch (token) { + // 2 + case 'i': + case 'ii': + // 02 + return (0, _utils.parseNDigits)(token.length, dateString); + // 2nd + + case 'io': + return match.ordinalNumber(dateString, { + unit: 'day' + }); + // Tue + + case 'iii': + return (0, _utils.mapValue)(match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // T + + case 'iiiii': + return (0, _utils.mapValue)(match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // Tu + + case 'iiiiii': + return (0, _utils.mapValue)(match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + // Tuesday + + case 'iiii': + default: + return (0, _utils.mapValue)(match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 7; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date = (0, _index.default)(date, value); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return ISODayParser; +}(_Parser2.Parser); + +exports.ISODayParser = ISODayParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js b/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js new file mode 100644 index 00000000..c70ef254 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js @@ -0,0 +1,97 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ISOTimezoneParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Timezone (ISO-8601) +var ISOTimezoneParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOTimezoneParser, _Parser); + + var _super = _createSuper(ISOTimezoneParser); + + function ISOTimezoneParser() { + var _this; + + _classCallCheck(this, ISOTimezoneParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 10); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'X']); + + return _this; + } + + _createClass(ISOTimezoneParser, [{ + key: "parse", + value: function parse(dateString, token) { + switch (token) { + case 'x': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalMinutes, dateString); + + case 'xx': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basic, dateString); + + case 'xxxx': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalSeconds, dateString); + + case 'xxxxx': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extendedOptionalSeconds, dateString); + + case 'xxx': + default: + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extended, dateString); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + } + }]); + + return ISOTimezoneParser; +}(_Parser2.Parser); + +exports.ISOTimezoneParser = ISOTimezoneParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js b/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js new file mode 100644 index 00000000..767545ec --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js @@ -0,0 +1,97 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ISOTimezoneWithZParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Timezone (ISO-8601. +00:00 is `'Z'`) +var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOTimezoneWithZParser, _Parser); + + var _super = _createSuper(ISOTimezoneWithZParser); + + function ISOTimezoneWithZParser() { + var _this; + + _classCallCheck(this, ISOTimezoneWithZParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 10); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'x']); + + return _this; + } + + _createClass(ISOTimezoneWithZParser, [{ + key: "parse", + value: function parse(dateString, token) { + switch (token) { + case 'X': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalMinutes, dateString); + + case 'XX': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basic, dateString); + + case 'XXXX': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.basicOptionalSeconds, dateString); + + case 'XXXXX': + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extendedOptionalSeconds, dateString); + + case 'XXX': + default: + return (0, _utils.parseTimezonePattern)(_constants.timezonePatterns.extended, dateString); + } + } + }, { + key: "set", + value: function set(date, flags, value) { + if (flags.timestampIsSet) { + return date; + } + + return new Date(date.getTime() - value); + } + }]); + + return ISOTimezoneWithZParser; +}(_Parser2.Parser); + +exports.ISOTimezoneWithZParser = ISOTimezoneWithZParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js b/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js new file mode 100644 index 00000000..2ed7f382 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js @@ -0,0 +1,99 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ISOWeekParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCISOWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/startOfUTCISOWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// ISO week of year +var ISOWeekParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOWeekParser, _Parser); + + var _super = _createSuper(ISOWeekParser); + + function ISOWeekParser() { + var _this; + + _classCallCheck(this, ISOWeekParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 100); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISOWeekParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'I': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.week, dateString); + + case 'Io': + return match.ordinalNumber(dateString, { + unit: 'week' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 53; + } + }, { + key: "set", + value: function set(date, _flags, value) { + return (0, _index2.default)((0, _index.default)(date, value)); + } + }]); + + return ISOWeekParser; +}(_Parser2.Parser); + +exports.ISOWeekParser = ISOWeekParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js b/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js new file mode 100644 index 00000000..a8d9e6ad --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js @@ -0,0 +1,86 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ISOWeekYearParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/startOfUTCISOWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// ISO week-numbering year +var ISOWeekYearParser = /*#__PURE__*/function (_Parser) { + _inherits(ISOWeekYearParser, _Parser); + + var _super = _createSuper(ISOWeekYearParser); + + function ISOWeekYearParser() { + var _this; + + _classCallCheck(this, ISOWeekYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(ISOWeekYearParser, [{ + key: "parse", + value: function parse(dateString, token) { + if (token === 'R') { + return (0, _utils.parseNDigitsSigned)(4, dateString); + } + + return (0, _utils.parseNDigitsSigned)(token.length, dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + var firstWeekOfYear = new Date(0); + firstWeekOfYear.setUTCFullYear(value, 0, 4); + firstWeekOfYear.setUTCHours(0, 0, 0, 0); + return (0, _index.default)(firstWeekOfYear); + } + }]); + + return ISOWeekYearParser; +}(_Parser2.Parser); + +exports.ISOWeekYearParser = ISOWeekYearParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js b/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js new file mode 100644 index 00000000..0f33d00c --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js @@ -0,0 +1,150 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.LocalDayParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Local day of week +var LocalDayParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalDayParser, _Parser); + + var _super = _createSuper(LocalDayParser); + + function LocalDayParser() { + var _this; + + _classCallCheck(this, LocalDayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']); + + return _this; + } + + _createClass(LocalDayParser, [{ + key: "parse", + value: function parse(dateString, token, match, options) { + var valueCallback = function valueCallback(value) { + var wholeWeekDays = Math.floor((value - 1) / 7) * 7; + return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; + }; + + switch (token) { + // 3 + case 'e': + case 'ee': + // 03 + return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); + // 3rd + + case 'eo': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'day' + }), valueCallback); + // Tue + + case 'eee': + return match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // T + + case 'eeeee': + return match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tu + + case 'eeeeee': + return match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + // Tuesday + + case 'eeee': + default: + return match.day(dateString, { + width: 'wide', + context: 'formatting' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.day(dateString, { + width: 'short', + context: 'formatting' + }) || match.day(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = (0, _index.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return LocalDayParser; +}(_Parser2.Parser); + +exports.LocalDayParser = LocalDayParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js b/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js new file mode 100644 index 00000000..857211f5 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js @@ -0,0 +1,99 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.LocalWeekParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/startOfUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Local week of year +var LocalWeekParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalWeekParser, _Parser); + + var _super = _createSuper(LocalWeekParser); + + function LocalWeekParser() { + var _this; + + _classCallCheck(this, LocalWeekParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 100); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); + + return _this; + } + + _createClass(LocalWeekParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'w': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.week, dateString); + + case 'wo': + return match.ordinalNumber(dateString, { + unit: 'week' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 53; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + return (0, _index2.default)((0, _index.default)(date, value, options), options); + } + }]); + + return LocalWeekParser; +}(_Parser2.Parser); + +exports.LocalWeekParser = LocalWeekParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js b/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js new file mode 100644 index 00000000..4e4cb40b --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js @@ -0,0 +1,116 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.LocalWeekYearParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/getUTCWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../../../_lib/startOfUTCWeek/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Local week-numbering year +var LocalWeekYearParser = /*#__PURE__*/function (_Parser) { + _inherits(LocalWeekYearParser, _Parser); + + var _super = _createSuper(LocalWeekYearParser); + + function LocalWeekYearParser() { + var _this; + + _classCallCheck(this, LocalWeekYearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); + + return _this; + } + + _createClass(LocalWeekYearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) { + return { + year: year, + isTwoDigitYear: token === 'YY' + }; + }; + + switch (token) { + case 'Y': + return (0, _utils.mapValue)((0, _utils.parseNDigits)(4, dateString), valueCallback); + + case 'Yo': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'year' + }), valueCallback); + + default: + return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } + }, { + key: "set", + value: function set(date, flags, value, options) { + var currentYear = (0, _index.default)(date, options); + + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(value.year, currentYear); + date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); + date.setUTCHours(0, 0, 0, 0); + return (0, _index2.default)(date, options); + } + + var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setUTCFullYear(year, 0, options.firstWeekContainsDate); + date.setUTCHours(0, 0, 0, 0); + return (0, _index2.default)(date, options); + } + }]); + + return LocalWeekYearParser; +}(_Parser2.Parser); + +exports.LocalWeekYearParser = LocalWeekYearParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js b/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js new file mode 100644 index 00000000..f51b0899 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js @@ -0,0 +1,93 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MinuteParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var MinuteParser = /*#__PURE__*/function (_Parser) { + _inherits(MinuteParser, _Parser); + + var _super = _createSuper(MinuteParser); + + function MinuteParser() { + var _this; + + _classCallCheck(this, MinuteParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 60); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(MinuteParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 'm': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.minute, dateString); + + case 'mo': + return match.ordinalNumber(dateString, { + unit: 'minute' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 59; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMinutes(value, 0, 0); + return date; + } + }]); + + return MinuteParser; +}(_Parser2.Parser); + +exports.MinuteParser = MinuteParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/MonthParser.js b/node_modules/date-fns/parse/_lib/parsers/MonthParser.js new file mode 100644 index 00000000..ad0d67a7 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/MonthParser.js @@ -0,0 +1,132 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MonthParser = void 0; + +var _utils = require("../utils.js"); + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var MonthParser = /*#__PURE__*/function (_Parser) { + _inherits(MonthParser, _Parser); + + var _super = _createSuper(MonthParser); + + function MonthParser() { + var _this; + + _classCallCheck(this, MonthParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + _defineProperty(_assertThisInitialized(_this), "priority", 110); + + return _this; + } + + _createClass(MonthParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'M': + return (0, _utils.mapValue)((0, _utils.parseNumericPattern)(_constants.numericPatterns.month, dateString), valueCallback); + // 01, 02, ..., 12 + + case 'MM': + return (0, _utils.mapValue)((0, _utils.parseNDigits)(2, dateString), valueCallback); + // 1st, 2nd, ..., 12th + + case 'Mo': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'month' + }), valueCallback); + // Jan, Feb, ..., Dec + + case 'MMM': + return match.month(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + // J, F, ..., D + + case 'MMMMM': + return match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + // January, February, ..., December + + case 'MMMM': + default: + return match.month(dateString, { + width: 'wide', + context: 'formatting' + }) || match.month(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.month(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return MonthParser; +}(_Parser2.Parser); + +exports.MonthParser = MonthParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js b/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js new file mode 100644 index 00000000..5ed1e24d --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js @@ -0,0 +1,124 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.QuarterParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var QuarterParser = /*#__PURE__*/function (_Parser) { + _inherits(QuarterParser, _Parser); + + var _super = _createSuper(QuarterParser); + + function QuarterParser() { + var _this; + + _classCallCheck(this, QuarterParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 120); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(QuarterParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // 1, 2, 3, 4 + case 'Q': + case 'QQ': + // 01, 02, 03, 04 + return (0, _utils.parseNDigits)(token.length, dateString); + // 1st, 2nd, 3rd, 4th + + case 'Qo': + return match.ordinalNumber(dateString, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'QQQ': + return match.quarter(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'QQQQQ': + return match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + // 1st quarter, 2nd quarter, ... + + case 'QQQQ': + default: + return match.quarter(dateString, { + width: 'wide', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'abbreviated', + context: 'formatting' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'formatting' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 4; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return QuarterParser; +}(_Parser2.Parser); + +exports.QuarterParser = QuarterParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/SecondParser.js b/node_modules/date-fns/parse/_lib/parsers/SecondParser.js new file mode 100644 index 00000000..5ab0caeb --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/SecondParser.js @@ -0,0 +1,93 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.SecondParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var SecondParser = /*#__PURE__*/function (_Parser) { + _inherits(SecondParser, _Parser); + + var _super = _createSuper(SecondParser); + + function SecondParser() { + var _this; + + _classCallCheck(this, SecondParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 50); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); + + return _this; + } + + _createClass(SecondParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + case 's': + return (0, _utils.parseNumericPattern)(_constants.numericPatterns.second, dateString); + + case 'so': + return match.ordinalNumber(dateString, { + unit: 'second' + }); + + default: + return (0, _utils.parseNDigits)(token.length, dateString); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 59; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCSeconds(value, 0); + return date; + } + }]); + + return SecondParser; +}(_Parser2.Parser); + +exports.SecondParser = SecondParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js b/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js new file mode 100644 index 00000000..f8157d87 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js @@ -0,0 +1,150 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.StandAloneLocalDayParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +var _index = _interopRequireDefault(require("../../../_lib/setUTCDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// Stand-alone local day of week +var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneLocalDayParser, _Parser); + + var _super = _createSuper(StandAloneLocalDayParser); + + function StandAloneLocalDayParser() { + var _this; + + _classCallCheck(this, StandAloneLocalDayParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 90); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']); + + return _this; + } + + _createClass(StandAloneLocalDayParser, [{ + key: "parse", + value: function parse(dateString, token, match, options) { + var valueCallback = function valueCallback(value) { + var wholeWeekDays = Math.floor((value - 1) / 7) * 7; + return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; + }; + + switch (token) { + // 3 + case 'c': + case 'cc': + // 03 + return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); + // 3rd + + case 'co': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'day' + }), valueCallback); + // Tue + + case 'ccc': + return match.day(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // T + + case 'ccccc': + return match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // Tu + + case 'cccccc': + return match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + // Tuesday + + case 'cccc': + default: + return match.day(dateString, { + width: 'wide', + context: 'standalone' + }) || match.day(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.day(dateString, { + width: 'short', + context: 'standalone' + }) || match.day(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 6; + } + }, { + key: "set", + value: function set(date, _flags, value, options) { + date = (0, _index.default)(date, value, options); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneLocalDayParser; +}(_Parser2.Parser); + +exports.StandAloneLocalDayParser = StandAloneLocalDayParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js b/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js new file mode 100644 index 00000000..b09b13ee --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js @@ -0,0 +1,132 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.StandAloneMonthParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _constants = require("../constants.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var StandAloneMonthParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneMonthParser, _Parser); + + var _super = _createSuper(StandAloneMonthParser); + + function StandAloneMonthParser() { + var _this; + + _classCallCheck(this, StandAloneMonthParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 110); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(StandAloneMonthParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(value) { + return value - 1; + }; + + switch (token) { + // 1, 2, ..., 12 + case 'L': + return (0, _utils.mapValue)((0, _utils.parseNumericPattern)(_constants.numericPatterns.month, dateString), valueCallback); + // 01, 02, ..., 12 + + case 'LL': + return (0, _utils.mapValue)((0, _utils.parseNDigits)(2, dateString), valueCallback); + // 1st, 2nd, ..., 12th + + case 'Lo': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'month' + }), valueCallback); + // Jan, Feb, ..., Dec + + case 'LLL': + return match.month(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + // J, F, ..., D + + case 'LLLLL': + return match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + // January, February, ..., December + + case 'LLLL': + default: + return match.month(dateString, { + width: 'wide', + context: 'standalone' + }) || match.month(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.month(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 0 && value <= 11; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth(value, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneMonthParser; +}(_Parser2.Parser); + +exports.StandAloneMonthParser = StandAloneMonthParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js b/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js new file mode 100644 index 00000000..c55f3efa --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js @@ -0,0 +1,124 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.StandAloneQuarterParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) { + _inherits(StandAloneQuarterParser, _Parser); + + var _super = _createSuper(StandAloneQuarterParser); + + function StandAloneQuarterParser() { + var _this; + + _classCallCheck(this, StandAloneQuarterParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 120); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(StandAloneQuarterParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + switch (token) { + // 1, 2, 3, 4 + case 'q': + case 'qq': + // 01, 02, 03, 04 + return (0, _utils.parseNDigits)(token.length, dateString); + // 1st, 2nd, 3rd, 4th + + case 'qo': + return match.ordinalNumber(dateString, { + unit: 'quarter' + }); + // Q1, Q2, Q3, Q4 + + case 'qqq': + return match.quarter(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + // 1, 2, 3, 4 (narrow quarter; could be not numerical) + + case 'qqqqq': + return match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + // 1st quarter, 2nd quarter, ... + + case 'qqqq': + default: + return match.quarter(dateString, { + width: 'wide', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'abbreviated', + context: 'standalone' + }) || match.quarter(dateString, { + width: 'narrow', + context: 'standalone' + }); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value >= 1 && value <= 4; + } + }, { + key: "set", + value: function set(date, _flags, value) { + date.setUTCMonth((value - 1) * 3, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return StandAloneQuarterParser; +}(_Parser2.Parser); + +exports.StandAloneQuarterParser = StandAloneQuarterParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js b/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js new file mode 100644 index 00000000..4dc88a8f --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js @@ -0,0 +1,76 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.TimestampMillisecondsParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) { + _inherits(TimestampMillisecondsParser, _Parser); + + var _super = _createSuper(TimestampMillisecondsParser); + + function TimestampMillisecondsParser() { + var _this; + + _classCallCheck(this, TimestampMillisecondsParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 20); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); + + return _this; + } + + _createClass(TimestampMillisecondsParser, [{ + key: "parse", + value: function parse(dateString) { + return (0, _utils.parseAnyDigitsSigned)(dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + return [new Date(value), { + timestampIsSet: true + }]; + } + }]); + + return TimestampMillisecondsParser; +}(_Parser2.Parser); + +exports.TimestampMillisecondsParser = TimestampMillisecondsParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js b/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js new file mode 100644 index 00000000..d2162f47 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js @@ -0,0 +1,76 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.TimestampSecondsParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var TimestampSecondsParser = /*#__PURE__*/function (_Parser) { + _inherits(TimestampSecondsParser, _Parser); + + var _super = _createSuper(TimestampSecondsParser); + + function TimestampSecondsParser() { + var _this; + + _classCallCheck(this, TimestampSecondsParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 40); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); + + return _this; + } + + _createClass(TimestampSecondsParser, [{ + key: "parse", + value: function parse(dateString) { + return (0, _utils.parseAnyDigitsSigned)(dateString); + } + }, { + key: "set", + value: function set(_date, _flags, value) { + return [new Date(value * 1000), { + timestampIsSet: true + }]; + } + }]); + + return TimestampSecondsParser; +}(_Parser2.Parser); + +exports.TimestampSecondsParser = TimestampSecondsParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/YearParser.js b/node_modules/date-fns/parse/_lib/parsers/YearParser.js new file mode 100644 index 00000000..ac39f471 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/YearParser.js @@ -0,0 +1,117 @@ +"use strict"; + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.YearParser = void 0; + +var _Parser2 = require("../Parser.js"); + +var _utils = require("../utils.js"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns +// | Year | y | yy | yyy | yyyy | yyyyy | +// |----------|-------|----|-------|-------|-------| +// | AD 1 | 1 | 01 | 001 | 0001 | 00001 | +// | AD 12 | 12 | 12 | 012 | 0012 | 00012 | +// | AD 123 | 123 | 23 | 123 | 0123 | 00123 | +// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | +// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | +var YearParser = /*#__PURE__*/function (_Parser) { + _inherits(YearParser, _Parser); + + var _super = _createSuper(YearParser); + + function YearParser() { + var _this; + + _classCallCheck(this, YearParser); + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + _this = _super.call.apply(_super, [this].concat(args)); + + _defineProperty(_assertThisInitialized(_this), "priority", 130); + + _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']); + + return _this; + } + + _createClass(YearParser, [{ + key: "parse", + value: function parse(dateString, token, match) { + var valueCallback = function valueCallback(year) { + return { + year: year, + isTwoDigitYear: token === 'yy' + }; + }; + + switch (token) { + case 'y': + return (0, _utils.mapValue)((0, _utils.parseNDigits)(4, dateString), valueCallback); + + case 'yo': + return (0, _utils.mapValue)(match.ordinalNumber(dateString, { + unit: 'year' + }), valueCallback); + + default: + return (0, _utils.mapValue)((0, _utils.parseNDigits)(token.length, dateString), valueCallback); + } + } + }, { + key: "validate", + value: function validate(_date, value) { + return value.isTwoDigitYear || value.year > 0; + } + }, { + key: "set", + value: function set(date, flags, value) { + var currentYear = date.getUTCFullYear(); + + if (value.isTwoDigitYear) { + var normalizedTwoDigitYear = (0, _utils.normalizeTwoDigitYear)(value.year, currentYear); + date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + + var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; + date.setUTCFullYear(year, 0, 1); + date.setUTCHours(0, 0, 0, 0); + return date; + } + }]); + + return YearParser; +}(_Parser2.Parser); + +exports.YearParser = YearParser; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/parsers/index.js b/node_modules/date-fns/parse/_lib/parsers/index.js new file mode 100644 index 00000000..7b73ede0 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/parsers/index.js @@ -0,0 +1,146 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.parsers = void 0; + +var _EraParser = require("./EraParser.js"); + +var _YearParser = require("./YearParser.js"); + +var _LocalWeekYearParser = require("./LocalWeekYearParser.js"); + +var _ISOWeekYearParser = require("./ISOWeekYearParser.js"); + +var _ExtendedYearParser = require("./ExtendedYearParser.js"); + +var _QuarterParser = require("./QuarterParser.js"); + +var _StandAloneQuarterParser = require("./StandAloneQuarterParser.js"); + +var _MonthParser = require("./MonthParser.js"); + +var _StandAloneMonthParser = require("./StandAloneMonthParser.js"); + +var _LocalWeekParser = require("./LocalWeekParser.js"); + +var _ISOWeekParser = require("./ISOWeekParser.js"); + +var _DateParser = require("./DateParser.js"); + +var _DayOfYearParser = require("./DayOfYearParser.js"); + +var _DayParser = require("./DayParser.js"); + +var _LocalDayParser = require("./LocalDayParser.js"); + +var _StandAloneLocalDayParser = require("./StandAloneLocalDayParser.js"); + +var _ISODayParser = require("./ISODayParser.js"); + +var _AMPMParser = require("./AMPMParser.js"); + +var _AMPMMidnightParser = require("./AMPMMidnightParser.js"); + +var _DayPeriodParser = require("./DayPeriodParser.js"); + +var _Hour1to12Parser = require("./Hour1to12Parser.js"); + +var _Hour0to23Parser = require("./Hour0to23Parser.js"); + +var _Hour0To11Parser = require("./Hour0To11Parser.js"); + +var _Hour1To24Parser = require("./Hour1To24Parser.js"); + +var _MinuteParser = require("./MinuteParser.js"); + +var _SecondParser = require("./SecondParser.js"); + +var _FractionOfSecondParser = require("./FractionOfSecondParser.js"); + +var _ISOTimezoneWithZParser = require("./ISOTimezoneWithZParser.js"); + +var _ISOTimezoneParser = require("./ISOTimezoneParser.js"); + +var _TimestampSecondsParser = require("./TimestampSecondsParser.js"); + +var _TimestampMillisecondsParser = require("./TimestampMillisecondsParser.js"); + +/* + * | | Unit | | Unit | + * |-----|--------------------------------|-----|--------------------------------| + * | a | AM, PM | A* | Milliseconds in day | + * | b | AM, PM, noon, midnight | B | Flexible day period | + * | c | Stand-alone local day of week | C* | Localized hour w/ day period | + * | d | Day of month | D | Day of year | + * | e | Local day of week | E | Day of week | + * | f | | F* | Day of week in month | + * | g* | Modified Julian day | G | Era | + * | h | Hour [1-12] | H | Hour [0-23] | + * | i! | ISO day of week | I! | ISO week of year | + * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | + * | k | Hour [1-24] | K | Hour [0-11] | + * | l* | (deprecated) | L | Stand-alone month | + * | m | Minute | M | Month | + * | n | | N | | + * | o! | Ordinal number modifier | O* | Timezone (GMT) | + * | p | | P | | + * | q | Stand-alone quarter | Q | Quarter | + * | r* | Related Gregorian year | R! | ISO week-numbering year | + * | s | Second | S | Fraction of second | + * | t! | Seconds timestamp | T! | Milliseconds timestamp | + * | u | Extended year | U* | Cyclic year | + * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | + * | w | Local week of year | W* | Week of month | + * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | + * | y | Year (abs) | Y | Local week-numbering year | + * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | + * + * Letters marked by * are not implemented but reserved by Unicode standard. + * + * Letters marked by ! are non-standard, but implemented by date-fns: + * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) + * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, + * i.e. 7 for Sunday, 1 for Monday, etc. + * - `I` is ISO week of year, as opposed to `w` which is local week of year. + * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. + * `R` is supposed to be used in conjunction with `I` and `i` + * for universal ISO week-numbering date, whereas + * `Y` is supposed to be used in conjunction with `w` and `e` + * for week-numbering date specific to the locale. + */ +var parsers = { + G: new _EraParser.EraParser(), + y: new _YearParser.YearParser(), + Y: new _LocalWeekYearParser.LocalWeekYearParser(), + R: new _ISOWeekYearParser.ISOWeekYearParser(), + u: new _ExtendedYearParser.ExtendedYearParser(), + Q: new _QuarterParser.QuarterParser(), + q: new _StandAloneQuarterParser.StandAloneQuarterParser(), + M: new _MonthParser.MonthParser(), + L: new _StandAloneMonthParser.StandAloneMonthParser(), + w: new _LocalWeekParser.LocalWeekParser(), + I: new _ISOWeekParser.ISOWeekParser(), + d: new _DateParser.DateParser(), + D: new _DayOfYearParser.DayOfYearParser(), + E: new _DayParser.DayParser(), + e: new _LocalDayParser.LocalDayParser(), + c: new _StandAloneLocalDayParser.StandAloneLocalDayParser(), + i: new _ISODayParser.ISODayParser(), + a: new _AMPMParser.AMPMParser(), + b: new _AMPMMidnightParser.AMPMMidnightParser(), + B: new _DayPeriodParser.DayPeriodParser(), + h: new _Hour1to12Parser.Hour1to12Parser(), + H: new _Hour0to23Parser.Hour0to23Parser(), + K: new _Hour0To11Parser.Hour0To11Parser(), + k: new _Hour1To24Parser.Hour1To24Parser(), + m: new _MinuteParser.MinuteParser(), + s: new _SecondParser.SecondParser(), + S: new _FractionOfSecondParser.FractionOfSecondParser(), + X: new _ISOTimezoneWithZParser.ISOTimezoneWithZParser(), + x: new _ISOTimezoneParser.ISOTimezoneParser(), + t: new _TimestampSecondsParser.TimestampSecondsParser(), + T: new _TimestampMillisecondsParser.TimestampMillisecondsParser() +}; +exports.parsers = parsers; \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/types.js b/node_modules/date-fns/parse/_lib/types.js new file mode 100644 index 00000000..430afc16 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/types.js @@ -0,0 +1,5 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); \ No newline at end of file diff --git a/node_modules/date-fns/parse/_lib/utils.js b/node_modules/date-fns/parse/_lib/utils.js new file mode 100644 index 00000000..62a3f735 --- /dev/null +++ b/node_modules/date-fns/parse/_lib/utils.js @@ -0,0 +1,155 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.dayPeriodEnumToHours = dayPeriodEnumToHours; +exports.isLeapYearIndex = isLeapYearIndex; +exports.mapValue = mapValue; +exports.normalizeTwoDigitYear = normalizeTwoDigitYear; +exports.parseAnyDigitsSigned = parseAnyDigitsSigned; +exports.parseNDigits = parseNDigits; +exports.parseNDigitsSigned = parseNDigitsSigned; +exports.parseNumericPattern = parseNumericPattern; +exports.parseTimezonePattern = parseTimezonePattern; + +var _index = require("../../constants/index.js"); + +var _constants = require("./constants.js"); + +function mapValue(parseFnResult, mapFn) { + if (!parseFnResult) { + return parseFnResult; + } + + return { + value: mapFn(parseFnResult.value), + rest: parseFnResult.rest + }; +} + +function parseNumericPattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + + if (!matchResult) { + return null; + } + + return { + value: parseInt(matchResult[0], 10), + rest: dateString.slice(matchResult[0].length) + }; +} + +function parseTimezonePattern(pattern, dateString) { + var matchResult = dateString.match(pattern); + + if (!matchResult) { + return null; + } // Input is 'Z' + + + if (matchResult[0] === 'Z') { + return { + value: 0, + rest: dateString.slice(1) + }; + } + + var sign = matchResult[1] === '+' ? 1 : -1; + var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; + var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; + var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; + return { + value: sign * (hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute + seconds * _index.millisecondsInSecond), + rest: dateString.slice(matchResult[0].length) + }; +} + +function parseAnyDigitsSigned(dateString) { + return parseNumericPattern(_constants.numericPatterns.anyDigitsSigned, dateString); +} + +function parseNDigits(n, dateString) { + switch (n) { + case 1: + return parseNumericPattern(_constants.numericPatterns.singleDigit, dateString); + + case 2: + return parseNumericPattern(_constants.numericPatterns.twoDigits, dateString); + + case 3: + return parseNumericPattern(_constants.numericPatterns.threeDigits, dateString); + + case 4: + return parseNumericPattern(_constants.numericPatterns.fourDigits, dateString); + + default: + return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString); + } +} + +function parseNDigitsSigned(n, dateString) { + switch (n) { + case 1: + return parseNumericPattern(_constants.numericPatterns.singleDigitSigned, dateString); + + case 2: + return parseNumericPattern(_constants.numericPatterns.twoDigitsSigned, dateString); + + case 3: + return parseNumericPattern(_constants.numericPatterns.threeDigitsSigned, dateString); + + case 4: + return parseNumericPattern(_constants.numericPatterns.fourDigitsSigned, dateString); + + default: + return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString); + } +} + +function dayPeriodEnumToHours(dayPeriod) { + switch (dayPeriod) { + case 'morning': + return 4; + + case 'evening': + return 17; + + case 'pm': + case 'noon': + case 'afternoon': + return 12; + + case 'am': + case 'midnight': + case 'night': + default: + return 0; + } +} + +function normalizeTwoDigitYear(twoDigitYear, currentYear) { + var isCommonEra = currentYear > 0; // Absolute number of the current year: + // 1 -> 1 AC + // 0 -> 1 BC + // -1 -> 2 BC + + var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; + var result; + + if (absCurrentYear <= 50) { + result = twoDigitYear || 100; + } else { + var rangeEnd = absCurrentYear + 50; + var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; + var isPreviousCentury = twoDigitYear >= rangeEnd % 100; + result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); + } + + return isCommonEra ? result : 1 - result; +} + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} \ No newline at end of file diff --git a/node_modules/date-fns/parse/index.d.ts b/node_modules/date-fns/parse/index.d.ts new file mode 100644 index 00000000..2c5eb60d --- /dev/null +++ b/node_modules/date-fns/parse/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parse } from 'date-fns' +export default parse diff --git a/node_modules/date-fns/parse/index.js b/node_modules/date-fns/parse/index.js new file mode 100644 index 00000000..e3d635d1 --- /dev/null +++ b/node_modules/date-fns/parse/index.js @@ -0,0 +1,559 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parse; + +var _index = _interopRequireDefault(require("../_lib/defaultLocale/index.js")); + +var _index2 = _interopRequireDefault(require("../subMilliseconds/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/assign/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/format/longFormatters/index.js")); + +var _index6 = _interopRequireDefault(require("../_lib/getTimezoneOffsetInMilliseconds/index.js")); + +var _index7 = require("../_lib/protectedTokens/index.js"); + +var _index8 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index9 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _Setter = require("./_lib/Setter.js"); + +var _index10 = require("./_lib/parsers/index.js"); + +var _index11 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } + +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } + +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } + +// This RegExp consists of three parts separated by `|`: +// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token +// (one of the certain letters followed by `o`) +// - (\w)\1* matches any sequences of the same letter +// - '' matches two quote characters in a row +// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), +// except a single quote symbol, which ends the sequence. +// Two quote characters do not end the sequence. +// If there is no matching single quote +// then the sequence will continue until the end of the string. +// - . matches any single character unmatched by previous parts of the RegExps +var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also +// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` + +var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; +var escapedStringRegExp = /^'([^]*?)'?$/; +var doubleQuoteRegExp = /''/g; +var notWhitespaceRegExp = /\S/; +var unescapedLatinCharacterRegExp = /[a-zA-Z]/; +/** + * @name parse + * @category Common Helpers + * @summary Parse the date. + * + * @description + * Return the date parsed from string using the given format string. + * + * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries. + * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * The characters in the format string wrapped between two single quotes characters (') are escaped. + * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. + * + * Format of the format string is based on Unicode Technical Standard #35: + * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table + * with a few additions (see note 5 below the table). + * + * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited + * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: + * + * ```javascript + * parse('23 AM', 'HH a', new Date()) + * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time + * ``` + * + * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true + * + * Accepted format string patterns: + * | Unit |Prior| Pattern | Result examples | Notes | + * |---------------------------------|-----|---------|-----------------------------------|-------| + * | Era | 140 | G..GGG | AD, BC | | + * | | | GGGG | Anno Domini, Before Christ | 2 | + * | | | GGGGG | A, B | | + * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | + * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | yy | 44, 01, 00, 17 | 4 | + * | | | yyy | 044, 001, 123, 999 | 4 | + * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | + * | | | yyyyy | ... | 2,4 | + * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | + * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | + * | | | YY | 44, 01, 00, 17 | 4,6 | + * | | | YYY | 044, 001, 123, 999 | 4 | + * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | + * | | | YYYYY | ... | 2,4 | + * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | + * | | | RR | -43, 01, 00, 17 | 4,5 | + * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | + * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | + * | | | RRRRR | ... | 2,4,5 | + * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | + * | | | uu | -43, 01, 99, -99 | 4 | + * | | | uuu | -043, 001, 123, 999, -999 | 4 | + * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | + * | | | uuuuu | ... | 2,4 | + * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | + * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | QQ | 01, 02, 03, 04 | | + * | | | QQQ | Q1, Q2, Q3, Q4 | | + * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | + * | | | QQQQQ | 1, 2, 3, 4 | 4 | + * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | + * | | | qo | 1st, 2nd, 3rd, 4th | 5 | + * | | | qq | 01, 02, 03, 04 | | + * | | | qqq | Q1, Q2, Q3, Q4 | | + * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | + * | | | qqqqq | 1, 2, 3, 4 | 3 | + * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | + * | | | Mo | 1st, 2nd, ..., 12th | 5 | + * | | | MM | 01, 02, ..., 12 | | + * | | | MMM | Jan, Feb, ..., Dec | | + * | | | MMMM | January, February, ..., December | 2 | + * | | | MMMMM | J, F, ..., D | | + * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | + * | | | Lo | 1st, 2nd, ..., 12th | 5 | + * | | | LL | 01, 02, ..., 12 | | + * | | | LLL | Jan, Feb, ..., Dec | | + * | | | LLLL | January, February, ..., December | 2 | + * | | | LLLLL | J, F, ..., D | | + * | Local week of year | 100 | w | 1, 2, ..., 53 | | + * | | | wo | 1st, 2nd, ..., 53th | 5 | + * | | | ww | 01, 02, ..., 53 | | + * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | + * | | | Io | 1st, 2nd, ..., 53th | 5 | + * | | | II | 01, 02, ..., 53 | 5 | + * | Day of month | 90 | d | 1, 2, ..., 31 | | + * | | | do | 1st, 2nd, ..., 31st | 5 | + * | | | dd | 01, 02, ..., 31 | | + * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | + * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | + * | | | DD | 01, 02, ..., 365, 366 | 7 | + * | | | DDD | 001, 002, ..., 365, 366 | | + * | | | DDDD | ... | 2 | + * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | + * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | + * | | | EEEEE | M, T, W, T, F, S, S | | + * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | + * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | + * | | | io | 1st, 2nd, ..., 7th | 5 | + * | | | ii | 01, 02, ..., 07 | 5 | + * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | + * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | + * | | | iiiii | M, T, W, T, F, S, S | 5 | + * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | + * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | + * | | | eo | 2nd, 3rd, ..., 1st | 5 | + * | | | ee | 02, 03, ..., 01 | | + * | | | eee | Mon, Tue, Wed, ..., Sun | | + * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | + * | | | eeeee | M, T, W, T, F, S, S | | + * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | + * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | + * | | | co | 2nd, 3rd, ..., 1st | 5 | + * | | | cc | 02, 03, ..., 01 | | + * | | | ccc | Mon, Tue, Wed, ..., Sun | | + * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | + * | | | ccccc | M, T, W, T, F, S, S | | + * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | + * | AM, PM | 80 | a..aaa | AM, PM | | + * | | | aaaa | a.m., p.m. | 2 | + * | | | aaaaa | a, p | | + * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | + * | | | bbbb | a.m., p.m., noon, midnight | 2 | + * | | | bbbbb | a, p, n, mi | | + * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | + * | | | BBBB | at night, in the morning, ... | 2 | + * | | | BBBBB | at night, in the morning, ... | | + * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | + * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | + * | | | hh | 01, 02, ..., 11, 12 | | + * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | + * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | + * | | | HH | 00, 01, 02, ..., 23 | | + * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | + * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | + * | | | KK | 01, 02, ..., 11, 00 | | + * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | + * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | + * | | | kk | 24, 01, 02, ..., 23 | | + * | Minute | 60 | m | 0, 1, ..., 59 | | + * | | | mo | 0th, 1st, ..., 59th | 5 | + * | | | mm | 00, 01, ..., 59 | | + * | Second | 50 | s | 0, 1, ..., 59 | | + * | | | so | 0th, 1st, ..., 59th | 5 | + * | | | ss | 00, 01, ..., 59 | | + * | Seconds timestamp | 40 | t | 512969520 | | + * | | | tt | ... | 2 | + * | Fraction of second | 30 | S | 0, 1, ..., 9 | | + * | | | SS | 00, 01, ..., 99 | | + * | | | SSS | 000, 001, ..., 999 | | + * | | | SSSS | ... | 2 | + * | Milliseconds timestamp | 20 | T | 512969520900 | | + * | | | TT | ... | 2 | + * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | + * | | | XX | -0800, +0530, Z | | + * | | | XXX | -08:00, +05:30, Z | | + * | | | XXXX | -0800, +0530, Z, +123456 | 2 | + * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | + * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | + * | | | xx | -0800, +0530, +0000 | | + * | | | xxx | -08:00, +05:30, +00:00 | 2 | + * | | | xxxx | -0800, +0530, +0000, +123456 | | + * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | + * | Long localized date | NA | P | 05/29/1453 | 5,8 | + * | | | PP | May 29, 1453 | | + * | | | PPP | May 29th, 1453 | | + * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | + * | Long localized time | NA | p | 12:00 AM | 5,8 | + * | | | pp | 12:00:00 AM | | + * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | + * | | | PPpp | May 29, 1453, 12:00:00 AM | | + * | | | PPPpp | May 29th, 1453 at ... | | + * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | + * Notes: + * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale + * are the same as "stand-alone" units, but are different in some languages. + * "Formatting" units are declined according to the rules of the language + * in the context of a date. "Stand-alone" units are always nominative singular. + * In `format` function, they will produce different result: + * + * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` + * + * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` + * + * `parse` will try to match both formatting and stand-alone units interchangably. + * + * 2. Any sequence of the identical letters is a pattern, unless it is escaped by + * the single quote characters (see below). + * If the sequence is longer than listed in table: + * - for numerical units (`yyyyyyyy`) `parse` will try to match a number + * as wide as the sequence + * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. + * These variations are marked with "2" in the last column of the table. + * + * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. + * These tokens represent the shortest form of the quarter. + * + * 4. The main difference between `y` and `u` patterns are B.C. years: + * + * | Year | `y` | `u` | + * |------|-----|-----| + * | AC 1 | 1 | 1 | + * | BC 1 | 1 | 0 | + * | BC 2 | 2 | -1 | + * + * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: + * + * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` + * + * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` + * + * while `uu` will just assign the year as is: + * + * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` + * + * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` + * + * The same difference is true for local and ISO week-numbering years (`Y` and `R`), + * except local week-numbering years are dependent on `options.weekStartsOn` + * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} + * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). + * + * 5. These patterns are not in the Unicode Technical Standard #35: + * - `i`: ISO day of week + * - `I`: ISO week of year + * - `R`: ISO week-numbering year + * - `o`: ordinal number modifier + * - `P`: long localized date + * - `p`: long localized time + * + * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. + * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. + * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * + * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based + * on the given locale. + * + * using `en-US` locale: `P` => `MM/dd/yyyy` + * using `en-US` locale: `p` => `hh:mm a` + * using `pt-BR` locale: `P` => `dd/MM/yyyy` + * using `pt-BR` locale: `p` => `HH:mm` + * + * Values will be assigned to the date in the descending order of its unit's priority. + * Units of an equal priority overwrite each other in the order of appearance. + * + * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), + * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. + * + * `referenceDate` must be passed for correct work of the function. + * If you're not sure which `referenceDate` to supply, create a new instance of Date: + * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` + * In this case parsing will be done in the context of the current date. + * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, + * then `Invalid Date` will be returned. + * + * The result may vary by locale. + * + * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. + * + * If parsing failed, `Invalid Date` will be returned. + * Invalid Date is a Date, whose time value is NaN. + * Time value of Date: http://es5.github.io/#x15.9.1.1 + * + * @param {String} dateString - the string to parse + * @param {String} formatString - the string of tokens + * @param {Date|Number} referenceDate - defines values missing from the parsed dateString + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; + * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @returns {Date} the parsed date + * @throws {TypeError} 3 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * @throws {RangeError} `options.locale` must contain `match` property + * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md + * @throws {RangeError} format string contains an unescaped latin alphabet character + * + * @example + * // Parse 11 February 2014 from middle-endian format: + * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) + * //=> Tue Feb 11 2014 00:00:00 + * + * @example + * // Parse 28th of February in Esperanto locale in the context of 2010 year: + * import eo from 'date-fns/locale/eo' + * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { + * locale: eo + * }) + * //=> Sun Feb 28 2010 00:00:00 + */ + +function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) { + var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; + + (0, _index9.default)(3, arguments); + var dateString = String(dirtyDateString); + var formatString = String(dirtyFormatString); + var defaultOptions = (0, _index11.getDefaultOptions)(); + var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _index.default; + + if (!locale.match) { + throw new RangeError('locale must contain match property'); + } + + var firstWeekContainsDate = (0, _index8.default)((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN + + if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { + throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); + } + + var weekStartsOn = (0, _index8.default)((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + if (formatString === '') { + if (dateString === '') { + return (0, _index3.default)(dirtyReferenceDate); + } else { + return new Date(NaN); + } + } + + var subFnOptions = { + firstWeekContainsDate: firstWeekContainsDate, + weekStartsOn: weekStartsOn, + locale: locale + }; // If timezone isn't specified, it will be set to the system timezone + + var setters = [new _Setter.DateToSystemTimezoneSetter()]; + var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { + var firstCharacter = substring[0]; + + if (firstCharacter in _index5.default) { + var longFormatter = _index5.default[firstCharacter]; + return longFormatter(substring, locale.formatLong); + } + + return substring; + }).join('').match(formattingTokensRegExp); + var usedTokens = []; + + var _iterator = _createForOfIteratorHelper(tokens), + _step; + + try { + var _loop = function _loop() { + var token = _step.value; + + if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && (0, _index7.isProtectedWeekYearToken)(token)) { + (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); + } + + if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && (0, _index7.isProtectedDayOfYearToken)(token)) { + (0, _index7.throwProtectedError)(token, formatString, dirtyDateString); + } + + var firstCharacter = token[0]; + var parser = _index10.parsers[firstCharacter]; + + if (parser) { + var incompatibleTokens = parser.incompatibleTokens; + + if (Array.isArray(incompatibleTokens)) { + var incompatibleToken = usedTokens.find(function (usedToken) { + return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter; + }); + + if (incompatibleToken) { + throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); + } + } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) { + throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); + } + + usedTokens.push({ + token: firstCharacter, + fullToken: token + }); + var parseResult = parser.run(dateString, token, locale.match, subFnOptions); + + if (!parseResult) { + return { + v: new Date(NaN) + }; + } + + setters.push(parseResult.setter); + dateString = parseResult.rest; + } else { + if (firstCharacter.match(unescapedLatinCharacterRegExp)) { + throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); + } // Replace two single quote characters with one single quote character + + + if (token === "''") { + token = "'"; + } else if (firstCharacter === "'") { + token = cleanEscapedString(token); + } // Cut token from string, or, if string doesn't match the token, return Invalid Date + + + if (dateString.indexOf(token) === 0) { + dateString = dateString.slice(token.length); + } else { + return { + v: new Date(NaN) + }; + } + } + }; + + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var _ret = _loop(); + + if (_typeof(_ret) === "object") return _ret.v; + } // Check if the remaining input contains something other than whitespace + + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + + if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { + return new Date(NaN); + } + + var uniquePrioritySetters = setters.map(function (setter) { + return setter.priority; + }).sort(function (a, b) { + return b - a; + }).filter(function (priority, index, array) { + return array.indexOf(priority) === index; + }).map(function (priority) { + return setters.filter(function (setter) { + return setter.priority === priority; + }).sort(function (a, b) { + return b.subPriority - a.subPriority; + }); + }).map(function (setterArray) { + return setterArray[0]; + }); + var date = (0, _index3.default)(dirtyReferenceDate); + + if (isNaN(date.getTime())) { + return new Date(NaN); + } // Convert the date in system timezone to the same date in UTC+00:00 timezone. + + + var utcDate = (0, _index2.default)(date, (0, _index6.default)(date)); + var flags = {}; + + var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters), + _step2; + + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var setter = _step2.value; + + if (!setter.validate(utcDate, subFnOptions)) { + return new Date(NaN); + } + + var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags) + + if (Array.isArray(result)) { + utcDate = result[0]; + (0, _index4.default)(flags, result[1]); // Result is date + } else { + utcDate = result; + } + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + + return utcDate; +} + +function cleanEscapedString(input) { + return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/parse/index.js.flow b/node_modules/date-fns/parse/index.js.flow new file mode 100644 index 00000000..f8e1cfe9 --- /dev/null +++ b/node_modules/date-fns/parse/index.js.flow @@ -0,0 +1,63 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + useAdditionalWeekYearTokens?: boolean, + useAdditionalDayOfYearTokens?: boolean, + } +) => Date diff --git a/node_modules/date-fns/parse/package.json b/node_modules/date-fns/parse/package.json new file mode 100644 index 00000000..8e25092a --- /dev/null +++ b/node_modules/date-fns/parse/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/parse/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/parseISO/index.d.ts b/node_modules/date-fns/parseISO/index.d.ts new file mode 100644 index 00000000..ee06fe62 --- /dev/null +++ b/node_modules/date-fns/parseISO/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseISO } from 'date-fns' +export default parseISO diff --git a/node_modules/date-fns/parseISO/index.js b/node_modules/date-fns/parseISO/index.js new file mode 100644 index 00000000..5444674d --- /dev/null +++ b/node_modules/date-fns/parseISO/index.js @@ -0,0 +1,280 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parseISO; + +var _index = require("../constants/index.js"); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name parseISO + * @category Common Helpers + * @summary Parse ISO string + * + * @description + * Parse the given string in ISO 8601 format and return an instance of Date. + * + * Function accepts complete ISO 8601 formats as well as partial implementations. + * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 + * + * If the argument isn't a string, the function cannot parse the string or + * the values are invalid, it returns Invalid Date. + * + * @param {String} argument - the value to convert + * @param {Object} [options] - an object with options. + * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 + * + * @example + * // Convert string '2014-02-11T11:30:30' to date: + * const result = parseISO('2014-02-11T11:30:30') + * //=> Tue Feb 11 2014 11:30:30 + * + * @example + * // Convert string '+02014101' to date, + * // if the additional number of digits in the extended year format is 1: + * const result = parseISO('+02014101', { additionalDigits: 1 }) + * //=> Fri Apr 11 2014 00:00:00 + */ +function parseISO(argument, options) { + var _options$additionalDi; + + (0, _index2.default)(1, arguments); + var additionalDigits = (0, _index3.default)((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2); + + if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { + throw new RangeError('additionalDigits must be 0, 1 or 2'); + } + + if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) { + return new Date(NaN); + } + + var dateStrings = splitDateString(argument); + var date; + + if (dateStrings.date) { + var parseYearResult = parseYear(dateStrings.date, additionalDigits); + date = parseDate(parseYearResult.restDateString, parseYearResult.year); + } + + if (!date || isNaN(date.getTime())) { + return new Date(NaN); + } + + var timestamp = date.getTime(); + var time = 0; + var offset; + + if (dateStrings.time) { + time = parseTime(dateStrings.time); + + if (isNaN(time)) { + return new Date(NaN); + } + } + + if (dateStrings.timezone) { + offset = parseTimezone(dateStrings.timezone); + + if (isNaN(offset)) { + return new Date(NaN); + } + } else { + var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone + // but we need it to be parsed in our timezone + // so we use utc values to build date in our timezone. + // Year values from 0 to 99 map to the years 1900 to 1999 + // so set year explicitly with setFullYear. + + var result = new Date(0); + result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate()); + result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); + return result; + } + + return new Date(timestamp + time + offset); +} + +var patterns = { + dateTimeDelimiter: /[T ]/, + timeZoneDelimiter: /[Z ]/i, + timezone: /([Z+-].*)$/ +}; +var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; +var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; +var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; + +function splitDateString(dateString) { + var dateStrings = {}; + var array = dateString.split(patterns.dateTimeDelimiter); + var timeString; // The regex match should only return at maximum two array elements. + // [date], [time], or [date, time]. + + if (array.length > 2) { + return dateStrings; + } + + if (/:/.test(array[0])) { + timeString = array[0]; + } else { + dateStrings.date = array[0]; + timeString = array[1]; + + if (patterns.timeZoneDelimiter.test(dateStrings.date)) { + dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; + timeString = dateString.substr(dateStrings.date.length, dateString.length); + } + } + + if (timeString) { + var token = patterns.timezone.exec(timeString); + + if (token) { + dateStrings.time = timeString.replace(token[1], ''); + dateStrings.timezone = token[1]; + } else { + dateStrings.time = timeString; + } + } + + return dateStrings; +} + +function parseYear(dateString, additionalDigits) { + var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)'); + var captures = dateString.match(regex); // Invalid ISO-formatted year + + if (!captures) return { + year: NaN, + restDateString: '' + }; + var year = captures[1] ? parseInt(captures[1]) : null; + var century = captures[2] ? parseInt(captures[2]) : null; // either year or century is null, not both + + return { + year: century === null ? year : century * 100, + restDateString: dateString.slice((captures[1] || captures[2]).length) + }; +} + +function parseDate(dateString, year) { + // Invalid ISO-formatted year + if (year === null) return new Date(NaN); + var captures = dateString.match(dateRegex); // Invalid ISO-formatted string + + if (!captures) return new Date(NaN); + var isWeekDate = !!captures[4]; + var dayOfYear = parseDateUnit(captures[1]); + var month = parseDateUnit(captures[2]) - 1; + var day = parseDateUnit(captures[3]); + var week = parseDateUnit(captures[4]); + var dayOfWeek = parseDateUnit(captures[5]) - 1; + + if (isWeekDate) { + if (!validateWeekDate(year, week, dayOfWeek)) { + return new Date(NaN); + } + + return dayOfISOWeekYear(year, week, dayOfWeek); + } else { + var date = new Date(0); + + if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { + return new Date(NaN); + } + + date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); + return date; + } +} + +function parseDateUnit(value) { + return value ? parseInt(value) : 1; +} + +function parseTime(timeString) { + var captures = timeString.match(timeRegex); + if (!captures) return NaN; // Invalid ISO-formatted time + + var hours = parseTimeUnit(captures[1]); + var minutes = parseTimeUnit(captures[2]); + var seconds = parseTimeUnit(captures[3]); + + if (!validateTime(hours, minutes, seconds)) { + return NaN; + } + + return hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute + seconds * 1000; +} + +function parseTimeUnit(value) { + return value && parseFloat(value.replace(',', '.')) || 0; +} + +function parseTimezone(timezoneString) { + if (timezoneString === 'Z') return 0; + var captures = timezoneString.match(timezoneRegex); + if (!captures) return 0; + var sign = captures[1] === '+' ? -1 : 1; + var hours = parseInt(captures[2]); + var minutes = captures[3] && parseInt(captures[3]) || 0; + + if (!validateTimezone(hours, minutes)) { + return NaN; + } + + return sign * (hours * _index.millisecondsInHour + minutes * _index.millisecondsInMinute); +} + +function dayOfISOWeekYear(isoWeekYear, week, day) { + var date = new Date(0); + date.setUTCFullYear(isoWeekYear, 0, 4); + var fourthOfJanuaryDay = date.getUTCDay() || 7; + var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; + date.setUTCDate(date.getUTCDate() + diff); + return date; +} // Validation functions +// February is null to handle the leap year (using ||) + + +var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; + +function isLeapYearIndex(year) { + return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; +} + +function validateDate(year, month, date) { + return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); +} + +function validateDayOfYearDate(year, dayOfYear) { + return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); +} + +function validateWeekDate(_year, week, day) { + return week >= 1 && week <= 53 && day >= 0 && day <= 6; +} + +function validateTime(hours, minutes, seconds) { + if (hours === 24) { + return minutes === 0 && seconds === 0; + } + + return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; +} + +function validateTimezone(_hours, minutes) { + return minutes >= 0 && minutes <= 59; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/parseISO/index.js.flow b/node_modules/date-fns/parseISO/index.js.flow new file mode 100644 index 00000000..951a222e --- /dev/null +++ b/node_modules/date-fns/parseISO/index.js.flow @@ -0,0 +1,57 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2, + } +) => Date diff --git a/node_modules/date-fns/parseISO/package.json b/node_modules/date-fns/parseISO/package.json new file mode 100644 index 00000000..e1922517 --- /dev/null +++ b/node_modules/date-fns/parseISO/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/parseISO/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/parseJSON/index.d.ts b/node_modules/date-fns/parseJSON/index.d.ts new file mode 100644 index 00000000..b6b186d8 --- /dev/null +++ b/node_modules/date-fns/parseJSON/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { parseJSON } from 'date-fns' +export default parseJSON diff --git a/node_modules/date-fns/parseJSON/index.js b/node_modules/date-fns/parseJSON/index.js new file mode 100644 index 00000000..c8059c19 --- /dev/null +++ b/node_modules/date-fns/parseJSON/index.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parseJSON; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name parseJSON + * @category Common Helpers + * @summary Parse a JSON date string + * + * @description + * Converts a complete ISO date string in UTC time, the typical format for transmitting + * a date in JSON, to a JavaScript `Date` instance. + * + * This is a minimal implementation for converting dates retrieved from a JSON API to + * a `Date` instance which can be used with other functions in the `date-fns` library. + * The following formats are supported: + * + * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())` + * - `2000-03-15T05:20:10Z`: Without milliseconds + * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages + * - `2000-03-15T05:20:10+05:45`: With a positive or negative offset, the default JSON encoded format in some other languages + * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon + * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol + * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds + * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting + * + * For convenience and ease of use these other input types are also supported + * via [toDate]{@link https://date-fns.org/docs/toDate}: + * + * - A `Date` instance will be cloned + * - A `number` will be treated as a timestamp + * + * Any other input type or invalid date strings will return an `Invalid Date`. + * + * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + */ +function parseJSON(argument) { + (0, _index2.default)(1, arguments); + + if (typeof argument === 'string') { + var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/); + + if (parts) { + // Group 8 matches the sign + return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4] - (+parts[9] || 0) * (parts[8] == '-' ? -1 : 1), +parts[5] - (+parts[10] || 0) * (parts[8] == '-' ? -1 : 1), +parts[6], +((parts[7] || '0') + '00').substring(0, 3))); + } + + return new Date(NaN); + } + + return (0, _index.default)(argument); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/parseJSON/index.js.flow b/node_modules/date-fns/parseJSON/index.js.flow new file mode 100644 index 00000000..c4801bf3 --- /dev/null +++ b/node_modules/date-fns/parseJSON/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (argument: string | number | Date) => Date diff --git a/node_modules/date-fns/parseJSON/package.json b/node_modules/date-fns/parseJSON/package.json new file mode 100644 index 00000000..44f4b4ec --- /dev/null +++ b/node_modules/date-fns/parseJSON/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/parseJSON/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousDay/index.d.ts b/node_modules/date-fns/previousDay/index.d.ts new file mode 100644 index 00000000..0e6a8c99 --- /dev/null +++ b/node_modules/date-fns/previousDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousDay } from 'date-fns' +export default previousDay diff --git a/node_modules/date-fns/previousDay/index.js b/node_modules/date-fns/previousDay/index.js new file mode 100755 index 00000000..7e0d522a --- /dev/null +++ b/node_modules/date-fns/previousDay/index.js @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousDay; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../getDay/index.js")); + +var _index3 = _interopRequireDefault(require("../subDays/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousDay + * @category Weekday Helpers + * @summary When is the previous day of the week? + * + * @description + * When is the previous day of the week? 0-6 the day of the week, 0 represents Sunday. + * + * @param {Date | number} date - the date to check + * @param {number} day - day of the week + * @returns {Date} - the date is the previous day of week + * @throws {TypeError} - 2 arguments required + * + * @example + * // When is the previous Monday before Mar, 20, 2020? + * const result = previousDay(new Date(2020, 2, 20), 1) + * //=> Mon Mar 16 2020 00:00:00 + * + * @example + * // When is the previous Tuesday before Mar, 21, 2020? + * const result = previousDay(new Date(2020, 2, 21), 2) + * //=> Tue Mar 17 2020 00:00:00 + */ +function previousDay(date, day) { + (0, _index.default)(2, arguments); + var delta = (0, _index2.default)(date) - day; + if (delta <= 0) delta += 7; + return (0, _index3.default)(date, delta); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousDay/index.js.flow b/node_modules/date-fns/previousDay/index.js.flow new file mode 100644 index 00000000..07b06297 --- /dev/null +++ b/node_modules/date-fns/previousDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: number) => Date diff --git a/node_modules/date-fns/previousDay/package.json b/node_modules/date-fns/previousDay/package.json new file mode 100644 index 00000000..618cfa06 --- /dev/null +++ b/node_modules/date-fns/previousDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousFriday/index.d.ts b/node_modules/date-fns/previousFriday/index.d.ts new file mode 100644 index 00000000..1d68bdfc --- /dev/null +++ b/node_modules/date-fns/previousFriday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousFriday } from 'date-fns' +export default previousFriday diff --git a/node_modules/date-fns/previousFriday/index.js b/node_modules/date-fns/previousFriday/index.js new file mode 100755 index 00000000..05b9b247 --- /dev/null +++ b/node_modules/date-fns/previousFriday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousFriday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousFriday + * @category Weekday Helpers + * @summary When is the previous Friday? + * + * @description + * When is the previous Friday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Friday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Friday before Jun, 19, 2021? + * const result = previousFriday(new Date(2021, 5, 19)) + * //=> Fri June 18 2021 00:00:00 + */ +function previousFriday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 5); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousFriday/index.js.flow b/node_modules/date-fns/previousFriday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousFriday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousFriday/package.json b/node_modules/date-fns/previousFriday/package.json new file mode 100644 index 00000000..54fade6a --- /dev/null +++ b/node_modules/date-fns/previousFriday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousFriday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousMonday/index.d.ts b/node_modules/date-fns/previousMonday/index.d.ts new file mode 100644 index 00000000..2bebd14b --- /dev/null +++ b/node_modules/date-fns/previousMonday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousMonday } from 'date-fns' +export default previousMonday diff --git a/node_modules/date-fns/previousMonday/index.js b/node_modules/date-fns/previousMonday/index.js new file mode 100755 index 00000000..586ec2c1 --- /dev/null +++ b/node_modules/date-fns/previousMonday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousMonday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousMonday + * @category Weekday Helpers + * @summary When is the previous Monday? + * + * @description + * When is the previous Monday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Monday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Monday before Jun, 18, 2021? + * const result = previousMonday(new Date(2021, 5, 18)) + * //=> Mon June 14 2021 00:00:00 + */ +function previousMonday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 1); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousMonday/index.js.flow b/node_modules/date-fns/previousMonday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousMonday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousMonday/package.json b/node_modules/date-fns/previousMonday/package.json new file mode 100644 index 00000000..86413983 --- /dev/null +++ b/node_modules/date-fns/previousMonday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousMonday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousSaturday/index.d.ts b/node_modules/date-fns/previousSaturday/index.d.ts new file mode 100644 index 00000000..a0c92895 --- /dev/null +++ b/node_modules/date-fns/previousSaturday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSaturday } from 'date-fns' +export default previousSaturday diff --git a/node_modules/date-fns/previousSaturday/index.js b/node_modules/date-fns/previousSaturday/index.js new file mode 100755 index 00000000..6f104e68 --- /dev/null +++ b/node_modules/date-fns/previousSaturday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousSaturday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousSaturday + * @category Weekday Helpers + * @summary When is the previous Saturday? + * + * @description + * When is the previous Saturday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Saturday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Saturday before Jun, 20, 2021? + * const result = previousSaturday(new Date(2021, 5, 20)) + * //=> Sat June 19 2021 00:00:00 + */ +function previousSaturday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 6); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousSaturday/index.js.flow b/node_modules/date-fns/previousSaturday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousSaturday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousSaturday/package.json b/node_modules/date-fns/previousSaturday/package.json new file mode 100644 index 00000000..cb15ba7c --- /dev/null +++ b/node_modules/date-fns/previousSaturday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousSaturday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousSunday/index.d.ts b/node_modules/date-fns/previousSunday/index.d.ts new file mode 100644 index 00000000..79ba9a43 --- /dev/null +++ b/node_modules/date-fns/previousSunday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousSunday } from 'date-fns' +export default previousSunday diff --git a/node_modules/date-fns/previousSunday/index.js b/node_modules/date-fns/previousSunday/index.js new file mode 100755 index 00000000..34cc4c28 --- /dev/null +++ b/node_modules/date-fns/previousSunday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousSunday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousSunday + * @category Weekday Helpers + * @summary When is the previous Sunday? + * + * @description + * When is the previous Sunday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Sunday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Sunday before Jun, 21, 2021? + * const result = previousSunday(new Date(2021, 5, 21)) + * //=> Sun June 20 2021 00:00:00 + */ +function previousSunday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 0); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousSunday/index.js.flow b/node_modules/date-fns/previousSunday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousSunday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousSunday/package.json b/node_modules/date-fns/previousSunday/package.json new file mode 100644 index 00000000..cfe6dd93 --- /dev/null +++ b/node_modules/date-fns/previousSunday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousSunday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousThursday/index.d.ts b/node_modules/date-fns/previousThursday/index.d.ts new file mode 100644 index 00000000..ba1d22ab --- /dev/null +++ b/node_modules/date-fns/previousThursday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousThursday } from 'date-fns' +export default previousThursday diff --git a/node_modules/date-fns/previousThursday/index.js b/node_modules/date-fns/previousThursday/index.js new file mode 100755 index 00000000..a9795be4 --- /dev/null +++ b/node_modules/date-fns/previousThursday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousThursday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousThursday + * @category Weekday Helpers + * @summary When is the previous Thursday? + * + * @description + * When is the previous Thursday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Thursday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Thursday before Jun, 18, 2021? + * const result = previousThursday(new Date(2021, 5, 18)) + * //=> Thu June 17 2021 00:00:00 + */ +function previousThursday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 4); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousThursday/index.js.flow b/node_modules/date-fns/previousThursday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousThursday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousThursday/package.json b/node_modules/date-fns/previousThursday/package.json new file mode 100644 index 00000000..d3b0c583 --- /dev/null +++ b/node_modules/date-fns/previousThursday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousThursday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousTuesday/index.d.ts b/node_modules/date-fns/previousTuesday/index.d.ts new file mode 100644 index 00000000..4c7094d1 --- /dev/null +++ b/node_modules/date-fns/previousTuesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousTuesday } from 'date-fns' +export default previousTuesday diff --git a/node_modules/date-fns/previousTuesday/index.js b/node_modules/date-fns/previousTuesday/index.js new file mode 100755 index 00000000..c3d30db7 --- /dev/null +++ b/node_modules/date-fns/previousTuesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousTuesday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousTuesday + * @category Weekday Helpers + * @summary When is the previous Tuesday? + * + * @description + * When is the previous Tuesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Tuesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Tuesday before Jun, 18, 2021? + * const result = previousTuesday(new Date(2021, 5, 18)) + * //=> Tue June 15 2021 00:00:00 + */ +function previousTuesday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 2); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousTuesday/index.js.flow b/node_modules/date-fns/previousTuesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousTuesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousTuesday/package.json b/node_modules/date-fns/previousTuesday/package.json new file mode 100644 index 00000000..eeef5d9a --- /dev/null +++ b/node_modules/date-fns/previousTuesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousTuesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/previousWednesday/index.d.ts b/node_modules/date-fns/previousWednesday/index.d.ts new file mode 100644 index 00000000..28010ea3 --- /dev/null +++ b/node_modules/date-fns/previousWednesday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { previousWednesday } from 'date-fns' +export default previousWednesday diff --git a/node_modules/date-fns/previousWednesday/index.js b/node_modules/date-fns/previousWednesday/index.js new file mode 100755 index 00000000..a49acadd --- /dev/null +++ b/node_modules/date-fns/previousWednesday/index.js @@ -0,0 +1,36 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = previousWednesday; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = _interopRequireDefault(require("../previousDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name previousWednesday + * @category Weekday Helpers + * @summary When is the previous Wednesday? + * + * @description + * When is the previous Wednesday? + * + * @param {Date | number} date - the date to start counting from + * @returns {Date} the previous Wednesday + * @throws {TypeError} 1 argument required + * + * @example + * // When is the previous Wednesday before Jun, 18, 2021? + * const result = previousWednesday(new Date(2021, 5, 18)) + * //=> Wed June 16 2021 00:00:00 + */ +function previousWednesday(date) { + (0, _index.default)(1, arguments); + return (0, _index2.default)(date, 3); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/previousWednesday/index.js.flow b/node_modules/date-fns/previousWednesday/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/previousWednesday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/previousWednesday/package.json b/node_modules/date-fns/previousWednesday/package.json new file mode 100644 index 00000000..c3b8c4de --- /dev/null +++ b/node_modules/date-fns/previousWednesday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/previousWednesday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/quartersToMonths/index.d.ts b/node_modules/date-fns/quartersToMonths/index.d.ts new file mode 100644 index 00000000..d2df2e17 --- /dev/null +++ b/node_modules/date-fns/quartersToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToMonths } from 'date-fns' +export default quartersToMonths diff --git a/node_modules/date-fns/quartersToMonths/index.js b/node_modules/date-fns/quartersToMonths/index.js new file mode 100644 index 00000000..f040ba48 --- /dev/null +++ b/node_modules/date-fns/quartersToMonths/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = quartersToMonths; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name quartersToMonths + * @category Conversion Helpers + * @summary Convert number of quarters to months. + * + * @description + * Convert a number of quarters to a full number of months. + * + * @param {number} quarters - number of quarters to be converted + * + * @returns {number} the number of quarters converted in months + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 quarters to months + * const result = quartersToMonths(2) + * //=> 6 + */ +function quartersToMonths(quarters) { + (0, _index.default)(1, arguments); + return Math.floor(quarters * _index2.monthsInQuarter); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/quartersToMonths/index.js.flow b/node_modules/date-fns/quartersToMonths/index.js.flow new file mode 100644 index 00000000..82259233 --- /dev/null +++ b/node_modules/date-fns/quartersToMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (quarters: number) => number diff --git a/node_modules/date-fns/quartersToMonths/package.json b/node_modules/date-fns/quartersToMonths/package.json new file mode 100644 index 00000000..2ee0c193 --- /dev/null +++ b/node_modules/date-fns/quartersToMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/quartersToMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/quartersToYears/index.d.ts b/node_modules/date-fns/quartersToYears/index.d.ts new file mode 100644 index 00000000..12490378 --- /dev/null +++ b/node_modules/date-fns/quartersToYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { quartersToYears } from 'date-fns' +export default quartersToYears diff --git a/node_modules/date-fns/quartersToYears/index.js b/node_modules/date-fns/quartersToYears/index.js new file mode 100644 index 00000000..43e6464c --- /dev/null +++ b/node_modules/date-fns/quartersToYears/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = quartersToYears; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name quartersToYears + * @category Conversion Helpers + * @summary Convert number of quarters to years. + * + * @description + * Convert a number of quarters to a full number of years. + * + * @param {number} quarters - number of quarters to be converted + * + * @returns {number} the number of quarters converted in years + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 8 quarters to years + * const result = quartersToYears(8) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = quartersToYears(11) + * //=> 2 + */ +function quartersToYears(quarters) { + (0, _index.default)(1, arguments); + var years = quarters / _index2.quartersInYear; + return Math.floor(years); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/quartersToYears/index.js.flow b/node_modules/date-fns/quartersToYears/index.js.flow new file mode 100644 index 00000000..82259233 --- /dev/null +++ b/node_modules/date-fns/quartersToYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (quarters: number) => number diff --git a/node_modules/date-fns/quartersToYears/package.json b/node_modules/date-fns/quartersToYears/package.json new file mode 100644 index 00000000..f5286dab --- /dev/null +++ b/node_modules/date-fns/quartersToYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/quartersToYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/roundToNearestMinutes/index.d.ts b/node_modules/date-fns/roundToNearestMinutes/index.d.ts new file mode 100644 index 00000000..8e564916 --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { roundToNearestMinutes } from 'date-fns' +export default roundToNearestMinutes diff --git a/node_modules/date-fns/roundToNearestMinutes/index.js b/node_modules/date-fns/roundToNearestMinutes/index.js new file mode 100644 index 00000000..6a2ed77b --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/index.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = roundToNearestMinutes; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = require("../_lib/roundingMethods/index.js"); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name roundToNearestMinutes + * @category Minute Helpers + * @summary Rounds the given date to the nearest minute + * + * @description + * Rounds the given date to the nearest minute (or number of minutes). + * Rounds up when the given date is exactly between the nearest round minutes. + * + * @param {Date|Number} date - the date to round + * @param {Object} [options] - an object with options. + * @param {Number} [options.nearestTo=1] - nearest number of minutes to round to. E.g. `15` to round to quarter hours. + * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`) + * @returns {Date} the new date rounded to the closest minute + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.nearestTo` must be between 1 and 30 + * + * @example + * // Round 10 July 2014 12:12:34 to nearest minute: + * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34)) + * //=> Thu Jul 10 2014 12:13:00 + * + * @example + * // Round 10 July 2014 12:07:30 to nearest quarter hour: + * const result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 }) + * // rounds up because given date is exactly between 12:00:00 and 12:15:00 + * //=> Thu Jul 10 2014 12:15:00 + */ +function roundToNearestMinutes(dirtyDate, options) { + var _options$nearestTo; + + if (arguments.length < 1) { + throw new TypeError('1 argument required, but only none provided present'); + } + + var nearestTo = (0, _index3.default)((_options$nearestTo = options === null || options === void 0 ? void 0 : options.nearestTo) !== null && _options$nearestTo !== void 0 ? _options$nearestTo : 1); + + if (nearestTo < 1 || nearestTo > 30) { + throw new RangeError('`options.nearestTo` must be between 1 and 30'); + } + + var date = (0, _index.default)(dirtyDate); + var seconds = date.getSeconds(); // relevant if nearestTo is 1, which is the default case + + var minutes = date.getMinutes() + seconds / 60; + var roundingMethod = (0, _index2.getRoundingMethod)(options === null || options === void 0 ? void 0 : options.roundingMethod); + var roundedMinutes = roundingMethod(minutes / nearestTo) * nearestTo; + var remainderMinutes = minutes % nearestTo; + var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo; + return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/roundToNearestMinutes/index.js.flow b/node_modules/date-fns/roundToNearestMinutes/index.js.flow new file mode 100644 index 00000000..41b3dfa3 --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + nearestTo?: number, + roundingMethod?: string, + } +) => Date diff --git a/node_modules/date-fns/roundToNearestMinutes/package.json b/node_modules/date-fns/roundToNearestMinutes/package.json new file mode 100644 index 00000000..d8efa787 --- /dev/null +++ b/node_modules/date-fns/roundToNearestMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/roundToNearestMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/secondsToHours/index.d.ts b/node_modules/date-fns/secondsToHours/index.d.ts new file mode 100644 index 00000000..89fcc9a4 --- /dev/null +++ b/node_modules/date-fns/secondsToHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToHours } from 'date-fns' +export default secondsToHours diff --git a/node_modules/date-fns/secondsToHours/index.js b/node_modules/date-fns/secondsToHours/index.js new file mode 100644 index 00000000..9a6b4f2b --- /dev/null +++ b/node_modules/date-fns/secondsToHours/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = secondsToHours; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name secondsToHours + * @category Conversion Helpers + * @summary Convert seconds to hours. + * + * @description + * Convert a number of seconds to a full number of hours. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in hours + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 7200 seconds into hours + * const result = secondsToHours(7200) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = secondsToHours(7199) + * //=> 1 + */ +function secondsToHours(seconds) { + (0, _index.default)(1, arguments); + var hours = seconds / _index2.secondsInHour; + return Math.floor(hours); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/secondsToHours/index.js.flow b/node_modules/date-fns/secondsToHours/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/secondsToHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/secondsToHours/package.json b/node_modules/date-fns/secondsToHours/package.json new file mode 100644 index 00000000..312a6d25 --- /dev/null +++ b/node_modules/date-fns/secondsToHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/secondsToHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/secondsToMilliseconds/index.d.ts b/node_modules/date-fns/secondsToMilliseconds/index.d.ts new file mode 100644 index 00000000..a2080374 --- /dev/null +++ b/node_modules/date-fns/secondsToMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMilliseconds } from 'date-fns' +export default secondsToMilliseconds diff --git a/node_modules/date-fns/secondsToMilliseconds/index.js b/node_modules/date-fns/secondsToMilliseconds/index.js new file mode 100644 index 00000000..c9c567c0 --- /dev/null +++ b/node_modules/date-fns/secondsToMilliseconds/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = secondsToMilliseconds; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name secondsToMilliseconds + * @category Conversion Helpers + * @summary Convert seconds to milliseconds. + * + * @description + * Convert a number of seconds to a full number of milliseconds. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in milliseconds + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 seconds into milliseconds + * const result = secondsToMilliseconds(2) + * //=> 2000 + */ +function secondsToMilliseconds(seconds) { + (0, _index.default)(1, arguments); + return seconds * _index2.millisecondsInSecond; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/secondsToMilliseconds/index.js.flow b/node_modules/date-fns/secondsToMilliseconds/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/secondsToMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/secondsToMilliseconds/package.json b/node_modules/date-fns/secondsToMilliseconds/package.json new file mode 100644 index 00000000..baf799c1 --- /dev/null +++ b/node_modules/date-fns/secondsToMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/secondsToMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/secondsToMinutes/index.d.ts b/node_modules/date-fns/secondsToMinutes/index.d.ts new file mode 100644 index 00000000..22846dd3 --- /dev/null +++ b/node_modules/date-fns/secondsToMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { secondsToMinutes } from 'date-fns' +export default secondsToMinutes diff --git a/node_modules/date-fns/secondsToMinutes/index.js b/node_modules/date-fns/secondsToMinutes/index.js new file mode 100644 index 00000000..cc3fb58b --- /dev/null +++ b/node_modules/date-fns/secondsToMinutes/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = secondsToMinutes; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name secondsToMinutes + * @category Conversion Helpers + * @summary Convert seconds to minutes. + * + * @description + * Convert a number of seconds to a full number of minutes. + * + * @param {number} seconds - number of seconds to be converted + * + * @returns {number} the number of seconds converted in minutes + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 120 seconds into minutes + * const result = secondsToMinutes(120) + * //=> 2 + * + * @example + * // It uses floor rounding: + * const result = secondsToMinutes(119) + * //=> 1 + */ +function secondsToMinutes(seconds) { + (0, _index.default)(1, arguments); + var minutes = seconds / _index2.secondsInMinute; + return Math.floor(minutes); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/secondsToMinutes/index.js.flow b/node_modules/date-fns/secondsToMinutes/index.js.flow new file mode 100644 index 00000000..371c79a3 --- /dev/null +++ b/node_modules/date-fns/secondsToMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (seconds: number) => number diff --git a/node_modules/date-fns/secondsToMinutes/package.json b/node_modules/date-fns/secondsToMinutes/package.json new file mode 100644 index 00000000..5ded90a9 --- /dev/null +++ b/node_modules/date-fns/secondsToMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/secondsToMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/set/index.d.ts b/node_modules/date-fns/set/index.d.ts new file mode 100644 index 00000000..d30347b6 --- /dev/null +++ b/node_modules/date-fns/set/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { set } from 'date-fns' +export default set diff --git a/node_modules/date-fns/set/index.js b/node_modules/date-fns/set/index.js new file mode 100644 index 00000000..ddb6e25b --- /dev/null +++ b/node_modules/date-fns/set/index.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = set; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../setMonth/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name set + * @category Common Helpers + * @summary Set date values to a given date. + * + * @description + * Set date values to a given date. + * + * Sets time values to date from object `values`. + * A value is not set if it is undefined or null or doesn't exist in `values`. + * + * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts + * to use native `Date#setX` methods. If you use this function, you may not want to include the + * other `setX` functions that date-fns provides if you are concerned about the bundle size. + * + * @param {Date|Number} date - the date to be changed + * @param {Object} values - an object with options + * @param {Number} [values.year] - the number of years to be set + * @param {Number} [values.month] - the number of months to be set + * @param {Number} [values.date] - the number of days to be set + * @param {Number} [values.hours] - the number of hours to be set + * @param {Number} [values.minutes] - the number of minutes to be set + * @param {Number} [values.seconds] - the number of seconds to be set + * @param {Number} [values.milliseconds] - the number of milliseconds to be set + * @returns {Date} the new date with options set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `values` must be an object + * + * @example + * // Transform 1 September 2014 into 20 October 2015 in a single line: + * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) + * //=> Tue Oct 20 2015 00:00:00 + * + * @example + * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: + * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) + * //=> Mon Sep 01 2014 12:23:45 + */ +function set(dirtyDate, values) { + (0, _index4.default)(2, arguments); + + if (_typeof(values) !== 'object' || values === null) { + throw new RangeError('values parameter must be an object'); + } + + var date = (0, _index.default)(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date + + if (isNaN(date.getTime())) { + return new Date(NaN); + } + + if (values.year != null) { + date.setFullYear(values.year); + } + + if (values.month != null) { + date = (0, _index2.default)(date, values.month); + } + + if (values.date != null) { + date.setDate((0, _index3.default)(values.date)); + } + + if (values.hours != null) { + date.setHours((0, _index3.default)(values.hours)); + } + + if (values.minutes != null) { + date.setMinutes((0, _index3.default)(values.minutes)); + } + + if (values.seconds != null) { + date.setSeconds((0, _index3.default)(values.seconds)); + } + + if (values.milliseconds != null) { + date.setMilliseconds((0, _index3.default)(values.milliseconds)); + } + + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/set/index.js.flow b/node_modules/date-fns/set/index.js.flow new file mode 100644 index 00000000..384f137c --- /dev/null +++ b/node_modules/date-fns/set/index.js.flow @@ -0,0 +1,63 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + values: { + year?: number, + month?: number, + date?: number, + hours?: number, + minutes?: number, + seconds?: number, + milliseconds?: number, + } +) => Date diff --git a/node_modules/date-fns/set/package.json b/node_modules/date-fns/set/package.json new file mode 100644 index 00000000..f71ed567 --- /dev/null +++ b/node_modules/date-fns/set/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/set/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setDate/index.d.ts b/node_modules/date-fns/setDate/index.d.ts new file mode 100644 index 00000000..677ea304 --- /dev/null +++ b/node_modules/date-fns/setDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDate } from 'date-fns' +export default setDate diff --git a/node_modules/date-fns/setDate/index.js b/node_modules/date-fns/setDate/index.js new file mode 100644 index 00000000..12e656dd --- /dev/null +++ b/node_modules/date-fns/setDate/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setDate; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setDate + * @category Day Helpers + * @summary Set the day of the month to the given date. + * + * @description + * Set the day of the month to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} dayOfMonth - the day of the month of the new date + * @returns {Date} the new date with the day of the month set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 30th day of the month to 1 September 2014: + * const result = setDate(new Date(2014, 8, 1), 30) + * //=> Tue Sep 30 2014 00:00:00 + */ +function setDate(dirtyDate, dirtyDayOfMonth) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var dayOfMonth = (0, _index.default)(dirtyDayOfMonth); + date.setDate(dayOfMonth); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setDate/index.js.flow b/node_modules/date-fns/setDate/index.js.flow new file mode 100644 index 00000000..8c9b8072 --- /dev/null +++ b/node_modules/date-fns/setDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, dayOfMonth: number) => Date diff --git a/node_modules/date-fns/setDate/package.json b/node_modules/date-fns/setDate/package.json new file mode 100644 index 00000000..fd14079e --- /dev/null +++ b/node_modules/date-fns/setDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setDate/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setDay/index.d.ts b/node_modules/date-fns/setDay/index.d.ts new file mode 100644 index 00000000..5b3d9d18 --- /dev/null +++ b/node_modules/date-fns/setDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDay } from 'date-fns' +export default setDay diff --git a/node_modules/date-fns/setDay/index.js b/node_modules/date-fns/setDay/index.js new file mode 100644 index 00000000..0737abc0 --- /dev/null +++ b/node_modules/date-fns/setDay/index.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setDay; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setDay + * @category Weekday Helpers + * @summary Set the day of the week to the given date. + * + * @description + * Set the day of the week to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} day - the day of the week of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the new date with the day of the week set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // Set week day to Sunday, with the default weekStartsOn of Sunday: + * const result = setDay(new Date(2014, 8, 1), 0) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Set week day to Sunday, with a weekStartsOn of Monday: + * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 }) + * //=> Sun Sep 07 2014 00:00:00 + */ +function setDay(dirtyDate, dirtyDay, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index4.default)(2, arguments); + var defaultOptions = (0, _index5.getDefaultOptions)(); + var weekStartsOn = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = (0, _index2.default)(dirtyDate); + var day = (0, _index3.default)(dirtyDay); + var currentDay = date.getDay(); + var remainder = day % 7; + var dayIndex = (remainder + 7) % 7; + var delta = 7 - weekStartsOn; + var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7; + return (0, _index.default)(date, diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setDay/index.js.flow b/node_modules/date-fns/setDay/index.js.flow new file mode 100644 index 00000000..4a2d43d2 --- /dev/null +++ b/node_modules/date-fns/setDay/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + day: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/setDay/package.json b/node_modules/date-fns/setDay/package.json new file mode 100644 index 00000000..b9cad1aa --- /dev/null +++ b/node_modules/date-fns/setDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setDayOfYear/index.d.ts b/node_modules/date-fns/setDayOfYear/index.d.ts new file mode 100644 index 00000000..5536c572 --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDayOfYear } from 'date-fns' +export default setDayOfYear diff --git a/node_modules/date-fns/setDayOfYear/index.js b/node_modules/date-fns/setDayOfYear/index.js new file mode 100644 index 00000000..8699a11b --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/index.js @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setDayOfYear; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setDayOfYear + * @category Day Helpers + * @summary Set the day of the year to the given date. + * + * @description + * Set the day of the year to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} dayOfYear - the day of the year of the new date + * @returns {Date} the new date with the day of the year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 2nd day of the year to 2 July 2014: + * const result = setDayOfYear(new Date(2014, 6, 2), 2) + * //=> Thu Jan 02 2014 00:00:00 + */ +function setDayOfYear(dirtyDate, dirtyDayOfYear) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var dayOfYear = (0, _index.default)(dirtyDayOfYear); + date.setMonth(0); + date.setDate(dayOfYear); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setDayOfYear/index.js.flow b/node_modules/date-fns/setDayOfYear/index.js.flow new file mode 100644 index 00000000..fc974d45 --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, dayOfYear: number) => Date diff --git a/node_modules/date-fns/setDayOfYear/package.json b/node_modules/date-fns/setDayOfYear/package.json new file mode 100644 index 00000000..a76beef0 --- /dev/null +++ b/node_modules/date-fns/setDayOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setDayOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setDefaultOptions/index.d.ts b/node_modules/date-fns/setDefaultOptions/index.d.ts new file mode 100644 index 00000000..35cf7c8c --- /dev/null +++ b/node_modules/date-fns/setDefaultOptions/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setDefaultOptions } from 'date-fns' +export default setDefaultOptions diff --git a/node_modules/date-fns/setDefaultOptions/index.js b/node_modules/date-fns/setDefaultOptions/index.js new file mode 100644 index 00000000..7903c57a --- /dev/null +++ b/node_modules/date-fns/setDefaultOptions/index.js @@ -0,0 +1,89 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setDefaultOptions; + +var _index = require("../_lib/defaultOptions/index.js"); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setDefaultOptions + * @category Common Helpers + * @summary Set default options including locale. + * @pure false + * + * @description + * Sets the defaults for + * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate` + * arguments for all functions. + * + * @param {Object} newOptions - an object with options. + * @param {Locale} [newOptions.locale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [newOptions.weekStartsOn] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [newOptions.firstWeekContainsDate] - the day of January, which is always in the first week of the year + * @throws {TypeError} 1 argument required + * + * @example + * // Set global locale: + * import { es } from 'date-fns/locale' + * setDefaultOptions({ locale: es }) + * const result = format(new Date(2014, 8, 2), 'PPPP') + * //=> 'martes, 2 de septiembre de 2014' + * + * @example + * // Start of the week for 2 September 2014: + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Start of the week for 2 September 2014, + * // when we set that week starts on Monday by default: + * setDefaultOptions({ weekStartsOn: 1 }) + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Mon Sep 01 2014 00:00:00 + * + * @example + * // Manually set options take priority over default options: + * setDefaultOptions({ weekStartsOn: 1 }) + * const result = startOfWeek(new Date(2014, 8, 2), { weekStartsOn: 0 }) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // Remove the option by setting it to `undefined`: + * setDefaultOptions({ weekStartsOn: 1 }) + * setDefaultOptions({ weekStartsOn: undefined }) + * const result = startOfWeek(new Date(2014, 8, 2)) + * //=> Sun Aug 31 2014 00:00:00 + */ +function setDefaultOptions(newOptions) { + (0, _index2.default)(1, arguments); + var result = {}; + var defaultOptions = (0, _index.getDefaultOptions)(); + + for (var property in defaultOptions) { + if (Object.prototype.hasOwnProperty.call(defaultOptions, property)) { + ; + result[property] = defaultOptions[property]; + } + } + + for (var _property in newOptions) { + if (Object.prototype.hasOwnProperty.call(newOptions, _property)) { + if (newOptions[_property] === undefined) { + delete result[_property]; + } else { + ; + result[_property] = newOptions[_property]; + } + } + } + + (0, _index.setDefaultOptions)(result); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setDefaultOptions/index.js.flow b/node_modules/date-fns/setDefaultOptions/index.js.flow new file mode 100644 index 00000000..99f1582a --- /dev/null +++ b/node_modules/date-fns/setDefaultOptions/index.js.flow @@ -0,0 +1,56 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (newOptions: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, +}) => void diff --git a/node_modules/date-fns/setDefaultOptions/package.json b/node_modules/date-fns/setDefaultOptions/package.json new file mode 100644 index 00000000..1bad783b --- /dev/null +++ b/node_modules/date-fns/setDefaultOptions/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setDefaultOptions/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setHours/index.d.ts b/node_modules/date-fns/setHours/index.d.ts new file mode 100644 index 00000000..2709a321 --- /dev/null +++ b/node_modules/date-fns/setHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setHours } from 'date-fns' +export default setHours diff --git a/node_modules/date-fns/setHours/index.js b/node_modules/date-fns/setHours/index.js new file mode 100644 index 00000000..450ae1e1 --- /dev/null +++ b/node_modules/date-fns/setHours/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setHours; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setHours + * @category Hour Helpers + * @summary Set the hours to the given date. + * + * @description + * Set the hours to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} hours - the hours of the new date + * @returns {Date} the new date with the hours set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 4 hours to 1 September 2014 11:30:00: + * const result = setHours(new Date(2014, 8, 1, 11, 30), 4) + * //=> Mon Sep 01 2014 04:30:00 + */ +function setHours(dirtyDate, dirtyHours) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var hours = (0, _index.default)(dirtyHours); + date.setHours(hours); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setHours/index.js.flow b/node_modules/date-fns/setHours/index.js.flow new file mode 100644 index 00000000..c9003bcd --- /dev/null +++ b/node_modules/date-fns/setHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, hours: number) => Date diff --git a/node_modules/date-fns/setHours/package.json b/node_modules/date-fns/setHours/package.json new file mode 100644 index 00000000..dff9edc1 --- /dev/null +++ b/node_modules/date-fns/setHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setISODay/index.d.ts b/node_modules/date-fns/setISODay/index.d.ts new file mode 100644 index 00000000..63fb67a8 --- /dev/null +++ b/node_modules/date-fns/setISODay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISODay } from 'date-fns' +export default setISODay diff --git a/node_modules/date-fns/setISODay/index.js b/node_modules/date-fns/setISODay/index.js new file mode 100644 index 00000000..152a1c4a --- /dev/null +++ b/node_modules/date-fns/setISODay/index.js @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setISODay; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../addDays/index.js")); + +var _index4 = _interopRequireDefault(require("../getISODay/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setISODay + * @category Weekday Helpers + * @summary Set the day of the ISO week to the given date. + * + * @description + * Set the day of the ISO week to the given date. + * ISO week starts with Monday. + * 7 is the index of Sunday, 1 is the index of Monday etc. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} day - the day of the ISO week of the new date + * @returns {Date} the new date with the day of the ISO week set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set Sunday to 1 September 2014: + * const result = setISODay(new Date(2014, 8, 1), 7) + * //=> Sun Sep 07 2014 00:00:00 + */ +function setISODay(dirtyDate, dirtyDay) { + (0, _index5.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var day = (0, _index.default)(dirtyDay); + var currentDay = (0, _index4.default)(date); + var diff = day - currentDay; + return (0, _index3.default)(date, diff); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setISODay/index.js.flow b/node_modules/date-fns/setISODay/index.js.flow new file mode 100644 index 00000000..07b06297 --- /dev/null +++ b/node_modules/date-fns/setISODay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, day: number) => Date diff --git a/node_modules/date-fns/setISODay/package.json b/node_modules/date-fns/setISODay/package.json new file mode 100644 index 00000000..bd30a3b2 --- /dev/null +++ b/node_modules/date-fns/setISODay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setISODay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setISOWeek/index.d.ts b/node_modules/date-fns/setISOWeek/index.d.ts new file mode 100644 index 00000000..a2e79701 --- /dev/null +++ b/node_modules/date-fns/setISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeek } from 'date-fns' +export default setISOWeek diff --git a/node_modules/date-fns/setISOWeek/index.js b/node_modules/date-fns/setISOWeek/index.js new file mode 100644 index 00000000..9afcbf4c --- /dev/null +++ b/node_modules/date-fns/setISOWeek/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setISOWeek; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../getISOWeek/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setISOWeek + * @category ISO Week Helpers + * @summary Set the ISO week to the given date. + * + * @description + * Set the ISO week to the given date, saving the weekday number. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} isoWeek - the ISO week of the new date + * @returns {Date} the new date with the ISO week set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 53rd ISO week to 7 August 2004: + * const result = setISOWeek(new Date(2004, 7, 7), 53) + * //=> Sat Jan 01 2005 00:00:00 + */ +function setISOWeek(dirtyDate, dirtyISOWeek) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var isoWeek = (0, _index.default)(dirtyISOWeek); + var diff = (0, _index3.default)(date) - isoWeek; + date.setDate(date.getDate() - diff * 7); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setISOWeek/index.js.flow b/node_modules/date-fns/setISOWeek/index.js.flow new file mode 100644 index 00000000..cf1ccb89 --- /dev/null +++ b/node_modules/date-fns/setISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, isoWeek: number) => Date diff --git a/node_modules/date-fns/setISOWeek/package.json b/node_modules/date-fns/setISOWeek/package.json new file mode 100644 index 00000000..fcf0a41b --- /dev/null +++ b/node_modules/date-fns/setISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setISOWeekYear/index.d.ts b/node_modules/date-fns/setISOWeekYear/index.d.ts new file mode 100644 index 00000000..ab8ea95b --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setISOWeekYear } from 'date-fns' +export default setISOWeekYear diff --git a/node_modules/date-fns/setISOWeekYear/index.js b/node_modules/date-fns/setISOWeekYear/index.js new file mode 100644 index 00000000..93f6e80d --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/index.js @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setISOWeekYear; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../startOfISOWeekYear/index.js")); + +var _index4 = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Set the ISO week-numbering year to the given date. + * + * @description + * Set the ISO week-numbering year to the given date, + * saving the week number and the weekday number. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} isoWeekYear - the ISO week-numbering year of the new date + * @returns {Date} the new date with the ISO week-numbering year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set ISO week-numbering year 2007 to 29 December 2008: + * const result = setISOWeekYear(new Date(2008, 11, 29), 2007) + * //=> Mon Jan 01 2007 00:00:00 + */ +function setISOWeekYear(dirtyDate, dirtyISOWeekYear) { + (0, _index5.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var isoWeekYear = (0, _index.default)(dirtyISOWeekYear); + var diff = (0, _index4.default)(date, (0, _index3.default)(date)); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(isoWeekYear, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + date = (0, _index3.default)(fourthOfJanuary); + date.setDate(date.getDate() + diff); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setISOWeekYear/index.js.flow b/node_modules/date-fns/setISOWeekYear/index.js.flow new file mode 100644 index 00000000..43beb651 --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, isoWeekYear: number) => Date diff --git a/node_modules/date-fns/setISOWeekYear/package.json b/node_modules/date-fns/setISOWeekYear/package.json new file mode 100644 index 00000000..98d3ea56 --- /dev/null +++ b/node_modules/date-fns/setISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setMilliseconds/index.d.ts b/node_modules/date-fns/setMilliseconds/index.d.ts new file mode 100644 index 00000000..04743a04 --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMilliseconds } from 'date-fns' +export default setMilliseconds diff --git a/node_modules/date-fns/setMilliseconds/index.js b/node_modules/date-fns/setMilliseconds/index.js new file mode 100644 index 00000000..1b905141 --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setMilliseconds; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setMilliseconds + * @category Millisecond Helpers + * @summary Set the milliseconds to the given date. + * + * @description + * Set the milliseconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} milliseconds - the milliseconds of the new date + * @returns {Date} the new date with the milliseconds set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 300 milliseconds to 1 September 2014 11:30:40.500: + * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300) + * //=> Mon Sep 01 2014 11:30:40.300 + */ +function setMilliseconds(dirtyDate, dirtyMilliseconds) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var milliseconds = (0, _index.default)(dirtyMilliseconds); + date.setMilliseconds(milliseconds); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setMilliseconds/index.js.flow b/node_modules/date-fns/setMilliseconds/index.js.flow new file mode 100644 index 00000000..d9bc57fa --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, milliseconds: number) => Date diff --git a/node_modules/date-fns/setMilliseconds/package.json b/node_modules/date-fns/setMilliseconds/package.json new file mode 100644 index 00000000..dd9da336 --- /dev/null +++ b/node_modules/date-fns/setMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setMinutes/index.d.ts b/node_modules/date-fns/setMinutes/index.d.ts new file mode 100644 index 00000000..2732d479 --- /dev/null +++ b/node_modules/date-fns/setMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMinutes } from 'date-fns' +export default setMinutes diff --git a/node_modules/date-fns/setMinutes/index.js b/node_modules/date-fns/setMinutes/index.js new file mode 100644 index 00000000..4ce37cd2 --- /dev/null +++ b/node_modules/date-fns/setMinutes/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setMinutes; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setMinutes + * @category Minute Helpers + * @summary Set the minutes to the given date. + * + * @description + * Set the minutes to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} minutes - the minutes of the new date + * @returns {Date} the new date with the minutes set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 45 minutes to 1 September 2014 11:30:40: + * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) + * //=> Mon Sep 01 2014 11:45:40 + */ +function setMinutes(dirtyDate, dirtyMinutes) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var minutes = (0, _index.default)(dirtyMinutes); + date.setMinutes(minutes); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setMinutes/index.js.flow b/node_modules/date-fns/setMinutes/index.js.flow new file mode 100644 index 00000000..5231232c --- /dev/null +++ b/node_modules/date-fns/setMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, minutes: number) => Date diff --git a/node_modules/date-fns/setMinutes/package.json b/node_modules/date-fns/setMinutes/package.json new file mode 100644 index 00000000..aea280b6 --- /dev/null +++ b/node_modules/date-fns/setMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setMonth/index.d.ts b/node_modules/date-fns/setMonth/index.d.ts new file mode 100644 index 00000000..720d61c9 --- /dev/null +++ b/node_modules/date-fns/setMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setMonth } from 'date-fns' +export default setMonth diff --git a/node_modules/date-fns/setMonth/index.js b/node_modules/date-fns/setMonth/index.js new file mode 100644 index 00000000..c2a7960c --- /dev/null +++ b/node_modules/date-fns/setMonth/index.js @@ -0,0 +1,52 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setMonth; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../getDaysInMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setMonth + * @category Month Helpers + * @summary Set the month to the given date. + * + * @description + * Set the month to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} month - the month of the new date + * @returns {Date} the new date with the month set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set February to 1 September 2014: + * const result = setMonth(new Date(2014, 8, 1), 1) + * //=> Sat Feb 01 2014 00:00:00 + */ +function setMonth(dirtyDate, dirtyMonth) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var month = (0, _index.default)(dirtyMonth); + var year = date.getFullYear(); + var day = date.getDate(); + var dateWithDesiredMonth = new Date(0); + dateWithDesiredMonth.setFullYear(year, month, 15); + dateWithDesiredMonth.setHours(0, 0, 0, 0); + var daysInMonth = (0, _index3.default)(dateWithDesiredMonth); // Set the last day of the new month + // if the original date was the last day of the longer month + + date.setMonth(month, Math.min(day, daysInMonth)); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setMonth/index.js.flow b/node_modules/date-fns/setMonth/index.js.flow new file mode 100644 index 00000000..29bd4de2 --- /dev/null +++ b/node_modules/date-fns/setMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, month: number) => Date diff --git a/node_modules/date-fns/setMonth/package.json b/node_modules/date-fns/setMonth/package.json new file mode 100644 index 00000000..d96c07d0 --- /dev/null +++ b/node_modules/date-fns/setMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setQuarter/index.d.ts b/node_modules/date-fns/setQuarter/index.d.ts new file mode 100644 index 00000000..7e98fc9e --- /dev/null +++ b/node_modules/date-fns/setQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setQuarter } from 'date-fns' +export default setQuarter diff --git a/node_modules/date-fns/setQuarter/index.js b/node_modules/date-fns/setQuarter/index.js new file mode 100644 index 00000000..2daf6201 --- /dev/null +++ b/node_modules/date-fns/setQuarter/index.js @@ -0,0 +1,45 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setQuarter; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../setMonth/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setQuarter + * @category Quarter Helpers + * @summary Set the year quarter to the given date. + * + * @description + * Set the year quarter to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} quarter - the quarter of the new date + * @returns {Date} the new date with the quarter set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set the 2nd quarter to 2 July 2014: + * const result = setQuarter(new Date(2014, 6, 2), 2) + * //=> Wed Apr 02 2014 00:00:00 + */ +function setQuarter(dirtyDate, dirtyQuarter) { + (0, _index4.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var quarter = (0, _index.default)(dirtyQuarter); + var oldQuarter = Math.floor(date.getMonth() / 3) + 1; + var diff = quarter - oldQuarter; + return (0, _index3.default)(date, date.getMonth() + diff * 3); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setQuarter/index.js.flow b/node_modules/date-fns/setQuarter/index.js.flow new file mode 100644 index 00000000..d0e4d51c --- /dev/null +++ b/node_modules/date-fns/setQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, quarter: number) => Date diff --git a/node_modules/date-fns/setQuarter/package.json b/node_modules/date-fns/setQuarter/package.json new file mode 100644 index 00000000..dad60171 --- /dev/null +++ b/node_modules/date-fns/setQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setSeconds/index.d.ts b/node_modules/date-fns/setSeconds/index.d.ts new file mode 100644 index 00000000..a67a07f2 --- /dev/null +++ b/node_modules/date-fns/setSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setSeconds } from 'date-fns' +export default setSeconds diff --git a/node_modules/date-fns/setSeconds/index.js b/node_modules/date-fns/setSeconds/index.js new file mode 100644 index 00000000..6ffe3576 --- /dev/null +++ b/node_modules/date-fns/setSeconds/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setSeconds; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setSeconds + * @category Second Helpers + * @summary Set the seconds to the given date. + * + * @description + * Set the seconds to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} seconds - the seconds of the new date + * @returns {Date} the new date with the seconds set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set 45 seconds to 1 September 2014 11:30:40: + * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) + * //=> Mon Sep 01 2014 11:30:45 + */ +function setSeconds(dirtyDate, dirtySeconds) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var seconds = (0, _index.default)(dirtySeconds); + date.setSeconds(seconds); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setSeconds/index.js.flow b/node_modules/date-fns/setSeconds/index.js.flow new file mode 100644 index 00000000..056c0682 --- /dev/null +++ b/node_modules/date-fns/setSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, seconds: number) => Date diff --git a/node_modules/date-fns/setSeconds/package.json b/node_modules/date-fns/setSeconds/package.json new file mode 100644 index 00000000..102ff827 --- /dev/null +++ b/node_modules/date-fns/setSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setWeek/index.d.ts b/node_modules/date-fns/setWeek/index.d.ts new file mode 100644 index 00000000..b6c90f34 --- /dev/null +++ b/node_modules/date-fns/setWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeek } from 'date-fns' +export default setWeek diff --git a/node_modules/date-fns/setWeek/index.js b/node_modules/date-fns/setWeek/index.js new file mode 100644 index 00000000..29c7860d --- /dev/null +++ b/node_modules/date-fns/setWeek/index.js @@ -0,0 +1,67 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setWeek; + +var _index = _interopRequireDefault(require("../getWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setWeek + * @category Week Helpers + * @summary Set the local week to the given date. + * + * @description + * Set the local week to the given date, saving the weekday number. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the date to be changed + * @param {Number} week - the week of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the new date with the local week set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Set the 1st week to 2 January 2005 with default options: + * const result = setWeek(new Date(2005, 0, 2), 1) + * //=> Sun Dec 26 2004 00:00:00 + * + * @example + * // Set the 1st week to 2 January 2005, + * // if Monday is the first day of the week, + * // and the first week of the year always contains 4 January: + * const result = setWeek(new Date(2005, 0, 2), 1, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sun Jan 4 2004 00:00:00 + */ +function setWeek(dirtyDate, dirtyWeek, options) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var week = (0, _index4.default)(dirtyWeek); + var diff = (0, _index.default)(date, options) - week; + date.setDate(date.getDate() - diff * 7); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setWeek/index.js.flow b/node_modules/date-fns/setWeek/index.js.flow new file mode 100644 index 00000000..59b7eb30 --- /dev/null +++ b/node_modules/date-fns/setWeek/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + week: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/setWeek/package.json b/node_modules/date-fns/setWeek/package.json new file mode 100644 index 00000000..348b255e --- /dev/null +++ b/node_modules/date-fns/setWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setWeekYear/index.d.ts b/node_modules/date-fns/setWeekYear/index.d.ts new file mode 100644 index 00000000..af02252f --- /dev/null +++ b/node_modules/date-fns/setWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setWeekYear } from 'date-fns' +export default setWeekYear diff --git a/node_modules/date-fns/setWeekYear/index.js b/node_modules/date-fns/setWeekYear/index.js new file mode 100644 index 00000000..8137987f --- /dev/null +++ b/node_modules/date-fns/setWeekYear/index.js @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setWeekYear; + +var _index = _interopRequireDefault(require("../differenceInCalendarDays/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfWeekYear/index.js")); + +var _index3 = _interopRequireDefault(require("../toDate/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index5 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index6 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setWeekYear + * @category Week-Numbering Year Helpers + * @summary Set the local week-numbering year to the given date. + * + * @description + * Set the local week-numbering year to the given date, + * saving the week number and the weekday number. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the date to be changed + * @param {Number} weekYear - the local week-numbering year of the new date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the new date with the local week-numbering year set + * @throws {TypeError} 2 arguments required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // Set the local week-numbering year 2004 to 2 January 2010 with default options: + * const result = setWeekYear(new Date(2010, 0, 2), 2004) + * //=> Sat Jan 03 2004 00:00:00 + * + * @example + * // Set the local week-numbering year 2004 to 2 January 2010, + * // if Monday is the first day of week + * // and 4 January is always in the first week of the year: + * const result = setWeekYear(new Date(2010, 0, 2), 2004, { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Sat Jan 01 2005 00:00:00 + */ +function setWeekYear(dirtyDate, dirtyWeekYear, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index5.default)(2, arguments); + var defaultOptions = (0, _index6.getDefaultOptions)(); + var firstWeekContainsDate = (0, _index4.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var date = (0, _index3.default)(dirtyDate); + var weekYear = (0, _index4.default)(dirtyWeekYear); + var diff = (0, _index.default)(date, (0, _index2.default)(date, options)); + var firstWeek = new Date(0); + firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + date = (0, _index2.default)(firstWeek, options); + date.setDate(date.getDate() + diff); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setWeekYear/index.js.flow b/node_modules/date-fns/setWeekYear/index.js.flow new file mode 100644 index 00000000..12a9d84f --- /dev/null +++ b/node_modules/date-fns/setWeekYear/index.js.flow @@ -0,0 +1,60 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/setWeekYear/package.json b/node_modules/date-fns/setWeekYear/package.json new file mode 100644 index 00000000..061eda03 --- /dev/null +++ b/node_modules/date-fns/setWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/setYear/index.d.ts b/node_modules/date-fns/setYear/index.d.ts new file mode 100644 index 00000000..e0a76fb4 --- /dev/null +++ b/node_modules/date-fns/setYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { setYear } from 'date-fns' +export default setYear diff --git a/node_modules/date-fns/setYear/index.js b/node_modules/date-fns/setYear/index.js new file mode 100644 index 00000000..5853008a --- /dev/null +++ b/node_modules/date-fns/setYear/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = setYear; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../toDate/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name setYear + * @category Year Helpers + * @summary Set the year to the given date. + * + * @description + * Set the year to the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} year - the year of the new date + * @returns {Date} the new date with the year set + * @throws {TypeError} 2 arguments required + * + * @example + * // Set year 2013 to 1 September 2014: + * const result = setYear(new Date(2014, 8, 1), 2013) + * //=> Sun Sep 01 2013 00:00:00 + */ +function setYear(dirtyDate, dirtyYear) { + (0, _index3.default)(2, arguments); + var date = (0, _index2.default)(dirtyDate); + var year = (0, _index.default)(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date + + if (isNaN(date.getTime())) { + return new Date(NaN); + } + + date.setFullYear(year); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/setYear/index.js.flow b/node_modules/date-fns/setYear/index.js.flow new file mode 100644 index 00000000..ebdcafed --- /dev/null +++ b/node_modules/date-fns/setYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, year: number) => Date diff --git a/node_modules/date-fns/setYear/package.json b/node_modules/date-fns/setYear/package.json new file mode 100644 index 00000000..2cad6bab --- /dev/null +++ b/node_modules/date-fns/setYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/setYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfDay/index.d.ts b/node_modules/date-fns/startOfDay/index.d.ts new file mode 100644 index 00000000..4463069a --- /dev/null +++ b/node_modules/date-fns/startOfDay/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDay } from 'date-fns' +export default startOfDay diff --git a/node_modules/date-fns/startOfDay/index.js b/node_modules/date-fns/startOfDay/index.js new file mode 100644 index 00000000..1b16729f --- /dev/null +++ b/node_modules/date-fns/startOfDay/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfDay; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfDay + * @category Day Helpers + * @summary Return the start of a day for the given date. + * + * @description + * Return the start of a day for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a day + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a day for 2 September 2014 11:55:00: + * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Sep 02 2014 00:00:00 + */ +function startOfDay(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfDay/index.js.flow b/node_modules/date-fns/startOfDay/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfDay/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfDay/package.json b/node_modules/date-fns/startOfDay/package.json new file mode 100644 index 00000000..3ee11949 --- /dev/null +++ b/node_modules/date-fns/startOfDay/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfDay/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfDecade/index.d.ts b/node_modules/date-fns/startOfDecade/index.d.ts new file mode 100644 index 00000000..c4309c3a --- /dev/null +++ b/node_modules/date-fns/startOfDecade/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfDecade } from 'date-fns' +export default startOfDecade diff --git a/node_modules/date-fns/startOfDecade/index.js b/node_modules/date-fns/startOfDecade/index.js new file mode 100644 index 00000000..9c543a5e --- /dev/null +++ b/node_modules/date-fns/startOfDecade/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfDecade; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfDecade + * @category Decade Helpers + * @summary Return the start of a decade for the given date. + * + * @description + * Return the start of a decade for the given date. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a decade + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a decade for 21 October 2015 00:00:00: + * const result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00)) + * //=> Jan 01 2010 00:00:00 + */ +function startOfDecade(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var year = date.getFullYear(); + var decade = Math.floor(year / 10) * 10; + date.setFullYear(decade, 0, 1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfDecade/index.js.flow b/node_modules/date-fns/startOfDecade/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfDecade/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfDecade/package.json b/node_modules/date-fns/startOfDecade/package.json new file mode 100644 index 00000000..5e1a9c00 --- /dev/null +++ b/node_modules/date-fns/startOfDecade/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfDecade/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfHour/index.d.ts b/node_modules/date-fns/startOfHour/index.d.ts new file mode 100644 index 00000000..d1cc5033 --- /dev/null +++ b/node_modules/date-fns/startOfHour/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfHour } from 'date-fns' +export default startOfHour diff --git a/node_modules/date-fns/startOfHour/index.js b/node_modules/date-fns/startOfHour/index.js new file mode 100644 index 00000000..62d76810 --- /dev/null +++ b/node_modules/date-fns/startOfHour/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfHour; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfHour + * @category Hour Helpers + * @summary Return the start of an hour for the given date. + * + * @description + * Return the start of an hour for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an hour + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an hour for 2 September 2014 11:55:00: + * const result = startOfHour(new Date(2014, 8, 2, 11, 55)) + * //=> Tue Sep 02 2014 11:00:00 + */ +function startOfHour(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setMinutes(0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfHour/index.js.flow b/node_modules/date-fns/startOfHour/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfHour/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfHour/package.json b/node_modules/date-fns/startOfHour/package.json new file mode 100644 index 00000000..ceda388d --- /dev/null +++ b/node_modules/date-fns/startOfHour/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfHour/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfISOWeek/index.d.ts b/node_modules/date-fns/startOfISOWeek/index.d.ts new file mode 100644 index 00000000..93e573a6 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeek } from 'date-fns' +export default startOfISOWeek diff --git a/node_modules/date-fns/startOfISOWeek/index.js b/node_modules/date-fns/startOfISOWeek/index.js new file mode 100644 index 00000000..f7517b77 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfISOWeek; + +var _index = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfISOWeek + * @category ISO Week Helpers + * @summary Return the start of an ISO week for the given date. + * + * @description + * Return the start of an ISO week for the given date. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an ISO week + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an ISO week for 2 September 2014 11:55:00: + * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfISOWeek(dirtyDate) { + (0, _index2.default)(1, arguments); + return (0, _index.default)(dirtyDate, { + weekStartsOn: 1 + }); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfISOWeek/index.js.flow b/node_modules/date-fns/startOfISOWeek/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfISOWeek/package.json b/node_modules/date-fns/startOfISOWeek/package.json new file mode 100644 index 00000000..d40b2a5c --- /dev/null +++ b/node_modules/date-fns/startOfISOWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfISOWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfISOWeekYear/index.d.ts b/node_modules/date-fns/startOfISOWeekYear/index.d.ts new file mode 100644 index 00000000..c29d7d06 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfISOWeekYear } from 'date-fns' +export default startOfISOWeekYear diff --git a/node_modules/date-fns/startOfISOWeekYear/index.js b/node_modules/date-fns/startOfISOWeekYear/index.js new file mode 100644 index 00000000..45c039d0 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/index.js @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfISOWeekYear; + +var _index = _interopRequireDefault(require("../getISOWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfISOWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfISOWeekYear + * @category ISO Week-Numbering Year Helpers + * @summary Return the start of an ISO week-numbering year for the given date. + * + * @description + * Return the start of an ISO week-numbering year, + * which always starts 3 days before the year's first Thursday. + * The result will be in the local timezone. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of an ISO week-numbering year + * @throws {TypeError} 1 argument required + * + * @example + * // The start of an ISO week-numbering year for 2 July 2005: + * const result = startOfISOWeekYear(new Date(2005, 6, 2)) + * //=> Mon Jan 03 2005 00:00:00 + */ +function startOfISOWeekYear(dirtyDate) { + (0, _index3.default)(1, arguments); + var year = (0, _index.default)(dirtyDate); + var fourthOfJanuary = new Date(0); + fourthOfJanuary.setFullYear(year, 0, 4); + fourthOfJanuary.setHours(0, 0, 0, 0); + var date = (0, _index2.default)(fourthOfJanuary); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfISOWeekYear/index.js.flow b/node_modules/date-fns/startOfISOWeekYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfISOWeekYear/package.json b/node_modules/date-fns/startOfISOWeekYear/package.json new file mode 100644 index 00000000..f3a74920 --- /dev/null +++ b/node_modules/date-fns/startOfISOWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfISOWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfMinute/index.d.ts b/node_modules/date-fns/startOfMinute/index.d.ts new file mode 100644 index 00000000..1b966837 --- /dev/null +++ b/node_modules/date-fns/startOfMinute/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMinute } from 'date-fns' +export default startOfMinute diff --git a/node_modules/date-fns/startOfMinute/index.js b/node_modules/date-fns/startOfMinute/index.js new file mode 100644 index 00000000..5a527561 --- /dev/null +++ b/node_modules/date-fns/startOfMinute/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfMinute; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfMinute + * @category Minute Helpers + * @summary Return the start of a minute for the given date. + * + * @description + * Return the start of a minute for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a minute + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a minute for 1 December 2014 22:15:45.400: + * const result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:00 + */ +function startOfMinute(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setSeconds(0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfMinute/index.js.flow b/node_modules/date-fns/startOfMinute/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfMinute/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfMinute/package.json b/node_modules/date-fns/startOfMinute/package.json new file mode 100644 index 00000000..88722c19 --- /dev/null +++ b/node_modules/date-fns/startOfMinute/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfMinute/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfMonth/index.d.ts b/node_modules/date-fns/startOfMonth/index.d.ts new file mode 100644 index 00000000..08de436d --- /dev/null +++ b/node_modules/date-fns/startOfMonth/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfMonth } from 'date-fns' +export default startOfMonth diff --git a/node_modules/date-fns/startOfMonth/index.js b/node_modules/date-fns/startOfMonth/index.js new file mode 100644 index 00000000..82d085d2 --- /dev/null +++ b/node_modules/date-fns/startOfMonth/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfMonth; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfMonth + * @category Month Helpers + * @summary Return the start of a month for the given date. + * + * @description + * Return the start of a month for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a month + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a month for 2 September 2014 11:55:00: + * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfMonth(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setDate(1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfMonth/index.js.flow b/node_modules/date-fns/startOfMonth/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfMonth/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfMonth/package.json b/node_modules/date-fns/startOfMonth/package.json new file mode 100644 index 00000000..eafe10b6 --- /dev/null +++ b/node_modules/date-fns/startOfMonth/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfMonth/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfQuarter/index.d.ts b/node_modules/date-fns/startOfQuarter/index.d.ts new file mode 100644 index 00000000..7afa7270 --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfQuarter } from 'date-fns' +export default startOfQuarter diff --git a/node_modules/date-fns/startOfQuarter/index.js b/node_modules/date-fns/startOfQuarter/index.js new file mode 100644 index 00000000..b0c650e5 --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfQuarter; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfQuarter + * @category Quarter Helpers + * @summary Return the start of a year quarter for the given date. + * + * @description + * Return the start of a year quarter for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a quarter + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a quarter for 2 September 2014 11:55:00: + * const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Tue Jul 01 2014 00:00:00 + */ +function startOfQuarter(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + var currentMonth = date.getMonth(); + var month = currentMonth - currentMonth % 3; + date.setMonth(month, 1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfQuarter/index.js.flow b/node_modules/date-fns/startOfQuarter/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfQuarter/package.json b/node_modules/date-fns/startOfQuarter/package.json new file mode 100644 index 00000000..4a932699 --- /dev/null +++ b/node_modules/date-fns/startOfQuarter/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfQuarter/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfSecond/index.d.ts b/node_modules/date-fns/startOfSecond/index.d.ts new file mode 100644 index 00000000..b3b40174 --- /dev/null +++ b/node_modules/date-fns/startOfSecond/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfSecond } from 'date-fns' +export default startOfSecond diff --git a/node_modules/date-fns/startOfSecond/index.js b/node_modules/date-fns/startOfSecond/index.js new file mode 100644 index 00000000..7aef001e --- /dev/null +++ b/node_modules/date-fns/startOfSecond/index.js @@ -0,0 +1,39 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfSecond; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfSecond + * @category Second Helpers + * @summary Return the start of a second for the given date. + * + * @description + * Return the start of a second for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a second + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a second for 1 December 2014 22:15:45.400: + * const result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400)) + * //=> Mon Dec 01 2014 22:15:45.000 + */ +function startOfSecond(dirtyDate) { + (0, _index2.default)(1, arguments); + var date = (0, _index.default)(dirtyDate); + date.setMilliseconds(0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfSecond/index.js.flow b/node_modules/date-fns/startOfSecond/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfSecond/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfSecond/package.json b/node_modules/date-fns/startOfSecond/package.json new file mode 100644 index 00000000..27d427cf --- /dev/null +++ b/node_modules/date-fns/startOfSecond/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfSecond/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfToday/index.d.ts b/node_modules/date-fns/startOfToday/index.d.ts new file mode 100644 index 00000000..8a0615e3 --- /dev/null +++ b/node_modules/date-fns/startOfToday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfToday } from 'date-fns' +export default startOfToday diff --git a/node_modules/date-fns/startOfToday/index.js b/node_modules/date-fns/startOfToday/index.js new file mode 100644 index 00000000..d787761c --- /dev/null +++ b/node_modules/date-fns/startOfToday/index.js @@ -0,0 +1,35 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfToday; + +var _index = _interopRequireDefault(require("../startOfDay/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfToday + * @category Day Helpers + * @summary Return the start of today. + * @pure false + * + * @description + * Return the start of today. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `Date.now()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of today + * + * @example + * // If today is 6 October 2014: + * const result = startOfToday() + * //=> Mon Oct 6 2014 00:00:00 + */ +function startOfToday() { + return (0, _index.default)(Date.now()); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfToday/index.js.flow b/node_modules/date-fns/startOfToday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/startOfToday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/startOfToday/package.json b/node_modules/date-fns/startOfToday/package.json new file mode 100644 index 00000000..0f83049d --- /dev/null +++ b/node_modules/date-fns/startOfToday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfToday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfTomorrow/index.d.ts b/node_modules/date-fns/startOfTomorrow/index.d.ts new file mode 100644 index 00000000..464ad5b0 --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfTomorrow } from 'date-fns' +export default startOfTomorrow diff --git a/node_modules/date-fns/startOfTomorrow/index.js b/node_modules/date-fns/startOfTomorrow/index.js new file mode 100644 index 00000000..0256ddf8 --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfTomorrow; + +/** + * @name startOfTomorrow + * @category Day Helpers + * @summary Return the start of tomorrow. + * @pure false + * + * @description + * Return the start of tomorrow. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of tomorrow + * + * @example + * // If today is 6 October 2014: + * const result = startOfTomorrow() + * //=> Tue Oct 7 2014 00:00:00 + */ +function startOfTomorrow() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day + 1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfTomorrow/index.js.flow b/node_modules/date-fns/startOfTomorrow/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/startOfTomorrow/package.json b/node_modules/date-fns/startOfTomorrow/package.json new file mode 100644 index 00000000..0419b9b8 --- /dev/null +++ b/node_modules/date-fns/startOfTomorrow/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfTomorrow/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfWeek/index.d.ts b/node_modules/date-fns/startOfWeek/index.d.ts new file mode 100644 index 00000000..4a45d11a --- /dev/null +++ b/node_modules/date-fns/startOfWeek/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeek } from 'date-fns' +export default startOfWeek diff --git a/node_modules/date-fns/startOfWeek/index.js b/node_modules/date-fns/startOfWeek/index.js new file mode 100644 index 00000000..90343325 --- /dev/null +++ b/node_modules/date-fns/startOfWeek/index.js @@ -0,0 +1,64 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfWeek; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfWeek + * @category Week Helpers + * @summary Return the start of a week for the given date. + * + * @description + * Return the start of a week for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @returns {Date} the start of a week + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * + * @example + * // The start of a week for 2 September 2014 11:55:00: + * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) + * //=> Sun Aug 31 2014 00:00:00 + * + * @example + * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: + * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) + * //=> Mon Sep 01 2014 00:00:00 + */ +function startOfWeek(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index3.default)(1, arguments); + var defaultOptions = (0, _index4.getDefaultOptions)(); + var weekStartsOn = (0, _index2.default)((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN + + if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { + throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); + } + + var date = (0, _index.default)(dirtyDate); + var day = date.getDay(); + var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; + date.setDate(date.getDate() - diff); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfWeek/index.js.flow b/node_modules/date-fns/startOfWeek/index.js.flow new file mode 100644 index 00000000..9285b673 --- /dev/null +++ b/node_modules/date-fns/startOfWeek/index.js.flow @@ -0,0 +1,58 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + } +) => Date diff --git a/node_modules/date-fns/startOfWeek/package.json b/node_modules/date-fns/startOfWeek/package.json new file mode 100644 index 00000000..f7e59dcc --- /dev/null +++ b/node_modules/date-fns/startOfWeek/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfWeek/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfWeekYear/index.d.ts b/node_modules/date-fns/startOfWeekYear/index.d.ts new file mode 100644 index 00000000..95b48513 --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfWeekYear } from 'date-fns' +export default startOfWeekYear diff --git a/node_modules/date-fns/startOfWeekYear/index.js b/node_modules/date-fns/startOfWeekYear/index.js new file mode 100644 index 00000000..57725a78 --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/index.js @@ -0,0 +1,73 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfWeekYear; + +var _index = _interopRequireDefault(require("../getWeekYear/index.js")); + +var _index2 = _interopRequireDefault(require("../startOfWeek/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index5 = require("../_lib/defaultOptions/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfWeekYear + * @category Week-Numbering Year Helpers + * @summary Return the start of a local week-numbering year for the given date. + * + * @description + * Return the start of a local week-numbering year. + * The exact calculation depends on the values of + * `options.weekStartsOn` (which is the index of the first day of the week) + * and `options.firstWeekContainsDate` (which is the day of January, which is always in + * the first week of the week-numbering year) + * + * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering + * + * @param {Date|Number} date - the original date + * @param {Object} [options] - an object with options. + * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} + * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) + * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year + * @returns {Date} the start of a week-numbering year + * @throws {TypeError} 1 argument required + * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 + * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 + * + * @example + * // The start of an a week-numbering year for 2 July 2005 with default settings: + * const result = startOfWeekYear(new Date(2005, 6, 2)) + * //=> Sun Dec 26 2004 00:00:00 + * + * @example + * // The start of a week-numbering year for 2 July 2005 + * // if Monday is the first day of week + * // and 4 January is always in the first week of the year: + * const result = startOfWeekYear(new Date(2005, 6, 2), { + * weekStartsOn: 1, + * firstWeekContainsDate: 4 + * }) + * //=> Mon Jan 03 2005 00:00:00 + */ +function startOfWeekYear(dirtyDate, options) { + var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; + + (0, _index4.default)(1, arguments); + var defaultOptions = (0, _index5.getDefaultOptions)(); + var firstWeekContainsDate = (0, _index3.default)((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); + var year = (0, _index.default)(dirtyDate, options); + var firstWeek = new Date(0); + firstWeek.setFullYear(year, 0, firstWeekContainsDate); + firstWeek.setHours(0, 0, 0, 0); + var date = (0, _index2.default)(firstWeek, options); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfWeekYear/index.js.flow b/node_modules/date-fns/startOfWeekYear/index.js.flow new file mode 100644 index 00000000..49cecb6e --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/index.js.flow @@ -0,0 +1,59 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: ( + date: Date | number, + options?: { + locale?: Locale, + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + } +) => Date diff --git a/node_modules/date-fns/startOfWeekYear/package.json b/node_modules/date-fns/startOfWeekYear/package.json new file mode 100644 index 00000000..0d614cb3 --- /dev/null +++ b/node_modules/date-fns/startOfWeekYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfWeekYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfYear/index.d.ts b/node_modules/date-fns/startOfYear/index.d.ts new file mode 100644 index 00000000..669ffc9b --- /dev/null +++ b/node_modules/date-fns/startOfYear/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYear } from 'date-fns' +export default startOfYear diff --git a/node_modules/date-fns/startOfYear/index.js b/node_modules/date-fns/startOfYear/index.js new file mode 100644 index 00000000..69a99b2a --- /dev/null +++ b/node_modules/date-fns/startOfYear/index.js @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfYear; + +var _index = _interopRequireDefault(require("../toDate/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name startOfYear + * @category Year Helpers + * @summary Return the start of a year for the given date. + * + * @description + * Return the start of a year for the given date. + * The result will be in the local timezone. + * + * @param {Date|Number} date - the original date + * @returns {Date} the start of a year + * @throws {TypeError} 1 argument required + * + * @example + * // The start of a year for 2 September 2014 11:55:00: + * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) + * //=> Wed Jan 01 2014 00:00:00 + */ +function startOfYear(dirtyDate) { + (0, _index2.default)(1, arguments); + var cleanDate = (0, _index.default)(dirtyDate); + var date = new Date(0); + date.setFullYear(cleanDate.getFullYear(), 0, 1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfYear/index.js.flow b/node_modules/date-fns/startOfYear/index.js.flow new file mode 100644 index 00000000..4b7c616e --- /dev/null +++ b/node_modules/date-fns/startOfYear/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number) => Date diff --git a/node_modules/date-fns/startOfYear/package.json b/node_modules/date-fns/startOfYear/package.json new file mode 100644 index 00000000..b5bab338 --- /dev/null +++ b/node_modules/date-fns/startOfYear/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfYear/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/startOfYesterday/index.d.ts b/node_modules/date-fns/startOfYesterday/index.d.ts new file mode 100644 index 00000000..0342a28e --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { startOfYesterday } from 'date-fns' +export default startOfYesterday diff --git a/node_modules/date-fns/startOfYesterday/index.js b/node_modules/date-fns/startOfYesterday/index.js new file mode 100644 index 00000000..1bb9bf2f --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/index.js @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = startOfYesterday; + +/** + * @name startOfYesterday + * @category Day Helpers + * @summary Return the start of yesterday. + * @pure false + * + * @description + * Return the start of yesterday. + * + * > ⚠️ Please note that this function is not present in the FP submodule as + * > it uses `new Date()` internally hence impure and can't be safely curried. + * + * @returns {Date} the start of yesterday + * + * @example + * // If today is 6 October 2014: + * const result = startOfYesterday() + * //=> Sun Oct 5 2014 00:00:00 + */ +function startOfYesterday() { + var now = new Date(); + var year = now.getFullYear(); + var month = now.getMonth(); + var day = now.getDate(); + var date = new Date(0); + date.setFullYear(year, month, day - 1); + date.setHours(0, 0, 0, 0); + return date; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/startOfYesterday/index.js.flow b/node_modules/date-fns/startOfYesterday/index.js.flow new file mode 100644 index 00000000..26bde320 --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: () => Date diff --git a/node_modules/date-fns/startOfYesterday/package.json b/node_modules/date-fns/startOfYesterday/package.json new file mode 100644 index 00000000..d79711c4 --- /dev/null +++ b/node_modules/date-fns/startOfYesterday/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/startOfYesterday/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/sub/index.d.ts b/node_modules/date-fns/sub/index.d.ts new file mode 100644 index 00000000..7a4f3ecc --- /dev/null +++ b/node_modules/date-fns/sub/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { sub } from 'date-fns' +export default sub diff --git a/node_modules/date-fns/sub/index.js b/node_modules/date-fns/sub/index.js new file mode 100644 index 00000000..d6267357 --- /dev/null +++ b/node_modules/date-fns/sub/index.js @@ -0,0 +1,81 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = sub; + +var _index = _interopRequireDefault(require("../subDays/index.js")); + +var _index2 = _interopRequireDefault(require("../subMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index4 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name sub + * @category Common Helpers + * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. + * + * @description + * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted + * + * | Key | Description | + * |---------|------------------------------------| + * | years | Amount of years to be subtracted | + * | months | Amount of months to be subtracted | + * | weeks | Amount of weeks to be subtracted | + * | days | Amount of days to be subtracted | + * | hours | Amount of hours to be subtracted | + * | minutes | Amount of minutes to be subtracted | + * | seconds | Amount of seconds to be subtracted | + * + * All values default to 0 + * + * @returns {Date} the new date with the seconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract the following duration from 15 June 2017 15:29:20 + * const result = sub(new Date(2017, 5, 15, 15, 29, 20), { + * years: 2, + * months: 9, + * weeks: 1, + * days: 7, + * hours: 5, + * minutes: 9, + * seconds: 30 + * }) + * //=> Mon Sep 1 2014 10:19:50 + */ +function sub(date, duration) { + (0, _index3.default)(2, arguments); + if (!duration || _typeof(duration) !== 'object') return new Date(NaN); + var years = duration.years ? (0, _index4.default)(duration.years) : 0; + var months = duration.months ? (0, _index4.default)(duration.months) : 0; + var weeks = duration.weeks ? (0, _index4.default)(duration.weeks) : 0; + var days = duration.days ? (0, _index4.default)(duration.days) : 0; + var hours = duration.hours ? (0, _index4.default)(duration.hours) : 0; + var minutes = duration.minutes ? (0, _index4.default)(duration.minutes) : 0; + var seconds = duration.seconds ? (0, _index4.default)(duration.seconds) : 0; // Subtract years and months + + var dateWithoutMonths = (0, _index2.default)(date, months + years * 12); // Subtract weeks and days + + var dateWithoutDays = (0, _index.default)(dateWithoutMonths, days + weeks * 7); // Subtract hours, minutes and seconds + + var minutestoSub = minutes + hours * 60; + var secondstoSub = seconds + minutestoSub * 60; + var mstoSub = secondstoSub * 1000; + var finalDate = new Date(dateWithoutDays.getTime() - mstoSub); + return finalDate; +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/sub/index.js.flow b/node_modules/date-fns/sub/index.js.flow new file mode 100644 index 00000000..e79df7ca --- /dev/null +++ b/node_modules/date-fns/sub/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, duration: Duration) => Date diff --git a/node_modules/date-fns/sub/package.json b/node_modules/date-fns/sub/package.json new file mode 100644 index 00000000..93f8c7c1 --- /dev/null +++ b/node_modules/date-fns/sub/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/sub/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subBusinessDays/index.d.ts b/node_modules/date-fns/subBusinessDays/index.d.ts new file mode 100644 index 00000000..7a0549aa --- /dev/null +++ b/node_modules/date-fns/subBusinessDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subBusinessDays } from 'date-fns' +export default subBusinessDays diff --git a/node_modules/date-fns/subBusinessDays/index.js b/node_modules/date-fns/subBusinessDays/index.js new file mode 100644 index 00000000..c0f674a8 --- /dev/null +++ b/node_modules/date-fns/subBusinessDays/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subBusinessDays; + +var _index = _interopRequireDefault(require("../addBusinessDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subBusinessDays + * @category Day Helpers + * @summary Substract the specified number of business days (mon - fri) to the given date. + * + * @description + * Substract the specified number of business days (mon - fri) to the given date, ignoring weekends. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of business days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the business days subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Substract 10 business days from 1 September 2014: + * const result = subBusinessDays(new Date(2014, 8, 1), 10) + * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) + */ +function subBusinessDays(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subBusinessDays/index.js.flow b/node_modules/date-fns/subBusinessDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subBusinessDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subBusinessDays/package.json b/node_modules/date-fns/subBusinessDays/package.json new file mode 100644 index 00000000..fe54180e --- /dev/null +++ b/node_modules/date-fns/subBusinessDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subBusinessDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subDays/index.d.ts b/node_modules/date-fns/subDays/index.d.ts new file mode 100644 index 00000000..0b2fe65f --- /dev/null +++ b/node_modules/date-fns/subDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subDays } from 'date-fns' +export default subDays diff --git a/node_modules/date-fns/subDays/index.js b/node_modules/date-fns/subDays/index.js new file mode 100644 index 00000000..f7054d39 --- /dev/null +++ b/node_modules/date-fns/subDays/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subDays; + +var _index = _interopRequireDefault(require("../addDays/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subDays + * @category Day Helpers + * @summary Subtract the specified number of days from the given date. + * + * @description + * Subtract the specified number of days from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the days subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 10 days from 1 September 2014: + * const result = subDays(new Date(2014, 8, 1), 10) + * //=> Fri Aug 22 2014 00:00:00 + */ +function subDays(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subDays/index.js.flow b/node_modules/date-fns/subDays/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subDays/package.json b/node_modules/date-fns/subDays/package.json new file mode 100644 index 00000000..bfe79e8f --- /dev/null +++ b/node_modules/date-fns/subDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subHours/index.d.ts b/node_modules/date-fns/subHours/index.d.ts new file mode 100644 index 00000000..9b9a0d24 --- /dev/null +++ b/node_modules/date-fns/subHours/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subHours } from 'date-fns' +export default subHours diff --git a/node_modules/date-fns/subHours/index.js b/node_modules/date-fns/subHours/index.js new file mode 100644 index 00000000..a4f296b2 --- /dev/null +++ b/node_modules/date-fns/subHours/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subHours; + +var _index = _interopRequireDefault(require("../addHours/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subHours + * @category Hour Helpers + * @summary Subtract the specified number of hours from the given date. + * + * @description + * Subtract the specified number of hours from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the hours subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 2 hours from 11 July 2014 01:00:00: + * const result = subHours(new Date(2014, 6, 11, 1, 0), 2) + * //=> Thu Jul 10 2014 23:00:00 + */ +function subHours(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subHours/index.js.flow b/node_modules/date-fns/subHours/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subHours/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subHours/package.json b/node_modules/date-fns/subHours/package.json new file mode 100644 index 00000000..f4588058 --- /dev/null +++ b/node_modules/date-fns/subHours/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subHours/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subISOWeekYears/index.d.ts b/node_modules/date-fns/subISOWeekYears/index.d.ts new file mode 100644 index 00000000..78018ea0 --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subISOWeekYears } from 'date-fns' +export default subISOWeekYears diff --git a/node_modules/date-fns/subISOWeekYears/index.js b/node_modules/date-fns/subISOWeekYears/index.js new file mode 100644 index 00000000..c6341f0d --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/index.js @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subISOWeekYears; + +var _index = _interopRequireDefault(require("../addISOWeekYears/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subISOWeekYears + * @category ISO Week-Numbering Year Helpers + * @summary Subtract the specified number of ISO week-numbering years from the given date. + * + * @description + * Subtract the specified number of ISO week-numbering years from the given date. + * + * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of ISO week-numbering years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the ISO week-numbering years subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 ISO week-numbering years from 1 September 2014: + * const result = subISOWeekYears(new Date(2014, 8, 1), 5) + * //=> Mon Aug 31 2009 00:00:00 + */ +function subISOWeekYears(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subISOWeekYears/index.js.flow b/node_modules/date-fns/subISOWeekYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subISOWeekYears/package.json b/node_modules/date-fns/subISOWeekYears/package.json new file mode 100644 index 00000000..875d5e41 --- /dev/null +++ b/node_modules/date-fns/subISOWeekYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subISOWeekYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subMilliseconds/index.d.ts b/node_modules/date-fns/subMilliseconds/index.d.ts new file mode 100644 index 00000000..ffc51f16 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMilliseconds } from 'date-fns' +export default subMilliseconds diff --git a/node_modules/date-fns/subMilliseconds/index.js b/node_modules/date-fns/subMilliseconds/index.js new file mode 100644 index 00000000..3e0da120 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subMilliseconds; + +var _index = _interopRequireDefault(require("../addMilliseconds/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subMilliseconds + * @category Millisecond Helpers + * @summary Subtract the specified number of milliseconds from the given date. + * + * @description + * Subtract the specified number of milliseconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the milliseconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: + * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) + * //=> Thu Jul 10 2014 12:45:29.250 + */ +function subMilliseconds(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subMilliseconds/index.js.flow b/node_modules/date-fns/subMilliseconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subMilliseconds/package.json b/node_modules/date-fns/subMilliseconds/package.json new file mode 100644 index 00000000..bfca7932 --- /dev/null +++ b/node_modules/date-fns/subMilliseconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subMilliseconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subMinutes/index.d.ts b/node_modules/date-fns/subMinutes/index.d.ts new file mode 100644 index 00000000..43c32229 --- /dev/null +++ b/node_modules/date-fns/subMinutes/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMinutes } from 'date-fns' +export default subMinutes diff --git a/node_modules/date-fns/subMinutes/index.js b/node_modules/date-fns/subMinutes/index.js new file mode 100644 index 00000000..d4d264f6 --- /dev/null +++ b/node_modules/date-fns/subMinutes/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subMinutes; + +var _index = _interopRequireDefault(require("../addMinutes/index.js")); + +var _index2 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subMinutes + * @category Minute Helpers + * @summary Subtract the specified number of minutes from the given date. + * + * @description + * Subtract the specified number of minutes from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the minutes subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 30 minutes from 10 July 2014 12:00:00: + * const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) + * //=> Thu Jul 10 2014 11:30:00 + */ +function subMinutes(dirtyDate, dirtyAmount) { + (0, _index2.default)(2, arguments); + var amount = (0, _index3.default)(dirtyAmount); + return (0, _index.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subMinutes/index.js.flow b/node_modules/date-fns/subMinutes/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subMinutes/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subMinutes/package.json b/node_modules/date-fns/subMinutes/package.json new file mode 100644 index 00000000..53d443cd --- /dev/null +++ b/node_modules/date-fns/subMinutes/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subMinutes/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subMonths/index.d.ts b/node_modules/date-fns/subMonths/index.d.ts new file mode 100644 index 00000000..dd963a14 --- /dev/null +++ b/node_modules/date-fns/subMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subMonths } from 'date-fns' +export default subMonths diff --git a/node_modules/date-fns/subMonths/index.js b/node_modules/date-fns/subMonths/index.js new file mode 100644 index 00000000..2643be55 --- /dev/null +++ b/node_modules/date-fns/subMonths/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subMonths; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addMonths/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subMonths + * @category Month Helpers + * @summary Subtract the specified number of months from the given date. + * + * @description + * Subtract the specified number of months from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the months subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 months from 1 February 2015: + * const result = subMonths(new Date(2015, 1, 1), 5) + * //=> Mon Sep 01 2014 00:00:00 + */ +function subMonths(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subMonths/index.js.flow b/node_modules/date-fns/subMonths/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subMonths/package.json b/node_modules/date-fns/subMonths/package.json new file mode 100644 index 00000000..9e44c483 --- /dev/null +++ b/node_modules/date-fns/subMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subQuarters/index.d.ts b/node_modules/date-fns/subQuarters/index.d.ts new file mode 100644 index 00000000..216a1f39 --- /dev/null +++ b/node_modules/date-fns/subQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subQuarters } from 'date-fns' +export default subQuarters diff --git a/node_modules/date-fns/subQuarters/index.js b/node_modules/date-fns/subQuarters/index.js new file mode 100644 index 00000000..19d1cc33 --- /dev/null +++ b/node_modules/date-fns/subQuarters/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subQuarters; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addQuarters/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subQuarters + * @category Quarter Helpers + * @summary Subtract the specified number of year quarters from the given date. + * + * @description + * Subtract the specified number of year quarters from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of quarters to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the quarters subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 3 quarters from 1 September 2014: + * const result = subQuarters(new Date(2014, 8, 1), 3) + * //=> Sun Dec 01 2013 00:00:00 + */ +function subQuarters(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subQuarters/index.js.flow b/node_modules/date-fns/subQuarters/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subQuarters/package.json b/node_modules/date-fns/subQuarters/package.json new file mode 100644 index 00000000..c5a9760f --- /dev/null +++ b/node_modules/date-fns/subQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subSeconds/index.d.ts b/node_modules/date-fns/subSeconds/index.d.ts new file mode 100644 index 00000000..f718279a --- /dev/null +++ b/node_modules/date-fns/subSeconds/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subSeconds } from 'date-fns' +export default subSeconds diff --git a/node_modules/date-fns/subSeconds/index.js b/node_modules/date-fns/subSeconds/index.js new file mode 100644 index 00000000..fb45b42c --- /dev/null +++ b/node_modules/date-fns/subSeconds/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subSeconds; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addSeconds/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subSeconds + * @category Second Helpers + * @summary Subtract the specified number of seconds from the given date. + * + * @description + * Subtract the specified number of seconds from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of seconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the seconds subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 30 seconds from 10 July 2014 12:45:00: + * const result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30) + * //=> Thu Jul 10 2014 12:44:30 + */ +function subSeconds(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subSeconds/index.js.flow b/node_modules/date-fns/subSeconds/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subSeconds/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subSeconds/package.json b/node_modules/date-fns/subSeconds/package.json new file mode 100644 index 00000000..98ac354f --- /dev/null +++ b/node_modules/date-fns/subSeconds/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subSeconds/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subWeeks/index.d.ts b/node_modules/date-fns/subWeeks/index.d.ts new file mode 100644 index 00000000..b6e3c827 --- /dev/null +++ b/node_modules/date-fns/subWeeks/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subWeeks } from 'date-fns' +export default subWeeks diff --git a/node_modules/date-fns/subWeeks/index.js b/node_modules/date-fns/subWeeks/index.js new file mode 100644 index 00000000..afbd64de --- /dev/null +++ b/node_modules/date-fns/subWeeks/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subWeeks; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addWeeks/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subWeeks + * @category Week Helpers + * @summary Subtract the specified number of weeks from the given date. + * + * @description + * Subtract the specified number of weeks from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the weeks subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 4 weeks from 1 September 2014: + * const result = subWeeks(new Date(2014, 8, 1), 4) + * //=> Mon Aug 04 2014 00:00:00 + */ +function subWeeks(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subWeeks/index.js.flow b/node_modules/date-fns/subWeeks/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subWeeks/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subWeeks/package.json b/node_modules/date-fns/subWeeks/package.json new file mode 100644 index 00000000..2bd8b8f2 --- /dev/null +++ b/node_modules/date-fns/subWeeks/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subWeeks/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/subYears/index.d.ts b/node_modules/date-fns/subYears/index.d.ts new file mode 100644 index 00000000..5edf4821 --- /dev/null +++ b/node_modules/date-fns/subYears/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { subYears } from 'date-fns' +export default subYears diff --git a/node_modules/date-fns/subYears/index.js b/node_modules/date-fns/subYears/index.js new file mode 100644 index 00000000..0f86451b --- /dev/null +++ b/node_modules/date-fns/subYears/index.js @@ -0,0 +1,40 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = subYears; + +var _index = _interopRequireDefault(require("../_lib/toInteger/index.js")); + +var _index2 = _interopRequireDefault(require("../addYears/index.js")); + +var _index3 = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name subYears + * @category Year Helpers + * @summary Subtract the specified number of years from the given date. + * + * @description + * Subtract the specified number of years from the given date. + * + * @param {Date|Number} date - the date to be changed + * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. + * @returns {Date} the new date with the years subtracted + * @throws {TypeError} 2 arguments required + * + * @example + * // Subtract 5 years from 1 September 2014: + * const result = subYears(new Date(2014, 8, 1), 5) + * //=> Tue Sep 01 2009 00:00:00 + */ +function subYears(dirtyDate, dirtyAmount) { + (0, _index3.default)(2, arguments); + var amount = (0, _index.default)(dirtyAmount); + return (0, _index2.default)(dirtyDate, -amount); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/subYears/index.js.flow b/node_modules/date-fns/subYears/index.js.flow new file mode 100644 index 00000000..f568f0d9 --- /dev/null +++ b/node_modules/date-fns/subYears/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (date: Date | number, amount: number) => Date diff --git a/node_modules/date-fns/subYears/package.json b/node_modules/date-fns/subYears/package.json new file mode 100644 index 00000000..63649c3e --- /dev/null +++ b/node_modules/date-fns/subYears/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/subYears/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/toDate/index.d.ts b/node_modules/date-fns/toDate/index.d.ts new file mode 100644 index 00000000..0231ae7d --- /dev/null +++ b/node_modules/date-fns/toDate/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { toDate } from 'date-fns' +export default toDate diff --git a/node_modules/date-fns/toDate/index.js b/node_modules/date-fns/toDate/index.js new file mode 100644 index 00000000..8436ec1f --- /dev/null +++ b/node_modules/date-fns/toDate/index.js @@ -0,0 +1,65 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toDate; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +/** + * @name toDate + * @category Common Helpers + * @summary Convert the given argument to an instance of Date. + * + * @description + * Convert the given argument to an instance of Date. + * + * If the argument is an instance of Date, the function returns its clone. + * + * If the argument is a number, it is treated as a timestamp. + * + * If the argument is none of the above, the function returns Invalid Date. + * + * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. + * + * @param {Date|Number} argument - the value to convert + * @returns {Date} the parsed date in the local time zone + * @throws {TypeError} 1 argument required + * + * @example + * // Clone the date: + * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) + * //=> Tue Feb 11 2014 11:30:30 + * + * @example + * // Convert the timestamp to date: + * const result = toDate(1392098430000) + * //=> Tue Feb 11 2014 11:30:30 + */ +function toDate(argument) { + (0, _index.default)(1, arguments); + var argStr = Object.prototype.toString.call(argument); // Clone the date + + if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') { + // Prevent the date to lose the milliseconds when passed to new Date() in IE10 + return new Date(argument.getTime()); + } else if (typeof argument === 'number' || argStr === '[object Number]') { + return new Date(argument); + } else { + if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { + // eslint-disable-next-line no-console + console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console + + console.warn(new Error().stack); + } + + return new Date(NaN); + } +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/toDate/index.js.flow b/node_modules/date-fns/toDate/index.js.flow new file mode 100644 index 00000000..19292c70 --- /dev/null +++ b/node_modules/date-fns/toDate/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (argument: Date | number) => Date diff --git a/node_modules/date-fns/toDate/package.json b/node_modules/date-fns/toDate/package.json new file mode 100644 index 00000000..72ac665d --- /dev/null +++ b/node_modules/date-fns/toDate/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/toDate/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/types.js b/node_modules/date-fns/types.js new file mode 100644 index 00000000..430afc16 --- /dev/null +++ b/node_modules/date-fns/types.js @@ -0,0 +1,5 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); \ No newline at end of file diff --git a/node_modules/date-fns/typings.d.ts b/node_modules/date-fns/typings.d.ts new file mode 100644 index 00000000..06a70730 --- /dev/null +++ b/node_modules/date-fns/typings.d.ts @@ -0,0 +1,23802 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +// FP Interfaces + +interface CurriedFn1 { + (a: A): R +} + +interface CurriedFn2 { + (a: A): CurriedFn1 + (a: A, b: B): R +} + +interface CurriedFn3 { + (a: A): CurriedFn2 + (a: A, b: B): CurriedFn1 + (a: A, b: B, c: C): R +} + +interface CurriedFn4 { + (a: A): CurriedFn3 + (a: A, b: B): CurriedFn2 + (a: A, b: B, c: C): CurriedFn1 + (a: A, b: B, c: C, d: D): R +} + +// Type Aliases + +type Interval = { + start: Date | number + end: Date | number +} +type IntervalAliased = Interval + +type Locale = { + code?: string + formatDistance?: (...args: Array) => any + formatRelative?: (...args: Array) => any + localize?: { + ordinalNumber: (...args: Array) => any + era: (...args: Array) => any + quarter: (...args: Array) => any + month: (...args: Array) => any + day: (...args: Array) => any + dayPeriod: (...args: Array) => any + } + formatLong?: { + date: (...args: Array) => any + time: (...args: Array) => any + dateTime: (...args: Array) => any + } + match?: { + ordinalNumber: (...args: Array) => any + era: (...args: Array) => any + quarter: (...args: Array) => any + month: (...args: Array) => any + day: (...args: Array) => any + dayPeriod: (...args: Array) => any + } + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } +} +type LocaleAliased = Locale + +type Duration = { + years?: number + months?: number + weeks?: number + days?: number + hours?: number + minutes?: number + seconds?: number +} +type DurationAliased = Duration + +type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 +type DayAliased = Day + +// Exported Type Aliases + +declare module 'date-fns' { + export type Interval = IntervalAliased + + export type Locale = LocaleAliased + + export type Duration = DurationAliased + + export type Day = DayAliased +} + +// Regular Functions + +declare module 'date-fns' { + function add(date: Date | number, duration: Duration): Date + namespace add {} + + function addBusinessDays(date: Date | number, amount: number): Date + namespace addBusinessDays {} + + function addDays(date: Date | number, amount: number): Date + namespace addDays {} + + function addHours(date: Date | number, amount: number): Date + namespace addHours {} + + function addISOWeekYears(date: Date | number, amount: number): Date + namespace addISOWeekYears {} + + function addMilliseconds(date: Date | number, amount: number): Date + namespace addMilliseconds {} + + function addMinutes(date: Date | number, amount: number): Date + namespace addMinutes {} + + function addMonths(date: Date | number, amount: number): Date + namespace addMonths {} + + function addQuarters(date: Date | number, amount: number): Date + namespace addQuarters {} + + function addSeconds(date: Date | number, amount: number): Date + namespace addSeconds {} + + function addWeeks(date: Date | number, amount: number): Date + namespace addWeeks {} + + function addYears(date: Date | number, amount: number): Date + namespace addYears {} + + function areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean + } + ): boolean + namespace areIntervalsOverlapping {} + + function clamp(date: Date | number, interval: Interval): Date + namespace clamp {} + + function closestIndexTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): number | undefined + namespace closestIndexTo {} + + function closestTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): Date | undefined + namespace closestTo {} + + function compareAsc(dateLeft: Date | number, dateRight: Date | number): number + namespace compareAsc {} + + function compareDesc( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace compareDesc {} + + function daysToWeeks(days: number): number + namespace daysToWeeks {} + + function differenceInBusinessDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInBusinessDays {} + + function differenceInCalendarDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarDays {} + + function differenceInCalendarISOWeeks( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarISOWeeks {} + + function differenceInCalendarISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarISOWeekYears {} + + function differenceInCalendarMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarMonths {} + + function differenceInCalendarQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarQuarters {} + + function differenceInCalendarWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace differenceInCalendarWeeks {} + + function differenceInCalendarYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarYears {} + + function differenceInDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInDays {} + + function differenceInHours( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInHours {} + + function differenceInISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInISOWeekYears {} + + function differenceInMilliseconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMilliseconds {} + + function differenceInMinutes( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInMinutes {} + + function differenceInMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMonths {} + + function differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInQuarters {} + + function differenceInSeconds( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInSeconds {} + + function differenceInWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInWeeks {} + + function differenceInYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInYears {} + + function eachDayOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachDayOfInterval {} + + function eachHourOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachHourOfInterval {} + + function eachMinuteOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachMinuteOfInterval {} + + function eachMonthOfInterval(interval: Interval): Date[] + namespace eachMonthOfInterval {} + + function eachQuarterOfInterval(interval: Interval): Date[] + namespace eachQuarterOfInterval {} + + function eachWeekendOfInterval(interval: Interval): Date[] + namespace eachWeekendOfInterval {} + + function eachWeekendOfMonth(date: Date | number): Date[] + namespace eachWeekendOfMonth {} + + function eachWeekendOfYear(date: Date | number): Date[] + namespace eachWeekendOfYear {} + + function eachWeekOfInterval( + interval: Interval, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date[] + namespace eachWeekOfInterval {} + + function eachYearOfInterval(interval: Interval): Date[] + namespace eachYearOfInterval {} + + function endOfDay(date: Date | number): Date + namespace endOfDay {} + + function endOfDecade( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace endOfDecade {} + + function endOfHour(date: Date | number): Date + namespace endOfHour {} + + function endOfISOWeek(date: Date | number): Date + namespace endOfISOWeek {} + + function endOfISOWeekYear(date: Date | number): Date + namespace endOfISOWeekYear {} + + function endOfMinute(date: Date | number): Date + namespace endOfMinute {} + + function endOfMonth(date: Date | number): Date + namespace endOfMonth {} + + function endOfQuarter(date: Date | number): Date + namespace endOfQuarter {} + + function endOfSecond(date: Date | number): Date + namespace endOfSecond {} + + function endOfToday(): Date + namespace endOfToday {} + + function endOfTomorrow(): Date + namespace endOfTomorrow {} + + function endOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace endOfWeek {} + + function endOfYear(date: Date | number): Date + namespace endOfYear {} + + function endOfYesterday(): Date + namespace endOfYesterday {} + + function format( + date: Date | number, + format: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: number + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): string + namespace format {} + + function formatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + namespace formatDistance {} + + function formatDistanceStrict( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + namespace formatDistanceStrict {} + + function formatDistanceToNow( + date: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + namespace formatDistanceToNow {} + + function formatDistanceToNowStrict( + date: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + namespace formatDistanceToNowStrict {} + + function formatDuration( + duration: Duration, + options?: { + format?: string[] + zero?: boolean + delimiter?: string + locale?: Locale + } + ): string + namespace formatDuration {} + + function formatISO( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + namespace formatISO {} + + function formatISO9075( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + namespace formatISO9075 {} + + function formatISODuration(duration: Duration): string + namespace formatISODuration {} + + function formatRelative( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): string + namespace formatRelative {} + + function formatRFC3339( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3 + } + ): string + namespace formatRFC3339 {} + + function formatRFC7231(date: Date | number): string + namespace formatRFC7231 {} + + function fromUnixTime(unixTime: number): Date + namespace fromUnixTime {} + + function getDate(date: Date | number): number + namespace getDate {} + + function getDay(date: Date | number): 0 | 1 | 2 | 3 | 4 | 5 | 6 + namespace getDay {} + + function getDayOfYear(date: Date | number): number + namespace getDayOfYear {} + + function getDaysInMonth(date: Date | number): number + namespace getDaysInMonth {} + + function getDaysInYear(date: Date | number): number + namespace getDaysInYear {} + + function getDecade(date: Date | number): number + namespace getDecade {} + + function getDefaultOptions(): Object + namespace getDefaultOptions {} + + function getHours(date: Date | number): number + namespace getHours {} + + function getISODay(date: Date | number): number + namespace getISODay {} + + function getISOWeek(date: Date | number): number + namespace getISOWeek {} + + function getISOWeeksInYear(date: Date | number): number + namespace getISOWeeksInYear {} + + function getISOWeekYear(date: Date | number): number + namespace getISOWeekYear {} + + function getMilliseconds(date: Date | number): number + namespace getMilliseconds {} + + function getMinutes(date: Date | number): number + namespace getMinutes {} + + function getMonth(date: Date | number): number + namespace getMonth {} + + function getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval + ): number + namespace getOverlappingDaysInIntervals {} + + function getQuarter(date: Date | number): number + namespace getQuarter {} + + function getSeconds(date: Date | number): number + namespace getSeconds {} + + function getTime(date: Date | number): number + namespace getTime {} + + function getUnixTime(date: Date | number): number + namespace getUnixTime {} + + function getWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + namespace getWeek {} + + function getWeekOfMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace getWeekOfMonth {} + + function getWeeksInMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace getWeeksInMonth {} + + function getWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + namespace getWeekYear {} + + function getYear(date: Date | number): number + namespace getYear {} + + function hoursToMilliseconds(hours: number): number + namespace hoursToMilliseconds {} + + function hoursToMinutes(hours: number): number + namespace hoursToMinutes {} + + function hoursToSeconds(hours: number): number + namespace hoursToSeconds {} + + function intervalToDuration(interval: Interval): Duration + namespace intervalToDuration {} + + function intlFormat( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit' + weekday?: 'narrow' | 'short' | 'long' + era?: 'narrow' | 'short' | 'long' + year?: 'numeric' | '2-digit' + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' + day?: 'numeric' | '2-digit' + hour?: 'numeric' | '2-digit' + minute?: 'numeric' | '2-digit' + second?: 'numeric' | '2-digit' + timeZoneName?: 'short' | 'long' + formatMatcher?: 'basic' | 'best fit' + hour12?: boolean + timeZone?: string + }, + localeOptions?: { + locale?: string | string[] + } + ): string + namespace intlFormat {} + + function intlFormatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string + locale?: string | string[] + localeMatcher?: string + numeric?: string + style?: string + } + ): string + namespace intlFormatDistance {} + + function isAfter(date: Date | number, dateToCompare: Date | number): boolean + namespace isAfter {} + + function isBefore(date: Date | number, dateToCompare: Date | number): boolean + namespace isBefore {} + + function isDate(value: any): boolean + namespace isDate {} + + function isEqual(dateLeft: Date | number, dateRight: Date | number): boolean + namespace isEqual {} + + function isExists(year: number, month: number, day: number): boolean + namespace isExists {} + + function isFirstDayOfMonth(date: Date | number): boolean + namespace isFirstDayOfMonth {} + + function isFriday(date: Date | number): boolean + namespace isFriday {} + + function isFuture(date: Date | number): boolean + namespace isFuture {} + + function isLastDayOfMonth(date: Date | number): boolean + namespace isLastDayOfMonth {} + + function isLeapYear(date: Date | number): boolean + namespace isLeapYear {} + + function isMatch( + dateString: string, + formatString: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): boolean + namespace isMatch {} + + function isMonday(date: Date | number): boolean + namespace isMonday {} + + function isPast(date: Date | number): boolean + namespace isPast {} + + function isSameDay(dateLeft: Date | number, dateRight: Date | number): boolean + namespace isSameDay {} + + function isSameHour( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameHour {} + + function isSameISOWeek( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameISOWeek {} + + function isSameISOWeekYear( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameISOWeekYear {} + + function isSameMinute( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameMinute {} + + function isSameMonth( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameMonth {} + + function isSameQuarter( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameQuarter {} + + function isSameSecond( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameSecond {} + + function isSameWeek( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + namespace isSameWeek {} + + function isSameYear( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameYear {} + + function isSaturday(date: Date | number): boolean + namespace isSaturday {} + + function isSunday(date: Date | number): boolean + namespace isSunday {} + + function isThisHour(date: Date | number): boolean + namespace isThisHour {} + + function isThisISOWeek(date: Date | number): boolean + namespace isThisISOWeek {} + + function isThisMinute(date: Date | number): boolean + namespace isThisMinute {} + + function isThisMonth(date: Date | number): boolean + namespace isThisMonth {} + + function isThisQuarter(date: Date | number): boolean + namespace isThisQuarter {} + + function isThisSecond(date: Date | number): boolean + namespace isThisSecond {} + + function isThisWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + namespace isThisWeek {} + + function isThisYear(date: Date | number): boolean + namespace isThisYear {} + + function isThursday(date: Date | number): boolean + namespace isThursday {} + + function isToday(date: Date | number): boolean + namespace isToday {} + + function isTomorrow(date: Date | number): boolean + namespace isTomorrow {} + + function isTuesday(date: Date | number): boolean + namespace isTuesday {} + + function isValid(date: any): boolean + namespace isValid {} + + function isWednesday(date: Date | number): boolean + namespace isWednesday {} + + function isWeekend(date: Date | number): boolean + namespace isWeekend {} + + function isWithinInterval(date: Date | number, interval: Interval): boolean + namespace isWithinInterval {} + + function isYesterday(date: Date | number): boolean + namespace isYesterday {} + + function lastDayOfDecade(date: Date | number): Date + namespace lastDayOfDecade {} + + function lastDayOfISOWeek(date: Date | number): Date + namespace lastDayOfISOWeek {} + + function lastDayOfISOWeekYear(date: Date | number): Date + namespace lastDayOfISOWeekYear {} + + function lastDayOfMonth(date: Date | number): Date + namespace lastDayOfMonth {} + + function lastDayOfQuarter( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace lastDayOfQuarter {} + + function lastDayOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace lastDayOfWeek {} + + function lastDayOfYear(date: Date | number): Date + namespace lastDayOfYear {} + + function lightFormat(date: Date | number, format: string): string + namespace lightFormat {} + + function max(datesArray: (Date | number)[]): Date + namespace max {} + + function milliseconds(duration: Duration): number + namespace milliseconds {} + + function millisecondsToHours(milliseconds: number): number + namespace millisecondsToHours {} + + function millisecondsToMinutes(milliseconds: number): number + namespace millisecondsToMinutes {} + + function millisecondsToSeconds(milliseconds: number): number + namespace millisecondsToSeconds {} + + function min(datesArray: (Date | number)[]): Date + namespace min {} + + function minutesToHours(minutes: number): number + namespace minutesToHours {} + + function minutesToMilliseconds(minutes: number): number + namespace minutesToMilliseconds {} + + function minutesToSeconds(minutes: number): number + namespace minutesToSeconds {} + + function monthsToQuarters(months: number): number + namespace monthsToQuarters {} + + function monthsToYears(months: number): number + namespace monthsToYears {} + + function nextDay(date: Date | number, day: Day): Date + namespace nextDay {} + + function nextFriday(date: Date | number): Date + namespace nextFriday {} + + function nextMonday(date: Date | number): Date + namespace nextMonday {} + + function nextSaturday(date: Date | number): Date + namespace nextSaturday {} + + function nextSunday(date: Date | number): Date + namespace nextSunday {} + + function nextThursday(date: Date | number): Date + namespace nextThursday {} + + function nextTuesday(date: Date | number): Date + namespace nextTuesday {} + + function nextWednesday(date: Date | number): Date + namespace nextWednesday {} + + function parse( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): Date + namespace parse {} + + function parseISO( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace parseISO {} + + function parseJSON(argument: string | number | Date): Date + namespace parseJSON {} + + function previousDay(date: Date | number, day: number): Date + namespace previousDay {} + + function previousFriday(date: Date | number): Date + namespace previousFriday {} + + function previousMonday(date: Date | number): Date + namespace previousMonday {} + + function previousSaturday(date: Date | number): Date + namespace previousSaturday {} + + function previousSunday(date: Date | number): Date + namespace previousSunday {} + + function previousThursday(date: Date | number): Date + namespace previousThursday {} + + function previousTuesday(date: Date | number): Date + namespace previousTuesday {} + + function previousWednesday(date: Date | number): Date + namespace previousWednesday {} + + function quartersToMonths(quarters: number): number + namespace quartersToMonths {} + + function quartersToYears(quarters: number): number + namespace quartersToYears {} + + function roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + roundingMethod?: string + } + ): Date + namespace roundToNearestMinutes {} + + function secondsToHours(seconds: number): number + namespace secondsToHours {} + + function secondsToMilliseconds(seconds: number): number + namespace secondsToMilliseconds {} + + function secondsToMinutes(seconds: number): number + namespace secondsToMinutes {} + + function set( + date: Date | number, + values: { + year?: number + month?: number + date?: number + hours?: number + minutes?: number + seconds?: number + milliseconds?: number + } + ): Date + namespace set {} + + function setDate(date: Date | number, dayOfMonth: number): Date + namespace setDate {} + + function setDay( + date: Date | number, + day: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace setDay {} + + function setDayOfYear(date: Date | number, dayOfYear: number): Date + namespace setDayOfYear {} + + function setDefaultOptions(newOptions: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + }): void + namespace setDefaultOptions {} + + function setHours(date: Date | number, hours: number): Date + namespace setHours {} + + function setISODay(date: Date | number, day: number): Date + namespace setISODay {} + + function setISOWeek(date: Date | number, isoWeek: number): Date + namespace setISOWeek {} + + function setISOWeekYear(date: Date | number, isoWeekYear: number): Date + namespace setISOWeekYear {} + + function setMilliseconds(date: Date | number, milliseconds: number): Date + namespace setMilliseconds {} + + function setMinutes(date: Date | number, minutes: number): Date + namespace setMinutes {} + + function setMonth(date: Date | number, month: number): Date + namespace setMonth {} + + function setQuarter(date: Date | number, quarter: number): Date + namespace setQuarter {} + + function setSeconds(date: Date | number, seconds: number): Date + namespace setSeconds {} + + function setWeek( + date: Date | number, + week: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace setWeek {} + + function setWeekYear( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace setWeekYear {} + + function setYear(date: Date | number, year: number): Date + namespace setYear {} + + function startOfDay(date: Date | number): Date + namespace startOfDay {} + + function startOfDecade(date: Date | number): Date + namespace startOfDecade {} + + function startOfHour(date: Date | number): Date + namespace startOfHour {} + + function startOfISOWeek(date: Date | number): Date + namespace startOfISOWeek {} + + function startOfISOWeekYear(date: Date | number): Date + namespace startOfISOWeekYear {} + + function startOfMinute(date: Date | number): Date + namespace startOfMinute {} + + function startOfMonth(date: Date | number): Date + namespace startOfMonth {} + + function startOfQuarter(date: Date | number): Date + namespace startOfQuarter {} + + function startOfSecond(date: Date | number): Date + namespace startOfSecond {} + + function startOfToday(): Date + namespace startOfToday {} + + function startOfTomorrow(): Date + namespace startOfTomorrow {} + + function startOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace startOfWeek {} + + function startOfWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace startOfWeekYear {} + + function startOfYear(date: Date | number): Date + namespace startOfYear {} + + function startOfYesterday(): Date + namespace startOfYesterday {} + + function sub(date: Date | number, duration: Duration): Date + namespace sub {} + + function subBusinessDays(date: Date | number, amount: number): Date + namespace subBusinessDays {} + + function subDays(date: Date | number, amount: number): Date + namespace subDays {} + + function subHours(date: Date | number, amount: number): Date + namespace subHours {} + + function subISOWeekYears(date: Date | number, amount: number): Date + namespace subISOWeekYears {} + + function subMilliseconds(date: Date | number, amount: number): Date + namespace subMilliseconds {} + + function subMinutes(date: Date | number, amount: number): Date + namespace subMinutes {} + + function subMonths(date: Date | number, amount: number): Date + namespace subMonths {} + + function subQuarters(date: Date | number, amount: number): Date + namespace subQuarters {} + + function subSeconds(date: Date | number, amount: number): Date + namespace subSeconds {} + + function subWeeks(date: Date | number, amount: number): Date + namespace subWeeks {} + + function subYears(date: Date | number, amount: number): Date + namespace subYears {} + + function toDate(argument: Date | number): Date + namespace toDate {} + + function weeksToDays(weeks: number): number + namespace weeksToDays {} + + function yearsToMonths(years: number): number + namespace yearsToMonths {} + + function yearsToQuarters(years: number): number + namespace yearsToQuarters {} + + const daysInWeek: number + + const daysInYear: number + + const maxTime: number + + const millisecondsInMinute: number + + const millisecondsInHour: number + + const millisecondsInSecond: number + + const minTime: number + + const minutesInHour: number + + const monthsInQuarter: number + + const monthsInYear: number + + const quartersInYear: number + + const secondsInHour: number + + const secondsInMinute: number + + const secondsInDay: number + + const secondsInWeek: number + + const secondsInYear: number + + const secondsInMonth: number + + const secondsInQuarter: number +} + +declare module 'date-fns/constants' { + export const daysInWeek: number + export const daysInYear: number + export const maxTime: number + export const millisecondsInMinute: number + export const millisecondsInHour: number + export const millisecondsInSecond: number + export const minTime: number + export const minutesInHour: number + export const monthsInQuarter: number + export const monthsInYear: number + export const quartersInYear: number + export const secondsInHour: number + export const secondsInMinute: number + export const secondsInDay: number + export const secondsInWeek: number + export const secondsInYear: number + export const secondsInMonth: number + export const secondsInQuarter: number +} + +declare module 'date-fns/constants/index' { + export const daysInWeek: number + export const daysInYear: number + export const maxTime: number + export const millisecondsInMinute: number + export const millisecondsInHour: number + export const millisecondsInSecond: number + export const minTime: number + export const minutesInHour: number + export const monthsInQuarter: number + export const monthsInYear: number + export const quartersInYear: number + export const secondsInHour: number + export const secondsInMinute: number + export const secondsInDay: number + export const secondsInWeek: number + export const secondsInYear: number + export const secondsInMonth: number + export const secondsInQuarter: number +} + +declare module 'date-fns/constants/index.js' { + export const daysInWeek: number + export const daysInYear: number + export const maxTime: number + export const millisecondsInMinute: number + export const millisecondsInHour: number + export const millisecondsInSecond: number + export const minTime: number + export const minutesInHour: number + export const monthsInQuarter: number + export const monthsInYear: number + export const quartersInYear: number + export const secondsInHour: number + export const secondsInMinute: number + export const secondsInDay: number + export const secondsInWeek: number + export const secondsInYear: number + export const secondsInMonth: number + export const secondsInQuarter: number +} + +declare module 'date-fns/add' { + import { add } from 'date-fns' + export default add +} + +declare module 'date-fns/addBusinessDays' { + import { addBusinessDays } from 'date-fns' + export default addBusinessDays +} + +declare module 'date-fns/addDays' { + import { addDays } from 'date-fns' + export default addDays +} + +declare module 'date-fns/addHours' { + import { addHours } from 'date-fns' + export default addHours +} + +declare module 'date-fns/addISOWeekYears' { + import { addISOWeekYears } from 'date-fns' + export default addISOWeekYears +} + +declare module 'date-fns/addMilliseconds' { + import { addMilliseconds } from 'date-fns' + export default addMilliseconds +} + +declare module 'date-fns/addMinutes' { + import { addMinutes } from 'date-fns' + export default addMinutes +} + +declare module 'date-fns/addMonths' { + import { addMonths } from 'date-fns' + export default addMonths +} + +declare module 'date-fns/addQuarters' { + import { addQuarters } from 'date-fns' + export default addQuarters +} + +declare module 'date-fns/addSeconds' { + import { addSeconds } from 'date-fns' + export default addSeconds +} + +declare module 'date-fns/addWeeks' { + import { addWeeks } from 'date-fns' + export default addWeeks +} + +declare module 'date-fns/addYears' { + import { addYears } from 'date-fns' + export default addYears +} + +declare module 'date-fns/areIntervalsOverlapping' { + import { areIntervalsOverlapping } from 'date-fns' + export default areIntervalsOverlapping +} + +declare module 'date-fns/clamp' { + import { clamp } from 'date-fns' + export default clamp +} + +declare module 'date-fns/closestIndexTo' { + import { closestIndexTo } from 'date-fns' + export default closestIndexTo +} + +declare module 'date-fns/closestTo' { + import { closestTo } from 'date-fns' + export default closestTo +} + +declare module 'date-fns/compareAsc' { + import { compareAsc } from 'date-fns' + export default compareAsc +} + +declare module 'date-fns/compareDesc' { + import { compareDesc } from 'date-fns' + export default compareDesc +} + +declare module 'date-fns/daysToWeeks' { + import { daysToWeeks } from 'date-fns' + export default daysToWeeks +} + +declare module 'date-fns/differenceInBusinessDays' { + import { differenceInBusinessDays } from 'date-fns' + export default differenceInBusinessDays +} + +declare module 'date-fns/differenceInCalendarDays' { + import { differenceInCalendarDays } from 'date-fns' + export default differenceInCalendarDays +} + +declare module 'date-fns/differenceInCalendarISOWeeks' { + import { differenceInCalendarISOWeeks } from 'date-fns' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/differenceInCalendarISOWeekYears' { + import { differenceInCalendarISOWeekYears } from 'date-fns' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/differenceInCalendarMonths' { + import { differenceInCalendarMonths } from 'date-fns' + export default differenceInCalendarMonths +} + +declare module 'date-fns/differenceInCalendarQuarters' { + import { differenceInCalendarQuarters } from 'date-fns' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/differenceInCalendarWeeks' { + import { differenceInCalendarWeeks } from 'date-fns' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/differenceInCalendarYears' { + import { differenceInCalendarYears } from 'date-fns' + export default differenceInCalendarYears +} + +declare module 'date-fns/differenceInDays' { + import { differenceInDays } from 'date-fns' + export default differenceInDays +} + +declare module 'date-fns/differenceInHours' { + import { differenceInHours } from 'date-fns' + export default differenceInHours +} + +declare module 'date-fns/differenceInISOWeekYears' { + import { differenceInISOWeekYears } from 'date-fns' + export default differenceInISOWeekYears +} + +declare module 'date-fns/differenceInMilliseconds' { + import { differenceInMilliseconds } from 'date-fns' + export default differenceInMilliseconds +} + +declare module 'date-fns/differenceInMinutes' { + import { differenceInMinutes } from 'date-fns' + export default differenceInMinutes +} + +declare module 'date-fns/differenceInMonths' { + import { differenceInMonths } from 'date-fns' + export default differenceInMonths +} + +declare module 'date-fns/differenceInQuarters' { + import { differenceInQuarters } from 'date-fns' + export default differenceInQuarters +} + +declare module 'date-fns/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns' + export default differenceInSeconds +} + +declare module 'date-fns/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns' + export default differenceInWeeks +} + +declare module 'date-fns/differenceInYears' { + import { differenceInYears } from 'date-fns' + export default differenceInYears +} + +declare module 'date-fns/eachDayOfInterval' { + import { eachDayOfInterval } from 'date-fns' + export default eachDayOfInterval +} + +declare module 'date-fns/eachHourOfInterval' { + import { eachHourOfInterval } from 'date-fns' + export default eachHourOfInterval +} + +declare module 'date-fns/eachMinuteOfInterval' { + import { eachMinuteOfInterval } from 'date-fns' + export default eachMinuteOfInterval +} + +declare module 'date-fns/eachMonthOfInterval' { + import { eachMonthOfInterval } from 'date-fns' + export default eachMonthOfInterval +} + +declare module 'date-fns/eachQuarterOfInterval' { + import { eachQuarterOfInterval } from 'date-fns' + export default eachQuarterOfInterval +} + +declare module 'date-fns/eachWeekendOfInterval' { + import { eachWeekendOfInterval } from 'date-fns' + export default eachWeekendOfInterval +} + +declare module 'date-fns/eachWeekendOfMonth' { + import { eachWeekendOfMonth } from 'date-fns' + export default eachWeekendOfMonth +} + +declare module 'date-fns/eachWeekendOfYear' { + import { eachWeekendOfYear } from 'date-fns' + export default eachWeekendOfYear +} + +declare module 'date-fns/eachWeekOfInterval' { + import { eachWeekOfInterval } from 'date-fns' + export default eachWeekOfInterval +} + +declare module 'date-fns/eachYearOfInterval' { + import { eachYearOfInterval } from 'date-fns' + export default eachYearOfInterval +} + +declare module 'date-fns/endOfDay' { + import { endOfDay } from 'date-fns' + export default endOfDay +} + +declare module 'date-fns/endOfDecade' { + import { endOfDecade } from 'date-fns' + export default endOfDecade +} + +declare module 'date-fns/endOfHour' { + import { endOfHour } from 'date-fns' + export default endOfHour +} + +declare module 'date-fns/endOfISOWeek' { + import { endOfISOWeek } from 'date-fns' + export default endOfISOWeek +} + +declare module 'date-fns/endOfISOWeekYear' { + import { endOfISOWeekYear } from 'date-fns' + export default endOfISOWeekYear +} + +declare module 'date-fns/endOfMinute' { + import { endOfMinute } from 'date-fns' + export default endOfMinute +} + +declare module 'date-fns/endOfMonth' { + import { endOfMonth } from 'date-fns' + export default endOfMonth +} + +declare module 'date-fns/endOfQuarter' { + import { endOfQuarter } from 'date-fns' + export default endOfQuarter +} + +declare module 'date-fns/endOfSecond' { + import { endOfSecond } from 'date-fns' + export default endOfSecond +} + +declare module 'date-fns/endOfToday' { + import { endOfToday } from 'date-fns' + export default endOfToday +} + +declare module 'date-fns/endOfTomorrow' { + import { endOfTomorrow } from 'date-fns' + export default endOfTomorrow +} + +declare module 'date-fns/endOfWeek' { + import { endOfWeek } from 'date-fns' + export default endOfWeek +} + +declare module 'date-fns/endOfYear' { + import { endOfYear } from 'date-fns' + export default endOfYear +} + +declare module 'date-fns/endOfYesterday' { + import { endOfYesterday } from 'date-fns' + export default endOfYesterday +} + +declare module 'date-fns/format' { + import { format } from 'date-fns' + export default format +} + +declare module 'date-fns/formatDistance' { + import { formatDistance } from 'date-fns' + export default formatDistance +} + +declare module 'date-fns/formatDistanceStrict' { + import { formatDistanceStrict } from 'date-fns' + export default formatDistanceStrict +} + +declare module 'date-fns/formatDistanceToNow' { + import { formatDistanceToNow } from 'date-fns' + export default formatDistanceToNow +} + +declare module 'date-fns/formatDistanceToNowStrict' { + import { formatDistanceToNowStrict } from 'date-fns' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/formatDuration' { + import { formatDuration } from 'date-fns' + export default formatDuration +} + +declare module 'date-fns/formatISO' { + import { formatISO } from 'date-fns' + export default formatISO +} + +declare module 'date-fns/formatISO9075' { + import { formatISO9075 } from 'date-fns' + export default formatISO9075 +} + +declare module 'date-fns/formatISODuration' { + import { formatISODuration } from 'date-fns' + export default formatISODuration +} + +declare module 'date-fns/formatRelative' { + import { formatRelative } from 'date-fns' + export default formatRelative +} + +declare module 'date-fns/formatRFC3339' { + import { formatRFC3339 } from 'date-fns' + export default formatRFC3339 +} + +declare module 'date-fns/formatRFC7231' { + import { formatRFC7231 } from 'date-fns' + export default formatRFC7231 +} + +declare module 'date-fns/fromUnixTime' { + import { fromUnixTime } from 'date-fns' + export default fromUnixTime +} + +declare module 'date-fns/getDate' { + import { getDate } from 'date-fns' + export default getDate +} + +declare module 'date-fns/getDay' { + import { getDay } from 'date-fns' + export default getDay +} + +declare module 'date-fns/getDayOfYear' { + import { getDayOfYear } from 'date-fns' + export default getDayOfYear +} + +declare module 'date-fns/getDaysInMonth' { + import { getDaysInMonth } from 'date-fns' + export default getDaysInMonth +} + +declare module 'date-fns/getDaysInYear' { + import { getDaysInYear } from 'date-fns' + export default getDaysInYear +} + +declare module 'date-fns/getDecade' { + import { getDecade } from 'date-fns' + export default getDecade +} + +declare module 'date-fns/getDefaultOptions' { + import { getDefaultOptions } from 'date-fns' + export default getDefaultOptions +} + +declare module 'date-fns/getHours' { + import { getHours } from 'date-fns' + export default getHours +} + +declare module 'date-fns/getISODay' { + import { getISODay } from 'date-fns' + export default getISODay +} + +declare module 'date-fns/getISOWeek' { + import { getISOWeek } from 'date-fns' + export default getISOWeek +} + +declare module 'date-fns/getISOWeeksInYear' { + import { getISOWeeksInYear } from 'date-fns' + export default getISOWeeksInYear +} + +declare module 'date-fns/getISOWeekYear' { + import { getISOWeekYear } from 'date-fns' + export default getISOWeekYear +} + +declare module 'date-fns/getMilliseconds' { + import { getMilliseconds } from 'date-fns' + export default getMilliseconds +} + +declare module 'date-fns/getMinutes' { + import { getMinutes } from 'date-fns' + export default getMinutes +} + +declare module 'date-fns/getMonth' { + import { getMonth } from 'date-fns' + export default getMonth +} + +declare module 'date-fns/getOverlappingDaysInIntervals' { + import { getOverlappingDaysInIntervals } from 'date-fns' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/getQuarter' { + import { getQuarter } from 'date-fns' + export default getQuarter +} + +declare module 'date-fns/getSeconds' { + import { getSeconds } from 'date-fns' + export default getSeconds +} + +declare module 'date-fns/getTime' { + import { getTime } from 'date-fns' + export default getTime +} + +declare module 'date-fns/getUnixTime' { + import { getUnixTime } from 'date-fns' + export default getUnixTime +} + +declare module 'date-fns/getWeek' { + import { getWeek } from 'date-fns' + export default getWeek +} + +declare module 'date-fns/getWeekOfMonth' { + import { getWeekOfMonth } from 'date-fns' + export default getWeekOfMonth +} + +declare module 'date-fns/getWeeksInMonth' { + import { getWeeksInMonth } from 'date-fns' + export default getWeeksInMonth +} + +declare module 'date-fns/getWeekYear' { + import { getWeekYear } from 'date-fns' + export default getWeekYear +} + +declare module 'date-fns/getYear' { + import { getYear } from 'date-fns' + export default getYear +} + +declare module 'date-fns/hoursToMilliseconds' { + import { hoursToMilliseconds } from 'date-fns' + export default hoursToMilliseconds +} + +declare module 'date-fns/hoursToMinutes' { + import { hoursToMinutes } from 'date-fns' + export default hoursToMinutes +} + +declare module 'date-fns/hoursToSeconds' { + import { hoursToSeconds } from 'date-fns' + export default hoursToSeconds +} + +declare module 'date-fns/intervalToDuration' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +declare module 'date-fns/intlFormat' { + import { intlFormat } from 'date-fns' + export default intlFormat +} + +declare module 'date-fns/intlFormatDistance' { + import { intlFormatDistance } from 'date-fns' + export default intlFormatDistance +} + +declare module 'date-fns/isAfter' { + import { isAfter } from 'date-fns' + export default isAfter +} + +declare module 'date-fns/isBefore' { + import { isBefore } from 'date-fns' + export default isBefore +} + +declare module 'date-fns/isDate' { + import { isDate } from 'date-fns' + export default isDate +} + +declare module 'date-fns/isEqual' { + import { isEqual } from 'date-fns' + export default isEqual +} + +declare module 'date-fns/isExists' { + import { isExists } from 'date-fns' + export default isExists +} + +declare module 'date-fns/isFirstDayOfMonth' { + import { isFirstDayOfMonth } from 'date-fns' + export default isFirstDayOfMonth +} + +declare module 'date-fns/isFriday' { + import { isFriday } from 'date-fns' + export default isFriday +} + +declare module 'date-fns/isFuture' { + import { isFuture } from 'date-fns' + export default isFuture +} + +declare module 'date-fns/isLastDayOfMonth' { + import { isLastDayOfMonth } from 'date-fns' + export default isLastDayOfMonth +} + +declare module 'date-fns/isLeapYear' { + import { isLeapYear } from 'date-fns' + export default isLeapYear +} + +declare module 'date-fns/isMatch' { + import { isMatch } from 'date-fns' + export default isMatch +} + +declare module 'date-fns/isMonday' { + import { isMonday } from 'date-fns' + export default isMonday +} + +declare module 'date-fns/isPast' { + import { isPast } from 'date-fns' + export default isPast +} + +declare module 'date-fns/isSameDay' { + import { isSameDay } from 'date-fns' + export default isSameDay +} + +declare module 'date-fns/isSameHour' { + import { isSameHour } from 'date-fns' + export default isSameHour +} + +declare module 'date-fns/isSameISOWeek' { + import { isSameISOWeek } from 'date-fns' + export default isSameISOWeek +} + +declare module 'date-fns/isSameISOWeekYear' { + import { isSameISOWeekYear } from 'date-fns' + export default isSameISOWeekYear +} + +declare module 'date-fns/isSameMinute' { + import { isSameMinute } from 'date-fns' + export default isSameMinute +} + +declare module 'date-fns/isSameMonth' { + import { isSameMonth } from 'date-fns' + export default isSameMonth +} + +declare module 'date-fns/isSameQuarter' { + import { isSameQuarter } from 'date-fns' + export default isSameQuarter +} + +declare module 'date-fns/isSameSecond' { + import { isSameSecond } from 'date-fns' + export default isSameSecond +} + +declare module 'date-fns/isSameWeek' { + import { isSameWeek } from 'date-fns' + export default isSameWeek +} + +declare module 'date-fns/isSameYear' { + import { isSameYear } from 'date-fns' + export default isSameYear +} + +declare module 'date-fns/isSaturday' { + import { isSaturday } from 'date-fns' + export default isSaturday +} + +declare module 'date-fns/isSunday' { + import { isSunday } from 'date-fns' + export default isSunday +} + +declare module 'date-fns/isThisHour' { + import { isThisHour } from 'date-fns' + export default isThisHour +} + +declare module 'date-fns/isThisISOWeek' { + import { isThisISOWeek } from 'date-fns' + export default isThisISOWeek +} + +declare module 'date-fns/isThisMinute' { + import { isThisMinute } from 'date-fns' + export default isThisMinute +} + +declare module 'date-fns/isThisMonth' { + import { isThisMonth } from 'date-fns' + export default isThisMonth +} + +declare module 'date-fns/isThisQuarter' { + import { isThisQuarter } from 'date-fns' + export default isThisQuarter +} + +declare module 'date-fns/isThisSecond' { + import { isThisSecond } from 'date-fns' + export default isThisSecond +} + +declare module 'date-fns/isThisWeek' { + import { isThisWeek } from 'date-fns' + export default isThisWeek +} + +declare module 'date-fns/isThisYear' { + import { isThisYear } from 'date-fns' + export default isThisYear +} + +declare module 'date-fns/isThursday' { + import { isThursday } from 'date-fns' + export default isThursday +} + +declare module 'date-fns/isToday' { + import { isToday } from 'date-fns' + export default isToday +} + +declare module 'date-fns/isTomorrow' { + import { isTomorrow } from 'date-fns' + export default isTomorrow +} + +declare module 'date-fns/isTuesday' { + import { isTuesday } from 'date-fns' + export default isTuesday +} + +declare module 'date-fns/isValid' { + import { isValid } from 'date-fns' + export default isValid +} + +declare module 'date-fns/isWednesday' { + import { isWednesday } from 'date-fns' + export default isWednesday +} + +declare module 'date-fns/isWeekend' { + import { isWeekend } from 'date-fns' + export default isWeekend +} + +declare module 'date-fns/isWithinInterval' { + import { isWithinInterval } from 'date-fns' + export default isWithinInterval +} + +declare module 'date-fns/isYesterday' { + import { isYesterday } from 'date-fns' + export default isYesterday +} + +declare module 'date-fns/lastDayOfDecade' { + import { lastDayOfDecade } from 'date-fns' + export default lastDayOfDecade +} + +declare module 'date-fns/lastDayOfISOWeek' { + import { lastDayOfISOWeek } from 'date-fns' + export default lastDayOfISOWeek +} + +declare module 'date-fns/lastDayOfISOWeekYear' { + import { lastDayOfISOWeekYear } from 'date-fns' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/lastDayOfMonth' { + import { lastDayOfMonth } from 'date-fns' + export default lastDayOfMonth +} + +declare module 'date-fns/lastDayOfQuarter' { + import { lastDayOfQuarter } from 'date-fns' + export default lastDayOfQuarter +} + +declare module 'date-fns/lastDayOfWeek' { + import { lastDayOfWeek } from 'date-fns' + export default lastDayOfWeek +} + +declare module 'date-fns/lastDayOfYear' { + import { lastDayOfYear } from 'date-fns' + export default lastDayOfYear +} + +declare module 'date-fns/lightFormat' { + import { lightFormat } from 'date-fns' + export default lightFormat +} + +declare module 'date-fns/max' { + import { max } from 'date-fns' + export default max +} + +declare module 'date-fns/milliseconds' { + import { milliseconds } from 'date-fns' + export default milliseconds +} + +declare module 'date-fns/millisecondsToHours' { + import { millisecondsToHours } from 'date-fns' + export default millisecondsToHours +} + +declare module 'date-fns/millisecondsToMinutes' { + import { millisecondsToMinutes } from 'date-fns' + export default millisecondsToMinutes +} + +declare module 'date-fns/millisecondsToSeconds' { + import { millisecondsToSeconds } from 'date-fns' + export default millisecondsToSeconds +} + +declare module 'date-fns/min' { + import { min } from 'date-fns' + export default min +} + +declare module 'date-fns/minutesToHours' { + import { minutesToHours } from 'date-fns' + export default minutesToHours +} + +declare module 'date-fns/minutesToMilliseconds' { + import { minutesToMilliseconds } from 'date-fns' + export default minutesToMilliseconds +} + +declare module 'date-fns/minutesToSeconds' { + import { minutesToSeconds } from 'date-fns' + export default minutesToSeconds +} + +declare module 'date-fns/monthsToQuarters' { + import { monthsToQuarters } from 'date-fns' + export default monthsToQuarters +} + +declare module 'date-fns/monthsToYears' { + import { monthsToYears } from 'date-fns' + export default monthsToYears +} + +declare module 'date-fns/nextDay' { + import { nextDay } from 'date-fns' + export default nextDay +} + +declare module 'date-fns/nextFriday' { + import { nextFriday } from 'date-fns' + export default nextFriday +} + +declare module 'date-fns/nextMonday' { + import { nextMonday } from 'date-fns' + export default nextMonday +} + +declare module 'date-fns/nextSaturday' { + import { nextSaturday } from 'date-fns' + export default nextSaturday +} + +declare module 'date-fns/nextSunday' { + import { nextSunday } from 'date-fns' + export default nextSunday +} + +declare module 'date-fns/nextThursday' { + import { nextThursday } from 'date-fns' + export default nextThursday +} + +declare module 'date-fns/nextTuesday' { + import { nextTuesday } from 'date-fns' + export default nextTuesday +} + +declare module 'date-fns/nextWednesday' { + import { nextWednesday } from 'date-fns' + export default nextWednesday +} + +declare module 'date-fns/parse' { + import { parse } from 'date-fns' + export default parse +} + +declare module 'date-fns/parseISO' { + import { parseISO } from 'date-fns' + export default parseISO +} + +declare module 'date-fns/parseJSON' { + import { parseJSON } from 'date-fns' + export default parseJSON +} + +declare module 'date-fns/previousDay' { + import { previousDay } from 'date-fns' + export default previousDay +} + +declare module 'date-fns/previousFriday' { + import { previousFriday } from 'date-fns' + export default previousFriday +} + +declare module 'date-fns/previousMonday' { + import { previousMonday } from 'date-fns' + export default previousMonday +} + +declare module 'date-fns/previousSaturday' { + import { previousSaturday } from 'date-fns' + export default previousSaturday +} + +declare module 'date-fns/previousSunday' { + import { previousSunday } from 'date-fns' + export default previousSunday +} + +declare module 'date-fns/previousThursday' { + import { previousThursday } from 'date-fns' + export default previousThursday +} + +declare module 'date-fns/previousTuesday' { + import { previousTuesday } from 'date-fns' + export default previousTuesday +} + +declare module 'date-fns/previousWednesday' { + import { previousWednesday } from 'date-fns' + export default previousWednesday +} + +declare module 'date-fns/quartersToMonths' { + import { quartersToMonths } from 'date-fns' + export default quartersToMonths +} + +declare module 'date-fns/quartersToYears' { + import { quartersToYears } from 'date-fns' + export default quartersToYears +} + +declare module 'date-fns/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +declare module 'date-fns/secondsToHours' { + import { secondsToHours } from 'date-fns' + export default secondsToHours +} + +declare module 'date-fns/secondsToMilliseconds' { + import { secondsToMilliseconds } from 'date-fns' + export default secondsToMilliseconds +} + +declare module 'date-fns/secondsToMinutes' { + import { secondsToMinutes } from 'date-fns' + export default secondsToMinutes +} + +declare module 'date-fns/set' { + import { set } from 'date-fns' + export default set +} + +declare module 'date-fns/setDate' { + import { setDate } from 'date-fns' + export default setDate +} + +declare module 'date-fns/setDay' { + import { setDay } from 'date-fns' + export default setDay +} + +declare module 'date-fns/setDayOfYear' { + import { setDayOfYear } from 'date-fns' + export default setDayOfYear +} + +declare module 'date-fns/setDefaultOptions' { + import { setDefaultOptions } from 'date-fns' + export default setDefaultOptions +} + +declare module 'date-fns/setHours' { + import { setHours } from 'date-fns' + export default setHours +} + +declare module 'date-fns/setISODay' { + import { setISODay } from 'date-fns' + export default setISODay +} + +declare module 'date-fns/setISOWeek' { + import { setISOWeek } from 'date-fns' + export default setISOWeek +} + +declare module 'date-fns/setISOWeekYear' { + import { setISOWeekYear } from 'date-fns' + export default setISOWeekYear +} + +declare module 'date-fns/setMilliseconds' { + import { setMilliseconds } from 'date-fns' + export default setMilliseconds +} + +declare module 'date-fns/setMinutes' { + import { setMinutes } from 'date-fns' + export default setMinutes +} + +declare module 'date-fns/setMonth' { + import { setMonth } from 'date-fns' + export default setMonth +} + +declare module 'date-fns/setQuarter' { + import { setQuarter } from 'date-fns' + export default setQuarter +} + +declare module 'date-fns/setSeconds' { + import { setSeconds } from 'date-fns' + export default setSeconds +} + +declare module 'date-fns/setWeek' { + import { setWeek } from 'date-fns' + export default setWeek +} + +declare module 'date-fns/setWeekYear' { + import { setWeekYear } from 'date-fns' + export default setWeekYear +} + +declare module 'date-fns/setYear' { + import { setYear } from 'date-fns' + export default setYear +} + +declare module 'date-fns/startOfDay' { + import { startOfDay } from 'date-fns' + export default startOfDay +} + +declare module 'date-fns/startOfDecade' { + import { startOfDecade } from 'date-fns' + export default startOfDecade +} + +declare module 'date-fns/startOfHour' { + import { startOfHour } from 'date-fns' + export default startOfHour +} + +declare module 'date-fns/startOfISOWeek' { + import { startOfISOWeek } from 'date-fns' + export default startOfISOWeek +} + +declare module 'date-fns/startOfISOWeekYear' { + import { startOfISOWeekYear } from 'date-fns' + export default startOfISOWeekYear +} + +declare module 'date-fns/startOfMinute' { + import { startOfMinute } from 'date-fns' + export default startOfMinute +} + +declare module 'date-fns/startOfMonth' { + import { startOfMonth } from 'date-fns' + export default startOfMonth +} + +declare module 'date-fns/startOfQuarter' { + import { startOfQuarter } from 'date-fns' + export default startOfQuarter +} + +declare module 'date-fns/startOfSecond' { + import { startOfSecond } from 'date-fns' + export default startOfSecond +} + +declare module 'date-fns/startOfToday' { + import { startOfToday } from 'date-fns' + export default startOfToday +} + +declare module 'date-fns/startOfTomorrow' { + import { startOfTomorrow } from 'date-fns' + export default startOfTomorrow +} + +declare module 'date-fns/startOfWeek' { + import { startOfWeek } from 'date-fns' + export default startOfWeek +} + +declare module 'date-fns/startOfWeekYear' { + import { startOfWeekYear } from 'date-fns' + export default startOfWeekYear +} + +declare module 'date-fns/startOfYear' { + import { startOfYear } from 'date-fns' + export default startOfYear +} + +declare module 'date-fns/startOfYesterday' { + import { startOfYesterday } from 'date-fns' + export default startOfYesterday +} + +declare module 'date-fns/sub' { + import { sub } from 'date-fns' + export default sub +} + +declare module 'date-fns/subBusinessDays' { + import { subBusinessDays } from 'date-fns' + export default subBusinessDays +} + +declare module 'date-fns/subDays' { + import { subDays } from 'date-fns' + export default subDays +} + +declare module 'date-fns/subHours' { + import { subHours } from 'date-fns' + export default subHours +} + +declare module 'date-fns/subISOWeekYears' { + import { subISOWeekYears } from 'date-fns' + export default subISOWeekYears +} + +declare module 'date-fns/subMilliseconds' { + import { subMilliseconds } from 'date-fns' + export default subMilliseconds +} + +declare module 'date-fns/subMinutes' { + import { subMinutes } from 'date-fns' + export default subMinutes +} + +declare module 'date-fns/subMonths' { + import { subMonths } from 'date-fns' + export default subMonths +} + +declare module 'date-fns/subQuarters' { + import { subQuarters } from 'date-fns' + export default subQuarters +} + +declare module 'date-fns/subSeconds' { + import { subSeconds } from 'date-fns' + export default subSeconds +} + +declare module 'date-fns/subWeeks' { + import { subWeeks } from 'date-fns' + export default subWeeks +} + +declare module 'date-fns/subYears' { + import { subYears } from 'date-fns' + export default subYears +} + +declare module 'date-fns/toDate' { + import { toDate } from 'date-fns' + export default toDate +} + +declare module 'date-fns/weeksToDays' { + import { weeksToDays } from 'date-fns' + export default weeksToDays +} + +declare module 'date-fns/yearsToMonths' { + import { yearsToMonths } from 'date-fns' + export default yearsToMonths +} + +declare module 'date-fns/yearsToQuarters' { + import { yearsToQuarters } from 'date-fns' + export default yearsToQuarters +} + +declare module 'date-fns/add/index' { + import { add } from 'date-fns' + export default add +} + +declare module 'date-fns/addBusinessDays/index' { + import { addBusinessDays } from 'date-fns' + export default addBusinessDays +} + +declare module 'date-fns/addDays/index' { + import { addDays } from 'date-fns' + export default addDays +} + +declare module 'date-fns/addHours/index' { + import { addHours } from 'date-fns' + export default addHours +} + +declare module 'date-fns/addISOWeekYears/index' { + import { addISOWeekYears } from 'date-fns' + export default addISOWeekYears +} + +declare module 'date-fns/addMilliseconds/index' { + import { addMilliseconds } from 'date-fns' + export default addMilliseconds +} + +declare module 'date-fns/addMinutes/index' { + import { addMinutes } from 'date-fns' + export default addMinutes +} + +declare module 'date-fns/addMonths/index' { + import { addMonths } from 'date-fns' + export default addMonths +} + +declare module 'date-fns/addQuarters/index' { + import { addQuarters } from 'date-fns' + export default addQuarters +} + +declare module 'date-fns/addSeconds/index' { + import { addSeconds } from 'date-fns' + export default addSeconds +} + +declare module 'date-fns/addWeeks/index' { + import { addWeeks } from 'date-fns' + export default addWeeks +} + +declare module 'date-fns/addYears/index' { + import { addYears } from 'date-fns' + export default addYears +} + +declare module 'date-fns/areIntervalsOverlapping/index' { + import { areIntervalsOverlapping } from 'date-fns' + export default areIntervalsOverlapping +} + +declare module 'date-fns/clamp/index' { + import { clamp } from 'date-fns' + export default clamp +} + +declare module 'date-fns/closestIndexTo/index' { + import { closestIndexTo } from 'date-fns' + export default closestIndexTo +} + +declare module 'date-fns/closestTo/index' { + import { closestTo } from 'date-fns' + export default closestTo +} + +declare module 'date-fns/compareAsc/index' { + import { compareAsc } from 'date-fns' + export default compareAsc +} + +declare module 'date-fns/compareDesc/index' { + import { compareDesc } from 'date-fns' + export default compareDesc +} + +declare module 'date-fns/daysToWeeks/index' { + import { daysToWeeks } from 'date-fns' + export default daysToWeeks +} + +declare module 'date-fns/differenceInBusinessDays/index' { + import { differenceInBusinessDays } from 'date-fns' + export default differenceInBusinessDays +} + +declare module 'date-fns/differenceInCalendarDays/index' { + import { differenceInCalendarDays } from 'date-fns' + export default differenceInCalendarDays +} + +declare module 'date-fns/differenceInCalendarISOWeeks/index' { + import { differenceInCalendarISOWeeks } from 'date-fns' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/differenceInCalendarISOWeekYears/index' { + import { differenceInCalendarISOWeekYears } from 'date-fns' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/differenceInCalendarMonths/index' { + import { differenceInCalendarMonths } from 'date-fns' + export default differenceInCalendarMonths +} + +declare module 'date-fns/differenceInCalendarQuarters/index' { + import { differenceInCalendarQuarters } from 'date-fns' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/differenceInCalendarWeeks/index' { + import { differenceInCalendarWeeks } from 'date-fns' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/differenceInCalendarYears/index' { + import { differenceInCalendarYears } from 'date-fns' + export default differenceInCalendarYears +} + +declare module 'date-fns/differenceInDays/index' { + import { differenceInDays } from 'date-fns' + export default differenceInDays +} + +declare module 'date-fns/differenceInHours/index' { + import { differenceInHours } from 'date-fns' + export default differenceInHours +} + +declare module 'date-fns/differenceInISOWeekYears/index' { + import { differenceInISOWeekYears } from 'date-fns' + export default differenceInISOWeekYears +} + +declare module 'date-fns/differenceInMilliseconds/index' { + import { differenceInMilliseconds } from 'date-fns' + export default differenceInMilliseconds +} + +declare module 'date-fns/differenceInMinutes/index' { + import { differenceInMinutes } from 'date-fns' + export default differenceInMinutes +} + +declare module 'date-fns/differenceInMonths/index' { + import { differenceInMonths } from 'date-fns' + export default differenceInMonths +} + +declare module 'date-fns/differenceInQuarters/index' { + import { differenceInQuarters } from 'date-fns' + export default differenceInQuarters +} + +declare module 'date-fns/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns' + export default differenceInSeconds +} + +declare module 'date-fns/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns' + export default differenceInWeeks +} + +declare module 'date-fns/differenceInYears/index' { + import { differenceInYears } from 'date-fns' + export default differenceInYears +} + +declare module 'date-fns/eachDayOfInterval/index' { + import { eachDayOfInterval } from 'date-fns' + export default eachDayOfInterval +} + +declare module 'date-fns/eachHourOfInterval/index' { + import { eachHourOfInterval } from 'date-fns' + export default eachHourOfInterval +} + +declare module 'date-fns/eachMinuteOfInterval/index' { + import { eachMinuteOfInterval } from 'date-fns' + export default eachMinuteOfInterval +} + +declare module 'date-fns/eachMonthOfInterval/index' { + import { eachMonthOfInterval } from 'date-fns' + export default eachMonthOfInterval +} + +declare module 'date-fns/eachQuarterOfInterval/index' { + import { eachQuarterOfInterval } from 'date-fns' + export default eachQuarterOfInterval +} + +declare module 'date-fns/eachWeekendOfInterval/index' { + import { eachWeekendOfInterval } from 'date-fns' + export default eachWeekendOfInterval +} + +declare module 'date-fns/eachWeekendOfMonth/index' { + import { eachWeekendOfMonth } from 'date-fns' + export default eachWeekendOfMonth +} + +declare module 'date-fns/eachWeekendOfYear/index' { + import { eachWeekendOfYear } from 'date-fns' + export default eachWeekendOfYear +} + +declare module 'date-fns/eachWeekOfInterval/index' { + import { eachWeekOfInterval } from 'date-fns' + export default eachWeekOfInterval +} + +declare module 'date-fns/eachYearOfInterval/index' { + import { eachYearOfInterval } from 'date-fns' + export default eachYearOfInterval +} + +declare module 'date-fns/endOfDay/index' { + import { endOfDay } from 'date-fns' + export default endOfDay +} + +declare module 'date-fns/endOfDecade/index' { + import { endOfDecade } from 'date-fns' + export default endOfDecade +} + +declare module 'date-fns/endOfHour/index' { + import { endOfHour } from 'date-fns' + export default endOfHour +} + +declare module 'date-fns/endOfISOWeek/index' { + import { endOfISOWeek } from 'date-fns' + export default endOfISOWeek +} + +declare module 'date-fns/endOfISOWeekYear/index' { + import { endOfISOWeekYear } from 'date-fns' + export default endOfISOWeekYear +} + +declare module 'date-fns/endOfMinute/index' { + import { endOfMinute } from 'date-fns' + export default endOfMinute +} + +declare module 'date-fns/endOfMonth/index' { + import { endOfMonth } from 'date-fns' + export default endOfMonth +} + +declare module 'date-fns/endOfQuarter/index' { + import { endOfQuarter } from 'date-fns' + export default endOfQuarter +} + +declare module 'date-fns/endOfSecond/index' { + import { endOfSecond } from 'date-fns' + export default endOfSecond +} + +declare module 'date-fns/endOfToday/index' { + import { endOfToday } from 'date-fns' + export default endOfToday +} + +declare module 'date-fns/endOfTomorrow/index' { + import { endOfTomorrow } from 'date-fns' + export default endOfTomorrow +} + +declare module 'date-fns/endOfWeek/index' { + import { endOfWeek } from 'date-fns' + export default endOfWeek +} + +declare module 'date-fns/endOfYear/index' { + import { endOfYear } from 'date-fns' + export default endOfYear +} + +declare module 'date-fns/endOfYesterday/index' { + import { endOfYesterday } from 'date-fns' + export default endOfYesterday +} + +declare module 'date-fns/format/index' { + import { format } from 'date-fns' + export default format +} + +declare module 'date-fns/formatDistance/index' { + import { formatDistance } from 'date-fns' + export default formatDistance +} + +declare module 'date-fns/formatDistanceStrict/index' { + import { formatDistanceStrict } from 'date-fns' + export default formatDistanceStrict +} + +declare module 'date-fns/formatDistanceToNow/index' { + import { formatDistanceToNow } from 'date-fns' + export default formatDistanceToNow +} + +declare module 'date-fns/formatDistanceToNowStrict/index' { + import { formatDistanceToNowStrict } from 'date-fns' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/formatDuration/index' { + import { formatDuration } from 'date-fns' + export default formatDuration +} + +declare module 'date-fns/formatISO/index' { + import { formatISO } from 'date-fns' + export default formatISO +} + +declare module 'date-fns/formatISO9075/index' { + import { formatISO9075 } from 'date-fns' + export default formatISO9075 +} + +declare module 'date-fns/formatISODuration/index' { + import { formatISODuration } from 'date-fns' + export default formatISODuration +} + +declare module 'date-fns/formatRelative/index' { + import { formatRelative } from 'date-fns' + export default formatRelative +} + +declare module 'date-fns/formatRFC3339/index' { + import { formatRFC3339 } from 'date-fns' + export default formatRFC3339 +} + +declare module 'date-fns/formatRFC7231/index' { + import { formatRFC7231 } from 'date-fns' + export default formatRFC7231 +} + +declare module 'date-fns/fromUnixTime/index' { + import { fromUnixTime } from 'date-fns' + export default fromUnixTime +} + +declare module 'date-fns/getDate/index' { + import { getDate } from 'date-fns' + export default getDate +} + +declare module 'date-fns/getDay/index' { + import { getDay } from 'date-fns' + export default getDay +} + +declare module 'date-fns/getDayOfYear/index' { + import { getDayOfYear } from 'date-fns' + export default getDayOfYear +} + +declare module 'date-fns/getDaysInMonth/index' { + import { getDaysInMonth } from 'date-fns' + export default getDaysInMonth +} + +declare module 'date-fns/getDaysInYear/index' { + import { getDaysInYear } from 'date-fns' + export default getDaysInYear +} + +declare module 'date-fns/getDecade/index' { + import { getDecade } from 'date-fns' + export default getDecade +} + +declare module 'date-fns/getDefaultOptions/index' { + import { getDefaultOptions } from 'date-fns' + export default getDefaultOptions +} + +declare module 'date-fns/getHours/index' { + import { getHours } from 'date-fns' + export default getHours +} + +declare module 'date-fns/getISODay/index' { + import { getISODay } from 'date-fns' + export default getISODay +} + +declare module 'date-fns/getISOWeek/index' { + import { getISOWeek } from 'date-fns' + export default getISOWeek +} + +declare module 'date-fns/getISOWeeksInYear/index' { + import { getISOWeeksInYear } from 'date-fns' + export default getISOWeeksInYear +} + +declare module 'date-fns/getISOWeekYear/index' { + import { getISOWeekYear } from 'date-fns' + export default getISOWeekYear +} + +declare module 'date-fns/getMilliseconds/index' { + import { getMilliseconds } from 'date-fns' + export default getMilliseconds +} + +declare module 'date-fns/getMinutes/index' { + import { getMinutes } from 'date-fns' + export default getMinutes +} + +declare module 'date-fns/getMonth/index' { + import { getMonth } from 'date-fns' + export default getMonth +} + +declare module 'date-fns/getOverlappingDaysInIntervals/index' { + import { getOverlappingDaysInIntervals } from 'date-fns' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/getQuarter/index' { + import { getQuarter } from 'date-fns' + export default getQuarter +} + +declare module 'date-fns/getSeconds/index' { + import { getSeconds } from 'date-fns' + export default getSeconds +} + +declare module 'date-fns/getTime/index' { + import { getTime } from 'date-fns' + export default getTime +} + +declare module 'date-fns/getUnixTime/index' { + import { getUnixTime } from 'date-fns' + export default getUnixTime +} + +declare module 'date-fns/getWeek/index' { + import { getWeek } from 'date-fns' + export default getWeek +} + +declare module 'date-fns/getWeekOfMonth/index' { + import { getWeekOfMonth } from 'date-fns' + export default getWeekOfMonth +} + +declare module 'date-fns/getWeeksInMonth/index' { + import { getWeeksInMonth } from 'date-fns' + export default getWeeksInMonth +} + +declare module 'date-fns/getWeekYear/index' { + import { getWeekYear } from 'date-fns' + export default getWeekYear +} + +declare module 'date-fns/getYear/index' { + import { getYear } from 'date-fns' + export default getYear +} + +declare module 'date-fns/hoursToMilliseconds/index' { + import { hoursToMilliseconds } from 'date-fns' + export default hoursToMilliseconds +} + +declare module 'date-fns/hoursToMinutes/index' { + import { hoursToMinutes } from 'date-fns' + export default hoursToMinutes +} + +declare module 'date-fns/hoursToSeconds/index' { + import { hoursToSeconds } from 'date-fns' + export default hoursToSeconds +} + +declare module 'date-fns/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +declare module 'date-fns/intlFormat/index' { + import { intlFormat } from 'date-fns' + export default intlFormat +} + +declare module 'date-fns/intlFormatDistance/index' { + import { intlFormatDistance } from 'date-fns' + export default intlFormatDistance +} + +declare module 'date-fns/isAfter/index' { + import { isAfter } from 'date-fns' + export default isAfter +} + +declare module 'date-fns/isBefore/index' { + import { isBefore } from 'date-fns' + export default isBefore +} + +declare module 'date-fns/isDate/index' { + import { isDate } from 'date-fns' + export default isDate +} + +declare module 'date-fns/isEqual/index' { + import { isEqual } from 'date-fns' + export default isEqual +} + +declare module 'date-fns/isExists/index' { + import { isExists } from 'date-fns' + export default isExists +} + +declare module 'date-fns/isFirstDayOfMonth/index' { + import { isFirstDayOfMonth } from 'date-fns' + export default isFirstDayOfMonth +} + +declare module 'date-fns/isFriday/index' { + import { isFriday } from 'date-fns' + export default isFriday +} + +declare module 'date-fns/isFuture/index' { + import { isFuture } from 'date-fns' + export default isFuture +} + +declare module 'date-fns/isLastDayOfMonth/index' { + import { isLastDayOfMonth } from 'date-fns' + export default isLastDayOfMonth +} + +declare module 'date-fns/isLeapYear/index' { + import { isLeapYear } from 'date-fns' + export default isLeapYear +} + +declare module 'date-fns/isMatch/index' { + import { isMatch } from 'date-fns' + export default isMatch +} + +declare module 'date-fns/isMonday/index' { + import { isMonday } from 'date-fns' + export default isMonday +} + +declare module 'date-fns/isPast/index' { + import { isPast } from 'date-fns' + export default isPast +} + +declare module 'date-fns/isSameDay/index' { + import { isSameDay } from 'date-fns' + export default isSameDay +} + +declare module 'date-fns/isSameHour/index' { + import { isSameHour } from 'date-fns' + export default isSameHour +} + +declare module 'date-fns/isSameISOWeek/index' { + import { isSameISOWeek } from 'date-fns' + export default isSameISOWeek +} + +declare module 'date-fns/isSameISOWeekYear/index' { + import { isSameISOWeekYear } from 'date-fns' + export default isSameISOWeekYear +} + +declare module 'date-fns/isSameMinute/index' { + import { isSameMinute } from 'date-fns' + export default isSameMinute +} + +declare module 'date-fns/isSameMonth/index' { + import { isSameMonth } from 'date-fns' + export default isSameMonth +} + +declare module 'date-fns/isSameQuarter/index' { + import { isSameQuarter } from 'date-fns' + export default isSameQuarter +} + +declare module 'date-fns/isSameSecond/index' { + import { isSameSecond } from 'date-fns' + export default isSameSecond +} + +declare module 'date-fns/isSameWeek/index' { + import { isSameWeek } from 'date-fns' + export default isSameWeek +} + +declare module 'date-fns/isSameYear/index' { + import { isSameYear } from 'date-fns' + export default isSameYear +} + +declare module 'date-fns/isSaturday/index' { + import { isSaturday } from 'date-fns' + export default isSaturday +} + +declare module 'date-fns/isSunday/index' { + import { isSunday } from 'date-fns' + export default isSunday +} + +declare module 'date-fns/isThisHour/index' { + import { isThisHour } from 'date-fns' + export default isThisHour +} + +declare module 'date-fns/isThisISOWeek/index' { + import { isThisISOWeek } from 'date-fns' + export default isThisISOWeek +} + +declare module 'date-fns/isThisMinute/index' { + import { isThisMinute } from 'date-fns' + export default isThisMinute +} + +declare module 'date-fns/isThisMonth/index' { + import { isThisMonth } from 'date-fns' + export default isThisMonth +} + +declare module 'date-fns/isThisQuarter/index' { + import { isThisQuarter } from 'date-fns' + export default isThisQuarter +} + +declare module 'date-fns/isThisSecond/index' { + import { isThisSecond } from 'date-fns' + export default isThisSecond +} + +declare module 'date-fns/isThisWeek/index' { + import { isThisWeek } from 'date-fns' + export default isThisWeek +} + +declare module 'date-fns/isThisYear/index' { + import { isThisYear } from 'date-fns' + export default isThisYear +} + +declare module 'date-fns/isThursday/index' { + import { isThursday } from 'date-fns' + export default isThursday +} + +declare module 'date-fns/isToday/index' { + import { isToday } from 'date-fns' + export default isToday +} + +declare module 'date-fns/isTomorrow/index' { + import { isTomorrow } from 'date-fns' + export default isTomorrow +} + +declare module 'date-fns/isTuesday/index' { + import { isTuesday } from 'date-fns' + export default isTuesday +} + +declare module 'date-fns/isValid/index' { + import { isValid } from 'date-fns' + export default isValid +} + +declare module 'date-fns/isWednesday/index' { + import { isWednesday } from 'date-fns' + export default isWednesday +} + +declare module 'date-fns/isWeekend/index' { + import { isWeekend } from 'date-fns' + export default isWeekend +} + +declare module 'date-fns/isWithinInterval/index' { + import { isWithinInterval } from 'date-fns' + export default isWithinInterval +} + +declare module 'date-fns/isYesterday/index' { + import { isYesterday } from 'date-fns' + export default isYesterday +} + +declare module 'date-fns/lastDayOfDecade/index' { + import { lastDayOfDecade } from 'date-fns' + export default lastDayOfDecade +} + +declare module 'date-fns/lastDayOfISOWeek/index' { + import { lastDayOfISOWeek } from 'date-fns' + export default lastDayOfISOWeek +} + +declare module 'date-fns/lastDayOfISOWeekYear/index' { + import { lastDayOfISOWeekYear } from 'date-fns' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/lastDayOfMonth/index' { + import { lastDayOfMonth } from 'date-fns' + export default lastDayOfMonth +} + +declare module 'date-fns/lastDayOfQuarter/index' { + import { lastDayOfQuarter } from 'date-fns' + export default lastDayOfQuarter +} + +declare module 'date-fns/lastDayOfWeek/index' { + import { lastDayOfWeek } from 'date-fns' + export default lastDayOfWeek +} + +declare module 'date-fns/lastDayOfYear/index' { + import { lastDayOfYear } from 'date-fns' + export default lastDayOfYear +} + +declare module 'date-fns/lightFormat/index' { + import { lightFormat } from 'date-fns' + export default lightFormat +} + +declare module 'date-fns/max/index' { + import { max } from 'date-fns' + export default max +} + +declare module 'date-fns/milliseconds/index' { + import { milliseconds } from 'date-fns' + export default milliseconds +} + +declare module 'date-fns/millisecondsToHours/index' { + import { millisecondsToHours } from 'date-fns' + export default millisecondsToHours +} + +declare module 'date-fns/millisecondsToMinutes/index' { + import { millisecondsToMinutes } from 'date-fns' + export default millisecondsToMinutes +} + +declare module 'date-fns/millisecondsToSeconds/index' { + import { millisecondsToSeconds } from 'date-fns' + export default millisecondsToSeconds +} + +declare module 'date-fns/min/index' { + import { min } from 'date-fns' + export default min +} + +declare module 'date-fns/minutesToHours/index' { + import { minutesToHours } from 'date-fns' + export default minutesToHours +} + +declare module 'date-fns/minutesToMilliseconds/index' { + import { minutesToMilliseconds } from 'date-fns' + export default minutesToMilliseconds +} + +declare module 'date-fns/minutesToSeconds/index' { + import { minutesToSeconds } from 'date-fns' + export default minutesToSeconds +} + +declare module 'date-fns/monthsToQuarters/index' { + import { monthsToQuarters } from 'date-fns' + export default monthsToQuarters +} + +declare module 'date-fns/monthsToYears/index' { + import { monthsToYears } from 'date-fns' + export default monthsToYears +} + +declare module 'date-fns/nextDay/index' { + import { nextDay } from 'date-fns' + export default nextDay +} + +declare module 'date-fns/nextFriday/index' { + import { nextFriday } from 'date-fns' + export default nextFriday +} + +declare module 'date-fns/nextMonday/index' { + import { nextMonday } from 'date-fns' + export default nextMonday +} + +declare module 'date-fns/nextSaturday/index' { + import { nextSaturday } from 'date-fns' + export default nextSaturday +} + +declare module 'date-fns/nextSunday/index' { + import { nextSunday } from 'date-fns' + export default nextSunday +} + +declare module 'date-fns/nextThursday/index' { + import { nextThursday } from 'date-fns' + export default nextThursday +} + +declare module 'date-fns/nextTuesday/index' { + import { nextTuesday } from 'date-fns' + export default nextTuesday +} + +declare module 'date-fns/nextWednesday/index' { + import { nextWednesday } from 'date-fns' + export default nextWednesday +} + +declare module 'date-fns/parse/index' { + import { parse } from 'date-fns' + export default parse +} + +declare module 'date-fns/parseISO/index' { + import { parseISO } from 'date-fns' + export default parseISO +} + +declare module 'date-fns/parseJSON/index' { + import { parseJSON } from 'date-fns' + export default parseJSON +} + +declare module 'date-fns/previousDay/index' { + import { previousDay } from 'date-fns' + export default previousDay +} + +declare module 'date-fns/previousFriday/index' { + import { previousFriday } from 'date-fns' + export default previousFriday +} + +declare module 'date-fns/previousMonday/index' { + import { previousMonday } from 'date-fns' + export default previousMonday +} + +declare module 'date-fns/previousSaturday/index' { + import { previousSaturday } from 'date-fns' + export default previousSaturday +} + +declare module 'date-fns/previousSunday/index' { + import { previousSunday } from 'date-fns' + export default previousSunday +} + +declare module 'date-fns/previousThursday/index' { + import { previousThursday } from 'date-fns' + export default previousThursday +} + +declare module 'date-fns/previousTuesday/index' { + import { previousTuesday } from 'date-fns' + export default previousTuesday +} + +declare module 'date-fns/previousWednesday/index' { + import { previousWednesday } from 'date-fns' + export default previousWednesday +} + +declare module 'date-fns/quartersToMonths/index' { + import { quartersToMonths } from 'date-fns' + export default quartersToMonths +} + +declare module 'date-fns/quartersToYears/index' { + import { quartersToYears } from 'date-fns' + export default quartersToYears +} + +declare module 'date-fns/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +declare module 'date-fns/secondsToHours/index' { + import { secondsToHours } from 'date-fns' + export default secondsToHours +} + +declare module 'date-fns/secondsToMilliseconds/index' { + import { secondsToMilliseconds } from 'date-fns' + export default secondsToMilliseconds +} + +declare module 'date-fns/secondsToMinutes/index' { + import { secondsToMinutes } from 'date-fns' + export default secondsToMinutes +} + +declare module 'date-fns/set/index' { + import { set } from 'date-fns' + export default set +} + +declare module 'date-fns/setDate/index' { + import { setDate } from 'date-fns' + export default setDate +} + +declare module 'date-fns/setDay/index' { + import { setDay } from 'date-fns' + export default setDay +} + +declare module 'date-fns/setDayOfYear/index' { + import { setDayOfYear } from 'date-fns' + export default setDayOfYear +} + +declare module 'date-fns/setDefaultOptions/index' { + import { setDefaultOptions } from 'date-fns' + export default setDefaultOptions +} + +declare module 'date-fns/setHours/index' { + import { setHours } from 'date-fns' + export default setHours +} + +declare module 'date-fns/setISODay/index' { + import { setISODay } from 'date-fns' + export default setISODay +} + +declare module 'date-fns/setISOWeek/index' { + import { setISOWeek } from 'date-fns' + export default setISOWeek +} + +declare module 'date-fns/setISOWeekYear/index' { + import { setISOWeekYear } from 'date-fns' + export default setISOWeekYear +} + +declare module 'date-fns/setMilliseconds/index' { + import { setMilliseconds } from 'date-fns' + export default setMilliseconds +} + +declare module 'date-fns/setMinutes/index' { + import { setMinutes } from 'date-fns' + export default setMinutes +} + +declare module 'date-fns/setMonth/index' { + import { setMonth } from 'date-fns' + export default setMonth +} + +declare module 'date-fns/setQuarter/index' { + import { setQuarter } from 'date-fns' + export default setQuarter +} + +declare module 'date-fns/setSeconds/index' { + import { setSeconds } from 'date-fns' + export default setSeconds +} + +declare module 'date-fns/setWeek/index' { + import { setWeek } from 'date-fns' + export default setWeek +} + +declare module 'date-fns/setWeekYear/index' { + import { setWeekYear } from 'date-fns' + export default setWeekYear +} + +declare module 'date-fns/setYear/index' { + import { setYear } from 'date-fns' + export default setYear +} + +declare module 'date-fns/startOfDay/index' { + import { startOfDay } from 'date-fns' + export default startOfDay +} + +declare module 'date-fns/startOfDecade/index' { + import { startOfDecade } from 'date-fns' + export default startOfDecade +} + +declare module 'date-fns/startOfHour/index' { + import { startOfHour } from 'date-fns' + export default startOfHour +} + +declare module 'date-fns/startOfISOWeek/index' { + import { startOfISOWeek } from 'date-fns' + export default startOfISOWeek +} + +declare module 'date-fns/startOfISOWeekYear/index' { + import { startOfISOWeekYear } from 'date-fns' + export default startOfISOWeekYear +} + +declare module 'date-fns/startOfMinute/index' { + import { startOfMinute } from 'date-fns' + export default startOfMinute +} + +declare module 'date-fns/startOfMonth/index' { + import { startOfMonth } from 'date-fns' + export default startOfMonth +} + +declare module 'date-fns/startOfQuarter/index' { + import { startOfQuarter } from 'date-fns' + export default startOfQuarter +} + +declare module 'date-fns/startOfSecond/index' { + import { startOfSecond } from 'date-fns' + export default startOfSecond +} + +declare module 'date-fns/startOfToday/index' { + import { startOfToday } from 'date-fns' + export default startOfToday +} + +declare module 'date-fns/startOfTomorrow/index' { + import { startOfTomorrow } from 'date-fns' + export default startOfTomorrow +} + +declare module 'date-fns/startOfWeek/index' { + import { startOfWeek } from 'date-fns' + export default startOfWeek +} + +declare module 'date-fns/startOfWeekYear/index' { + import { startOfWeekYear } from 'date-fns' + export default startOfWeekYear +} + +declare module 'date-fns/startOfYear/index' { + import { startOfYear } from 'date-fns' + export default startOfYear +} + +declare module 'date-fns/startOfYesterday/index' { + import { startOfYesterday } from 'date-fns' + export default startOfYesterday +} + +declare module 'date-fns/sub/index' { + import { sub } from 'date-fns' + export default sub +} + +declare module 'date-fns/subBusinessDays/index' { + import { subBusinessDays } from 'date-fns' + export default subBusinessDays +} + +declare module 'date-fns/subDays/index' { + import { subDays } from 'date-fns' + export default subDays +} + +declare module 'date-fns/subHours/index' { + import { subHours } from 'date-fns' + export default subHours +} + +declare module 'date-fns/subISOWeekYears/index' { + import { subISOWeekYears } from 'date-fns' + export default subISOWeekYears +} + +declare module 'date-fns/subMilliseconds/index' { + import { subMilliseconds } from 'date-fns' + export default subMilliseconds +} + +declare module 'date-fns/subMinutes/index' { + import { subMinutes } from 'date-fns' + export default subMinutes +} + +declare module 'date-fns/subMonths/index' { + import { subMonths } from 'date-fns' + export default subMonths +} + +declare module 'date-fns/subQuarters/index' { + import { subQuarters } from 'date-fns' + export default subQuarters +} + +declare module 'date-fns/subSeconds/index' { + import { subSeconds } from 'date-fns' + export default subSeconds +} + +declare module 'date-fns/subWeeks/index' { + import { subWeeks } from 'date-fns' + export default subWeeks +} + +declare module 'date-fns/subYears/index' { + import { subYears } from 'date-fns' + export default subYears +} + +declare module 'date-fns/toDate/index' { + import { toDate } from 'date-fns' + export default toDate +} + +declare module 'date-fns/weeksToDays/index' { + import { weeksToDays } from 'date-fns' + export default weeksToDays +} + +declare module 'date-fns/yearsToMonths/index' { + import { yearsToMonths } from 'date-fns' + export default yearsToMonths +} + +declare module 'date-fns/yearsToQuarters/index' { + import { yearsToQuarters } from 'date-fns' + export default yearsToQuarters +} + +declare module 'date-fns/add/index.js' { + import { add } from 'date-fns' + export default add +} + +declare module 'date-fns/addBusinessDays/index.js' { + import { addBusinessDays } from 'date-fns' + export default addBusinessDays +} + +declare module 'date-fns/addDays/index.js' { + import { addDays } from 'date-fns' + export default addDays +} + +declare module 'date-fns/addHours/index.js' { + import { addHours } from 'date-fns' + export default addHours +} + +declare module 'date-fns/addISOWeekYears/index.js' { + import { addISOWeekYears } from 'date-fns' + export default addISOWeekYears +} + +declare module 'date-fns/addMilliseconds/index.js' { + import { addMilliseconds } from 'date-fns' + export default addMilliseconds +} + +declare module 'date-fns/addMinutes/index.js' { + import { addMinutes } from 'date-fns' + export default addMinutes +} + +declare module 'date-fns/addMonths/index.js' { + import { addMonths } from 'date-fns' + export default addMonths +} + +declare module 'date-fns/addQuarters/index.js' { + import { addQuarters } from 'date-fns' + export default addQuarters +} + +declare module 'date-fns/addSeconds/index.js' { + import { addSeconds } from 'date-fns' + export default addSeconds +} + +declare module 'date-fns/addWeeks/index.js' { + import { addWeeks } from 'date-fns' + export default addWeeks +} + +declare module 'date-fns/addYears/index.js' { + import { addYears } from 'date-fns' + export default addYears +} + +declare module 'date-fns/areIntervalsOverlapping/index.js' { + import { areIntervalsOverlapping } from 'date-fns' + export default areIntervalsOverlapping +} + +declare module 'date-fns/clamp/index.js' { + import { clamp } from 'date-fns' + export default clamp +} + +declare module 'date-fns/closestIndexTo/index.js' { + import { closestIndexTo } from 'date-fns' + export default closestIndexTo +} + +declare module 'date-fns/closestTo/index.js' { + import { closestTo } from 'date-fns' + export default closestTo +} + +declare module 'date-fns/compareAsc/index.js' { + import { compareAsc } from 'date-fns' + export default compareAsc +} + +declare module 'date-fns/compareDesc/index.js' { + import { compareDesc } from 'date-fns' + export default compareDesc +} + +declare module 'date-fns/daysToWeeks/index.js' { + import { daysToWeeks } from 'date-fns' + export default daysToWeeks +} + +declare module 'date-fns/differenceInBusinessDays/index.js' { + import { differenceInBusinessDays } from 'date-fns' + export default differenceInBusinessDays +} + +declare module 'date-fns/differenceInCalendarDays/index.js' { + import { differenceInCalendarDays } from 'date-fns' + export default differenceInCalendarDays +} + +declare module 'date-fns/differenceInCalendarISOWeeks/index.js' { + import { differenceInCalendarISOWeeks } from 'date-fns' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/differenceInCalendarISOWeekYears/index.js' { + import { differenceInCalendarISOWeekYears } from 'date-fns' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/differenceInCalendarMonths/index.js' { + import { differenceInCalendarMonths } from 'date-fns' + export default differenceInCalendarMonths +} + +declare module 'date-fns/differenceInCalendarQuarters/index.js' { + import { differenceInCalendarQuarters } from 'date-fns' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/differenceInCalendarWeeks/index.js' { + import { differenceInCalendarWeeks } from 'date-fns' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/differenceInCalendarYears/index.js' { + import { differenceInCalendarYears } from 'date-fns' + export default differenceInCalendarYears +} + +declare module 'date-fns/differenceInDays/index.js' { + import { differenceInDays } from 'date-fns' + export default differenceInDays +} + +declare module 'date-fns/differenceInHours/index.js' { + import { differenceInHours } from 'date-fns' + export default differenceInHours +} + +declare module 'date-fns/differenceInISOWeekYears/index.js' { + import { differenceInISOWeekYears } from 'date-fns' + export default differenceInISOWeekYears +} + +declare module 'date-fns/differenceInMilliseconds/index.js' { + import { differenceInMilliseconds } from 'date-fns' + export default differenceInMilliseconds +} + +declare module 'date-fns/differenceInMinutes/index.js' { + import { differenceInMinutes } from 'date-fns' + export default differenceInMinutes +} + +declare module 'date-fns/differenceInMonths/index.js' { + import { differenceInMonths } from 'date-fns' + export default differenceInMonths +} + +declare module 'date-fns/differenceInQuarters/index.js' { + import { differenceInQuarters } from 'date-fns' + export default differenceInQuarters +} + +declare module 'date-fns/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns' + export default differenceInSeconds +} + +declare module 'date-fns/differenceInWeeks/index.js' { + import { differenceInWeeks } from 'date-fns' + export default differenceInWeeks +} + +declare module 'date-fns/differenceInYears/index.js' { + import { differenceInYears } from 'date-fns' + export default differenceInYears +} + +declare module 'date-fns/eachDayOfInterval/index.js' { + import { eachDayOfInterval } from 'date-fns' + export default eachDayOfInterval +} + +declare module 'date-fns/eachHourOfInterval/index.js' { + import { eachHourOfInterval } from 'date-fns' + export default eachHourOfInterval +} + +declare module 'date-fns/eachMinuteOfInterval/index.js' { + import { eachMinuteOfInterval } from 'date-fns' + export default eachMinuteOfInterval +} + +declare module 'date-fns/eachMonthOfInterval/index.js' { + import { eachMonthOfInterval } from 'date-fns' + export default eachMonthOfInterval +} + +declare module 'date-fns/eachQuarterOfInterval/index.js' { + import { eachQuarterOfInterval } from 'date-fns' + export default eachQuarterOfInterval +} + +declare module 'date-fns/eachWeekendOfInterval/index.js' { + import { eachWeekendOfInterval } from 'date-fns' + export default eachWeekendOfInterval +} + +declare module 'date-fns/eachWeekendOfMonth/index.js' { + import { eachWeekendOfMonth } from 'date-fns' + export default eachWeekendOfMonth +} + +declare module 'date-fns/eachWeekendOfYear/index.js' { + import { eachWeekendOfYear } from 'date-fns' + export default eachWeekendOfYear +} + +declare module 'date-fns/eachWeekOfInterval/index.js' { + import { eachWeekOfInterval } from 'date-fns' + export default eachWeekOfInterval +} + +declare module 'date-fns/eachYearOfInterval/index.js' { + import { eachYearOfInterval } from 'date-fns' + export default eachYearOfInterval +} + +declare module 'date-fns/endOfDay/index.js' { + import { endOfDay } from 'date-fns' + export default endOfDay +} + +declare module 'date-fns/endOfDecade/index.js' { + import { endOfDecade } from 'date-fns' + export default endOfDecade +} + +declare module 'date-fns/endOfHour/index.js' { + import { endOfHour } from 'date-fns' + export default endOfHour +} + +declare module 'date-fns/endOfISOWeek/index.js' { + import { endOfISOWeek } from 'date-fns' + export default endOfISOWeek +} + +declare module 'date-fns/endOfISOWeekYear/index.js' { + import { endOfISOWeekYear } from 'date-fns' + export default endOfISOWeekYear +} + +declare module 'date-fns/endOfMinute/index.js' { + import { endOfMinute } from 'date-fns' + export default endOfMinute +} + +declare module 'date-fns/endOfMonth/index.js' { + import { endOfMonth } from 'date-fns' + export default endOfMonth +} + +declare module 'date-fns/endOfQuarter/index.js' { + import { endOfQuarter } from 'date-fns' + export default endOfQuarter +} + +declare module 'date-fns/endOfSecond/index.js' { + import { endOfSecond } from 'date-fns' + export default endOfSecond +} + +declare module 'date-fns/endOfToday/index.js' { + import { endOfToday } from 'date-fns' + export default endOfToday +} + +declare module 'date-fns/endOfTomorrow/index.js' { + import { endOfTomorrow } from 'date-fns' + export default endOfTomorrow +} + +declare module 'date-fns/endOfWeek/index.js' { + import { endOfWeek } from 'date-fns' + export default endOfWeek +} + +declare module 'date-fns/endOfYear/index.js' { + import { endOfYear } from 'date-fns' + export default endOfYear +} + +declare module 'date-fns/endOfYesterday/index.js' { + import { endOfYesterday } from 'date-fns' + export default endOfYesterday +} + +declare module 'date-fns/format/index.js' { + import { format } from 'date-fns' + export default format +} + +declare module 'date-fns/formatDistance/index.js' { + import { formatDistance } from 'date-fns' + export default formatDistance +} + +declare module 'date-fns/formatDistanceStrict/index.js' { + import { formatDistanceStrict } from 'date-fns' + export default formatDistanceStrict +} + +declare module 'date-fns/formatDistanceToNow/index.js' { + import { formatDistanceToNow } from 'date-fns' + export default formatDistanceToNow +} + +declare module 'date-fns/formatDistanceToNowStrict/index.js' { + import { formatDistanceToNowStrict } from 'date-fns' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/formatDuration/index.js' { + import { formatDuration } from 'date-fns' + export default formatDuration +} + +declare module 'date-fns/formatISO/index.js' { + import { formatISO } from 'date-fns' + export default formatISO +} + +declare module 'date-fns/formatISO9075/index.js' { + import { formatISO9075 } from 'date-fns' + export default formatISO9075 +} + +declare module 'date-fns/formatISODuration/index.js' { + import { formatISODuration } from 'date-fns' + export default formatISODuration +} + +declare module 'date-fns/formatRelative/index.js' { + import { formatRelative } from 'date-fns' + export default formatRelative +} + +declare module 'date-fns/formatRFC3339/index.js' { + import { formatRFC3339 } from 'date-fns' + export default formatRFC3339 +} + +declare module 'date-fns/formatRFC7231/index.js' { + import { formatRFC7231 } from 'date-fns' + export default formatRFC7231 +} + +declare module 'date-fns/fromUnixTime/index.js' { + import { fromUnixTime } from 'date-fns' + export default fromUnixTime +} + +declare module 'date-fns/getDate/index.js' { + import { getDate } from 'date-fns' + export default getDate +} + +declare module 'date-fns/getDay/index.js' { + import { getDay } from 'date-fns' + export default getDay +} + +declare module 'date-fns/getDayOfYear/index.js' { + import { getDayOfYear } from 'date-fns' + export default getDayOfYear +} + +declare module 'date-fns/getDaysInMonth/index.js' { + import { getDaysInMonth } from 'date-fns' + export default getDaysInMonth +} + +declare module 'date-fns/getDaysInYear/index.js' { + import { getDaysInYear } from 'date-fns' + export default getDaysInYear +} + +declare module 'date-fns/getDecade/index.js' { + import { getDecade } from 'date-fns' + export default getDecade +} + +declare module 'date-fns/getDefaultOptions/index.js' { + import { getDefaultOptions } from 'date-fns' + export default getDefaultOptions +} + +declare module 'date-fns/getHours/index.js' { + import { getHours } from 'date-fns' + export default getHours +} + +declare module 'date-fns/getISODay/index.js' { + import { getISODay } from 'date-fns' + export default getISODay +} + +declare module 'date-fns/getISOWeek/index.js' { + import { getISOWeek } from 'date-fns' + export default getISOWeek +} + +declare module 'date-fns/getISOWeeksInYear/index.js' { + import { getISOWeeksInYear } from 'date-fns' + export default getISOWeeksInYear +} + +declare module 'date-fns/getISOWeekYear/index.js' { + import { getISOWeekYear } from 'date-fns' + export default getISOWeekYear +} + +declare module 'date-fns/getMilliseconds/index.js' { + import { getMilliseconds } from 'date-fns' + export default getMilliseconds +} + +declare module 'date-fns/getMinutes/index.js' { + import { getMinutes } from 'date-fns' + export default getMinutes +} + +declare module 'date-fns/getMonth/index.js' { + import { getMonth } from 'date-fns' + export default getMonth +} + +declare module 'date-fns/getOverlappingDaysInIntervals/index.js' { + import { getOverlappingDaysInIntervals } from 'date-fns' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/getQuarter/index.js' { + import { getQuarter } from 'date-fns' + export default getQuarter +} + +declare module 'date-fns/getSeconds/index.js' { + import { getSeconds } from 'date-fns' + export default getSeconds +} + +declare module 'date-fns/getTime/index.js' { + import { getTime } from 'date-fns' + export default getTime +} + +declare module 'date-fns/getUnixTime/index.js' { + import { getUnixTime } from 'date-fns' + export default getUnixTime +} + +declare module 'date-fns/getWeek/index.js' { + import { getWeek } from 'date-fns' + export default getWeek +} + +declare module 'date-fns/getWeekOfMonth/index.js' { + import { getWeekOfMonth } from 'date-fns' + export default getWeekOfMonth +} + +declare module 'date-fns/getWeeksInMonth/index.js' { + import { getWeeksInMonth } from 'date-fns' + export default getWeeksInMonth +} + +declare module 'date-fns/getWeekYear/index.js' { + import { getWeekYear } from 'date-fns' + export default getWeekYear +} + +declare module 'date-fns/getYear/index.js' { + import { getYear } from 'date-fns' + export default getYear +} + +declare module 'date-fns/hoursToMilliseconds/index.js' { + import { hoursToMilliseconds } from 'date-fns' + export default hoursToMilliseconds +} + +declare module 'date-fns/hoursToMinutes/index.js' { + import { hoursToMinutes } from 'date-fns' + export default hoursToMinutes +} + +declare module 'date-fns/hoursToSeconds/index.js' { + import { hoursToSeconds } from 'date-fns' + export default hoursToSeconds +} + +declare module 'date-fns/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns' + export default intervalToDuration +} + +declare module 'date-fns/intlFormat/index.js' { + import { intlFormat } from 'date-fns' + export default intlFormat +} + +declare module 'date-fns/intlFormatDistance/index.js' { + import { intlFormatDistance } from 'date-fns' + export default intlFormatDistance +} + +declare module 'date-fns/isAfter/index.js' { + import { isAfter } from 'date-fns' + export default isAfter +} + +declare module 'date-fns/isBefore/index.js' { + import { isBefore } from 'date-fns' + export default isBefore +} + +declare module 'date-fns/isDate/index.js' { + import { isDate } from 'date-fns' + export default isDate +} + +declare module 'date-fns/isEqual/index.js' { + import { isEqual } from 'date-fns' + export default isEqual +} + +declare module 'date-fns/isExists/index.js' { + import { isExists } from 'date-fns' + export default isExists +} + +declare module 'date-fns/isFirstDayOfMonth/index.js' { + import { isFirstDayOfMonth } from 'date-fns' + export default isFirstDayOfMonth +} + +declare module 'date-fns/isFriday/index.js' { + import { isFriday } from 'date-fns' + export default isFriday +} + +declare module 'date-fns/isFuture/index.js' { + import { isFuture } from 'date-fns' + export default isFuture +} + +declare module 'date-fns/isLastDayOfMonth/index.js' { + import { isLastDayOfMonth } from 'date-fns' + export default isLastDayOfMonth +} + +declare module 'date-fns/isLeapYear/index.js' { + import { isLeapYear } from 'date-fns' + export default isLeapYear +} + +declare module 'date-fns/isMatch/index.js' { + import { isMatch } from 'date-fns' + export default isMatch +} + +declare module 'date-fns/isMonday/index.js' { + import { isMonday } from 'date-fns' + export default isMonday +} + +declare module 'date-fns/isPast/index.js' { + import { isPast } from 'date-fns' + export default isPast +} + +declare module 'date-fns/isSameDay/index.js' { + import { isSameDay } from 'date-fns' + export default isSameDay +} + +declare module 'date-fns/isSameHour/index.js' { + import { isSameHour } from 'date-fns' + export default isSameHour +} + +declare module 'date-fns/isSameISOWeek/index.js' { + import { isSameISOWeek } from 'date-fns' + export default isSameISOWeek +} + +declare module 'date-fns/isSameISOWeekYear/index.js' { + import { isSameISOWeekYear } from 'date-fns' + export default isSameISOWeekYear +} + +declare module 'date-fns/isSameMinute/index.js' { + import { isSameMinute } from 'date-fns' + export default isSameMinute +} + +declare module 'date-fns/isSameMonth/index.js' { + import { isSameMonth } from 'date-fns' + export default isSameMonth +} + +declare module 'date-fns/isSameQuarter/index.js' { + import { isSameQuarter } from 'date-fns' + export default isSameQuarter +} + +declare module 'date-fns/isSameSecond/index.js' { + import { isSameSecond } from 'date-fns' + export default isSameSecond +} + +declare module 'date-fns/isSameWeek/index.js' { + import { isSameWeek } from 'date-fns' + export default isSameWeek +} + +declare module 'date-fns/isSameYear/index.js' { + import { isSameYear } from 'date-fns' + export default isSameYear +} + +declare module 'date-fns/isSaturday/index.js' { + import { isSaturday } from 'date-fns' + export default isSaturday +} + +declare module 'date-fns/isSunday/index.js' { + import { isSunday } from 'date-fns' + export default isSunday +} + +declare module 'date-fns/isThisHour/index.js' { + import { isThisHour } from 'date-fns' + export default isThisHour +} + +declare module 'date-fns/isThisISOWeek/index.js' { + import { isThisISOWeek } from 'date-fns' + export default isThisISOWeek +} + +declare module 'date-fns/isThisMinute/index.js' { + import { isThisMinute } from 'date-fns' + export default isThisMinute +} + +declare module 'date-fns/isThisMonth/index.js' { + import { isThisMonth } from 'date-fns' + export default isThisMonth +} + +declare module 'date-fns/isThisQuarter/index.js' { + import { isThisQuarter } from 'date-fns' + export default isThisQuarter +} + +declare module 'date-fns/isThisSecond/index.js' { + import { isThisSecond } from 'date-fns' + export default isThisSecond +} + +declare module 'date-fns/isThisWeek/index.js' { + import { isThisWeek } from 'date-fns' + export default isThisWeek +} + +declare module 'date-fns/isThisYear/index.js' { + import { isThisYear } from 'date-fns' + export default isThisYear +} + +declare module 'date-fns/isThursday/index.js' { + import { isThursday } from 'date-fns' + export default isThursday +} + +declare module 'date-fns/isToday/index.js' { + import { isToday } from 'date-fns' + export default isToday +} + +declare module 'date-fns/isTomorrow/index.js' { + import { isTomorrow } from 'date-fns' + export default isTomorrow +} + +declare module 'date-fns/isTuesday/index.js' { + import { isTuesday } from 'date-fns' + export default isTuesday +} + +declare module 'date-fns/isValid/index.js' { + import { isValid } from 'date-fns' + export default isValid +} + +declare module 'date-fns/isWednesday/index.js' { + import { isWednesday } from 'date-fns' + export default isWednesday +} + +declare module 'date-fns/isWeekend/index.js' { + import { isWeekend } from 'date-fns' + export default isWeekend +} + +declare module 'date-fns/isWithinInterval/index.js' { + import { isWithinInterval } from 'date-fns' + export default isWithinInterval +} + +declare module 'date-fns/isYesterday/index.js' { + import { isYesterday } from 'date-fns' + export default isYesterday +} + +declare module 'date-fns/lastDayOfDecade/index.js' { + import { lastDayOfDecade } from 'date-fns' + export default lastDayOfDecade +} + +declare module 'date-fns/lastDayOfISOWeek/index.js' { + import { lastDayOfISOWeek } from 'date-fns' + export default lastDayOfISOWeek +} + +declare module 'date-fns/lastDayOfISOWeekYear/index.js' { + import { lastDayOfISOWeekYear } from 'date-fns' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/lastDayOfMonth/index.js' { + import { lastDayOfMonth } from 'date-fns' + export default lastDayOfMonth +} + +declare module 'date-fns/lastDayOfQuarter/index.js' { + import { lastDayOfQuarter } from 'date-fns' + export default lastDayOfQuarter +} + +declare module 'date-fns/lastDayOfWeek/index.js' { + import { lastDayOfWeek } from 'date-fns' + export default lastDayOfWeek +} + +declare module 'date-fns/lastDayOfYear/index.js' { + import { lastDayOfYear } from 'date-fns' + export default lastDayOfYear +} + +declare module 'date-fns/lightFormat/index.js' { + import { lightFormat } from 'date-fns' + export default lightFormat +} + +declare module 'date-fns/max/index.js' { + import { max } from 'date-fns' + export default max +} + +declare module 'date-fns/milliseconds/index.js' { + import { milliseconds } from 'date-fns' + export default milliseconds +} + +declare module 'date-fns/millisecondsToHours/index.js' { + import { millisecondsToHours } from 'date-fns' + export default millisecondsToHours +} + +declare module 'date-fns/millisecondsToMinutes/index.js' { + import { millisecondsToMinutes } from 'date-fns' + export default millisecondsToMinutes +} + +declare module 'date-fns/millisecondsToSeconds/index.js' { + import { millisecondsToSeconds } from 'date-fns' + export default millisecondsToSeconds +} + +declare module 'date-fns/min/index.js' { + import { min } from 'date-fns' + export default min +} + +declare module 'date-fns/minutesToHours/index.js' { + import { minutesToHours } from 'date-fns' + export default minutesToHours +} + +declare module 'date-fns/minutesToMilliseconds/index.js' { + import { minutesToMilliseconds } from 'date-fns' + export default minutesToMilliseconds +} + +declare module 'date-fns/minutesToSeconds/index.js' { + import { minutesToSeconds } from 'date-fns' + export default minutesToSeconds +} + +declare module 'date-fns/monthsToQuarters/index.js' { + import { monthsToQuarters } from 'date-fns' + export default monthsToQuarters +} + +declare module 'date-fns/monthsToYears/index.js' { + import { monthsToYears } from 'date-fns' + export default monthsToYears +} + +declare module 'date-fns/nextDay/index.js' { + import { nextDay } from 'date-fns' + export default nextDay +} + +declare module 'date-fns/nextFriday/index.js' { + import { nextFriday } from 'date-fns' + export default nextFriday +} + +declare module 'date-fns/nextMonday/index.js' { + import { nextMonday } from 'date-fns' + export default nextMonday +} + +declare module 'date-fns/nextSaturday/index.js' { + import { nextSaturday } from 'date-fns' + export default nextSaturday +} + +declare module 'date-fns/nextSunday/index.js' { + import { nextSunday } from 'date-fns' + export default nextSunday +} + +declare module 'date-fns/nextThursday/index.js' { + import { nextThursday } from 'date-fns' + export default nextThursday +} + +declare module 'date-fns/nextTuesday/index.js' { + import { nextTuesday } from 'date-fns' + export default nextTuesday +} + +declare module 'date-fns/nextWednesday/index.js' { + import { nextWednesday } from 'date-fns' + export default nextWednesday +} + +declare module 'date-fns/parse/index.js' { + import { parse } from 'date-fns' + export default parse +} + +declare module 'date-fns/parseISO/index.js' { + import { parseISO } from 'date-fns' + export default parseISO +} + +declare module 'date-fns/parseJSON/index.js' { + import { parseJSON } from 'date-fns' + export default parseJSON +} + +declare module 'date-fns/previousDay/index.js' { + import { previousDay } from 'date-fns' + export default previousDay +} + +declare module 'date-fns/previousFriday/index.js' { + import { previousFriday } from 'date-fns' + export default previousFriday +} + +declare module 'date-fns/previousMonday/index.js' { + import { previousMonday } from 'date-fns' + export default previousMonday +} + +declare module 'date-fns/previousSaturday/index.js' { + import { previousSaturday } from 'date-fns' + export default previousSaturday +} + +declare module 'date-fns/previousSunday/index.js' { + import { previousSunday } from 'date-fns' + export default previousSunday +} + +declare module 'date-fns/previousThursday/index.js' { + import { previousThursday } from 'date-fns' + export default previousThursday +} + +declare module 'date-fns/previousTuesday/index.js' { + import { previousTuesday } from 'date-fns' + export default previousTuesday +} + +declare module 'date-fns/previousWednesday/index.js' { + import { previousWednesday } from 'date-fns' + export default previousWednesday +} + +declare module 'date-fns/quartersToMonths/index.js' { + import { quartersToMonths } from 'date-fns' + export default quartersToMonths +} + +declare module 'date-fns/quartersToYears/index.js' { + import { quartersToYears } from 'date-fns' + export default quartersToYears +} + +declare module 'date-fns/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns' + export default roundToNearestMinutes +} + +declare module 'date-fns/secondsToHours/index.js' { + import { secondsToHours } from 'date-fns' + export default secondsToHours +} + +declare module 'date-fns/secondsToMilliseconds/index.js' { + import { secondsToMilliseconds } from 'date-fns' + export default secondsToMilliseconds +} + +declare module 'date-fns/secondsToMinutes/index.js' { + import { secondsToMinutes } from 'date-fns' + export default secondsToMinutes +} + +declare module 'date-fns/set/index.js' { + import { set } from 'date-fns' + export default set +} + +declare module 'date-fns/setDate/index.js' { + import { setDate } from 'date-fns' + export default setDate +} + +declare module 'date-fns/setDay/index.js' { + import { setDay } from 'date-fns' + export default setDay +} + +declare module 'date-fns/setDayOfYear/index.js' { + import { setDayOfYear } from 'date-fns' + export default setDayOfYear +} + +declare module 'date-fns/setDefaultOptions/index.js' { + import { setDefaultOptions } from 'date-fns' + export default setDefaultOptions +} + +declare module 'date-fns/setHours/index.js' { + import { setHours } from 'date-fns' + export default setHours +} + +declare module 'date-fns/setISODay/index.js' { + import { setISODay } from 'date-fns' + export default setISODay +} + +declare module 'date-fns/setISOWeek/index.js' { + import { setISOWeek } from 'date-fns' + export default setISOWeek +} + +declare module 'date-fns/setISOWeekYear/index.js' { + import { setISOWeekYear } from 'date-fns' + export default setISOWeekYear +} + +declare module 'date-fns/setMilliseconds/index.js' { + import { setMilliseconds } from 'date-fns' + export default setMilliseconds +} + +declare module 'date-fns/setMinutes/index.js' { + import { setMinutes } from 'date-fns' + export default setMinutes +} + +declare module 'date-fns/setMonth/index.js' { + import { setMonth } from 'date-fns' + export default setMonth +} + +declare module 'date-fns/setQuarter/index.js' { + import { setQuarter } from 'date-fns' + export default setQuarter +} + +declare module 'date-fns/setSeconds/index.js' { + import { setSeconds } from 'date-fns' + export default setSeconds +} + +declare module 'date-fns/setWeek/index.js' { + import { setWeek } from 'date-fns' + export default setWeek +} + +declare module 'date-fns/setWeekYear/index.js' { + import { setWeekYear } from 'date-fns' + export default setWeekYear +} + +declare module 'date-fns/setYear/index.js' { + import { setYear } from 'date-fns' + export default setYear +} + +declare module 'date-fns/startOfDay/index.js' { + import { startOfDay } from 'date-fns' + export default startOfDay +} + +declare module 'date-fns/startOfDecade/index.js' { + import { startOfDecade } from 'date-fns' + export default startOfDecade +} + +declare module 'date-fns/startOfHour/index.js' { + import { startOfHour } from 'date-fns' + export default startOfHour +} + +declare module 'date-fns/startOfISOWeek/index.js' { + import { startOfISOWeek } from 'date-fns' + export default startOfISOWeek +} + +declare module 'date-fns/startOfISOWeekYear/index.js' { + import { startOfISOWeekYear } from 'date-fns' + export default startOfISOWeekYear +} + +declare module 'date-fns/startOfMinute/index.js' { + import { startOfMinute } from 'date-fns' + export default startOfMinute +} + +declare module 'date-fns/startOfMonth/index.js' { + import { startOfMonth } from 'date-fns' + export default startOfMonth +} + +declare module 'date-fns/startOfQuarter/index.js' { + import { startOfQuarter } from 'date-fns' + export default startOfQuarter +} + +declare module 'date-fns/startOfSecond/index.js' { + import { startOfSecond } from 'date-fns' + export default startOfSecond +} + +declare module 'date-fns/startOfToday/index.js' { + import { startOfToday } from 'date-fns' + export default startOfToday +} + +declare module 'date-fns/startOfTomorrow/index.js' { + import { startOfTomorrow } from 'date-fns' + export default startOfTomorrow +} + +declare module 'date-fns/startOfWeek/index.js' { + import { startOfWeek } from 'date-fns' + export default startOfWeek +} + +declare module 'date-fns/startOfWeekYear/index.js' { + import { startOfWeekYear } from 'date-fns' + export default startOfWeekYear +} + +declare module 'date-fns/startOfYear/index.js' { + import { startOfYear } from 'date-fns' + export default startOfYear +} + +declare module 'date-fns/startOfYesterday/index.js' { + import { startOfYesterday } from 'date-fns' + export default startOfYesterday +} + +declare module 'date-fns/sub/index.js' { + import { sub } from 'date-fns' + export default sub +} + +declare module 'date-fns/subBusinessDays/index.js' { + import { subBusinessDays } from 'date-fns' + export default subBusinessDays +} + +declare module 'date-fns/subDays/index.js' { + import { subDays } from 'date-fns' + export default subDays +} + +declare module 'date-fns/subHours/index.js' { + import { subHours } from 'date-fns' + export default subHours +} + +declare module 'date-fns/subISOWeekYears/index.js' { + import { subISOWeekYears } from 'date-fns' + export default subISOWeekYears +} + +declare module 'date-fns/subMilliseconds/index.js' { + import { subMilliseconds } from 'date-fns' + export default subMilliseconds +} + +declare module 'date-fns/subMinutes/index.js' { + import { subMinutes } from 'date-fns' + export default subMinutes +} + +declare module 'date-fns/subMonths/index.js' { + import { subMonths } from 'date-fns' + export default subMonths +} + +declare module 'date-fns/subQuarters/index.js' { + import { subQuarters } from 'date-fns' + export default subQuarters +} + +declare module 'date-fns/subSeconds/index.js' { + import { subSeconds } from 'date-fns' + export default subSeconds +} + +declare module 'date-fns/subWeeks/index.js' { + import { subWeeks } from 'date-fns' + export default subWeeks +} + +declare module 'date-fns/subYears/index.js' { + import { subYears } from 'date-fns' + export default subYears +} + +declare module 'date-fns/toDate/index.js' { + import { toDate } from 'date-fns' + export default toDate +} + +declare module 'date-fns/weeksToDays/index.js' { + import { weeksToDays } from 'date-fns' + export default weeksToDays +} + +declare module 'date-fns/yearsToMonths/index.js' { + import { yearsToMonths } from 'date-fns' + export default yearsToMonths +} + +declare module 'date-fns/yearsToQuarters/index.js' { + import { yearsToQuarters } from 'date-fns' + export default yearsToQuarters +} + +// FP Functions + +declare module 'date-fns/fp' { + const add: CurriedFn2 + namespace add {} + + const addBusinessDays: CurriedFn2 + namespace addBusinessDays {} + + const addDays: CurriedFn2 + namespace addDays {} + + const addHours: CurriedFn2 + namespace addHours {} + + const addISOWeekYears: CurriedFn2 + namespace addISOWeekYears {} + + const addMilliseconds: CurriedFn2 + namespace addMilliseconds {} + + const addMinutes: CurriedFn2 + namespace addMinutes {} + + const addMonths: CurriedFn2 + namespace addMonths {} + + const addQuarters: CurriedFn2 + namespace addQuarters {} + + const addSeconds: CurriedFn2 + namespace addSeconds {} + + const addWeeks: CurriedFn2 + namespace addWeeks {} + + const addYears: CurriedFn2 + namespace addYears {} + + const areIntervalsOverlapping: CurriedFn2 + namespace areIntervalsOverlapping {} + + const areIntervalsOverlappingWithOptions: CurriedFn3< + { + inclusive?: boolean + }, + Interval, + Interval, + boolean + > + namespace areIntervalsOverlappingWithOptions {} + + const clamp: CurriedFn2 + namespace clamp {} + + const closestIndexTo: CurriedFn2< + (Date | number)[], + Date | number, + number | undefined + > + namespace closestIndexTo {} + + const closestTo: CurriedFn2< + (Date | number)[], + Date | number, + Date | undefined + > + namespace closestTo {} + + const compareAsc: CurriedFn2 + namespace compareAsc {} + + const compareDesc: CurriedFn2 + namespace compareDesc {} + + const daysToWeeks: CurriedFn1 + namespace daysToWeeks {} + + const differenceInBusinessDays: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInBusinessDays {} + + const differenceInCalendarDays: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarDays {} + + const differenceInCalendarISOWeeks: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarISOWeeks {} + + const differenceInCalendarISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarISOWeekYears {} + + const differenceInCalendarMonths: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarMonths {} + + const differenceInCalendarQuarters: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarQuarters {} + + const differenceInCalendarWeeks: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarWeeks {} + + const differenceInCalendarWeeksWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + number + > + namespace differenceInCalendarWeeksWithOptions {} + + const differenceInCalendarYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarYears {} + + const differenceInDays: CurriedFn2 + namespace differenceInDays {} + + const differenceInHours: CurriedFn2 + namespace differenceInHours {} + + const differenceInHoursWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInHoursWithOptions {} + + const differenceInISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInISOWeekYears {} + + const differenceInMilliseconds: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInMilliseconds {} + + const differenceInMinutes: CurriedFn2 + namespace differenceInMinutes {} + + const differenceInMinutesWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInMinutesWithOptions {} + + const differenceInMonths: CurriedFn2 + namespace differenceInMonths {} + + const differenceInQuarters: CurriedFn2 + namespace differenceInQuarters {} + + const differenceInQuartersWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInQuartersWithOptions {} + + const differenceInSeconds: CurriedFn2 + namespace differenceInSeconds {} + + const differenceInSecondsWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInSecondsWithOptions {} + + const differenceInWeeks: CurriedFn2 + namespace differenceInWeeks {} + + const differenceInWeeksWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInWeeksWithOptions {} + + const differenceInYears: CurriedFn2 + namespace differenceInYears {} + + const eachDayOfInterval: CurriedFn1 + namespace eachDayOfInterval {} + + const eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachDayOfIntervalWithOptions {} + + const eachHourOfInterval: CurriedFn1 + namespace eachHourOfInterval {} + + const eachHourOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachHourOfIntervalWithOptions {} + + const eachMinuteOfInterval: CurriedFn1 + namespace eachMinuteOfInterval {} + + const eachMinuteOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachMinuteOfIntervalWithOptions {} + + const eachMonthOfInterval: CurriedFn1 + namespace eachMonthOfInterval {} + + const eachQuarterOfInterval: CurriedFn1 + namespace eachQuarterOfInterval {} + + const eachWeekendOfInterval: CurriedFn1 + namespace eachWeekendOfInterval {} + + const eachWeekendOfMonth: CurriedFn1 + namespace eachWeekendOfMonth {} + + const eachWeekendOfYear: CurriedFn1 + namespace eachWeekendOfYear {} + + const eachWeekOfInterval: CurriedFn1 + namespace eachWeekOfInterval {} + + const eachWeekOfIntervalWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Interval, + Date[] + > + namespace eachWeekOfIntervalWithOptions {} + + const eachYearOfInterval: CurriedFn1 + namespace eachYearOfInterval {} + + const endOfDay: CurriedFn1 + namespace endOfDay {} + + const endOfDecade: CurriedFn1 + namespace endOfDecade {} + + const endOfDecadeWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + Date | number, + Date + > + namespace endOfDecadeWithOptions {} + + const endOfHour: CurriedFn1 + namespace endOfHour {} + + const endOfISOWeek: CurriedFn1 + namespace endOfISOWeek {} + + const endOfISOWeekYear: CurriedFn1 + namespace endOfISOWeekYear {} + + const endOfMinute: CurriedFn1 + namespace endOfMinute {} + + const endOfMonth: CurriedFn1 + namespace endOfMonth {} + + const endOfQuarter: CurriedFn1 + namespace endOfQuarter {} + + const endOfSecond: CurriedFn1 + namespace endOfSecond {} + + const endOfWeek: CurriedFn1 + namespace endOfWeek {} + + const endOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace endOfWeekWithOptions {} + + const endOfYear: CurriedFn1 + namespace endOfYear {} + + const format: CurriedFn2 + namespace format {} + + const formatDistance: CurriedFn2 + namespace formatDistance {} + + const formatDistanceStrict: CurriedFn2 + namespace formatDistanceStrict {} + + const formatDistanceStrictWithOptions: CurriedFn3< + { + locale?: Locale + roundingMethod?: 'floor' | 'ceil' | 'round' + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + addSuffix?: boolean + }, + Date | number, + Date | number, + string + > + namespace formatDistanceStrictWithOptions {} + + const formatDistanceWithOptions: CurriedFn3< + { + locale?: Locale + addSuffix?: boolean + includeSeconds?: boolean + }, + Date | number, + Date | number, + string + > + namespace formatDistanceWithOptions {} + + const formatDuration: CurriedFn1 + namespace formatDuration {} + + const formatDurationWithOptions: CurriedFn2< + { + locale?: Locale + delimiter?: string + zero?: boolean + format?: string[] + }, + Duration, + string + > + namespace formatDurationWithOptions {} + + const formatISO: CurriedFn1 + namespace formatISO {} + + const formatISO9075: CurriedFn1 + namespace formatISO9075 {} + + const formatISO9075WithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time' + format?: 'extended' | 'basic' + }, + Date | number, + string + > + namespace formatISO9075WithOptions {} + + const formatISODuration: CurriedFn1 + namespace formatISODuration {} + + const formatISOWithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time' + format?: 'extended' | 'basic' + }, + Date | number, + string + > + namespace formatISOWithOptions {} + + const formatRelative: CurriedFn2 + namespace formatRelative {} + + const formatRelativeWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + string + > + namespace formatRelativeWithOptions {} + + const formatRFC3339: CurriedFn1 + namespace formatRFC3339 {} + + const formatRFC3339WithOptions: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3 + }, + Date | number, + string + > + namespace formatRFC3339WithOptions {} + + const formatRFC7231: CurriedFn1 + namespace formatRFC7231 {} + + const formatWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: number + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + string, + Date | number, + string + > + namespace formatWithOptions {} + + const fromUnixTime: CurriedFn1 + namespace fromUnixTime {} + + const getDate: CurriedFn1 + namespace getDate {} + + const getDay: CurriedFn1 + namespace getDay {} + + const getDayOfYear: CurriedFn1 + namespace getDayOfYear {} + + const getDaysInMonth: CurriedFn1 + namespace getDaysInMonth {} + + const getDaysInYear: CurriedFn1 + namespace getDaysInYear {} + + const getDecade: CurriedFn1 + namespace getDecade {} + + const getHours: CurriedFn1 + namespace getHours {} + + const getISODay: CurriedFn1 + namespace getISODay {} + + const getISOWeek: CurriedFn1 + namespace getISOWeek {} + + const getISOWeeksInYear: CurriedFn1 + namespace getISOWeeksInYear {} + + const getISOWeekYear: CurriedFn1 + namespace getISOWeekYear {} + + const getMilliseconds: CurriedFn1 + namespace getMilliseconds {} + + const getMinutes: CurriedFn1 + namespace getMinutes {} + + const getMonth: CurriedFn1 + namespace getMonth {} + + const getOverlappingDaysInIntervals: CurriedFn2 + namespace getOverlappingDaysInIntervals {} + + const getQuarter: CurriedFn1 + namespace getQuarter {} + + const getSeconds: CurriedFn1 + namespace getSeconds {} + + const getTime: CurriedFn1 + namespace getTime {} + + const getUnixTime: CurriedFn1 + namespace getUnixTime {} + + const getWeek: CurriedFn1 + namespace getWeek {} + + const getWeekOfMonth: CurriedFn1 + namespace getWeekOfMonth {} + + const getWeekOfMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekOfMonthWithOptions {} + + const getWeeksInMonth: CurriedFn1 + namespace getWeeksInMonth {} + + const getWeeksInMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeeksInMonthWithOptions {} + + const getWeekWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekWithOptions {} + + const getWeekYear: CurriedFn1 + namespace getWeekYear {} + + const getWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekYearWithOptions {} + + const getYear: CurriedFn1 + namespace getYear {} + + const hoursToMilliseconds: CurriedFn1 + namespace hoursToMilliseconds {} + + const hoursToMinutes: CurriedFn1 + namespace hoursToMinutes {} + + const hoursToSeconds: CurriedFn1 + namespace hoursToSeconds {} + + const intervalToDuration: CurriedFn1 + namespace intervalToDuration {} + + const intlFormat: CurriedFn3< + { + locale?: string | string[] + }, + { + timeZone?: string + hour12?: boolean + formatMatcher?: 'basic' | 'best fit' + timeZoneName?: 'short' | 'long' + second?: 'numeric' | '2-digit' + minute?: 'numeric' | '2-digit' + hour?: 'numeric' | '2-digit' + day?: 'numeric' | '2-digit' + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' + year?: 'numeric' | '2-digit' + era?: 'narrow' | 'short' | 'long' + weekday?: 'narrow' | 'short' | 'long' + localeMatcher?: 'lookup' | 'best fit' + }, + Date | number, + string + > + namespace intlFormat {} + + const intlFormatDistance: CurriedFn2 + namespace intlFormatDistance {} + + const intlFormatDistanceWithOptions: CurriedFn3< + { + style?: string + numeric?: string + localeMatcher?: string + locale?: string | string[] + unit?: string + }, + Date | number, + Date | number, + string + > + namespace intlFormatDistanceWithOptions {} + + const isAfter: CurriedFn2 + namespace isAfter {} + + const isBefore: CurriedFn2 + namespace isBefore {} + + const isDate: CurriedFn1 + namespace isDate {} + + const isEqual: CurriedFn2 + namespace isEqual {} + + const isExists: CurriedFn3 + namespace isExists {} + + const isFirstDayOfMonth: CurriedFn1 + namespace isFirstDayOfMonth {} + + const isFriday: CurriedFn1 + namespace isFriday {} + + const isLastDayOfMonth: CurriedFn1 + namespace isLastDayOfMonth {} + + const isLeapYear: CurriedFn1 + namespace isLeapYear {} + + const isMatch: CurriedFn2 + namespace isMatch {} + + const isMatchWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + string, + string, + boolean + > + namespace isMatchWithOptions {} + + const isMonday: CurriedFn1 + namespace isMonday {} + + const isSameDay: CurriedFn2 + namespace isSameDay {} + + const isSameHour: CurriedFn2 + namespace isSameHour {} + + const isSameISOWeek: CurriedFn2 + namespace isSameISOWeek {} + + const isSameISOWeekYear: CurriedFn2 + namespace isSameISOWeekYear {} + + const isSameMinute: CurriedFn2 + namespace isSameMinute {} + + const isSameMonth: CurriedFn2 + namespace isSameMonth {} + + const isSameQuarter: CurriedFn2 + namespace isSameQuarter {} + + const isSameSecond: CurriedFn2 + namespace isSameSecond {} + + const isSameWeek: CurriedFn2 + namespace isSameWeek {} + + const isSameWeekWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + boolean + > + namespace isSameWeekWithOptions {} + + const isSameYear: CurriedFn2 + namespace isSameYear {} + + const isSaturday: CurriedFn1 + namespace isSaturday {} + + const isSunday: CurriedFn1 + namespace isSunday {} + + const isThursday: CurriedFn1 + namespace isThursday {} + + const isTuesday: CurriedFn1 + namespace isTuesday {} + + const isValid: CurriedFn1 + namespace isValid {} + + const isWednesday: CurriedFn1 + namespace isWednesday {} + + const isWeekend: CurriedFn1 + namespace isWeekend {} + + const isWithinInterval: CurriedFn2 + namespace isWithinInterval {} + + const lastDayOfDecade: CurriedFn1 + namespace lastDayOfDecade {} + + const lastDayOfISOWeek: CurriedFn1 + namespace lastDayOfISOWeek {} + + const lastDayOfISOWeekYear: CurriedFn1 + namespace lastDayOfISOWeekYear {} + + const lastDayOfMonth: CurriedFn1 + namespace lastDayOfMonth {} + + const lastDayOfQuarter: CurriedFn1 + namespace lastDayOfQuarter {} + + const lastDayOfQuarterWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + Date | number, + Date + > + namespace lastDayOfQuarterWithOptions {} + + const lastDayOfWeek: CurriedFn1 + namespace lastDayOfWeek {} + + const lastDayOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace lastDayOfWeekWithOptions {} + + const lastDayOfYear: CurriedFn1 + namespace lastDayOfYear {} + + const lightFormat: CurriedFn2 + namespace lightFormat {} + + const max: CurriedFn1<(Date | number)[], Date> + namespace max {} + + const milliseconds: CurriedFn1 + namespace milliseconds {} + + const millisecondsToHours: CurriedFn1 + namespace millisecondsToHours {} + + const millisecondsToMinutes: CurriedFn1 + namespace millisecondsToMinutes {} + + const millisecondsToSeconds: CurriedFn1 + namespace millisecondsToSeconds {} + + const min: CurriedFn1<(Date | number)[], Date> + namespace min {} + + const minutesToHours: CurriedFn1 + namespace minutesToHours {} + + const minutesToMilliseconds: CurriedFn1 + namespace minutesToMilliseconds {} + + const minutesToSeconds: CurriedFn1 + namespace minutesToSeconds {} + + const monthsToQuarters: CurriedFn1 + namespace monthsToQuarters {} + + const monthsToYears: CurriedFn1 + namespace monthsToYears {} + + const nextDay: CurriedFn2 + namespace nextDay {} + + const nextFriday: CurriedFn1 + namespace nextFriday {} + + const nextMonday: CurriedFn1 + namespace nextMonday {} + + const nextSaturday: CurriedFn1 + namespace nextSaturday {} + + const nextSunday: CurriedFn1 + namespace nextSunday {} + + const nextThursday: CurriedFn1 + namespace nextThursday {} + + const nextTuesday: CurriedFn1 + namespace nextTuesday {} + + const nextWednesday: CurriedFn1 + namespace nextWednesday {} + + const parse: CurriedFn3 + namespace parse {} + + const parseISO: CurriedFn1 + namespace parseISO {} + + const parseISOWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + string, + Date + > + namespace parseISOWithOptions {} + + const parseJSON: CurriedFn1 + namespace parseJSON {} + + const parseWithOptions: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + string, + string, + Date + > + namespace parseWithOptions {} + + const previousDay: CurriedFn2 + namespace previousDay {} + + const previousFriday: CurriedFn1 + namespace previousFriday {} + + const previousMonday: CurriedFn1 + namespace previousMonday {} + + const previousSaturday: CurriedFn1 + namespace previousSaturday {} + + const previousSunday: CurriedFn1 + namespace previousSunday {} + + const previousThursday: CurriedFn1 + namespace previousThursday {} + + const previousTuesday: CurriedFn1 + namespace previousTuesday {} + + const previousWednesday: CurriedFn1 + namespace previousWednesday {} + + const quartersToMonths: CurriedFn1 + namespace quartersToMonths {} + + const quartersToYears: CurriedFn1 + namespace quartersToYears {} + + const roundToNearestMinutes: CurriedFn1 + namespace roundToNearestMinutes {} + + const roundToNearestMinutesWithOptions: CurriedFn2< + { + roundingMethod?: string + nearestTo?: number + }, + Date | number, + Date + > + namespace roundToNearestMinutesWithOptions {} + + const secondsToHours: CurriedFn1 + namespace secondsToHours {} + + const secondsToMilliseconds: CurriedFn1 + namespace secondsToMilliseconds {} + + const secondsToMinutes: CurriedFn1 + namespace secondsToMinutes {} + + const set: CurriedFn2< + { + milliseconds?: number + seconds?: number + minutes?: number + hours?: number + date?: number + month?: number + year?: number + }, + Date | number, + Date + > + namespace set {} + + const setDate: CurriedFn2 + namespace setDate {} + + const setDay: CurriedFn2 + namespace setDay {} + + const setDayOfYear: CurriedFn2 + namespace setDayOfYear {} + + const setDayWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setDayWithOptions {} + + const setHours: CurriedFn2 + namespace setHours {} + + const setISODay: CurriedFn2 + namespace setISODay {} + + const setISOWeek: CurriedFn2 + namespace setISOWeek {} + + const setISOWeekYear: CurriedFn2 + namespace setISOWeekYear {} + + const setMilliseconds: CurriedFn2 + namespace setMilliseconds {} + + const setMinutes: CurriedFn2 + namespace setMinutes {} + + const setMonth: CurriedFn2 + namespace setMonth {} + + const setQuarter: CurriedFn2 + namespace setQuarter {} + + const setSeconds: CurriedFn2 + namespace setSeconds {} + + const setWeek: CurriedFn2 + namespace setWeek {} + + const setWeekWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setWeekWithOptions {} + + const setWeekYear: CurriedFn2 + namespace setWeekYear {} + + const setWeekYearWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setWeekYearWithOptions {} + + const setYear: CurriedFn2 + namespace setYear {} + + const startOfDay: CurriedFn1 + namespace startOfDay {} + + const startOfDecade: CurriedFn1 + namespace startOfDecade {} + + const startOfHour: CurriedFn1 + namespace startOfHour {} + + const startOfISOWeek: CurriedFn1 + namespace startOfISOWeek {} + + const startOfISOWeekYear: CurriedFn1 + namespace startOfISOWeekYear {} + + const startOfMinute: CurriedFn1 + namespace startOfMinute {} + + const startOfMonth: CurriedFn1 + namespace startOfMonth {} + + const startOfQuarter: CurriedFn1 + namespace startOfQuarter {} + + const startOfSecond: CurriedFn1 + namespace startOfSecond {} + + const startOfWeek: CurriedFn1 + namespace startOfWeek {} + + const startOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace startOfWeekWithOptions {} + + const startOfWeekYear: CurriedFn1 + namespace startOfWeekYear {} + + const startOfWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace startOfWeekYearWithOptions {} + + const startOfYear: CurriedFn1 + namespace startOfYear {} + + const sub: CurriedFn2 + namespace sub {} + + const subBusinessDays: CurriedFn2 + namespace subBusinessDays {} + + const subDays: CurriedFn2 + namespace subDays {} + + const subHours: CurriedFn2 + namespace subHours {} + + const subISOWeekYears: CurriedFn2 + namespace subISOWeekYears {} + + const subMilliseconds: CurriedFn2 + namespace subMilliseconds {} + + const subMinutes: CurriedFn2 + namespace subMinutes {} + + const subMonths: CurriedFn2 + namespace subMonths {} + + const subQuarters: CurriedFn2 + namespace subQuarters {} + + const subSeconds: CurriedFn2 + namespace subSeconds {} + + const subWeeks: CurriedFn2 + namespace subWeeks {} + + const subYears: CurriedFn2 + namespace subYears {} + + const toDate: CurriedFn1 + namespace toDate {} + + const weeksToDays: CurriedFn1 + namespace weeksToDays {} + + const yearsToMonths: CurriedFn1 + namespace yearsToMonths {} + + const yearsToQuarters: CurriedFn1 + namespace yearsToQuarters {} + + const daysInWeek: number + + const daysInYear: number + + const maxTime: number + + const millisecondsInMinute: number + + const millisecondsInHour: number + + const millisecondsInSecond: number + + const minTime: number + + const minutesInHour: number + + const monthsInQuarter: number + + const monthsInYear: number + + const quartersInYear: number + + const secondsInHour: number + + const secondsInMinute: number + + const secondsInDay: number + + const secondsInWeek: number + + const secondsInYear: number + + const secondsInMonth: number + + const secondsInQuarter: number +} + +declare module 'date-fns/fp/add' { + import { add } from 'date-fns/fp' + export default add +} + +declare module 'date-fns/fp/addBusinessDays' { + import { addBusinessDays } from 'date-fns/fp' + export default addBusinessDays +} + +declare module 'date-fns/fp/addDays' { + import { addDays } from 'date-fns/fp' + export default addDays +} + +declare module 'date-fns/fp/addHours' { + import { addHours } from 'date-fns/fp' + export default addHours +} + +declare module 'date-fns/fp/addISOWeekYears' { + import { addISOWeekYears } from 'date-fns/fp' + export default addISOWeekYears +} + +declare module 'date-fns/fp/addMilliseconds' { + import { addMilliseconds } from 'date-fns/fp' + export default addMilliseconds +} + +declare module 'date-fns/fp/addMinutes' { + import { addMinutes } from 'date-fns/fp' + export default addMinutes +} + +declare module 'date-fns/fp/addMonths' { + import { addMonths } from 'date-fns/fp' + export default addMonths +} + +declare module 'date-fns/fp/addQuarters' { + import { addQuarters } from 'date-fns/fp' + export default addQuarters +} + +declare module 'date-fns/fp/addSeconds' { + import { addSeconds } from 'date-fns/fp' + export default addSeconds +} + +declare module 'date-fns/fp/addWeeks' { + import { addWeeks } from 'date-fns/fp' + export default addWeeks +} + +declare module 'date-fns/fp/addYears' { + import { addYears } from 'date-fns/fp' + export default addYears +} + +declare module 'date-fns/fp/areIntervalsOverlapping' { + import { areIntervalsOverlapping } from 'date-fns/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/fp/areIntervalsOverlappingWithOptions' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/fp/clamp' { + import { clamp } from 'date-fns/fp' + export default clamp +} + +declare module 'date-fns/fp/closestIndexTo' { + import { closestIndexTo } from 'date-fns/fp' + export default closestIndexTo +} + +declare module 'date-fns/fp/closestTo' { + import { closestTo } from 'date-fns/fp' + export default closestTo +} + +declare module 'date-fns/fp/compareAsc' { + import { compareAsc } from 'date-fns/fp' + export default compareAsc +} + +declare module 'date-fns/fp/compareDesc' { + import { compareDesc } from 'date-fns/fp' + export default compareDesc +} + +declare module 'date-fns/fp/daysToWeeks' { + import { daysToWeeks } from 'date-fns/fp' + export default daysToWeeks +} + +declare module 'date-fns/fp/differenceInBusinessDays' { + import { differenceInBusinessDays } from 'date-fns/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/fp/differenceInCalendarDays' { + import { differenceInCalendarDays } from 'date-fns/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/fp/differenceInCalendarISOWeeks' { + import { differenceInCalendarISOWeeks } from 'date-fns/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/fp/differenceInCalendarISOWeekYears' { + import { differenceInCalendarISOWeekYears } from 'date-fns/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/fp/differenceInCalendarMonths' { + import { differenceInCalendarMonths } from 'date-fns/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/fp/differenceInCalendarQuarters' { + import { differenceInCalendarQuarters } from 'date-fns/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/fp/differenceInCalendarWeeks' { + import { differenceInCalendarWeeks } from 'date-fns/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/fp/differenceInCalendarWeeksWithOptions' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInCalendarYears' { + import { differenceInCalendarYears } from 'date-fns/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/fp/differenceInDays' { + import { differenceInDays } from 'date-fns/fp' + export default differenceInDays +} + +declare module 'date-fns/fp/differenceInHours' { + import { differenceInHours } from 'date-fns/fp' + export default differenceInHours +} + +declare module 'date-fns/fp/differenceInHoursWithOptions' { + import { differenceInHoursWithOptions } from 'date-fns/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/fp/differenceInISOWeekYears' { + import { differenceInISOWeekYears } from 'date-fns/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/fp/differenceInMilliseconds' { + import { differenceInMilliseconds } from 'date-fns/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/fp/differenceInMinutes' { + import { differenceInMinutes } from 'date-fns/fp' + export default differenceInMinutes +} + +declare module 'date-fns/fp/differenceInMinutesWithOptions' { + import { differenceInMinutesWithOptions } from 'date-fns/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/fp/differenceInMonths' { + import { differenceInMonths } from 'date-fns/fp' + export default differenceInMonths +} + +declare module 'date-fns/fp/differenceInQuarters' { + import { differenceInQuarters } from 'date-fns/fp' + export default differenceInQuarters +} + +declare module 'date-fns/fp/differenceInQuartersWithOptions' { + import { differenceInQuartersWithOptions } from 'date-fns/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/fp/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInSecondsWithOptions' { + import { differenceInSecondsWithOptions } from 'date-fns/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/fp/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +declare module 'date-fns/fp/differenceInWeeksWithOptions' { + import { differenceInWeeksWithOptions } from 'date-fns/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInYears' { + import { differenceInYears } from 'date-fns/fp' + export default differenceInYears +} + +declare module 'date-fns/fp/eachDayOfInterval' { + import { eachDayOfInterval } from 'date-fns/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/fp/eachDayOfIntervalWithOptions' { + import { eachDayOfIntervalWithOptions } from 'date-fns/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachHourOfInterval' { + import { eachHourOfInterval } from 'date-fns/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/fp/eachHourOfIntervalWithOptions' { + import { eachHourOfIntervalWithOptions } from 'date-fns/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMinuteOfInterval' { + import { eachMinuteOfInterval } from 'date-fns/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/fp/eachMinuteOfIntervalWithOptions' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMonthOfInterval' { + import { eachMonthOfInterval } from 'date-fns/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/fp/eachQuarterOfInterval' { + import { eachQuarterOfInterval } from 'date-fns/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfInterval' { + import { eachWeekendOfInterval } from 'date-fns/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfMonth' { + import { eachWeekendOfMonth } from 'date-fns/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/fp/eachWeekendOfYear' { + import { eachWeekendOfYear } from 'date-fns/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/fp/eachWeekOfInterval' { + import { eachWeekOfInterval } from 'date-fns/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/fp/eachWeekOfIntervalWithOptions' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachYearOfInterval' { + import { eachYearOfInterval } from 'date-fns/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/fp/endOfDay' { + import { endOfDay } from 'date-fns/fp' + export default endOfDay +} + +declare module 'date-fns/fp/endOfDecade' { + import { endOfDecade } from 'date-fns/fp' + export default endOfDecade +} + +declare module 'date-fns/fp/endOfDecadeWithOptions' { + import { endOfDecadeWithOptions } from 'date-fns/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/fp/endOfHour' { + import { endOfHour } from 'date-fns/fp' + export default endOfHour +} + +declare module 'date-fns/fp/endOfISOWeek' { + import { endOfISOWeek } from 'date-fns/fp' + export default endOfISOWeek +} + +declare module 'date-fns/fp/endOfISOWeekYear' { + import { endOfISOWeekYear } from 'date-fns/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/fp/endOfMinute' { + import { endOfMinute } from 'date-fns/fp' + export default endOfMinute +} + +declare module 'date-fns/fp/endOfMonth' { + import { endOfMonth } from 'date-fns/fp' + export default endOfMonth +} + +declare module 'date-fns/fp/endOfQuarter' { + import { endOfQuarter } from 'date-fns/fp' + export default endOfQuarter +} + +declare module 'date-fns/fp/endOfSecond' { + import { endOfSecond } from 'date-fns/fp' + export default endOfSecond +} + +declare module 'date-fns/fp/endOfWeek' { + import { endOfWeek } from 'date-fns/fp' + export default endOfWeek +} + +declare module 'date-fns/fp/endOfWeekWithOptions' { + import { endOfWeekWithOptions } from 'date-fns/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/fp/endOfYear' { + import { endOfYear } from 'date-fns/fp' + export default endOfYear +} + +declare module 'date-fns/fp/format' { + import { format } from 'date-fns/fp' + export default format +} + +declare module 'date-fns/fp/formatDistance' { + import { formatDistance } from 'date-fns/fp' + export default formatDistance +} + +declare module 'date-fns/fp/formatDistanceStrict' { + import { formatDistanceStrict } from 'date-fns/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/fp/formatDistanceStrictWithOptions' { + import { formatDistanceStrictWithOptions } from 'date-fns/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/fp/formatDistanceWithOptions' { + import { formatDistanceWithOptions } from 'date-fns/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/fp/formatDuration' { + import { formatDuration } from 'date-fns/fp' + export default formatDuration +} + +declare module 'date-fns/fp/formatDurationWithOptions' { + import { formatDurationWithOptions } from 'date-fns/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/fp/formatISO' { + import { formatISO } from 'date-fns/fp' + export default formatISO +} + +declare module 'date-fns/fp/formatISO9075' { + import { formatISO9075 } from 'date-fns/fp' + export default formatISO9075 +} + +declare module 'date-fns/fp/formatISO9075WithOptions' { + import { formatISO9075WithOptions } from 'date-fns/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/fp/formatISODuration' { + import { formatISODuration } from 'date-fns/fp' + export default formatISODuration +} + +declare module 'date-fns/fp/formatISOWithOptions' { + import { formatISOWithOptions } from 'date-fns/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/fp/formatRelative' { + import { formatRelative } from 'date-fns/fp' + export default formatRelative +} + +declare module 'date-fns/fp/formatRelativeWithOptions' { + import { formatRelativeWithOptions } from 'date-fns/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/fp/formatRFC3339' { + import { formatRFC3339 } from 'date-fns/fp' + export default formatRFC3339 +} + +declare module 'date-fns/fp/formatRFC3339WithOptions' { + import { formatRFC3339WithOptions } from 'date-fns/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/fp/formatRFC7231' { + import { formatRFC7231 } from 'date-fns/fp' + export default formatRFC7231 +} + +declare module 'date-fns/fp/formatWithOptions' { + import { formatWithOptions } from 'date-fns/fp' + export default formatWithOptions +} + +declare module 'date-fns/fp/fromUnixTime' { + import { fromUnixTime } from 'date-fns/fp' + export default fromUnixTime +} + +declare module 'date-fns/fp/getDate' { + import { getDate } from 'date-fns/fp' + export default getDate +} + +declare module 'date-fns/fp/getDay' { + import { getDay } from 'date-fns/fp' + export default getDay +} + +declare module 'date-fns/fp/getDayOfYear' { + import { getDayOfYear } from 'date-fns/fp' + export default getDayOfYear +} + +declare module 'date-fns/fp/getDaysInMonth' { + import { getDaysInMonth } from 'date-fns/fp' + export default getDaysInMonth +} + +declare module 'date-fns/fp/getDaysInYear' { + import { getDaysInYear } from 'date-fns/fp' + export default getDaysInYear +} + +declare module 'date-fns/fp/getDecade' { + import { getDecade } from 'date-fns/fp' + export default getDecade +} + +declare module 'date-fns/fp/getHours' { + import { getHours } from 'date-fns/fp' + export default getHours +} + +declare module 'date-fns/fp/getISODay' { + import { getISODay } from 'date-fns/fp' + export default getISODay +} + +declare module 'date-fns/fp/getISOWeek' { + import { getISOWeek } from 'date-fns/fp' + export default getISOWeek +} + +declare module 'date-fns/fp/getISOWeeksInYear' { + import { getISOWeeksInYear } from 'date-fns/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/fp/getISOWeekYear' { + import { getISOWeekYear } from 'date-fns/fp' + export default getISOWeekYear +} + +declare module 'date-fns/fp/getMilliseconds' { + import { getMilliseconds } from 'date-fns/fp' + export default getMilliseconds +} + +declare module 'date-fns/fp/getMinutes' { + import { getMinutes } from 'date-fns/fp' + export default getMinutes +} + +declare module 'date-fns/fp/getMonth' { + import { getMonth } from 'date-fns/fp' + export default getMonth +} + +declare module 'date-fns/fp/getOverlappingDaysInIntervals' { + import { getOverlappingDaysInIntervals } from 'date-fns/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/fp/getQuarter' { + import { getQuarter } from 'date-fns/fp' + export default getQuarter +} + +declare module 'date-fns/fp/getSeconds' { + import { getSeconds } from 'date-fns/fp' + export default getSeconds +} + +declare module 'date-fns/fp/getTime' { + import { getTime } from 'date-fns/fp' + export default getTime +} + +declare module 'date-fns/fp/getUnixTime' { + import { getUnixTime } from 'date-fns/fp' + export default getUnixTime +} + +declare module 'date-fns/fp/getWeek' { + import { getWeek } from 'date-fns/fp' + export default getWeek +} + +declare module 'date-fns/fp/getWeekOfMonth' { + import { getWeekOfMonth } from 'date-fns/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/fp/getWeekOfMonthWithOptions' { + import { getWeekOfMonthWithOptions } from 'date-fns/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/fp/getWeeksInMonth' { + import { getWeeksInMonth } from 'date-fns/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/fp/getWeeksInMonthWithOptions' { + import { getWeeksInMonthWithOptions } from 'date-fns/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/fp/getWeekWithOptions' { + import { getWeekWithOptions } from 'date-fns/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/fp/getWeekYear' { + import { getWeekYear } from 'date-fns/fp' + export default getWeekYear +} + +declare module 'date-fns/fp/getWeekYearWithOptions' { + import { getWeekYearWithOptions } from 'date-fns/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/fp/getYear' { + import { getYear } from 'date-fns/fp' + export default getYear +} + +declare module 'date-fns/fp/hoursToMilliseconds' { + import { hoursToMilliseconds } from 'date-fns/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/fp/hoursToMinutes' { + import { hoursToMinutes } from 'date-fns/fp' + export default hoursToMinutes +} + +declare module 'date-fns/fp/hoursToSeconds' { + import { hoursToSeconds } from 'date-fns/fp' + export default hoursToSeconds +} + +declare module 'date-fns/fp/intervalToDuration' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +declare module 'date-fns/fp/intlFormat' { + import { intlFormat } from 'date-fns/fp' + export default intlFormat +} + +declare module 'date-fns/fp/intlFormatDistance' { + import { intlFormatDistance } from 'date-fns/fp' + export default intlFormatDistance +} + +declare module 'date-fns/fp/intlFormatDistanceWithOptions' { + import { intlFormatDistanceWithOptions } from 'date-fns/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/fp/isAfter' { + import { isAfter } from 'date-fns/fp' + export default isAfter +} + +declare module 'date-fns/fp/isBefore' { + import { isBefore } from 'date-fns/fp' + export default isBefore +} + +declare module 'date-fns/fp/isDate' { + import { isDate } from 'date-fns/fp' + export default isDate +} + +declare module 'date-fns/fp/isEqual' { + import { isEqual } from 'date-fns/fp' + export default isEqual +} + +declare module 'date-fns/fp/isExists' { + import { isExists } from 'date-fns/fp' + export default isExists +} + +declare module 'date-fns/fp/isFirstDayOfMonth' { + import { isFirstDayOfMonth } from 'date-fns/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/fp/isFriday' { + import { isFriday } from 'date-fns/fp' + export default isFriday +} + +declare module 'date-fns/fp/isLastDayOfMonth' { + import { isLastDayOfMonth } from 'date-fns/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/fp/isLeapYear' { + import { isLeapYear } from 'date-fns/fp' + export default isLeapYear +} + +declare module 'date-fns/fp/isMatch' { + import { isMatch } from 'date-fns/fp' + export default isMatch +} + +declare module 'date-fns/fp/isMatchWithOptions' { + import { isMatchWithOptions } from 'date-fns/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/fp/isMonday' { + import { isMonday } from 'date-fns/fp' + export default isMonday +} + +declare module 'date-fns/fp/isSameDay' { + import { isSameDay } from 'date-fns/fp' + export default isSameDay +} + +declare module 'date-fns/fp/isSameHour' { + import { isSameHour } from 'date-fns/fp' + export default isSameHour +} + +declare module 'date-fns/fp/isSameISOWeek' { + import { isSameISOWeek } from 'date-fns/fp' + export default isSameISOWeek +} + +declare module 'date-fns/fp/isSameISOWeekYear' { + import { isSameISOWeekYear } from 'date-fns/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/fp/isSameMinute' { + import { isSameMinute } from 'date-fns/fp' + export default isSameMinute +} + +declare module 'date-fns/fp/isSameMonth' { + import { isSameMonth } from 'date-fns/fp' + export default isSameMonth +} + +declare module 'date-fns/fp/isSameQuarter' { + import { isSameQuarter } from 'date-fns/fp' + export default isSameQuarter +} + +declare module 'date-fns/fp/isSameSecond' { + import { isSameSecond } from 'date-fns/fp' + export default isSameSecond +} + +declare module 'date-fns/fp/isSameWeek' { + import { isSameWeek } from 'date-fns/fp' + export default isSameWeek +} + +declare module 'date-fns/fp/isSameWeekWithOptions' { + import { isSameWeekWithOptions } from 'date-fns/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/fp/isSameYear' { + import { isSameYear } from 'date-fns/fp' + export default isSameYear +} + +declare module 'date-fns/fp/isSaturday' { + import { isSaturday } from 'date-fns/fp' + export default isSaturday +} + +declare module 'date-fns/fp/isSunday' { + import { isSunday } from 'date-fns/fp' + export default isSunday +} + +declare module 'date-fns/fp/isThursday' { + import { isThursday } from 'date-fns/fp' + export default isThursday +} + +declare module 'date-fns/fp/isTuesday' { + import { isTuesday } from 'date-fns/fp' + export default isTuesday +} + +declare module 'date-fns/fp/isValid' { + import { isValid } from 'date-fns/fp' + export default isValid +} + +declare module 'date-fns/fp/isWednesday' { + import { isWednesday } from 'date-fns/fp' + export default isWednesday +} + +declare module 'date-fns/fp/isWeekend' { + import { isWeekend } from 'date-fns/fp' + export default isWeekend +} + +declare module 'date-fns/fp/isWithinInterval' { + import { isWithinInterval } from 'date-fns/fp' + export default isWithinInterval +} + +declare module 'date-fns/fp/lastDayOfDecade' { + import { lastDayOfDecade } from 'date-fns/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/fp/lastDayOfISOWeek' { + import { lastDayOfISOWeek } from 'date-fns/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/fp/lastDayOfISOWeekYear' { + import { lastDayOfISOWeekYear } from 'date-fns/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/fp/lastDayOfMonth' { + import { lastDayOfMonth } from 'date-fns/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/fp/lastDayOfQuarter' { + import { lastDayOfQuarter } from 'date-fns/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/fp/lastDayOfQuarterWithOptions' { + import { lastDayOfQuarterWithOptions } from 'date-fns/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/fp/lastDayOfWeek' { + import { lastDayOfWeek } from 'date-fns/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/fp/lastDayOfWeekWithOptions' { + import { lastDayOfWeekWithOptions } from 'date-fns/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/fp/lastDayOfYear' { + import { lastDayOfYear } from 'date-fns/fp' + export default lastDayOfYear +} + +declare module 'date-fns/fp/lightFormat' { + import { lightFormat } from 'date-fns/fp' + export default lightFormat +} + +declare module 'date-fns/fp/max' { + import { max } from 'date-fns/fp' + export default max +} + +declare module 'date-fns/fp/milliseconds' { + import { milliseconds } from 'date-fns/fp' + export default milliseconds +} + +declare module 'date-fns/fp/millisecondsToHours' { + import { millisecondsToHours } from 'date-fns/fp' + export default millisecondsToHours +} + +declare module 'date-fns/fp/millisecondsToMinutes' { + import { millisecondsToMinutes } from 'date-fns/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/fp/millisecondsToSeconds' { + import { millisecondsToSeconds } from 'date-fns/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/fp/min' { + import { min } from 'date-fns/fp' + export default min +} + +declare module 'date-fns/fp/minutesToHours' { + import { minutesToHours } from 'date-fns/fp' + export default minutesToHours +} + +declare module 'date-fns/fp/minutesToMilliseconds' { + import { minutesToMilliseconds } from 'date-fns/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/fp/minutesToSeconds' { + import { minutesToSeconds } from 'date-fns/fp' + export default minutesToSeconds +} + +declare module 'date-fns/fp/monthsToQuarters' { + import { monthsToQuarters } from 'date-fns/fp' + export default monthsToQuarters +} + +declare module 'date-fns/fp/monthsToYears' { + import { monthsToYears } from 'date-fns/fp' + export default monthsToYears +} + +declare module 'date-fns/fp/nextDay' { + import { nextDay } from 'date-fns/fp' + export default nextDay +} + +declare module 'date-fns/fp/nextFriday' { + import { nextFriday } from 'date-fns/fp' + export default nextFriday +} + +declare module 'date-fns/fp/nextMonday' { + import { nextMonday } from 'date-fns/fp' + export default nextMonday +} + +declare module 'date-fns/fp/nextSaturday' { + import { nextSaturday } from 'date-fns/fp' + export default nextSaturday +} + +declare module 'date-fns/fp/nextSunday' { + import { nextSunday } from 'date-fns/fp' + export default nextSunday +} + +declare module 'date-fns/fp/nextThursday' { + import { nextThursday } from 'date-fns/fp' + export default nextThursday +} + +declare module 'date-fns/fp/nextTuesday' { + import { nextTuesday } from 'date-fns/fp' + export default nextTuesday +} + +declare module 'date-fns/fp/nextWednesday' { + import { nextWednesday } from 'date-fns/fp' + export default nextWednesday +} + +declare module 'date-fns/fp/parse' { + import { parse } from 'date-fns/fp' + export default parse +} + +declare module 'date-fns/fp/parseISO' { + import { parseISO } from 'date-fns/fp' + export default parseISO +} + +declare module 'date-fns/fp/parseISOWithOptions' { + import { parseISOWithOptions } from 'date-fns/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/fp/parseJSON' { + import { parseJSON } from 'date-fns/fp' + export default parseJSON +} + +declare module 'date-fns/fp/parseWithOptions' { + import { parseWithOptions } from 'date-fns/fp' + export default parseWithOptions +} + +declare module 'date-fns/fp/previousDay' { + import { previousDay } from 'date-fns/fp' + export default previousDay +} + +declare module 'date-fns/fp/previousFriday' { + import { previousFriday } from 'date-fns/fp' + export default previousFriday +} + +declare module 'date-fns/fp/previousMonday' { + import { previousMonday } from 'date-fns/fp' + export default previousMonday +} + +declare module 'date-fns/fp/previousSaturday' { + import { previousSaturday } from 'date-fns/fp' + export default previousSaturday +} + +declare module 'date-fns/fp/previousSunday' { + import { previousSunday } from 'date-fns/fp' + export default previousSunday +} + +declare module 'date-fns/fp/previousThursday' { + import { previousThursday } from 'date-fns/fp' + export default previousThursday +} + +declare module 'date-fns/fp/previousTuesday' { + import { previousTuesday } from 'date-fns/fp' + export default previousTuesday +} + +declare module 'date-fns/fp/previousWednesday' { + import { previousWednesday } from 'date-fns/fp' + export default previousWednesday +} + +declare module 'date-fns/fp/quartersToMonths' { + import { quartersToMonths } from 'date-fns/fp' + export default quartersToMonths +} + +declare module 'date-fns/fp/quartersToYears' { + import { quartersToYears } from 'date-fns/fp' + export default quartersToYears +} + +declare module 'date-fns/fp/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/fp/roundToNearestMinutesWithOptions' { + import { roundToNearestMinutesWithOptions } from 'date-fns/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/fp/secondsToHours' { + import { secondsToHours } from 'date-fns/fp' + export default secondsToHours +} + +declare module 'date-fns/fp/secondsToMilliseconds' { + import { secondsToMilliseconds } from 'date-fns/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/fp/secondsToMinutes' { + import { secondsToMinutes } from 'date-fns/fp' + export default secondsToMinutes +} + +declare module 'date-fns/fp/set' { + import { set } from 'date-fns/fp' + export default set +} + +declare module 'date-fns/fp/setDate' { + import { setDate } from 'date-fns/fp' + export default setDate +} + +declare module 'date-fns/fp/setDay' { + import { setDay } from 'date-fns/fp' + export default setDay +} + +declare module 'date-fns/fp/setDayOfYear' { + import { setDayOfYear } from 'date-fns/fp' + export default setDayOfYear +} + +declare module 'date-fns/fp/setDayWithOptions' { + import { setDayWithOptions } from 'date-fns/fp' + export default setDayWithOptions +} + +declare module 'date-fns/fp/setHours' { + import { setHours } from 'date-fns/fp' + export default setHours +} + +declare module 'date-fns/fp/setISODay' { + import { setISODay } from 'date-fns/fp' + export default setISODay +} + +declare module 'date-fns/fp/setISOWeek' { + import { setISOWeek } from 'date-fns/fp' + export default setISOWeek +} + +declare module 'date-fns/fp/setISOWeekYear' { + import { setISOWeekYear } from 'date-fns/fp' + export default setISOWeekYear +} + +declare module 'date-fns/fp/setMilliseconds' { + import { setMilliseconds } from 'date-fns/fp' + export default setMilliseconds +} + +declare module 'date-fns/fp/setMinutes' { + import { setMinutes } from 'date-fns/fp' + export default setMinutes +} + +declare module 'date-fns/fp/setMonth' { + import { setMonth } from 'date-fns/fp' + export default setMonth +} + +declare module 'date-fns/fp/setQuarter' { + import { setQuarter } from 'date-fns/fp' + export default setQuarter +} + +declare module 'date-fns/fp/setSeconds' { + import { setSeconds } from 'date-fns/fp' + export default setSeconds +} + +declare module 'date-fns/fp/setWeek' { + import { setWeek } from 'date-fns/fp' + export default setWeek +} + +declare module 'date-fns/fp/setWeekWithOptions' { + import { setWeekWithOptions } from 'date-fns/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/fp/setWeekYear' { + import { setWeekYear } from 'date-fns/fp' + export default setWeekYear +} + +declare module 'date-fns/fp/setWeekYearWithOptions' { + import { setWeekYearWithOptions } from 'date-fns/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/fp/setYear' { + import { setYear } from 'date-fns/fp' + export default setYear +} + +declare module 'date-fns/fp/startOfDay' { + import { startOfDay } from 'date-fns/fp' + export default startOfDay +} + +declare module 'date-fns/fp/startOfDecade' { + import { startOfDecade } from 'date-fns/fp' + export default startOfDecade +} + +declare module 'date-fns/fp/startOfHour' { + import { startOfHour } from 'date-fns/fp' + export default startOfHour +} + +declare module 'date-fns/fp/startOfISOWeek' { + import { startOfISOWeek } from 'date-fns/fp' + export default startOfISOWeek +} + +declare module 'date-fns/fp/startOfISOWeekYear' { + import { startOfISOWeekYear } from 'date-fns/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/fp/startOfMinute' { + import { startOfMinute } from 'date-fns/fp' + export default startOfMinute +} + +declare module 'date-fns/fp/startOfMonth' { + import { startOfMonth } from 'date-fns/fp' + export default startOfMonth +} + +declare module 'date-fns/fp/startOfQuarter' { + import { startOfQuarter } from 'date-fns/fp' + export default startOfQuarter +} + +declare module 'date-fns/fp/startOfSecond' { + import { startOfSecond } from 'date-fns/fp' + export default startOfSecond +} + +declare module 'date-fns/fp/startOfWeek' { + import { startOfWeek } from 'date-fns/fp' + export default startOfWeek +} + +declare module 'date-fns/fp/startOfWeekWithOptions' { + import { startOfWeekWithOptions } from 'date-fns/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/fp/startOfWeekYear' { + import { startOfWeekYear } from 'date-fns/fp' + export default startOfWeekYear +} + +declare module 'date-fns/fp/startOfWeekYearWithOptions' { + import { startOfWeekYearWithOptions } from 'date-fns/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/fp/startOfYear' { + import { startOfYear } from 'date-fns/fp' + export default startOfYear +} + +declare module 'date-fns/fp/sub' { + import { sub } from 'date-fns/fp' + export default sub +} + +declare module 'date-fns/fp/subBusinessDays' { + import { subBusinessDays } from 'date-fns/fp' + export default subBusinessDays +} + +declare module 'date-fns/fp/subDays' { + import { subDays } from 'date-fns/fp' + export default subDays +} + +declare module 'date-fns/fp/subHours' { + import { subHours } from 'date-fns/fp' + export default subHours +} + +declare module 'date-fns/fp/subISOWeekYears' { + import { subISOWeekYears } from 'date-fns/fp' + export default subISOWeekYears +} + +declare module 'date-fns/fp/subMilliseconds' { + import { subMilliseconds } from 'date-fns/fp' + export default subMilliseconds +} + +declare module 'date-fns/fp/subMinutes' { + import { subMinutes } from 'date-fns/fp' + export default subMinutes +} + +declare module 'date-fns/fp/subMonths' { + import { subMonths } from 'date-fns/fp' + export default subMonths +} + +declare module 'date-fns/fp/subQuarters' { + import { subQuarters } from 'date-fns/fp' + export default subQuarters +} + +declare module 'date-fns/fp/subSeconds' { + import { subSeconds } from 'date-fns/fp' + export default subSeconds +} + +declare module 'date-fns/fp/subWeeks' { + import { subWeeks } from 'date-fns/fp' + export default subWeeks +} + +declare module 'date-fns/fp/subYears' { + import { subYears } from 'date-fns/fp' + export default subYears +} + +declare module 'date-fns/fp/toDate' { + import { toDate } from 'date-fns/fp' + export default toDate +} + +declare module 'date-fns/fp/weeksToDays' { + import { weeksToDays } from 'date-fns/fp' + export default weeksToDays +} + +declare module 'date-fns/fp/yearsToMonths' { + import { yearsToMonths } from 'date-fns/fp' + export default yearsToMonths +} + +declare module 'date-fns/fp/yearsToQuarters' { + import { yearsToQuarters } from 'date-fns/fp' + export default yearsToQuarters +} + +declare module 'date-fns/fp/add/index' { + import { add } from 'date-fns/fp' + export default add +} + +declare module 'date-fns/fp/addBusinessDays/index' { + import { addBusinessDays } from 'date-fns/fp' + export default addBusinessDays +} + +declare module 'date-fns/fp/addDays/index' { + import { addDays } from 'date-fns/fp' + export default addDays +} + +declare module 'date-fns/fp/addHours/index' { + import { addHours } from 'date-fns/fp' + export default addHours +} + +declare module 'date-fns/fp/addISOWeekYears/index' { + import { addISOWeekYears } from 'date-fns/fp' + export default addISOWeekYears +} + +declare module 'date-fns/fp/addMilliseconds/index' { + import { addMilliseconds } from 'date-fns/fp' + export default addMilliseconds +} + +declare module 'date-fns/fp/addMinutes/index' { + import { addMinutes } from 'date-fns/fp' + export default addMinutes +} + +declare module 'date-fns/fp/addMonths/index' { + import { addMonths } from 'date-fns/fp' + export default addMonths +} + +declare module 'date-fns/fp/addQuarters/index' { + import { addQuarters } from 'date-fns/fp' + export default addQuarters +} + +declare module 'date-fns/fp/addSeconds/index' { + import { addSeconds } from 'date-fns/fp' + export default addSeconds +} + +declare module 'date-fns/fp/addWeeks/index' { + import { addWeeks } from 'date-fns/fp' + export default addWeeks +} + +declare module 'date-fns/fp/addYears/index' { + import { addYears } from 'date-fns/fp' + export default addYears +} + +declare module 'date-fns/fp/areIntervalsOverlapping/index' { + import { areIntervalsOverlapping } from 'date-fns/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/fp/areIntervalsOverlappingWithOptions/index' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/fp/clamp/index' { + import { clamp } from 'date-fns/fp' + export default clamp +} + +declare module 'date-fns/fp/closestIndexTo/index' { + import { closestIndexTo } from 'date-fns/fp' + export default closestIndexTo +} + +declare module 'date-fns/fp/closestTo/index' { + import { closestTo } from 'date-fns/fp' + export default closestTo +} + +declare module 'date-fns/fp/compareAsc/index' { + import { compareAsc } from 'date-fns/fp' + export default compareAsc +} + +declare module 'date-fns/fp/compareDesc/index' { + import { compareDesc } from 'date-fns/fp' + export default compareDesc +} + +declare module 'date-fns/fp/daysToWeeks/index' { + import { daysToWeeks } from 'date-fns/fp' + export default daysToWeeks +} + +declare module 'date-fns/fp/differenceInBusinessDays/index' { + import { differenceInBusinessDays } from 'date-fns/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/fp/differenceInCalendarDays/index' { + import { differenceInCalendarDays } from 'date-fns/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/fp/differenceInCalendarISOWeeks/index' { + import { differenceInCalendarISOWeeks } from 'date-fns/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/fp/differenceInCalendarISOWeekYears/index' { + import { differenceInCalendarISOWeekYears } from 'date-fns/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/fp/differenceInCalendarMonths/index' { + import { differenceInCalendarMonths } from 'date-fns/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/fp/differenceInCalendarQuarters/index' { + import { differenceInCalendarQuarters } from 'date-fns/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/fp/differenceInCalendarWeeks/index' { + import { differenceInCalendarWeeks } from 'date-fns/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/fp/differenceInCalendarWeeksWithOptions/index' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInCalendarYears/index' { + import { differenceInCalendarYears } from 'date-fns/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/fp/differenceInDays/index' { + import { differenceInDays } from 'date-fns/fp' + export default differenceInDays +} + +declare module 'date-fns/fp/differenceInHours/index' { + import { differenceInHours } from 'date-fns/fp' + export default differenceInHours +} + +declare module 'date-fns/fp/differenceInHoursWithOptions/index' { + import { differenceInHoursWithOptions } from 'date-fns/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/fp/differenceInISOWeekYears/index' { + import { differenceInISOWeekYears } from 'date-fns/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/fp/differenceInMilliseconds/index' { + import { differenceInMilliseconds } from 'date-fns/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/fp/differenceInMinutes/index' { + import { differenceInMinutes } from 'date-fns/fp' + export default differenceInMinutes +} + +declare module 'date-fns/fp/differenceInMinutesWithOptions/index' { + import { differenceInMinutesWithOptions } from 'date-fns/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/fp/differenceInMonths/index' { + import { differenceInMonths } from 'date-fns/fp' + export default differenceInMonths +} + +declare module 'date-fns/fp/differenceInQuarters/index' { + import { differenceInQuarters } from 'date-fns/fp' + export default differenceInQuarters +} + +declare module 'date-fns/fp/differenceInQuartersWithOptions/index' { + import { differenceInQuartersWithOptions } from 'date-fns/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/fp/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInSecondsWithOptions/index' { + import { differenceInSecondsWithOptions } from 'date-fns/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/fp/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +declare module 'date-fns/fp/differenceInWeeksWithOptions/index' { + import { differenceInWeeksWithOptions } from 'date-fns/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInYears/index' { + import { differenceInYears } from 'date-fns/fp' + export default differenceInYears +} + +declare module 'date-fns/fp/eachDayOfInterval/index' { + import { eachDayOfInterval } from 'date-fns/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/fp/eachDayOfIntervalWithOptions/index' { + import { eachDayOfIntervalWithOptions } from 'date-fns/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachHourOfInterval/index' { + import { eachHourOfInterval } from 'date-fns/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/fp/eachHourOfIntervalWithOptions/index' { + import { eachHourOfIntervalWithOptions } from 'date-fns/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMinuteOfInterval/index' { + import { eachMinuteOfInterval } from 'date-fns/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/fp/eachMinuteOfIntervalWithOptions/index' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMonthOfInterval/index' { + import { eachMonthOfInterval } from 'date-fns/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/fp/eachQuarterOfInterval/index' { + import { eachQuarterOfInterval } from 'date-fns/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfInterval/index' { + import { eachWeekendOfInterval } from 'date-fns/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfMonth/index' { + import { eachWeekendOfMonth } from 'date-fns/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/fp/eachWeekendOfYear/index' { + import { eachWeekendOfYear } from 'date-fns/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/fp/eachWeekOfInterval/index' { + import { eachWeekOfInterval } from 'date-fns/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/fp/eachWeekOfIntervalWithOptions/index' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachYearOfInterval/index' { + import { eachYearOfInterval } from 'date-fns/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/fp/endOfDay/index' { + import { endOfDay } from 'date-fns/fp' + export default endOfDay +} + +declare module 'date-fns/fp/endOfDecade/index' { + import { endOfDecade } from 'date-fns/fp' + export default endOfDecade +} + +declare module 'date-fns/fp/endOfDecadeWithOptions/index' { + import { endOfDecadeWithOptions } from 'date-fns/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/fp/endOfHour/index' { + import { endOfHour } from 'date-fns/fp' + export default endOfHour +} + +declare module 'date-fns/fp/endOfISOWeek/index' { + import { endOfISOWeek } from 'date-fns/fp' + export default endOfISOWeek +} + +declare module 'date-fns/fp/endOfISOWeekYear/index' { + import { endOfISOWeekYear } from 'date-fns/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/fp/endOfMinute/index' { + import { endOfMinute } from 'date-fns/fp' + export default endOfMinute +} + +declare module 'date-fns/fp/endOfMonth/index' { + import { endOfMonth } from 'date-fns/fp' + export default endOfMonth +} + +declare module 'date-fns/fp/endOfQuarter/index' { + import { endOfQuarter } from 'date-fns/fp' + export default endOfQuarter +} + +declare module 'date-fns/fp/endOfSecond/index' { + import { endOfSecond } from 'date-fns/fp' + export default endOfSecond +} + +declare module 'date-fns/fp/endOfWeek/index' { + import { endOfWeek } from 'date-fns/fp' + export default endOfWeek +} + +declare module 'date-fns/fp/endOfWeekWithOptions/index' { + import { endOfWeekWithOptions } from 'date-fns/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/fp/endOfYear/index' { + import { endOfYear } from 'date-fns/fp' + export default endOfYear +} + +declare module 'date-fns/fp/format/index' { + import { format } from 'date-fns/fp' + export default format +} + +declare module 'date-fns/fp/formatDistance/index' { + import { formatDistance } from 'date-fns/fp' + export default formatDistance +} + +declare module 'date-fns/fp/formatDistanceStrict/index' { + import { formatDistanceStrict } from 'date-fns/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/fp/formatDistanceStrictWithOptions/index' { + import { formatDistanceStrictWithOptions } from 'date-fns/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/fp/formatDistanceWithOptions/index' { + import { formatDistanceWithOptions } from 'date-fns/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/fp/formatDuration/index' { + import { formatDuration } from 'date-fns/fp' + export default formatDuration +} + +declare module 'date-fns/fp/formatDurationWithOptions/index' { + import { formatDurationWithOptions } from 'date-fns/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/fp/formatISO/index' { + import { formatISO } from 'date-fns/fp' + export default formatISO +} + +declare module 'date-fns/fp/formatISO9075/index' { + import { formatISO9075 } from 'date-fns/fp' + export default formatISO9075 +} + +declare module 'date-fns/fp/formatISO9075WithOptions/index' { + import { formatISO9075WithOptions } from 'date-fns/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/fp/formatISODuration/index' { + import { formatISODuration } from 'date-fns/fp' + export default formatISODuration +} + +declare module 'date-fns/fp/formatISOWithOptions/index' { + import { formatISOWithOptions } from 'date-fns/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/fp/formatRelative/index' { + import { formatRelative } from 'date-fns/fp' + export default formatRelative +} + +declare module 'date-fns/fp/formatRelativeWithOptions/index' { + import { formatRelativeWithOptions } from 'date-fns/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/fp/formatRFC3339/index' { + import { formatRFC3339 } from 'date-fns/fp' + export default formatRFC3339 +} + +declare module 'date-fns/fp/formatRFC3339WithOptions/index' { + import { formatRFC3339WithOptions } from 'date-fns/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/fp/formatRFC7231/index' { + import { formatRFC7231 } from 'date-fns/fp' + export default formatRFC7231 +} + +declare module 'date-fns/fp/formatWithOptions/index' { + import { formatWithOptions } from 'date-fns/fp' + export default formatWithOptions +} + +declare module 'date-fns/fp/fromUnixTime/index' { + import { fromUnixTime } from 'date-fns/fp' + export default fromUnixTime +} + +declare module 'date-fns/fp/getDate/index' { + import { getDate } from 'date-fns/fp' + export default getDate +} + +declare module 'date-fns/fp/getDay/index' { + import { getDay } from 'date-fns/fp' + export default getDay +} + +declare module 'date-fns/fp/getDayOfYear/index' { + import { getDayOfYear } from 'date-fns/fp' + export default getDayOfYear +} + +declare module 'date-fns/fp/getDaysInMonth/index' { + import { getDaysInMonth } from 'date-fns/fp' + export default getDaysInMonth +} + +declare module 'date-fns/fp/getDaysInYear/index' { + import { getDaysInYear } from 'date-fns/fp' + export default getDaysInYear +} + +declare module 'date-fns/fp/getDecade/index' { + import { getDecade } from 'date-fns/fp' + export default getDecade +} + +declare module 'date-fns/fp/getHours/index' { + import { getHours } from 'date-fns/fp' + export default getHours +} + +declare module 'date-fns/fp/getISODay/index' { + import { getISODay } from 'date-fns/fp' + export default getISODay +} + +declare module 'date-fns/fp/getISOWeek/index' { + import { getISOWeek } from 'date-fns/fp' + export default getISOWeek +} + +declare module 'date-fns/fp/getISOWeeksInYear/index' { + import { getISOWeeksInYear } from 'date-fns/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/fp/getISOWeekYear/index' { + import { getISOWeekYear } from 'date-fns/fp' + export default getISOWeekYear +} + +declare module 'date-fns/fp/getMilliseconds/index' { + import { getMilliseconds } from 'date-fns/fp' + export default getMilliseconds +} + +declare module 'date-fns/fp/getMinutes/index' { + import { getMinutes } from 'date-fns/fp' + export default getMinutes +} + +declare module 'date-fns/fp/getMonth/index' { + import { getMonth } from 'date-fns/fp' + export default getMonth +} + +declare module 'date-fns/fp/getOverlappingDaysInIntervals/index' { + import { getOverlappingDaysInIntervals } from 'date-fns/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/fp/getQuarter/index' { + import { getQuarter } from 'date-fns/fp' + export default getQuarter +} + +declare module 'date-fns/fp/getSeconds/index' { + import { getSeconds } from 'date-fns/fp' + export default getSeconds +} + +declare module 'date-fns/fp/getTime/index' { + import { getTime } from 'date-fns/fp' + export default getTime +} + +declare module 'date-fns/fp/getUnixTime/index' { + import { getUnixTime } from 'date-fns/fp' + export default getUnixTime +} + +declare module 'date-fns/fp/getWeek/index' { + import { getWeek } from 'date-fns/fp' + export default getWeek +} + +declare module 'date-fns/fp/getWeekOfMonth/index' { + import { getWeekOfMonth } from 'date-fns/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/fp/getWeekOfMonthWithOptions/index' { + import { getWeekOfMonthWithOptions } from 'date-fns/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/fp/getWeeksInMonth/index' { + import { getWeeksInMonth } from 'date-fns/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/fp/getWeeksInMonthWithOptions/index' { + import { getWeeksInMonthWithOptions } from 'date-fns/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/fp/getWeekWithOptions/index' { + import { getWeekWithOptions } from 'date-fns/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/fp/getWeekYear/index' { + import { getWeekYear } from 'date-fns/fp' + export default getWeekYear +} + +declare module 'date-fns/fp/getWeekYearWithOptions/index' { + import { getWeekYearWithOptions } from 'date-fns/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/fp/getYear/index' { + import { getYear } from 'date-fns/fp' + export default getYear +} + +declare module 'date-fns/fp/hoursToMilliseconds/index' { + import { hoursToMilliseconds } from 'date-fns/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/fp/hoursToMinutes/index' { + import { hoursToMinutes } from 'date-fns/fp' + export default hoursToMinutes +} + +declare module 'date-fns/fp/hoursToSeconds/index' { + import { hoursToSeconds } from 'date-fns/fp' + export default hoursToSeconds +} + +declare module 'date-fns/fp/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +declare module 'date-fns/fp/intlFormat/index' { + import { intlFormat } from 'date-fns/fp' + export default intlFormat +} + +declare module 'date-fns/fp/intlFormatDistance/index' { + import { intlFormatDistance } from 'date-fns/fp' + export default intlFormatDistance +} + +declare module 'date-fns/fp/intlFormatDistanceWithOptions/index' { + import { intlFormatDistanceWithOptions } from 'date-fns/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/fp/isAfter/index' { + import { isAfter } from 'date-fns/fp' + export default isAfter +} + +declare module 'date-fns/fp/isBefore/index' { + import { isBefore } from 'date-fns/fp' + export default isBefore +} + +declare module 'date-fns/fp/isDate/index' { + import { isDate } from 'date-fns/fp' + export default isDate +} + +declare module 'date-fns/fp/isEqual/index' { + import { isEqual } from 'date-fns/fp' + export default isEqual +} + +declare module 'date-fns/fp/isExists/index' { + import { isExists } from 'date-fns/fp' + export default isExists +} + +declare module 'date-fns/fp/isFirstDayOfMonth/index' { + import { isFirstDayOfMonth } from 'date-fns/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/fp/isFriday/index' { + import { isFriday } from 'date-fns/fp' + export default isFriday +} + +declare module 'date-fns/fp/isLastDayOfMonth/index' { + import { isLastDayOfMonth } from 'date-fns/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/fp/isLeapYear/index' { + import { isLeapYear } from 'date-fns/fp' + export default isLeapYear +} + +declare module 'date-fns/fp/isMatch/index' { + import { isMatch } from 'date-fns/fp' + export default isMatch +} + +declare module 'date-fns/fp/isMatchWithOptions/index' { + import { isMatchWithOptions } from 'date-fns/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/fp/isMonday/index' { + import { isMonday } from 'date-fns/fp' + export default isMonday +} + +declare module 'date-fns/fp/isSameDay/index' { + import { isSameDay } from 'date-fns/fp' + export default isSameDay +} + +declare module 'date-fns/fp/isSameHour/index' { + import { isSameHour } from 'date-fns/fp' + export default isSameHour +} + +declare module 'date-fns/fp/isSameISOWeek/index' { + import { isSameISOWeek } from 'date-fns/fp' + export default isSameISOWeek +} + +declare module 'date-fns/fp/isSameISOWeekYear/index' { + import { isSameISOWeekYear } from 'date-fns/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/fp/isSameMinute/index' { + import { isSameMinute } from 'date-fns/fp' + export default isSameMinute +} + +declare module 'date-fns/fp/isSameMonth/index' { + import { isSameMonth } from 'date-fns/fp' + export default isSameMonth +} + +declare module 'date-fns/fp/isSameQuarter/index' { + import { isSameQuarter } from 'date-fns/fp' + export default isSameQuarter +} + +declare module 'date-fns/fp/isSameSecond/index' { + import { isSameSecond } from 'date-fns/fp' + export default isSameSecond +} + +declare module 'date-fns/fp/isSameWeek/index' { + import { isSameWeek } from 'date-fns/fp' + export default isSameWeek +} + +declare module 'date-fns/fp/isSameWeekWithOptions/index' { + import { isSameWeekWithOptions } from 'date-fns/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/fp/isSameYear/index' { + import { isSameYear } from 'date-fns/fp' + export default isSameYear +} + +declare module 'date-fns/fp/isSaturday/index' { + import { isSaturday } from 'date-fns/fp' + export default isSaturday +} + +declare module 'date-fns/fp/isSunday/index' { + import { isSunday } from 'date-fns/fp' + export default isSunday +} + +declare module 'date-fns/fp/isThursday/index' { + import { isThursday } from 'date-fns/fp' + export default isThursday +} + +declare module 'date-fns/fp/isTuesday/index' { + import { isTuesday } from 'date-fns/fp' + export default isTuesday +} + +declare module 'date-fns/fp/isValid/index' { + import { isValid } from 'date-fns/fp' + export default isValid +} + +declare module 'date-fns/fp/isWednesday/index' { + import { isWednesday } from 'date-fns/fp' + export default isWednesday +} + +declare module 'date-fns/fp/isWeekend/index' { + import { isWeekend } from 'date-fns/fp' + export default isWeekend +} + +declare module 'date-fns/fp/isWithinInterval/index' { + import { isWithinInterval } from 'date-fns/fp' + export default isWithinInterval +} + +declare module 'date-fns/fp/lastDayOfDecade/index' { + import { lastDayOfDecade } from 'date-fns/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/fp/lastDayOfISOWeek/index' { + import { lastDayOfISOWeek } from 'date-fns/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/fp/lastDayOfISOWeekYear/index' { + import { lastDayOfISOWeekYear } from 'date-fns/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/fp/lastDayOfMonth/index' { + import { lastDayOfMonth } from 'date-fns/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/fp/lastDayOfQuarter/index' { + import { lastDayOfQuarter } from 'date-fns/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/fp/lastDayOfQuarterWithOptions/index' { + import { lastDayOfQuarterWithOptions } from 'date-fns/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/fp/lastDayOfWeek/index' { + import { lastDayOfWeek } from 'date-fns/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/fp/lastDayOfWeekWithOptions/index' { + import { lastDayOfWeekWithOptions } from 'date-fns/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/fp/lastDayOfYear/index' { + import { lastDayOfYear } from 'date-fns/fp' + export default lastDayOfYear +} + +declare module 'date-fns/fp/lightFormat/index' { + import { lightFormat } from 'date-fns/fp' + export default lightFormat +} + +declare module 'date-fns/fp/max/index' { + import { max } from 'date-fns/fp' + export default max +} + +declare module 'date-fns/fp/milliseconds/index' { + import { milliseconds } from 'date-fns/fp' + export default milliseconds +} + +declare module 'date-fns/fp/millisecondsToHours/index' { + import { millisecondsToHours } from 'date-fns/fp' + export default millisecondsToHours +} + +declare module 'date-fns/fp/millisecondsToMinutes/index' { + import { millisecondsToMinutes } from 'date-fns/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/fp/millisecondsToSeconds/index' { + import { millisecondsToSeconds } from 'date-fns/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/fp/min/index' { + import { min } from 'date-fns/fp' + export default min +} + +declare module 'date-fns/fp/minutesToHours/index' { + import { minutesToHours } from 'date-fns/fp' + export default minutesToHours +} + +declare module 'date-fns/fp/minutesToMilliseconds/index' { + import { minutesToMilliseconds } from 'date-fns/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/fp/minutesToSeconds/index' { + import { minutesToSeconds } from 'date-fns/fp' + export default minutesToSeconds +} + +declare module 'date-fns/fp/monthsToQuarters/index' { + import { monthsToQuarters } from 'date-fns/fp' + export default monthsToQuarters +} + +declare module 'date-fns/fp/monthsToYears/index' { + import { monthsToYears } from 'date-fns/fp' + export default monthsToYears +} + +declare module 'date-fns/fp/nextDay/index' { + import { nextDay } from 'date-fns/fp' + export default nextDay +} + +declare module 'date-fns/fp/nextFriday/index' { + import { nextFriday } from 'date-fns/fp' + export default nextFriday +} + +declare module 'date-fns/fp/nextMonday/index' { + import { nextMonday } from 'date-fns/fp' + export default nextMonday +} + +declare module 'date-fns/fp/nextSaturday/index' { + import { nextSaturday } from 'date-fns/fp' + export default nextSaturday +} + +declare module 'date-fns/fp/nextSunday/index' { + import { nextSunday } from 'date-fns/fp' + export default nextSunday +} + +declare module 'date-fns/fp/nextThursday/index' { + import { nextThursday } from 'date-fns/fp' + export default nextThursday +} + +declare module 'date-fns/fp/nextTuesday/index' { + import { nextTuesday } from 'date-fns/fp' + export default nextTuesday +} + +declare module 'date-fns/fp/nextWednesday/index' { + import { nextWednesday } from 'date-fns/fp' + export default nextWednesday +} + +declare module 'date-fns/fp/parse/index' { + import { parse } from 'date-fns/fp' + export default parse +} + +declare module 'date-fns/fp/parseISO/index' { + import { parseISO } from 'date-fns/fp' + export default parseISO +} + +declare module 'date-fns/fp/parseISOWithOptions/index' { + import { parseISOWithOptions } from 'date-fns/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/fp/parseJSON/index' { + import { parseJSON } from 'date-fns/fp' + export default parseJSON +} + +declare module 'date-fns/fp/parseWithOptions/index' { + import { parseWithOptions } from 'date-fns/fp' + export default parseWithOptions +} + +declare module 'date-fns/fp/previousDay/index' { + import { previousDay } from 'date-fns/fp' + export default previousDay +} + +declare module 'date-fns/fp/previousFriday/index' { + import { previousFriday } from 'date-fns/fp' + export default previousFriday +} + +declare module 'date-fns/fp/previousMonday/index' { + import { previousMonday } from 'date-fns/fp' + export default previousMonday +} + +declare module 'date-fns/fp/previousSaturday/index' { + import { previousSaturday } from 'date-fns/fp' + export default previousSaturday +} + +declare module 'date-fns/fp/previousSunday/index' { + import { previousSunday } from 'date-fns/fp' + export default previousSunday +} + +declare module 'date-fns/fp/previousThursday/index' { + import { previousThursday } from 'date-fns/fp' + export default previousThursday +} + +declare module 'date-fns/fp/previousTuesday/index' { + import { previousTuesday } from 'date-fns/fp' + export default previousTuesday +} + +declare module 'date-fns/fp/previousWednesday/index' { + import { previousWednesday } from 'date-fns/fp' + export default previousWednesday +} + +declare module 'date-fns/fp/quartersToMonths/index' { + import { quartersToMonths } from 'date-fns/fp' + export default quartersToMonths +} + +declare module 'date-fns/fp/quartersToYears/index' { + import { quartersToYears } from 'date-fns/fp' + export default quartersToYears +} + +declare module 'date-fns/fp/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/fp/roundToNearestMinutesWithOptions/index' { + import { roundToNearestMinutesWithOptions } from 'date-fns/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/fp/secondsToHours/index' { + import { secondsToHours } from 'date-fns/fp' + export default secondsToHours +} + +declare module 'date-fns/fp/secondsToMilliseconds/index' { + import { secondsToMilliseconds } from 'date-fns/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/fp/secondsToMinutes/index' { + import { secondsToMinutes } from 'date-fns/fp' + export default secondsToMinutes +} + +declare module 'date-fns/fp/set/index' { + import { set } from 'date-fns/fp' + export default set +} + +declare module 'date-fns/fp/setDate/index' { + import { setDate } from 'date-fns/fp' + export default setDate +} + +declare module 'date-fns/fp/setDay/index' { + import { setDay } from 'date-fns/fp' + export default setDay +} + +declare module 'date-fns/fp/setDayOfYear/index' { + import { setDayOfYear } from 'date-fns/fp' + export default setDayOfYear +} + +declare module 'date-fns/fp/setDayWithOptions/index' { + import { setDayWithOptions } from 'date-fns/fp' + export default setDayWithOptions +} + +declare module 'date-fns/fp/setHours/index' { + import { setHours } from 'date-fns/fp' + export default setHours +} + +declare module 'date-fns/fp/setISODay/index' { + import { setISODay } from 'date-fns/fp' + export default setISODay +} + +declare module 'date-fns/fp/setISOWeek/index' { + import { setISOWeek } from 'date-fns/fp' + export default setISOWeek +} + +declare module 'date-fns/fp/setISOWeekYear/index' { + import { setISOWeekYear } from 'date-fns/fp' + export default setISOWeekYear +} + +declare module 'date-fns/fp/setMilliseconds/index' { + import { setMilliseconds } from 'date-fns/fp' + export default setMilliseconds +} + +declare module 'date-fns/fp/setMinutes/index' { + import { setMinutes } from 'date-fns/fp' + export default setMinutes +} + +declare module 'date-fns/fp/setMonth/index' { + import { setMonth } from 'date-fns/fp' + export default setMonth +} + +declare module 'date-fns/fp/setQuarter/index' { + import { setQuarter } from 'date-fns/fp' + export default setQuarter +} + +declare module 'date-fns/fp/setSeconds/index' { + import { setSeconds } from 'date-fns/fp' + export default setSeconds +} + +declare module 'date-fns/fp/setWeek/index' { + import { setWeek } from 'date-fns/fp' + export default setWeek +} + +declare module 'date-fns/fp/setWeekWithOptions/index' { + import { setWeekWithOptions } from 'date-fns/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/fp/setWeekYear/index' { + import { setWeekYear } from 'date-fns/fp' + export default setWeekYear +} + +declare module 'date-fns/fp/setWeekYearWithOptions/index' { + import { setWeekYearWithOptions } from 'date-fns/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/fp/setYear/index' { + import { setYear } from 'date-fns/fp' + export default setYear +} + +declare module 'date-fns/fp/startOfDay/index' { + import { startOfDay } from 'date-fns/fp' + export default startOfDay +} + +declare module 'date-fns/fp/startOfDecade/index' { + import { startOfDecade } from 'date-fns/fp' + export default startOfDecade +} + +declare module 'date-fns/fp/startOfHour/index' { + import { startOfHour } from 'date-fns/fp' + export default startOfHour +} + +declare module 'date-fns/fp/startOfISOWeek/index' { + import { startOfISOWeek } from 'date-fns/fp' + export default startOfISOWeek +} + +declare module 'date-fns/fp/startOfISOWeekYear/index' { + import { startOfISOWeekYear } from 'date-fns/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/fp/startOfMinute/index' { + import { startOfMinute } from 'date-fns/fp' + export default startOfMinute +} + +declare module 'date-fns/fp/startOfMonth/index' { + import { startOfMonth } from 'date-fns/fp' + export default startOfMonth +} + +declare module 'date-fns/fp/startOfQuarter/index' { + import { startOfQuarter } from 'date-fns/fp' + export default startOfQuarter +} + +declare module 'date-fns/fp/startOfSecond/index' { + import { startOfSecond } from 'date-fns/fp' + export default startOfSecond +} + +declare module 'date-fns/fp/startOfWeek/index' { + import { startOfWeek } from 'date-fns/fp' + export default startOfWeek +} + +declare module 'date-fns/fp/startOfWeekWithOptions/index' { + import { startOfWeekWithOptions } from 'date-fns/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/fp/startOfWeekYear/index' { + import { startOfWeekYear } from 'date-fns/fp' + export default startOfWeekYear +} + +declare module 'date-fns/fp/startOfWeekYearWithOptions/index' { + import { startOfWeekYearWithOptions } from 'date-fns/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/fp/startOfYear/index' { + import { startOfYear } from 'date-fns/fp' + export default startOfYear +} + +declare module 'date-fns/fp/sub/index' { + import { sub } from 'date-fns/fp' + export default sub +} + +declare module 'date-fns/fp/subBusinessDays/index' { + import { subBusinessDays } from 'date-fns/fp' + export default subBusinessDays +} + +declare module 'date-fns/fp/subDays/index' { + import { subDays } from 'date-fns/fp' + export default subDays +} + +declare module 'date-fns/fp/subHours/index' { + import { subHours } from 'date-fns/fp' + export default subHours +} + +declare module 'date-fns/fp/subISOWeekYears/index' { + import { subISOWeekYears } from 'date-fns/fp' + export default subISOWeekYears +} + +declare module 'date-fns/fp/subMilliseconds/index' { + import { subMilliseconds } from 'date-fns/fp' + export default subMilliseconds +} + +declare module 'date-fns/fp/subMinutes/index' { + import { subMinutes } from 'date-fns/fp' + export default subMinutes +} + +declare module 'date-fns/fp/subMonths/index' { + import { subMonths } from 'date-fns/fp' + export default subMonths +} + +declare module 'date-fns/fp/subQuarters/index' { + import { subQuarters } from 'date-fns/fp' + export default subQuarters +} + +declare module 'date-fns/fp/subSeconds/index' { + import { subSeconds } from 'date-fns/fp' + export default subSeconds +} + +declare module 'date-fns/fp/subWeeks/index' { + import { subWeeks } from 'date-fns/fp' + export default subWeeks +} + +declare module 'date-fns/fp/subYears/index' { + import { subYears } from 'date-fns/fp' + export default subYears +} + +declare module 'date-fns/fp/toDate/index' { + import { toDate } from 'date-fns/fp' + export default toDate +} + +declare module 'date-fns/fp/weeksToDays/index' { + import { weeksToDays } from 'date-fns/fp' + export default weeksToDays +} + +declare module 'date-fns/fp/yearsToMonths/index' { + import { yearsToMonths } from 'date-fns/fp' + export default yearsToMonths +} + +declare module 'date-fns/fp/yearsToQuarters/index' { + import { yearsToQuarters } from 'date-fns/fp' + export default yearsToQuarters +} + +declare module 'date-fns/fp/add/index.js' { + import { add } from 'date-fns/fp' + export default add +} + +declare module 'date-fns/fp/addBusinessDays/index.js' { + import { addBusinessDays } from 'date-fns/fp' + export default addBusinessDays +} + +declare module 'date-fns/fp/addDays/index.js' { + import { addDays } from 'date-fns/fp' + export default addDays +} + +declare module 'date-fns/fp/addHours/index.js' { + import { addHours } from 'date-fns/fp' + export default addHours +} + +declare module 'date-fns/fp/addISOWeekYears/index.js' { + import { addISOWeekYears } from 'date-fns/fp' + export default addISOWeekYears +} + +declare module 'date-fns/fp/addMilliseconds/index.js' { + import { addMilliseconds } from 'date-fns/fp' + export default addMilliseconds +} + +declare module 'date-fns/fp/addMinutes/index.js' { + import { addMinutes } from 'date-fns/fp' + export default addMinutes +} + +declare module 'date-fns/fp/addMonths/index.js' { + import { addMonths } from 'date-fns/fp' + export default addMonths +} + +declare module 'date-fns/fp/addQuarters/index.js' { + import { addQuarters } from 'date-fns/fp' + export default addQuarters +} + +declare module 'date-fns/fp/addSeconds/index.js' { + import { addSeconds } from 'date-fns/fp' + export default addSeconds +} + +declare module 'date-fns/fp/addWeeks/index.js' { + import { addWeeks } from 'date-fns/fp' + export default addWeeks +} + +declare module 'date-fns/fp/addYears/index.js' { + import { addYears } from 'date-fns/fp' + export default addYears +} + +declare module 'date-fns/fp/areIntervalsOverlapping/index.js' { + import { areIntervalsOverlapping } from 'date-fns/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/fp/areIntervalsOverlappingWithOptions/index.js' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/fp/clamp/index.js' { + import { clamp } from 'date-fns/fp' + export default clamp +} + +declare module 'date-fns/fp/closestIndexTo/index.js' { + import { closestIndexTo } from 'date-fns/fp' + export default closestIndexTo +} + +declare module 'date-fns/fp/closestTo/index.js' { + import { closestTo } from 'date-fns/fp' + export default closestTo +} + +declare module 'date-fns/fp/compareAsc/index.js' { + import { compareAsc } from 'date-fns/fp' + export default compareAsc +} + +declare module 'date-fns/fp/compareDesc/index.js' { + import { compareDesc } from 'date-fns/fp' + export default compareDesc +} + +declare module 'date-fns/fp/daysToWeeks/index.js' { + import { daysToWeeks } from 'date-fns/fp' + export default daysToWeeks +} + +declare module 'date-fns/fp/differenceInBusinessDays/index.js' { + import { differenceInBusinessDays } from 'date-fns/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/fp/differenceInCalendarDays/index.js' { + import { differenceInCalendarDays } from 'date-fns/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/fp/differenceInCalendarISOWeeks/index.js' { + import { differenceInCalendarISOWeeks } from 'date-fns/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/fp/differenceInCalendarISOWeekYears/index.js' { + import { differenceInCalendarISOWeekYears } from 'date-fns/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/fp/differenceInCalendarMonths/index.js' { + import { differenceInCalendarMonths } from 'date-fns/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/fp/differenceInCalendarQuarters/index.js' { + import { differenceInCalendarQuarters } from 'date-fns/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/fp/differenceInCalendarWeeks/index.js' { + import { differenceInCalendarWeeks } from 'date-fns/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/fp/differenceInCalendarWeeksWithOptions/index.js' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInCalendarYears/index.js' { + import { differenceInCalendarYears } from 'date-fns/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/fp/differenceInDays/index.js' { + import { differenceInDays } from 'date-fns/fp' + export default differenceInDays +} + +declare module 'date-fns/fp/differenceInHours/index.js' { + import { differenceInHours } from 'date-fns/fp' + export default differenceInHours +} + +declare module 'date-fns/fp/differenceInHoursWithOptions/index.js' { + import { differenceInHoursWithOptions } from 'date-fns/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/fp/differenceInISOWeekYears/index.js' { + import { differenceInISOWeekYears } from 'date-fns/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/fp/differenceInMilliseconds/index.js' { + import { differenceInMilliseconds } from 'date-fns/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/fp/differenceInMinutes/index.js' { + import { differenceInMinutes } from 'date-fns/fp' + export default differenceInMinutes +} + +declare module 'date-fns/fp/differenceInMinutesWithOptions/index.js' { + import { differenceInMinutesWithOptions } from 'date-fns/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/fp/differenceInMonths/index.js' { + import { differenceInMonths } from 'date-fns/fp' + export default differenceInMonths +} + +declare module 'date-fns/fp/differenceInQuarters/index.js' { + import { differenceInQuarters } from 'date-fns/fp' + export default differenceInQuarters +} + +declare module 'date-fns/fp/differenceInQuartersWithOptions/index.js' { + import { differenceInQuartersWithOptions } from 'date-fns/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/fp/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns/fp' + export default differenceInSeconds +} + +declare module 'date-fns/fp/differenceInSecondsWithOptions/index.js' { + import { differenceInSecondsWithOptions } from 'date-fns/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/fp/differenceInWeeks/index.js' { + import { differenceInWeeks } from 'date-fns/fp' + export default differenceInWeeks +} + +declare module 'date-fns/fp/differenceInWeeksWithOptions/index.js' { + import { differenceInWeeksWithOptions } from 'date-fns/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/fp/differenceInYears/index.js' { + import { differenceInYears } from 'date-fns/fp' + export default differenceInYears +} + +declare module 'date-fns/fp/eachDayOfInterval/index.js' { + import { eachDayOfInterval } from 'date-fns/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/fp/eachDayOfIntervalWithOptions/index.js' { + import { eachDayOfIntervalWithOptions } from 'date-fns/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachHourOfInterval/index.js' { + import { eachHourOfInterval } from 'date-fns/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/fp/eachHourOfIntervalWithOptions/index.js' { + import { eachHourOfIntervalWithOptions } from 'date-fns/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMinuteOfInterval/index.js' { + import { eachMinuteOfInterval } from 'date-fns/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/fp/eachMinuteOfIntervalWithOptions/index.js' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachMonthOfInterval/index.js' { + import { eachMonthOfInterval } from 'date-fns/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/fp/eachQuarterOfInterval/index.js' { + import { eachQuarterOfInterval } from 'date-fns/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfInterval/index.js' { + import { eachWeekendOfInterval } from 'date-fns/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/fp/eachWeekendOfMonth/index.js' { + import { eachWeekendOfMonth } from 'date-fns/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/fp/eachWeekendOfYear/index.js' { + import { eachWeekendOfYear } from 'date-fns/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/fp/eachWeekOfInterval/index.js' { + import { eachWeekOfInterval } from 'date-fns/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/fp/eachWeekOfIntervalWithOptions/index.js' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/fp/eachYearOfInterval/index.js' { + import { eachYearOfInterval } from 'date-fns/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/fp/endOfDay/index.js' { + import { endOfDay } from 'date-fns/fp' + export default endOfDay +} + +declare module 'date-fns/fp/endOfDecade/index.js' { + import { endOfDecade } from 'date-fns/fp' + export default endOfDecade +} + +declare module 'date-fns/fp/endOfDecadeWithOptions/index.js' { + import { endOfDecadeWithOptions } from 'date-fns/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/fp/endOfHour/index.js' { + import { endOfHour } from 'date-fns/fp' + export default endOfHour +} + +declare module 'date-fns/fp/endOfISOWeek/index.js' { + import { endOfISOWeek } from 'date-fns/fp' + export default endOfISOWeek +} + +declare module 'date-fns/fp/endOfISOWeekYear/index.js' { + import { endOfISOWeekYear } from 'date-fns/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/fp/endOfMinute/index.js' { + import { endOfMinute } from 'date-fns/fp' + export default endOfMinute +} + +declare module 'date-fns/fp/endOfMonth/index.js' { + import { endOfMonth } from 'date-fns/fp' + export default endOfMonth +} + +declare module 'date-fns/fp/endOfQuarter/index.js' { + import { endOfQuarter } from 'date-fns/fp' + export default endOfQuarter +} + +declare module 'date-fns/fp/endOfSecond/index.js' { + import { endOfSecond } from 'date-fns/fp' + export default endOfSecond +} + +declare module 'date-fns/fp/endOfWeek/index.js' { + import { endOfWeek } from 'date-fns/fp' + export default endOfWeek +} + +declare module 'date-fns/fp/endOfWeekWithOptions/index.js' { + import { endOfWeekWithOptions } from 'date-fns/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/fp/endOfYear/index.js' { + import { endOfYear } from 'date-fns/fp' + export default endOfYear +} + +declare module 'date-fns/fp/format/index.js' { + import { format } from 'date-fns/fp' + export default format +} + +declare module 'date-fns/fp/formatDistance/index.js' { + import { formatDistance } from 'date-fns/fp' + export default formatDistance +} + +declare module 'date-fns/fp/formatDistanceStrict/index.js' { + import { formatDistanceStrict } from 'date-fns/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/fp/formatDistanceStrictWithOptions/index.js' { + import { formatDistanceStrictWithOptions } from 'date-fns/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/fp/formatDistanceWithOptions/index.js' { + import { formatDistanceWithOptions } from 'date-fns/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/fp/formatDuration/index.js' { + import { formatDuration } from 'date-fns/fp' + export default formatDuration +} + +declare module 'date-fns/fp/formatDurationWithOptions/index.js' { + import { formatDurationWithOptions } from 'date-fns/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/fp/formatISO/index.js' { + import { formatISO } from 'date-fns/fp' + export default formatISO +} + +declare module 'date-fns/fp/formatISO9075/index.js' { + import { formatISO9075 } from 'date-fns/fp' + export default formatISO9075 +} + +declare module 'date-fns/fp/formatISO9075WithOptions/index.js' { + import { formatISO9075WithOptions } from 'date-fns/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/fp/formatISODuration/index.js' { + import { formatISODuration } from 'date-fns/fp' + export default formatISODuration +} + +declare module 'date-fns/fp/formatISOWithOptions/index.js' { + import { formatISOWithOptions } from 'date-fns/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/fp/formatRelative/index.js' { + import { formatRelative } from 'date-fns/fp' + export default formatRelative +} + +declare module 'date-fns/fp/formatRelativeWithOptions/index.js' { + import { formatRelativeWithOptions } from 'date-fns/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/fp/formatRFC3339/index.js' { + import { formatRFC3339 } from 'date-fns/fp' + export default formatRFC3339 +} + +declare module 'date-fns/fp/formatRFC3339WithOptions/index.js' { + import { formatRFC3339WithOptions } from 'date-fns/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/fp/formatRFC7231/index.js' { + import { formatRFC7231 } from 'date-fns/fp' + export default formatRFC7231 +} + +declare module 'date-fns/fp/formatWithOptions/index.js' { + import { formatWithOptions } from 'date-fns/fp' + export default formatWithOptions +} + +declare module 'date-fns/fp/fromUnixTime/index.js' { + import { fromUnixTime } from 'date-fns/fp' + export default fromUnixTime +} + +declare module 'date-fns/fp/getDate/index.js' { + import { getDate } from 'date-fns/fp' + export default getDate +} + +declare module 'date-fns/fp/getDay/index.js' { + import { getDay } from 'date-fns/fp' + export default getDay +} + +declare module 'date-fns/fp/getDayOfYear/index.js' { + import { getDayOfYear } from 'date-fns/fp' + export default getDayOfYear +} + +declare module 'date-fns/fp/getDaysInMonth/index.js' { + import { getDaysInMonth } from 'date-fns/fp' + export default getDaysInMonth +} + +declare module 'date-fns/fp/getDaysInYear/index.js' { + import { getDaysInYear } from 'date-fns/fp' + export default getDaysInYear +} + +declare module 'date-fns/fp/getDecade/index.js' { + import { getDecade } from 'date-fns/fp' + export default getDecade +} + +declare module 'date-fns/fp/getHours/index.js' { + import { getHours } from 'date-fns/fp' + export default getHours +} + +declare module 'date-fns/fp/getISODay/index.js' { + import { getISODay } from 'date-fns/fp' + export default getISODay +} + +declare module 'date-fns/fp/getISOWeek/index.js' { + import { getISOWeek } from 'date-fns/fp' + export default getISOWeek +} + +declare module 'date-fns/fp/getISOWeeksInYear/index.js' { + import { getISOWeeksInYear } from 'date-fns/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/fp/getISOWeekYear/index.js' { + import { getISOWeekYear } from 'date-fns/fp' + export default getISOWeekYear +} + +declare module 'date-fns/fp/getMilliseconds/index.js' { + import { getMilliseconds } from 'date-fns/fp' + export default getMilliseconds +} + +declare module 'date-fns/fp/getMinutes/index.js' { + import { getMinutes } from 'date-fns/fp' + export default getMinutes +} + +declare module 'date-fns/fp/getMonth/index.js' { + import { getMonth } from 'date-fns/fp' + export default getMonth +} + +declare module 'date-fns/fp/getOverlappingDaysInIntervals/index.js' { + import { getOverlappingDaysInIntervals } from 'date-fns/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/fp/getQuarter/index.js' { + import { getQuarter } from 'date-fns/fp' + export default getQuarter +} + +declare module 'date-fns/fp/getSeconds/index.js' { + import { getSeconds } from 'date-fns/fp' + export default getSeconds +} + +declare module 'date-fns/fp/getTime/index.js' { + import { getTime } from 'date-fns/fp' + export default getTime +} + +declare module 'date-fns/fp/getUnixTime/index.js' { + import { getUnixTime } from 'date-fns/fp' + export default getUnixTime +} + +declare module 'date-fns/fp/getWeek/index.js' { + import { getWeek } from 'date-fns/fp' + export default getWeek +} + +declare module 'date-fns/fp/getWeekOfMonth/index.js' { + import { getWeekOfMonth } from 'date-fns/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/fp/getWeekOfMonthWithOptions/index.js' { + import { getWeekOfMonthWithOptions } from 'date-fns/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/fp/getWeeksInMonth/index.js' { + import { getWeeksInMonth } from 'date-fns/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/fp/getWeeksInMonthWithOptions/index.js' { + import { getWeeksInMonthWithOptions } from 'date-fns/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/fp/getWeekWithOptions/index.js' { + import { getWeekWithOptions } from 'date-fns/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/fp/getWeekYear/index.js' { + import { getWeekYear } from 'date-fns/fp' + export default getWeekYear +} + +declare module 'date-fns/fp/getWeekYearWithOptions/index.js' { + import { getWeekYearWithOptions } from 'date-fns/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/fp/getYear/index.js' { + import { getYear } from 'date-fns/fp' + export default getYear +} + +declare module 'date-fns/fp/hoursToMilliseconds/index.js' { + import { hoursToMilliseconds } from 'date-fns/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/fp/hoursToMinutes/index.js' { + import { hoursToMinutes } from 'date-fns/fp' + export default hoursToMinutes +} + +declare module 'date-fns/fp/hoursToSeconds/index.js' { + import { hoursToSeconds } from 'date-fns/fp' + export default hoursToSeconds +} + +declare module 'date-fns/fp/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/fp' + export default intervalToDuration +} + +declare module 'date-fns/fp/intlFormat/index.js' { + import { intlFormat } from 'date-fns/fp' + export default intlFormat +} + +declare module 'date-fns/fp/intlFormatDistance/index.js' { + import { intlFormatDistance } from 'date-fns/fp' + export default intlFormatDistance +} + +declare module 'date-fns/fp/intlFormatDistanceWithOptions/index.js' { + import { intlFormatDistanceWithOptions } from 'date-fns/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/fp/isAfter/index.js' { + import { isAfter } from 'date-fns/fp' + export default isAfter +} + +declare module 'date-fns/fp/isBefore/index.js' { + import { isBefore } from 'date-fns/fp' + export default isBefore +} + +declare module 'date-fns/fp/isDate/index.js' { + import { isDate } from 'date-fns/fp' + export default isDate +} + +declare module 'date-fns/fp/isEqual/index.js' { + import { isEqual } from 'date-fns/fp' + export default isEqual +} + +declare module 'date-fns/fp/isExists/index.js' { + import { isExists } from 'date-fns/fp' + export default isExists +} + +declare module 'date-fns/fp/isFirstDayOfMonth/index.js' { + import { isFirstDayOfMonth } from 'date-fns/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/fp/isFriday/index.js' { + import { isFriday } from 'date-fns/fp' + export default isFriday +} + +declare module 'date-fns/fp/isLastDayOfMonth/index.js' { + import { isLastDayOfMonth } from 'date-fns/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/fp/isLeapYear/index.js' { + import { isLeapYear } from 'date-fns/fp' + export default isLeapYear +} + +declare module 'date-fns/fp/isMatch/index.js' { + import { isMatch } from 'date-fns/fp' + export default isMatch +} + +declare module 'date-fns/fp/isMatchWithOptions/index.js' { + import { isMatchWithOptions } from 'date-fns/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/fp/isMonday/index.js' { + import { isMonday } from 'date-fns/fp' + export default isMonday +} + +declare module 'date-fns/fp/isSameDay/index.js' { + import { isSameDay } from 'date-fns/fp' + export default isSameDay +} + +declare module 'date-fns/fp/isSameHour/index.js' { + import { isSameHour } from 'date-fns/fp' + export default isSameHour +} + +declare module 'date-fns/fp/isSameISOWeek/index.js' { + import { isSameISOWeek } from 'date-fns/fp' + export default isSameISOWeek +} + +declare module 'date-fns/fp/isSameISOWeekYear/index.js' { + import { isSameISOWeekYear } from 'date-fns/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/fp/isSameMinute/index.js' { + import { isSameMinute } from 'date-fns/fp' + export default isSameMinute +} + +declare module 'date-fns/fp/isSameMonth/index.js' { + import { isSameMonth } from 'date-fns/fp' + export default isSameMonth +} + +declare module 'date-fns/fp/isSameQuarter/index.js' { + import { isSameQuarter } from 'date-fns/fp' + export default isSameQuarter +} + +declare module 'date-fns/fp/isSameSecond/index.js' { + import { isSameSecond } from 'date-fns/fp' + export default isSameSecond +} + +declare module 'date-fns/fp/isSameWeek/index.js' { + import { isSameWeek } from 'date-fns/fp' + export default isSameWeek +} + +declare module 'date-fns/fp/isSameWeekWithOptions/index.js' { + import { isSameWeekWithOptions } from 'date-fns/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/fp/isSameYear/index.js' { + import { isSameYear } from 'date-fns/fp' + export default isSameYear +} + +declare module 'date-fns/fp/isSaturday/index.js' { + import { isSaturday } from 'date-fns/fp' + export default isSaturday +} + +declare module 'date-fns/fp/isSunday/index.js' { + import { isSunday } from 'date-fns/fp' + export default isSunday +} + +declare module 'date-fns/fp/isThursday/index.js' { + import { isThursday } from 'date-fns/fp' + export default isThursday +} + +declare module 'date-fns/fp/isTuesday/index.js' { + import { isTuesday } from 'date-fns/fp' + export default isTuesday +} + +declare module 'date-fns/fp/isValid/index.js' { + import { isValid } from 'date-fns/fp' + export default isValid +} + +declare module 'date-fns/fp/isWednesday/index.js' { + import { isWednesday } from 'date-fns/fp' + export default isWednesday +} + +declare module 'date-fns/fp/isWeekend/index.js' { + import { isWeekend } from 'date-fns/fp' + export default isWeekend +} + +declare module 'date-fns/fp/isWithinInterval/index.js' { + import { isWithinInterval } from 'date-fns/fp' + export default isWithinInterval +} + +declare module 'date-fns/fp/lastDayOfDecade/index.js' { + import { lastDayOfDecade } from 'date-fns/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/fp/lastDayOfISOWeek/index.js' { + import { lastDayOfISOWeek } from 'date-fns/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/fp/lastDayOfISOWeekYear/index.js' { + import { lastDayOfISOWeekYear } from 'date-fns/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/fp/lastDayOfMonth/index.js' { + import { lastDayOfMonth } from 'date-fns/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/fp/lastDayOfQuarter/index.js' { + import { lastDayOfQuarter } from 'date-fns/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/fp/lastDayOfQuarterWithOptions/index.js' { + import { lastDayOfQuarterWithOptions } from 'date-fns/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/fp/lastDayOfWeek/index.js' { + import { lastDayOfWeek } from 'date-fns/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/fp/lastDayOfWeekWithOptions/index.js' { + import { lastDayOfWeekWithOptions } from 'date-fns/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/fp/lastDayOfYear/index.js' { + import { lastDayOfYear } from 'date-fns/fp' + export default lastDayOfYear +} + +declare module 'date-fns/fp/lightFormat/index.js' { + import { lightFormat } from 'date-fns/fp' + export default lightFormat +} + +declare module 'date-fns/fp/max/index.js' { + import { max } from 'date-fns/fp' + export default max +} + +declare module 'date-fns/fp/milliseconds/index.js' { + import { milliseconds } from 'date-fns/fp' + export default milliseconds +} + +declare module 'date-fns/fp/millisecondsToHours/index.js' { + import { millisecondsToHours } from 'date-fns/fp' + export default millisecondsToHours +} + +declare module 'date-fns/fp/millisecondsToMinutes/index.js' { + import { millisecondsToMinutes } from 'date-fns/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/fp/millisecondsToSeconds/index.js' { + import { millisecondsToSeconds } from 'date-fns/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/fp/min/index.js' { + import { min } from 'date-fns/fp' + export default min +} + +declare module 'date-fns/fp/minutesToHours/index.js' { + import { minutesToHours } from 'date-fns/fp' + export default minutesToHours +} + +declare module 'date-fns/fp/minutesToMilliseconds/index.js' { + import { minutesToMilliseconds } from 'date-fns/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/fp/minutesToSeconds/index.js' { + import { minutesToSeconds } from 'date-fns/fp' + export default minutesToSeconds +} + +declare module 'date-fns/fp/monthsToQuarters/index.js' { + import { monthsToQuarters } from 'date-fns/fp' + export default monthsToQuarters +} + +declare module 'date-fns/fp/monthsToYears/index.js' { + import { monthsToYears } from 'date-fns/fp' + export default monthsToYears +} + +declare module 'date-fns/fp/nextDay/index.js' { + import { nextDay } from 'date-fns/fp' + export default nextDay +} + +declare module 'date-fns/fp/nextFriday/index.js' { + import { nextFriday } from 'date-fns/fp' + export default nextFriday +} + +declare module 'date-fns/fp/nextMonday/index.js' { + import { nextMonday } from 'date-fns/fp' + export default nextMonday +} + +declare module 'date-fns/fp/nextSaturday/index.js' { + import { nextSaturday } from 'date-fns/fp' + export default nextSaturday +} + +declare module 'date-fns/fp/nextSunday/index.js' { + import { nextSunday } from 'date-fns/fp' + export default nextSunday +} + +declare module 'date-fns/fp/nextThursday/index.js' { + import { nextThursday } from 'date-fns/fp' + export default nextThursday +} + +declare module 'date-fns/fp/nextTuesday/index.js' { + import { nextTuesday } from 'date-fns/fp' + export default nextTuesday +} + +declare module 'date-fns/fp/nextWednesday/index.js' { + import { nextWednesday } from 'date-fns/fp' + export default nextWednesday +} + +declare module 'date-fns/fp/parse/index.js' { + import { parse } from 'date-fns/fp' + export default parse +} + +declare module 'date-fns/fp/parseISO/index.js' { + import { parseISO } from 'date-fns/fp' + export default parseISO +} + +declare module 'date-fns/fp/parseISOWithOptions/index.js' { + import { parseISOWithOptions } from 'date-fns/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/fp/parseJSON/index.js' { + import { parseJSON } from 'date-fns/fp' + export default parseJSON +} + +declare module 'date-fns/fp/parseWithOptions/index.js' { + import { parseWithOptions } from 'date-fns/fp' + export default parseWithOptions +} + +declare module 'date-fns/fp/previousDay/index.js' { + import { previousDay } from 'date-fns/fp' + export default previousDay +} + +declare module 'date-fns/fp/previousFriday/index.js' { + import { previousFriday } from 'date-fns/fp' + export default previousFriday +} + +declare module 'date-fns/fp/previousMonday/index.js' { + import { previousMonday } from 'date-fns/fp' + export default previousMonday +} + +declare module 'date-fns/fp/previousSaturday/index.js' { + import { previousSaturday } from 'date-fns/fp' + export default previousSaturday +} + +declare module 'date-fns/fp/previousSunday/index.js' { + import { previousSunday } from 'date-fns/fp' + export default previousSunday +} + +declare module 'date-fns/fp/previousThursday/index.js' { + import { previousThursday } from 'date-fns/fp' + export default previousThursday +} + +declare module 'date-fns/fp/previousTuesday/index.js' { + import { previousTuesday } from 'date-fns/fp' + export default previousTuesday +} + +declare module 'date-fns/fp/previousWednesday/index.js' { + import { previousWednesday } from 'date-fns/fp' + export default previousWednesday +} + +declare module 'date-fns/fp/quartersToMonths/index.js' { + import { quartersToMonths } from 'date-fns/fp' + export default quartersToMonths +} + +declare module 'date-fns/fp/quartersToYears/index.js' { + import { quartersToYears } from 'date-fns/fp' + export default quartersToYears +} + +declare module 'date-fns/fp/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/fp/roundToNearestMinutesWithOptions/index.js' { + import { roundToNearestMinutesWithOptions } from 'date-fns/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/fp/secondsToHours/index.js' { + import { secondsToHours } from 'date-fns/fp' + export default secondsToHours +} + +declare module 'date-fns/fp/secondsToMilliseconds/index.js' { + import { secondsToMilliseconds } from 'date-fns/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/fp/secondsToMinutes/index.js' { + import { secondsToMinutes } from 'date-fns/fp' + export default secondsToMinutes +} + +declare module 'date-fns/fp/set/index.js' { + import { set } from 'date-fns/fp' + export default set +} + +declare module 'date-fns/fp/setDate/index.js' { + import { setDate } from 'date-fns/fp' + export default setDate +} + +declare module 'date-fns/fp/setDay/index.js' { + import { setDay } from 'date-fns/fp' + export default setDay +} + +declare module 'date-fns/fp/setDayOfYear/index.js' { + import { setDayOfYear } from 'date-fns/fp' + export default setDayOfYear +} + +declare module 'date-fns/fp/setDayWithOptions/index.js' { + import { setDayWithOptions } from 'date-fns/fp' + export default setDayWithOptions +} + +declare module 'date-fns/fp/setHours/index.js' { + import { setHours } from 'date-fns/fp' + export default setHours +} + +declare module 'date-fns/fp/setISODay/index.js' { + import { setISODay } from 'date-fns/fp' + export default setISODay +} + +declare module 'date-fns/fp/setISOWeek/index.js' { + import { setISOWeek } from 'date-fns/fp' + export default setISOWeek +} + +declare module 'date-fns/fp/setISOWeekYear/index.js' { + import { setISOWeekYear } from 'date-fns/fp' + export default setISOWeekYear +} + +declare module 'date-fns/fp/setMilliseconds/index.js' { + import { setMilliseconds } from 'date-fns/fp' + export default setMilliseconds +} + +declare module 'date-fns/fp/setMinutes/index.js' { + import { setMinutes } from 'date-fns/fp' + export default setMinutes +} + +declare module 'date-fns/fp/setMonth/index.js' { + import { setMonth } from 'date-fns/fp' + export default setMonth +} + +declare module 'date-fns/fp/setQuarter/index.js' { + import { setQuarter } from 'date-fns/fp' + export default setQuarter +} + +declare module 'date-fns/fp/setSeconds/index.js' { + import { setSeconds } from 'date-fns/fp' + export default setSeconds +} + +declare module 'date-fns/fp/setWeek/index.js' { + import { setWeek } from 'date-fns/fp' + export default setWeek +} + +declare module 'date-fns/fp/setWeekWithOptions/index.js' { + import { setWeekWithOptions } from 'date-fns/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/fp/setWeekYear/index.js' { + import { setWeekYear } from 'date-fns/fp' + export default setWeekYear +} + +declare module 'date-fns/fp/setWeekYearWithOptions/index.js' { + import { setWeekYearWithOptions } from 'date-fns/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/fp/setYear/index.js' { + import { setYear } from 'date-fns/fp' + export default setYear +} + +declare module 'date-fns/fp/startOfDay/index.js' { + import { startOfDay } from 'date-fns/fp' + export default startOfDay +} + +declare module 'date-fns/fp/startOfDecade/index.js' { + import { startOfDecade } from 'date-fns/fp' + export default startOfDecade +} + +declare module 'date-fns/fp/startOfHour/index.js' { + import { startOfHour } from 'date-fns/fp' + export default startOfHour +} + +declare module 'date-fns/fp/startOfISOWeek/index.js' { + import { startOfISOWeek } from 'date-fns/fp' + export default startOfISOWeek +} + +declare module 'date-fns/fp/startOfISOWeekYear/index.js' { + import { startOfISOWeekYear } from 'date-fns/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/fp/startOfMinute/index.js' { + import { startOfMinute } from 'date-fns/fp' + export default startOfMinute +} + +declare module 'date-fns/fp/startOfMonth/index.js' { + import { startOfMonth } from 'date-fns/fp' + export default startOfMonth +} + +declare module 'date-fns/fp/startOfQuarter/index.js' { + import { startOfQuarter } from 'date-fns/fp' + export default startOfQuarter +} + +declare module 'date-fns/fp/startOfSecond/index.js' { + import { startOfSecond } from 'date-fns/fp' + export default startOfSecond +} + +declare module 'date-fns/fp/startOfWeek/index.js' { + import { startOfWeek } from 'date-fns/fp' + export default startOfWeek +} + +declare module 'date-fns/fp/startOfWeekWithOptions/index.js' { + import { startOfWeekWithOptions } from 'date-fns/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/fp/startOfWeekYear/index.js' { + import { startOfWeekYear } from 'date-fns/fp' + export default startOfWeekYear +} + +declare module 'date-fns/fp/startOfWeekYearWithOptions/index.js' { + import { startOfWeekYearWithOptions } from 'date-fns/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/fp/startOfYear/index.js' { + import { startOfYear } from 'date-fns/fp' + export default startOfYear +} + +declare module 'date-fns/fp/sub/index.js' { + import { sub } from 'date-fns/fp' + export default sub +} + +declare module 'date-fns/fp/subBusinessDays/index.js' { + import { subBusinessDays } from 'date-fns/fp' + export default subBusinessDays +} + +declare module 'date-fns/fp/subDays/index.js' { + import { subDays } from 'date-fns/fp' + export default subDays +} + +declare module 'date-fns/fp/subHours/index.js' { + import { subHours } from 'date-fns/fp' + export default subHours +} + +declare module 'date-fns/fp/subISOWeekYears/index.js' { + import { subISOWeekYears } from 'date-fns/fp' + export default subISOWeekYears +} + +declare module 'date-fns/fp/subMilliseconds/index.js' { + import { subMilliseconds } from 'date-fns/fp' + export default subMilliseconds +} + +declare module 'date-fns/fp/subMinutes/index.js' { + import { subMinutes } from 'date-fns/fp' + export default subMinutes +} + +declare module 'date-fns/fp/subMonths/index.js' { + import { subMonths } from 'date-fns/fp' + export default subMonths +} + +declare module 'date-fns/fp/subQuarters/index.js' { + import { subQuarters } from 'date-fns/fp' + export default subQuarters +} + +declare module 'date-fns/fp/subSeconds/index.js' { + import { subSeconds } from 'date-fns/fp' + export default subSeconds +} + +declare module 'date-fns/fp/subWeeks/index.js' { + import { subWeeks } from 'date-fns/fp' + export default subWeeks +} + +declare module 'date-fns/fp/subYears/index.js' { + import { subYears } from 'date-fns/fp' + export default subYears +} + +declare module 'date-fns/fp/toDate/index.js' { + import { toDate } from 'date-fns/fp' + export default toDate +} + +declare module 'date-fns/fp/weeksToDays/index.js' { + import { weeksToDays } from 'date-fns/fp' + export default weeksToDays +} + +declare module 'date-fns/fp/yearsToMonths/index.js' { + import { yearsToMonths } from 'date-fns/fp' + export default yearsToMonths +} + +declare module 'date-fns/fp/yearsToQuarters/index.js' { + import { yearsToQuarters } from 'date-fns/fp' + export default yearsToQuarters +} + +// ECMAScript Module Functions + +declare module 'date-fns/esm' { + function add(date: Date | number, duration: Duration): Date + namespace add {} + + function addBusinessDays(date: Date | number, amount: number): Date + namespace addBusinessDays {} + + function addDays(date: Date | number, amount: number): Date + namespace addDays {} + + function addHours(date: Date | number, amount: number): Date + namespace addHours {} + + function addISOWeekYears(date: Date | number, amount: number): Date + namespace addISOWeekYears {} + + function addMilliseconds(date: Date | number, amount: number): Date + namespace addMilliseconds {} + + function addMinutes(date: Date | number, amount: number): Date + namespace addMinutes {} + + function addMonths(date: Date | number, amount: number): Date + namespace addMonths {} + + function addQuarters(date: Date | number, amount: number): Date + namespace addQuarters {} + + function addSeconds(date: Date | number, amount: number): Date + namespace addSeconds {} + + function addWeeks(date: Date | number, amount: number): Date + namespace addWeeks {} + + function addYears(date: Date | number, amount: number): Date + namespace addYears {} + + function areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean + } + ): boolean + namespace areIntervalsOverlapping {} + + function clamp(date: Date | number, interval: Interval): Date + namespace clamp {} + + function closestIndexTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): number | undefined + namespace closestIndexTo {} + + function closestTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): Date | undefined + namespace closestTo {} + + function compareAsc(dateLeft: Date | number, dateRight: Date | number): number + namespace compareAsc {} + + function compareDesc( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace compareDesc {} + + function daysToWeeks(days: number): number + namespace daysToWeeks {} + + function differenceInBusinessDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInBusinessDays {} + + function differenceInCalendarDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarDays {} + + function differenceInCalendarISOWeeks( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarISOWeeks {} + + function differenceInCalendarISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarISOWeekYears {} + + function differenceInCalendarMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarMonths {} + + function differenceInCalendarQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarQuarters {} + + function differenceInCalendarWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace differenceInCalendarWeeks {} + + function differenceInCalendarYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInCalendarYears {} + + function differenceInDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInDays {} + + function differenceInHours( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInHours {} + + function differenceInISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInISOWeekYears {} + + function differenceInMilliseconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMilliseconds {} + + function differenceInMinutes( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInMinutes {} + + function differenceInMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInMonths {} + + function differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInQuarters {} + + function differenceInSeconds( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInSeconds {} + + function differenceInWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + namespace differenceInWeeks {} + + function differenceInYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + namespace differenceInYears {} + + function eachDayOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachDayOfInterval {} + + function eachHourOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachHourOfInterval {} + + function eachMinuteOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + namespace eachMinuteOfInterval {} + + function eachMonthOfInterval(interval: Interval): Date[] + namespace eachMonthOfInterval {} + + function eachQuarterOfInterval(interval: Interval): Date[] + namespace eachQuarterOfInterval {} + + function eachWeekendOfInterval(interval: Interval): Date[] + namespace eachWeekendOfInterval {} + + function eachWeekendOfMonth(date: Date | number): Date[] + namespace eachWeekendOfMonth {} + + function eachWeekendOfYear(date: Date | number): Date[] + namespace eachWeekendOfYear {} + + function eachWeekOfInterval( + interval: Interval, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date[] + namespace eachWeekOfInterval {} + + function eachYearOfInterval(interval: Interval): Date[] + namespace eachYearOfInterval {} + + function endOfDay(date: Date | number): Date + namespace endOfDay {} + + function endOfDecade( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace endOfDecade {} + + function endOfHour(date: Date | number): Date + namespace endOfHour {} + + function endOfISOWeek(date: Date | number): Date + namespace endOfISOWeek {} + + function endOfISOWeekYear(date: Date | number): Date + namespace endOfISOWeekYear {} + + function endOfMinute(date: Date | number): Date + namespace endOfMinute {} + + function endOfMonth(date: Date | number): Date + namespace endOfMonth {} + + function endOfQuarter(date: Date | number): Date + namespace endOfQuarter {} + + function endOfSecond(date: Date | number): Date + namespace endOfSecond {} + + function endOfToday(): Date + namespace endOfToday {} + + function endOfTomorrow(): Date + namespace endOfTomorrow {} + + function endOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace endOfWeek {} + + function endOfYear(date: Date | number): Date + namespace endOfYear {} + + function endOfYesterday(): Date + namespace endOfYesterday {} + + function format( + date: Date | number, + format: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: number + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): string + namespace format {} + + function formatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + namespace formatDistance {} + + function formatDistanceStrict( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + namespace formatDistanceStrict {} + + function formatDistanceToNow( + date: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + namespace formatDistanceToNow {} + + function formatDistanceToNowStrict( + date: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + namespace formatDistanceToNowStrict {} + + function formatDuration( + duration: Duration, + options?: { + format?: string[] + zero?: boolean + delimiter?: string + locale?: Locale + } + ): string + namespace formatDuration {} + + function formatISO( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + namespace formatISO {} + + function formatISO9075( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + namespace formatISO9075 {} + + function formatISODuration(duration: Duration): string + namespace formatISODuration {} + + function formatRelative( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): string + namespace formatRelative {} + + function formatRFC3339( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3 + } + ): string + namespace formatRFC3339 {} + + function formatRFC7231(date: Date | number): string + namespace formatRFC7231 {} + + function fromUnixTime(unixTime: number): Date + namespace fromUnixTime {} + + function getDate(date: Date | number): number + namespace getDate {} + + function getDay(date: Date | number): 0 | 1 | 2 | 3 | 4 | 5 | 6 + namespace getDay {} + + function getDayOfYear(date: Date | number): number + namespace getDayOfYear {} + + function getDaysInMonth(date: Date | number): number + namespace getDaysInMonth {} + + function getDaysInYear(date: Date | number): number + namespace getDaysInYear {} + + function getDecade(date: Date | number): number + namespace getDecade {} + + function getDefaultOptions(): Object + namespace getDefaultOptions {} + + function getHours(date: Date | number): number + namespace getHours {} + + function getISODay(date: Date | number): number + namespace getISODay {} + + function getISOWeek(date: Date | number): number + namespace getISOWeek {} + + function getISOWeeksInYear(date: Date | number): number + namespace getISOWeeksInYear {} + + function getISOWeekYear(date: Date | number): number + namespace getISOWeekYear {} + + function getMilliseconds(date: Date | number): number + namespace getMilliseconds {} + + function getMinutes(date: Date | number): number + namespace getMinutes {} + + function getMonth(date: Date | number): number + namespace getMonth {} + + function getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval + ): number + namespace getOverlappingDaysInIntervals {} + + function getQuarter(date: Date | number): number + namespace getQuarter {} + + function getSeconds(date: Date | number): number + namespace getSeconds {} + + function getTime(date: Date | number): number + namespace getTime {} + + function getUnixTime(date: Date | number): number + namespace getUnixTime {} + + function getWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + namespace getWeek {} + + function getWeekOfMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace getWeekOfMonth {} + + function getWeeksInMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + namespace getWeeksInMonth {} + + function getWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + namespace getWeekYear {} + + function getYear(date: Date | number): number + namespace getYear {} + + function hoursToMilliseconds(hours: number): number + namespace hoursToMilliseconds {} + + function hoursToMinutes(hours: number): number + namespace hoursToMinutes {} + + function hoursToSeconds(hours: number): number + namespace hoursToSeconds {} + + function intervalToDuration(interval: Interval): Duration + namespace intervalToDuration {} + + function intlFormat( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit' + weekday?: 'narrow' | 'short' | 'long' + era?: 'narrow' | 'short' | 'long' + year?: 'numeric' | '2-digit' + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' + day?: 'numeric' | '2-digit' + hour?: 'numeric' | '2-digit' + minute?: 'numeric' | '2-digit' + second?: 'numeric' | '2-digit' + timeZoneName?: 'short' | 'long' + formatMatcher?: 'basic' | 'best fit' + hour12?: boolean + timeZone?: string + }, + localeOptions?: { + locale?: string | string[] + } + ): string + namespace intlFormat {} + + function intlFormatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string + locale?: string | string[] + localeMatcher?: string + numeric?: string + style?: string + } + ): string + namespace intlFormatDistance {} + + function isAfter(date: Date | number, dateToCompare: Date | number): boolean + namespace isAfter {} + + function isBefore(date: Date | number, dateToCompare: Date | number): boolean + namespace isBefore {} + + function isDate(value: any): boolean + namespace isDate {} + + function isEqual(dateLeft: Date | number, dateRight: Date | number): boolean + namespace isEqual {} + + function isExists(year: number, month: number, day: number): boolean + namespace isExists {} + + function isFirstDayOfMonth(date: Date | number): boolean + namespace isFirstDayOfMonth {} + + function isFriday(date: Date | number): boolean + namespace isFriday {} + + function isFuture(date: Date | number): boolean + namespace isFuture {} + + function isLastDayOfMonth(date: Date | number): boolean + namespace isLastDayOfMonth {} + + function isLeapYear(date: Date | number): boolean + namespace isLeapYear {} + + function isMatch( + dateString: string, + formatString: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): boolean + namespace isMatch {} + + function isMonday(date: Date | number): boolean + namespace isMonday {} + + function isPast(date: Date | number): boolean + namespace isPast {} + + function isSameDay(dateLeft: Date | number, dateRight: Date | number): boolean + namespace isSameDay {} + + function isSameHour( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameHour {} + + function isSameISOWeek( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameISOWeek {} + + function isSameISOWeekYear( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameISOWeekYear {} + + function isSameMinute( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameMinute {} + + function isSameMonth( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameMonth {} + + function isSameQuarter( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameQuarter {} + + function isSameSecond( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameSecond {} + + function isSameWeek( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + namespace isSameWeek {} + + function isSameYear( + dateLeft: Date | number, + dateRight: Date | number + ): boolean + namespace isSameYear {} + + function isSaturday(date: Date | number): boolean + namespace isSaturday {} + + function isSunday(date: Date | number): boolean + namespace isSunday {} + + function isThisHour(date: Date | number): boolean + namespace isThisHour {} + + function isThisISOWeek(date: Date | number): boolean + namespace isThisISOWeek {} + + function isThisMinute(date: Date | number): boolean + namespace isThisMinute {} + + function isThisMonth(date: Date | number): boolean + namespace isThisMonth {} + + function isThisQuarter(date: Date | number): boolean + namespace isThisQuarter {} + + function isThisSecond(date: Date | number): boolean + namespace isThisSecond {} + + function isThisWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + namespace isThisWeek {} + + function isThisYear(date: Date | number): boolean + namespace isThisYear {} + + function isThursday(date: Date | number): boolean + namespace isThursday {} + + function isToday(date: Date | number): boolean + namespace isToday {} + + function isTomorrow(date: Date | number): boolean + namespace isTomorrow {} + + function isTuesday(date: Date | number): boolean + namespace isTuesday {} + + function isValid(date: any): boolean + namespace isValid {} + + function isWednesday(date: Date | number): boolean + namespace isWednesday {} + + function isWeekend(date: Date | number): boolean + namespace isWeekend {} + + function isWithinInterval(date: Date | number, interval: Interval): boolean + namespace isWithinInterval {} + + function isYesterday(date: Date | number): boolean + namespace isYesterday {} + + function lastDayOfDecade(date: Date | number): Date + namespace lastDayOfDecade {} + + function lastDayOfISOWeek(date: Date | number): Date + namespace lastDayOfISOWeek {} + + function lastDayOfISOWeekYear(date: Date | number): Date + namespace lastDayOfISOWeekYear {} + + function lastDayOfMonth(date: Date | number): Date + namespace lastDayOfMonth {} + + function lastDayOfQuarter( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace lastDayOfQuarter {} + + function lastDayOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace lastDayOfWeek {} + + function lastDayOfYear(date: Date | number): Date + namespace lastDayOfYear {} + + function lightFormat(date: Date | number, format: string): string + namespace lightFormat {} + + function max(datesArray: (Date | number)[]): Date + namespace max {} + + function milliseconds(duration: Duration): number + namespace milliseconds {} + + function millisecondsToHours(milliseconds: number): number + namespace millisecondsToHours {} + + function millisecondsToMinutes(milliseconds: number): number + namespace millisecondsToMinutes {} + + function millisecondsToSeconds(milliseconds: number): number + namespace millisecondsToSeconds {} + + function min(datesArray: (Date | number)[]): Date + namespace min {} + + function minutesToHours(minutes: number): number + namespace minutesToHours {} + + function minutesToMilliseconds(minutes: number): number + namespace minutesToMilliseconds {} + + function minutesToSeconds(minutes: number): number + namespace minutesToSeconds {} + + function monthsToQuarters(months: number): number + namespace monthsToQuarters {} + + function monthsToYears(months: number): number + namespace monthsToYears {} + + function nextDay(date: Date | number, day: Day): Date + namespace nextDay {} + + function nextFriday(date: Date | number): Date + namespace nextFriday {} + + function nextMonday(date: Date | number): Date + namespace nextMonday {} + + function nextSaturday(date: Date | number): Date + namespace nextSaturday {} + + function nextSunday(date: Date | number): Date + namespace nextSunday {} + + function nextThursday(date: Date | number): Date + namespace nextThursday {} + + function nextTuesday(date: Date | number): Date + namespace nextTuesday {} + + function nextWednesday(date: Date | number): Date + namespace nextWednesday {} + + function parse( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): Date + namespace parse {} + + function parseISO( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + namespace parseISO {} + + function parseJSON(argument: string | number | Date): Date + namespace parseJSON {} + + function previousDay(date: Date | number, day: number): Date + namespace previousDay {} + + function previousFriday(date: Date | number): Date + namespace previousFriday {} + + function previousMonday(date: Date | number): Date + namespace previousMonday {} + + function previousSaturday(date: Date | number): Date + namespace previousSaturday {} + + function previousSunday(date: Date | number): Date + namespace previousSunday {} + + function previousThursday(date: Date | number): Date + namespace previousThursday {} + + function previousTuesday(date: Date | number): Date + namespace previousTuesday {} + + function previousWednesday(date: Date | number): Date + namespace previousWednesday {} + + function quartersToMonths(quarters: number): number + namespace quartersToMonths {} + + function quartersToYears(quarters: number): number + namespace quartersToYears {} + + function roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + roundingMethod?: string + } + ): Date + namespace roundToNearestMinutes {} + + function secondsToHours(seconds: number): number + namespace secondsToHours {} + + function secondsToMilliseconds(seconds: number): number + namespace secondsToMilliseconds {} + + function secondsToMinutes(seconds: number): number + namespace secondsToMinutes {} + + function set( + date: Date | number, + values: { + year?: number + month?: number + date?: number + hours?: number + minutes?: number + seconds?: number + milliseconds?: number + } + ): Date + namespace set {} + + function setDate(date: Date | number, dayOfMonth: number): Date + namespace setDate {} + + function setDay( + date: Date | number, + day: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace setDay {} + + function setDayOfYear(date: Date | number, dayOfYear: number): Date + namespace setDayOfYear {} + + function setDefaultOptions(newOptions: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + }): void + namespace setDefaultOptions {} + + function setHours(date: Date | number, hours: number): Date + namespace setHours {} + + function setISODay(date: Date | number, day: number): Date + namespace setISODay {} + + function setISOWeek(date: Date | number, isoWeek: number): Date + namespace setISOWeek {} + + function setISOWeekYear(date: Date | number, isoWeekYear: number): Date + namespace setISOWeekYear {} + + function setMilliseconds(date: Date | number, milliseconds: number): Date + namespace setMilliseconds {} + + function setMinutes(date: Date | number, minutes: number): Date + namespace setMinutes {} + + function setMonth(date: Date | number, month: number): Date + namespace setMonth {} + + function setQuarter(date: Date | number, quarter: number): Date + namespace setQuarter {} + + function setSeconds(date: Date | number, seconds: number): Date + namespace setSeconds {} + + function setWeek( + date: Date | number, + week: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace setWeek {} + + function setWeekYear( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace setWeekYear {} + + function setYear(date: Date | number, year: number): Date + namespace setYear {} + + function startOfDay(date: Date | number): Date + namespace startOfDay {} + + function startOfDecade(date: Date | number): Date + namespace startOfDecade {} + + function startOfHour(date: Date | number): Date + namespace startOfHour {} + + function startOfISOWeek(date: Date | number): Date + namespace startOfISOWeek {} + + function startOfISOWeekYear(date: Date | number): Date + namespace startOfISOWeekYear {} + + function startOfMinute(date: Date | number): Date + namespace startOfMinute {} + + function startOfMonth(date: Date | number): Date + namespace startOfMonth {} + + function startOfQuarter(date: Date | number): Date + namespace startOfQuarter {} + + function startOfSecond(date: Date | number): Date + namespace startOfSecond {} + + function startOfToday(): Date + namespace startOfToday {} + + function startOfTomorrow(): Date + namespace startOfTomorrow {} + + function startOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + namespace startOfWeek {} + + function startOfWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + namespace startOfWeekYear {} + + function startOfYear(date: Date | number): Date + namespace startOfYear {} + + function startOfYesterday(): Date + namespace startOfYesterday {} + + function sub(date: Date | number, duration: Duration): Date + namespace sub {} + + function subBusinessDays(date: Date | number, amount: number): Date + namespace subBusinessDays {} + + function subDays(date: Date | number, amount: number): Date + namespace subDays {} + + function subHours(date: Date | number, amount: number): Date + namespace subHours {} + + function subISOWeekYears(date: Date | number, amount: number): Date + namespace subISOWeekYears {} + + function subMilliseconds(date: Date | number, amount: number): Date + namespace subMilliseconds {} + + function subMinutes(date: Date | number, amount: number): Date + namespace subMinutes {} + + function subMonths(date: Date | number, amount: number): Date + namespace subMonths {} + + function subQuarters(date: Date | number, amount: number): Date + namespace subQuarters {} + + function subSeconds(date: Date | number, amount: number): Date + namespace subSeconds {} + + function subWeeks(date: Date | number, amount: number): Date + namespace subWeeks {} + + function subYears(date: Date | number, amount: number): Date + namespace subYears {} + + function toDate(argument: Date | number): Date + namespace toDate {} + + function weeksToDays(weeks: number): number + namespace weeksToDays {} + + function yearsToMonths(years: number): number + namespace yearsToMonths {} + + function yearsToQuarters(years: number): number + namespace yearsToQuarters {} + + const daysInWeek: number + + const daysInYear: number + + const maxTime: number + + const millisecondsInMinute: number + + const millisecondsInHour: number + + const millisecondsInSecond: number + + const minTime: number + + const minutesInHour: number + + const monthsInQuarter: number + + const monthsInYear: number + + const quartersInYear: number + + const secondsInHour: number + + const secondsInMinute: number + + const secondsInDay: number + + const secondsInWeek: number + + const secondsInYear: number + + const secondsInMonth: number + + const secondsInQuarter: number +} + +declare module 'date-fns/esm/add' { + import { add } from 'date-fns/esm' + export default add +} + +declare module 'date-fns/esm/addBusinessDays' { + import { addBusinessDays } from 'date-fns/esm' + export default addBusinessDays +} + +declare module 'date-fns/esm/addDays' { + import { addDays } from 'date-fns/esm' + export default addDays +} + +declare module 'date-fns/esm/addHours' { + import { addHours } from 'date-fns/esm' + export default addHours +} + +declare module 'date-fns/esm/addISOWeekYears' { + import { addISOWeekYears } from 'date-fns/esm' + export default addISOWeekYears +} + +declare module 'date-fns/esm/addMilliseconds' { + import { addMilliseconds } from 'date-fns/esm' + export default addMilliseconds +} + +declare module 'date-fns/esm/addMinutes' { + import { addMinutes } from 'date-fns/esm' + export default addMinutes +} + +declare module 'date-fns/esm/addMonths' { + import { addMonths } from 'date-fns/esm' + export default addMonths +} + +declare module 'date-fns/esm/addQuarters' { + import { addQuarters } from 'date-fns/esm' + export default addQuarters +} + +declare module 'date-fns/esm/addSeconds' { + import { addSeconds } from 'date-fns/esm' + export default addSeconds +} + +declare module 'date-fns/esm/addWeeks' { + import { addWeeks } from 'date-fns/esm' + export default addWeeks +} + +declare module 'date-fns/esm/addYears' { + import { addYears } from 'date-fns/esm' + export default addYears +} + +declare module 'date-fns/esm/areIntervalsOverlapping' { + import { areIntervalsOverlapping } from 'date-fns/esm' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/clamp' { + import { clamp } from 'date-fns/esm' + export default clamp +} + +declare module 'date-fns/esm/closestIndexTo' { + import { closestIndexTo } from 'date-fns/esm' + export default closestIndexTo +} + +declare module 'date-fns/esm/closestTo' { + import { closestTo } from 'date-fns/esm' + export default closestTo +} + +declare module 'date-fns/esm/compareAsc' { + import { compareAsc } from 'date-fns/esm' + export default compareAsc +} + +declare module 'date-fns/esm/compareDesc' { + import { compareDesc } from 'date-fns/esm' + export default compareDesc +} + +declare module 'date-fns/esm/daysToWeeks' { + import { daysToWeeks } from 'date-fns/esm' + export default daysToWeeks +} + +declare module 'date-fns/esm/differenceInBusinessDays' { + import { differenceInBusinessDays } from 'date-fns/esm' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/differenceInCalendarDays' { + import { differenceInCalendarDays } from 'date-fns/esm' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/differenceInCalendarISOWeeks' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/differenceInCalendarISOWeekYears' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/differenceInCalendarMonths' { + import { differenceInCalendarMonths } from 'date-fns/esm' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/differenceInCalendarQuarters' { + import { differenceInCalendarQuarters } from 'date-fns/esm' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/differenceInCalendarWeeks' { + import { differenceInCalendarWeeks } from 'date-fns/esm' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/differenceInCalendarYears' { + import { differenceInCalendarYears } from 'date-fns/esm' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/differenceInDays' { + import { differenceInDays } from 'date-fns/esm' + export default differenceInDays +} + +declare module 'date-fns/esm/differenceInHours' { + import { differenceInHours } from 'date-fns/esm' + export default differenceInHours +} + +declare module 'date-fns/esm/differenceInISOWeekYears' { + import { differenceInISOWeekYears } from 'date-fns/esm' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/differenceInMilliseconds' { + import { differenceInMilliseconds } from 'date-fns/esm' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/differenceInMinutes' { + import { differenceInMinutes } from 'date-fns/esm' + export default differenceInMinutes +} + +declare module 'date-fns/esm/differenceInMonths' { + import { differenceInMonths } from 'date-fns/esm' + export default differenceInMonths +} + +declare module 'date-fns/esm/differenceInQuarters' { + import { differenceInQuarters } from 'date-fns/esm' + export default differenceInQuarters +} + +declare module 'date-fns/esm/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns/esm' + export default differenceInSeconds +} + +declare module 'date-fns/esm/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns/esm' + export default differenceInWeeks +} + +declare module 'date-fns/esm/differenceInYears' { + import { differenceInYears } from 'date-fns/esm' + export default differenceInYears +} + +declare module 'date-fns/esm/eachDayOfInterval' { + import { eachDayOfInterval } from 'date-fns/esm' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/eachHourOfInterval' { + import { eachHourOfInterval } from 'date-fns/esm' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/eachMinuteOfInterval' { + import { eachMinuteOfInterval } from 'date-fns/esm' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/eachMonthOfInterval' { + import { eachMonthOfInterval } from 'date-fns/esm' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/eachQuarterOfInterval' { + import { eachQuarterOfInterval } from 'date-fns/esm' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfInterval' { + import { eachWeekendOfInterval } from 'date-fns/esm' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfMonth' { + import { eachWeekendOfMonth } from 'date-fns/esm' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/eachWeekendOfYear' { + import { eachWeekendOfYear } from 'date-fns/esm' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/eachWeekOfInterval' { + import { eachWeekOfInterval } from 'date-fns/esm' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/eachYearOfInterval' { + import { eachYearOfInterval } from 'date-fns/esm' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/endOfDay' { + import { endOfDay } from 'date-fns/esm' + export default endOfDay +} + +declare module 'date-fns/esm/endOfDecade' { + import { endOfDecade } from 'date-fns/esm' + export default endOfDecade +} + +declare module 'date-fns/esm/endOfHour' { + import { endOfHour } from 'date-fns/esm' + export default endOfHour +} + +declare module 'date-fns/esm/endOfISOWeek' { + import { endOfISOWeek } from 'date-fns/esm' + export default endOfISOWeek +} + +declare module 'date-fns/esm/endOfISOWeekYear' { + import { endOfISOWeekYear } from 'date-fns/esm' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/endOfMinute' { + import { endOfMinute } from 'date-fns/esm' + export default endOfMinute +} + +declare module 'date-fns/esm/endOfMonth' { + import { endOfMonth } from 'date-fns/esm' + export default endOfMonth +} + +declare module 'date-fns/esm/endOfQuarter' { + import { endOfQuarter } from 'date-fns/esm' + export default endOfQuarter +} + +declare module 'date-fns/esm/endOfSecond' { + import { endOfSecond } from 'date-fns/esm' + export default endOfSecond +} + +declare module 'date-fns/esm/endOfToday' { + import { endOfToday } from 'date-fns/esm' + export default endOfToday +} + +declare module 'date-fns/esm/endOfTomorrow' { + import { endOfTomorrow } from 'date-fns/esm' + export default endOfTomorrow +} + +declare module 'date-fns/esm/endOfWeek' { + import { endOfWeek } from 'date-fns/esm' + export default endOfWeek +} + +declare module 'date-fns/esm/endOfYear' { + import { endOfYear } from 'date-fns/esm' + export default endOfYear +} + +declare module 'date-fns/esm/endOfYesterday' { + import { endOfYesterday } from 'date-fns/esm' + export default endOfYesterday +} + +declare module 'date-fns/esm/format' { + import { format } from 'date-fns/esm' + export default format +} + +declare module 'date-fns/esm/formatDistance' { + import { formatDistance } from 'date-fns/esm' + export default formatDistance +} + +declare module 'date-fns/esm/formatDistanceStrict' { + import { formatDistanceStrict } from 'date-fns/esm' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/formatDistanceToNow' { + import { formatDistanceToNow } from 'date-fns/esm' + export default formatDistanceToNow +} + +declare module 'date-fns/esm/formatDistanceToNowStrict' { + import { formatDistanceToNowStrict } from 'date-fns/esm' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/esm/formatDuration' { + import { formatDuration } from 'date-fns/esm' + export default formatDuration +} + +declare module 'date-fns/esm/formatISO' { + import { formatISO } from 'date-fns/esm' + export default formatISO +} + +declare module 'date-fns/esm/formatISO9075' { + import { formatISO9075 } from 'date-fns/esm' + export default formatISO9075 +} + +declare module 'date-fns/esm/formatISODuration' { + import { formatISODuration } from 'date-fns/esm' + export default formatISODuration +} + +declare module 'date-fns/esm/formatRelative' { + import { formatRelative } from 'date-fns/esm' + export default formatRelative +} + +declare module 'date-fns/esm/formatRFC3339' { + import { formatRFC3339 } from 'date-fns/esm' + export default formatRFC3339 +} + +declare module 'date-fns/esm/formatRFC7231' { + import { formatRFC7231 } from 'date-fns/esm' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fromUnixTime' { + import { fromUnixTime } from 'date-fns/esm' + export default fromUnixTime +} + +declare module 'date-fns/esm/getDate' { + import { getDate } from 'date-fns/esm' + export default getDate +} + +declare module 'date-fns/esm/getDay' { + import { getDay } from 'date-fns/esm' + export default getDay +} + +declare module 'date-fns/esm/getDayOfYear' { + import { getDayOfYear } from 'date-fns/esm' + export default getDayOfYear +} + +declare module 'date-fns/esm/getDaysInMonth' { + import { getDaysInMonth } from 'date-fns/esm' + export default getDaysInMonth +} + +declare module 'date-fns/esm/getDaysInYear' { + import { getDaysInYear } from 'date-fns/esm' + export default getDaysInYear +} + +declare module 'date-fns/esm/getDecade' { + import { getDecade } from 'date-fns/esm' + export default getDecade +} + +declare module 'date-fns/esm/getDefaultOptions' { + import { getDefaultOptions } from 'date-fns/esm' + export default getDefaultOptions +} + +declare module 'date-fns/esm/getHours' { + import { getHours } from 'date-fns/esm' + export default getHours +} + +declare module 'date-fns/esm/getISODay' { + import { getISODay } from 'date-fns/esm' + export default getISODay +} + +declare module 'date-fns/esm/getISOWeek' { + import { getISOWeek } from 'date-fns/esm' + export default getISOWeek +} + +declare module 'date-fns/esm/getISOWeeksInYear' { + import { getISOWeeksInYear } from 'date-fns/esm' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/getISOWeekYear' { + import { getISOWeekYear } from 'date-fns/esm' + export default getISOWeekYear +} + +declare module 'date-fns/esm/getMilliseconds' { + import { getMilliseconds } from 'date-fns/esm' + export default getMilliseconds +} + +declare module 'date-fns/esm/getMinutes' { + import { getMinutes } from 'date-fns/esm' + export default getMinutes +} + +declare module 'date-fns/esm/getMonth' { + import { getMonth } from 'date-fns/esm' + export default getMonth +} + +declare module 'date-fns/esm/getOverlappingDaysInIntervals' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/getQuarter' { + import { getQuarter } from 'date-fns/esm' + export default getQuarter +} + +declare module 'date-fns/esm/getSeconds' { + import { getSeconds } from 'date-fns/esm' + export default getSeconds +} + +declare module 'date-fns/esm/getTime' { + import { getTime } from 'date-fns/esm' + export default getTime +} + +declare module 'date-fns/esm/getUnixTime' { + import { getUnixTime } from 'date-fns/esm' + export default getUnixTime +} + +declare module 'date-fns/esm/getWeek' { + import { getWeek } from 'date-fns/esm' + export default getWeek +} + +declare module 'date-fns/esm/getWeekOfMonth' { + import { getWeekOfMonth } from 'date-fns/esm' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/getWeeksInMonth' { + import { getWeeksInMonth } from 'date-fns/esm' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/getWeekYear' { + import { getWeekYear } from 'date-fns/esm' + export default getWeekYear +} + +declare module 'date-fns/esm/getYear' { + import { getYear } from 'date-fns/esm' + export default getYear +} + +declare module 'date-fns/esm/hoursToMilliseconds' { + import { hoursToMilliseconds } from 'date-fns/esm' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/hoursToMinutes' { + import { hoursToMinutes } from 'date-fns/esm' + export default hoursToMinutes +} + +declare module 'date-fns/esm/hoursToSeconds' { + import { hoursToSeconds } from 'date-fns/esm' + export default hoursToSeconds +} + +declare module 'date-fns/esm/intervalToDuration' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +declare module 'date-fns/esm/intlFormat' { + import { intlFormat } from 'date-fns/esm' + export default intlFormat +} + +declare module 'date-fns/esm/intlFormatDistance' { + import { intlFormatDistance } from 'date-fns/esm' + export default intlFormatDistance +} + +declare module 'date-fns/esm/isAfter' { + import { isAfter } from 'date-fns/esm' + export default isAfter +} + +declare module 'date-fns/esm/isBefore' { + import { isBefore } from 'date-fns/esm' + export default isBefore +} + +declare module 'date-fns/esm/isDate' { + import { isDate } from 'date-fns/esm' + export default isDate +} + +declare module 'date-fns/esm/isEqual' { + import { isEqual } from 'date-fns/esm' + export default isEqual +} + +declare module 'date-fns/esm/isExists' { + import { isExists } from 'date-fns/esm' + export default isExists +} + +declare module 'date-fns/esm/isFirstDayOfMonth' { + import { isFirstDayOfMonth } from 'date-fns/esm' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/isFriday' { + import { isFriday } from 'date-fns/esm' + export default isFriday +} + +declare module 'date-fns/esm/isFuture' { + import { isFuture } from 'date-fns/esm' + export default isFuture +} + +declare module 'date-fns/esm/isLastDayOfMonth' { + import { isLastDayOfMonth } from 'date-fns/esm' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/isLeapYear' { + import { isLeapYear } from 'date-fns/esm' + export default isLeapYear +} + +declare module 'date-fns/esm/isMatch' { + import { isMatch } from 'date-fns/esm' + export default isMatch +} + +declare module 'date-fns/esm/isMonday' { + import { isMonday } from 'date-fns/esm' + export default isMonday +} + +declare module 'date-fns/esm/isPast' { + import { isPast } from 'date-fns/esm' + export default isPast +} + +declare module 'date-fns/esm/isSameDay' { + import { isSameDay } from 'date-fns/esm' + export default isSameDay +} + +declare module 'date-fns/esm/isSameHour' { + import { isSameHour } from 'date-fns/esm' + export default isSameHour +} + +declare module 'date-fns/esm/isSameISOWeek' { + import { isSameISOWeek } from 'date-fns/esm' + export default isSameISOWeek +} + +declare module 'date-fns/esm/isSameISOWeekYear' { + import { isSameISOWeekYear } from 'date-fns/esm' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/isSameMinute' { + import { isSameMinute } from 'date-fns/esm' + export default isSameMinute +} + +declare module 'date-fns/esm/isSameMonth' { + import { isSameMonth } from 'date-fns/esm' + export default isSameMonth +} + +declare module 'date-fns/esm/isSameQuarter' { + import { isSameQuarter } from 'date-fns/esm' + export default isSameQuarter +} + +declare module 'date-fns/esm/isSameSecond' { + import { isSameSecond } from 'date-fns/esm' + export default isSameSecond +} + +declare module 'date-fns/esm/isSameWeek' { + import { isSameWeek } from 'date-fns/esm' + export default isSameWeek +} + +declare module 'date-fns/esm/isSameYear' { + import { isSameYear } from 'date-fns/esm' + export default isSameYear +} + +declare module 'date-fns/esm/isSaturday' { + import { isSaturday } from 'date-fns/esm' + export default isSaturday +} + +declare module 'date-fns/esm/isSunday' { + import { isSunday } from 'date-fns/esm' + export default isSunday +} + +declare module 'date-fns/esm/isThisHour' { + import { isThisHour } from 'date-fns/esm' + export default isThisHour +} + +declare module 'date-fns/esm/isThisISOWeek' { + import { isThisISOWeek } from 'date-fns/esm' + export default isThisISOWeek +} + +declare module 'date-fns/esm/isThisMinute' { + import { isThisMinute } from 'date-fns/esm' + export default isThisMinute +} + +declare module 'date-fns/esm/isThisMonth' { + import { isThisMonth } from 'date-fns/esm' + export default isThisMonth +} + +declare module 'date-fns/esm/isThisQuarter' { + import { isThisQuarter } from 'date-fns/esm' + export default isThisQuarter +} + +declare module 'date-fns/esm/isThisSecond' { + import { isThisSecond } from 'date-fns/esm' + export default isThisSecond +} + +declare module 'date-fns/esm/isThisWeek' { + import { isThisWeek } from 'date-fns/esm' + export default isThisWeek +} + +declare module 'date-fns/esm/isThisYear' { + import { isThisYear } from 'date-fns/esm' + export default isThisYear +} + +declare module 'date-fns/esm/isThursday' { + import { isThursday } from 'date-fns/esm' + export default isThursday +} + +declare module 'date-fns/esm/isToday' { + import { isToday } from 'date-fns/esm' + export default isToday +} + +declare module 'date-fns/esm/isTomorrow' { + import { isTomorrow } from 'date-fns/esm' + export default isTomorrow +} + +declare module 'date-fns/esm/isTuesday' { + import { isTuesday } from 'date-fns/esm' + export default isTuesday +} + +declare module 'date-fns/esm/isValid' { + import { isValid } from 'date-fns/esm' + export default isValid +} + +declare module 'date-fns/esm/isWednesday' { + import { isWednesday } from 'date-fns/esm' + export default isWednesday +} + +declare module 'date-fns/esm/isWeekend' { + import { isWeekend } from 'date-fns/esm' + export default isWeekend +} + +declare module 'date-fns/esm/isWithinInterval' { + import { isWithinInterval } from 'date-fns/esm' + export default isWithinInterval +} + +declare module 'date-fns/esm/isYesterday' { + import { isYesterday } from 'date-fns/esm' + export default isYesterday +} + +declare module 'date-fns/esm/lastDayOfDecade' { + import { lastDayOfDecade } from 'date-fns/esm' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/lastDayOfISOWeek' { + import { lastDayOfISOWeek } from 'date-fns/esm' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/lastDayOfISOWeekYear' { + import { lastDayOfISOWeekYear } from 'date-fns/esm' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/lastDayOfMonth' { + import { lastDayOfMonth } from 'date-fns/esm' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/lastDayOfQuarter' { + import { lastDayOfQuarter } from 'date-fns/esm' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/lastDayOfWeek' { + import { lastDayOfWeek } from 'date-fns/esm' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/lastDayOfYear' { + import { lastDayOfYear } from 'date-fns/esm' + export default lastDayOfYear +} + +declare module 'date-fns/esm/lightFormat' { + import { lightFormat } from 'date-fns/esm' + export default lightFormat +} + +declare module 'date-fns/esm/max' { + import { max } from 'date-fns/esm' + export default max +} + +declare module 'date-fns/esm/milliseconds' { + import { milliseconds } from 'date-fns/esm' + export default milliseconds +} + +declare module 'date-fns/esm/millisecondsToHours' { + import { millisecondsToHours } from 'date-fns/esm' + export default millisecondsToHours +} + +declare module 'date-fns/esm/millisecondsToMinutes' { + import { millisecondsToMinutes } from 'date-fns/esm' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/millisecondsToSeconds' { + import { millisecondsToSeconds } from 'date-fns/esm' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/min' { + import { min } from 'date-fns/esm' + export default min +} + +declare module 'date-fns/esm/minutesToHours' { + import { minutesToHours } from 'date-fns/esm' + export default minutesToHours +} + +declare module 'date-fns/esm/minutesToMilliseconds' { + import { minutesToMilliseconds } from 'date-fns/esm' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/minutesToSeconds' { + import { minutesToSeconds } from 'date-fns/esm' + export default minutesToSeconds +} + +declare module 'date-fns/esm/monthsToQuarters' { + import { monthsToQuarters } from 'date-fns/esm' + export default monthsToQuarters +} + +declare module 'date-fns/esm/monthsToYears' { + import { monthsToYears } from 'date-fns/esm' + export default monthsToYears +} + +declare module 'date-fns/esm/nextDay' { + import { nextDay } from 'date-fns/esm' + export default nextDay +} + +declare module 'date-fns/esm/nextFriday' { + import { nextFriday } from 'date-fns/esm' + export default nextFriday +} + +declare module 'date-fns/esm/nextMonday' { + import { nextMonday } from 'date-fns/esm' + export default nextMonday +} + +declare module 'date-fns/esm/nextSaturday' { + import { nextSaturday } from 'date-fns/esm' + export default nextSaturday +} + +declare module 'date-fns/esm/nextSunday' { + import { nextSunday } from 'date-fns/esm' + export default nextSunday +} + +declare module 'date-fns/esm/nextThursday' { + import { nextThursday } from 'date-fns/esm' + export default nextThursday +} + +declare module 'date-fns/esm/nextTuesday' { + import { nextTuesday } from 'date-fns/esm' + export default nextTuesday +} + +declare module 'date-fns/esm/nextWednesday' { + import { nextWednesday } from 'date-fns/esm' + export default nextWednesday +} + +declare module 'date-fns/esm/parse' { + import { parse } from 'date-fns/esm' + export default parse +} + +declare module 'date-fns/esm/parseISO' { + import { parseISO } from 'date-fns/esm' + export default parseISO +} + +declare module 'date-fns/esm/parseJSON' { + import { parseJSON } from 'date-fns/esm' + export default parseJSON +} + +declare module 'date-fns/esm/previousDay' { + import { previousDay } from 'date-fns/esm' + export default previousDay +} + +declare module 'date-fns/esm/previousFriday' { + import { previousFriday } from 'date-fns/esm' + export default previousFriday +} + +declare module 'date-fns/esm/previousMonday' { + import { previousMonday } from 'date-fns/esm' + export default previousMonday +} + +declare module 'date-fns/esm/previousSaturday' { + import { previousSaturday } from 'date-fns/esm' + export default previousSaturday +} + +declare module 'date-fns/esm/previousSunday' { + import { previousSunday } from 'date-fns/esm' + export default previousSunday +} + +declare module 'date-fns/esm/previousThursday' { + import { previousThursday } from 'date-fns/esm' + export default previousThursday +} + +declare module 'date-fns/esm/previousTuesday' { + import { previousTuesday } from 'date-fns/esm' + export default previousTuesday +} + +declare module 'date-fns/esm/previousWednesday' { + import { previousWednesday } from 'date-fns/esm' + export default previousWednesday +} + +declare module 'date-fns/esm/quartersToMonths' { + import { quartersToMonths } from 'date-fns/esm' + export default quartersToMonths +} + +declare module 'date-fns/esm/quartersToYears' { + import { quartersToYears } from 'date-fns/esm' + export default quartersToYears +} + +declare module 'date-fns/esm/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/secondsToHours' { + import { secondsToHours } from 'date-fns/esm' + export default secondsToHours +} + +declare module 'date-fns/esm/secondsToMilliseconds' { + import { secondsToMilliseconds } from 'date-fns/esm' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/secondsToMinutes' { + import { secondsToMinutes } from 'date-fns/esm' + export default secondsToMinutes +} + +declare module 'date-fns/esm/set' { + import { set } from 'date-fns/esm' + export default set +} + +declare module 'date-fns/esm/setDate' { + import { setDate } from 'date-fns/esm' + export default setDate +} + +declare module 'date-fns/esm/setDay' { + import { setDay } from 'date-fns/esm' + export default setDay +} + +declare module 'date-fns/esm/setDayOfYear' { + import { setDayOfYear } from 'date-fns/esm' + export default setDayOfYear +} + +declare module 'date-fns/esm/setDefaultOptions' { + import { setDefaultOptions } from 'date-fns/esm' + export default setDefaultOptions +} + +declare module 'date-fns/esm/setHours' { + import { setHours } from 'date-fns/esm' + export default setHours +} + +declare module 'date-fns/esm/setISODay' { + import { setISODay } from 'date-fns/esm' + export default setISODay +} + +declare module 'date-fns/esm/setISOWeek' { + import { setISOWeek } from 'date-fns/esm' + export default setISOWeek +} + +declare module 'date-fns/esm/setISOWeekYear' { + import { setISOWeekYear } from 'date-fns/esm' + export default setISOWeekYear +} + +declare module 'date-fns/esm/setMilliseconds' { + import { setMilliseconds } from 'date-fns/esm' + export default setMilliseconds +} + +declare module 'date-fns/esm/setMinutes' { + import { setMinutes } from 'date-fns/esm' + export default setMinutes +} + +declare module 'date-fns/esm/setMonth' { + import { setMonth } from 'date-fns/esm' + export default setMonth +} + +declare module 'date-fns/esm/setQuarter' { + import { setQuarter } from 'date-fns/esm' + export default setQuarter +} + +declare module 'date-fns/esm/setSeconds' { + import { setSeconds } from 'date-fns/esm' + export default setSeconds +} + +declare module 'date-fns/esm/setWeek' { + import { setWeek } from 'date-fns/esm' + export default setWeek +} + +declare module 'date-fns/esm/setWeekYear' { + import { setWeekYear } from 'date-fns/esm' + export default setWeekYear +} + +declare module 'date-fns/esm/setYear' { + import { setYear } from 'date-fns/esm' + export default setYear +} + +declare module 'date-fns/esm/startOfDay' { + import { startOfDay } from 'date-fns/esm' + export default startOfDay +} + +declare module 'date-fns/esm/startOfDecade' { + import { startOfDecade } from 'date-fns/esm' + export default startOfDecade +} + +declare module 'date-fns/esm/startOfHour' { + import { startOfHour } from 'date-fns/esm' + export default startOfHour +} + +declare module 'date-fns/esm/startOfISOWeek' { + import { startOfISOWeek } from 'date-fns/esm' + export default startOfISOWeek +} + +declare module 'date-fns/esm/startOfISOWeekYear' { + import { startOfISOWeekYear } from 'date-fns/esm' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/startOfMinute' { + import { startOfMinute } from 'date-fns/esm' + export default startOfMinute +} + +declare module 'date-fns/esm/startOfMonth' { + import { startOfMonth } from 'date-fns/esm' + export default startOfMonth +} + +declare module 'date-fns/esm/startOfQuarter' { + import { startOfQuarter } from 'date-fns/esm' + export default startOfQuarter +} + +declare module 'date-fns/esm/startOfSecond' { + import { startOfSecond } from 'date-fns/esm' + export default startOfSecond +} + +declare module 'date-fns/esm/startOfToday' { + import { startOfToday } from 'date-fns/esm' + export default startOfToday +} + +declare module 'date-fns/esm/startOfTomorrow' { + import { startOfTomorrow } from 'date-fns/esm' + export default startOfTomorrow +} + +declare module 'date-fns/esm/startOfWeek' { + import { startOfWeek } from 'date-fns/esm' + export default startOfWeek +} + +declare module 'date-fns/esm/startOfWeekYear' { + import { startOfWeekYear } from 'date-fns/esm' + export default startOfWeekYear +} + +declare module 'date-fns/esm/startOfYear' { + import { startOfYear } from 'date-fns/esm' + export default startOfYear +} + +declare module 'date-fns/esm/startOfYesterday' { + import { startOfYesterday } from 'date-fns/esm' + export default startOfYesterday +} + +declare module 'date-fns/esm/sub' { + import { sub } from 'date-fns/esm' + export default sub +} + +declare module 'date-fns/esm/subBusinessDays' { + import { subBusinessDays } from 'date-fns/esm' + export default subBusinessDays +} + +declare module 'date-fns/esm/subDays' { + import { subDays } from 'date-fns/esm' + export default subDays +} + +declare module 'date-fns/esm/subHours' { + import { subHours } from 'date-fns/esm' + export default subHours +} + +declare module 'date-fns/esm/subISOWeekYears' { + import { subISOWeekYears } from 'date-fns/esm' + export default subISOWeekYears +} + +declare module 'date-fns/esm/subMilliseconds' { + import { subMilliseconds } from 'date-fns/esm' + export default subMilliseconds +} + +declare module 'date-fns/esm/subMinutes' { + import { subMinutes } from 'date-fns/esm' + export default subMinutes +} + +declare module 'date-fns/esm/subMonths' { + import { subMonths } from 'date-fns/esm' + export default subMonths +} + +declare module 'date-fns/esm/subQuarters' { + import { subQuarters } from 'date-fns/esm' + export default subQuarters +} + +declare module 'date-fns/esm/subSeconds' { + import { subSeconds } from 'date-fns/esm' + export default subSeconds +} + +declare module 'date-fns/esm/subWeeks' { + import { subWeeks } from 'date-fns/esm' + export default subWeeks +} + +declare module 'date-fns/esm/subYears' { + import { subYears } from 'date-fns/esm' + export default subYears +} + +declare module 'date-fns/esm/toDate' { + import { toDate } from 'date-fns/esm' + export default toDate +} + +declare module 'date-fns/esm/weeksToDays' { + import { weeksToDays } from 'date-fns/esm' + export default weeksToDays +} + +declare module 'date-fns/esm/yearsToMonths' { + import { yearsToMonths } from 'date-fns/esm' + export default yearsToMonths +} + +declare module 'date-fns/esm/yearsToQuarters' { + import { yearsToQuarters } from 'date-fns/esm' + export default yearsToQuarters +} + +declare module 'date-fns/esm/add/index' { + import { add } from 'date-fns/esm' + export default add +} + +declare module 'date-fns/esm/addBusinessDays/index' { + import { addBusinessDays } from 'date-fns/esm' + export default addBusinessDays +} + +declare module 'date-fns/esm/addDays/index' { + import { addDays } from 'date-fns/esm' + export default addDays +} + +declare module 'date-fns/esm/addHours/index' { + import { addHours } from 'date-fns/esm' + export default addHours +} + +declare module 'date-fns/esm/addISOWeekYears/index' { + import { addISOWeekYears } from 'date-fns/esm' + export default addISOWeekYears +} + +declare module 'date-fns/esm/addMilliseconds/index' { + import { addMilliseconds } from 'date-fns/esm' + export default addMilliseconds +} + +declare module 'date-fns/esm/addMinutes/index' { + import { addMinutes } from 'date-fns/esm' + export default addMinutes +} + +declare module 'date-fns/esm/addMonths/index' { + import { addMonths } from 'date-fns/esm' + export default addMonths +} + +declare module 'date-fns/esm/addQuarters/index' { + import { addQuarters } from 'date-fns/esm' + export default addQuarters +} + +declare module 'date-fns/esm/addSeconds/index' { + import { addSeconds } from 'date-fns/esm' + export default addSeconds +} + +declare module 'date-fns/esm/addWeeks/index' { + import { addWeeks } from 'date-fns/esm' + export default addWeeks +} + +declare module 'date-fns/esm/addYears/index' { + import { addYears } from 'date-fns/esm' + export default addYears +} + +declare module 'date-fns/esm/areIntervalsOverlapping/index' { + import { areIntervalsOverlapping } from 'date-fns/esm' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/clamp/index' { + import { clamp } from 'date-fns/esm' + export default clamp +} + +declare module 'date-fns/esm/closestIndexTo/index' { + import { closestIndexTo } from 'date-fns/esm' + export default closestIndexTo +} + +declare module 'date-fns/esm/closestTo/index' { + import { closestTo } from 'date-fns/esm' + export default closestTo +} + +declare module 'date-fns/esm/compareAsc/index' { + import { compareAsc } from 'date-fns/esm' + export default compareAsc +} + +declare module 'date-fns/esm/compareDesc/index' { + import { compareDesc } from 'date-fns/esm' + export default compareDesc +} + +declare module 'date-fns/esm/daysToWeeks/index' { + import { daysToWeeks } from 'date-fns/esm' + export default daysToWeeks +} + +declare module 'date-fns/esm/differenceInBusinessDays/index' { + import { differenceInBusinessDays } from 'date-fns/esm' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/differenceInCalendarDays/index' { + import { differenceInCalendarDays } from 'date-fns/esm' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/differenceInCalendarISOWeeks/index' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/differenceInCalendarISOWeekYears/index' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/differenceInCalendarMonths/index' { + import { differenceInCalendarMonths } from 'date-fns/esm' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/differenceInCalendarQuarters/index' { + import { differenceInCalendarQuarters } from 'date-fns/esm' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/differenceInCalendarWeeks/index' { + import { differenceInCalendarWeeks } from 'date-fns/esm' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/differenceInCalendarYears/index' { + import { differenceInCalendarYears } from 'date-fns/esm' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/differenceInDays/index' { + import { differenceInDays } from 'date-fns/esm' + export default differenceInDays +} + +declare module 'date-fns/esm/differenceInHours/index' { + import { differenceInHours } from 'date-fns/esm' + export default differenceInHours +} + +declare module 'date-fns/esm/differenceInISOWeekYears/index' { + import { differenceInISOWeekYears } from 'date-fns/esm' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/differenceInMilliseconds/index' { + import { differenceInMilliseconds } from 'date-fns/esm' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/differenceInMinutes/index' { + import { differenceInMinutes } from 'date-fns/esm' + export default differenceInMinutes +} + +declare module 'date-fns/esm/differenceInMonths/index' { + import { differenceInMonths } from 'date-fns/esm' + export default differenceInMonths +} + +declare module 'date-fns/esm/differenceInQuarters/index' { + import { differenceInQuarters } from 'date-fns/esm' + export default differenceInQuarters +} + +declare module 'date-fns/esm/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns/esm' + export default differenceInSeconds +} + +declare module 'date-fns/esm/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns/esm' + export default differenceInWeeks +} + +declare module 'date-fns/esm/differenceInYears/index' { + import { differenceInYears } from 'date-fns/esm' + export default differenceInYears +} + +declare module 'date-fns/esm/eachDayOfInterval/index' { + import { eachDayOfInterval } from 'date-fns/esm' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/eachHourOfInterval/index' { + import { eachHourOfInterval } from 'date-fns/esm' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/eachMinuteOfInterval/index' { + import { eachMinuteOfInterval } from 'date-fns/esm' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/eachMonthOfInterval/index' { + import { eachMonthOfInterval } from 'date-fns/esm' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/eachQuarterOfInterval/index' { + import { eachQuarterOfInterval } from 'date-fns/esm' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfInterval/index' { + import { eachWeekendOfInterval } from 'date-fns/esm' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfMonth/index' { + import { eachWeekendOfMonth } from 'date-fns/esm' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/eachWeekendOfYear/index' { + import { eachWeekendOfYear } from 'date-fns/esm' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/eachWeekOfInterval/index' { + import { eachWeekOfInterval } from 'date-fns/esm' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/eachYearOfInterval/index' { + import { eachYearOfInterval } from 'date-fns/esm' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/endOfDay/index' { + import { endOfDay } from 'date-fns/esm' + export default endOfDay +} + +declare module 'date-fns/esm/endOfDecade/index' { + import { endOfDecade } from 'date-fns/esm' + export default endOfDecade +} + +declare module 'date-fns/esm/endOfHour/index' { + import { endOfHour } from 'date-fns/esm' + export default endOfHour +} + +declare module 'date-fns/esm/endOfISOWeek/index' { + import { endOfISOWeek } from 'date-fns/esm' + export default endOfISOWeek +} + +declare module 'date-fns/esm/endOfISOWeekYear/index' { + import { endOfISOWeekYear } from 'date-fns/esm' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/endOfMinute/index' { + import { endOfMinute } from 'date-fns/esm' + export default endOfMinute +} + +declare module 'date-fns/esm/endOfMonth/index' { + import { endOfMonth } from 'date-fns/esm' + export default endOfMonth +} + +declare module 'date-fns/esm/endOfQuarter/index' { + import { endOfQuarter } from 'date-fns/esm' + export default endOfQuarter +} + +declare module 'date-fns/esm/endOfSecond/index' { + import { endOfSecond } from 'date-fns/esm' + export default endOfSecond +} + +declare module 'date-fns/esm/endOfToday/index' { + import { endOfToday } from 'date-fns/esm' + export default endOfToday +} + +declare module 'date-fns/esm/endOfTomorrow/index' { + import { endOfTomorrow } from 'date-fns/esm' + export default endOfTomorrow +} + +declare module 'date-fns/esm/endOfWeek/index' { + import { endOfWeek } from 'date-fns/esm' + export default endOfWeek +} + +declare module 'date-fns/esm/endOfYear/index' { + import { endOfYear } from 'date-fns/esm' + export default endOfYear +} + +declare module 'date-fns/esm/endOfYesterday/index' { + import { endOfYesterday } from 'date-fns/esm' + export default endOfYesterday +} + +declare module 'date-fns/esm/format/index' { + import { format } from 'date-fns/esm' + export default format +} + +declare module 'date-fns/esm/formatDistance/index' { + import { formatDistance } from 'date-fns/esm' + export default formatDistance +} + +declare module 'date-fns/esm/formatDistanceStrict/index' { + import { formatDistanceStrict } from 'date-fns/esm' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/formatDistanceToNow/index' { + import { formatDistanceToNow } from 'date-fns/esm' + export default formatDistanceToNow +} + +declare module 'date-fns/esm/formatDistanceToNowStrict/index' { + import { formatDistanceToNowStrict } from 'date-fns/esm' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/esm/formatDuration/index' { + import { formatDuration } from 'date-fns/esm' + export default formatDuration +} + +declare module 'date-fns/esm/formatISO/index' { + import { formatISO } from 'date-fns/esm' + export default formatISO +} + +declare module 'date-fns/esm/formatISO9075/index' { + import { formatISO9075 } from 'date-fns/esm' + export default formatISO9075 +} + +declare module 'date-fns/esm/formatISODuration/index' { + import { formatISODuration } from 'date-fns/esm' + export default formatISODuration +} + +declare module 'date-fns/esm/formatRelative/index' { + import { formatRelative } from 'date-fns/esm' + export default formatRelative +} + +declare module 'date-fns/esm/formatRFC3339/index' { + import { formatRFC3339 } from 'date-fns/esm' + export default formatRFC3339 +} + +declare module 'date-fns/esm/formatRFC7231/index' { + import { formatRFC7231 } from 'date-fns/esm' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fromUnixTime/index' { + import { fromUnixTime } from 'date-fns/esm' + export default fromUnixTime +} + +declare module 'date-fns/esm/getDate/index' { + import { getDate } from 'date-fns/esm' + export default getDate +} + +declare module 'date-fns/esm/getDay/index' { + import { getDay } from 'date-fns/esm' + export default getDay +} + +declare module 'date-fns/esm/getDayOfYear/index' { + import { getDayOfYear } from 'date-fns/esm' + export default getDayOfYear +} + +declare module 'date-fns/esm/getDaysInMonth/index' { + import { getDaysInMonth } from 'date-fns/esm' + export default getDaysInMonth +} + +declare module 'date-fns/esm/getDaysInYear/index' { + import { getDaysInYear } from 'date-fns/esm' + export default getDaysInYear +} + +declare module 'date-fns/esm/getDecade/index' { + import { getDecade } from 'date-fns/esm' + export default getDecade +} + +declare module 'date-fns/esm/getDefaultOptions/index' { + import { getDefaultOptions } from 'date-fns/esm' + export default getDefaultOptions +} + +declare module 'date-fns/esm/getHours/index' { + import { getHours } from 'date-fns/esm' + export default getHours +} + +declare module 'date-fns/esm/getISODay/index' { + import { getISODay } from 'date-fns/esm' + export default getISODay +} + +declare module 'date-fns/esm/getISOWeek/index' { + import { getISOWeek } from 'date-fns/esm' + export default getISOWeek +} + +declare module 'date-fns/esm/getISOWeeksInYear/index' { + import { getISOWeeksInYear } from 'date-fns/esm' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/getISOWeekYear/index' { + import { getISOWeekYear } from 'date-fns/esm' + export default getISOWeekYear +} + +declare module 'date-fns/esm/getMilliseconds/index' { + import { getMilliseconds } from 'date-fns/esm' + export default getMilliseconds +} + +declare module 'date-fns/esm/getMinutes/index' { + import { getMinutes } from 'date-fns/esm' + export default getMinutes +} + +declare module 'date-fns/esm/getMonth/index' { + import { getMonth } from 'date-fns/esm' + export default getMonth +} + +declare module 'date-fns/esm/getOverlappingDaysInIntervals/index' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/getQuarter/index' { + import { getQuarter } from 'date-fns/esm' + export default getQuarter +} + +declare module 'date-fns/esm/getSeconds/index' { + import { getSeconds } from 'date-fns/esm' + export default getSeconds +} + +declare module 'date-fns/esm/getTime/index' { + import { getTime } from 'date-fns/esm' + export default getTime +} + +declare module 'date-fns/esm/getUnixTime/index' { + import { getUnixTime } from 'date-fns/esm' + export default getUnixTime +} + +declare module 'date-fns/esm/getWeek/index' { + import { getWeek } from 'date-fns/esm' + export default getWeek +} + +declare module 'date-fns/esm/getWeekOfMonth/index' { + import { getWeekOfMonth } from 'date-fns/esm' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/getWeeksInMonth/index' { + import { getWeeksInMonth } from 'date-fns/esm' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/getWeekYear/index' { + import { getWeekYear } from 'date-fns/esm' + export default getWeekYear +} + +declare module 'date-fns/esm/getYear/index' { + import { getYear } from 'date-fns/esm' + export default getYear +} + +declare module 'date-fns/esm/hoursToMilliseconds/index' { + import { hoursToMilliseconds } from 'date-fns/esm' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/hoursToMinutes/index' { + import { hoursToMinutes } from 'date-fns/esm' + export default hoursToMinutes +} + +declare module 'date-fns/esm/hoursToSeconds/index' { + import { hoursToSeconds } from 'date-fns/esm' + export default hoursToSeconds +} + +declare module 'date-fns/esm/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +declare module 'date-fns/esm/intlFormat/index' { + import { intlFormat } from 'date-fns/esm' + export default intlFormat +} + +declare module 'date-fns/esm/intlFormatDistance/index' { + import { intlFormatDistance } from 'date-fns/esm' + export default intlFormatDistance +} + +declare module 'date-fns/esm/isAfter/index' { + import { isAfter } from 'date-fns/esm' + export default isAfter +} + +declare module 'date-fns/esm/isBefore/index' { + import { isBefore } from 'date-fns/esm' + export default isBefore +} + +declare module 'date-fns/esm/isDate/index' { + import { isDate } from 'date-fns/esm' + export default isDate +} + +declare module 'date-fns/esm/isEqual/index' { + import { isEqual } from 'date-fns/esm' + export default isEqual +} + +declare module 'date-fns/esm/isExists/index' { + import { isExists } from 'date-fns/esm' + export default isExists +} + +declare module 'date-fns/esm/isFirstDayOfMonth/index' { + import { isFirstDayOfMonth } from 'date-fns/esm' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/isFriday/index' { + import { isFriday } from 'date-fns/esm' + export default isFriday +} + +declare module 'date-fns/esm/isFuture/index' { + import { isFuture } from 'date-fns/esm' + export default isFuture +} + +declare module 'date-fns/esm/isLastDayOfMonth/index' { + import { isLastDayOfMonth } from 'date-fns/esm' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/isLeapYear/index' { + import { isLeapYear } from 'date-fns/esm' + export default isLeapYear +} + +declare module 'date-fns/esm/isMatch/index' { + import { isMatch } from 'date-fns/esm' + export default isMatch +} + +declare module 'date-fns/esm/isMonday/index' { + import { isMonday } from 'date-fns/esm' + export default isMonday +} + +declare module 'date-fns/esm/isPast/index' { + import { isPast } from 'date-fns/esm' + export default isPast +} + +declare module 'date-fns/esm/isSameDay/index' { + import { isSameDay } from 'date-fns/esm' + export default isSameDay +} + +declare module 'date-fns/esm/isSameHour/index' { + import { isSameHour } from 'date-fns/esm' + export default isSameHour +} + +declare module 'date-fns/esm/isSameISOWeek/index' { + import { isSameISOWeek } from 'date-fns/esm' + export default isSameISOWeek +} + +declare module 'date-fns/esm/isSameISOWeekYear/index' { + import { isSameISOWeekYear } from 'date-fns/esm' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/isSameMinute/index' { + import { isSameMinute } from 'date-fns/esm' + export default isSameMinute +} + +declare module 'date-fns/esm/isSameMonth/index' { + import { isSameMonth } from 'date-fns/esm' + export default isSameMonth +} + +declare module 'date-fns/esm/isSameQuarter/index' { + import { isSameQuarter } from 'date-fns/esm' + export default isSameQuarter +} + +declare module 'date-fns/esm/isSameSecond/index' { + import { isSameSecond } from 'date-fns/esm' + export default isSameSecond +} + +declare module 'date-fns/esm/isSameWeek/index' { + import { isSameWeek } from 'date-fns/esm' + export default isSameWeek +} + +declare module 'date-fns/esm/isSameYear/index' { + import { isSameYear } from 'date-fns/esm' + export default isSameYear +} + +declare module 'date-fns/esm/isSaturday/index' { + import { isSaturday } from 'date-fns/esm' + export default isSaturday +} + +declare module 'date-fns/esm/isSunday/index' { + import { isSunday } from 'date-fns/esm' + export default isSunday +} + +declare module 'date-fns/esm/isThisHour/index' { + import { isThisHour } from 'date-fns/esm' + export default isThisHour +} + +declare module 'date-fns/esm/isThisISOWeek/index' { + import { isThisISOWeek } from 'date-fns/esm' + export default isThisISOWeek +} + +declare module 'date-fns/esm/isThisMinute/index' { + import { isThisMinute } from 'date-fns/esm' + export default isThisMinute +} + +declare module 'date-fns/esm/isThisMonth/index' { + import { isThisMonth } from 'date-fns/esm' + export default isThisMonth +} + +declare module 'date-fns/esm/isThisQuarter/index' { + import { isThisQuarter } from 'date-fns/esm' + export default isThisQuarter +} + +declare module 'date-fns/esm/isThisSecond/index' { + import { isThisSecond } from 'date-fns/esm' + export default isThisSecond +} + +declare module 'date-fns/esm/isThisWeek/index' { + import { isThisWeek } from 'date-fns/esm' + export default isThisWeek +} + +declare module 'date-fns/esm/isThisYear/index' { + import { isThisYear } from 'date-fns/esm' + export default isThisYear +} + +declare module 'date-fns/esm/isThursday/index' { + import { isThursday } from 'date-fns/esm' + export default isThursday +} + +declare module 'date-fns/esm/isToday/index' { + import { isToday } from 'date-fns/esm' + export default isToday +} + +declare module 'date-fns/esm/isTomorrow/index' { + import { isTomorrow } from 'date-fns/esm' + export default isTomorrow +} + +declare module 'date-fns/esm/isTuesday/index' { + import { isTuesday } from 'date-fns/esm' + export default isTuesday +} + +declare module 'date-fns/esm/isValid/index' { + import { isValid } from 'date-fns/esm' + export default isValid +} + +declare module 'date-fns/esm/isWednesday/index' { + import { isWednesday } from 'date-fns/esm' + export default isWednesday +} + +declare module 'date-fns/esm/isWeekend/index' { + import { isWeekend } from 'date-fns/esm' + export default isWeekend +} + +declare module 'date-fns/esm/isWithinInterval/index' { + import { isWithinInterval } from 'date-fns/esm' + export default isWithinInterval +} + +declare module 'date-fns/esm/isYesterday/index' { + import { isYesterday } from 'date-fns/esm' + export default isYesterday +} + +declare module 'date-fns/esm/lastDayOfDecade/index' { + import { lastDayOfDecade } from 'date-fns/esm' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/lastDayOfISOWeek/index' { + import { lastDayOfISOWeek } from 'date-fns/esm' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/lastDayOfISOWeekYear/index' { + import { lastDayOfISOWeekYear } from 'date-fns/esm' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/lastDayOfMonth/index' { + import { lastDayOfMonth } from 'date-fns/esm' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/lastDayOfQuarter/index' { + import { lastDayOfQuarter } from 'date-fns/esm' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/lastDayOfWeek/index' { + import { lastDayOfWeek } from 'date-fns/esm' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/lastDayOfYear/index' { + import { lastDayOfYear } from 'date-fns/esm' + export default lastDayOfYear +} + +declare module 'date-fns/esm/lightFormat/index' { + import { lightFormat } from 'date-fns/esm' + export default lightFormat +} + +declare module 'date-fns/esm/max/index' { + import { max } from 'date-fns/esm' + export default max +} + +declare module 'date-fns/esm/milliseconds/index' { + import { milliseconds } from 'date-fns/esm' + export default milliseconds +} + +declare module 'date-fns/esm/millisecondsToHours/index' { + import { millisecondsToHours } from 'date-fns/esm' + export default millisecondsToHours +} + +declare module 'date-fns/esm/millisecondsToMinutes/index' { + import { millisecondsToMinutes } from 'date-fns/esm' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/millisecondsToSeconds/index' { + import { millisecondsToSeconds } from 'date-fns/esm' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/min/index' { + import { min } from 'date-fns/esm' + export default min +} + +declare module 'date-fns/esm/minutesToHours/index' { + import { minutesToHours } from 'date-fns/esm' + export default minutesToHours +} + +declare module 'date-fns/esm/minutesToMilliseconds/index' { + import { minutesToMilliseconds } from 'date-fns/esm' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/minutesToSeconds/index' { + import { minutesToSeconds } from 'date-fns/esm' + export default minutesToSeconds +} + +declare module 'date-fns/esm/monthsToQuarters/index' { + import { monthsToQuarters } from 'date-fns/esm' + export default monthsToQuarters +} + +declare module 'date-fns/esm/monthsToYears/index' { + import { monthsToYears } from 'date-fns/esm' + export default monthsToYears +} + +declare module 'date-fns/esm/nextDay/index' { + import { nextDay } from 'date-fns/esm' + export default nextDay +} + +declare module 'date-fns/esm/nextFriday/index' { + import { nextFriday } from 'date-fns/esm' + export default nextFriday +} + +declare module 'date-fns/esm/nextMonday/index' { + import { nextMonday } from 'date-fns/esm' + export default nextMonday +} + +declare module 'date-fns/esm/nextSaturday/index' { + import { nextSaturday } from 'date-fns/esm' + export default nextSaturday +} + +declare module 'date-fns/esm/nextSunday/index' { + import { nextSunday } from 'date-fns/esm' + export default nextSunday +} + +declare module 'date-fns/esm/nextThursday/index' { + import { nextThursday } from 'date-fns/esm' + export default nextThursday +} + +declare module 'date-fns/esm/nextTuesday/index' { + import { nextTuesday } from 'date-fns/esm' + export default nextTuesday +} + +declare module 'date-fns/esm/nextWednesday/index' { + import { nextWednesday } from 'date-fns/esm' + export default nextWednesday +} + +declare module 'date-fns/esm/parse/index' { + import { parse } from 'date-fns/esm' + export default parse +} + +declare module 'date-fns/esm/parseISO/index' { + import { parseISO } from 'date-fns/esm' + export default parseISO +} + +declare module 'date-fns/esm/parseJSON/index' { + import { parseJSON } from 'date-fns/esm' + export default parseJSON +} + +declare module 'date-fns/esm/previousDay/index' { + import { previousDay } from 'date-fns/esm' + export default previousDay +} + +declare module 'date-fns/esm/previousFriday/index' { + import { previousFriday } from 'date-fns/esm' + export default previousFriday +} + +declare module 'date-fns/esm/previousMonday/index' { + import { previousMonday } from 'date-fns/esm' + export default previousMonday +} + +declare module 'date-fns/esm/previousSaturday/index' { + import { previousSaturday } from 'date-fns/esm' + export default previousSaturday +} + +declare module 'date-fns/esm/previousSunday/index' { + import { previousSunday } from 'date-fns/esm' + export default previousSunday +} + +declare module 'date-fns/esm/previousThursday/index' { + import { previousThursday } from 'date-fns/esm' + export default previousThursday +} + +declare module 'date-fns/esm/previousTuesday/index' { + import { previousTuesday } from 'date-fns/esm' + export default previousTuesday +} + +declare module 'date-fns/esm/previousWednesday/index' { + import { previousWednesday } from 'date-fns/esm' + export default previousWednesday +} + +declare module 'date-fns/esm/quartersToMonths/index' { + import { quartersToMonths } from 'date-fns/esm' + export default quartersToMonths +} + +declare module 'date-fns/esm/quartersToYears/index' { + import { quartersToYears } from 'date-fns/esm' + export default quartersToYears +} + +declare module 'date-fns/esm/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/secondsToHours/index' { + import { secondsToHours } from 'date-fns/esm' + export default secondsToHours +} + +declare module 'date-fns/esm/secondsToMilliseconds/index' { + import { secondsToMilliseconds } from 'date-fns/esm' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/secondsToMinutes/index' { + import { secondsToMinutes } from 'date-fns/esm' + export default secondsToMinutes +} + +declare module 'date-fns/esm/set/index' { + import { set } from 'date-fns/esm' + export default set +} + +declare module 'date-fns/esm/setDate/index' { + import { setDate } from 'date-fns/esm' + export default setDate +} + +declare module 'date-fns/esm/setDay/index' { + import { setDay } from 'date-fns/esm' + export default setDay +} + +declare module 'date-fns/esm/setDayOfYear/index' { + import { setDayOfYear } from 'date-fns/esm' + export default setDayOfYear +} + +declare module 'date-fns/esm/setDefaultOptions/index' { + import { setDefaultOptions } from 'date-fns/esm' + export default setDefaultOptions +} + +declare module 'date-fns/esm/setHours/index' { + import { setHours } from 'date-fns/esm' + export default setHours +} + +declare module 'date-fns/esm/setISODay/index' { + import { setISODay } from 'date-fns/esm' + export default setISODay +} + +declare module 'date-fns/esm/setISOWeek/index' { + import { setISOWeek } from 'date-fns/esm' + export default setISOWeek +} + +declare module 'date-fns/esm/setISOWeekYear/index' { + import { setISOWeekYear } from 'date-fns/esm' + export default setISOWeekYear +} + +declare module 'date-fns/esm/setMilliseconds/index' { + import { setMilliseconds } from 'date-fns/esm' + export default setMilliseconds +} + +declare module 'date-fns/esm/setMinutes/index' { + import { setMinutes } from 'date-fns/esm' + export default setMinutes +} + +declare module 'date-fns/esm/setMonth/index' { + import { setMonth } from 'date-fns/esm' + export default setMonth +} + +declare module 'date-fns/esm/setQuarter/index' { + import { setQuarter } from 'date-fns/esm' + export default setQuarter +} + +declare module 'date-fns/esm/setSeconds/index' { + import { setSeconds } from 'date-fns/esm' + export default setSeconds +} + +declare module 'date-fns/esm/setWeek/index' { + import { setWeek } from 'date-fns/esm' + export default setWeek +} + +declare module 'date-fns/esm/setWeekYear/index' { + import { setWeekYear } from 'date-fns/esm' + export default setWeekYear +} + +declare module 'date-fns/esm/setYear/index' { + import { setYear } from 'date-fns/esm' + export default setYear +} + +declare module 'date-fns/esm/startOfDay/index' { + import { startOfDay } from 'date-fns/esm' + export default startOfDay +} + +declare module 'date-fns/esm/startOfDecade/index' { + import { startOfDecade } from 'date-fns/esm' + export default startOfDecade +} + +declare module 'date-fns/esm/startOfHour/index' { + import { startOfHour } from 'date-fns/esm' + export default startOfHour +} + +declare module 'date-fns/esm/startOfISOWeek/index' { + import { startOfISOWeek } from 'date-fns/esm' + export default startOfISOWeek +} + +declare module 'date-fns/esm/startOfISOWeekYear/index' { + import { startOfISOWeekYear } from 'date-fns/esm' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/startOfMinute/index' { + import { startOfMinute } from 'date-fns/esm' + export default startOfMinute +} + +declare module 'date-fns/esm/startOfMonth/index' { + import { startOfMonth } from 'date-fns/esm' + export default startOfMonth +} + +declare module 'date-fns/esm/startOfQuarter/index' { + import { startOfQuarter } from 'date-fns/esm' + export default startOfQuarter +} + +declare module 'date-fns/esm/startOfSecond/index' { + import { startOfSecond } from 'date-fns/esm' + export default startOfSecond +} + +declare module 'date-fns/esm/startOfToday/index' { + import { startOfToday } from 'date-fns/esm' + export default startOfToday +} + +declare module 'date-fns/esm/startOfTomorrow/index' { + import { startOfTomorrow } from 'date-fns/esm' + export default startOfTomorrow +} + +declare module 'date-fns/esm/startOfWeek/index' { + import { startOfWeek } from 'date-fns/esm' + export default startOfWeek +} + +declare module 'date-fns/esm/startOfWeekYear/index' { + import { startOfWeekYear } from 'date-fns/esm' + export default startOfWeekYear +} + +declare module 'date-fns/esm/startOfYear/index' { + import { startOfYear } from 'date-fns/esm' + export default startOfYear +} + +declare module 'date-fns/esm/startOfYesterday/index' { + import { startOfYesterday } from 'date-fns/esm' + export default startOfYesterday +} + +declare module 'date-fns/esm/sub/index' { + import { sub } from 'date-fns/esm' + export default sub +} + +declare module 'date-fns/esm/subBusinessDays/index' { + import { subBusinessDays } from 'date-fns/esm' + export default subBusinessDays +} + +declare module 'date-fns/esm/subDays/index' { + import { subDays } from 'date-fns/esm' + export default subDays +} + +declare module 'date-fns/esm/subHours/index' { + import { subHours } from 'date-fns/esm' + export default subHours +} + +declare module 'date-fns/esm/subISOWeekYears/index' { + import { subISOWeekYears } from 'date-fns/esm' + export default subISOWeekYears +} + +declare module 'date-fns/esm/subMilliseconds/index' { + import { subMilliseconds } from 'date-fns/esm' + export default subMilliseconds +} + +declare module 'date-fns/esm/subMinutes/index' { + import { subMinutes } from 'date-fns/esm' + export default subMinutes +} + +declare module 'date-fns/esm/subMonths/index' { + import { subMonths } from 'date-fns/esm' + export default subMonths +} + +declare module 'date-fns/esm/subQuarters/index' { + import { subQuarters } from 'date-fns/esm' + export default subQuarters +} + +declare module 'date-fns/esm/subSeconds/index' { + import { subSeconds } from 'date-fns/esm' + export default subSeconds +} + +declare module 'date-fns/esm/subWeeks/index' { + import { subWeeks } from 'date-fns/esm' + export default subWeeks +} + +declare module 'date-fns/esm/subYears/index' { + import { subYears } from 'date-fns/esm' + export default subYears +} + +declare module 'date-fns/esm/toDate/index' { + import { toDate } from 'date-fns/esm' + export default toDate +} + +declare module 'date-fns/esm/weeksToDays/index' { + import { weeksToDays } from 'date-fns/esm' + export default weeksToDays +} + +declare module 'date-fns/esm/yearsToMonths/index' { + import { yearsToMonths } from 'date-fns/esm' + export default yearsToMonths +} + +declare module 'date-fns/esm/yearsToQuarters/index' { + import { yearsToQuarters } from 'date-fns/esm' + export default yearsToQuarters +} + +declare module 'date-fns/esm/add/index.js' { + import { add } from 'date-fns/esm' + export default add +} + +declare module 'date-fns/esm/addBusinessDays/index.js' { + import { addBusinessDays } from 'date-fns/esm' + export default addBusinessDays +} + +declare module 'date-fns/esm/addDays/index.js' { + import { addDays } from 'date-fns/esm' + export default addDays +} + +declare module 'date-fns/esm/addHours/index.js' { + import { addHours } from 'date-fns/esm' + export default addHours +} + +declare module 'date-fns/esm/addISOWeekYears/index.js' { + import { addISOWeekYears } from 'date-fns/esm' + export default addISOWeekYears +} + +declare module 'date-fns/esm/addMilliseconds/index.js' { + import { addMilliseconds } from 'date-fns/esm' + export default addMilliseconds +} + +declare module 'date-fns/esm/addMinutes/index.js' { + import { addMinutes } from 'date-fns/esm' + export default addMinutes +} + +declare module 'date-fns/esm/addMonths/index.js' { + import { addMonths } from 'date-fns/esm' + export default addMonths +} + +declare module 'date-fns/esm/addQuarters/index.js' { + import { addQuarters } from 'date-fns/esm' + export default addQuarters +} + +declare module 'date-fns/esm/addSeconds/index.js' { + import { addSeconds } from 'date-fns/esm' + export default addSeconds +} + +declare module 'date-fns/esm/addWeeks/index.js' { + import { addWeeks } from 'date-fns/esm' + export default addWeeks +} + +declare module 'date-fns/esm/addYears/index.js' { + import { addYears } from 'date-fns/esm' + export default addYears +} + +declare module 'date-fns/esm/areIntervalsOverlapping/index.js' { + import { areIntervalsOverlapping } from 'date-fns/esm' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/clamp/index.js' { + import { clamp } from 'date-fns/esm' + export default clamp +} + +declare module 'date-fns/esm/closestIndexTo/index.js' { + import { closestIndexTo } from 'date-fns/esm' + export default closestIndexTo +} + +declare module 'date-fns/esm/closestTo/index.js' { + import { closestTo } from 'date-fns/esm' + export default closestTo +} + +declare module 'date-fns/esm/compareAsc/index.js' { + import { compareAsc } from 'date-fns/esm' + export default compareAsc +} + +declare module 'date-fns/esm/compareDesc/index.js' { + import { compareDesc } from 'date-fns/esm' + export default compareDesc +} + +declare module 'date-fns/esm/daysToWeeks/index.js' { + import { daysToWeeks } from 'date-fns/esm' + export default daysToWeeks +} + +declare module 'date-fns/esm/differenceInBusinessDays/index.js' { + import { differenceInBusinessDays } from 'date-fns/esm' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/differenceInCalendarDays/index.js' { + import { differenceInCalendarDays } from 'date-fns/esm' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/differenceInCalendarISOWeeks/index.js' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/differenceInCalendarISOWeekYears/index.js' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/differenceInCalendarMonths/index.js' { + import { differenceInCalendarMonths } from 'date-fns/esm' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/differenceInCalendarQuarters/index.js' { + import { differenceInCalendarQuarters } from 'date-fns/esm' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/differenceInCalendarWeeks/index.js' { + import { differenceInCalendarWeeks } from 'date-fns/esm' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/differenceInCalendarYears/index.js' { + import { differenceInCalendarYears } from 'date-fns/esm' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/differenceInDays/index.js' { + import { differenceInDays } from 'date-fns/esm' + export default differenceInDays +} + +declare module 'date-fns/esm/differenceInHours/index.js' { + import { differenceInHours } from 'date-fns/esm' + export default differenceInHours +} + +declare module 'date-fns/esm/differenceInISOWeekYears/index.js' { + import { differenceInISOWeekYears } from 'date-fns/esm' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/differenceInMilliseconds/index.js' { + import { differenceInMilliseconds } from 'date-fns/esm' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/differenceInMinutes/index.js' { + import { differenceInMinutes } from 'date-fns/esm' + export default differenceInMinutes +} + +declare module 'date-fns/esm/differenceInMonths/index.js' { + import { differenceInMonths } from 'date-fns/esm' + export default differenceInMonths +} + +declare module 'date-fns/esm/differenceInQuarters/index.js' { + import { differenceInQuarters } from 'date-fns/esm' + export default differenceInQuarters +} + +declare module 'date-fns/esm/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns/esm' + export default differenceInSeconds +} + +declare module 'date-fns/esm/differenceInWeeks/index.js' { + import { differenceInWeeks } from 'date-fns/esm' + export default differenceInWeeks +} + +declare module 'date-fns/esm/differenceInYears/index.js' { + import { differenceInYears } from 'date-fns/esm' + export default differenceInYears +} + +declare module 'date-fns/esm/eachDayOfInterval/index.js' { + import { eachDayOfInterval } from 'date-fns/esm' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/eachHourOfInterval/index.js' { + import { eachHourOfInterval } from 'date-fns/esm' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/eachMinuteOfInterval/index.js' { + import { eachMinuteOfInterval } from 'date-fns/esm' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/eachMonthOfInterval/index.js' { + import { eachMonthOfInterval } from 'date-fns/esm' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/eachQuarterOfInterval/index.js' { + import { eachQuarterOfInterval } from 'date-fns/esm' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfInterval/index.js' { + import { eachWeekendOfInterval } from 'date-fns/esm' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/eachWeekendOfMonth/index.js' { + import { eachWeekendOfMonth } from 'date-fns/esm' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/eachWeekendOfYear/index.js' { + import { eachWeekendOfYear } from 'date-fns/esm' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/eachWeekOfInterval/index.js' { + import { eachWeekOfInterval } from 'date-fns/esm' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/eachYearOfInterval/index.js' { + import { eachYearOfInterval } from 'date-fns/esm' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/endOfDay/index.js' { + import { endOfDay } from 'date-fns/esm' + export default endOfDay +} + +declare module 'date-fns/esm/endOfDecade/index.js' { + import { endOfDecade } from 'date-fns/esm' + export default endOfDecade +} + +declare module 'date-fns/esm/endOfHour/index.js' { + import { endOfHour } from 'date-fns/esm' + export default endOfHour +} + +declare module 'date-fns/esm/endOfISOWeek/index.js' { + import { endOfISOWeek } from 'date-fns/esm' + export default endOfISOWeek +} + +declare module 'date-fns/esm/endOfISOWeekYear/index.js' { + import { endOfISOWeekYear } from 'date-fns/esm' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/endOfMinute/index.js' { + import { endOfMinute } from 'date-fns/esm' + export default endOfMinute +} + +declare module 'date-fns/esm/endOfMonth/index.js' { + import { endOfMonth } from 'date-fns/esm' + export default endOfMonth +} + +declare module 'date-fns/esm/endOfQuarter/index.js' { + import { endOfQuarter } from 'date-fns/esm' + export default endOfQuarter +} + +declare module 'date-fns/esm/endOfSecond/index.js' { + import { endOfSecond } from 'date-fns/esm' + export default endOfSecond +} + +declare module 'date-fns/esm/endOfToday/index.js' { + import { endOfToday } from 'date-fns/esm' + export default endOfToday +} + +declare module 'date-fns/esm/endOfTomorrow/index.js' { + import { endOfTomorrow } from 'date-fns/esm' + export default endOfTomorrow +} + +declare module 'date-fns/esm/endOfWeek/index.js' { + import { endOfWeek } from 'date-fns/esm' + export default endOfWeek +} + +declare module 'date-fns/esm/endOfYear/index.js' { + import { endOfYear } from 'date-fns/esm' + export default endOfYear +} + +declare module 'date-fns/esm/endOfYesterday/index.js' { + import { endOfYesterday } from 'date-fns/esm' + export default endOfYesterday +} + +declare module 'date-fns/esm/format/index.js' { + import { format } from 'date-fns/esm' + export default format +} + +declare module 'date-fns/esm/formatDistance/index.js' { + import { formatDistance } from 'date-fns/esm' + export default formatDistance +} + +declare module 'date-fns/esm/formatDistanceStrict/index.js' { + import { formatDistanceStrict } from 'date-fns/esm' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/formatDistanceToNow/index.js' { + import { formatDistanceToNow } from 'date-fns/esm' + export default formatDistanceToNow +} + +declare module 'date-fns/esm/formatDistanceToNowStrict/index.js' { + import { formatDistanceToNowStrict } from 'date-fns/esm' + export default formatDistanceToNowStrict +} + +declare module 'date-fns/esm/formatDuration/index.js' { + import { formatDuration } from 'date-fns/esm' + export default formatDuration +} + +declare module 'date-fns/esm/formatISO/index.js' { + import { formatISO } from 'date-fns/esm' + export default formatISO +} + +declare module 'date-fns/esm/formatISO9075/index.js' { + import { formatISO9075 } from 'date-fns/esm' + export default formatISO9075 +} + +declare module 'date-fns/esm/formatISODuration/index.js' { + import { formatISODuration } from 'date-fns/esm' + export default formatISODuration +} + +declare module 'date-fns/esm/formatRelative/index.js' { + import { formatRelative } from 'date-fns/esm' + export default formatRelative +} + +declare module 'date-fns/esm/formatRFC3339/index.js' { + import { formatRFC3339 } from 'date-fns/esm' + export default formatRFC3339 +} + +declare module 'date-fns/esm/formatRFC7231/index.js' { + import { formatRFC7231 } from 'date-fns/esm' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fromUnixTime/index.js' { + import { fromUnixTime } from 'date-fns/esm' + export default fromUnixTime +} + +declare module 'date-fns/esm/getDate/index.js' { + import { getDate } from 'date-fns/esm' + export default getDate +} + +declare module 'date-fns/esm/getDay/index.js' { + import { getDay } from 'date-fns/esm' + export default getDay +} + +declare module 'date-fns/esm/getDayOfYear/index.js' { + import { getDayOfYear } from 'date-fns/esm' + export default getDayOfYear +} + +declare module 'date-fns/esm/getDaysInMonth/index.js' { + import { getDaysInMonth } from 'date-fns/esm' + export default getDaysInMonth +} + +declare module 'date-fns/esm/getDaysInYear/index.js' { + import { getDaysInYear } from 'date-fns/esm' + export default getDaysInYear +} + +declare module 'date-fns/esm/getDecade/index.js' { + import { getDecade } from 'date-fns/esm' + export default getDecade +} + +declare module 'date-fns/esm/getDefaultOptions/index.js' { + import { getDefaultOptions } from 'date-fns/esm' + export default getDefaultOptions +} + +declare module 'date-fns/esm/getHours/index.js' { + import { getHours } from 'date-fns/esm' + export default getHours +} + +declare module 'date-fns/esm/getISODay/index.js' { + import { getISODay } from 'date-fns/esm' + export default getISODay +} + +declare module 'date-fns/esm/getISOWeek/index.js' { + import { getISOWeek } from 'date-fns/esm' + export default getISOWeek +} + +declare module 'date-fns/esm/getISOWeeksInYear/index.js' { + import { getISOWeeksInYear } from 'date-fns/esm' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/getISOWeekYear/index.js' { + import { getISOWeekYear } from 'date-fns/esm' + export default getISOWeekYear +} + +declare module 'date-fns/esm/getMilliseconds/index.js' { + import { getMilliseconds } from 'date-fns/esm' + export default getMilliseconds +} + +declare module 'date-fns/esm/getMinutes/index.js' { + import { getMinutes } from 'date-fns/esm' + export default getMinutes +} + +declare module 'date-fns/esm/getMonth/index.js' { + import { getMonth } from 'date-fns/esm' + export default getMonth +} + +declare module 'date-fns/esm/getOverlappingDaysInIntervals/index.js' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/getQuarter/index.js' { + import { getQuarter } from 'date-fns/esm' + export default getQuarter +} + +declare module 'date-fns/esm/getSeconds/index.js' { + import { getSeconds } from 'date-fns/esm' + export default getSeconds +} + +declare module 'date-fns/esm/getTime/index.js' { + import { getTime } from 'date-fns/esm' + export default getTime +} + +declare module 'date-fns/esm/getUnixTime/index.js' { + import { getUnixTime } from 'date-fns/esm' + export default getUnixTime +} + +declare module 'date-fns/esm/getWeek/index.js' { + import { getWeek } from 'date-fns/esm' + export default getWeek +} + +declare module 'date-fns/esm/getWeekOfMonth/index.js' { + import { getWeekOfMonth } from 'date-fns/esm' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/getWeeksInMonth/index.js' { + import { getWeeksInMonth } from 'date-fns/esm' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/getWeekYear/index.js' { + import { getWeekYear } from 'date-fns/esm' + export default getWeekYear +} + +declare module 'date-fns/esm/getYear/index.js' { + import { getYear } from 'date-fns/esm' + export default getYear +} + +declare module 'date-fns/esm/hoursToMilliseconds/index.js' { + import { hoursToMilliseconds } from 'date-fns/esm' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/hoursToMinutes/index.js' { + import { hoursToMinutes } from 'date-fns/esm' + export default hoursToMinutes +} + +declare module 'date-fns/esm/hoursToSeconds/index.js' { + import { hoursToSeconds } from 'date-fns/esm' + export default hoursToSeconds +} + +declare module 'date-fns/esm/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/esm' + export default intervalToDuration +} + +declare module 'date-fns/esm/intlFormat/index.js' { + import { intlFormat } from 'date-fns/esm' + export default intlFormat +} + +declare module 'date-fns/esm/intlFormatDistance/index.js' { + import { intlFormatDistance } from 'date-fns/esm' + export default intlFormatDistance +} + +declare module 'date-fns/esm/isAfter/index.js' { + import { isAfter } from 'date-fns/esm' + export default isAfter +} + +declare module 'date-fns/esm/isBefore/index.js' { + import { isBefore } from 'date-fns/esm' + export default isBefore +} + +declare module 'date-fns/esm/isDate/index.js' { + import { isDate } from 'date-fns/esm' + export default isDate +} + +declare module 'date-fns/esm/isEqual/index.js' { + import { isEqual } from 'date-fns/esm' + export default isEqual +} + +declare module 'date-fns/esm/isExists/index.js' { + import { isExists } from 'date-fns/esm' + export default isExists +} + +declare module 'date-fns/esm/isFirstDayOfMonth/index.js' { + import { isFirstDayOfMonth } from 'date-fns/esm' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/isFriday/index.js' { + import { isFriday } from 'date-fns/esm' + export default isFriday +} + +declare module 'date-fns/esm/isFuture/index.js' { + import { isFuture } from 'date-fns/esm' + export default isFuture +} + +declare module 'date-fns/esm/isLastDayOfMonth/index.js' { + import { isLastDayOfMonth } from 'date-fns/esm' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/isLeapYear/index.js' { + import { isLeapYear } from 'date-fns/esm' + export default isLeapYear +} + +declare module 'date-fns/esm/isMatch/index.js' { + import { isMatch } from 'date-fns/esm' + export default isMatch +} + +declare module 'date-fns/esm/isMonday/index.js' { + import { isMonday } from 'date-fns/esm' + export default isMonday +} + +declare module 'date-fns/esm/isPast/index.js' { + import { isPast } from 'date-fns/esm' + export default isPast +} + +declare module 'date-fns/esm/isSameDay/index.js' { + import { isSameDay } from 'date-fns/esm' + export default isSameDay +} + +declare module 'date-fns/esm/isSameHour/index.js' { + import { isSameHour } from 'date-fns/esm' + export default isSameHour +} + +declare module 'date-fns/esm/isSameISOWeek/index.js' { + import { isSameISOWeek } from 'date-fns/esm' + export default isSameISOWeek +} + +declare module 'date-fns/esm/isSameISOWeekYear/index.js' { + import { isSameISOWeekYear } from 'date-fns/esm' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/isSameMinute/index.js' { + import { isSameMinute } from 'date-fns/esm' + export default isSameMinute +} + +declare module 'date-fns/esm/isSameMonth/index.js' { + import { isSameMonth } from 'date-fns/esm' + export default isSameMonth +} + +declare module 'date-fns/esm/isSameQuarter/index.js' { + import { isSameQuarter } from 'date-fns/esm' + export default isSameQuarter +} + +declare module 'date-fns/esm/isSameSecond/index.js' { + import { isSameSecond } from 'date-fns/esm' + export default isSameSecond +} + +declare module 'date-fns/esm/isSameWeek/index.js' { + import { isSameWeek } from 'date-fns/esm' + export default isSameWeek +} + +declare module 'date-fns/esm/isSameYear/index.js' { + import { isSameYear } from 'date-fns/esm' + export default isSameYear +} + +declare module 'date-fns/esm/isSaturday/index.js' { + import { isSaturday } from 'date-fns/esm' + export default isSaturday +} + +declare module 'date-fns/esm/isSunday/index.js' { + import { isSunday } from 'date-fns/esm' + export default isSunday +} + +declare module 'date-fns/esm/isThisHour/index.js' { + import { isThisHour } from 'date-fns/esm' + export default isThisHour +} + +declare module 'date-fns/esm/isThisISOWeek/index.js' { + import { isThisISOWeek } from 'date-fns/esm' + export default isThisISOWeek +} + +declare module 'date-fns/esm/isThisMinute/index.js' { + import { isThisMinute } from 'date-fns/esm' + export default isThisMinute +} + +declare module 'date-fns/esm/isThisMonth/index.js' { + import { isThisMonth } from 'date-fns/esm' + export default isThisMonth +} + +declare module 'date-fns/esm/isThisQuarter/index.js' { + import { isThisQuarter } from 'date-fns/esm' + export default isThisQuarter +} + +declare module 'date-fns/esm/isThisSecond/index.js' { + import { isThisSecond } from 'date-fns/esm' + export default isThisSecond +} + +declare module 'date-fns/esm/isThisWeek/index.js' { + import { isThisWeek } from 'date-fns/esm' + export default isThisWeek +} + +declare module 'date-fns/esm/isThisYear/index.js' { + import { isThisYear } from 'date-fns/esm' + export default isThisYear +} + +declare module 'date-fns/esm/isThursday/index.js' { + import { isThursday } from 'date-fns/esm' + export default isThursday +} + +declare module 'date-fns/esm/isToday/index.js' { + import { isToday } from 'date-fns/esm' + export default isToday +} + +declare module 'date-fns/esm/isTomorrow/index.js' { + import { isTomorrow } from 'date-fns/esm' + export default isTomorrow +} + +declare module 'date-fns/esm/isTuesday/index.js' { + import { isTuesday } from 'date-fns/esm' + export default isTuesday +} + +declare module 'date-fns/esm/isValid/index.js' { + import { isValid } from 'date-fns/esm' + export default isValid +} + +declare module 'date-fns/esm/isWednesday/index.js' { + import { isWednesday } from 'date-fns/esm' + export default isWednesday +} + +declare module 'date-fns/esm/isWeekend/index.js' { + import { isWeekend } from 'date-fns/esm' + export default isWeekend +} + +declare module 'date-fns/esm/isWithinInterval/index.js' { + import { isWithinInterval } from 'date-fns/esm' + export default isWithinInterval +} + +declare module 'date-fns/esm/isYesterday/index.js' { + import { isYesterday } from 'date-fns/esm' + export default isYesterday +} + +declare module 'date-fns/esm/lastDayOfDecade/index.js' { + import { lastDayOfDecade } from 'date-fns/esm' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/lastDayOfISOWeek/index.js' { + import { lastDayOfISOWeek } from 'date-fns/esm' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/lastDayOfISOWeekYear/index.js' { + import { lastDayOfISOWeekYear } from 'date-fns/esm' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/lastDayOfMonth/index.js' { + import { lastDayOfMonth } from 'date-fns/esm' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/lastDayOfQuarter/index.js' { + import { lastDayOfQuarter } from 'date-fns/esm' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/lastDayOfWeek/index.js' { + import { lastDayOfWeek } from 'date-fns/esm' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/lastDayOfYear/index.js' { + import { lastDayOfYear } from 'date-fns/esm' + export default lastDayOfYear +} + +declare module 'date-fns/esm/lightFormat/index.js' { + import { lightFormat } from 'date-fns/esm' + export default lightFormat +} + +declare module 'date-fns/esm/max/index.js' { + import { max } from 'date-fns/esm' + export default max +} + +declare module 'date-fns/esm/milliseconds/index.js' { + import { milliseconds } from 'date-fns/esm' + export default milliseconds +} + +declare module 'date-fns/esm/millisecondsToHours/index.js' { + import { millisecondsToHours } from 'date-fns/esm' + export default millisecondsToHours +} + +declare module 'date-fns/esm/millisecondsToMinutes/index.js' { + import { millisecondsToMinutes } from 'date-fns/esm' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/millisecondsToSeconds/index.js' { + import { millisecondsToSeconds } from 'date-fns/esm' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/min/index.js' { + import { min } from 'date-fns/esm' + export default min +} + +declare module 'date-fns/esm/minutesToHours/index.js' { + import { minutesToHours } from 'date-fns/esm' + export default minutesToHours +} + +declare module 'date-fns/esm/minutesToMilliseconds/index.js' { + import { minutesToMilliseconds } from 'date-fns/esm' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/minutesToSeconds/index.js' { + import { minutesToSeconds } from 'date-fns/esm' + export default minutesToSeconds +} + +declare module 'date-fns/esm/monthsToQuarters/index.js' { + import { monthsToQuarters } from 'date-fns/esm' + export default monthsToQuarters +} + +declare module 'date-fns/esm/monthsToYears/index.js' { + import { monthsToYears } from 'date-fns/esm' + export default monthsToYears +} + +declare module 'date-fns/esm/nextDay/index.js' { + import { nextDay } from 'date-fns/esm' + export default nextDay +} + +declare module 'date-fns/esm/nextFriday/index.js' { + import { nextFriday } from 'date-fns/esm' + export default nextFriday +} + +declare module 'date-fns/esm/nextMonday/index.js' { + import { nextMonday } from 'date-fns/esm' + export default nextMonday +} + +declare module 'date-fns/esm/nextSaturday/index.js' { + import { nextSaturday } from 'date-fns/esm' + export default nextSaturday +} + +declare module 'date-fns/esm/nextSunday/index.js' { + import { nextSunday } from 'date-fns/esm' + export default nextSunday +} + +declare module 'date-fns/esm/nextThursday/index.js' { + import { nextThursday } from 'date-fns/esm' + export default nextThursday +} + +declare module 'date-fns/esm/nextTuesday/index.js' { + import { nextTuesday } from 'date-fns/esm' + export default nextTuesday +} + +declare module 'date-fns/esm/nextWednesday/index.js' { + import { nextWednesday } from 'date-fns/esm' + export default nextWednesday +} + +declare module 'date-fns/esm/parse/index.js' { + import { parse } from 'date-fns/esm' + export default parse +} + +declare module 'date-fns/esm/parseISO/index.js' { + import { parseISO } from 'date-fns/esm' + export default parseISO +} + +declare module 'date-fns/esm/parseJSON/index.js' { + import { parseJSON } from 'date-fns/esm' + export default parseJSON +} + +declare module 'date-fns/esm/previousDay/index.js' { + import { previousDay } from 'date-fns/esm' + export default previousDay +} + +declare module 'date-fns/esm/previousFriday/index.js' { + import { previousFriday } from 'date-fns/esm' + export default previousFriday +} + +declare module 'date-fns/esm/previousMonday/index.js' { + import { previousMonday } from 'date-fns/esm' + export default previousMonday +} + +declare module 'date-fns/esm/previousSaturday/index.js' { + import { previousSaturday } from 'date-fns/esm' + export default previousSaturday +} + +declare module 'date-fns/esm/previousSunday/index.js' { + import { previousSunday } from 'date-fns/esm' + export default previousSunday +} + +declare module 'date-fns/esm/previousThursday/index.js' { + import { previousThursday } from 'date-fns/esm' + export default previousThursday +} + +declare module 'date-fns/esm/previousTuesday/index.js' { + import { previousTuesday } from 'date-fns/esm' + export default previousTuesday +} + +declare module 'date-fns/esm/previousWednesday/index.js' { + import { previousWednesday } from 'date-fns/esm' + export default previousWednesday +} + +declare module 'date-fns/esm/quartersToMonths/index.js' { + import { quartersToMonths } from 'date-fns/esm' + export default quartersToMonths +} + +declare module 'date-fns/esm/quartersToYears/index.js' { + import { quartersToYears } from 'date-fns/esm' + export default quartersToYears +} + +declare module 'date-fns/esm/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns/esm' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/secondsToHours/index.js' { + import { secondsToHours } from 'date-fns/esm' + export default secondsToHours +} + +declare module 'date-fns/esm/secondsToMilliseconds/index.js' { + import { secondsToMilliseconds } from 'date-fns/esm' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/secondsToMinutes/index.js' { + import { secondsToMinutes } from 'date-fns/esm' + export default secondsToMinutes +} + +declare module 'date-fns/esm/set/index.js' { + import { set } from 'date-fns/esm' + export default set +} + +declare module 'date-fns/esm/setDate/index.js' { + import { setDate } from 'date-fns/esm' + export default setDate +} + +declare module 'date-fns/esm/setDay/index.js' { + import { setDay } from 'date-fns/esm' + export default setDay +} + +declare module 'date-fns/esm/setDayOfYear/index.js' { + import { setDayOfYear } from 'date-fns/esm' + export default setDayOfYear +} + +declare module 'date-fns/esm/setDefaultOptions/index.js' { + import { setDefaultOptions } from 'date-fns/esm' + export default setDefaultOptions +} + +declare module 'date-fns/esm/setHours/index.js' { + import { setHours } from 'date-fns/esm' + export default setHours +} + +declare module 'date-fns/esm/setISODay/index.js' { + import { setISODay } from 'date-fns/esm' + export default setISODay +} + +declare module 'date-fns/esm/setISOWeek/index.js' { + import { setISOWeek } from 'date-fns/esm' + export default setISOWeek +} + +declare module 'date-fns/esm/setISOWeekYear/index.js' { + import { setISOWeekYear } from 'date-fns/esm' + export default setISOWeekYear +} + +declare module 'date-fns/esm/setMilliseconds/index.js' { + import { setMilliseconds } from 'date-fns/esm' + export default setMilliseconds +} + +declare module 'date-fns/esm/setMinutes/index.js' { + import { setMinutes } from 'date-fns/esm' + export default setMinutes +} + +declare module 'date-fns/esm/setMonth/index.js' { + import { setMonth } from 'date-fns/esm' + export default setMonth +} + +declare module 'date-fns/esm/setQuarter/index.js' { + import { setQuarter } from 'date-fns/esm' + export default setQuarter +} + +declare module 'date-fns/esm/setSeconds/index.js' { + import { setSeconds } from 'date-fns/esm' + export default setSeconds +} + +declare module 'date-fns/esm/setWeek/index.js' { + import { setWeek } from 'date-fns/esm' + export default setWeek +} + +declare module 'date-fns/esm/setWeekYear/index.js' { + import { setWeekYear } from 'date-fns/esm' + export default setWeekYear +} + +declare module 'date-fns/esm/setYear/index.js' { + import { setYear } from 'date-fns/esm' + export default setYear +} + +declare module 'date-fns/esm/startOfDay/index.js' { + import { startOfDay } from 'date-fns/esm' + export default startOfDay +} + +declare module 'date-fns/esm/startOfDecade/index.js' { + import { startOfDecade } from 'date-fns/esm' + export default startOfDecade +} + +declare module 'date-fns/esm/startOfHour/index.js' { + import { startOfHour } from 'date-fns/esm' + export default startOfHour +} + +declare module 'date-fns/esm/startOfISOWeek/index.js' { + import { startOfISOWeek } from 'date-fns/esm' + export default startOfISOWeek +} + +declare module 'date-fns/esm/startOfISOWeekYear/index.js' { + import { startOfISOWeekYear } from 'date-fns/esm' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/startOfMinute/index.js' { + import { startOfMinute } from 'date-fns/esm' + export default startOfMinute +} + +declare module 'date-fns/esm/startOfMonth/index.js' { + import { startOfMonth } from 'date-fns/esm' + export default startOfMonth +} + +declare module 'date-fns/esm/startOfQuarter/index.js' { + import { startOfQuarter } from 'date-fns/esm' + export default startOfQuarter +} + +declare module 'date-fns/esm/startOfSecond/index.js' { + import { startOfSecond } from 'date-fns/esm' + export default startOfSecond +} + +declare module 'date-fns/esm/startOfToday/index.js' { + import { startOfToday } from 'date-fns/esm' + export default startOfToday +} + +declare module 'date-fns/esm/startOfTomorrow/index.js' { + import { startOfTomorrow } from 'date-fns/esm' + export default startOfTomorrow +} + +declare module 'date-fns/esm/startOfWeek/index.js' { + import { startOfWeek } from 'date-fns/esm' + export default startOfWeek +} + +declare module 'date-fns/esm/startOfWeekYear/index.js' { + import { startOfWeekYear } from 'date-fns/esm' + export default startOfWeekYear +} + +declare module 'date-fns/esm/startOfYear/index.js' { + import { startOfYear } from 'date-fns/esm' + export default startOfYear +} + +declare module 'date-fns/esm/startOfYesterday/index.js' { + import { startOfYesterday } from 'date-fns/esm' + export default startOfYesterday +} + +declare module 'date-fns/esm/sub/index.js' { + import { sub } from 'date-fns/esm' + export default sub +} + +declare module 'date-fns/esm/subBusinessDays/index.js' { + import { subBusinessDays } from 'date-fns/esm' + export default subBusinessDays +} + +declare module 'date-fns/esm/subDays/index.js' { + import { subDays } from 'date-fns/esm' + export default subDays +} + +declare module 'date-fns/esm/subHours/index.js' { + import { subHours } from 'date-fns/esm' + export default subHours +} + +declare module 'date-fns/esm/subISOWeekYears/index.js' { + import { subISOWeekYears } from 'date-fns/esm' + export default subISOWeekYears +} + +declare module 'date-fns/esm/subMilliseconds/index.js' { + import { subMilliseconds } from 'date-fns/esm' + export default subMilliseconds +} + +declare module 'date-fns/esm/subMinutes/index.js' { + import { subMinutes } from 'date-fns/esm' + export default subMinutes +} + +declare module 'date-fns/esm/subMonths/index.js' { + import { subMonths } from 'date-fns/esm' + export default subMonths +} + +declare module 'date-fns/esm/subQuarters/index.js' { + import { subQuarters } from 'date-fns/esm' + export default subQuarters +} + +declare module 'date-fns/esm/subSeconds/index.js' { + import { subSeconds } from 'date-fns/esm' + export default subSeconds +} + +declare module 'date-fns/esm/subWeeks/index.js' { + import { subWeeks } from 'date-fns/esm' + export default subWeeks +} + +declare module 'date-fns/esm/subYears/index.js' { + import { subYears } from 'date-fns/esm' + export default subYears +} + +declare module 'date-fns/esm/toDate/index.js' { + import { toDate } from 'date-fns/esm' + export default toDate +} + +declare module 'date-fns/esm/weeksToDays/index.js' { + import { weeksToDays } from 'date-fns/esm' + export default weeksToDays +} + +declare module 'date-fns/esm/yearsToMonths/index.js' { + import { yearsToMonths } from 'date-fns/esm' + export default yearsToMonths +} + +declare module 'date-fns/esm/yearsToQuarters/index.js' { + import { yearsToQuarters } from 'date-fns/esm' + export default yearsToQuarters +} + +// ECMAScript Module FP Functions + +declare module 'date-fns/esm/fp' { + const add: CurriedFn2 + namespace add {} + + const addBusinessDays: CurriedFn2 + namespace addBusinessDays {} + + const addDays: CurriedFn2 + namespace addDays {} + + const addHours: CurriedFn2 + namespace addHours {} + + const addISOWeekYears: CurriedFn2 + namespace addISOWeekYears {} + + const addMilliseconds: CurriedFn2 + namespace addMilliseconds {} + + const addMinutes: CurriedFn2 + namespace addMinutes {} + + const addMonths: CurriedFn2 + namespace addMonths {} + + const addQuarters: CurriedFn2 + namespace addQuarters {} + + const addSeconds: CurriedFn2 + namespace addSeconds {} + + const addWeeks: CurriedFn2 + namespace addWeeks {} + + const addYears: CurriedFn2 + namespace addYears {} + + const areIntervalsOverlapping: CurriedFn2 + namespace areIntervalsOverlapping {} + + const areIntervalsOverlappingWithOptions: CurriedFn3< + { + inclusive?: boolean + }, + Interval, + Interval, + boolean + > + namespace areIntervalsOverlappingWithOptions {} + + const clamp: CurriedFn2 + namespace clamp {} + + const closestIndexTo: CurriedFn2< + (Date | number)[], + Date | number, + number | undefined + > + namespace closestIndexTo {} + + const closestTo: CurriedFn2< + (Date | number)[], + Date | number, + Date | undefined + > + namespace closestTo {} + + const compareAsc: CurriedFn2 + namespace compareAsc {} + + const compareDesc: CurriedFn2 + namespace compareDesc {} + + const daysToWeeks: CurriedFn1 + namespace daysToWeeks {} + + const differenceInBusinessDays: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInBusinessDays {} + + const differenceInCalendarDays: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarDays {} + + const differenceInCalendarISOWeeks: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarISOWeeks {} + + const differenceInCalendarISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarISOWeekYears {} + + const differenceInCalendarMonths: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarMonths {} + + const differenceInCalendarQuarters: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarQuarters {} + + const differenceInCalendarWeeks: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarWeeks {} + + const differenceInCalendarWeeksWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + number + > + namespace differenceInCalendarWeeksWithOptions {} + + const differenceInCalendarYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInCalendarYears {} + + const differenceInDays: CurriedFn2 + namespace differenceInDays {} + + const differenceInHours: CurriedFn2 + namespace differenceInHours {} + + const differenceInHoursWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInHoursWithOptions {} + + const differenceInISOWeekYears: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInISOWeekYears {} + + const differenceInMilliseconds: CurriedFn2< + Date | number, + Date | number, + number + > + namespace differenceInMilliseconds {} + + const differenceInMinutes: CurriedFn2 + namespace differenceInMinutes {} + + const differenceInMinutesWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInMinutesWithOptions {} + + const differenceInMonths: CurriedFn2 + namespace differenceInMonths {} + + const differenceInQuarters: CurriedFn2 + namespace differenceInQuarters {} + + const differenceInQuartersWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInQuartersWithOptions {} + + const differenceInSeconds: CurriedFn2 + namespace differenceInSeconds {} + + const differenceInSecondsWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInSecondsWithOptions {} + + const differenceInWeeks: CurriedFn2 + namespace differenceInWeeks {} + + const differenceInWeeksWithOptions: CurriedFn3< + { + roundingMethod?: string + }, + Date | number, + Date | number, + number + > + namespace differenceInWeeksWithOptions {} + + const differenceInYears: CurriedFn2 + namespace differenceInYears {} + + const eachDayOfInterval: CurriedFn1 + namespace eachDayOfInterval {} + + const eachDayOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachDayOfIntervalWithOptions {} + + const eachHourOfInterval: CurriedFn1 + namespace eachHourOfInterval {} + + const eachHourOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachHourOfIntervalWithOptions {} + + const eachMinuteOfInterval: CurriedFn1 + namespace eachMinuteOfInterval {} + + const eachMinuteOfIntervalWithOptions: CurriedFn2< + { + step?: number + }, + Interval, + Date[] + > + namespace eachMinuteOfIntervalWithOptions {} + + const eachMonthOfInterval: CurriedFn1 + namespace eachMonthOfInterval {} + + const eachQuarterOfInterval: CurriedFn1 + namespace eachQuarterOfInterval {} + + const eachWeekendOfInterval: CurriedFn1 + namespace eachWeekendOfInterval {} + + const eachWeekendOfMonth: CurriedFn1 + namespace eachWeekendOfMonth {} + + const eachWeekendOfYear: CurriedFn1 + namespace eachWeekendOfYear {} + + const eachWeekOfInterval: CurriedFn1 + namespace eachWeekOfInterval {} + + const eachWeekOfIntervalWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Interval, + Date[] + > + namespace eachWeekOfIntervalWithOptions {} + + const eachYearOfInterval: CurriedFn1 + namespace eachYearOfInterval {} + + const endOfDay: CurriedFn1 + namespace endOfDay {} + + const endOfDecade: CurriedFn1 + namespace endOfDecade {} + + const endOfDecadeWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + Date | number, + Date + > + namespace endOfDecadeWithOptions {} + + const endOfHour: CurriedFn1 + namespace endOfHour {} + + const endOfISOWeek: CurriedFn1 + namespace endOfISOWeek {} + + const endOfISOWeekYear: CurriedFn1 + namespace endOfISOWeekYear {} + + const endOfMinute: CurriedFn1 + namespace endOfMinute {} + + const endOfMonth: CurriedFn1 + namespace endOfMonth {} + + const endOfQuarter: CurriedFn1 + namespace endOfQuarter {} + + const endOfSecond: CurriedFn1 + namespace endOfSecond {} + + const endOfWeek: CurriedFn1 + namespace endOfWeek {} + + const endOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace endOfWeekWithOptions {} + + const endOfYear: CurriedFn1 + namespace endOfYear {} + + const format: CurriedFn2 + namespace format {} + + const formatDistance: CurriedFn2 + namespace formatDistance {} + + const formatDistanceStrict: CurriedFn2 + namespace formatDistanceStrict {} + + const formatDistanceStrictWithOptions: CurriedFn3< + { + locale?: Locale + roundingMethod?: 'floor' | 'ceil' | 'round' + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + addSuffix?: boolean + }, + Date | number, + Date | number, + string + > + namespace formatDistanceStrictWithOptions {} + + const formatDistanceWithOptions: CurriedFn3< + { + locale?: Locale + addSuffix?: boolean + includeSeconds?: boolean + }, + Date | number, + Date | number, + string + > + namespace formatDistanceWithOptions {} + + const formatDuration: CurriedFn1 + namespace formatDuration {} + + const formatDurationWithOptions: CurriedFn2< + { + locale?: Locale + delimiter?: string + zero?: boolean + format?: string[] + }, + Duration, + string + > + namespace formatDurationWithOptions {} + + const formatISO: CurriedFn1 + namespace formatISO {} + + const formatISO9075: CurriedFn1 + namespace formatISO9075 {} + + const formatISO9075WithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time' + format?: 'extended' | 'basic' + }, + Date | number, + string + > + namespace formatISO9075WithOptions {} + + const formatISODuration: CurriedFn1 + namespace formatISODuration {} + + const formatISOWithOptions: CurriedFn2< + { + representation?: 'complete' | 'date' | 'time' + format?: 'extended' | 'basic' + }, + Date | number, + string + > + namespace formatISOWithOptions {} + + const formatRelative: CurriedFn2 + namespace formatRelative {} + + const formatRelativeWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + string + > + namespace formatRelativeWithOptions {} + + const formatRFC3339: CurriedFn1 + namespace formatRFC3339 {} + + const formatRFC3339WithOptions: CurriedFn2< + { + fractionDigits?: 0 | 1 | 2 | 3 + }, + Date | number, + string + > + namespace formatRFC3339WithOptions {} + + const formatRFC7231: CurriedFn1 + namespace formatRFC7231 {} + + const formatWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: number + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + string, + Date | number, + string + > + namespace formatWithOptions {} + + const fromUnixTime: CurriedFn1 + namespace fromUnixTime {} + + const getDate: CurriedFn1 + namespace getDate {} + + const getDay: CurriedFn1 + namespace getDay {} + + const getDayOfYear: CurriedFn1 + namespace getDayOfYear {} + + const getDaysInMonth: CurriedFn1 + namespace getDaysInMonth {} + + const getDaysInYear: CurriedFn1 + namespace getDaysInYear {} + + const getDecade: CurriedFn1 + namespace getDecade {} + + const getHours: CurriedFn1 + namespace getHours {} + + const getISODay: CurriedFn1 + namespace getISODay {} + + const getISOWeek: CurriedFn1 + namespace getISOWeek {} + + const getISOWeeksInYear: CurriedFn1 + namespace getISOWeeksInYear {} + + const getISOWeekYear: CurriedFn1 + namespace getISOWeekYear {} + + const getMilliseconds: CurriedFn1 + namespace getMilliseconds {} + + const getMinutes: CurriedFn1 + namespace getMinutes {} + + const getMonth: CurriedFn1 + namespace getMonth {} + + const getOverlappingDaysInIntervals: CurriedFn2 + namespace getOverlappingDaysInIntervals {} + + const getQuarter: CurriedFn1 + namespace getQuarter {} + + const getSeconds: CurriedFn1 + namespace getSeconds {} + + const getTime: CurriedFn1 + namespace getTime {} + + const getUnixTime: CurriedFn1 + namespace getUnixTime {} + + const getWeek: CurriedFn1 + namespace getWeek {} + + const getWeekOfMonth: CurriedFn1 + namespace getWeekOfMonth {} + + const getWeekOfMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekOfMonthWithOptions {} + + const getWeeksInMonth: CurriedFn1 + namespace getWeeksInMonth {} + + const getWeeksInMonthWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeeksInMonthWithOptions {} + + const getWeekWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekWithOptions {} + + const getWeekYear: CurriedFn1 + namespace getWeekYear {} + + const getWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + number + > + namespace getWeekYearWithOptions {} + + const getYear: CurriedFn1 + namespace getYear {} + + const hoursToMilliseconds: CurriedFn1 + namespace hoursToMilliseconds {} + + const hoursToMinutes: CurriedFn1 + namespace hoursToMinutes {} + + const hoursToSeconds: CurriedFn1 + namespace hoursToSeconds {} + + const intervalToDuration: CurriedFn1 + namespace intervalToDuration {} + + const intlFormat: CurriedFn3< + { + locale?: string | string[] + }, + { + timeZone?: string + hour12?: boolean + formatMatcher?: 'basic' | 'best fit' + timeZoneName?: 'short' | 'long' + second?: 'numeric' | '2-digit' + minute?: 'numeric' | '2-digit' + hour?: 'numeric' | '2-digit' + day?: 'numeric' | '2-digit' + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' + year?: 'numeric' | '2-digit' + era?: 'narrow' | 'short' | 'long' + weekday?: 'narrow' | 'short' | 'long' + localeMatcher?: 'lookup' | 'best fit' + }, + Date | number, + string + > + namespace intlFormat {} + + const intlFormatDistance: CurriedFn2 + namespace intlFormatDistance {} + + const intlFormatDistanceWithOptions: CurriedFn3< + { + style?: string + numeric?: string + localeMatcher?: string + locale?: string | string[] + unit?: string + }, + Date | number, + Date | number, + string + > + namespace intlFormatDistanceWithOptions {} + + const isAfter: CurriedFn2 + namespace isAfter {} + + const isBefore: CurriedFn2 + namespace isBefore {} + + const isDate: CurriedFn1 + namespace isDate {} + + const isEqual: CurriedFn2 + namespace isEqual {} + + const isExists: CurriedFn3 + namespace isExists {} + + const isFirstDayOfMonth: CurriedFn1 + namespace isFirstDayOfMonth {} + + const isFriday: CurriedFn1 + namespace isFriday {} + + const isLastDayOfMonth: CurriedFn1 + namespace isLastDayOfMonth {} + + const isLeapYear: CurriedFn1 + namespace isLeapYear {} + + const isMatch: CurriedFn2 + namespace isMatch {} + + const isMatchWithOptions: CurriedFn3< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + string, + string, + boolean + > + namespace isMatchWithOptions {} + + const isMonday: CurriedFn1 + namespace isMonday {} + + const isSameDay: CurriedFn2 + namespace isSameDay {} + + const isSameHour: CurriedFn2 + namespace isSameHour {} + + const isSameISOWeek: CurriedFn2 + namespace isSameISOWeek {} + + const isSameISOWeekYear: CurriedFn2 + namespace isSameISOWeekYear {} + + const isSameMinute: CurriedFn2 + namespace isSameMinute {} + + const isSameMonth: CurriedFn2 + namespace isSameMonth {} + + const isSameQuarter: CurriedFn2 + namespace isSameQuarter {} + + const isSameSecond: CurriedFn2 + namespace isSameSecond {} + + const isSameWeek: CurriedFn2 + namespace isSameWeek {} + + const isSameWeekWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date | number, + boolean + > + namespace isSameWeekWithOptions {} + + const isSameYear: CurriedFn2 + namespace isSameYear {} + + const isSaturday: CurriedFn1 + namespace isSaturday {} + + const isSunday: CurriedFn1 + namespace isSunday {} + + const isThursday: CurriedFn1 + namespace isThursday {} + + const isTuesday: CurriedFn1 + namespace isTuesday {} + + const isValid: CurriedFn1 + namespace isValid {} + + const isWednesday: CurriedFn1 + namespace isWednesday {} + + const isWeekend: CurriedFn1 + namespace isWeekend {} + + const isWithinInterval: CurriedFn2 + namespace isWithinInterval {} + + const lastDayOfDecade: CurriedFn1 + namespace lastDayOfDecade {} + + const lastDayOfISOWeek: CurriedFn1 + namespace lastDayOfISOWeek {} + + const lastDayOfISOWeekYear: CurriedFn1 + namespace lastDayOfISOWeekYear {} + + const lastDayOfMonth: CurriedFn1 + namespace lastDayOfMonth {} + + const lastDayOfQuarter: CurriedFn1 + namespace lastDayOfQuarter {} + + const lastDayOfQuarterWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + Date | number, + Date + > + namespace lastDayOfQuarterWithOptions {} + + const lastDayOfWeek: CurriedFn1 + namespace lastDayOfWeek {} + + const lastDayOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace lastDayOfWeekWithOptions {} + + const lastDayOfYear: CurriedFn1 + namespace lastDayOfYear {} + + const lightFormat: CurriedFn2 + namespace lightFormat {} + + const max: CurriedFn1<(Date | number)[], Date> + namespace max {} + + const milliseconds: CurriedFn1 + namespace milliseconds {} + + const millisecondsToHours: CurriedFn1 + namespace millisecondsToHours {} + + const millisecondsToMinutes: CurriedFn1 + namespace millisecondsToMinutes {} + + const millisecondsToSeconds: CurriedFn1 + namespace millisecondsToSeconds {} + + const min: CurriedFn1<(Date | number)[], Date> + namespace min {} + + const minutesToHours: CurriedFn1 + namespace minutesToHours {} + + const minutesToMilliseconds: CurriedFn1 + namespace minutesToMilliseconds {} + + const minutesToSeconds: CurriedFn1 + namespace minutesToSeconds {} + + const monthsToQuarters: CurriedFn1 + namespace monthsToQuarters {} + + const monthsToYears: CurriedFn1 + namespace monthsToYears {} + + const nextDay: CurriedFn2 + namespace nextDay {} + + const nextFriday: CurriedFn1 + namespace nextFriday {} + + const nextMonday: CurriedFn1 + namespace nextMonday {} + + const nextSaturday: CurriedFn1 + namespace nextSaturday {} + + const nextSunday: CurriedFn1 + namespace nextSunday {} + + const nextThursday: CurriedFn1 + namespace nextThursday {} + + const nextTuesday: CurriedFn1 + namespace nextTuesday {} + + const nextWednesday: CurriedFn1 + namespace nextWednesday {} + + const parse: CurriedFn3 + namespace parse {} + + const parseISO: CurriedFn1 + namespace parseISO {} + + const parseISOWithOptions: CurriedFn2< + { + additionalDigits?: 0 | 1 | 2 + }, + string, + Date + > + namespace parseISOWithOptions {} + + const parseJSON: CurriedFn1 + namespace parseJSON {} + + const parseWithOptions: CurriedFn4< + { + useAdditionalDayOfYearTokens?: boolean + useAdditionalWeekYearTokens?: boolean + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + string, + string, + Date + > + namespace parseWithOptions {} + + const previousDay: CurriedFn2 + namespace previousDay {} + + const previousFriday: CurriedFn1 + namespace previousFriday {} + + const previousMonday: CurriedFn1 + namespace previousMonday {} + + const previousSaturday: CurriedFn1 + namespace previousSaturday {} + + const previousSunday: CurriedFn1 + namespace previousSunday {} + + const previousThursday: CurriedFn1 + namespace previousThursday {} + + const previousTuesday: CurriedFn1 + namespace previousTuesday {} + + const previousWednesday: CurriedFn1 + namespace previousWednesday {} + + const quartersToMonths: CurriedFn1 + namespace quartersToMonths {} + + const quartersToYears: CurriedFn1 + namespace quartersToYears {} + + const roundToNearestMinutes: CurriedFn1 + namespace roundToNearestMinutes {} + + const roundToNearestMinutesWithOptions: CurriedFn2< + { + roundingMethod?: string + nearestTo?: number + }, + Date | number, + Date + > + namespace roundToNearestMinutesWithOptions {} + + const secondsToHours: CurriedFn1 + namespace secondsToHours {} + + const secondsToMilliseconds: CurriedFn1 + namespace secondsToMilliseconds {} + + const secondsToMinutes: CurriedFn1 + namespace secondsToMinutes {} + + const set: CurriedFn2< + { + milliseconds?: number + seconds?: number + minutes?: number + hours?: number + date?: number + month?: number + year?: number + }, + Date | number, + Date + > + namespace set {} + + const setDate: CurriedFn2 + namespace setDate {} + + const setDay: CurriedFn2 + namespace setDay {} + + const setDayOfYear: CurriedFn2 + namespace setDayOfYear {} + + const setDayWithOptions: CurriedFn3< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setDayWithOptions {} + + const setHours: CurriedFn2 + namespace setHours {} + + const setISODay: CurriedFn2 + namespace setISODay {} + + const setISOWeek: CurriedFn2 + namespace setISOWeek {} + + const setISOWeekYear: CurriedFn2 + namespace setISOWeekYear {} + + const setMilliseconds: CurriedFn2 + namespace setMilliseconds {} + + const setMinutes: CurriedFn2 + namespace setMinutes {} + + const setMonth: CurriedFn2 + namespace setMonth {} + + const setQuarter: CurriedFn2 + namespace setQuarter {} + + const setSeconds: CurriedFn2 + namespace setSeconds {} + + const setWeek: CurriedFn2 + namespace setWeek {} + + const setWeekWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setWeekWithOptions {} + + const setWeekYear: CurriedFn2 + namespace setWeekYear {} + + const setWeekYearWithOptions: CurriedFn3< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + number, + Date | number, + Date + > + namespace setWeekYearWithOptions {} + + const setYear: CurriedFn2 + namespace setYear {} + + const startOfDay: CurriedFn1 + namespace startOfDay {} + + const startOfDecade: CurriedFn1 + namespace startOfDecade {} + + const startOfHour: CurriedFn1 + namespace startOfHour {} + + const startOfISOWeek: CurriedFn1 + namespace startOfISOWeek {} + + const startOfISOWeekYear: CurriedFn1 + namespace startOfISOWeekYear {} + + const startOfMinute: CurriedFn1 + namespace startOfMinute {} + + const startOfMonth: CurriedFn1 + namespace startOfMonth {} + + const startOfQuarter: CurriedFn1 + namespace startOfQuarter {} + + const startOfSecond: CurriedFn1 + namespace startOfSecond {} + + const startOfWeek: CurriedFn1 + namespace startOfWeek {} + + const startOfWeekWithOptions: CurriedFn2< + { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace startOfWeekWithOptions {} + + const startOfWeekYear: CurriedFn1 + namespace startOfWeekYear {} + + const startOfWeekYearWithOptions: CurriedFn2< + { + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + locale?: Locale + }, + Date | number, + Date + > + namespace startOfWeekYearWithOptions {} + + const startOfYear: CurriedFn1 + namespace startOfYear {} + + const sub: CurriedFn2 + namespace sub {} + + const subBusinessDays: CurriedFn2 + namespace subBusinessDays {} + + const subDays: CurriedFn2 + namespace subDays {} + + const subHours: CurriedFn2 + namespace subHours {} + + const subISOWeekYears: CurriedFn2 + namespace subISOWeekYears {} + + const subMilliseconds: CurriedFn2 + namespace subMilliseconds {} + + const subMinutes: CurriedFn2 + namespace subMinutes {} + + const subMonths: CurriedFn2 + namespace subMonths {} + + const subQuarters: CurriedFn2 + namespace subQuarters {} + + const subSeconds: CurriedFn2 + namespace subSeconds {} + + const subWeeks: CurriedFn2 + namespace subWeeks {} + + const subYears: CurriedFn2 + namespace subYears {} + + const toDate: CurriedFn1 + namespace toDate {} + + const weeksToDays: CurriedFn1 + namespace weeksToDays {} + + const yearsToMonths: CurriedFn1 + namespace yearsToMonths {} + + const yearsToQuarters: CurriedFn1 + namespace yearsToQuarters {} + + const daysInWeek: number + + const daysInYear: number + + const maxTime: number + + const millisecondsInMinute: number + + const millisecondsInHour: number + + const millisecondsInSecond: number + + const minTime: number + + const minutesInHour: number + + const monthsInQuarter: number + + const monthsInYear: number + + const quartersInYear: number + + const secondsInHour: number + + const secondsInMinute: number + + const secondsInDay: number + + const secondsInWeek: number + + const secondsInYear: number + + const secondsInMonth: number + + const secondsInQuarter: number +} + +declare module 'date-fns/esm/fp/add' { + import { add } from 'date-fns/esm/fp' + export default add +} + +declare module 'date-fns/esm/fp/addBusinessDays' { + import { addBusinessDays } from 'date-fns/esm/fp' + export default addBusinessDays +} + +declare module 'date-fns/esm/fp/addDays' { + import { addDays } from 'date-fns/esm/fp' + export default addDays +} + +declare module 'date-fns/esm/fp/addHours' { + import { addHours } from 'date-fns/esm/fp' + export default addHours +} + +declare module 'date-fns/esm/fp/addISOWeekYears' { + import { addISOWeekYears } from 'date-fns/esm/fp' + export default addISOWeekYears +} + +declare module 'date-fns/esm/fp/addMilliseconds' { + import { addMilliseconds } from 'date-fns/esm/fp' + export default addMilliseconds +} + +declare module 'date-fns/esm/fp/addMinutes' { + import { addMinutes } from 'date-fns/esm/fp' + export default addMinutes +} + +declare module 'date-fns/esm/fp/addMonths' { + import { addMonths } from 'date-fns/esm/fp' + export default addMonths +} + +declare module 'date-fns/esm/fp/addQuarters' { + import { addQuarters } from 'date-fns/esm/fp' + export default addQuarters +} + +declare module 'date-fns/esm/fp/addSeconds' { + import { addSeconds } from 'date-fns/esm/fp' + export default addSeconds +} + +declare module 'date-fns/esm/fp/addWeeks' { + import { addWeeks } from 'date-fns/esm/fp' + export default addWeeks +} + +declare module 'date-fns/esm/fp/addYears' { + import { addYears } from 'date-fns/esm/fp' + export default addYears +} + +declare module 'date-fns/esm/fp/areIntervalsOverlapping' { + import { areIntervalsOverlapping } from 'date-fns/esm/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/fp/areIntervalsOverlappingWithOptions' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/esm/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/esm/fp/clamp' { + import { clamp } from 'date-fns/esm/fp' + export default clamp +} + +declare module 'date-fns/esm/fp/closestIndexTo' { + import { closestIndexTo } from 'date-fns/esm/fp' + export default closestIndexTo +} + +declare module 'date-fns/esm/fp/closestTo' { + import { closestTo } from 'date-fns/esm/fp' + export default closestTo +} + +declare module 'date-fns/esm/fp/compareAsc' { + import { compareAsc } from 'date-fns/esm/fp' + export default compareAsc +} + +declare module 'date-fns/esm/fp/compareDesc' { + import { compareDesc } from 'date-fns/esm/fp' + export default compareDesc +} + +declare module 'date-fns/esm/fp/daysToWeeks' { + import { daysToWeeks } from 'date-fns/esm/fp' + export default daysToWeeks +} + +declare module 'date-fns/esm/fp/differenceInBusinessDays' { + import { differenceInBusinessDays } from 'date-fns/esm/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarDays' { + import { differenceInCalendarDays } from 'date-fns/esm/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeeks' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeekYears' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInCalendarMonths' { + import { differenceInCalendarMonths } from 'date-fns/esm/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/fp/differenceInCalendarQuarters' { + import { differenceInCalendarQuarters } from 'date-fns/esm/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeks' { + import { differenceInCalendarWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeksWithOptions' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInCalendarYears' { + import { differenceInCalendarYears } from 'date-fns/esm/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/fp/differenceInDays' { + import { differenceInDays } from 'date-fns/esm/fp' + export default differenceInDays +} + +declare module 'date-fns/esm/fp/differenceInHours' { + import { differenceInHours } from 'date-fns/esm/fp' + export default differenceInHours +} + +declare module 'date-fns/esm/fp/differenceInHoursWithOptions' { + import { differenceInHoursWithOptions } from 'date-fns/esm/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/esm/fp/differenceInISOWeekYears' { + import { differenceInISOWeekYears } from 'date-fns/esm/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInMilliseconds' { + import { differenceInMilliseconds } from 'date-fns/esm/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/fp/differenceInMinutes' { + import { differenceInMinutes } from 'date-fns/esm/fp' + export default differenceInMinutes +} + +declare module 'date-fns/esm/fp/differenceInMinutesWithOptions' { + import { differenceInMinutesWithOptions } from 'date-fns/esm/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/esm/fp/differenceInMonths' { + import { differenceInMonths } from 'date-fns/esm/fp' + export default differenceInMonths +} + +declare module 'date-fns/esm/fp/differenceInQuarters' { + import { differenceInQuarters } from 'date-fns/esm/fp' + export default differenceInQuarters +} + +declare module 'date-fns/esm/fp/differenceInQuartersWithOptions' { + import { differenceInQuartersWithOptions } from 'date-fns/esm/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/esm/fp/differenceInSeconds' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +declare module 'date-fns/esm/fp/differenceInSecondsWithOptions' { + import { differenceInSecondsWithOptions } from 'date-fns/esm/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/esm/fp/differenceInWeeks' { + import { differenceInWeeks } from 'date-fns/esm/fp' + export default differenceInWeeks +} + +declare module 'date-fns/esm/fp/differenceInWeeksWithOptions' { + import { differenceInWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInYears' { + import { differenceInYears } from 'date-fns/esm/fp' + export default differenceInYears +} + +declare module 'date-fns/esm/fp/eachDayOfInterval' { + import { eachDayOfInterval } from 'date-fns/esm/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/fp/eachDayOfIntervalWithOptions' { + import { eachDayOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachHourOfInterval' { + import { eachHourOfInterval } from 'date-fns/esm/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/fp/eachHourOfIntervalWithOptions' { + import { eachHourOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMinuteOfInterval' { + import { eachMinuteOfInterval } from 'date-fns/esm/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/fp/eachMinuteOfIntervalWithOptions' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMonthOfInterval' { + import { eachMonthOfInterval } from 'date-fns/esm/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/fp/eachQuarterOfInterval' { + import { eachQuarterOfInterval } from 'date-fns/esm/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfInterval' { + import { eachWeekendOfInterval } from 'date-fns/esm/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfMonth' { + import { eachWeekendOfMonth } from 'date-fns/esm/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/fp/eachWeekendOfYear' { + import { eachWeekendOfYear } from 'date-fns/esm/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/fp/eachWeekOfInterval' { + import { eachWeekOfInterval } from 'date-fns/esm/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekOfIntervalWithOptions' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachYearOfInterval' { + import { eachYearOfInterval } from 'date-fns/esm/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/fp/endOfDay' { + import { endOfDay } from 'date-fns/esm/fp' + export default endOfDay +} + +declare module 'date-fns/esm/fp/endOfDecade' { + import { endOfDecade } from 'date-fns/esm/fp' + export default endOfDecade +} + +declare module 'date-fns/esm/fp/endOfDecadeWithOptions' { + import { endOfDecadeWithOptions } from 'date-fns/esm/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/esm/fp/endOfHour' { + import { endOfHour } from 'date-fns/esm/fp' + export default endOfHour +} + +declare module 'date-fns/esm/fp/endOfISOWeek' { + import { endOfISOWeek } from 'date-fns/esm/fp' + export default endOfISOWeek +} + +declare module 'date-fns/esm/fp/endOfISOWeekYear' { + import { endOfISOWeekYear } from 'date-fns/esm/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/fp/endOfMinute' { + import { endOfMinute } from 'date-fns/esm/fp' + export default endOfMinute +} + +declare module 'date-fns/esm/fp/endOfMonth' { + import { endOfMonth } from 'date-fns/esm/fp' + export default endOfMonth +} + +declare module 'date-fns/esm/fp/endOfQuarter' { + import { endOfQuarter } from 'date-fns/esm/fp' + export default endOfQuarter +} + +declare module 'date-fns/esm/fp/endOfSecond' { + import { endOfSecond } from 'date-fns/esm/fp' + export default endOfSecond +} + +declare module 'date-fns/esm/fp/endOfWeek' { + import { endOfWeek } from 'date-fns/esm/fp' + export default endOfWeek +} + +declare module 'date-fns/esm/fp/endOfWeekWithOptions' { + import { endOfWeekWithOptions } from 'date-fns/esm/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/endOfYear' { + import { endOfYear } from 'date-fns/esm/fp' + export default endOfYear +} + +declare module 'date-fns/esm/fp/format' { + import { format } from 'date-fns/esm/fp' + export default format +} + +declare module 'date-fns/esm/fp/formatDistance' { + import { formatDistance } from 'date-fns/esm/fp' + export default formatDistance +} + +declare module 'date-fns/esm/fp/formatDistanceStrict' { + import { formatDistanceStrict } from 'date-fns/esm/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/fp/formatDistanceStrictWithOptions' { + import { formatDistanceStrictWithOptions } from 'date-fns/esm/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/esm/fp/formatDistanceWithOptions' { + import { formatDistanceWithOptions } from 'date-fns/esm/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/formatDuration' { + import { formatDuration } from 'date-fns/esm/fp' + export default formatDuration +} + +declare module 'date-fns/esm/fp/formatDurationWithOptions' { + import { formatDurationWithOptions } from 'date-fns/esm/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/esm/fp/formatISO' { + import { formatISO } from 'date-fns/esm/fp' + export default formatISO +} + +declare module 'date-fns/esm/fp/formatISO9075' { + import { formatISO9075 } from 'date-fns/esm/fp' + export default formatISO9075 +} + +declare module 'date-fns/esm/fp/formatISO9075WithOptions' { + import { formatISO9075WithOptions } from 'date-fns/esm/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/esm/fp/formatISODuration' { + import { formatISODuration } from 'date-fns/esm/fp' + export default formatISODuration +} + +declare module 'date-fns/esm/fp/formatISOWithOptions' { + import { formatISOWithOptions } from 'date-fns/esm/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/esm/fp/formatRelative' { + import { formatRelative } from 'date-fns/esm/fp' + export default formatRelative +} + +declare module 'date-fns/esm/fp/formatRelativeWithOptions' { + import { formatRelativeWithOptions } from 'date-fns/esm/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/esm/fp/formatRFC3339' { + import { formatRFC3339 } from 'date-fns/esm/fp' + export default formatRFC3339 +} + +declare module 'date-fns/esm/fp/formatRFC3339WithOptions' { + import { formatRFC3339WithOptions } from 'date-fns/esm/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/esm/fp/formatRFC7231' { + import { formatRFC7231 } from 'date-fns/esm/fp' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fp/formatWithOptions' { + import { formatWithOptions } from 'date-fns/esm/fp' + export default formatWithOptions +} + +declare module 'date-fns/esm/fp/fromUnixTime' { + import { fromUnixTime } from 'date-fns/esm/fp' + export default fromUnixTime +} + +declare module 'date-fns/esm/fp/getDate' { + import { getDate } from 'date-fns/esm/fp' + export default getDate +} + +declare module 'date-fns/esm/fp/getDay' { + import { getDay } from 'date-fns/esm/fp' + export default getDay +} + +declare module 'date-fns/esm/fp/getDayOfYear' { + import { getDayOfYear } from 'date-fns/esm/fp' + export default getDayOfYear +} + +declare module 'date-fns/esm/fp/getDaysInMonth' { + import { getDaysInMonth } from 'date-fns/esm/fp' + export default getDaysInMonth +} + +declare module 'date-fns/esm/fp/getDaysInYear' { + import { getDaysInYear } from 'date-fns/esm/fp' + export default getDaysInYear +} + +declare module 'date-fns/esm/fp/getDecade' { + import { getDecade } from 'date-fns/esm/fp' + export default getDecade +} + +declare module 'date-fns/esm/fp/getHours' { + import { getHours } from 'date-fns/esm/fp' + export default getHours +} + +declare module 'date-fns/esm/fp/getISODay' { + import { getISODay } from 'date-fns/esm/fp' + export default getISODay +} + +declare module 'date-fns/esm/fp/getISOWeek' { + import { getISOWeek } from 'date-fns/esm/fp' + export default getISOWeek +} + +declare module 'date-fns/esm/fp/getISOWeeksInYear' { + import { getISOWeeksInYear } from 'date-fns/esm/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/fp/getISOWeekYear' { + import { getISOWeekYear } from 'date-fns/esm/fp' + export default getISOWeekYear +} + +declare module 'date-fns/esm/fp/getMilliseconds' { + import { getMilliseconds } from 'date-fns/esm/fp' + export default getMilliseconds +} + +declare module 'date-fns/esm/fp/getMinutes' { + import { getMinutes } from 'date-fns/esm/fp' + export default getMinutes +} + +declare module 'date-fns/esm/fp/getMonth' { + import { getMonth } from 'date-fns/esm/fp' + export default getMonth +} + +declare module 'date-fns/esm/fp/getOverlappingDaysInIntervals' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/fp/getQuarter' { + import { getQuarter } from 'date-fns/esm/fp' + export default getQuarter +} + +declare module 'date-fns/esm/fp/getSeconds' { + import { getSeconds } from 'date-fns/esm/fp' + export default getSeconds +} + +declare module 'date-fns/esm/fp/getTime' { + import { getTime } from 'date-fns/esm/fp' + export default getTime +} + +declare module 'date-fns/esm/fp/getUnixTime' { + import { getUnixTime } from 'date-fns/esm/fp' + export default getUnixTime +} + +declare module 'date-fns/esm/fp/getWeek' { + import { getWeek } from 'date-fns/esm/fp' + export default getWeek +} + +declare module 'date-fns/esm/fp/getWeekOfMonth' { + import { getWeekOfMonth } from 'date-fns/esm/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/fp/getWeekOfMonthWithOptions' { + import { getWeekOfMonthWithOptions } from 'date-fns/esm/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeeksInMonth' { + import { getWeeksInMonth } from 'date-fns/esm/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/fp/getWeeksInMonthWithOptions' { + import { getWeeksInMonthWithOptions } from 'date-fns/esm/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeekWithOptions' { + import { getWeekWithOptions } from 'date-fns/esm/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/esm/fp/getWeekYear' { + import { getWeekYear } from 'date-fns/esm/fp' + export default getWeekYear +} + +declare module 'date-fns/esm/fp/getWeekYearWithOptions' { + import { getWeekYearWithOptions } from 'date-fns/esm/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/getYear' { + import { getYear } from 'date-fns/esm/fp' + export default getYear +} + +declare module 'date-fns/esm/fp/hoursToMilliseconds' { + import { hoursToMilliseconds } from 'date-fns/esm/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/fp/hoursToMinutes' { + import { hoursToMinutes } from 'date-fns/esm/fp' + export default hoursToMinutes +} + +declare module 'date-fns/esm/fp/hoursToSeconds' { + import { hoursToSeconds } from 'date-fns/esm/fp' + export default hoursToSeconds +} + +declare module 'date-fns/esm/fp/intervalToDuration' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +declare module 'date-fns/esm/fp/intlFormat' { + import { intlFormat } from 'date-fns/esm/fp' + export default intlFormat +} + +declare module 'date-fns/esm/fp/intlFormatDistance' { + import { intlFormatDistance } from 'date-fns/esm/fp' + export default intlFormatDistance +} + +declare module 'date-fns/esm/fp/intlFormatDistanceWithOptions' { + import { intlFormatDistanceWithOptions } from 'date-fns/esm/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/isAfter' { + import { isAfter } from 'date-fns/esm/fp' + export default isAfter +} + +declare module 'date-fns/esm/fp/isBefore' { + import { isBefore } from 'date-fns/esm/fp' + export default isBefore +} + +declare module 'date-fns/esm/fp/isDate' { + import { isDate } from 'date-fns/esm/fp' + export default isDate +} + +declare module 'date-fns/esm/fp/isEqual' { + import { isEqual } from 'date-fns/esm/fp' + export default isEqual +} + +declare module 'date-fns/esm/fp/isExists' { + import { isExists } from 'date-fns/esm/fp' + export default isExists +} + +declare module 'date-fns/esm/fp/isFirstDayOfMonth' { + import { isFirstDayOfMonth } from 'date-fns/esm/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/fp/isFriday' { + import { isFriday } from 'date-fns/esm/fp' + export default isFriday +} + +declare module 'date-fns/esm/fp/isLastDayOfMonth' { + import { isLastDayOfMonth } from 'date-fns/esm/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/fp/isLeapYear' { + import { isLeapYear } from 'date-fns/esm/fp' + export default isLeapYear +} + +declare module 'date-fns/esm/fp/isMatch' { + import { isMatch } from 'date-fns/esm/fp' + export default isMatch +} + +declare module 'date-fns/esm/fp/isMatchWithOptions' { + import { isMatchWithOptions } from 'date-fns/esm/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/esm/fp/isMonday' { + import { isMonday } from 'date-fns/esm/fp' + export default isMonday +} + +declare module 'date-fns/esm/fp/isSameDay' { + import { isSameDay } from 'date-fns/esm/fp' + export default isSameDay +} + +declare module 'date-fns/esm/fp/isSameHour' { + import { isSameHour } from 'date-fns/esm/fp' + export default isSameHour +} + +declare module 'date-fns/esm/fp/isSameISOWeek' { + import { isSameISOWeek } from 'date-fns/esm/fp' + export default isSameISOWeek +} + +declare module 'date-fns/esm/fp/isSameISOWeekYear' { + import { isSameISOWeekYear } from 'date-fns/esm/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/fp/isSameMinute' { + import { isSameMinute } from 'date-fns/esm/fp' + export default isSameMinute +} + +declare module 'date-fns/esm/fp/isSameMonth' { + import { isSameMonth } from 'date-fns/esm/fp' + export default isSameMonth +} + +declare module 'date-fns/esm/fp/isSameQuarter' { + import { isSameQuarter } from 'date-fns/esm/fp' + export default isSameQuarter +} + +declare module 'date-fns/esm/fp/isSameSecond' { + import { isSameSecond } from 'date-fns/esm/fp' + export default isSameSecond +} + +declare module 'date-fns/esm/fp/isSameWeek' { + import { isSameWeek } from 'date-fns/esm/fp' + export default isSameWeek +} + +declare module 'date-fns/esm/fp/isSameWeekWithOptions' { + import { isSameWeekWithOptions } from 'date-fns/esm/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/esm/fp/isSameYear' { + import { isSameYear } from 'date-fns/esm/fp' + export default isSameYear +} + +declare module 'date-fns/esm/fp/isSaturday' { + import { isSaturday } from 'date-fns/esm/fp' + export default isSaturday +} + +declare module 'date-fns/esm/fp/isSunday' { + import { isSunday } from 'date-fns/esm/fp' + export default isSunday +} + +declare module 'date-fns/esm/fp/isThursday' { + import { isThursday } from 'date-fns/esm/fp' + export default isThursday +} + +declare module 'date-fns/esm/fp/isTuesday' { + import { isTuesday } from 'date-fns/esm/fp' + export default isTuesday +} + +declare module 'date-fns/esm/fp/isValid' { + import { isValid } from 'date-fns/esm/fp' + export default isValid +} + +declare module 'date-fns/esm/fp/isWednesday' { + import { isWednesday } from 'date-fns/esm/fp' + export default isWednesday +} + +declare module 'date-fns/esm/fp/isWeekend' { + import { isWeekend } from 'date-fns/esm/fp' + export default isWeekend +} + +declare module 'date-fns/esm/fp/isWithinInterval' { + import { isWithinInterval } from 'date-fns/esm/fp' + export default isWithinInterval +} + +declare module 'date-fns/esm/fp/lastDayOfDecade' { + import { lastDayOfDecade } from 'date-fns/esm/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeek' { + import { lastDayOfISOWeek } from 'date-fns/esm/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeekYear' { + import { lastDayOfISOWeekYear } from 'date-fns/esm/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/fp/lastDayOfMonth' { + import { lastDayOfMonth } from 'date-fns/esm/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/fp/lastDayOfQuarter' { + import { lastDayOfQuarter } from 'date-fns/esm/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/fp/lastDayOfQuarterWithOptions' { + import { lastDayOfQuarterWithOptions } from 'date-fns/esm/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfWeek' { + import { lastDayOfWeek } from 'date-fns/esm/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/fp/lastDayOfWeekWithOptions' { + import { lastDayOfWeekWithOptions } from 'date-fns/esm/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfYear' { + import { lastDayOfYear } from 'date-fns/esm/fp' + export default lastDayOfYear +} + +declare module 'date-fns/esm/fp/lightFormat' { + import { lightFormat } from 'date-fns/esm/fp' + export default lightFormat +} + +declare module 'date-fns/esm/fp/max' { + import { max } from 'date-fns/esm/fp' + export default max +} + +declare module 'date-fns/esm/fp/milliseconds' { + import { milliseconds } from 'date-fns/esm/fp' + export default milliseconds +} + +declare module 'date-fns/esm/fp/millisecondsToHours' { + import { millisecondsToHours } from 'date-fns/esm/fp' + export default millisecondsToHours +} + +declare module 'date-fns/esm/fp/millisecondsToMinutes' { + import { millisecondsToMinutes } from 'date-fns/esm/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/fp/millisecondsToSeconds' { + import { millisecondsToSeconds } from 'date-fns/esm/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/fp/min' { + import { min } from 'date-fns/esm/fp' + export default min +} + +declare module 'date-fns/esm/fp/minutesToHours' { + import { minutesToHours } from 'date-fns/esm/fp' + export default minutesToHours +} + +declare module 'date-fns/esm/fp/minutesToMilliseconds' { + import { minutesToMilliseconds } from 'date-fns/esm/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/fp/minutesToSeconds' { + import { minutesToSeconds } from 'date-fns/esm/fp' + export default minutesToSeconds +} + +declare module 'date-fns/esm/fp/monthsToQuarters' { + import { monthsToQuarters } from 'date-fns/esm/fp' + export default monthsToQuarters +} + +declare module 'date-fns/esm/fp/monthsToYears' { + import { monthsToYears } from 'date-fns/esm/fp' + export default monthsToYears +} + +declare module 'date-fns/esm/fp/nextDay' { + import { nextDay } from 'date-fns/esm/fp' + export default nextDay +} + +declare module 'date-fns/esm/fp/nextFriday' { + import { nextFriday } from 'date-fns/esm/fp' + export default nextFriday +} + +declare module 'date-fns/esm/fp/nextMonday' { + import { nextMonday } from 'date-fns/esm/fp' + export default nextMonday +} + +declare module 'date-fns/esm/fp/nextSaturday' { + import { nextSaturday } from 'date-fns/esm/fp' + export default nextSaturday +} + +declare module 'date-fns/esm/fp/nextSunday' { + import { nextSunday } from 'date-fns/esm/fp' + export default nextSunday +} + +declare module 'date-fns/esm/fp/nextThursday' { + import { nextThursday } from 'date-fns/esm/fp' + export default nextThursday +} + +declare module 'date-fns/esm/fp/nextTuesday' { + import { nextTuesday } from 'date-fns/esm/fp' + export default nextTuesday +} + +declare module 'date-fns/esm/fp/nextWednesday' { + import { nextWednesday } from 'date-fns/esm/fp' + export default nextWednesday +} + +declare module 'date-fns/esm/fp/parse' { + import { parse } from 'date-fns/esm/fp' + export default parse +} + +declare module 'date-fns/esm/fp/parseISO' { + import { parseISO } from 'date-fns/esm/fp' + export default parseISO +} + +declare module 'date-fns/esm/fp/parseISOWithOptions' { + import { parseISOWithOptions } from 'date-fns/esm/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/esm/fp/parseJSON' { + import { parseJSON } from 'date-fns/esm/fp' + export default parseJSON +} + +declare module 'date-fns/esm/fp/parseWithOptions' { + import { parseWithOptions } from 'date-fns/esm/fp' + export default parseWithOptions +} + +declare module 'date-fns/esm/fp/previousDay' { + import { previousDay } from 'date-fns/esm/fp' + export default previousDay +} + +declare module 'date-fns/esm/fp/previousFriday' { + import { previousFriday } from 'date-fns/esm/fp' + export default previousFriday +} + +declare module 'date-fns/esm/fp/previousMonday' { + import { previousMonday } from 'date-fns/esm/fp' + export default previousMonday +} + +declare module 'date-fns/esm/fp/previousSaturday' { + import { previousSaturday } from 'date-fns/esm/fp' + export default previousSaturday +} + +declare module 'date-fns/esm/fp/previousSunday' { + import { previousSunday } from 'date-fns/esm/fp' + export default previousSunday +} + +declare module 'date-fns/esm/fp/previousThursday' { + import { previousThursday } from 'date-fns/esm/fp' + export default previousThursday +} + +declare module 'date-fns/esm/fp/previousTuesday' { + import { previousTuesday } from 'date-fns/esm/fp' + export default previousTuesday +} + +declare module 'date-fns/esm/fp/previousWednesday' { + import { previousWednesday } from 'date-fns/esm/fp' + export default previousWednesday +} + +declare module 'date-fns/esm/fp/quartersToMonths' { + import { quartersToMonths } from 'date-fns/esm/fp' + export default quartersToMonths +} + +declare module 'date-fns/esm/fp/quartersToYears' { + import { quartersToYears } from 'date-fns/esm/fp' + export default quartersToYears +} + +declare module 'date-fns/esm/fp/roundToNearestMinutes' { + import { roundToNearestMinutes } from 'date-fns/esm/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/fp/roundToNearestMinutesWithOptions' { + import { roundToNearestMinutesWithOptions } from 'date-fns/esm/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/esm/fp/secondsToHours' { + import { secondsToHours } from 'date-fns/esm/fp' + export default secondsToHours +} + +declare module 'date-fns/esm/fp/secondsToMilliseconds' { + import { secondsToMilliseconds } from 'date-fns/esm/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/fp/secondsToMinutes' { + import { secondsToMinutes } from 'date-fns/esm/fp' + export default secondsToMinutes +} + +declare module 'date-fns/esm/fp/set' { + import { set } from 'date-fns/esm/fp' + export default set +} + +declare module 'date-fns/esm/fp/setDate' { + import { setDate } from 'date-fns/esm/fp' + export default setDate +} + +declare module 'date-fns/esm/fp/setDay' { + import { setDay } from 'date-fns/esm/fp' + export default setDay +} + +declare module 'date-fns/esm/fp/setDayOfYear' { + import { setDayOfYear } from 'date-fns/esm/fp' + export default setDayOfYear +} + +declare module 'date-fns/esm/fp/setDayWithOptions' { + import { setDayWithOptions } from 'date-fns/esm/fp' + export default setDayWithOptions +} + +declare module 'date-fns/esm/fp/setHours' { + import { setHours } from 'date-fns/esm/fp' + export default setHours +} + +declare module 'date-fns/esm/fp/setISODay' { + import { setISODay } from 'date-fns/esm/fp' + export default setISODay +} + +declare module 'date-fns/esm/fp/setISOWeek' { + import { setISOWeek } from 'date-fns/esm/fp' + export default setISOWeek +} + +declare module 'date-fns/esm/fp/setISOWeekYear' { + import { setISOWeekYear } from 'date-fns/esm/fp' + export default setISOWeekYear +} + +declare module 'date-fns/esm/fp/setMilliseconds' { + import { setMilliseconds } from 'date-fns/esm/fp' + export default setMilliseconds +} + +declare module 'date-fns/esm/fp/setMinutes' { + import { setMinutes } from 'date-fns/esm/fp' + export default setMinutes +} + +declare module 'date-fns/esm/fp/setMonth' { + import { setMonth } from 'date-fns/esm/fp' + export default setMonth +} + +declare module 'date-fns/esm/fp/setQuarter' { + import { setQuarter } from 'date-fns/esm/fp' + export default setQuarter +} + +declare module 'date-fns/esm/fp/setSeconds' { + import { setSeconds } from 'date-fns/esm/fp' + export default setSeconds +} + +declare module 'date-fns/esm/fp/setWeek' { + import { setWeek } from 'date-fns/esm/fp' + export default setWeek +} + +declare module 'date-fns/esm/fp/setWeekWithOptions' { + import { setWeekWithOptions } from 'date-fns/esm/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/esm/fp/setWeekYear' { + import { setWeekYear } from 'date-fns/esm/fp' + export default setWeekYear +} + +declare module 'date-fns/esm/fp/setWeekYearWithOptions' { + import { setWeekYearWithOptions } from 'date-fns/esm/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/setYear' { + import { setYear } from 'date-fns/esm/fp' + export default setYear +} + +declare module 'date-fns/esm/fp/startOfDay' { + import { startOfDay } from 'date-fns/esm/fp' + export default startOfDay +} + +declare module 'date-fns/esm/fp/startOfDecade' { + import { startOfDecade } from 'date-fns/esm/fp' + export default startOfDecade +} + +declare module 'date-fns/esm/fp/startOfHour' { + import { startOfHour } from 'date-fns/esm/fp' + export default startOfHour +} + +declare module 'date-fns/esm/fp/startOfISOWeek' { + import { startOfISOWeek } from 'date-fns/esm/fp' + export default startOfISOWeek +} + +declare module 'date-fns/esm/fp/startOfISOWeekYear' { + import { startOfISOWeekYear } from 'date-fns/esm/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/fp/startOfMinute' { + import { startOfMinute } from 'date-fns/esm/fp' + export default startOfMinute +} + +declare module 'date-fns/esm/fp/startOfMonth' { + import { startOfMonth } from 'date-fns/esm/fp' + export default startOfMonth +} + +declare module 'date-fns/esm/fp/startOfQuarter' { + import { startOfQuarter } from 'date-fns/esm/fp' + export default startOfQuarter +} + +declare module 'date-fns/esm/fp/startOfSecond' { + import { startOfSecond } from 'date-fns/esm/fp' + export default startOfSecond +} + +declare module 'date-fns/esm/fp/startOfWeek' { + import { startOfWeek } from 'date-fns/esm/fp' + export default startOfWeek +} + +declare module 'date-fns/esm/fp/startOfWeekWithOptions' { + import { startOfWeekWithOptions } from 'date-fns/esm/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/startOfWeekYear' { + import { startOfWeekYear } from 'date-fns/esm/fp' + export default startOfWeekYear +} + +declare module 'date-fns/esm/fp/startOfWeekYearWithOptions' { + import { startOfWeekYearWithOptions } from 'date-fns/esm/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/startOfYear' { + import { startOfYear } from 'date-fns/esm/fp' + export default startOfYear +} + +declare module 'date-fns/esm/fp/sub' { + import { sub } from 'date-fns/esm/fp' + export default sub +} + +declare module 'date-fns/esm/fp/subBusinessDays' { + import { subBusinessDays } from 'date-fns/esm/fp' + export default subBusinessDays +} + +declare module 'date-fns/esm/fp/subDays' { + import { subDays } from 'date-fns/esm/fp' + export default subDays +} + +declare module 'date-fns/esm/fp/subHours' { + import { subHours } from 'date-fns/esm/fp' + export default subHours +} + +declare module 'date-fns/esm/fp/subISOWeekYears' { + import { subISOWeekYears } from 'date-fns/esm/fp' + export default subISOWeekYears +} + +declare module 'date-fns/esm/fp/subMilliseconds' { + import { subMilliseconds } from 'date-fns/esm/fp' + export default subMilliseconds +} + +declare module 'date-fns/esm/fp/subMinutes' { + import { subMinutes } from 'date-fns/esm/fp' + export default subMinutes +} + +declare module 'date-fns/esm/fp/subMonths' { + import { subMonths } from 'date-fns/esm/fp' + export default subMonths +} + +declare module 'date-fns/esm/fp/subQuarters' { + import { subQuarters } from 'date-fns/esm/fp' + export default subQuarters +} + +declare module 'date-fns/esm/fp/subSeconds' { + import { subSeconds } from 'date-fns/esm/fp' + export default subSeconds +} + +declare module 'date-fns/esm/fp/subWeeks' { + import { subWeeks } from 'date-fns/esm/fp' + export default subWeeks +} + +declare module 'date-fns/esm/fp/subYears' { + import { subYears } from 'date-fns/esm/fp' + export default subYears +} + +declare module 'date-fns/esm/fp/toDate' { + import { toDate } from 'date-fns/esm/fp' + export default toDate +} + +declare module 'date-fns/esm/fp/weeksToDays' { + import { weeksToDays } from 'date-fns/esm/fp' + export default weeksToDays +} + +declare module 'date-fns/esm/fp/yearsToMonths' { + import { yearsToMonths } from 'date-fns/esm/fp' + export default yearsToMonths +} + +declare module 'date-fns/esm/fp/yearsToQuarters' { + import { yearsToQuarters } from 'date-fns/esm/fp' + export default yearsToQuarters +} + +declare module 'date-fns/esm/fp/add/index' { + import { add } from 'date-fns/esm/fp' + export default add +} + +declare module 'date-fns/esm/fp/addBusinessDays/index' { + import { addBusinessDays } from 'date-fns/esm/fp' + export default addBusinessDays +} + +declare module 'date-fns/esm/fp/addDays/index' { + import { addDays } from 'date-fns/esm/fp' + export default addDays +} + +declare module 'date-fns/esm/fp/addHours/index' { + import { addHours } from 'date-fns/esm/fp' + export default addHours +} + +declare module 'date-fns/esm/fp/addISOWeekYears/index' { + import { addISOWeekYears } from 'date-fns/esm/fp' + export default addISOWeekYears +} + +declare module 'date-fns/esm/fp/addMilliseconds/index' { + import { addMilliseconds } from 'date-fns/esm/fp' + export default addMilliseconds +} + +declare module 'date-fns/esm/fp/addMinutes/index' { + import { addMinutes } from 'date-fns/esm/fp' + export default addMinutes +} + +declare module 'date-fns/esm/fp/addMonths/index' { + import { addMonths } from 'date-fns/esm/fp' + export default addMonths +} + +declare module 'date-fns/esm/fp/addQuarters/index' { + import { addQuarters } from 'date-fns/esm/fp' + export default addQuarters +} + +declare module 'date-fns/esm/fp/addSeconds/index' { + import { addSeconds } from 'date-fns/esm/fp' + export default addSeconds +} + +declare module 'date-fns/esm/fp/addWeeks/index' { + import { addWeeks } from 'date-fns/esm/fp' + export default addWeeks +} + +declare module 'date-fns/esm/fp/addYears/index' { + import { addYears } from 'date-fns/esm/fp' + export default addYears +} + +declare module 'date-fns/esm/fp/areIntervalsOverlapping/index' { + import { areIntervalsOverlapping } from 'date-fns/esm/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/fp/areIntervalsOverlappingWithOptions/index' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/esm/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/esm/fp/clamp/index' { + import { clamp } from 'date-fns/esm/fp' + export default clamp +} + +declare module 'date-fns/esm/fp/closestIndexTo/index' { + import { closestIndexTo } from 'date-fns/esm/fp' + export default closestIndexTo +} + +declare module 'date-fns/esm/fp/closestTo/index' { + import { closestTo } from 'date-fns/esm/fp' + export default closestTo +} + +declare module 'date-fns/esm/fp/compareAsc/index' { + import { compareAsc } from 'date-fns/esm/fp' + export default compareAsc +} + +declare module 'date-fns/esm/fp/compareDesc/index' { + import { compareDesc } from 'date-fns/esm/fp' + export default compareDesc +} + +declare module 'date-fns/esm/fp/daysToWeeks/index' { + import { daysToWeeks } from 'date-fns/esm/fp' + export default daysToWeeks +} + +declare module 'date-fns/esm/fp/differenceInBusinessDays/index' { + import { differenceInBusinessDays } from 'date-fns/esm/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarDays/index' { + import { differenceInCalendarDays } from 'date-fns/esm/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeeks/index' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeekYears/index' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInCalendarMonths/index' { + import { differenceInCalendarMonths } from 'date-fns/esm/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/fp/differenceInCalendarQuarters/index' { + import { differenceInCalendarQuarters } from 'date-fns/esm/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeks/index' { + import { differenceInCalendarWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInCalendarYears/index' { + import { differenceInCalendarYears } from 'date-fns/esm/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/fp/differenceInDays/index' { + import { differenceInDays } from 'date-fns/esm/fp' + export default differenceInDays +} + +declare module 'date-fns/esm/fp/differenceInHours/index' { + import { differenceInHours } from 'date-fns/esm/fp' + export default differenceInHours +} + +declare module 'date-fns/esm/fp/differenceInHoursWithOptions/index' { + import { differenceInHoursWithOptions } from 'date-fns/esm/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/esm/fp/differenceInISOWeekYears/index' { + import { differenceInISOWeekYears } from 'date-fns/esm/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInMilliseconds/index' { + import { differenceInMilliseconds } from 'date-fns/esm/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/fp/differenceInMinutes/index' { + import { differenceInMinutes } from 'date-fns/esm/fp' + export default differenceInMinutes +} + +declare module 'date-fns/esm/fp/differenceInMinutesWithOptions/index' { + import { differenceInMinutesWithOptions } from 'date-fns/esm/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/esm/fp/differenceInMonths/index' { + import { differenceInMonths } from 'date-fns/esm/fp' + export default differenceInMonths +} + +declare module 'date-fns/esm/fp/differenceInQuarters/index' { + import { differenceInQuarters } from 'date-fns/esm/fp' + export default differenceInQuarters +} + +declare module 'date-fns/esm/fp/differenceInQuartersWithOptions/index' { + import { differenceInQuartersWithOptions } from 'date-fns/esm/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/esm/fp/differenceInSeconds/index' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +declare module 'date-fns/esm/fp/differenceInSecondsWithOptions/index' { + import { differenceInSecondsWithOptions } from 'date-fns/esm/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/esm/fp/differenceInWeeks/index' { + import { differenceInWeeks } from 'date-fns/esm/fp' + export default differenceInWeeks +} + +declare module 'date-fns/esm/fp/differenceInWeeksWithOptions/index' { + import { differenceInWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInYears/index' { + import { differenceInYears } from 'date-fns/esm/fp' + export default differenceInYears +} + +declare module 'date-fns/esm/fp/eachDayOfInterval/index' { + import { eachDayOfInterval } from 'date-fns/esm/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/fp/eachDayOfIntervalWithOptions/index' { + import { eachDayOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachHourOfInterval/index' { + import { eachHourOfInterval } from 'date-fns/esm/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/fp/eachHourOfIntervalWithOptions/index' { + import { eachHourOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMinuteOfInterval/index' { + import { eachMinuteOfInterval } from 'date-fns/esm/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMonthOfInterval/index' { + import { eachMonthOfInterval } from 'date-fns/esm/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/fp/eachQuarterOfInterval/index' { + import { eachQuarterOfInterval } from 'date-fns/esm/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfInterval/index' { + import { eachWeekendOfInterval } from 'date-fns/esm/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfMonth/index' { + import { eachWeekendOfMonth } from 'date-fns/esm/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/fp/eachWeekendOfYear/index' { + import { eachWeekendOfYear } from 'date-fns/esm/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/fp/eachWeekOfInterval/index' { + import { eachWeekOfInterval } from 'date-fns/esm/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekOfIntervalWithOptions/index' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachYearOfInterval/index' { + import { eachYearOfInterval } from 'date-fns/esm/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/fp/endOfDay/index' { + import { endOfDay } from 'date-fns/esm/fp' + export default endOfDay +} + +declare module 'date-fns/esm/fp/endOfDecade/index' { + import { endOfDecade } from 'date-fns/esm/fp' + export default endOfDecade +} + +declare module 'date-fns/esm/fp/endOfDecadeWithOptions/index' { + import { endOfDecadeWithOptions } from 'date-fns/esm/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/esm/fp/endOfHour/index' { + import { endOfHour } from 'date-fns/esm/fp' + export default endOfHour +} + +declare module 'date-fns/esm/fp/endOfISOWeek/index' { + import { endOfISOWeek } from 'date-fns/esm/fp' + export default endOfISOWeek +} + +declare module 'date-fns/esm/fp/endOfISOWeekYear/index' { + import { endOfISOWeekYear } from 'date-fns/esm/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/fp/endOfMinute/index' { + import { endOfMinute } from 'date-fns/esm/fp' + export default endOfMinute +} + +declare module 'date-fns/esm/fp/endOfMonth/index' { + import { endOfMonth } from 'date-fns/esm/fp' + export default endOfMonth +} + +declare module 'date-fns/esm/fp/endOfQuarter/index' { + import { endOfQuarter } from 'date-fns/esm/fp' + export default endOfQuarter +} + +declare module 'date-fns/esm/fp/endOfSecond/index' { + import { endOfSecond } from 'date-fns/esm/fp' + export default endOfSecond +} + +declare module 'date-fns/esm/fp/endOfWeek/index' { + import { endOfWeek } from 'date-fns/esm/fp' + export default endOfWeek +} + +declare module 'date-fns/esm/fp/endOfWeekWithOptions/index' { + import { endOfWeekWithOptions } from 'date-fns/esm/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/endOfYear/index' { + import { endOfYear } from 'date-fns/esm/fp' + export default endOfYear +} + +declare module 'date-fns/esm/fp/format/index' { + import { format } from 'date-fns/esm/fp' + export default format +} + +declare module 'date-fns/esm/fp/formatDistance/index' { + import { formatDistance } from 'date-fns/esm/fp' + export default formatDistance +} + +declare module 'date-fns/esm/fp/formatDistanceStrict/index' { + import { formatDistanceStrict } from 'date-fns/esm/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/fp/formatDistanceStrictWithOptions/index' { + import { formatDistanceStrictWithOptions } from 'date-fns/esm/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/esm/fp/formatDistanceWithOptions/index' { + import { formatDistanceWithOptions } from 'date-fns/esm/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/formatDuration/index' { + import { formatDuration } from 'date-fns/esm/fp' + export default formatDuration +} + +declare module 'date-fns/esm/fp/formatDurationWithOptions/index' { + import { formatDurationWithOptions } from 'date-fns/esm/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/esm/fp/formatISO/index' { + import { formatISO } from 'date-fns/esm/fp' + export default formatISO +} + +declare module 'date-fns/esm/fp/formatISO9075/index' { + import { formatISO9075 } from 'date-fns/esm/fp' + export default formatISO9075 +} + +declare module 'date-fns/esm/fp/formatISO9075WithOptions/index' { + import { formatISO9075WithOptions } from 'date-fns/esm/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/esm/fp/formatISODuration/index' { + import { formatISODuration } from 'date-fns/esm/fp' + export default formatISODuration +} + +declare module 'date-fns/esm/fp/formatISOWithOptions/index' { + import { formatISOWithOptions } from 'date-fns/esm/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/esm/fp/formatRelative/index' { + import { formatRelative } from 'date-fns/esm/fp' + export default formatRelative +} + +declare module 'date-fns/esm/fp/formatRelativeWithOptions/index' { + import { formatRelativeWithOptions } from 'date-fns/esm/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/esm/fp/formatRFC3339/index' { + import { formatRFC3339 } from 'date-fns/esm/fp' + export default formatRFC3339 +} + +declare module 'date-fns/esm/fp/formatRFC3339WithOptions/index' { + import { formatRFC3339WithOptions } from 'date-fns/esm/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/esm/fp/formatRFC7231/index' { + import { formatRFC7231 } from 'date-fns/esm/fp' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fp/formatWithOptions/index' { + import { formatWithOptions } from 'date-fns/esm/fp' + export default formatWithOptions +} + +declare module 'date-fns/esm/fp/fromUnixTime/index' { + import { fromUnixTime } from 'date-fns/esm/fp' + export default fromUnixTime +} + +declare module 'date-fns/esm/fp/getDate/index' { + import { getDate } from 'date-fns/esm/fp' + export default getDate +} + +declare module 'date-fns/esm/fp/getDay/index' { + import { getDay } from 'date-fns/esm/fp' + export default getDay +} + +declare module 'date-fns/esm/fp/getDayOfYear/index' { + import { getDayOfYear } from 'date-fns/esm/fp' + export default getDayOfYear +} + +declare module 'date-fns/esm/fp/getDaysInMonth/index' { + import { getDaysInMonth } from 'date-fns/esm/fp' + export default getDaysInMonth +} + +declare module 'date-fns/esm/fp/getDaysInYear/index' { + import { getDaysInYear } from 'date-fns/esm/fp' + export default getDaysInYear +} + +declare module 'date-fns/esm/fp/getDecade/index' { + import { getDecade } from 'date-fns/esm/fp' + export default getDecade +} + +declare module 'date-fns/esm/fp/getHours/index' { + import { getHours } from 'date-fns/esm/fp' + export default getHours +} + +declare module 'date-fns/esm/fp/getISODay/index' { + import { getISODay } from 'date-fns/esm/fp' + export default getISODay +} + +declare module 'date-fns/esm/fp/getISOWeek/index' { + import { getISOWeek } from 'date-fns/esm/fp' + export default getISOWeek +} + +declare module 'date-fns/esm/fp/getISOWeeksInYear/index' { + import { getISOWeeksInYear } from 'date-fns/esm/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/fp/getISOWeekYear/index' { + import { getISOWeekYear } from 'date-fns/esm/fp' + export default getISOWeekYear +} + +declare module 'date-fns/esm/fp/getMilliseconds/index' { + import { getMilliseconds } from 'date-fns/esm/fp' + export default getMilliseconds +} + +declare module 'date-fns/esm/fp/getMinutes/index' { + import { getMinutes } from 'date-fns/esm/fp' + export default getMinutes +} + +declare module 'date-fns/esm/fp/getMonth/index' { + import { getMonth } from 'date-fns/esm/fp' + export default getMonth +} + +declare module 'date-fns/esm/fp/getOverlappingDaysInIntervals/index' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/fp/getQuarter/index' { + import { getQuarter } from 'date-fns/esm/fp' + export default getQuarter +} + +declare module 'date-fns/esm/fp/getSeconds/index' { + import { getSeconds } from 'date-fns/esm/fp' + export default getSeconds +} + +declare module 'date-fns/esm/fp/getTime/index' { + import { getTime } from 'date-fns/esm/fp' + export default getTime +} + +declare module 'date-fns/esm/fp/getUnixTime/index' { + import { getUnixTime } from 'date-fns/esm/fp' + export default getUnixTime +} + +declare module 'date-fns/esm/fp/getWeek/index' { + import { getWeek } from 'date-fns/esm/fp' + export default getWeek +} + +declare module 'date-fns/esm/fp/getWeekOfMonth/index' { + import { getWeekOfMonth } from 'date-fns/esm/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/fp/getWeekOfMonthWithOptions/index' { + import { getWeekOfMonthWithOptions } from 'date-fns/esm/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeeksInMonth/index' { + import { getWeeksInMonth } from 'date-fns/esm/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/fp/getWeeksInMonthWithOptions/index' { + import { getWeeksInMonthWithOptions } from 'date-fns/esm/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeekWithOptions/index' { + import { getWeekWithOptions } from 'date-fns/esm/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/esm/fp/getWeekYear/index' { + import { getWeekYear } from 'date-fns/esm/fp' + export default getWeekYear +} + +declare module 'date-fns/esm/fp/getWeekYearWithOptions/index' { + import { getWeekYearWithOptions } from 'date-fns/esm/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/getYear/index' { + import { getYear } from 'date-fns/esm/fp' + export default getYear +} + +declare module 'date-fns/esm/fp/hoursToMilliseconds/index' { + import { hoursToMilliseconds } from 'date-fns/esm/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/fp/hoursToMinutes/index' { + import { hoursToMinutes } from 'date-fns/esm/fp' + export default hoursToMinutes +} + +declare module 'date-fns/esm/fp/hoursToSeconds/index' { + import { hoursToSeconds } from 'date-fns/esm/fp' + export default hoursToSeconds +} + +declare module 'date-fns/esm/fp/intervalToDuration/index' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +declare module 'date-fns/esm/fp/intlFormat/index' { + import { intlFormat } from 'date-fns/esm/fp' + export default intlFormat +} + +declare module 'date-fns/esm/fp/intlFormatDistance/index' { + import { intlFormatDistance } from 'date-fns/esm/fp' + export default intlFormatDistance +} + +declare module 'date-fns/esm/fp/intlFormatDistanceWithOptions/index' { + import { intlFormatDistanceWithOptions } from 'date-fns/esm/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/isAfter/index' { + import { isAfter } from 'date-fns/esm/fp' + export default isAfter +} + +declare module 'date-fns/esm/fp/isBefore/index' { + import { isBefore } from 'date-fns/esm/fp' + export default isBefore +} + +declare module 'date-fns/esm/fp/isDate/index' { + import { isDate } from 'date-fns/esm/fp' + export default isDate +} + +declare module 'date-fns/esm/fp/isEqual/index' { + import { isEqual } from 'date-fns/esm/fp' + export default isEqual +} + +declare module 'date-fns/esm/fp/isExists/index' { + import { isExists } from 'date-fns/esm/fp' + export default isExists +} + +declare module 'date-fns/esm/fp/isFirstDayOfMonth/index' { + import { isFirstDayOfMonth } from 'date-fns/esm/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/fp/isFriday/index' { + import { isFriday } from 'date-fns/esm/fp' + export default isFriday +} + +declare module 'date-fns/esm/fp/isLastDayOfMonth/index' { + import { isLastDayOfMonth } from 'date-fns/esm/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/fp/isLeapYear/index' { + import { isLeapYear } from 'date-fns/esm/fp' + export default isLeapYear +} + +declare module 'date-fns/esm/fp/isMatch/index' { + import { isMatch } from 'date-fns/esm/fp' + export default isMatch +} + +declare module 'date-fns/esm/fp/isMatchWithOptions/index' { + import { isMatchWithOptions } from 'date-fns/esm/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/esm/fp/isMonday/index' { + import { isMonday } from 'date-fns/esm/fp' + export default isMonday +} + +declare module 'date-fns/esm/fp/isSameDay/index' { + import { isSameDay } from 'date-fns/esm/fp' + export default isSameDay +} + +declare module 'date-fns/esm/fp/isSameHour/index' { + import { isSameHour } from 'date-fns/esm/fp' + export default isSameHour +} + +declare module 'date-fns/esm/fp/isSameISOWeek/index' { + import { isSameISOWeek } from 'date-fns/esm/fp' + export default isSameISOWeek +} + +declare module 'date-fns/esm/fp/isSameISOWeekYear/index' { + import { isSameISOWeekYear } from 'date-fns/esm/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/fp/isSameMinute/index' { + import { isSameMinute } from 'date-fns/esm/fp' + export default isSameMinute +} + +declare module 'date-fns/esm/fp/isSameMonth/index' { + import { isSameMonth } from 'date-fns/esm/fp' + export default isSameMonth +} + +declare module 'date-fns/esm/fp/isSameQuarter/index' { + import { isSameQuarter } from 'date-fns/esm/fp' + export default isSameQuarter +} + +declare module 'date-fns/esm/fp/isSameSecond/index' { + import { isSameSecond } from 'date-fns/esm/fp' + export default isSameSecond +} + +declare module 'date-fns/esm/fp/isSameWeek/index' { + import { isSameWeek } from 'date-fns/esm/fp' + export default isSameWeek +} + +declare module 'date-fns/esm/fp/isSameWeekWithOptions/index' { + import { isSameWeekWithOptions } from 'date-fns/esm/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/esm/fp/isSameYear/index' { + import { isSameYear } from 'date-fns/esm/fp' + export default isSameYear +} + +declare module 'date-fns/esm/fp/isSaturday/index' { + import { isSaturday } from 'date-fns/esm/fp' + export default isSaturday +} + +declare module 'date-fns/esm/fp/isSunday/index' { + import { isSunday } from 'date-fns/esm/fp' + export default isSunday +} + +declare module 'date-fns/esm/fp/isThursday/index' { + import { isThursday } from 'date-fns/esm/fp' + export default isThursday +} + +declare module 'date-fns/esm/fp/isTuesday/index' { + import { isTuesday } from 'date-fns/esm/fp' + export default isTuesday +} + +declare module 'date-fns/esm/fp/isValid/index' { + import { isValid } from 'date-fns/esm/fp' + export default isValid +} + +declare module 'date-fns/esm/fp/isWednesday/index' { + import { isWednesday } from 'date-fns/esm/fp' + export default isWednesday +} + +declare module 'date-fns/esm/fp/isWeekend/index' { + import { isWeekend } from 'date-fns/esm/fp' + export default isWeekend +} + +declare module 'date-fns/esm/fp/isWithinInterval/index' { + import { isWithinInterval } from 'date-fns/esm/fp' + export default isWithinInterval +} + +declare module 'date-fns/esm/fp/lastDayOfDecade/index' { + import { lastDayOfDecade } from 'date-fns/esm/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeek/index' { + import { lastDayOfISOWeek } from 'date-fns/esm/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeekYear/index' { + import { lastDayOfISOWeekYear } from 'date-fns/esm/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/fp/lastDayOfMonth/index' { + import { lastDayOfMonth } from 'date-fns/esm/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/fp/lastDayOfQuarter/index' { + import { lastDayOfQuarter } from 'date-fns/esm/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/fp/lastDayOfQuarterWithOptions/index' { + import { lastDayOfQuarterWithOptions } from 'date-fns/esm/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfWeek/index' { + import { lastDayOfWeek } from 'date-fns/esm/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/fp/lastDayOfWeekWithOptions/index' { + import { lastDayOfWeekWithOptions } from 'date-fns/esm/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfYear/index' { + import { lastDayOfYear } from 'date-fns/esm/fp' + export default lastDayOfYear +} + +declare module 'date-fns/esm/fp/lightFormat/index' { + import { lightFormat } from 'date-fns/esm/fp' + export default lightFormat +} + +declare module 'date-fns/esm/fp/max/index' { + import { max } from 'date-fns/esm/fp' + export default max +} + +declare module 'date-fns/esm/fp/milliseconds/index' { + import { milliseconds } from 'date-fns/esm/fp' + export default milliseconds +} + +declare module 'date-fns/esm/fp/millisecondsToHours/index' { + import { millisecondsToHours } from 'date-fns/esm/fp' + export default millisecondsToHours +} + +declare module 'date-fns/esm/fp/millisecondsToMinutes/index' { + import { millisecondsToMinutes } from 'date-fns/esm/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/fp/millisecondsToSeconds/index' { + import { millisecondsToSeconds } from 'date-fns/esm/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/fp/min/index' { + import { min } from 'date-fns/esm/fp' + export default min +} + +declare module 'date-fns/esm/fp/minutesToHours/index' { + import { minutesToHours } from 'date-fns/esm/fp' + export default minutesToHours +} + +declare module 'date-fns/esm/fp/minutesToMilliseconds/index' { + import { minutesToMilliseconds } from 'date-fns/esm/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/fp/minutesToSeconds/index' { + import { minutesToSeconds } from 'date-fns/esm/fp' + export default minutesToSeconds +} + +declare module 'date-fns/esm/fp/monthsToQuarters/index' { + import { monthsToQuarters } from 'date-fns/esm/fp' + export default monthsToQuarters +} + +declare module 'date-fns/esm/fp/monthsToYears/index' { + import { monthsToYears } from 'date-fns/esm/fp' + export default monthsToYears +} + +declare module 'date-fns/esm/fp/nextDay/index' { + import { nextDay } from 'date-fns/esm/fp' + export default nextDay +} + +declare module 'date-fns/esm/fp/nextFriday/index' { + import { nextFriday } from 'date-fns/esm/fp' + export default nextFriday +} + +declare module 'date-fns/esm/fp/nextMonday/index' { + import { nextMonday } from 'date-fns/esm/fp' + export default nextMonday +} + +declare module 'date-fns/esm/fp/nextSaturday/index' { + import { nextSaturday } from 'date-fns/esm/fp' + export default nextSaturday +} + +declare module 'date-fns/esm/fp/nextSunday/index' { + import { nextSunday } from 'date-fns/esm/fp' + export default nextSunday +} + +declare module 'date-fns/esm/fp/nextThursday/index' { + import { nextThursday } from 'date-fns/esm/fp' + export default nextThursday +} + +declare module 'date-fns/esm/fp/nextTuesday/index' { + import { nextTuesday } from 'date-fns/esm/fp' + export default nextTuesday +} + +declare module 'date-fns/esm/fp/nextWednesday/index' { + import { nextWednesday } from 'date-fns/esm/fp' + export default nextWednesday +} + +declare module 'date-fns/esm/fp/parse/index' { + import { parse } from 'date-fns/esm/fp' + export default parse +} + +declare module 'date-fns/esm/fp/parseISO/index' { + import { parseISO } from 'date-fns/esm/fp' + export default parseISO +} + +declare module 'date-fns/esm/fp/parseISOWithOptions/index' { + import { parseISOWithOptions } from 'date-fns/esm/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/esm/fp/parseJSON/index' { + import { parseJSON } from 'date-fns/esm/fp' + export default parseJSON +} + +declare module 'date-fns/esm/fp/parseWithOptions/index' { + import { parseWithOptions } from 'date-fns/esm/fp' + export default parseWithOptions +} + +declare module 'date-fns/esm/fp/previousDay/index' { + import { previousDay } from 'date-fns/esm/fp' + export default previousDay +} + +declare module 'date-fns/esm/fp/previousFriday/index' { + import { previousFriday } from 'date-fns/esm/fp' + export default previousFriday +} + +declare module 'date-fns/esm/fp/previousMonday/index' { + import { previousMonday } from 'date-fns/esm/fp' + export default previousMonday +} + +declare module 'date-fns/esm/fp/previousSaturday/index' { + import { previousSaturday } from 'date-fns/esm/fp' + export default previousSaturday +} + +declare module 'date-fns/esm/fp/previousSunday/index' { + import { previousSunday } from 'date-fns/esm/fp' + export default previousSunday +} + +declare module 'date-fns/esm/fp/previousThursday/index' { + import { previousThursday } from 'date-fns/esm/fp' + export default previousThursday +} + +declare module 'date-fns/esm/fp/previousTuesday/index' { + import { previousTuesday } from 'date-fns/esm/fp' + export default previousTuesday +} + +declare module 'date-fns/esm/fp/previousWednesday/index' { + import { previousWednesday } from 'date-fns/esm/fp' + export default previousWednesday +} + +declare module 'date-fns/esm/fp/quartersToMonths/index' { + import { quartersToMonths } from 'date-fns/esm/fp' + export default quartersToMonths +} + +declare module 'date-fns/esm/fp/quartersToYears/index' { + import { quartersToYears } from 'date-fns/esm/fp' + export default quartersToYears +} + +declare module 'date-fns/esm/fp/roundToNearestMinutes/index' { + import { roundToNearestMinutes } from 'date-fns/esm/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/fp/roundToNearestMinutesWithOptions/index' { + import { roundToNearestMinutesWithOptions } from 'date-fns/esm/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/esm/fp/secondsToHours/index' { + import { secondsToHours } from 'date-fns/esm/fp' + export default secondsToHours +} + +declare module 'date-fns/esm/fp/secondsToMilliseconds/index' { + import { secondsToMilliseconds } from 'date-fns/esm/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/fp/secondsToMinutes/index' { + import { secondsToMinutes } from 'date-fns/esm/fp' + export default secondsToMinutes +} + +declare module 'date-fns/esm/fp/set/index' { + import { set } from 'date-fns/esm/fp' + export default set +} + +declare module 'date-fns/esm/fp/setDate/index' { + import { setDate } from 'date-fns/esm/fp' + export default setDate +} + +declare module 'date-fns/esm/fp/setDay/index' { + import { setDay } from 'date-fns/esm/fp' + export default setDay +} + +declare module 'date-fns/esm/fp/setDayOfYear/index' { + import { setDayOfYear } from 'date-fns/esm/fp' + export default setDayOfYear +} + +declare module 'date-fns/esm/fp/setDayWithOptions/index' { + import { setDayWithOptions } from 'date-fns/esm/fp' + export default setDayWithOptions +} + +declare module 'date-fns/esm/fp/setHours/index' { + import { setHours } from 'date-fns/esm/fp' + export default setHours +} + +declare module 'date-fns/esm/fp/setISODay/index' { + import { setISODay } from 'date-fns/esm/fp' + export default setISODay +} + +declare module 'date-fns/esm/fp/setISOWeek/index' { + import { setISOWeek } from 'date-fns/esm/fp' + export default setISOWeek +} + +declare module 'date-fns/esm/fp/setISOWeekYear/index' { + import { setISOWeekYear } from 'date-fns/esm/fp' + export default setISOWeekYear +} + +declare module 'date-fns/esm/fp/setMilliseconds/index' { + import { setMilliseconds } from 'date-fns/esm/fp' + export default setMilliseconds +} + +declare module 'date-fns/esm/fp/setMinutes/index' { + import { setMinutes } from 'date-fns/esm/fp' + export default setMinutes +} + +declare module 'date-fns/esm/fp/setMonth/index' { + import { setMonth } from 'date-fns/esm/fp' + export default setMonth +} + +declare module 'date-fns/esm/fp/setQuarter/index' { + import { setQuarter } from 'date-fns/esm/fp' + export default setQuarter +} + +declare module 'date-fns/esm/fp/setSeconds/index' { + import { setSeconds } from 'date-fns/esm/fp' + export default setSeconds +} + +declare module 'date-fns/esm/fp/setWeek/index' { + import { setWeek } from 'date-fns/esm/fp' + export default setWeek +} + +declare module 'date-fns/esm/fp/setWeekWithOptions/index' { + import { setWeekWithOptions } from 'date-fns/esm/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/esm/fp/setWeekYear/index' { + import { setWeekYear } from 'date-fns/esm/fp' + export default setWeekYear +} + +declare module 'date-fns/esm/fp/setWeekYearWithOptions/index' { + import { setWeekYearWithOptions } from 'date-fns/esm/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/setYear/index' { + import { setYear } from 'date-fns/esm/fp' + export default setYear +} + +declare module 'date-fns/esm/fp/startOfDay/index' { + import { startOfDay } from 'date-fns/esm/fp' + export default startOfDay +} + +declare module 'date-fns/esm/fp/startOfDecade/index' { + import { startOfDecade } from 'date-fns/esm/fp' + export default startOfDecade +} + +declare module 'date-fns/esm/fp/startOfHour/index' { + import { startOfHour } from 'date-fns/esm/fp' + export default startOfHour +} + +declare module 'date-fns/esm/fp/startOfISOWeek/index' { + import { startOfISOWeek } from 'date-fns/esm/fp' + export default startOfISOWeek +} + +declare module 'date-fns/esm/fp/startOfISOWeekYear/index' { + import { startOfISOWeekYear } from 'date-fns/esm/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/fp/startOfMinute/index' { + import { startOfMinute } from 'date-fns/esm/fp' + export default startOfMinute +} + +declare module 'date-fns/esm/fp/startOfMonth/index' { + import { startOfMonth } from 'date-fns/esm/fp' + export default startOfMonth +} + +declare module 'date-fns/esm/fp/startOfQuarter/index' { + import { startOfQuarter } from 'date-fns/esm/fp' + export default startOfQuarter +} + +declare module 'date-fns/esm/fp/startOfSecond/index' { + import { startOfSecond } from 'date-fns/esm/fp' + export default startOfSecond +} + +declare module 'date-fns/esm/fp/startOfWeek/index' { + import { startOfWeek } from 'date-fns/esm/fp' + export default startOfWeek +} + +declare module 'date-fns/esm/fp/startOfWeekWithOptions/index' { + import { startOfWeekWithOptions } from 'date-fns/esm/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/startOfWeekYear/index' { + import { startOfWeekYear } from 'date-fns/esm/fp' + export default startOfWeekYear +} + +declare module 'date-fns/esm/fp/startOfWeekYearWithOptions/index' { + import { startOfWeekYearWithOptions } from 'date-fns/esm/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/startOfYear/index' { + import { startOfYear } from 'date-fns/esm/fp' + export default startOfYear +} + +declare module 'date-fns/esm/fp/sub/index' { + import { sub } from 'date-fns/esm/fp' + export default sub +} + +declare module 'date-fns/esm/fp/subBusinessDays/index' { + import { subBusinessDays } from 'date-fns/esm/fp' + export default subBusinessDays +} + +declare module 'date-fns/esm/fp/subDays/index' { + import { subDays } from 'date-fns/esm/fp' + export default subDays +} + +declare module 'date-fns/esm/fp/subHours/index' { + import { subHours } from 'date-fns/esm/fp' + export default subHours +} + +declare module 'date-fns/esm/fp/subISOWeekYears/index' { + import { subISOWeekYears } from 'date-fns/esm/fp' + export default subISOWeekYears +} + +declare module 'date-fns/esm/fp/subMilliseconds/index' { + import { subMilliseconds } from 'date-fns/esm/fp' + export default subMilliseconds +} + +declare module 'date-fns/esm/fp/subMinutes/index' { + import { subMinutes } from 'date-fns/esm/fp' + export default subMinutes +} + +declare module 'date-fns/esm/fp/subMonths/index' { + import { subMonths } from 'date-fns/esm/fp' + export default subMonths +} + +declare module 'date-fns/esm/fp/subQuarters/index' { + import { subQuarters } from 'date-fns/esm/fp' + export default subQuarters +} + +declare module 'date-fns/esm/fp/subSeconds/index' { + import { subSeconds } from 'date-fns/esm/fp' + export default subSeconds +} + +declare module 'date-fns/esm/fp/subWeeks/index' { + import { subWeeks } from 'date-fns/esm/fp' + export default subWeeks +} + +declare module 'date-fns/esm/fp/subYears/index' { + import { subYears } from 'date-fns/esm/fp' + export default subYears +} + +declare module 'date-fns/esm/fp/toDate/index' { + import { toDate } from 'date-fns/esm/fp' + export default toDate +} + +declare module 'date-fns/esm/fp/weeksToDays/index' { + import { weeksToDays } from 'date-fns/esm/fp' + export default weeksToDays +} + +declare module 'date-fns/esm/fp/yearsToMonths/index' { + import { yearsToMonths } from 'date-fns/esm/fp' + export default yearsToMonths +} + +declare module 'date-fns/esm/fp/yearsToQuarters/index' { + import { yearsToQuarters } from 'date-fns/esm/fp' + export default yearsToQuarters +} + +declare module 'date-fns/esm/fp/add/index.js' { + import { add } from 'date-fns/esm/fp' + export default add +} + +declare module 'date-fns/esm/fp/addBusinessDays/index.js' { + import { addBusinessDays } from 'date-fns/esm/fp' + export default addBusinessDays +} + +declare module 'date-fns/esm/fp/addDays/index.js' { + import { addDays } from 'date-fns/esm/fp' + export default addDays +} + +declare module 'date-fns/esm/fp/addHours/index.js' { + import { addHours } from 'date-fns/esm/fp' + export default addHours +} + +declare module 'date-fns/esm/fp/addISOWeekYears/index.js' { + import { addISOWeekYears } from 'date-fns/esm/fp' + export default addISOWeekYears +} + +declare module 'date-fns/esm/fp/addMilliseconds/index.js' { + import { addMilliseconds } from 'date-fns/esm/fp' + export default addMilliseconds +} + +declare module 'date-fns/esm/fp/addMinutes/index.js' { + import { addMinutes } from 'date-fns/esm/fp' + export default addMinutes +} + +declare module 'date-fns/esm/fp/addMonths/index.js' { + import { addMonths } from 'date-fns/esm/fp' + export default addMonths +} + +declare module 'date-fns/esm/fp/addQuarters/index.js' { + import { addQuarters } from 'date-fns/esm/fp' + export default addQuarters +} + +declare module 'date-fns/esm/fp/addSeconds/index.js' { + import { addSeconds } from 'date-fns/esm/fp' + export default addSeconds +} + +declare module 'date-fns/esm/fp/addWeeks/index.js' { + import { addWeeks } from 'date-fns/esm/fp' + export default addWeeks +} + +declare module 'date-fns/esm/fp/addYears/index.js' { + import { addYears } from 'date-fns/esm/fp' + export default addYears +} + +declare module 'date-fns/esm/fp/areIntervalsOverlapping/index.js' { + import { areIntervalsOverlapping } from 'date-fns/esm/fp' + export default areIntervalsOverlapping +} + +declare module 'date-fns/esm/fp/areIntervalsOverlappingWithOptions/index.js' { + import { areIntervalsOverlappingWithOptions } from 'date-fns/esm/fp' + export default areIntervalsOverlappingWithOptions +} + +declare module 'date-fns/esm/fp/clamp/index.js' { + import { clamp } from 'date-fns/esm/fp' + export default clamp +} + +declare module 'date-fns/esm/fp/closestIndexTo/index.js' { + import { closestIndexTo } from 'date-fns/esm/fp' + export default closestIndexTo +} + +declare module 'date-fns/esm/fp/closestTo/index.js' { + import { closestTo } from 'date-fns/esm/fp' + export default closestTo +} + +declare module 'date-fns/esm/fp/compareAsc/index.js' { + import { compareAsc } from 'date-fns/esm/fp' + export default compareAsc +} + +declare module 'date-fns/esm/fp/compareDesc/index.js' { + import { compareDesc } from 'date-fns/esm/fp' + export default compareDesc +} + +declare module 'date-fns/esm/fp/daysToWeeks/index.js' { + import { daysToWeeks } from 'date-fns/esm/fp' + export default daysToWeeks +} + +declare module 'date-fns/esm/fp/differenceInBusinessDays/index.js' { + import { differenceInBusinessDays } from 'date-fns/esm/fp' + export default differenceInBusinessDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarDays/index.js' { + import { differenceInCalendarDays } from 'date-fns/esm/fp' + export default differenceInCalendarDays +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeeks/index.js' { + import { differenceInCalendarISOWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarISOWeekYears/index.js' { + import { differenceInCalendarISOWeekYears } from 'date-fns/esm/fp' + export default differenceInCalendarISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInCalendarMonths/index.js' { + import { differenceInCalendarMonths } from 'date-fns/esm/fp' + export default differenceInCalendarMonths +} + +declare module 'date-fns/esm/fp/differenceInCalendarQuarters/index.js' { + import { differenceInCalendarQuarters } from 'date-fns/esm/fp' + export default differenceInCalendarQuarters +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeks/index.js' { + import { differenceInCalendarWeeks } from 'date-fns/esm/fp' + export default differenceInCalendarWeeks +} + +declare module 'date-fns/esm/fp/differenceInCalendarWeeksWithOptions/index.js' { + import { differenceInCalendarWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInCalendarWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInCalendarYears/index.js' { + import { differenceInCalendarYears } from 'date-fns/esm/fp' + export default differenceInCalendarYears +} + +declare module 'date-fns/esm/fp/differenceInDays/index.js' { + import { differenceInDays } from 'date-fns/esm/fp' + export default differenceInDays +} + +declare module 'date-fns/esm/fp/differenceInHours/index.js' { + import { differenceInHours } from 'date-fns/esm/fp' + export default differenceInHours +} + +declare module 'date-fns/esm/fp/differenceInHoursWithOptions/index.js' { + import { differenceInHoursWithOptions } from 'date-fns/esm/fp' + export default differenceInHoursWithOptions +} + +declare module 'date-fns/esm/fp/differenceInISOWeekYears/index.js' { + import { differenceInISOWeekYears } from 'date-fns/esm/fp' + export default differenceInISOWeekYears +} + +declare module 'date-fns/esm/fp/differenceInMilliseconds/index.js' { + import { differenceInMilliseconds } from 'date-fns/esm/fp' + export default differenceInMilliseconds +} + +declare module 'date-fns/esm/fp/differenceInMinutes/index.js' { + import { differenceInMinutes } from 'date-fns/esm/fp' + export default differenceInMinutes +} + +declare module 'date-fns/esm/fp/differenceInMinutesWithOptions/index.js' { + import { differenceInMinutesWithOptions } from 'date-fns/esm/fp' + export default differenceInMinutesWithOptions +} + +declare module 'date-fns/esm/fp/differenceInMonths/index.js' { + import { differenceInMonths } from 'date-fns/esm/fp' + export default differenceInMonths +} + +declare module 'date-fns/esm/fp/differenceInQuarters/index.js' { + import { differenceInQuarters } from 'date-fns/esm/fp' + export default differenceInQuarters +} + +declare module 'date-fns/esm/fp/differenceInQuartersWithOptions/index.js' { + import { differenceInQuartersWithOptions } from 'date-fns/esm/fp' + export default differenceInQuartersWithOptions +} + +declare module 'date-fns/esm/fp/differenceInSeconds/index.js' { + import { differenceInSeconds } from 'date-fns/esm/fp' + export default differenceInSeconds +} + +declare module 'date-fns/esm/fp/differenceInSecondsWithOptions/index.js' { + import { differenceInSecondsWithOptions } from 'date-fns/esm/fp' + export default differenceInSecondsWithOptions +} + +declare module 'date-fns/esm/fp/differenceInWeeks/index.js' { + import { differenceInWeeks } from 'date-fns/esm/fp' + export default differenceInWeeks +} + +declare module 'date-fns/esm/fp/differenceInWeeksWithOptions/index.js' { + import { differenceInWeeksWithOptions } from 'date-fns/esm/fp' + export default differenceInWeeksWithOptions +} + +declare module 'date-fns/esm/fp/differenceInYears/index.js' { + import { differenceInYears } from 'date-fns/esm/fp' + export default differenceInYears +} + +declare module 'date-fns/esm/fp/eachDayOfInterval/index.js' { + import { eachDayOfInterval } from 'date-fns/esm/fp' + export default eachDayOfInterval +} + +declare module 'date-fns/esm/fp/eachDayOfIntervalWithOptions/index.js' { + import { eachDayOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachDayOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachHourOfInterval/index.js' { + import { eachHourOfInterval } from 'date-fns/esm/fp' + export default eachHourOfInterval +} + +declare module 'date-fns/esm/fp/eachHourOfIntervalWithOptions/index.js' { + import { eachHourOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachHourOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMinuteOfInterval/index.js' { + import { eachMinuteOfInterval } from 'date-fns/esm/fp' + export default eachMinuteOfInterval +} + +declare module 'date-fns/esm/fp/eachMinuteOfIntervalWithOptions/index.js' { + import { eachMinuteOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachMinuteOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachMonthOfInterval/index.js' { + import { eachMonthOfInterval } from 'date-fns/esm/fp' + export default eachMonthOfInterval +} + +declare module 'date-fns/esm/fp/eachQuarterOfInterval/index.js' { + import { eachQuarterOfInterval } from 'date-fns/esm/fp' + export default eachQuarterOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfInterval/index.js' { + import { eachWeekendOfInterval } from 'date-fns/esm/fp' + export default eachWeekendOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekendOfMonth/index.js' { + import { eachWeekendOfMonth } from 'date-fns/esm/fp' + export default eachWeekendOfMonth +} + +declare module 'date-fns/esm/fp/eachWeekendOfYear/index.js' { + import { eachWeekendOfYear } from 'date-fns/esm/fp' + export default eachWeekendOfYear +} + +declare module 'date-fns/esm/fp/eachWeekOfInterval/index.js' { + import { eachWeekOfInterval } from 'date-fns/esm/fp' + export default eachWeekOfInterval +} + +declare module 'date-fns/esm/fp/eachWeekOfIntervalWithOptions/index.js' { + import { eachWeekOfIntervalWithOptions } from 'date-fns/esm/fp' + export default eachWeekOfIntervalWithOptions +} + +declare module 'date-fns/esm/fp/eachYearOfInterval/index.js' { + import { eachYearOfInterval } from 'date-fns/esm/fp' + export default eachYearOfInterval +} + +declare module 'date-fns/esm/fp/endOfDay/index.js' { + import { endOfDay } from 'date-fns/esm/fp' + export default endOfDay +} + +declare module 'date-fns/esm/fp/endOfDecade/index.js' { + import { endOfDecade } from 'date-fns/esm/fp' + export default endOfDecade +} + +declare module 'date-fns/esm/fp/endOfDecadeWithOptions/index.js' { + import { endOfDecadeWithOptions } from 'date-fns/esm/fp' + export default endOfDecadeWithOptions +} + +declare module 'date-fns/esm/fp/endOfHour/index.js' { + import { endOfHour } from 'date-fns/esm/fp' + export default endOfHour +} + +declare module 'date-fns/esm/fp/endOfISOWeek/index.js' { + import { endOfISOWeek } from 'date-fns/esm/fp' + export default endOfISOWeek +} + +declare module 'date-fns/esm/fp/endOfISOWeekYear/index.js' { + import { endOfISOWeekYear } from 'date-fns/esm/fp' + export default endOfISOWeekYear +} + +declare module 'date-fns/esm/fp/endOfMinute/index.js' { + import { endOfMinute } from 'date-fns/esm/fp' + export default endOfMinute +} + +declare module 'date-fns/esm/fp/endOfMonth/index.js' { + import { endOfMonth } from 'date-fns/esm/fp' + export default endOfMonth +} + +declare module 'date-fns/esm/fp/endOfQuarter/index.js' { + import { endOfQuarter } from 'date-fns/esm/fp' + export default endOfQuarter +} + +declare module 'date-fns/esm/fp/endOfSecond/index.js' { + import { endOfSecond } from 'date-fns/esm/fp' + export default endOfSecond +} + +declare module 'date-fns/esm/fp/endOfWeek/index.js' { + import { endOfWeek } from 'date-fns/esm/fp' + export default endOfWeek +} + +declare module 'date-fns/esm/fp/endOfWeekWithOptions/index.js' { + import { endOfWeekWithOptions } from 'date-fns/esm/fp' + export default endOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/endOfYear/index.js' { + import { endOfYear } from 'date-fns/esm/fp' + export default endOfYear +} + +declare module 'date-fns/esm/fp/format/index.js' { + import { format } from 'date-fns/esm/fp' + export default format +} + +declare module 'date-fns/esm/fp/formatDistance/index.js' { + import { formatDistance } from 'date-fns/esm/fp' + export default formatDistance +} + +declare module 'date-fns/esm/fp/formatDistanceStrict/index.js' { + import { formatDistanceStrict } from 'date-fns/esm/fp' + export default formatDistanceStrict +} + +declare module 'date-fns/esm/fp/formatDistanceStrictWithOptions/index.js' { + import { formatDistanceStrictWithOptions } from 'date-fns/esm/fp' + export default formatDistanceStrictWithOptions +} + +declare module 'date-fns/esm/fp/formatDistanceWithOptions/index.js' { + import { formatDistanceWithOptions } from 'date-fns/esm/fp' + export default formatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/formatDuration/index.js' { + import { formatDuration } from 'date-fns/esm/fp' + export default formatDuration +} + +declare module 'date-fns/esm/fp/formatDurationWithOptions/index.js' { + import { formatDurationWithOptions } from 'date-fns/esm/fp' + export default formatDurationWithOptions +} + +declare module 'date-fns/esm/fp/formatISO/index.js' { + import { formatISO } from 'date-fns/esm/fp' + export default formatISO +} + +declare module 'date-fns/esm/fp/formatISO9075/index.js' { + import { formatISO9075 } from 'date-fns/esm/fp' + export default formatISO9075 +} + +declare module 'date-fns/esm/fp/formatISO9075WithOptions/index.js' { + import { formatISO9075WithOptions } from 'date-fns/esm/fp' + export default formatISO9075WithOptions +} + +declare module 'date-fns/esm/fp/formatISODuration/index.js' { + import { formatISODuration } from 'date-fns/esm/fp' + export default formatISODuration +} + +declare module 'date-fns/esm/fp/formatISOWithOptions/index.js' { + import { formatISOWithOptions } from 'date-fns/esm/fp' + export default formatISOWithOptions +} + +declare module 'date-fns/esm/fp/formatRelative/index.js' { + import { formatRelative } from 'date-fns/esm/fp' + export default formatRelative +} + +declare module 'date-fns/esm/fp/formatRelativeWithOptions/index.js' { + import { formatRelativeWithOptions } from 'date-fns/esm/fp' + export default formatRelativeWithOptions +} + +declare module 'date-fns/esm/fp/formatRFC3339/index.js' { + import { formatRFC3339 } from 'date-fns/esm/fp' + export default formatRFC3339 +} + +declare module 'date-fns/esm/fp/formatRFC3339WithOptions/index.js' { + import { formatRFC3339WithOptions } from 'date-fns/esm/fp' + export default formatRFC3339WithOptions +} + +declare module 'date-fns/esm/fp/formatRFC7231/index.js' { + import { formatRFC7231 } from 'date-fns/esm/fp' + export default formatRFC7231 +} + +declare module 'date-fns/esm/fp/formatWithOptions/index.js' { + import { formatWithOptions } from 'date-fns/esm/fp' + export default formatWithOptions +} + +declare module 'date-fns/esm/fp/fromUnixTime/index.js' { + import { fromUnixTime } from 'date-fns/esm/fp' + export default fromUnixTime +} + +declare module 'date-fns/esm/fp/getDate/index.js' { + import { getDate } from 'date-fns/esm/fp' + export default getDate +} + +declare module 'date-fns/esm/fp/getDay/index.js' { + import { getDay } from 'date-fns/esm/fp' + export default getDay +} + +declare module 'date-fns/esm/fp/getDayOfYear/index.js' { + import { getDayOfYear } from 'date-fns/esm/fp' + export default getDayOfYear +} + +declare module 'date-fns/esm/fp/getDaysInMonth/index.js' { + import { getDaysInMonth } from 'date-fns/esm/fp' + export default getDaysInMonth +} + +declare module 'date-fns/esm/fp/getDaysInYear/index.js' { + import { getDaysInYear } from 'date-fns/esm/fp' + export default getDaysInYear +} + +declare module 'date-fns/esm/fp/getDecade/index.js' { + import { getDecade } from 'date-fns/esm/fp' + export default getDecade +} + +declare module 'date-fns/esm/fp/getHours/index.js' { + import { getHours } from 'date-fns/esm/fp' + export default getHours +} + +declare module 'date-fns/esm/fp/getISODay/index.js' { + import { getISODay } from 'date-fns/esm/fp' + export default getISODay +} + +declare module 'date-fns/esm/fp/getISOWeek/index.js' { + import { getISOWeek } from 'date-fns/esm/fp' + export default getISOWeek +} + +declare module 'date-fns/esm/fp/getISOWeeksInYear/index.js' { + import { getISOWeeksInYear } from 'date-fns/esm/fp' + export default getISOWeeksInYear +} + +declare module 'date-fns/esm/fp/getISOWeekYear/index.js' { + import { getISOWeekYear } from 'date-fns/esm/fp' + export default getISOWeekYear +} + +declare module 'date-fns/esm/fp/getMilliseconds/index.js' { + import { getMilliseconds } from 'date-fns/esm/fp' + export default getMilliseconds +} + +declare module 'date-fns/esm/fp/getMinutes/index.js' { + import { getMinutes } from 'date-fns/esm/fp' + export default getMinutes +} + +declare module 'date-fns/esm/fp/getMonth/index.js' { + import { getMonth } from 'date-fns/esm/fp' + export default getMonth +} + +declare module 'date-fns/esm/fp/getOverlappingDaysInIntervals/index.js' { + import { getOverlappingDaysInIntervals } from 'date-fns/esm/fp' + export default getOverlappingDaysInIntervals +} + +declare module 'date-fns/esm/fp/getQuarter/index.js' { + import { getQuarter } from 'date-fns/esm/fp' + export default getQuarter +} + +declare module 'date-fns/esm/fp/getSeconds/index.js' { + import { getSeconds } from 'date-fns/esm/fp' + export default getSeconds +} + +declare module 'date-fns/esm/fp/getTime/index.js' { + import { getTime } from 'date-fns/esm/fp' + export default getTime +} + +declare module 'date-fns/esm/fp/getUnixTime/index.js' { + import { getUnixTime } from 'date-fns/esm/fp' + export default getUnixTime +} + +declare module 'date-fns/esm/fp/getWeek/index.js' { + import { getWeek } from 'date-fns/esm/fp' + export default getWeek +} + +declare module 'date-fns/esm/fp/getWeekOfMonth/index.js' { + import { getWeekOfMonth } from 'date-fns/esm/fp' + export default getWeekOfMonth +} + +declare module 'date-fns/esm/fp/getWeekOfMonthWithOptions/index.js' { + import { getWeekOfMonthWithOptions } from 'date-fns/esm/fp' + export default getWeekOfMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeeksInMonth/index.js' { + import { getWeeksInMonth } from 'date-fns/esm/fp' + export default getWeeksInMonth +} + +declare module 'date-fns/esm/fp/getWeeksInMonthWithOptions/index.js' { + import { getWeeksInMonthWithOptions } from 'date-fns/esm/fp' + export default getWeeksInMonthWithOptions +} + +declare module 'date-fns/esm/fp/getWeekWithOptions/index.js' { + import { getWeekWithOptions } from 'date-fns/esm/fp' + export default getWeekWithOptions +} + +declare module 'date-fns/esm/fp/getWeekYear/index.js' { + import { getWeekYear } from 'date-fns/esm/fp' + export default getWeekYear +} + +declare module 'date-fns/esm/fp/getWeekYearWithOptions/index.js' { + import { getWeekYearWithOptions } from 'date-fns/esm/fp' + export default getWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/getYear/index.js' { + import { getYear } from 'date-fns/esm/fp' + export default getYear +} + +declare module 'date-fns/esm/fp/hoursToMilliseconds/index.js' { + import { hoursToMilliseconds } from 'date-fns/esm/fp' + export default hoursToMilliseconds +} + +declare module 'date-fns/esm/fp/hoursToMinutes/index.js' { + import { hoursToMinutes } from 'date-fns/esm/fp' + export default hoursToMinutes +} + +declare module 'date-fns/esm/fp/hoursToSeconds/index.js' { + import { hoursToSeconds } from 'date-fns/esm/fp' + export default hoursToSeconds +} + +declare module 'date-fns/esm/fp/intervalToDuration/index.js' { + import { intervalToDuration } from 'date-fns/esm/fp' + export default intervalToDuration +} + +declare module 'date-fns/esm/fp/intlFormat/index.js' { + import { intlFormat } from 'date-fns/esm/fp' + export default intlFormat +} + +declare module 'date-fns/esm/fp/intlFormatDistance/index.js' { + import { intlFormatDistance } from 'date-fns/esm/fp' + export default intlFormatDistance +} + +declare module 'date-fns/esm/fp/intlFormatDistanceWithOptions/index.js' { + import { intlFormatDistanceWithOptions } from 'date-fns/esm/fp' + export default intlFormatDistanceWithOptions +} + +declare module 'date-fns/esm/fp/isAfter/index.js' { + import { isAfter } from 'date-fns/esm/fp' + export default isAfter +} + +declare module 'date-fns/esm/fp/isBefore/index.js' { + import { isBefore } from 'date-fns/esm/fp' + export default isBefore +} + +declare module 'date-fns/esm/fp/isDate/index.js' { + import { isDate } from 'date-fns/esm/fp' + export default isDate +} + +declare module 'date-fns/esm/fp/isEqual/index.js' { + import { isEqual } from 'date-fns/esm/fp' + export default isEqual +} + +declare module 'date-fns/esm/fp/isExists/index.js' { + import { isExists } from 'date-fns/esm/fp' + export default isExists +} + +declare module 'date-fns/esm/fp/isFirstDayOfMonth/index.js' { + import { isFirstDayOfMonth } from 'date-fns/esm/fp' + export default isFirstDayOfMonth +} + +declare module 'date-fns/esm/fp/isFriday/index.js' { + import { isFriday } from 'date-fns/esm/fp' + export default isFriday +} + +declare module 'date-fns/esm/fp/isLastDayOfMonth/index.js' { + import { isLastDayOfMonth } from 'date-fns/esm/fp' + export default isLastDayOfMonth +} + +declare module 'date-fns/esm/fp/isLeapYear/index.js' { + import { isLeapYear } from 'date-fns/esm/fp' + export default isLeapYear +} + +declare module 'date-fns/esm/fp/isMatch/index.js' { + import { isMatch } from 'date-fns/esm/fp' + export default isMatch +} + +declare module 'date-fns/esm/fp/isMatchWithOptions/index.js' { + import { isMatchWithOptions } from 'date-fns/esm/fp' + export default isMatchWithOptions +} + +declare module 'date-fns/esm/fp/isMonday/index.js' { + import { isMonday } from 'date-fns/esm/fp' + export default isMonday +} + +declare module 'date-fns/esm/fp/isSameDay/index.js' { + import { isSameDay } from 'date-fns/esm/fp' + export default isSameDay +} + +declare module 'date-fns/esm/fp/isSameHour/index.js' { + import { isSameHour } from 'date-fns/esm/fp' + export default isSameHour +} + +declare module 'date-fns/esm/fp/isSameISOWeek/index.js' { + import { isSameISOWeek } from 'date-fns/esm/fp' + export default isSameISOWeek +} + +declare module 'date-fns/esm/fp/isSameISOWeekYear/index.js' { + import { isSameISOWeekYear } from 'date-fns/esm/fp' + export default isSameISOWeekYear +} + +declare module 'date-fns/esm/fp/isSameMinute/index.js' { + import { isSameMinute } from 'date-fns/esm/fp' + export default isSameMinute +} + +declare module 'date-fns/esm/fp/isSameMonth/index.js' { + import { isSameMonth } from 'date-fns/esm/fp' + export default isSameMonth +} + +declare module 'date-fns/esm/fp/isSameQuarter/index.js' { + import { isSameQuarter } from 'date-fns/esm/fp' + export default isSameQuarter +} + +declare module 'date-fns/esm/fp/isSameSecond/index.js' { + import { isSameSecond } from 'date-fns/esm/fp' + export default isSameSecond +} + +declare module 'date-fns/esm/fp/isSameWeek/index.js' { + import { isSameWeek } from 'date-fns/esm/fp' + export default isSameWeek +} + +declare module 'date-fns/esm/fp/isSameWeekWithOptions/index.js' { + import { isSameWeekWithOptions } from 'date-fns/esm/fp' + export default isSameWeekWithOptions +} + +declare module 'date-fns/esm/fp/isSameYear/index.js' { + import { isSameYear } from 'date-fns/esm/fp' + export default isSameYear +} + +declare module 'date-fns/esm/fp/isSaturday/index.js' { + import { isSaturday } from 'date-fns/esm/fp' + export default isSaturday +} + +declare module 'date-fns/esm/fp/isSunday/index.js' { + import { isSunday } from 'date-fns/esm/fp' + export default isSunday +} + +declare module 'date-fns/esm/fp/isThursday/index.js' { + import { isThursday } from 'date-fns/esm/fp' + export default isThursday +} + +declare module 'date-fns/esm/fp/isTuesday/index.js' { + import { isTuesday } from 'date-fns/esm/fp' + export default isTuesday +} + +declare module 'date-fns/esm/fp/isValid/index.js' { + import { isValid } from 'date-fns/esm/fp' + export default isValid +} + +declare module 'date-fns/esm/fp/isWednesday/index.js' { + import { isWednesday } from 'date-fns/esm/fp' + export default isWednesday +} + +declare module 'date-fns/esm/fp/isWeekend/index.js' { + import { isWeekend } from 'date-fns/esm/fp' + export default isWeekend +} + +declare module 'date-fns/esm/fp/isWithinInterval/index.js' { + import { isWithinInterval } from 'date-fns/esm/fp' + export default isWithinInterval +} + +declare module 'date-fns/esm/fp/lastDayOfDecade/index.js' { + import { lastDayOfDecade } from 'date-fns/esm/fp' + export default lastDayOfDecade +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeek/index.js' { + import { lastDayOfISOWeek } from 'date-fns/esm/fp' + export default lastDayOfISOWeek +} + +declare module 'date-fns/esm/fp/lastDayOfISOWeekYear/index.js' { + import { lastDayOfISOWeekYear } from 'date-fns/esm/fp' + export default lastDayOfISOWeekYear +} + +declare module 'date-fns/esm/fp/lastDayOfMonth/index.js' { + import { lastDayOfMonth } from 'date-fns/esm/fp' + export default lastDayOfMonth +} + +declare module 'date-fns/esm/fp/lastDayOfQuarter/index.js' { + import { lastDayOfQuarter } from 'date-fns/esm/fp' + export default lastDayOfQuarter +} + +declare module 'date-fns/esm/fp/lastDayOfQuarterWithOptions/index.js' { + import { lastDayOfQuarterWithOptions } from 'date-fns/esm/fp' + export default lastDayOfQuarterWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfWeek/index.js' { + import { lastDayOfWeek } from 'date-fns/esm/fp' + export default lastDayOfWeek +} + +declare module 'date-fns/esm/fp/lastDayOfWeekWithOptions/index.js' { + import { lastDayOfWeekWithOptions } from 'date-fns/esm/fp' + export default lastDayOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/lastDayOfYear/index.js' { + import { lastDayOfYear } from 'date-fns/esm/fp' + export default lastDayOfYear +} + +declare module 'date-fns/esm/fp/lightFormat/index.js' { + import { lightFormat } from 'date-fns/esm/fp' + export default lightFormat +} + +declare module 'date-fns/esm/fp/max/index.js' { + import { max } from 'date-fns/esm/fp' + export default max +} + +declare module 'date-fns/esm/fp/milliseconds/index.js' { + import { milliseconds } from 'date-fns/esm/fp' + export default milliseconds +} + +declare module 'date-fns/esm/fp/millisecondsToHours/index.js' { + import { millisecondsToHours } from 'date-fns/esm/fp' + export default millisecondsToHours +} + +declare module 'date-fns/esm/fp/millisecondsToMinutes/index.js' { + import { millisecondsToMinutes } from 'date-fns/esm/fp' + export default millisecondsToMinutes +} + +declare module 'date-fns/esm/fp/millisecondsToSeconds/index.js' { + import { millisecondsToSeconds } from 'date-fns/esm/fp' + export default millisecondsToSeconds +} + +declare module 'date-fns/esm/fp/min/index.js' { + import { min } from 'date-fns/esm/fp' + export default min +} + +declare module 'date-fns/esm/fp/minutesToHours/index.js' { + import { minutesToHours } from 'date-fns/esm/fp' + export default minutesToHours +} + +declare module 'date-fns/esm/fp/minutesToMilliseconds/index.js' { + import { minutesToMilliseconds } from 'date-fns/esm/fp' + export default minutesToMilliseconds +} + +declare module 'date-fns/esm/fp/minutesToSeconds/index.js' { + import { minutesToSeconds } from 'date-fns/esm/fp' + export default minutesToSeconds +} + +declare module 'date-fns/esm/fp/monthsToQuarters/index.js' { + import { monthsToQuarters } from 'date-fns/esm/fp' + export default monthsToQuarters +} + +declare module 'date-fns/esm/fp/monthsToYears/index.js' { + import { monthsToYears } from 'date-fns/esm/fp' + export default monthsToYears +} + +declare module 'date-fns/esm/fp/nextDay/index.js' { + import { nextDay } from 'date-fns/esm/fp' + export default nextDay +} + +declare module 'date-fns/esm/fp/nextFriday/index.js' { + import { nextFriday } from 'date-fns/esm/fp' + export default nextFriday +} + +declare module 'date-fns/esm/fp/nextMonday/index.js' { + import { nextMonday } from 'date-fns/esm/fp' + export default nextMonday +} + +declare module 'date-fns/esm/fp/nextSaturday/index.js' { + import { nextSaturday } from 'date-fns/esm/fp' + export default nextSaturday +} + +declare module 'date-fns/esm/fp/nextSunday/index.js' { + import { nextSunday } from 'date-fns/esm/fp' + export default nextSunday +} + +declare module 'date-fns/esm/fp/nextThursday/index.js' { + import { nextThursday } from 'date-fns/esm/fp' + export default nextThursday +} + +declare module 'date-fns/esm/fp/nextTuesday/index.js' { + import { nextTuesday } from 'date-fns/esm/fp' + export default nextTuesday +} + +declare module 'date-fns/esm/fp/nextWednesday/index.js' { + import { nextWednesday } from 'date-fns/esm/fp' + export default nextWednesday +} + +declare module 'date-fns/esm/fp/parse/index.js' { + import { parse } from 'date-fns/esm/fp' + export default parse +} + +declare module 'date-fns/esm/fp/parseISO/index.js' { + import { parseISO } from 'date-fns/esm/fp' + export default parseISO +} + +declare module 'date-fns/esm/fp/parseISOWithOptions/index.js' { + import { parseISOWithOptions } from 'date-fns/esm/fp' + export default parseISOWithOptions +} + +declare module 'date-fns/esm/fp/parseJSON/index.js' { + import { parseJSON } from 'date-fns/esm/fp' + export default parseJSON +} + +declare module 'date-fns/esm/fp/parseWithOptions/index.js' { + import { parseWithOptions } from 'date-fns/esm/fp' + export default parseWithOptions +} + +declare module 'date-fns/esm/fp/previousDay/index.js' { + import { previousDay } from 'date-fns/esm/fp' + export default previousDay +} + +declare module 'date-fns/esm/fp/previousFriday/index.js' { + import { previousFriday } from 'date-fns/esm/fp' + export default previousFriday +} + +declare module 'date-fns/esm/fp/previousMonday/index.js' { + import { previousMonday } from 'date-fns/esm/fp' + export default previousMonday +} + +declare module 'date-fns/esm/fp/previousSaturday/index.js' { + import { previousSaturday } from 'date-fns/esm/fp' + export default previousSaturday +} + +declare module 'date-fns/esm/fp/previousSunday/index.js' { + import { previousSunday } from 'date-fns/esm/fp' + export default previousSunday +} + +declare module 'date-fns/esm/fp/previousThursday/index.js' { + import { previousThursday } from 'date-fns/esm/fp' + export default previousThursday +} + +declare module 'date-fns/esm/fp/previousTuesday/index.js' { + import { previousTuesday } from 'date-fns/esm/fp' + export default previousTuesday +} + +declare module 'date-fns/esm/fp/previousWednesday/index.js' { + import { previousWednesday } from 'date-fns/esm/fp' + export default previousWednesday +} + +declare module 'date-fns/esm/fp/quartersToMonths/index.js' { + import { quartersToMonths } from 'date-fns/esm/fp' + export default quartersToMonths +} + +declare module 'date-fns/esm/fp/quartersToYears/index.js' { + import { quartersToYears } from 'date-fns/esm/fp' + export default quartersToYears +} + +declare module 'date-fns/esm/fp/roundToNearestMinutes/index.js' { + import { roundToNearestMinutes } from 'date-fns/esm/fp' + export default roundToNearestMinutes +} + +declare module 'date-fns/esm/fp/roundToNearestMinutesWithOptions/index.js' { + import { roundToNearestMinutesWithOptions } from 'date-fns/esm/fp' + export default roundToNearestMinutesWithOptions +} + +declare module 'date-fns/esm/fp/secondsToHours/index.js' { + import { secondsToHours } from 'date-fns/esm/fp' + export default secondsToHours +} + +declare module 'date-fns/esm/fp/secondsToMilliseconds/index.js' { + import { secondsToMilliseconds } from 'date-fns/esm/fp' + export default secondsToMilliseconds +} + +declare module 'date-fns/esm/fp/secondsToMinutes/index.js' { + import { secondsToMinutes } from 'date-fns/esm/fp' + export default secondsToMinutes +} + +declare module 'date-fns/esm/fp/set/index.js' { + import { set } from 'date-fns/esm/fp' + export default set +} + +declare module 'date-fns/esm/fp/setDate/index.js' { + import { setDate } from 'date-fns/esm/fp' + export default setDate +} + +declare module 'date-fns/esm/fp/setDay/index.js' { + import { setDay } from 'date-fns/esm/fp' + export default setDay +} + +declare module 'date-fns/esm/fp/setDayOfYear/index.js' { + import { setDayOfYear } from 'date-fns/esm/fp' + export default setDayOfYear +} + +declare module 'date-fns/esm/fp/setDayWithOptions/index.js' { + import { setDayWithOptions } from 'date-fns/esm/fp' + export default setDayWithOptions +} + +declare module 'date-fns/esm/fp/setHours/index.js' { + import { setHours } from 'date-fns/esm/fp' + export default setHours +} + +declare module 'date-fns/esm/fp/setISODay/index.js' { + import { setISODay } from 'date-fns/esm/fp' + export default setISODay +} + +declare module 'date-fns/esm/fp/setISOWeek/index.js' { + import { setISOWeek } from 'date-fns/esm/fp' + export default setISOWeek +} + +declare module 'date-fns/esm/fp/setISOWeekYear/index.js' { + import { setISOWeekYear } from 'date-fns/esm/fp' + export default setISOWeekYear +} + +declare module 'date-fns/esm/fp/setMilliseconds/index.js' { + import { setMilliseconds } from 'date-fns/esm/fp' + export default setMilliseconds +} + +declare module 'date-fns/esm/fp/setMinutes/index.js' { + import { setMinutes } from 'date-fns/esm/fp' + export default setMinutes +} + +declare module 'date-fns/esm/fp/setMonth/index.js' { + import { setMonth } from 'date-fns/esm/fp' + export default setMonth +} + +declare module 'date-fns/esm/fp/setQuarter/index.js' { + import { setQuarter } from 'date-fns/esm/fp' + export default setQuarter +} + +declare module 'date-fns/esm/fp/setSeconds/index.js' { + import { setSeconds } from 'date-fns/esm/fp' + export default setSeconds +} + +declare module 'date-fns/esm/fp/setWeek/index.js' { + import { setWeek } from 'date-fns/esm/fp' + export default setWeek +} + +declare module 'date-fns/esm/fp/setWeekWithOptions/index.js' { + import { setWeekWithOptions } from 'date-fns/esm/fp' + export default setWeekWithOptions +} + +declare module 'date-fns/esm/fp/setWeekYear/index.js' { + import { setWeekYear } from 'date-fns/esm/fp' + export default setWeekYear +} + +declare module 'date-fns/esm/fp/setWeekYearWithOptions/index.js' { + import { setWeekYearWithOptions } from 'date-fns/esm/fp' + export default setWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/setYear/index.js' { + import { setYear } from 'date-fns/esm/fp' + export default setYear +} + +declare module 'date-fns/esm/fp/startOfDay/index.js' { + import { startOfDay } from 'date-fns/esm/fp' + export default startOfDay +} + +declare module 'date-fns/esm/fp/startOfDecade/index.js' { + import { startOfDecade } from 'date-fns/esm/fp' + export default startOfDecade +} + +declare module 'date-fns/esm/fp/startOfHour/index.js' { + import { startOfHour } from 'date-fns/esm/fp' + export default startOfHour +} + +declare module 'date-fns/esm/fp/startOfISOWeek/index.js' { + import { startOfISOWeek } from 'date-fns/esm/fp' + export default startOfISOWeek +} + +declare module 'date-fns/esm/fp/startOfISOWeekYear/index.js' { + import { startOfISOWeekYear } from 'date-fns/esm/fp' + export default startOfISOWeekYear +} + +declare module 'date-fns/esm/fp/startOfMinute/index.js' { + import { startOfMinute } from 'date-fns/esm/fp' + export default startOfMinute +} + +declare module 'date-fns/esm/fp/startOfMonth/index.js' { + import { startOfMonth } from 'date-fns/esm/fp' + export default startOfMonth +} + +declare module 'date-fns/esm/fp/startOfQuarter/index.js' { + import { startOfQuarter } from 'date-fns/esm/fp' + export default startOfQuarter +} + +declare module 'date-fns/esm/fp/startOfSecond/index.js' { + import { startOfSecond } from 'date-fns/esm/fp' + export default startOfSecond +} + +declare module 'date-fns/esm/fp/startOfWeek/index.js' { + import { startOfWeek } from 'date-fns/esm/fp' + export default startOfWeek +} + +declare module 'date-fns/esm/fp/startOfWeekWithOptions/index.js' { + import { startOfWeekWithOptions } from 'date-fns/esm/fp' + export default startOfWeekWithOptions +} + +declare module 'date-fns/esm/fp/startOfWeekYear/index.js' { + import { startOfWeekYear } from 'date-fns/esm/fp' + export default startOfWeekYear +} + +declare module 'date-fns/esm/fp/startOfWeekYearWithOptions/index.js' { + import { startOfWeekYearWithOptions } from 'date-fns/esm/fp' + export default startOfWeekYearWithOptions +} + +declare module 'date-fns/esm/fp/startOfYear/index.js' { + import { startOfYear } from 'date-fns/esm/fp' + export default startOfYear +} + +declare module 'date-fns/esm/fp/sub/index.js' { + import { sub } from 'date-fns/esm/fp' + export default sub +} + +declare module 'date-fns/esm/fp/subBusinessDays/index.js' { + import { subBusinessDays } from 'date-fns/esm/fp' + export default subBusinessDays +} + +declare module 'date-fns/esm/fp/subDays/index.js' { + import { subDays } from 'date-fns/esm/fp' + export default subDays +} + +declare module 'date-fns/esm/fp/subHours/index.js' { + import { subHours } from 'date-fns/esm/fp' + export default subHours +} + +declare module 'date-fns/esm/fp/subISOWeekYears/index.js' { + import { subISOWeekYears } from 'date-fns/esm/fp' + export default subISOWeekYears +} + +declare module 'date-fns/esm/fp/subMilliseconds/index.js' { + import { subMilliseconds } from 'date-fns/esm/fp' + export default subMilliseconds +} + +declare module 'date-fns/esm/fp/subMinutes/index.js' { + import { subMinutes } from 'date-fns/esm/fp' + export default subMinutes +} + +declare module 'date-fns/esm/fp/subMonths/index.js' { + import { subMonths } from 'date-fns/esm/fp' + export default subMonths +} + +declare module 'date-fns/esm/fp/subQuarters/index.js' { + import { subQuarters } from 'date-fns/esm/fp' + export default subQuarters +} + +declare module 'date-fns/esm/fp/subSeconds/index.js' { + import { subSeconds } from 'date-fns/esm/fp' + export default subSeconds +} + +declare module 'date-fns/esm/fp/subWeeks/index.js' { + import { subWeeks } from 'date-fns/esm/fp' + export default subWeeks +} + +declare module 'date-fns/esm/fp/subYears/index.js' { + import { subYears } from 'date-fns/esm/fp' + export default subYears +} + +declare module 'date-fns/esm/fp/toDate/index.js' { + import { toDate } from 'date-fns/esm/fp' + export default toDate +} + +declare module 'date-fns/esm/fp/weeksToDays/index.js' { + import { weeksToDays } from 'date-fns/esm/fp' + export default weeksToDays +} + +declare module 'date-fns/esm/fp/yearsToMonths/index.js' { + import { yearsToMonths } from 'date-fns/esm/fp' + export default yearsToMonths +} + +declare module 'date-fns/esm/fp/yearsToQuarters/index.js' { + import { yearsToQuarters } from 'date-fns/esm/fp' + export default yearsToQuarters +} + +// Regular Locales + +declare module 'date-fns/locale' { + const af: Locale + namespace af {} + + const ar: Locale + namespace ar {} + + const arDZ: Locale + namespace arDZ {} + + const arEG: Locale + namespace arEG {} + + const arMA: Locale + namespace arMA {} + + const arSA: Locale + namespace arSA {} + + const arTN: Locale + namespace arTN {} + + const az: Locale + namespace az {} + + const be: Locale + namespace be {} + + const beTarask: Locale + namespace beTarask {} + + const bg: Locale + namespace bg {} + + const bn: Locale + namespace bn {} + + const bs: Locale + namespace bs {} + + const ca: Locale + namespace ca {} + + const cs: Locale + namespace cs {} + + const cy: Locale + namespace cy {} + + const da: Locale + namespace da {} + + const de: Locale + namespace de {} + + const deAT: Locale + namespace deAT {} + + const el: Locale + namespace el {} + + const enAU: Locale + namespace enAU {} + + const enCA: Locale + namespace enCA {} + + const enGB: Locale + namespace enGB {} + + const enIE: Locale + namespace enIE {} + + const enIN: Locale + namespace enIN {} + + const enNZ: Locale + namespace enNZ {} + + const enUS: Locale + namespace enUS {} + + const enZA: Locale + namespace enZA {} + + const eo: Locale + namespace eo {} + + const es: Locale + namespace es {} + + const et: Locale + namespace et {} + + const eu: Locale + namespace eu {} + + const faIR: Locale + namespace faIR {} + + const fi: Locale + namespace fi {} + + const fr: Locale + namespace fr {} + + const frCA: Locale + namespace frCA {} + + const frCH: Locale + namespace frCH {} + + const fy: Locale + namespace fy {} + + const gd: Locale + namespace gd {} + + const gl: Locale + namespace gl {} + + const gu: Locale + namespace gu {} + + const he: Locale + namespace he {} + + const hi: Locale + namespace hi {} + + const hr: Locale + namespace hr {} + + const ht: Locale + namespace ht {} + + const hu: Locale + namespace hu {} + + const hy: Locale + namespace hy {} + + const id: Locale + namespace id {} + + const is: Locale + namespace is {} + + const it: Locale + namespace it {} + + const itCH: Locale + namespace itCH {} + + const ja: Locale + namespace ja {} + + const jaHira: Locale + namespace jaHira {} + + const ka: Locale + namespace ka {} + + const kk: Locale + namespace kk {} + + const km: Locale + namespace km {} + + const kn: Locale + namespace kn {} + + const ko: Locale + namespace ko {} + + const lb: Locale + namespace lb {} + + const lt: Locale + namespace lt {} + + const lv: Locale + namespace lv {} + + const mk: Locale + namespace mk {} + + const mn: Locale + namespace mn {} + + const ms: Locale + namespace ms {} + + const mt: Locale + namespace mt {} + + const nb: Locale + namespace nb {} + + const nl: Locale + namespace nl {} + + const nlBE: Locale + namespace nlBE {} + + const nn: Locale + namespace nn {} + + const oc: Locale + namespace oc {} + + const pl: Locale + namespace pl {} + + const pt: Locale + namespace pt {} + + const ptBR: Locale + namespace ptBR {} + + const ro: Locale + namespace ro {} + + const ru: Locale + namespace ru {} + + const sk: Locale + namespace sk {} + + const sl: Locale + namespace sl {} + + const sq: Locale + namespace sq {} + + const sr: Locale + namespace sr {} + + const srLatn: Locale + namespace srLatn {} + + const sv: Locale + namespace sv {} + + const ta: Locale + namespace ta {} + + const te: Locale + namespace te {} + + const th: Locale + namespace th {} + + const tr: Locale + namespace tr {} + + const ug: Locale + namespace ug {} + + const uk: Locale + namespace uk {} + + const uz: Locale + namespace uz {} + + const uzCyrl: Locale + namespace uzCyrl {} + + const vi: Locale + namespace vi {} + + const zhCN: Locale + namespace zhCN {} + + const zhHK: Locale + namespace zhHK {} + + const zhTW: Locale + namespace zhTW {} +} + +declare module 'date-fns/locale/af' { + import { af } from 'date-fns/locale' + export default af +} + +declare module 'date-fns/locale/ar' { + import { ar } from 'date-fns/locale' + export default ar +} + +declare module 'date-fns/locale/ar-DZ' { + import { arDZ } from 'date-fns/locale' + export default arDZ +} + +declare module 'date-fns/locale/ar-EG' { + import { arEG } from 'date-fns/locale' + export default arEG +} + +declare module 'date-fns/locale/ar-MA' { + import { arMA } from 'date-fns/locale' + export default arMA +} + +declare module 'date-fns/locale/ar-SA' { + import { arSA } from 'date-fns/locale' + export default arSA +} + +declare module 'date-fns/locale/ar-TN' { + import { arTN } from 'date-fns/locale' + export default arTN +} + +declare module 'date-fns/locale/az' { + import { az } from 'date-fns/locale' + export default az +} + +declare module 'date-fns/locale/be' { + import { be } from 'date-fns/locale' + export default be +} + +declare module 'date-fns/locale/be-tarask' { + import { beTarask } from 'date-fns/locale' + export default beTarask +} + +declare module 'date-fns/locale/bg' { + import { bg } from 'date-fns/locale' + export default bg +} + +declare module 'date-fns/locale/bn' { + import { bn } from 'date-fns/locale' + export default bn +} + +declare module 'date-fns/locale/bs' { + import { bs } from 'date-fns/locale' + export default bs +} + +declare module 'date-fns/locale/ca' { + import { ca } from 'date-fns/locale' + export default ca +} + +declare module 'date-fns/locale/cs' { + import { cs } from 'date-fns/locale' + export default cs +} + +declare module 'date-fns/locale/cy' { + import { cy } from 'date-fns/locale' + export default cy +} + +declare module 'date-fns/locale/da' { + import { da } from 'date-fns/locale' + export default da +} + +declare module 'date-fns/locale/de' { + import { de } from 'date-fns/locale' + export default de +} + +declare module 'date-fns/locale/de-AT' { + import { deAT } from 'date-fns/locale' + export default deAT +} + +declare module 'date-fns/locale/el' { + import { el } from 'date-fns/locale' + export default el +} + +declare module 'date-fns/locale/en-AU' { + import { enAU } from 'date-fns/locale' + export default enAU +} + +declare module 'date-fns/locale/en-CA' { + import { enCA } from 'date-fns/locale' + export default enCA +} + +declare module 'date-fns/locale/en-GB' { + import { enGB } from 'date-fns/locale' + export default enGB +} + +declare module 'date-fns/locale/en-IE' { + import { enIE } from 'date-fns/locale' + export default enIE +} + +declare module 'date-fns/locale/en-IN' { + import { enIN } from 'date-fns/locale' + export default enIN +} + +declare module 'date-fns/locale/en-NZ' { + import { enNZ } from 'date-fns/locale' + export default enNZ +} + +declare module 'date-fns/locale/en-US' { + import { enUS } from 'date-fns/locale' + export default enUS +} + +declare module 'date-fns/locale/en-ZA' { + import { enZA } from 'date-fns/locale' + export default enZA +} + +declare module 'date-fns/locale/eo' { + import { eo } from 'date-fns/locale' + export default eo +} + +declare module 'date-fns/locale/es' { + import { es } from 'date-fns/locale' + export default es +} + +declare module 'date-fns/locale/et' { + import { et } from 'date-fns/locale' + export default et +} + +declare module 'date-fns/locale/eu' { + import { eu } from 'date-fns/locale' + export default eu +} + +declare module 'date-fns/locale/fa-IR' { + import { faIR } from 'date-fns/locale' + export default faIR +} + +declare module 'date-fns/locale/fi' { + import { fi } from 'date-fns/locale' + export default fi +} + +declare module 'date-fns/locale/fr' { + import { fr } from 'date-fns/locale' + export default fr +} + +declare module 'date-fns/locale/fr-CA' { + import { frCA } from 'date-fns/locale' + export default frCA +} + +declare module 'date-fns/locale/fr-CH' { + import { frCH } from 'date-fns/locale' + export default frCH +} + +declare module 'date-fns/locale/fy' { + import { fy } from 'date-fns/locale' + export default fy +} + +declare module 'date-fns/locale/gd' { + import { gd } from 'date-fns/locale' + export default gd +} + +declare module 'date-fns/locale/gl' { + import { gl } from 'date-fns/locale' + export default gl +} + +declare module 'date-fns/locale/gu' { + import { gu } from 'date-fns/locale' + export default gu +} + +declare module 'date-fns/locale/he' { + import { he } from 'date-fns/locale' + export default he +} + +declare module 'date-fns/locale/hi' { + import { hi } from 'date-fns/locale' + export default hi +} + +declare module 'date-fns/locale/hr' { + import { hr } from 'date-fns/locale' + export default hr +} + +declare module 'date-fns/locale/ht' { + import { ht } from 'date-fns/locale' + export default ht +} + +declare module 'date-fns/locale/hu' { + import { hu } from 'date-fns/locale' + export default hu +} + +declare module 'date-fns/locale/hy' { + import { hy } from 'date-fns/locale' + export default hy +} + +declare module 'date-fns/locale/id' { + import { id } from 'date-fns/locale' + export default id +} + +declare module 'date-fns/locale/is' { + import { is } from 'date-fns/locale' + export default is +} + +declare module 'date-fns/locale/it' { + import { it } from 'date-fns/locale' + export default it +} + +declare module 'date-fns/locale/it-CH' { + import { itCH } from 'date-fns/locale' + export default itCH +} + +declare module 'date-fns/locale/ja' { + import { ja } from 'date-fns/locale' + export default ja +} + +declare module 'date-fns/locale/ja-Hira' { + import { jaHira } from 'date-fns/locale' + export default jaHira +} + +declare module 'date-fns/locale/ka' { + import { ka } from 'date-fns/locale' + export default ka +} + +declare module 'date-fns/locale/kk' { + import { kk } from 'date-fns/locale' + export default kk +} + +declare module 'date-fns/locale/km' { + import { km } from 'date-fns/locale' + export default km +} + +declare module 'date-fns/locale/kn' { + import { kn } from 'date-fns/locale' + export default kn +} + +declare module 'date-fns/locale/ko' { + import { ko } from 'date-fns/locale' + export default ko +} + +declare module 'date-fns/locale/lb' { + import { lb } from 'date-fns/locale' + export default lb +} + +declare module 'date-fns/locale/lt' { + import { lt } from 'date-fns/locale' + export default lt +} + +declare module 'date-fns/locale/lv' { + import { lv } from 'date-fns/locale' + export default lv +} + +declare module 'date-fns/locale/mk' { + import { mk } from 'date-fns/locale' + export default mk +} + +declare module 'date-fns/locale/mn' { + import { mn } from 'date-fns/locale' + export default mn +} + +declare module 'date-fns/locale/ms' { + import { ms } from 'date-fns/locale' + export default ms +} + +declare module 'date-fns/locale/mt' { + import { mt } from 'date-fns/locale' + export default mt +} + +declare module 'date-fns/locale/nb' { + import { nb } from 'date-fns/locale' + export default nb +} + +declare module 'date-fns/locale/nl' { + import { nl } from 'date-fns/locale' + export default nl +} + +declare module 'date-fns/locale/nl-BE' { + import { nlBE } from 'date-fns/locale' + export default nlBE +} + +declare module 'date-fns/locale/nn' { + import { nn } from 'date-fns/locale' + export default nn +} + +declare module 'date-fns/locale/oc' { + import { oc } from 'date-fns/locale' + export default oc +} + +declare module 'date-fns/locale/pl' { + import { pl } from 'date-fns/locale' + export default pl +} + +declare module 'date-fns/locale/pt' { + import { pt } from 'date-fns/locale' + export default pt +} + +declare module 'date-fns/locale/pt-BR' { + import { ptBR } from 'date-fns/locale' + export default ptBR +} + +declare module 'date-fns/locale/ro' { + import { ro } from 'date-fns/locale' + export default ro +} + +declare module 'date-fns/locale/ru' { + import { ru } from 'date-fns/locale' + export default ru +} + +declare module 'date-fns/locale/sk' { + import { sk } from 'date-fns/locale' + export default sk +} + +declare module 'date-fns/locale/sl' { + import { sl } from 'date-fns/locale' + export default sl +} + +declare module 'date-fns/locale/sq' { + import { sq } from 'date-fns/locale' + export default sq +} + +declare module 'date-fns/locale/sr' { + import { sr } from 'date-fns/locale' + export default sr +} + +declare module 'date-fns/locale/sr-Latn' { + import { srLatn } from 'date-fns/locale' + export default srLatn +} + +declare module 'date-fns/locale/sv' { + import { sv } from 'date-fns/locale' + export default sv +} + +declare module 'date-fns/locale/ta' { + import { ta } from 'date-fns/locale' + export default ta +} + +declare module 'date-fns/locale/te' { + import { te } from 'date-fns/locale' + export default te +} + +declare module 'date-fns/locale/th' { + import { th } from 'date-fns/locale' + export default th +} + +declare module 'date-fns/locale/tr' { + import { tr } from 'date-fns/locale' + export default tr +} + +declare module 'date-fns/locale/ug' { + import { ug } from 'date-fns/locale' + export default ug +} + +declare module 'date-fns/locale/uk' { + import { uk } from 'date-fns/locale' + export default uk +} + +declare module 'date-fns/locale/uz' { + import { uz } from 'date-fns/locale' + export default uz +} + +declare module 'date-fns/locale/uz-Cyrl' { + import { uzCyrl } from 'date-fns/locale' + export default uzCyrl +} + +declare module 'date-fns/locale/vi' { + import { vi } from 'date-fns/locale' + export default vi +} + +declare module 'date-fns/locale/zh-CN' { + import { zhCN } from 'date-fns/locale' + export default zhCN +} + +declare module 'date-fns/locale/zh-HK' { + import { zhHK } from 'date-fns/locale' + export default zhHK +} + +declare module 'date-fns/locale/zh-TW' { + import { zhTW } from 'date-fns/locale' + export default zhTW +} + +declare module 'date-fns/locale/af/index' { + import { af } from 'date-fns/locale' + export default af +} + +declare module 'date-fns/locale/ar/index' { + import { ar } from 'date-fns/locale' + export default ar +} + +declare module 'date-fns/locale/ar-DZ/index' { + import { arDZ } from 'date-fns/locale' + export default arDZ +} + +declare module 'date-fns/locale/ar-EG/index' { + import { arEG } from 'date-fns/locale' + export default arEG +} + +declare module 'date-fns/locale/ar-MA/index' { + import { arMA } from 'date-fns/locale' + export default arMA +} + +declare module 'date-fns/locale/ar-SA/index' { + import { arSA } from 'date-fns/locale' + export default arSA +} + +declare module 'date-fns/locale/ar-TN/index' { + import { arTN } from 'date-fns/locale' + export default arTN +} + +declare module 'date-fns/locale/az/index' { + import { az } from 'date-fns/locale' + export default az +} + +declare module 'date-fns/locale/be/index' { + import { be } from 'date-fns/locale' + export default be +} + +declare module 'date-fns/locale/be-tarask/index' { + import { beTarask } from 'date-fns/locale' + export default beTarask +} + +declare module 'date-fns/locale/bg/index' { + import { bg } from 'date-fns/locale' + export default bg +} + +declare module 'date-fns/locale/bn/index' { + import { bn } from 'date-fns/locale' + export default bn +} + +declare module 'date-fns/locale/bs/index' { + import { bs } from 'date-fns/locale' + export default bs +} + +declare module 'date-fns/locale/ca/index' { + import { ca } from 'date-fns/locale' + export default ca +} + +declare module 'date-fns/locale/cs/index' { + import { cs } from 'date-fns/locale' + export default cs +} + +declare module 'date-fns/locale/cy/index' { + import { cy } from 'date-fns/locale' + export default cy +} + +declare module 'date-fns/locale/da/index' { + import { da } from 'date-fns/locale' + export default da +} + +declare module 'date-fns/locale/de/index' { + import { de } from 'date-fns/locale' + export default de +} + +declare module 'date-fns/locale/de-AT/index' { + import { deAT } from 'date-fns/locale' + export default deAT +} + +declare module 'date-fns/locale/el/index' { + import { el } from 'date-fns/locale' + export default el +} + +declare module 'date-fns/locale/en-AU/index' { + import { enAU } from 'date-fns/locale' + export default enAU +} + +declare module 'date-fns/locale/en-CA/index' { + import { enCA } from 'date-fns/locale' + export default enCA +} + +declare module 'date-fns/locale/en-GB/index' { + import { enGB } from 'date-fns/locale' + export default enGB +} + +declare module 'date-fns/locale/en-IE/index' { + import { enIE } from 'date-fns/locale' + export default enIE +} + +declare module 'date-fns/locale/en-IN/index' { + import { enIN } from 'date-fns/locale' + export default enIN +} + +declare module 'date-fns/locale/en-NZ/index' { + import { enNZ } from 'date-fns/locale' + export default enNZ +} + +declare module 'date-fns/locale/en-US/index' { + import { enUS } from 'date-fns/locale' + export default enUS +} + +declare module 'date-fns/locale/en-ZA/index' { + import { enZA } from 'date-fns/locale' + export default enZA +} + +declare module 'date-fns/locale/eo/index' { + import { eo } from 'date-fns/locale' + export default eo +} + +declare module 'date-fns/locale/es/index' { + import { es } from 'date-fns/locale' + export default es +} + +declare module 'date-fns/locale/et/index' { + import { et } from 'date-fns/locale' + export default et +} + +declare module 'date-fns/locale/eu/index' { + import { eu } from 'date-fns/locale' + export default eu +} + +declare module 'date-fns/locale/fa-IR/index' { + import { faIR } from 'date-fns/locale' + export default faIR +} + +declare module 'date-fns/locale/fi/index' { + import { fi } from 'date-fns/locale' + export default fi +} + +declare module 'date-fns/locale/fr/index' { + import { fr } from 'date-fns/locale' + export default fr +} + +declare module 'date-fns/locale/fr-CA/index' { + import { frCA } from 'date-fns/locale' + export default frCA +} + +declare module 'date-fns/locale/fr-CH/index' { + import { frCH } from 'date-fns/locale' + export default frCH +} + +declare module 'date-fns/locale/fy/index' { + import { fy } from 'date-fns/locale' + export default fy +} + +declare module 'date-fns/locale/gd/index' { + import { gd } from 'date-fns/locale' + export default gd +} + +declare module 'date-fns/locale/gl/index' { + import { gl } from 'date-fns/locale' + export default gl +} + +declare module 'date-fns/locale/gu/index' { + import { gu } from 'date-fns/locale' + export default gu +} + +declare module 'date-fns/locale/he/index' { + import { he } from 'date-fns/locale' + export default he +} + +declare module 'date-fns/locale/hi/index' { + import { hi } from 'date-fns/locale' + export default hi +} + +declare module 'date-fns/locale/hr/index' { + import { hr } from 'date-fns/locale' + export default hr +} + +declare module 'date-fns/locale/ht/index' { + import { ht } from 'date-fns/locale' + export default ht +} + +declare module 'date-fns/locale/hu/index' { + import { hu } from 'date-fns/locale' + export default hu +} + +declare module 'date-fns/locale/hy/index' { + import { hy } from 'date-fns/locale' + export default hy +} + +declare module 'date-fns/locale/id/index' { + import { id } from 'date-fns/locale' + export default id +} + +declare module 'date-fns/locale/is/index' { + import { is } from 'date-fns/locale' + export default is +} + +declare module 'date-fns/locale/it/index' { + import { it } from 'date-fns/locale' + export default it +} + +declare module 'date-fns/locale/it-CH/index' { + import { itCH } from 'date-fns/locale' + export default itCH +} + +declare module 'date-fns/locale/ja/index' { + import { ja } from 'date-fns/locale' + export default ja +} + +declare module 'date-fns/locale/ja-Hira/index' { + import { jaHira } from 'date-fns/locale' + export default jaHira +} + +declare module 'date-fns/locale/ka/index' { + import { ka } from 'date-fns/locale' + export default ka +} + +declare module 'date-fns/locale/kk/index' { + import { kk } from 'date-fns/locale' + export default kk +} + +declare module 'date-fns/locale/km/index' { + import { km } from 'date-fns/locale' + export default km +} + +declare module 'date-fns/locale/kn/index' { + import { kn } from 'date-fns/locale' + export default kn +} + +declare module 'date-fns/locale/ko/index' { + import { ko } from 'date-fns/locale' + export default ko +} + +declare module 'date-fns/locale/lb/index' { + import { lb } from 'date-fns/locale' + export default lb +} + +declare module 'date-fns/locale/lt/index' { + import { lt } from 'date-fns/locale' + export default lt +} + +declare module 'date-fns/locale/lv/index' { + import { lv } from 'date-fns/locale' + export default lv +} + +declare module 'date-fns/locale/mk/index' { + import { mk } from 'date-fns/locale' + export default mk +} + +declare module 'date-fns/locale/mn/index' { + import { mn } from 'date-fns/locale' + export default mn +} + +declare module 'date-fns/locale/ms/index' { + import { ms } from 'date-fns/locale' + export default ms +} + +declare module 'date-fns/locale/mt/index' { + import { mt } from 'date-fns/locale' + export default mt +} + +declare module 'date-fns/locale/nb/index' { + import { nb } from 'date-fns/locale' + export default nb +} + +declare module 'date-fns/locale/nl/index' { + import { nl } from 'date-fns/locale' + export default nl +} + +declare module 'date-fns/locale/nl-BE/index' { + import { nlBE } from 'date-fns/locale' + export default nlBE +} + +declare module 'date-fns/locale/nn/index' { + import { nn } from 'date-fns/locale' + export default nn +} + +declare module 'date-fns/locale/oc/index' { + import { oc } from 'date-fns/locale' + export default oc +} + +declare module 'date-fns/locale/pl/index' { + import { pl } from 'date-fns/locale' + export default pl +} + +declare module 'date-fns/locale/pt/index' { + import { pt } from 'date-fns/locale' + export default pt +} + +declare module 'date-fns/locale/pt-BR/index' { + import { ptBR } from 'date-fns/locale' + export default ptBR +} + +declare module 'date-fns/locale/ro/index' { + import { ro } from 'date-fns/locale' + export default ro +} + +declare module 'date-fns/locale/ru/index' { + import { ru } from 'date-fns/locale' + export default ru +} + +declare module 'date-fns/locale/sk/index' { + import { sk } from 'date-fns/locale' + export default sk +} + +declare module 'date-fns/locale/sl/index' { + import { sl } from 'date-fns/locale' + export default sl +} + +declare module 'date-fns/locale/sq/index' { + import { sq } from 'date-fns/locale' + export default sq +} + +declare module 'date-fns/locale/sr/index' { + import { sr } from 'date-fns/locale' + export default sr +} + +declare module 'date-fns/locale/sr-Latn/index' { + import { srLatn } from 'date-fns/locale' + export default srLatn +} + +declare module 'date-fns/locale/sv/index' { + import { sv } from 'date-fns/locale' + export default sv +} + +declare module 'date-fns/locale/ta/index' { + import { ta } from 'date-fns/locale' + export default ta +} + +declare module 'date-fns/locale/te/index' { + import { te } from 'date-fns/locale' + export default te +} + +declare module 'date-fns/locale/th/index' { + import { th } from 'date-fns/locale' + export default th +} + +declare module 'date-fns/locale/tr/index' { + import { tr } from 'date-fns/locale' + export default tr +} + +declare module 'date-fns/locale/ug/index' { + import { ug } from 'date-fns/locale' + export default ug +} + +declare module 'date-fns/locale/uk/index' { + import { uk } from 'date-fns/locale' + export default uk +} + +declare module 'date-fns/locale/uz/index' { + import { uz } from 'date-fns/locale' + export default uz +} + +declare module 'date-fns/locale/uz-Cyrl/index' { + import { uzCyrl } from 'date-fns/locale' + export default uzCyrl +} + +declare module 'date-fns/locale/vi/index' { + import { vi } from 'date-fns/locale' + export default vi +} + +declare module 'date-fns/locale/zh-CN/index' { + import { zhCN } from 'date-fns/locale' + export default zhCN +} + +declare module 'date-fns/locale/zh-HK/index' { + import { zhHK } from 'date-fns/locale' + export default zhHK +} + +declare module 'date-fns/locale/zh-TW/index' { + import { zhTW } from 'date-fns/locale' + export default zhTW +} + +declare module 'date-fns/locale/af/index.js' { + import { af } from 'date-fns/locale' + export default af +} + +declare module 'date-fns/locale/ar/index.js' { + import { ar } from 'date-fns/locale' + export default ar +} + +declare module 'date-fns/locale/ar-DZ/index.js' { + import { arDZ } from 'date-fns/locale' + export default arDZ +} + +declare module 'date-fns/locale/ar-EG/index.js' { + import { arEG } from 'date-fns/locale' + export default arEG +} + +declare module 'date-fns/locale/ar-MA/index.js' { + import { arMA } from 'date-fns/locale' + export default arMA +} + +declare module 'date-fns/locale/ar-SA/index.js' { + import { arSA } from 'date-fns/locale' + export default arSA +} + +declare module 'date-fns/locale/ar-TN/index.js' { + import { arTN } from 'date-fns/locale' + export default arTN +} + +declare module 'date-fns/locale/az/index.js' { + import { az } from 'date-fns/locale' + export default az +} + +declare module 'date-fns/locale/be/index.js' { + import { be } from 'date-fns/locale' + export default be +} + +declare module 'date-fns/locale/be-tarask/index.js' { + import { beTarask } from 'date-fns/locale' + export default beTarask +} + +declare module 'date-fns/locale/bg/index.js' { + import { bg } from 'date-fns/locale' + export default bg +} + +declare module 'date-fns/locale/bn/index.js' { + import { bn } from 'date-fns/locale' + export default bn +} + +declare module 'date-fns/locale/bs/index.js' { + import { bs } from 'date-fns/locale' + export default bs +} + +declare module 'date-fns/locale/ca/index.js' { + import { ca } from 'date-fns/locale' + export default ca +} + +declare module 'date-fns/locale/cs/index.js' { + import { cs } from 'date-fns/locale' + export default cs +} + +declare module 'date-fns/locale/cy/index.js' { + import { cy } from 'date-fns/locale' + export default cy +} + +declare module 'date-fns/locale/da/index.js' { + import { da } from 'date-fns/locale' + export default da +} + +declare module 'date-fns/locale/de/index.js' { + import { de } from 'date-fns/locale' + export default de +} + +declare module 'date-fns/locale/de-AT/index.js' { + import { deAT } from 'date-fns/locale' + export default deAT +} + +declare module 'date-fns/locale/el/index.js' { + import { el } from 'date-fns/locale' + export default el +} + +declare module 'date-fns/locale/en-AU/index.js' { + import { enAU } from 'date-fns/locale' + export default enAU +} + +declare module 'date-fns/locale/en-CA/index.js' { + import { enCA } from 'date-fns/locale' + export default enCA +} + +declare module 'date-fns/locale/en-GB/index.js' { + import { enGB } from 'date-fns/locale' + export default enGB +} + +declare module 'date-fns/locale/en-IE/index.js' { + import { enIE } from 'date-fns/locale' + export default enIE +} + +declare module 'date-fns/locale/en-IN/index.js' { + import { enIN } from 'date-fns/locale' + export default enIN +} + +declare module 'date-fns/locale/en-NZ/index.js' { + import { enNZ } from 'date-fns/locale' + export default enNZ +} + +declare module 'date-fns/locale/en-US/index.js' { + import { enUS } from 'date-fns/locale' + export default enUS +} + +declare module 'date-fns/locale/en-ZA/index.js' { + import { enZA } from 'date-fns/locale' + export default enZA +} + +declare module 'date-fns/locale/eo/index.js' { + import { eo } from 'date-fns/locale' + export default eo +} + +declare module 'date-fns/locale/es/index.js' { + import { es } from 'date-fns/locale' + export default es +} + +declare module 'date-fns/locale/et/index.js' { + import { et } from 'date-fns/locale' + export default et +} + +declare module 'date-fns/locale/eu/index.js' { + import { eu } from 'date-fns/locale' + export default eu +} + +declare module 'date-fns/locale/fa-IR/index.js' { + import { faIR } from 'date-fns/locale' + export default faIR +} + +declare module 'date-fns/locale/fi/index.js' { + import { fi } from 'date-fns/locale' + export default fi +} + +declare module 'date-fns/locale/fr/index.js' { + import { fr } from 'date-fns/locale' + export default fr +} + +declare module 'date-fns/locale/fr-CA/index.js' { + import { frCA } from 'date-fns/locale' + export default frCA +} + +declare module 'date-fns/locale/fr-CH/index.js' { + import { frCH } from 'date-fns/locale' + export default frCH +} + +declare module 'date-fns/locale/fy/index.js' { + import { fy } from 'date-fns/locale' + export default fy +} + +declare module 'date-fns/locale/gd/index.js' { + import { gd } from 'date-fns/locale' + export default gd +} + +declare module 'date-fns/locale/gl/index.js' { + import { gl } from 'date-fns/locale' + export default gl +} + +declare module 'date-fns/locale/gu/index.js' { + import { gu } from 'date-fns/locale' + export default gu +} + +declare module 'date-fns/locale/he/index.js' { + import { he } from 'date-fns/locale' + export default he +} + +declare module 'date-fns/locale/hi/index.js' { + import { hi } from 'date-fns/locale' + export default hi +} + +declare module 'date-fns/locale/hr/index.js' { + import { hr } from 'date-fns/locale' + export default hr +} + +declare module 'date-fns/locale/ht/index.js' { + import { ht } from 'date-fns/locale' + export default ht +} + +declare module 'date-fns/locale/hu/index.js' { + import { hu } from 'date-fns/locale' + export default hu +} + +declare module 'date-fns/locale/hy/index.js' { + import { hy } from 'date-fns/locale' + export default hy +} + +declare module 'date-fns/locale/id/index.js' { + import { id } from 'date-fns/locale' + export default id +} + +declare module 'date-fns/locale/is/index.js' { + import { is } from 'date-fns/locale' + export default is +} + +declare module 'date-fns/locale/it/index.js' { + import { it } from 'date-fns/locale' + export default it +} + +declare module 'date-fns/locale/it-CH/index.js' { + import { itCH } from 'date-fns/locale' + export default itCH +} + +declare module 'date-fns/locale/ja/index.js' { + import { ja } from 'date-fns/locale' + export default ja +} + +declare module 'date-fns/locale/ja-Hira/index.js' { + import { jaHira } from 'date-fns/locale' + export default jaHira +} + +declare module 'date-fns/locale/ka/index.js' { + import { ka } from 'date-fns/locale' + export default ka +} + +declare module 'date-fns/locale/kk/index.js' { + import { kk } from 'date-fns/locale' + export default kk +} + +declare module 'date-fns/locale/km/index.js' { + import { km } from 'date-fns/locale' + export default km +} + +declare module 'date-fns/locale/kn/index.js' { + import { kn } from 'date-fns/locale' + export default kn +} + +declare module 'date-fns/locale/ko/index.js' { + import { ko } from 'date-fns/locale' + export default ko +} + +declare module 'date-fns/locale/lb/index.js' { + import { lb } from 'date-fns/locale' + export default lb +} + +declare module 'date-fns/locale/lt/index.js' { + import { lt } from 'date-fns/locale' + export default lt +} + +declare module 'date-fns/locale/lv/index.js' { + import { lv } from 'date-fns/locale' + export default lv +} + +declare module 'date-fns/locale/mk/index.js' { + import { mk } from 'date-fns/locale' + export default mk +} + +declare module 'date-fns/locale/mn/index.js' { + import { mn } from 'date-fns/locale' + export default mn +} + +declare module 'date-fns/locale/ms/index.js' { + import { ms } from 'date-fns/locale' + export default ms +} + +declare module 'date-fns/locale/mt/index.js' { + import { mt } from 'date-fns/locale' + export default mt +} + +declare module 'date-fns/locale/nb/index.js' { + import { nb } from 'date-fns/locale' + export default nb +} + +declare module 'date-fns/locale/nl/index.js' { + import { nl } from 'date-fns/locale' + export default nl +} + +declare module 'date-fns/locale/nl-BE/index.js' { + import { nlBE } from 'date-fns/locale' + export default nlBE +} + +declare module 'date-fns/locale/nn/index.js' { + import { nn } from 'date-fns/locale' + export default nn +} + +declare module 'date-fns/locale/oc/index.js' { + import { oc } from 'date-fns/locale' + export default oc +} + +declare module 'date-fns/locale/pl/index.js' { + import { pl } from 'date-fns/locale' + export default pl +} + +declare module 'date-fns/locale/pt/index.js' { + import { pt } from 'date-fns/locale' + export default pt +} + +declare module 'date-fns/locale/pt-BR/index.js' { + import { ptBR } from 'date-fns/locale' + export default ptBR +} + +declare module 'date-fns/locale/ro/index.js' { + import { ro } from 'date-fns/locale' + export default ro +} + +declare module 'date-fns/locale/ru/index.js' { + import { ru } from 'date-fns/locale' + export default ru +} + +declare module 'date-fns/locale/sk/index.js' { + import { sk } from 'date-fns/locale' + export default sk +} + +declare module 'date-fns/locale/sl/index.js' { + import { sl } from 'date-fns/locale' + export default sl +} + +declare module 'date-fns/locale/sq/index.js' { + import { sq } from 'date-fns/locale' + export default sq +} + +declare module 'date-fns/locale/sr/index.js' { + import { sr } from 'date-fns/locale' + export default sr +} + +declare module 'date-fns/locale/sr-Latn/index.js' { + import { srLatn } from 'date-fns/locale' + export default srLatn +} + +declare module 'date-fns/locale/sv/index.js' { + import { sv } from 'date-fns/locale' + export default sv +} + +declare module 'date-fns/locale/ta/index.js' { + import { ta } from 'date-fns/locale' + export default ta +} + +declare module 'date-fns/locale/te/index.js' { + import { te } from 'date-fns/locale' + export default te +} + +declare module 'date-fns/locale/th/index.js' { + import { th } from 'date-fns/locale' + export default th +} + +declare module 'date-fns/locale/tr/index.js' { + import { tr } from 'date-fns/locale' + export default tr +} + +declare module 'date-fns/locale/ug/index.js' { + import { ug } from 'date-fns/locale' + export default ug +} + +declare module 'date-fns/locale/uk/index.js' { + import { uk } from 'date-fns/locale' + export default uk +} + +declare module 'date-fns/locale/uz/index.js' { + import { uz } from 'date-fns/locale' + export default uz +} + +declare module 'date-fns/locale/uz-Cyrl/index.js' { + import { uzCyrl } from 'date-fns/locale' + export default uzCyrl +} + +declare module 'date-fns/locale/vi/index.js' { + import { vi } from 'date-fns/locale' + export default vi +} + +declare module 'date-fns/locale/zh-CN/index.js' { + import { zhCN } from 'date-fns/locale' + export default zhCN +} + +declare module 'date-fns/locale/zh-HK/index.js' { + import { zhHK } from 'date-fns/locale' + export default zhHK +} + +declare module 'date-fns/locale/zh-TW/index.js' { + import { zhTW } from 'date-fns/locale' + export default zhTW +} + +// ECMAScript Module Locales + +declare module 'date-fns/esm/locale' { + const af: Locale + namespace af {} + + const ar: Locale + namespace ar {} + + const arDZ: Locale + namespace arDZ {} + + const arEG: Locale + namespace arEG {} + + const arMA: Locale + namespace arMA {} + + const arSA: Locale + namespace arSA {} + + const arTN: Locale + namespace arTN {} + + const az: Locale + namespace az {} + + const be: Locale + namespace be {} + + const beTarask: Locale + namespace beTarask {} + + const bg: Locale + namespace bg {} + + const bn: Locale + namespace bn {} + + const bs: Locale + namespace bs {} + + const ca: Locale + namespace ca {} + + const cs: Locale + namespace cs {} + + const cy: Locale + namespace cy {} + + const da: Locale + namespace da {} + + const de: Locale + namespace de {} + + const deAT: Locale + namespace deAT {} + + const el: Locale + namespace el {} + + const enAU: Locale + namespace enAU {} + + const enCA: Locale + namespace enCA {} + + const enGB: Locale + namespace enGB {} + + const enIE: Locale + namespace enIE {} + + const enIN: Locale + namespace enIN {} + + const enNZ: Locale + namespace enNZ {} + + const enUS: Locale + namespace enUS {} + + const enZA: Locale + namespace enZA {} + + const eo: Locale + namespace eo {} + + const es: Locale + namespace es {} + + const et: Locale + namespace et {} + + const eu: Locale + namespace eu {} + + const faIR: Locale + namespace faIR {} + + const fi: Locale + namespace fi {} + + const fr: Locale + namespace fr {} + + const frCA: Locale + namespace frCA {} + + const frCH: Locale + namespace frCH {} + + const fy: Locale + namespace fy {} + + const gd: Locale + namespace gd {} + + const gl: Locale + namespace gl {} + + const gu: Locale + namespace gu {} + + const he: Locale + namespace he {} + + const hi: Locale + namespace hi {} + + const hr: Locale + namespace hr {} + + const ht: Locale + namespace ht {} + + const hu: Locale + namespace hu {} + + const hy: Locale + namespace hy {} + + const id: Locale + namespace id {} + + const is: Locale + namespace is {} + + const it: Locale + namespace it {} + + const itCH: Locale + namespace itCH {} + + const ja: Locale + namespace ja {} + + const jaHira: Locale + namespace jaHira {} + + const ka: Locale + namespace ka {} + + const kk: Locale + namespace kk {} + + const km: Locale + namespace km {} + + const kn: Locale + namespace kn {} + + const ko: Locale + namespace ko {} + + const lb: Locale + namespace lb {} + + const lt: Locale + namespace lt {} + + const lv: Locale + namespace lv {} + + const mk: Locale + namespace mk {} + + const mn: Locale + namespace mn {} + + const ms: Locale + namespace ms {} + + const mt: Locale + namespace mt {} + + const nb: Locale + namespace nb {} + + const nl: Locale + namespace nl {} + + const nlBE: Locale + namespace nlBE {} + + const nn: Locale + namespace nn {} + + const oc: Locale + namespace oc {} + + const pl: Locale + namespace pl {} + + const pt: Locale + namespace pt {} + + const ptBR: Locale + namespace ptBR {} + + const ro: Locale + namespace ro {} + + const ru: Locale + namespace ru {} + + const sk: Locale + namespace sk {} + + const sl: Locale + namespace sl {} + + const sq: Locale + namespace sq {} + + const sr: Locale + namespace sr {} + + const srLatn: Locale + namespace srLatn {} + + const sv: Locale + namespace sv {} + + const ta: Locale + namespace ta {} + + const te: Locale + namespace te {} + + const th: Locale + namespace th {} + + const tr: Locale + namespace tr {} + + const ug: Locale + namespace ug {} + + const uk: Locale + namespace uk {} + + const uz: Locale + namespace uz {} + + const uzCyrl: Locale + namespace uzCyrl {} + + const vi: Locale + namespace vi {} + + const zhCN: Locale + namespace zhCN {} + + const zhHK: Locale + namespace zhHK {} + + const zhTW: Locale + namespace zhTW {} +} + +declare module 'date-fns/esm/locale/af' { + import { af } from 'date-fns/esm/locale' + export default af +} + +declare module 'date-fns/esm/locale/ar' { + import { ar } from 'date-fns/esm/locale' + export default ar +} + +declare module 'date-fns/esm/locale/ar-DZ' { + import { arDZ } from 'date-fns/esm/locale' + export default arDZ +} + +declare module 'date-fns/esm/locale/ar-EG' { + import { arEG } from 'date-fns/esm/locale' + export default arEG +} + +declare module 'date-fns/esm/locale/ar-MA' { + import { arMA } from 'date-fns/esm/locale' + export default arMA +} + +declare module 'date-fns/esm/locale/ar-SA' { + import { arSA } from 'date-fns/esm/locale' + export default arSA +} + +declare module 'date-fns/esm/locale/ar-TN' { + import { arTN } from 'date-fns/esm/locale' + export default arTN +} + +declare module 'date-fns/esm/locale/az' { + import { az } from 'date-fns/esm/locale' + export default az +} + +declare module 'date-fns/esm/locale/be' { + import { be } from 'date-fns/esm/locale' + export default be +} + +declare module 'date-fns/esm/locale/be-tarask' { + import { beTarask } from 'date-fns/esm/locale' + export default beTarask +} + +declare module 'date-fns/esm/locale/bg' { + import { bg } from 'date-fns/esm/locale' + export default bg +} + +declare module 'date-fns/esm/locale/bn' { + import { bn } from 'date-fns/esm/locale' + export default bn +} + +declare module 'date-fns/esm/locale/bs' { + import { bs } from 'date-fns/esm/locale' + export default bs +} + +declare module 'date-fns/esm/locale/ca' { + import { ca } from 'date-fns/esm/locale' + export default ca +} + +declare module 'date-fns/esm/locale/cs' { + import { cs } from 'date-fns/esm/locale' + export default cs +} + +declare module 'date-fns/esm/locale/cy' { + import { cy } from 'date-fns/esm/locale' + export default cy +} + +declare module 'date-fns/esm/locale/da' { + import { da } from 'date-fns/esm/locale' + export default da +} + +declare module 'date-fns/esm/locale/de' { + import { de } from 'date-fns/esm/locale' + export default de +} + +declare module 'date-fns/esm/locale/de-AT' { + import { deAT } from 'date-fns/esm/locale' + export default deAT +} + +declare module 'date-fns/esm/locale/el' { + import { el } from 'date-fns/esm/locale' + export default el +} + +declare module 'date-fns/esm/locale/en-AU' { + import { enAU } from 'date-fns/esm/locale' + export default enAU +} + +declare module 'date-fns/esm/locale/en-CA' { + import { enCA } from 'date-fns/esm/locale' + export default enCA +} + +declare module 'date-fns/esm/locale/en-GB' { + import { enGB } from 'date-fns/esm/locale' + export default enGB +} + +declare module 'date-fns/esm/locale/en-IE' { + import { enIE } from 'date-fns/esm/locale' + export default enIE +} + +declare module 'date-fns/esm/locale/en-IN' { + import { enIN } from 'date-fns/esm/locale' + export default enIN +} + +declare module 'date-fns/esm/locale/en-NZ' { + import { enNZ } from 'date-fns/esm/locale' + export default enNZ +} + +declare module 'date-fns/esm/locale/en-US' { + import { enUS } from 'date-fns/esm/locale' + export default enUS +} + +declare module 'date-fns/esm/locale/en-ZA' { + import { enZA } from 'date-fns/esm/locale' + export default enZA +} + +declare module 'date-fns/esm/locale/eo' { + import { eo } from 'date-fns/esm/locale' + export default eo +} + +declare module 'date-fns/esm/locale/es' { + import { es } from 'date-fns/esm/locale' + export default es +} + +declare module 'date-fns/esm/locale/et' { + import { et } from 'date-fns/esm/locale' + export default et +} + +declare module 'date-fns/esm/locale/eu' { + import { eu } from 'date-fns/esm/locale' + export default eu +} + +declare module 'date-fns/esm/locale/fa-IR' { + import { faIR } from 'date-fns/esm/locale' + export default faIR +} + +declare module 'date-fns/esm/locale/fi' { + import { fi } from 'date-fns/esm/locale' + export default fi +} + +declare module 'date-fns/esm/locale/fr' { + import { fr } from 'date-fns/esm/locale' + export default fr +} + +declare module 'date-fns/esm/locale/fr-CA' { + import { frCA } from 'date-fns/esm/locale' + export default frCA +} + +declare module 'date-fns/esm/locale/fr-CH' { + import { frCH } from 'date-fns/esm/locale' + export default frCH +} + +declare module 'date-fns/esm/locale/fy' { + import { fy } from 'date-fns/esm/locale' + export default fy +} + +declare module 'date-fns/esm/locale/gd' { + import { gd } from 'date-fns/esm/locale' + export default gd +} + +declare module 'date-fns/esm/locale/gl' { + import { gl } from 'date-fns/esm/locale' + export default gl +} + +declare module 'date-fns/esm/locale/gu' { + import { gu } from 'date-fns/esm/locale' + export default gu +} + +declare module 'date-fns/esm/locale/he' { + import { he } from 'date-fns/esm/locale' + export default he +} + +declare module 'date-fns/esm/locale/hi' { + import { hi } from 'date-fns/esm/locale' + export default hi +} + +declare module 'date-fns/esm/locale/hr' { + import { hr } from 'date-fns/esm/locale' + export default hr +} + +declare module 'date-fns/esm/locale/ht' { + import { ht } from 'date-fns/esm/locale' + export default ht +} + +declare module 'date-fns/esm/locale/hu' { + import { hu } from 'date-fns/esm/locale' + export default hu +} + +declare module 'date-fns/esm/locale/hy' { + import { hy } from 'date-fns/esm/locale' + export default hy +} + +declare module 'date-fns/esm/locale/id' { + import { id } from 'date-fns/esm/locale' + export default id +} + +declare module 'date-fns/esm/locale/is' { + import { is } from 'date-fns/esm/locale' + export default is +} + +declare module 'date-fns/esm/locale/it' { + import { it } from 'date-fns/esm/locale' + export default it +} + +declare module 'date-fns/esm/locale/it-CH' { + import { itCH } from 'date-fns/esm/locale' + export default itCH +} + +declare module 'date-fns/esm/locale/ja' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +declare module 'date-fns/esm/locale/ja-Hira' { + import { jaHira } from 'date-fns/esm/locale' + export default jaHira +} + +declare module 'date-fns/esm/locale/ka' { + import { ka } from 'date-fns/esm/locale' + export default ka +} + +declare module 'date-fns/esm/locale/kk' { + import { kk } from 'date-fns/esm/locale' + export default kk +} + +declare module 'date-fns/esm/locale/km' { + import { km } from 'date-fns/esm/locale' + export default km +} + +declare module 'date-fns/esm/locale/kn' { + import { kn } from 'date-fns/esm/locale' + export default kn +} + +declare module 'date-fns/esm/locale/ko' { + import { ko } from 'date-fns/esm/locale' + export default ko +} + +declare module 'date-fns/esm/locale/lb' { + import { lb } from 'date-fns/esm/locale' + export default lb +} + +declare module 'date-fns/esm/locale/lt' { + import { lt } from 'date-fns/esm/locale' + export default lt +} + +declare module 'date-fns/esm/locale/lv' { + import { lv } from 'date-fns/esm/locale' + export default lv +} + +declare module 'date-fns/esm/locale/mk' { + import { mk } from 'date-fns/esm/locale' + export default mk +} + +declare module 'date-fns/esm/locale/mn' { + import { mn } from 'date-fns/esm/locale' + export default mn +} + +declare module 'date-fns/esm/locale/ms' { + import { ms } from 'date-fns/esm/locale' + export default ms +} + +declare module 'date-fns/esm/locale/mt' { + import { mt } from 'date-fns/esm/locale' + export default mt +} + +declare module 'date-fns/esm/locale/nb' { + import { nb } from 'date-fns/esm/locale' + export default nb +} + +declare module 'date-fns/esm/locale/nl' { + import { nl } from 'date-fns/esm/locale' + export default nl +} + +declare module 'date-fns/esm/locale/nl-BE' { + import { nlBE } from 'date-fns/esm/locale' + export default nlBE +} + +declare module 'date-fns/esm/locale/nn' { + import { nn } from 'date-fns/esm/locale' + export default nn +} + +declare module 'date-fns/esm/locale/oc' { + import { oc } from 'date-fns/esm/locale' + export default oc +} + +declare module 'date-fns/esm/locale/pl' { + import { pl } from 'date-fns/esm/locale' + export default pl +} + +declare module 'date-fns/esm/locale/pt' { + import { pt } from 'date-fns/esm/locale' + export default pt +} + +declare module 'date-fns/esm/locale/pt-BR' { + import { ptBR } from 'date-fns/esm/locale' + export default ptBR +} + +declare module 'date-fns/esm/locale/ro' { + import { ro } from 'date-fns/esm/locale' + export default ro +} + +declare module 'date-fns/esm/locale/ru' { + import { ru } from 'date-fns/esm/locale' + export default ru +} + +declare module 'date-fns/esm/locale/sk' { + import { sk } from 'date-fns/esm/locale' + export default sk +} + +declare module 'date-fns/esm/locale/sl' { + import { sl } from 'date-fns/esm/locale' + export default sl +} + +declare module 'date-fns/esm/locale/sq' { + import { sq } from 'date-fns/esm/locale' + export default sq +} + +declare module 'date-fns/esm/locale/sr' { + import { sr } from 'date-fns/esm/locale' + export default sr +} + +declare module 'date-fns/esm/locale/sr-Latn' { + import { srLatn } from 'date-fns/esm/locale' + export default srLatn +} + +declare module 'date-fns/esm/locale/sv' { + import { sv } from 'date-fns/esm/locale' + export default sv +} + +declare module 'date-fns/esm/locale/ta' { + import { ta } from 'date-fns/esm/locale' + export default ta +} + +declare module 'date-fns/esm/locale/te' { + import { te } from 'date-fns/esm/locale' + export default te +} + +declare module 'date-fns/esm/locale/th' { + import { th } from 'date-fns/esm/locale' + export default th +} + +declare module 'date-fns/esm/locale/tr' { + import { tr } from 'date-fns/esm/locale' + export default tr +} + +declare module 'date-fns/esm/locale/ug' { + import { ug } from 'date-fns/esm/locale' + export default ug +} + +declare module 'date-fns/esm/locale/uk' { + import { uk } from 'date-fns/esm/locale' + export default uk +} + +declare module 'date-fns/esm/locale/uz' { + import { uz } from 'date-fns/esm/locale' + export default uz +} + +declare module 'date-fns/esm/locale/uz-Cyrl' { + import { uzCyrl } from 'date-fns/esm/locale' + export default uzCyrl +} + +declare module 'date-fns/esm/locale/vi' { + import { vi } from 'date-fns/esm/locale' + export default vi +} + +declare module 'date-fns/esm/locale/zh-CN' { + import { zhCN } from 'date-fns/esm/locale' + export default zhCN +} + +declare module 'date-fns/esm/locale/zh-HK' { + import { zhHK } from 'date-fns/esm/locale' + export default zhHK +} + +declare module 'date-fns/esm/locale/zh-TW' { + import { zhTW } from 'date-fns/esm/locale' + export default zhTW +} + +declare module 'date-fns/esm/locale/af/index' { + import { af } from 'date-fns/esm/locale' + export default af +} + +declare module 'date-fns/esm/locale/ar/index' { + import { ar } from 'date-fns/esm/locale' + export default ar +} + +declare module 'date-fns/esm/locale/ar-DZ/index' { + import { arDZ } from 'date-fns/esm/locale' + export default arDZ +} + +declare module 'date-fns/esm/locale/ar-EG/index' { + import { arEG } from 'date-fns/esm/locale' + export default arEG +} + +declare module 'date-fns/esm/locale/ar-MA/index' { + import { arMA } from 'date-fns/esm/locale' + export default arMA +} + +declare module 'date-fns/esm/locale/ar-SA/index' { + import { arSA } from 'date-fns/esm/locale' + export default arSA +} + +declare module 'date-fns/esm/locale/ar-TN/index' { + import { arTN } from 'date-fns/esm/locale' + export default arTN +} + +declare module 'date-fns/esm/locale/az/index' { + import { az } from 'date-fns/esm/locale' + export default az +} + +declare module 'date-fns/esm/locale/be/index' { + import { be } from 'date-fns/esm/locale' + export default be +} + +declare module 'date-fns/esm/locale/be-tarask/index' { + import { beTarask } from 'date-fns/esm/locale' + export default beTarask +} + +declare module 'date-fns/esm/locale/bg/index' { + import { bg } from 'date-fns/esm/locale' + export default bg +} + +declare module 'date-fns/esm/locale/bn/index' { + import { bn } from 'date-fns/esm/locale' + export default bn +} + +declare module 'date-fns/esm/locale/bs/index' { + import { bs } from 'date-fns/esm/locale' + export default bs +} + +declare module 'date-fns/esm/locale/ca/index' { + import { ca } from 'date-fns/esm/locale' + export default ca +} + +declare module 'date-fns/esm/locale/cs/index' { + import { cs } from 'date-fns/esm/locale' + export default cs +} + +declare module 'date-fns/esm/locale/cy/index' { + import { cy } from 'date-fns/esm/locale' + export default cy +} + +declare module 'date-fns/esm/locale/da/index' { + import { da } from 'date-fns/esm/locale' + export default da +} + +declare module 'date-fns/esm/locale/de/index' { + import { de } from 'date-fns/esm/locale' + export default de +} + +declare module 'date-fns/esm/locale/de-AT/index' { + import { deAT } from 'date-fns/esm/locale' + export default deAT +} + +declare module 'date-fns/esm/locale/el/index' { + import { el } from 'date-fns/esm/locale' + export default el +} + +declare module 'date-fns/esm/locale/en-AU/index' { + import { enAU } from 'date-fns/esm/locale' + export default enAU +} + +declare module 'date-fns/esm/locale/en-CA/index' { + import { enCA } from 'date-fns/esm/locale' + export default enCA +} + +declare module 'date-fns/esm/locale/en-GB/index' { + import { enGB } from 'date-fns/esm/locale' + export default enGB +} + +declare module 'date-fns/esm/locale/en-IE/index' { + import { enIE } from 'date-fns/esm/locale' + export default enIE +} + +declare module 'date-fns/esm/locale/en-IN/index' { + import { enIN } from 'date-fns/esm/locale' + export default enIN +} + +declare module 'date-fns/esm/locale/en-NZ/index' { + import { enNZ } from 'date-fns/esm/locale' + export default enNZ +} + +declare module 'date-fns/esm/locale/en-US/index' { + import { enUS } from 'date-fns/esm/locale' + export default enUS +} + +declare module 'date-fns/esm/locale/en-ZA/index' { + import { enZA } from 'date-fns/esm/locale' + export default enZA +} + +declare module 'date-fns/esm/locale/eo/index' { + import { eo } from 'date-fns/esm/locale' + export default eo +} + +declare module 'date-fns/esm/locale/es/index' { + import { es } from 'date-fns/esm/locale' + export default es +} + +declare module 'date-fns/esm/locale/et/index' { + import { et } from 'date-fns/esm/locale' + export default et +} + +declare module 'date-fns/esm/locale/eu/index' { + import { eu } from 'date-fns/esm/locale' + export default eu +} + +declare module 'date-fns/esm/locale/fa-IR/index' { + import { faIR } from 'date-fns/esm/locale' + export default faIR +} + +declare module 'date-fns/esm/locale/fi/index' { + import { fi } from 'date-fns/esm/locale' + export default fi +} + +declare module 'date-fns/esm/locale/fr/index' { + import { fr } from 'date-fns/esm/locale' + export default fr +} + +declare module 'date-fns/esm/locale/fr-CA/index' { + import { frCA } from 'date-fns/esm/locale' + export default frCA +} + +declare module 'date-fns/esm/locale/fr-CH/index' { + import { frCH } from 'date-fns/esm/locale' + export default frCH +} + +declare module 'date-fns/esm/locale/fy/index' { + import { fy } from 'date-fns/esm/locale' + export default fy +} + +declare module 'date-fns/esm/locale/gd/index' { + import { gd } from 'date-fns/esm/locale' + export default gd +} + +declare module 'date-fns/esm/locale/gl/index' { + import { gl } from 'date-fns/esm/locale' + export default gl +} + +declare module 'date-fns/esm/locale/gu/index' { + import { gu } from 'date-fns/esm/locale' + export default gu +} + +declare module 'date-fns/esm/locale/he/index' { + import { he } from 'date-fns/esm/locale' + export default he +} + +declare module 'date-fns/esm/locale/hi/index' { + import { hi } from 'date-fns/esm/locale' + export default hi +} + +declare module 'date-fns/esm/locale/hr/index' { + import { hr } from 'date-fns/esm/locale' + export default hr +} + +declare module 'date-fns/esm/locale/ht/index' { + import { ht } from 'date-fns/esm/locale' + export default ht +} + +declare module 'date-fns/esm/locale/hu/index' { + import { hu } from 'date-fns/esm/locale' + export default hu +} + +declare module 'date-fns/esm/locale/hy/index' { + import { hy } from 'date-fns/esm/locale' + export default hy +} + +declare module 'date-fns/esm/locale/id/index' { + import { id } from 'date-fns/esm/locale' + export default id +} + +declare module 'date-fns/esm/locale/is/index' { + import { is } from 'date-fns/esm/locale' + export default is +} + +declare module 'date-fns/esm/locale/it/index' { + import { it } from 'date-fns/esm/locale' + export default it +} + +declare module 'date-fns/esm/locale/it-CH/index' { + import { itCH } from 'date-fns/esm/locale' + export default itCH +} + +declare module 'date-fns/esm/locale/ja/index' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +declare module 'date-fns/esm/locale/ja-Hira/index' { + import { jaHira } from 'date-fns/esm/locale' + export default jaHira +} + +declare module 'date-fns/esm/locale/ka/index' { + import { ka } from 'date-fns/esm/locale' + export default ka +} + +declare module 'date-fns/esm/locale/kk/index' { + import { kk } from 'date-fns/esm/locale' + export default kk +} + +declare module 'date-fns/esm/locale/km/index' { + import { km } from 'date-fns/esm/locale' + export default km +} + +declare module 'date-fns/esm/locale/kn/index' { + import { kn } from 'date-fns/esm/locale' + export default kn +} + +declare module 'date-fns/esm/locale/ko/index' { + import { ko } from 'date-fns/esm/locale' + export default ko +} + +declare module 'date-fns/esm/locale/lb/index' { + import { lb } from 'date-fns/esm/locale' + export default lb +} + +declare module 'date-fns/esm/locale/lt/index' { + import { lt } from 'date-fns/esm/locale' + export default lt +} + +declare module 'date-fns/esm/locale/lv/index' { + import { lv } from 'date-fns/esm/locale' + export default lv +} + +declare module 'date-fns/esm/locale/mk/index' { + import { mk } from 'date-fns/esm/locale' + export default mk +} + +declare module 'date-fns/esm/locale/mn/index' { + import { mn } from 'date-fns/esm/locale' + export default mn +} + +declare module 'date-fns/esm/locale/ms/index' { + import { ms } from 'date-fns/esm/locale' + export default ms +} + +declare module 'date-fns/esm/locale/mt/index' { + import { mt } from 'date-fns/esm/locale' + export default mt +} + +declare module 'date-fns/esm/locale/nb/index' { + import { nb } from 'date-fns/esm/locale' + export default nb +} + +declare module 'date-fns/esm/locale/nl/index' { + import { nl } from 'date-fns/esm/locale' + export default nl +} + +declare module 'date-fns/esm/locale/nl-BE/index' { + import { nlBE } from 'date-fns/esm/locale' + export default nlBE +} + +declare module 'date-fns/esm/locale/nn/index' { + import { nn } from 'date-fns/esm/locale' + export default nn +} + +declare module 'date-fns/esm/locale/oc/index' { + import { oc } from 'date-fns/esm/locale' + export default oc +} + +declare module 'date-fns/esm/locale/pl/index' { + import { pl } from 'date-fns/esm/locale' + export default pl +} + +declare module 'date-fns/esm/locale/pt/index' { + import { pt } from 'date-fns/esm/locale' + export default pt +} + +declare module 'date-fns/esm/locale/pt-BR/index' { + import { ptBR } from 'date-fns/esm/locale' + export default ptBR +} + +declare module 'date-fns/esm/locale/ro/index' { + import { ro } from 'date-fns/esm/locale' + export default ro +} + +declare module 'date-fns/esm/locale/ru/index' { + import { ru } from 'date-fns/esm/locale' + export default ru +} + +declare module 'date-fns/esm/locale/sk/index' { + import { sk } from 'date-fns/esm/locale' + export default sk +} + +declare module 'date-fns/esm/locale/sl/index' { + import { sl } from 'date-fns/esm/locale' + export default sl +} + +declare module 'date-fns/esm/locale/sq/index' { + import { sq } from 'date-fns/esm/locale' + export default sq +} + +declare module 'date-fns/esm/locale/sr/index' { + import { sr } from 'date-fns/esm/locale' + export default sr +} + +declare module 'date-fns/esm/locale/sr-Latn/index' { + import { srLatn } from 'date-fns/esm/locale' + export default srLatn +} + +declare module 'date-fns/esm/locale/sv/index' { + import { sv } from 'date-fns/esm/locale' + export default sv +} + +declare module 'date-fns/esm/locale/ta/index' { + import { ta } from 'date-fns/esm/locale' + export default ta +} + +declare module 'date-fns/esm/locale/te/index' { + import { te } from 'date-fns/esm/locale' + export default te +} + +declare module 'date-fns/esm/locale/th/index' { + import { th } from 'date-fns/esm/locale' + export default th +} + +declare module 'date-fns/esm/locale/tr/index' { + import { tr } from 'date-fns/esm/locale' + export default tr +} + +declare module 'date-fns/esm/locale/ug/index' { + import { ug } from 'date-fns/esm/locale' + export default ug +} + +declare module 'date-fns/esm/locale/uk/index' { + import { uk } from 'date-fns/esm/locale' + export default uk +} + +declare module 'date-fns/esm/locale/uz/index' { + import { uz } from 'date-fns/esm/locale' + export default uz +} + +declare module 'date-fns/esm/locale/uz-Cyrl/index' { + import { uzCyrl } from 'date-fns/esm/locale' + export default uzCyrl +} + +declare module 'date-fns/esm/locale/vi/index' { + import { vi } from 'date-fns/esm/locale' + export default vi +} + +declare module 'date-fns/esm/locale/zh-CN/index' { + import { zhCN } from 'date-fns/esm/locale' + export default zhCN +} + +declare module 'date-fns/esm/locale/zh-HK/index' { + import { zhHK } from 'date-fns/esm/locale' + export default zhHK +} + +declare module 'date-fns/esm/locale/zh-TW/index' { + import { zhTW } from 'date-fns/esm/locale' + export default zhTW +} + +declare module 'date-fns/esm/locale/af/index.js' { + import { af } from 'date-fns/esm/locale' + export default af +} + +declare module 'date-fns/esm/locale/ar/index.js' { + import { ar } from 'date-fns/esm/locale' + export default ar +} + +declare module 'date-fns/esm/locale/ar-DZ/index.js' { + import { arDZ } from 'date-fns/esm/locale' + export default arDZ +} + +declare module 'date-fns/esm/locale/ar-EG/index.js' { + import { arEG } from 'date-fns/esm/locale' + export default arEG +} + +declare module 'date-fns/esm/locale/ar-MA/index.js' { + import { arMA } from 'date-fns/esm/locale' + export default arMA +} + +declare module 'date-fns/esm/locale/ar-SA/index.js' { + import { arSA } from 'date-fns/esm/locale' + export default arSA +} + +declare module 'date-fns/esm/locale/ar-TN/index.js' { + import { arTN } from 'date-fns/esm/locale' + export default arTN +} + +declare module 'date-fns/esm/locale/az/index.js' { + import { az } from 'date-fns/esm/locale' + export default az +} + +declare module 'date-fns/esm/locale/be/index.js' { + import { be } from 'date-fns/esm/locale' + export default be +} + +declare module 'date-fns/esm/locale/be-tarask/index.js' { + import { beTarask } from 'date-fns/esm/locale' + export default beTarask +} + +declare module 'date-fns/esm/locale/bg/index.js' { + import { bg } from 'date-fns/esm/locale' + export default bg +} + +declare module 'date-fns/esm/locale/bn/index.js' { + import { bn } from 'date-fns/esm/locale' + export default bn +} + +declare module 'date-fns/esm/locale/bs/index.js' { + import { bs } from 'date-fns/esm/locale' + export default bs +} + +declare module 'date-fns/esm/locale/ca/index.js' { + import { ca } from 'date-fns/esm/locale' + export default ca +} + +declare module 'date-fns/esm/locale/cs/index.js' { + import { cs } from 'date-fns/esm/locale' + export default cs +} + +declare module 'date-fns/esm/locale/cy/index.js' { + import { cy } from 'date-fns/esm/locale' + export default cy +} + +declare module 'date-fns/esm/locale/da/index.js' { + import { da } from 'date-fns/esm/locale' + export default da +} + +declare module 'date-fns/esm/locale/de/index.js' { + import { de } from 'date-fns/esm/locale' + export default de +} + +declare module 'date-fns/esm/locale/de-AT/index.js' { + import { deAT } from 'date-fns/esm/locale' + export default deAT +} + +declare module 'date-fns/esm/locale/el/index.js' { + import { el } from 'date-fns/esm/locale' + export default el +} + +declare module 'date-fns/esm/locale/en-AU/index.js' { + import { enAU } from 'date-fns/esm/locale' + export default enAU +} + +declare module 'date-fns/esm/locale/en-CA/index.js' { + import { enCA } from 'date-fns/esm/locale' + export default enCA +} + +declare module 'date-fns/esm/locale/en-GB/index.js' { + import { enGB } from 'date-fns/esm/locale' + export default enGB +} + +declare module 'date-fns/esm/locale/en-IE/index.js' { + import { enIE } from 'date-fns/esm/locale' + export default enIE +} + +declare module 'date-fns/esm/locale/en-IN/index.js' { + import { enIN } from 'date-fns/esm/locale' + export default enIN +} + +declare module 'date-fns/esm/locale/en-NZ/index.js' { + import { enNZ } from 'date-fns/esm/locale' + export default enNZ +} + +declare module 'date-fns/esm/locale/en-US/index.js' { + import { enUS } from 'date-fns/esm/locale' + export default enUS +} + +declare module 'date-fns/esm/locale/en-ZA/index.js' { + import { enZA } from 'date-fns/esm/locale' + export default enZA +} + +declare module 'date-fns/esm/locale/eo/index.js' { + import { eo } from 'date-fns/esm/locale' + export default eo +} + +declare module 'date-fns/esm/locale/es/index.js' { + import { es } from 'date-fns/esm/locale' + export default es +} + +declare module 'date-fns/esm/locale/et/index.js' { + import { et } from 'date-fns/esm/locale' + export default et +} + +declare module 'date-fns/esm/locale/eu/index.js' { + import { eu } from 'date-fns/esm/locale' + export default eu +} + +declare module 'date-fns/esm/locale/fa-IR/index.js' { + import { faIR } from 'date-fns/esm/locale' + export default faIR +} + +declare module 'date-fns/esm/locale/fi/index.js' { + import { fi } from 'date-fns/esm/locale' + export default fi +} + +declare module 'date-fns/esm/locale/fr/index.js' { + import { fr } from 'date-fns/esm/locale' + export default fr +} + +declare module 'date-fns/esm/locale/fr-CA/index.js' { + import { frCA } from 'date-fns/esm/locale' + export default frCA +} + +declare module 'date-fns/esm/locale/fr-CH/index.js' { + import { frCH } from 'date-fns/esm/locale' + export default frCH +} + +declare module 'date-fns/esm/locale/fy/index.js' { + import { fy } from 'date-fns/esm/locale' + export default fy +} + +declare module 'date-fns/esm/locale/gd/index.js' { + import { gd } from 'date-fns/esm/locale' + export default gd +} + +declare module 'date-fns/esm/locale/gl/index.js' { + import { gl } from 'date-fns/esm/locale' + export default gl +} + +declare module 'date-fns/esm/locale/gu/index.js' { + import { gu } from 'date-fns/esm/locale' + export default gu +} + +declare module 'date-fns/esm/locale/he/index.js' { + import { he } from 'date-fns/esm/locale' + export default he +} + +declare module 'date-fns/esm/locale/hi/index.js' { + import { hi } from 'date-fns/esm/locale' + export default hi +} + +declare module 'date-fns/esm/locale/hr/index.js' { + import { hr } from 'date-fns/esm/locale' + export default hr +} + +declare module 'date-fns/esm/locale/ht/index.js' { + import { ht } from 'date-fns/esm/locale' + export default ht +} + +declare module 'date-fns/esm/locale/hu/index.js' { + import { hu } from 'date-fns/esm/locale' + export default hu +} + +declare module 'date-fns/esm/locale/hy/index.js' { + import { hy } from 'date-fns/esm/locale' + export default hy +} + +declare module 'date-fns/esm/locale/id/index.js' { + import { id } from 'date-fns/esm/locale' + export default id +} + +declare module 'date-fns/esm/locale/is/index.js' { + import { is } from 'date-fns/esm/locale' + export default is +} + +declare module 'date-fns/esm/locale/it/index.js' { + import { it } from 'date-fns/esm/locale' + export default it +} + +declare module 'date-fns/esm/locale/it-CH/index.js' { + import { itCH } from 'date-fns/esm/locale' + export default itCH +} + +declare module 'date-fns/esm/locale/ja/index.js' { + import { ja } from 'date-fns/esm/locale' + export default ja +} + +declare module 'date-fns/esm/locale/ja-Hira/index.js' { + import { jaHira } from 'date-fns/esm/locale' + export default jaHira +} + +declare module 'date-fns/esm/locale/ka/index.js' { + import { ka } from 'date-fns/esm/locale' + export default ka +} + +declare module 'date-fns/esm/locale/kk/index.js' { + import { kk } from 'date-fns/esm/locale' + export default kk +} + +declare module 'date-fns/esm/locale/km/index.js' { + import { km } from 'date-fns/esm/locale' + export default km +} + +declare module 'date-fns/esm/locale/kn/index.js' { + import { kn } from 'date-fns/esm/locale' + export default kn +} + +declare module 'date-fns/esm/locale/ko/index.js' { + import { ko } from 'date-fns/esm/locale' + export default ko +} + +declare module 'date-fns/esm/locale/lb/index.js' { + import { lb } from 'date-fns/esm/locale' + export default lb +} + +declare module 'date-fns/esm/locale/lt/index.js' { + import { lt } from 'date-fns/esm/locale' + export default lt +} + +declare module 'date-fns/esm/locale/lv/index.js' { + import { lv } from 'date-fns/esm/locale' + export default lv +} + +declare module 'date-fns/esm/locale/mk/index.js' { + import { mk } from 'date-fns/esm/locale' + export default mk +} + +declare module 'date-fns/esm/locale/mn/index.js' { + import { mn } from 'date-fns/esm/locale' + export default mn +} + +declare module 'date-fns/esm/locale/ms/index.js' { + import { ms } from 'date-fns/esm/locale' + export default ms +} + +declare module 'date-fns/esm/locale/mt/index.js' { + import { mt } from 'date-fns/esm/locale' + export default mt +} + +declare module 'date-fns/esm/locale/nb/index.js' { + import { nb } from 'date-fns/esm/locale' + export default nb +} + +declare module 'date-fns/esm/locale/nl/index.js' { + import { nl } from 'date-fns/esm/locale' + export default nl +} + +declare module 'date-fns/esm/locale/nl-BE/index.js' { + import { nlBE } from 'date-fns/esm/locale' + export default nlBE +} + +declare module 'date-fns/esm/locale/nn/index.js' { + import { nn } from 'date-fns/esm/locale' + export default nn +} + +declare module 'date-fns/esm/locale/oc/index.js' { + import { oc } from 'date-fns/esm/locale' + export default oc +} + +declare module 'date-fns/esm/locale/pl/index.js' { + import { pl } from 'date-fns/esm/locale' + export default pl +} + +declare module 'date-fns/esm/locale/pt/index.js' { + import { pt } from 'date-fns/esm/locale' + export default pt +} + +declare module 'date-fns/esm/locale/pt-BR/index.js' { + import { ptBR } from 'date-fns/esm/locale' + export default ptBR +} + +declare module 'date-fns/esm/locale/ro/index.js' { + import { ro } from 'date-fns/esm/locale' + export default ro +} + +declare module 'date-fns/esm/locale/ru/index.js' { + import { ru } from 'date-fns/esm/locale' + export default ru +} + +declare module 'date-fns/esm/locale/sk/index.js' { + import { sk } from 'date-fns/esm/locale' + export default sk +} + +declare module 'date-fns/esm/locale/sl/index.js' { + import { sl } from 'date-fns/esm/locale' + export default sl +} + +declare module 'date-fns/esm/locale/sq/index.js' { + import { sq } from 'date-fns/esm/locale' + export default sq +} + +declare module 'date-fns/esm/locale/sr/index.js' { + import { sr } from 'date-fns/esm/locale' + export default sr +} + +declare module 'date-fns/esm/locale/sr-Latn/index.js' { + import { srLatn } from 'date-fns/esm/locale' + export default srLatn +} + +declare module 'date-fns/esm/locale/sv/index.js' { + import { sv } from 'date-fns/esm/locale' + export default sv +} + +declare module 'date-fns/esm/locale/ta/index.js' { + import { ta } from 'date-fns/esm/locale' + export default ta +} + +declare module 'date-fns/esm/locale/te/index.js' { + import { te } from 'date-fns/esm/locale' + export default te +} + +declare module 'date-fns/esm/locale/th/index.js' { + import { th } from 'date-fns/esm/locale' + export default th +} + +declare module 'date-fns/esm/locale/tr/index.js' { + import { tr } from 'date-fns/esm/locale' + export default tr +} + +declare module 'date-fns/esm/locale/ug/index.js' { + import { ug } from 'date-fns/esm/locale' + export default ug +} + +declare module 'date-fns/esm/locale/uk/index.js' { + import { uk } from 'date-fns/esm/locale' + export default uk +} + +declare module 'date-fns/esm/locale/uz/index.js' { + import { uz } from 'date-fns/esm/locale' + export default uz +} + +declare module 'date-fns/esm/locale/uz-Cyrl/index.js' { + import { uzCyrl } from 'date-fns/esm/locale' + export default uzCyrl +} + +declare module 'date-fns/esm/locale/vi/index.js' { + import { vi } from 'date-fns/esm/locale' + export default vi +} + +declare module 'date-fns/esm/locale/zh-CN/index.js' { + import { zhCN } from 'date-fns/esm/locale' + export default zhCN +} + +declare module 'date-fns/esm/locale/zh-HK/index.js' { + import { zhHK } from 'date-fns/esm/locale' + export default zhHK +} + +declare module 'date-fns/esm/locale/zh-TW/index.js' { + import { zhTW } from 'date-fns/esm/locale' + export default zhTW +} + +// dateFns Global Interface + +interface dateFns { + add(date: Date | number, duration: Duration): Date + + addBusinessDays(date: Date | number, amount: number): Date + + addDays(date: Date | number, amount: number): Date + + addHours(date: Date | number, amount: number): Date + + addISOWeekYears(date: Date | number, amount: number): Date + + addMilliseconds(date: Date | number, amount: number): Date + + addMinutes(date: Date | number, amount: number): Date + + addMonths(date: Date | number, amount: number): Date + + addQuarters(date: Date | number, amount: number): Date + + addSeconds(date: Date | number, amount: number): Date + + addWeeks(date: Date | number, amount: number): Date + + addYears(date: Date | number, amount: number): Date + + areIntervalsOverlapping( + intervalLeft: Interval, + intervalRight: Interval, + options?: { + inclusive?: boolean + } + ): boolean + + clamp(date: Date | number, interval: Interval): Date + + closestIndexTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): number | undefined + + closestTo( + dateToCompare: Date | number, + datesArray: (Date | number)[] + ): Date | undefined + + compareAsc(dateLeft: Date | number, dateRight: Date | number): number + + compareDesc(dateLeft: Date | number, dateRight: Date | number): number + + daysToWeeks(days: number): number + + differenceInBusinessDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarDays( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarISOWeeks( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarMonths( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarQuarters( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInCalendarWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + + differenceInCalendarYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInDays(dateLeft: Date | number, dateRight: Date | number): number + + differenceInHours( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + + differenceInISOWeekYears( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInMilliseconds( + dateLeft: Date | number, + dateRight: Date | number + ): number + + differenceInMinutes( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + + differenceInMonths(dateLeft: Date | number, dateRight: Date | number): number + + differenceInQuarters( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + + differenceInSeconds( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + + differenceInWeeks( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + roundingMethod?: string + } + ): number + + differenceInYears(dateLeft: Date | number, dateRight: Date | number): number + + eachDayOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + + eachHourOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + + eachMinuteOfInterval( + interval: Interval, + options?: { + step?: number + } + ): Date[] + + eachMonthOfInterval(interval: Interval): Date[] + + eachQuarterOfInterval(interval: Interval): Date[] + + eachWeekendOfInterval(interval: Interval): Date[] + + eachWeekendOfMonth(date: Date | number): Date[] + + eachWeekendOfYear(date: Date | number): Date[] + + eachWeekOfInterval( + interval: Interval, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date[] + + eachYearOfInterval(interval: Interval): Date[] + + endOfDay(date: Date | number): Date + + endOfDecade( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + + endOfHour(date: Date | number): Date + + endOfISOWeek(date: Date | number): Date + + endOfISOWeekYear(date: Date | number): Date + + endOfMinute(date: Date | number): Date + + endOfMonth(date: Date | number): Date + + endOfQuarter(date: Date | number): Date + + endOfSecond(date: Date | number): Date + + endOfToday(): Date + + endOfTomorrow(): Date + + endOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + + endOfYear(date: Date | number): Date + + endOfYesterday(): Date + + format( + date: Date | number, + format: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: number + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): string + + formatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + + formatDistanceStrict( + date: Date | number, + baseDate: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + + formatDistanceToNow( + date: Date | number, + options?: { + includeSeconds?: boolean + addSuffix?: boolean + locale?: Locale + } + ): string + + formatDistanceToNowStrict( + date: Date | number, + options?: { + addSuffix?: boolean + unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' + roundingMethod?: 'floor' | 'ceil' | 'round' + locale?: Locale + } + ): string + + formatDuration( + duration: Duration, + options?: { + format?: string[] + zero?: boolean + delimiter?: string + locale?: Locale + } + ): string + + formatISO( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + + formatISO9075( + date: Date | number, + options?: { + format?: 'extended' | 'basic' + representation?: 'complete' | 'date' | 'time' + } + ): string + + formatISODuration(duration: Duration): string + + formatRelative( + date: Date | number, + baseDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): string + + formatRFC3339( + date: Date | number, + options?: { + fractionDigits?: 0 | 1 | 2 | 3 + } + ): string + + formatRFC7231(date: Date | number): string + + fromUnixTime(unixTime: number): Date + + getDate(date: Date | number): number + + getDay(date: Date | number): 0 | 1 | 2 | 3 | 4 | 5 | 6 + + getDayOfYear(date: Date | number): number + + getDaysInMonth(date: Date | number): number + + getDaysInYear(date: Date | number): number + + getDecade(date: Date | number): number + + getDefaultOptions(): Object + + getHours(date: Date | number): number + + getISODay(date: Date | number): number + + getISOWeek(date: Date | number): number + + getISOWeeksInYear(date: Date | number): number + + getISOWeekYear(date: Date | number): number + + getMilliseconds(date: Date | number): number + + getMinutes(date: Date | number): number + + getMonth(date: Date | number): number + + getOverlappingDaysInIntervals( + intervalLeft: Interval, + intervalRight: Interval + ): number + + getQuarter(date: Date | number): number + + getSeconds(date: Date | number): number + + getTime(date: Date | number): number + + getUnixTime(date: Date | number): number + + getWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + + getWeekOfMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + + getWeeksInMonth( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): number + + getWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): number + + getYear(date: Date | number): number + + hoursToMilliseconds(hours: number): number + + hoursToMinutes(hours: number): number + + hoursToSeconds(hours: number): number + + intervalToDuration(interval: Interval): Duration + + intlFormat( + argument: Date | number, + formatOptions?: { + localeMatcher?: 'lookup' | 'best fit' + weekday?: 'narrow' | 'short' | 'long' + era?: 'narrow' | 'short' | 'long' + year?: 'numeric' | '2-digit' + month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' + day?: 'numeric' | '2-digit' + hour?: 'numeric' | '2-digit' + minute?: 'numeric' | '2-digit' + second?: 'numeric' | '2-digit' + timeZoneName?: 'short' | 'long' + formatMatcher?: 'basic' | 'best fit' + hour12?: boolean + timeZone?: string + }, + localeOptions?: { + locale?: string | string[] + } + ): string + + intlFormatDistance( + date: Date | number, + baseDate: Date | number, + options?: { + unit?: string + locale?: string | string[] + localeMatcher?: string + numeric?: string + style?: string + } + ): string + + isAfter(date: Date | number, dateToCompare: Date | number): boolean + + isBefore(date: Date | number, dateToCompare: Date | number): boolean + + isDate(value: any): boolean + + isEqual(dateLeft: Date | number, dateRight: Date | number): boolean + + isExists(year: number, month: number, day: number): boolean + + isFirstDayOfMonth(date: Date | number): boolean + + isFriday(date: Date | number): boolean + + isFuture(date: Date | number): boolean + + isLastDayOfMonth(date: Date | number): boolean + + isLeapYear(date: Date | number): boolean + + isMatch( + dateString: string, + formatString: string, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): boolean + + isMonday(date: Date | number): boolean + + isPast(date: Date | number): boolean + + isSameDay(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameHour(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameISOWeek(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameISOWeekYear(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameMinute(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameMonth(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameQuarter(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameSecond(dateLeft: Date | number, dateRight: Date | number): boolean + + isSameWeek( + dateLeft: Date | number, + dateRight: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + + isSameYear(dateLeft: Date | number, dateRight: Date | number): boolean + + isSaturday(date: Date | number): boolean + + isSunday(date: Date | number): boolean + + isThisHour(date: Date | number): boolean + + isThisISOWeek(date: Date | number): boolean + + isThisMinute(date: Date | number): boolean + + isThisMonth(date: Date | number): boolean + + isThisQuarter(date: Date | number): boolean + + isThisSecond(date: Date | number): boolean + + isThisWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): boolean + + isThisYear(date: Date | number): boolean + + isThursday(date: Date | number): boolean + + isToday(date: Date | number): boolean + + isTomorrow(date: Date | number): boolean + + isTuesday(date: Date | number): boolean + + isValid(date: any): boolean + + isWednesday(date: Date | number): boolean + + isWeekend(date: Date | number): boolean + + isWithinInterval(date: Date | number, interval: Interval): boolean + + isYesterday(date: Date | number): boolean + + lastDayOfDecade(date: Date | number): Date + + lastDayOfISOWeek(date: Date | number): Date + + lastDayOfISOWeekYear(date: Date | number): Date + + lastDayOfMonth(date: Date | number): Date + + lastDayOfQuarter( + date: Date | number, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + + lastDayOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + + lastDayOfYear(date: Date | number): Date + + lightFormat(date: Date | number, format: string): string + + max(datesArray: (Date | number)[]): Date + + milliseconds(duration: Duration): number + + millisecondsToHours(milliseconds: number): number + + millisecondsToMinutes(milliseconds: number): number + + millisecondsToSeconds(milliseconds: number): number + + min(datesArray: (Date | number)[]): Date + + minutesToHours(minutes: number): number + + minutesToMilliseconds(minutes: number): number + + minutesToSeconds(minutes: number): number + + monthsToQuarters(months: number): number + + monthsToYears(months: number): number + + nextDay(date: Date | number, day: Day): Date + + nextFriday(date: Date | number): Date + + nextMonday(date: Date | number): Date + + nextSaturday(date: Date | number): Date + + nextSunday(date: Date | number): Date + + nextThursday(date: Date | number): Date + + nextTuesday(date: Date | number): Date + + nextWednesday(date: Date | number): Date + + parse( + dateString: string, + formatString: string, + referenceDate: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + useAdditionalWeekYearTokens?: boolean + useAdditionalDayOfYearTokens?: boolean + } + ): Date + + parseISO( + argument: string, + options?: { + additionalDigits?: 0 | 1 | 2 + } + ): Date + + parseJSON(argument: string | number | Date): Date + + previousDay(date: Date | number, day: number): Date + + previousFriday(date: Date | number): Date + + previousMonday(date: Date | number): Date + + previousSaturday(date: Date | number): Date + + previousSunday(date: Date | number): Date + + previousThursday(date: Date | number): Date + + previousTuesday(date: Date | number): Date + + previousWednesday(date: Date | number): Date + + quartersToMonths(quarters: number): number + + quartersToYears(quarters: number): number + + roundToNearestMinutes( + date: Date | number, + options?: { + nearestTo?: number + roundingMethod?: string + } + ): Date + + secondsToHours(seconds: number): number + + secondsToMilliseconds(seconds: number): number + + secondsToMinutes(seconds: number): number + + set( + date: Date | number, + values: { + year?: number + month?: number + date?: number + hours?: number + minutes?: number + seconds?: number + milliseconds?: number + } + ): Date + + setDate(date: Date | number, dayOfMonth: number): Date + + setDay( + date: Date | number, + day: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + + setDayOfYear(date: Date | number, dayOfYear: number): Date + + setDefaultOptions(newOptions: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + }): void + + setHours(date: Date | number, hours: number): Date + + setISODay(date: Date | number, day: number): Date + + setISOWeek(date: Date | number, isoWeek: number): Date + + setISOWeekYear(date: Date | number, isoWeekYear: number): Date + + setMilliseconds(date: Date | number, milliseconds: number): Date + + setMinutes(date: Date | number, minutes: number): Date + + setMonth(date: Date | number, month: number): Date + + setQuarter(date: Date | number, quarter: number): Date + + setSeconds(date: Date | number, seconds: number): Date + + setWeek( + date: Date | number, + week: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + + setWeekYear( + date: Date | number, + weekYear: number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + + setYear(date: Date | number, year: number): Date + + startOfDay(date: Date | number): Date + + startOfDecade(date: Date | number): Date + + startOfHour(date: Date | number): Date + + startOfISOWeek(date: Date | number): Date + + startOfISOWeekYear(date: Date | number): Date + + startOfMinute(date: Date | number): Date + + startOfMonth(date: Date | number): Date + + startOfQuarter(date: Date | number): Date + + startOfSecond(date: Date | number): Date + + startOfToday(): Date + + startOfTomorrow(): Date + + startOfWeek( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + } + ): Date + + startOfWeekYear( + date: Date | number, + options?: { + locale?: Locale + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 + } + ): Date + + startOfYear(date: Date | number): Date + + startOfYesterday(): Date + + sub(date: Date | number, duration: Duration): Date + + subBusinessDays(date: Date | number, amount: number): Date + + subDays(date: Date | number, amount: number): Date + + subHours(date: Date | number, amount: number): Date + + subISOWeekYears(date: Date | number, amount: number): Date + + subMilliseconds(date: Date | number, amount: number): Date + + subMinutes(date: Date | number, amount: number): Date + + subMonths(date: Date | number, amount: number): Date + + subQuarters(date: Date | number, amount: number): Date + + subSeconds(date: Date | number, amount: number): Date + + subWeeks(date: Date | number, amount: number): Date + + subYears(date: Date | number, amount: number): Date + + toDate(argument: Date | number): Date + + weeksToDays(weeks: number): number + + yearsToMonths(years: number): number + + yearsToQuarters(years: number): number + + daysInWeek: number + + daysInYear: number + + maxTime: number + + millisecondsInMinute: number + + millisecondsInHour: number + + millisecondsInSecond: number + + minTime: number + + minutesInHour: number + + monthsInQuarter: number + + monthsInYear: number + + quartersInYear: number + + secondsInHour: number + + secondsInMinute: number + + secondsInDay: number + + secondsInWeek: number + + secondsInYear: number + + secondsInMonth: number + + secondsInQuarter: number +} diff --git a/node_modules/date-fns/weeksToDays/index.d.ts b/node_modules/date-fns/weeksToDays/index.d.ts new file mode 100644 index 00000000..dd8c1fe0 --- /dev/null +++ b/node_modules/date-fns/weeksToDays/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { weeksToDays } from 'date-fns' +export default weeksToDays diff --git a/node_modules/date-fns/weeksToDays/index.js b/node_modules/date-fns/weeksToDays/index.js new file mode 100644 index 00000000..c7e183cf --- /dev/null +++ b/node_modules/date-fns/weeksToDays/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = weeksToDays; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name weeksToDays + * @category Conversion Helpers + * @summary Convert weeks to days. + * + * @description + * Convert a number of weeks to a full number of days. + * + * @param {number} weeks - number of weeks to be converted + * + * @returns {number} the number of weeks converted in days + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 weeks into days + * const result = weeksToDays(2) + * //=> 14 + */ +function weeksToDays(weeks) { + (0, _index.default)(1, arguments); + return Math.floor(weeks * _index2.daysInWeek); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/weeksToDays/index.js.flow b/node_modules/date-fns/weeksToDays/index.js.flow new file mode 100644 index 00000000..257c1ccf --- /dev/null +++ b/node_modules/date-fns/weeksToDays/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (weeks: number) => number diff --git a/node_modules/date-fns/weeksToDays/package.json b/node_modules/date-fns/weeksToDays/package.json new file mode 100644 index 00000000..aef4ded4 --- /dev/null +++ b/node_modules/date-fns/weeksToDays/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/weeksToDays/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/yearsToMonths/index.d.ts b/node_modules/date-fns/yearsToMonths/index.d.ts new file mode 100644 index 00000000..9e9126d6 --- /dev/null +++ b/node_modules/date-fns/yearsToMonths/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToMonths } from 'date-fns' +export default yearsToMonths diff --git a/node_modules/date-fns/yearsToMonths/index.js b/node_modules/date-fns/yearsToMonths/index.js new file mode 100644 index 00000000..d0eece94 --- /dev/null +++ b/node_modules/date-fns/yearsToMonths/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = yearsToMonths; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name yearsToMonths + * @category Conversion Helpers + * @summary Convert years to months. + * + * @description + * Convert a number of years to a full number of months. + * + * @param {number} years - number of years to be converted + * + * @returns {number} the number of years converted in months + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 years into months + * const result = yearsToMonths(2) + * //=> 24 + */ +function yearsToMonths(years) { + (0, _index.default)(1, arguments); + return Math.floor(years * _index2.monthsInYear); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/yearsToMonths/index.js.flow b/node_modules/date-fns/yearsToMonths/index.js.flow new file mode 100644 index 00000000..d0819197 --- /dev/null +++ b/node_modules/date-fns/yearsToMonths/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (years: number) => number diff --git a/node_modules/date-fns/yearsToMonths/package.json b/node_modules/date-fns/yearsToMonths/package.json new file mode 100644 index 00000000..0ffcffbd --- /dev/null +++ b/node_modules/date-fns/yearsToMonths/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/yearsToMonths/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file diff --git a/node_modules/date-fns/yearsToQuarters/index.d.ts b/node_modules/date-fns/yearsToQuarters/index.d.ts new file mode 100644 index 00000000..e3ebc705 --- /dev/null +++ b/node_modules/date-fns/yearsToQuarters/index.d.ts @@ -0,0 +1,4 @@ +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +import { yearsToQuarters } from 'date-fns' +export default yearsToQuarters diff --git a/node_modules/date-fns/yearsToQuarters/index.js b/node_modules/date-fns/yearsToQuarters/index.js new file mode 100644 index 00000000..9548cf19 --- /dev/null +++ b/node_modules/date-fns/yearsToQuarters/index.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = yearsToQuarters; + +var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); + +var _index2 = require("../constants/index.js"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/** + * @name yearsToQuarters + * @category Conversion Helpers + * @summary Convert years to quarters. + * + * @description + * Convert a number of years to a full number of quarters. + * + * @param {number} years - number of years to be converted + * + * @returns {number} the number of years converted in quarters + * @throws {TypeError} 1 argument required + * + * @example + * // Convert 2 years to quarters + * const result = yearsToQuarters(2) + * //=> 8 + */ +function yearsToQuarters(years) { + (0, _index.default)(1, arguments); + return Math.floor(years * _index2.quartersInYear); +} + +module.exports = exports.default; \ No newline at end of file diff --git a/node_modules/date-fns/yearsToQuarters/index.js.flow b/node_modules/date-fns/yearsToQuarters/index.js.flow new file mode 100644 index 00000000..d0819197 --- /dev/null +++ b/node_modules/date-fns/yearsToQuarters/index.js.flow @@ -0,0 +1,52 @@ +// @flow +// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. + +export type Interval = { + start: Date | number, + end: Date | number, +} + +export type Locale = { + code?: string, + formatDistance?: (...args: Array) => any, + formatRelative?: (...args: Array) => any, + localize?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + formatLong?: { + date: (...args: Array) => any, + time: (...args: Array) => any, + dateTime: (...args: Array) => any, + }, + match?: { + ordinalNumber: (...args: Array) => any, + era: (...args: Array) => any, + quarter: (...args: Array) => any, + month: (...args: Array) => any, + day: (...args: Array) => any, + dayPeriod: (...args: Array) => any, + }, + options?: { + weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, + firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, + }, +} + +export type Duration = { + years?: number, + months?: number, + weeks?: number, + days?: number, + hours?: number, + minutes?: number, + seconds?: number, +} + +export type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 + +declare module.exports: (years: number) => number diff --git a/node_modules/date-fns/yearsToQuarters/package.json b/node_modules/date-fns/yearsToQuarters/package.json new file mode 100644 index 00000000..45abb32e --- /dev/null +++ b/node_modules/date-fns/yearsToQuarters/package.json @@ -0,0 +1,5 @@ +{ + "sideEffects": false, + "module": "../esm/yearsToQuarters/index.js", + "typings": "../typings.d.ts" +} \ No newline at end of file